/* takeourieltstest.css - Styles for Take Our IELTS Test Page */

/* Base Layout Wrapper */
:root {
    --ielts-tan-color: #e1b260;
    /*#d4a574;*/
    --intro-connector-radius-desktop: 0;
    --intro-connector-radius-mobile: 4px;
}

.taketest-page-wrapper {
    width: 100%;
    overflow-x: hidden;
    font-family: 'Montserrat', sans-serif;
}

/* ============================================
   SECTION 1: Hero with 3 Steps
   (Mirrors select.html structure with different colors)
   ============================================ */
.hero-steps-section {
    background-color: #ffffff;
    color: #0b2241;
    padding: 60px 20px;
    text-align: center;
}

.hero-heading {
    font-size: 40px;
    font-weight: 700;
    margin-bottom: 30px;
    color: #0b2241;
}

/* Hero Main Image */
.hero-image-wrapper {
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
}

.hero-main-image {
    max-width: 180px;
    height: auto;
}

/* Steps Container - matches select.html .steps-container */
.intro-steps-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: flex-start;
    gap: 0;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    padding: 0 20px;
}

/* Step Card - matches select.html .step-card */
.intro-step-card {
    flex: 1;
    min-width: 200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
}

/* Tan/Gold Pill - styled like select.html .step-title-pill but tan */
.intro-step-pill {
    background-color: var(--ielts-tan-color);
    color: #0b2241;
    padding: 0 15px;
    border-radius: 50px;
    font-weight: 500;
    font-size: 18px;
    margin-bottom: 25px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    width: 100%;
    height: 80px;
    line-height: 1.3;
}

.intro-step-pill strong {
    font-weight: 800;
    margin-right: 15px;
    /* Added spacing to separate Step X from text */
}

/* Step Image */
.intro-step-image {
    height: 160px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
}

/* Desktop Connector Line - tan colored */
.intro-connector-desktop {
    width: 50px;
    height: 8px;
    background-color: var(--ielts-tan-color);
    margin-top: 56px;
    /* Aligned to vertically center with the pill */
    display: none;
    flex-shrink: 0;
    border-radius: var(--intro-connector-radius-desktop);
}

/* Mobile Connector - vertical line with arrow */
.intro-connector-mobile {
    display: none;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.intro-line {
    width: 10px;
    height: 60px;
    background-color: var(--ielts-tan-color);
    margin-bottom: -2px;
    border-radius: var(--intro-connector-radius-mobile);
}

.intro-arrow-mobile {
    width: 40px;
    height: auto;
    display: block;
    margin-top: -1px;
    margin-bottom: 20px;
}

/* Section Divider Arrow */
.section-divider {
    display: flex;
    justify-content: center;
    width: 100%;
    margin-top: 50px;
    padding-bottom: 0;
}


/* ============================================
   SECTION 2: How This Helps You
   ============================================ */
.helps-section {
    background-color: var(--ielts-tan-color);
    padding: 60px 20px 80px;
}

.helps-heading {
    font-size: 48px;
    /* Increased heading size */
    font-weight: 400;
    text-align: center;
    color: #0b2241;
    margin-bottom: 80px;
    /* Increased margin */
}

.helps-heading strong {
    font-weight: 800;
}

/* Alternating Row Layout */
.helps-row {
    display: flex;
    align-items: center;
    /*flex-start;*/
    /*center for centering*/
    /* Aligned to top */
    justify-content: center;
    gap: 40px;
    /* Decreased gap */
    max-width: 700px;
    margin: 0 auto 80px;
}

.helps-row.reverse {
    flex-direction: row-reverse;
}

.helps-text {
    flex: 1;
    max-width: 500px;
    /* Increased text width */
    text-align: right;
    /* Default: Text on left, aligned right towards image */
}

/* Override for reverse row: Text on right, aligned left */
.helps-row.reverse .helps-text {
    text-align: left;
}

.helps-text p {
    font-size: 35px;
    /* Significantly larger text */
    font-weight: 400;
    color: #0b2241;
    line-height: 1.4;
    margin: 0;
}

.helps-text strong {
    font-weight: 800;
}

.helps-image {
    flex: 0 0 auto;
}

.helps-image img {
    max-height: 220px;
    /* Increased image size */
    height: auto;
    border-radius: 8px;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.1));
}

/* CTA Button/Text */
.helps-cta {
    text-align: center;
    margin-top: 60px;
}

.cta-text {
    font-size: 29px;
    font-weight: 800;
    color: #0b2241;
    display: inline-block;
    padding: 15px 40px;
    border: 3px solid #0b2241;
    border-radius: 50px;
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
    /* Ensure no underline for link */
}

.cta-text:hover {
    background-color: #0b2241;
    color: #ffffff;
}

/* Fade-in Animation for Second Section */
.fade-in-element {
    opacity: 0;
    transition: opacity 1.4s ease-in-out;
}

.fade-in-element.visible {
    opacity: 1;
}



/* ============================================
   SECTION 3: Selection Section 
   Scoped with .taketest-page-wrapper to prevent collision with select.css
   ============================================ */
.taketest-page-wrapper .selection-section {
    background: linear-gradient(135deg, #f0f8ff 0%, #e6f7ff 100%);
    padding: 60px 20px;
    text-align: center;
    position: relative;
    padding-top: 40px;
}

.taketest-page-wrapper .selection-heading {
    font-size: 40px;
    font-weight: 800;
    margin-bottom: 40px;
    color: #0b2241;
    text-transform: uppercase;
}

.taketest-page-wrapper .selection-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    max-width: 1300px;
    margin: 40px auto 0;
    align-items: flex-end;
}

.taketest-page-wrapper .selection-card {
    overflow: visible;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    background: transparent;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    border: 2px solid transparent;
}

.taketest-page-wrapper .selection-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    border-color: #4da6ff;
}

.taketest-page-wrapper .selection-card img {
    width: 100%;
    height: auto;
    display: block;
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
}

.taketest-page-wrapper .selection-card h3 {
    padding: 15px;
    margin: 0;
    font-size: 18px;
    color: #333;
    font-weight: 700;
}

.taketest-page-wrapper .recommended-badge {
    position: absolute;
    top: -15px;
    right: -10px;
    width: 40px;
    z-index: 20;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.taketest-page-wrapper .recommended-text {
    position: absolute;
    top: -30px;
    left: 0;
    right: 0;
    text-align: center;
    color: #0099ff;
    font-weight: 800;
    font-size: 15px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.taketest-page-wrapper .card-content {
    padding: 15px;
    background: #fff;
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
}

.taketest-page-wrapper .card-indicators {
    display: flex;
    justify-content: center;
    gap: 4px;
    margin-top: 8px;
}

.taketest-page-wrapper .bar {
    width: 25px;
    height: 6px;
    border-radius: 3px;
    background-color: #e0e0e0;
}

.taketest-page-wrapper .bar.yellow {
    background-color: #ffcc00;
}

.taketest-page-wrapper .bar.green {
    background-color: #00cc66;
}

.taketest-page-wrapper .bar.blue {
    background-color: #0099ff;
}

.taketest-page-wrapper .bar.red {
    background-color: #ff3333;
}

.taketest-page-wrapper .bar.gray {
    background-color: #e0e0e0;
}


/* ============================================
   SECTION: Band Score Section (from select.html)
   Scoped with .bandscore-wrapper to prevent collision with first section
   ============================================ */
.bandscore-wrapper .steps-section {
    background-color: #0b2241;
    color: #ffffff;
    padding: 60px 20px;
    text-align: center;
}

.bandscore-wrapper .steps-heading {
    font-size: 40px;
    font-weight: 700;
    margin-bottom: 50px;
    color: #ffffff;
    text-transform: uppercase;
}

.bandscore-wrapper .steps-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: flex-start;
    gap: 0;
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    padding: 0 20px;
}

.bandscore-wrapper .step-card {
    flex: 1;
    min-width: 250px;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
}

.bandscore-wrapper .step-link {
    display: block;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.bandscore-wrapper .step-link:hover {
    transform: scale(1.05);
}

.bandscore-wrapper .step-image {
    height: 180px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    margin-bottom: 25px;
}

.bandscore-wrapper .step-title-pill {
    background-color: #fff;
    color: #0b2241;
    text-decoration: none;
    padding: 0 10px;
    border-radius: 50px;
    font-weight: 800;
    text-transform: uppercase;
    font-size: 18px;
    margin-bottom: 25px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    width: 100%;
    height: 80px;
    line-height: 1.2;
    transition: background-color 0.3s ease, color 0.3s ease;
    cursor: pointer;
}

.bandscore-wrapper .step-title-pill:hover {
    background-color: #e6f7ff;
    color: #0b2241;
}

.bandscore-wrapper .step-price {
    font-size: 16px;
    font-weight: 600;
}

.bandscore-wrapper .step-price .original-price {
    text-decoration: line-through;
    color: #a0a0a0;
    margin-right: 10px;
}

.bandscore-wrapper .step-price .current-price {
    color: #ffffff;
    font-size: 22px;
    font-weight: 800;
}

.bandscore-wrapper .step-connector-desktop {
    width: 60px;
    height: 10px;
    background-color: #ffffff;
    margin-top: 55px;
    display: none;
    flex-shrink: 0;
}

.bandscore-wrapper .step-connector-mobile {
    display: none;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.bandscore-wrapper .step-line {
    width: 10px;
    height: 80px;
    background-color: #ffffff;
    margin-bottom: -2px;
}

.bandscore-wrapper .step-arrow-mobile {
    width: 40px;
    height: auto;
    display: block;
    margin-top: -1px;
    margin-bottom: 20px;
}

.bandscore-wrapper .section-divider {
    display: flex;
    justify-content: center;
    width: 100%;
    margin-top: 60px;
    padding-bottom: 0;
}


/* ============================================
   DESKTOP LAYOUT (1025px+)

   ============================================ */
@media (min-width: 1025px) {
    .intro-steps-container {
        flex-wrap: nowrap;
        width: 100%;
        max-width: 1400px;
        /* Increased width to accommodate larger elements */
        justify-content: center;
    }

    .intro-step-card {
        flex: 1;
        width: auto;
        min-width: 0;
        padding: 20px 0;
        max-width: 320px;
        /* Decreased width */
    }

    .intro-step-pill {
        width: 100%;
        font-size: 22px;
        /* Increased font size */
        padding: 0 20px;
        height: 120px;
        /* Increased height */
        line-height: 1.3;
        display: flex;
        align-items: center;
        justify-content: center;
        margin-bottom: -40px;
        /* Decreased gap between pill and image */
    }

    .intro-step-image {
        height: 200px;
        /* Increased image height */
        width: auto;
        max-width: 100%;
    }

    .intro-connector-desktop {
        display: block;
        flex: 0 0 50px;
        width: 50px;
        height: 8px;
        margin-top: 76px;
        /* Adjusted to align with new pill center (20px padding + 60px half pill - 4px half line) */
    }

    .intro-connector-mobile {
        display: none !important;
    }

    /* Band Score Section Desktop */
    .bandscore-wrapper .steps-container {
        flex-wrap: nowrap;
    }

    .bandscore-wrapper .step-card {
        flex: 1;
        width: auto;
        min-width: 0;
        padding: 20px 0;
    }

    .bandscore-wrapper .step-title-pill {
        display: flex;
        width: 100%;
        font-size: 17px;
        padding: 0 10px;
    }

    .bandscore-wrapper .step-connector-desktop {
        display: block;
        flex: 0 0 30px;
        width: 30px;
        height: 10px;
        margin-top: 55px;
    }

    .bandscore-wrapper .step-connector-mobile {
        display: none !important;
    }
}


/* ============================================
   MOBILE RESPONSIVENESS (max-width: 1024px)
   ============================================ */
@media (max-width: 1024px) {

    /* Hero Section Mobile - Timeline Layout like select.html */
    .hero-heading {
        font-size: 32px;
        padding: 0 20px;
    }

    .hero-main-image {
        max-width: 160px;
    }

    /* Steps Container - vertical timeline */
    .intro-steps-container {
        display: flex;
        flex-direction: column;
        position: relative;
        padding-left: 40px;
        margin-left: 20px;
    }

    /* The Continuous Vertical Line */
    .intro-steps-container::before {
        content: '';
        position: absolute;
        left: 0;
        top: 0;
        bottom: 0;
        width: 8px;
        background-color: var(--ielts-tan-color);
        border-radius: var(--intro-connector-radius-mobile);
    }

    /* Hide desktop connectors */
    .intro-connector-desktop {
        display: none !important;
    }

    /* Hide mobile arrow connectors (using timeline line instead) */
    .intro-connector-mobile {
        display: none !important;
    }

    .intro-step-card {
        width: 100%;
        max-width: none;
        padding-left: 20px;
        margin-bottom: 40px;
        text-align: center;
        align-items: stretch;
        display: flex;
        flex-direction: column;
    }

    .intro-step-pill {
        display: flex;
        width: calc(100% + 55px);
        min-width: 0;
        max-width: none;
        margin: 0 0 20px -55px;
        padding: 0 15px 0 50px;
        text-align: left;
        /* Changed to left align */
        height: auto;
        min-height: 80px;
        /* Increased min-height */
        border-radius: 0 50px 50px 0;
        justify-content: flex-start;
        /* Align content to start */
        align-self: flex-start;
        align-items: center;
    }

    .intro-step-pill strong {
        display: inline-block;
        width: min-content;
        text-align: center;
        line-height: 1.1;
        margin-right: 20px;
        /* Ensure spacing */
        font-size: 19px;
    }

    .intro-step-image {
        align-self: center;
        max-width: 280px;
        /* Increased from 180px */
        height: auto;
    }

    /* Section divider */
    .section-divider {
        margin-top: 30px;
    }

    /* "How this helps you" Section Mobile */
    .helps-heading {
        font-size: 29px;
        margin-bottom: 40px;
    }

    .helps-row,
    .helps-row.reverse {
        flex-direction: column;
        gap: 20px;
        text-align: center;
        margin-bottom: 40px;
    }

    .helps-text {
        max-width: 100%;
        text-align: center !important;
        /* Force center on mobile */
    }

    .helps-text p {
        font-size: 21px;
    }

    .helps-image img {
        max-height: 180px;
    }

    .cta-text {
        font-size: 22px;
        padding: 12px 30px;
    }

    /* Selection Grid Mobile */
    .taketest-page-wrapper .selection-grid {
        grid-template-columns: 1fr;
        max-width: 340px;
        margin: 70px auto 0;
        gap: 30px;
    }

    .taketest-page-wrapper .selection-heading {
        font-size: 32px;
    }

    .taketest-page-wrapper .selection-card {
        margin-bottom: 0;
    }

    /* Band Score Section Mobile - Vertical Timeline */
    .bandscore-wrapper .steps-container {
        display: flex;
        flex-direction: column;
        position: relative;
        padding-left: 40px;
        margin-left: 20px;
    }

    /* The Continuous Vertical Line */
    .bandscore-wrapper .steps-container::before {
        content: '';
        position: absolute;
        left: 0;
        top: 0;
        bottom: 0;
        width: 10px;
        background-color: #ffffff;
        border-radius: 5px;
    }

    .bandscore-wrapper .step-card {
        width: 100%;
        max-width: none;
        padding-left: 20px;
        margin-bottom: 40px;
        text-align: center;
        align-items: center;
    }

    .bandscore-wrapper .step-title-pill {
        display: flex;
        width: calc(100% + 55px);
        min-width: 0;
        max-width: none;
        margin: 0 0 20px -55px;
        padding: 0 10px 0 50px;
        text-align: center;
        height: auto;
        min-height: 60px;
        border-radius: 0 50px 50px 0;
        justify-content: center;
        font-size: 18px;
    }

    .bandscore-wrapper .step-image {
        align-self: center;
        max-width: 180px;
        height: auto;
    }

    .bandscore-wrapper .step-price {
        align-self: center;
    }

    .bandscore-wrapper .step-connector-desktop {
        display: none !important;
    }

    .bandscore-wrapper .step-connector-mobile {
        display: none !important;
    }

    .bandscore-wrapper .section-divider {
        margin-top: 30px;
    }
}



/* ============================================
   DESKTOP SCREENS (1024px+)
   ============================================ */
@media (min-width: 1024px) {

    /* Reorder Selection Cards: Complete Test (1) to Middle (3) */
    .taketest-page-wrapper .selection-card:nth-child(1) {
        order: 3;
        /* Complete Test */
    }

    .taketest-page-wrapper .selection-card:nth-child(2) {
        order: 1;
        /* Listening */
    }

    .taketest-page-wrapper .selection-card:nth-child(3) {
        order: 2;
        /* Reading */
    }

    .taketest-page-wrapper .selection-card:nth-child(4) {
        order: 4;
        /* Writing */
    }

    .taketest-page-wrapper .selection-card:nth-child(5) {
        order: 5;
        /* Speaking */
    }
}


/* ============================================
   EXTRA LARGE SCREENS (1400px+)
   ============================================ */
@media (min-width: 1400px) {
    .intro-connector-desktop {
        flex: 0 0 70px;
        width: 70px;
    }

    .intro-steps-container {
        max-width: 1500px;
    }

    .hero-heading {
        font-size: 48px;
    }
}