body {
    background: #fff;
    color: #333;
    line-height: 1.7;
    overflow-x: hidden;
}

.container-custom {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: scale(0.3);
    }

    50% {
        opacity: 1;
        transform: scale(1.05);
    }

    70% {
        transform: scale(0.9);
    }

    100% {
        transform: scale(1);
    }
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.03);
    }
}

/* Apply animations */
.page-section {
    padding: 70px 0;
    animation: fadeInUp 0.8s ease-out;
}

.page-section:nth-child(even) {
    animation: fadeIn 0.8s ease-out;
}

h2 {
    animation: slideInLeft 0.6s ease-out;
}

.table-wrap {
    animation: scaleIn 0.7s ease-out;
}

.faq-box {
    animation: fadeInUp 0.5s ease-out;
    animation-fill-mode: both;
}

.faq-box:nth-child(1) {
    animation-delay: 0.1s;
}

.faq-box:nth-child(2) {
    animation-delay: 0.2s;
}

.faq-box:nth-child(3) {
    animation-delay: 0.3s;
}

.faq-box:nth-child(4) {
    animation-delay: 0.4s;
}

.faq-box:nth-child(5) {
    animation-delay: 0.5s;
}

.cta-footer {
    animation: fadeInUp 0.8s ease-out;
}

.hero-content {
    animation: fadeInUp 1s ease-out;
}

.breadcrumb {
    animation: fadeIn 1.2s ease-out;
    animation-delay: 0.4s;
    animation-fill-mode: both;
}

img {
    transition: transform 0.4s ease;
}

img:hover {
    transform: scale(1.05);
}

.footer-logo img {
    animation: none !important;
    transform: none !important;
}

.table-wrap {
    transition: all 0.3s ease;
}

.table-wrap:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.faq-box {
    transition: all 0.3s ease;
}

.faq-box:hover {
    transform: translateX(8px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.btn-red {
    animation: pulse 2.5s ease-in-out infinite;
}

.btn-red:hover {
    animation: none;
}

.cta-footer {
    animation: bounceIn 0.9s ease-out;
}

/* Hero */
.hero-section {
    margin-top: 72px;
    position: relative;
    background: url('img/Bars-and-Rods_banner.jpg') center/cover no-repeat;
    min-height: 420px;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    overflow: hidden;
    padding: 60px 20px;
}

.hero-section::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.7) 0%, rgba(0, 28, 64, 0.6) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 20px;
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.hero-content h1 {
    font-size: clamp(32px, 5vw, 58px);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 15px;
}

.hero-content h1 span:not(.slide-highlight) {
    color: #fff;
}

.hero-content p {
    font-size: clamp(14px, 2vw, 16px);
    margin-bottom: 25px;
    text-align: center;
}

.slide-highlight {
    background: linear-gradient(135deg, #C41E3A 0%, #e58082 50%, #ffe2e3 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.breadcrumb {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    background: rgba(255, 255, 255, 0.1);
    padding: 8px 10px;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.breadcrumb a {
    color: #fff;
    text-decoration: none;
}

.breadcrumb .active {
    font-weight: 600;
    color: #e58082;
}

/* Section Styling */
.page-section {
    padding: 70px 0;
}

.bg-gray {
    background: #f9f9f9;
}

h2 {
    color: #0d1e3a;
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
}

h2::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 60px;
    height: 4px;
    background: #C41E3A;
}

h3 {
    color: #0d1e3a;
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 20px;
}

p {
    margin-bottom: 20px;
    text-align: justify;
    color: #555;
}

/* Table Styling */
.table-wrap {
    width: 100%;
    overflow-x: auto;
    margin-bottom: 30px;
    border-radius: 8px;
    border: 1px solid #eee;
}

table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    min-width: 700px;
}

th {
    background: #0d1e3a;
    color: #fff;
    padding: 15px;
    text-align: left;
    font-size: 14px;
    text-transform: uppercase;
    border: 1px solid #1a2d4d;
}

td {
    padding: 12px 15px;
    border: 1px solid #eee;
    font-size: 14px;
    color: #444;
}

tr:nth-child(even) {
    background: #fcfcfc;
}

/* FAQ */
.faq-box {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 10px;
    margin-bottom: 15px;
    overflow: hidden;
}

.faq-header {
    padding: 18px 25px;
    background: #fdfdfd;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: 0.3s;
}

.faq-header:hover {
    background: #f1f1f1;
}

.faq-header h4 {
    font-size: 16px;
    font-weight: 600;
    color: #0d1e3a;
    margin: 0;
}

.faq-body {
    padding: 0 25px;
    max-height: 0;
    overflow: hidden;
    transition: 0.3s ease-out;
}

.faq-body p {
    padding: 20px 0;
    margin: 0;
    font-size: 15px;
}

/* CTA */
.cta-footer {
    background: linear-gradient(135deg, #f8f9fc 0%, #e8eaf0 100%);
    color: #333;
    padding: 60px 20px;
    text-align: center;
    border-radius: 15px;
    margin-top: 40px;
}

.btn-red {
    background: #C41E3A;
    color: #fff;
    text-decoration: none;
    padding: 15px 35px;
    border-radius: 5px;
    font-weight: 700;
    display: inline-block;
    transition: 0.3s;
    margin-top: 20px;
}

.btn-red:hover {
    background: #e58082;
    transform: translateY(-3px);
}

@media (max-width: 1024px) {
    .hero-section {
        min-height: 380px;
        padding: 80px 20px 50px;
    }
    .hero-content h1 {
        font-size: clamp(26px, 4vw, 44px);
    }
}

@media (max-width: 768px) {
    h2 {
        font-size: 26px;
    }
    .hero-section {
        margin-top: 60px;
        min-height: 320px;
        padding: 70px 15px 40px;
    }
    .hero-content h1 {
        font-size: clamp(22px, 5vw, 34px);
    }
    .breadcrumb {
        font-size: 12px;
        padding: 6px 10px;
        gap: 5px;
        flex-wrap: wrap;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .hero-section {
        min-height: 280px;
        padding: 65px 12px 35px;
    }
    .hero-content h1 {
        font-size: clamp(20px, 6vw, 28px);
    }
    .hero-content p {
        font-size: 13px;
    }
    .breadcrumb {
        font-size: 11px;
        gap: 4px;
    }
}

.footer-links a {
    color: #B0B0B0 !important;
    text-decoration: none !important;
    font-weight: 400 !important;
    border-bottom: none !important;
}

.footer-links a:hover {
    color: var(--primary-orange) !important;
    border-bottom: none !important;
}

/* Related Products Link Styles */
.table-wrap a {
    color: #C41E3A;
    text-decoration: none;
    font-weight: 600;
    border-bottom: 2px solid transparent;
    transition: border-bottom 0.3s ease;
}

.table-wrap a:hover {
    border-bottom: 2px solid #C41E3A;
}

/* Paragraph and List Link Styles */
p a, ul li a {
    color: #C41E3A;
    text-decoration: none;
    font-weight: 600;
    border-bottom: 2px solid transparent;
    transition: border-bottom 0.3s ease;
}

p a:hover, ul li a:hover {
    border-bottom: 2px solid #C41E3A;
}

.footer-links li a, .footer-links li a:hover {
    color: #B0B0B0;
    border-bottom: none !important;
    font-weight: 400;
}

.copyright a, .copyright a:hover {
    border-bottom: none !important;
}

.flanges-hero {
    background-image: url('img/flanges-hero.webp');
}

.buttweld-hero {
    background-image: url('img/buttweld hero.webp');
}

.pipes-hero {
    background-image: url('img/steelpipes-hero.webp');
}

.tubes-hero {
    background-image: url('img/steel-tubes-hero.webp');
}

.roundbar-hero {
    background-image: url('img/roundbar-hero.webp');
}

.other-steel-plates-hero {
    background-image: url('img/hero-section.webp');
}

/* Card Hover Styles */
.flange-card:hover {
    transform: translateY(-10px);
    border-color: #C41E3A !important;
}

.flange-card:hover img {
    transform: scale(1.1);
}

.flange-card:hover .about-btn {
    background: #C41E3A !important;
    box-shadow: 0 5px 15px rgba(196, 30, 58, 0.3);
}

/* Material Text Styling */
.material-text {
    font-size: 13px;
    color: #888;
    margin-top: 8px;
    display: block;
    font-weight: 400;
}

/* Products Grid Override */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
    margin-top: 4rem;
}

@media (max-width: 768px) {
    .products-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}