/* Hero Section */
.magadh-coil-hero {
    position: relative;
    background: url("../images/magadhcoil.webp") center/cover no-repeat;
    height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

/* Overlay */
.magadh-coil-hero-overlay {
    background: rgba(0, 0, 0, 0.55);
    padding: 30px 40px;
    border-radius: 12px;
    animation: magadh-coil-fadeIn 2s ease-in-out;
}

/* Title */
.magadh-coil-hero-title {
    font-size: 42px;
    color: #fff;
    font-weight: 700;
}

.magadh-coil-hero-title span {
    color: #ee1d24;
    /* Magadh Brand Red */
}

/* Subtitle */
.magadh-coil-hero-subtitle {
    font-size: 18px;
    color: #ddd;
    margin-top: 10px;
}

/* Fade-in Animation */
@keyframes magadh-coil-fadeIn {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */

/* Tablets */
@media (max-width: 992px) {
    .magadh-coil-hero {
        height: 50vh;
    }

    .magadh-coil-hero-title {
        font-size: 32px;
    }

    .magadh-coil-hero-subtitle {
        font-size: 16px;
    }
}

/* Mobile Phones */
@media (max-width: 768px) {
    .magadh-coil-hero {
        height: 45vh;
        padding: 0 15px;
    }

    .magadh-coil-hero-title {
        font-size: 26px;
    }

    .magadh-coil-hero-subtitle {
        font-size: 14px;
    }
}

/* Small Mobile Screens */
@media (max-width: 480px) {
    .magadh-coil-hero {
        height: 40vh;
    }

    .magadh-coil-hero-title {
        font-size: 22px;
    }

    .magadh-coil-hero-subtitle {
        font-size: 13px;
    }
}



/* Magadh Coil Content Section */
.magadh-coil-content {
    padding: 60px 6%;
    background: #fff;
}

.magadh-coil-text {
    max-width: 900px;
    margin: 0 auto;
    text-align: justify;
}

.magadh-coil-text h2 {
    font-size: 28px;
    font-weight: 700;
    color: var(--brand-blue);
    margin-bottom: 20px;
}

.magadh-coil-text h2 span {
    color: var(--brand-red);
}

.magadh-coil-text p {
    margin-bottom: 16px;
    line-height: 1.7;
    font-size: 16px;
    color: #444;
    animation: magadh-coil-fadeInUp 0.8s ease forwards;
    opacity: 0;
}

/* Staggered animation for paragraphs */
.magadh-coil-text p:nth-child(2) {
    animation-delay: 0.2s;
}

.magadh-coil-text p:nth-child(3) {
    animation-delay: 0.4s;
}

.magadh-coil-text p:nth-child(4) {
    animation-delay: 0.6s;
}

.magadh-coil-text p:nth-child(5) {
    animation-delay: 0.8s;
}

/* Fade-in-up keyframes */
@keyframes magadh-coil-fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .magadh-coil-text h2 {
        font-size: 24px;
    }

    .magadh-coil-text p {
        font-size: 15px;
    }
}

@media (max-width: 480px) {
    .magadh-coil-text h2 {
        font-size: 20px;
    }

    .magadh-coil-text p {
        font-size: 14px;
    }
}


.magadh-coil-product-range {
    padding: 50px 6%;
    background: #fff;
}

.magadh-coil-product-range h2 {
    font-size: 28px;
    font-weight: 700;
    color: var(--brand-blue);
    text-align: center;
    margin-bottom: 30px;
}

.magadh-coil-product-range h2 span {
    color: var(--brand-red);
}

/* Grid */
.magadh-coil-sizes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 15px;
}

/* Cards */
.magadh-coil-card {
    background: #242176;
    color: #fff;
    padding: 15px 12px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: all 0.4s ease;
    cursor: pointer;
}

/* Hover Gradient */
.magadh-coil-card:hover {
    background: linear-gradient(135deg, #242176, #ee1d24);
    transform: translateY(-5px);
}

/* Card Titles */
.magadh-coil-card h3 {
    font-size: 40px;
    margin-bottom: 8px;
    font-weight: 700;
}

/* Card Text */
.magadh-coil-card p {
    font-size: 18px;
    line-height: 1.4;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .magadh-coil-sizes-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .magadh-coil-sizes-grid {
        grid-template-columns: 1fr;
    }

    .magadh-coil-card h3 {
        font-size: 25px;
    }

    .magadh-coil-card p {
        font-size: 15px;
    }
}


/* Magadh Coil Advantages Section */
.magadh-coil-advantages {
    padding: 60px 6%;
    background: #fff;
}

.magadh-coil-advantages h2 {
    font-size: 32px;
    font-weight: 700;
    color: #242176;
    /* Magadh Blue */
    text-align: center;
    margin-bottom: 40px;
}

/* Target h3 in advantages cards */
.magadh-coil-adv-card h3 {
    color: #ee1d24;
    /* Magadh Red */
    margin-bottom: 12px;
    /* optional spacing */
    font-size: 20px;
    /* adjust as needed */
}

/* Change color on card hover */
.magadh-coil-adv-card:hover h3 {
    color: #fff;
    /* White on hover */
}

.magadh-coil-advantages h2 span {
    color: #ee1d24;
    /* Magadh Red */
}

.magadh-coil-adv-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.magadh-coil-adv-card {
    background: #242176;
    color: #fff;
    padding: 25px 20px;
    border-radius: 12px;
    text-align: center;
    transition: all 0.4s ease;
    cursor: default;
    opacity: 0;
    /* start invisible */
    transform: translateY(30px);
    /* start slightly below */
    animation: fadeUp 0.8s forwards;
}

/* Hover Gradient Effect */
.magadh-coil-adv-card:hover {
    background: linear-gradient(135deg, #ee1d24, #242176);
    transform: translateY(-5px) scale(1.03);
}

/* Staggered animation using nth-child */
.magadh-coil-adv-card:nth-child(1) {
    animation-delay: 0.2s;
}

.magadh-coil-adv-card:nth-child(2) {
    animation-delay: 0.4s;
}

.magadh-coil-adv-card:nth-child(3) {
    animation-delay: 0.6s;
}

.magadh-coil-adv-card:nth-child(4) {
    animation-delay: 0.8s;
}

.magadh-coil-adv-card:nth-child(5) {
    animation-delay: 1s;
}

.magadh-coil-adv-card:nth-child(6) {
    animation-delay: 1.2s;
}

/* Fade-up Animation Keyframes */
@keyframes fadeUp {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */

/* Tablets */
@media (max-width: 992px) {
    .magadh-coil-advantages h2 {
        font-size: 28px;
    }
}

/* Mobile Phones */
@media (max-width: 768px) {
    .magadh-coil-adv-grid {
        grid-template-columns: repeat(2, 1fr);
        /* 2 columns on mobile */
        gap: 15px;
    }

    .magadh-coil-advantages h2 {
        font-size: 24px;
    }

    .magadh-coil-adv-card {
        padding: 20px 15px;
        font-size: 14px;
    }
}

/* Small Mobile Screens */
@media (max-width: 480px) {
    .magadh-coil-adv-grid {
        grid-template-columns: 1fr;
        /* 1 column on very small screens */
    }

    .magadh-coil-advantages h2 {
        font-size: 20px;
    }

    .magadh-coil-adv-card {
        padding: 15px 10px;
        font-size: 13px;
    }
}