/* ========================================
   Listening Test Page Styles
   ======================================== */

:root {
    --primary-blue: #0086B3;
    --primary-blue-dark: #006d94;
    --primary-blue-light: #00a8e0;
    --tan-color: #D4A574;
    --tan-light: #e6c9a8;
    --white: #ffffff;
    --text-dark: #333;
    --text-muted: #666;
    --shadow-soft: 0 10px 40px rgba(0, 0, 0, 0.15);
    --shadow-strong: 0 15px 50px rgba(0, 0, 0, 0.25);
}

/* ----------------------------------------
   Hero Section
   ---------------------------------------- */
.hero-section {
    background: linear-gradient(135deg, var(--primary-blue-dark) 0%, var(--primary-blue) 50%, var(--primary-blue-light) 100%);
    padding: 100px 20px 80px;
    text-align: center;
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.hero-title {
    font-size: clamp(40px, 6vw, 72px);
    font-weight: 800;
    color: #ffffff !important;
    margin-bottom: 30px;
    line-height: 1.1;
    text-transform: uppercase;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-subtitle {
    font-size: clamp(24px, 4vw, 40px);
    font-weight: 700;
    color: #ffffff !important;
    margin-top: 40px;
    margin-bottom: 0;
    opacity: 0.95;
}

.hero-visual {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
}

.hero-arrow {
    width: 80px;
    height: auto;
    animation: arrow-bounce 2s ease-in-out infinite;
}

.hero-arrow:first-of-type {
    animation-delay: 0s;
}

.hero-arrow:last-of-type {
    animation-delay: 0.5s;
}

@keyframes arrow-bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(15px);
    }
}

.hero-main-image {
    width: 250px;
    height: auto;
}

/* ----------------------------------------
   General Section Styles
   ---------------------------------------- */
.section-title {
    font-size: clamp(32px, 5vw, 48px);
    font-weight: 900;
    text-align: center;
    margin-bottom: 70px;
    color: #2c3e50;
    text-transform: none;
    letter-spacing: normal;
    line-height: 1.2;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
}

.section-title.white-text {
    color: var(--white);
}

.section-padding {
    padding: 80px 20px;
}

.bg-white {
    background-color: var(--white);
}

.bg-blue {
    background-color: var(--primary-blue);
}

.container-narrow {
    max-width: 700px;
}

.container-medium {
    max-width: 900px;
}

/* ----------------------------------------
   Tan Boxes
   ---------------------------------------- */
.tan-box {
    background: linear-gradient(145deg, var(--tan-light) 0%, var(--tan-color) 100%);
    padding: 50px 40px;
    border-radius: 50px;
    color: var(--text-dark);
    box-shadow: var(--shadow-soft);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.tan-box:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-strong);
}

.tan-box-title {
    font-size: 29px;
    font-weight: normal;
    margin-bottom: 30px;
}

/* ----------------------------------------
   Book Comparison (Academic vs General)
   ---------------------------------------- */
.book-comparison {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    margin: 30px 0;
}

.book-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 180px;
}

.book-item img {
    height: 100px;
    width: auto;
    transition: transform 0.3s ease;
}

.book-item img:hover {
    transform: scale(1.1) rotate(3deg);
}

.book-item p {
    font-size: 19px;
    font-weight: 700;
    margin-top: 10px;
}

.equals-sign {
    font-size: 64px;
    font-weight: 800;
    color: var(--text-dark);
}

/* ----------------------------------------
   Parts Flow Cards
   ---------------------------------------- */
.parts-flow {
    width: 700px;
    max-width: calc(100vw - 40px);
    margin: 0 0 0 50%;
    transform: translateX(-50%);
    margin-top: 10px !important;
}

/* Mobile Responsive For Book Comparison */
@media (max-width: 600px) {
    .book-comparison {
        gap: 10px;
        margin: 20px 0;
    }

    .book-item {
        width: auto;
        flex: 1;
    }

    .book-item img {
        height: 60px;
    }

    .book-item p {
        font-size: 15px;
    }

    .equals-sign {
        font-size: 32px;
        margin-top: -20px;
        padding: 0 5px;
    }
}

/* Custom Animation for Arrows */
.pre-fade.fade-down-slow {
    transform: translateY(-10px);
    transition: opacity 0.5s ease-out, transform 1.5s ease-out;
}

.pre-fade.fade-down-slow.fade-in {
    transform: translateY(0);
}

.part-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 25px 40px;
    border-radius: 50px;
    margin: 10px 0;
    box-shadow: var(--shadow-soft);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.part-card:hover {
    transform: translateX(10px);
    box-shadow: var(--shadow-strong);
}

.part-card.blue {
    background: linear-gradient(135deg, var(--primary-blue-dark) 0%, var(--primary-blue) 100%);
    color: var(--white);
}

.part-card.tan {
    background: linear-gradient(135deg, var(--tan-light) 0%, var(--tan-color) 100%);
    color: var(--text-dark);
}

.part-content {
    flex: 1;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.part-label {
    font-size: 29px;
    font-weight: 800;
    margin-bottom: 5px;
    line-height: 1.2;
}

.part-desc {
    font-size: 24px;
    font-weight: 400;
    margin-bottom: 5px;
    line-height: 1.2;
}

.part-time {
    font-size: 19px;
    opacity: 0.9;
    font-weight: 600;
}

.part-icon {
    width: 140px;
    height: auto;
    transition: transform 0.3s ease;
}

.part-card:hover .part-icon {
    transform: scale(1.1);
}

/* ----------------------------------------
   Arrow Dividers
   ---------------------------------------- */
.arrow-down-divider {
    display: flex;
    justify-content: center;
    padding: 0;
    margin: 0;
}

.black-arrow {
    width: 60px;
    filter: brightness(0);
    display: block;
    margin: 0 auto;
}

.white-arrow {
    width: 60px;
    display: block;
    margin: 0 auto;
}

/* ----------------------------------------
   Info Note
   ---------------------------------------- */
.info-note p {
    font-size: 26px;
    font-weight: normal;
    line-height: 1.5;
    color: var(--text-dark);
    margin: 0;
}

.mt-medium {
    margin-top: 40px;
}

.mt-large {
    margin-top: 60px;
}

.mt-small {
    margin-top: 15px;
}

/* ----------------------------------------
   OUR TEST Section
   ---------------------------------------- */

/* White box for test intro */
.exam-white-box {
    background: var(--white);
    padding: 40px 50px;
    border-radius: 40px;
    max-width: 600px;
    margin: 0 auto;
    box-shadow: var(--shadow-soft);
}

.exam-box-text {
    font-size: 26px;
    line-height: 1.5;
    color: var(--primary-blue);
    margin: 0;
}

.blue-highlight {
    color: var(--primary-blue);
    font-weight: 800;
}

/* White text below the white box */
.exam-blue-text {
    max-width: 550px;
    margin-left: auto;
    margin-right: auto;
}

.exam-blue-text p {
    color: var(--white);
    font-size: 21px;
    line-height: 1.5;
    margin: 0;
}

.large-text {
    font-size: 24px;
    line-height: 1.5;
}

.exam-screenshot {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.exam-screenshot::before,
.exam-screenshot::after {
    content: '';
    flex: 1;
    height: 2px;
    background: rgba(255, 255, 255, 0.3);
    max-width: 100px;
}

.exam-interface-img {
    max-width: 400px;
    width: 100%;
    height: auto;
    border-radius: 20px;
    box-shadow: var(--shadow-strong);
}

/* Note box for listening test */
.exam-note-box {
    background: var(--white);
    padding: 40px 50px;
    border-radius: 40px;
    max-width: 700px;
    margin: 60px auto 0;
    box-shadow: var(--shadow-soft);
}

.exam-note-box p {
    font-size: 26px;
    line-height: 1.5;
    color: var(--text-dark);
    margin: 0;
}

/* ----------------------------------------
   What to Do Section
   ---------------------------------------- */
.what-to-do-section {
    background: var(--white);
    padding: 80px 20px;
}

.what-to-do-intro {
    padding: 40px 50px;
}

.what-to-do-intro p {
    font-size: 22px;
    margin: 0;
}

/* Audio Section Grid (matching test_read.css style) */
.audio-section-grid {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    max-width: 400px;
    margin: 40px auto;
}

.audio-section-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 25px;
    background: #f5f5f5;
    border-radius: 15px;
    transition: transform 0.2s ease, background 0.2s ease;
    width: 100%;
}

.audio-section-item:hover {
    transform: translateX(5px);
    background: #eee;
}

.audio-section-icon {
    width: 40px;
    height: auto;
}

.audio-section-item p {
    font-size: 18px;
    color: var(--text-dark);
    font-weight: 500;
    margin: 0;
}

/* You Should Box for Listening page (same as Speaking) */
.you-should-box-listen {
    background: var(--primary-blue);
    border-radius: 40px;
    padding: 40px 50px;
    box-shadow: var(--shadow-soft);
}

.you-should-box-listen .you-should-title {
    color: var(--white);
    font-size: 32px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 30px;
}

.you-should-box-listen .you-should-items {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 60px;
}

.you-should-box-listen .you-should-item {
    flex: 1;
    max-width: 220px;
    text-align: center;
}

.you-should-box-listen .you-should-image {
    display: block;
    width: 140px;
    height: auto;
    margin: 0 auto 20px;
}

.you-should-box-listen .you-should-item p {
    color: var(--white);
    font-size: 18px;
    line-height: 1.5;
    margin: 0;
}

.you-should-box-listen .you-should-item .underline {
    text-decoration: underline;
    font-weight: 700;
}

/* Time Notice Box for Listening page */
.time-notice-box-listen {
    padding: 40px 50px;
}

.time-notice-box-listen p {
    font-size: 22px;
    font-style: italic;
    margin: 0;
}

/* ----------------------------------------
   Get Ready Section - Listening Page
   ---------------------------------------- */
.get-ready-section-listen {
    background: linear-gradient(135deg, var(--primary-blue-dark) 0%, var(--primary-blue) 50%, var(--primary-blue-light) 100%);
    padding: 100px 20px 60px;
    position: relative;
}

/* Ready Banner (Note Box) */
.ready-banner {
    background: transparent;
    padding: 20px;
    max-width: 800px;
    margin: 40px auto 10px;
}

.ready-banner .highlight {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 0;
    color: var(--text-dark);
    background: linear-gradient(to bottom, #ffffff, #fff5f5);
    display: inline-block;
    padding: 35px 50px;
    border-radius: 20px;
    border: none;
    line-height: 1.5;
    box-shadow: 0 15px 40px rgba(183, 28, 28, 0.15);
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
    transform-origin: center;
}

.ready-banner .highlight .red-text {
    color: #b71c1c;
    font-weight: 800;
}

.ready-banner .highlight .block-line {
    display: block;
    margin-top: 10px;
}

.ready-banner .highlight::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 6px;
    background: linear-gradient(90deg, #ef5350, #b71c1c);
}

.ready-banner .highlight::before {
    content: '📝';
    display: block;
    font-size: 40px;
    margin-bottom: 15px;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.1));
    animation: pulse-icon 2s ease-in-out infinite;
}

@keyframes pulse-icon {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.2);
    }
}

.ready-banner p:not(.highlight) {
    font-size: 19px;
    font-weight: 800;
    color: var(--text-dark);
    margin-top: 10px;
    margin-bottom: -15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ----------------------------------------
   CTA Area
   ---------------------------------------- */
.cta-area {
    position: relative;
    z-index: 5;
}

.ready-instructions-wrapper {
    background: linear-gradient(135deg, #00eba1 0%, #00d65b 100%);
    padding: 30px;
    border-radius: 60px;
    max-width: 700px;
    margin: 30px auto 50px;
    box-shadow: 0 10px 30px rgba(0, 214, 91, 0.3);
    position: relative;
    z-index: 5;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.ready-instructions-wrapper:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 45px rgba(0, 214, 91, 0.4);
}

.ready-instructions-content {
    background: var(--white);
    border-radius: 40px;
    padding: 40px;
}

.ready-instructions-content p {
    font-size: 21px;
    line-height: 1.5;
    color: var(--text-dark);
    margin-bottom: 0;
}

.ready-instructions-content .final-wish {
    font-weight: 900;
    font-size: 29px;
    margin-top: 20px;
    color: #2c3e50;
}

/* Large CTA Button */
.btn-primary.large {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(90deg, #16a34a 0%, #22c55e 50%, #16a34a 100%);
    background-size: 200% 100%;
    color: #fff;
    font-size: 24px;
    font-weight: 800;
    padding: 20px 60px;
    border-radius: 50px;
    text-decoration: none;
    box-shadow: 0 10px 30px rgba(22, 163, 74, 0.3);
    opacity: 1;
    transition: transform 0.1s ease, box-shadow 0.1s ease, opacity 0.1s ease;
    animation: shimmer-green 6s ease-in-out infinite;
}

@keyframes shimmer-green {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 400% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.btn-primary.large:hover {
    animation: none;
    background: linear-gradient(135deg, #16a34a 0%, #22c55e 100%) !important;
    background-size: 100% 100% !important;
    transform: scale(1.05);
    opacity: 1;
    box-shadow: 0 15px 40px rgba(22, 163, 74, 0.5);
}

.btn-primary.large:active {
    transform: translateY(0) scale(0.98);
    box-shadow: 0 5px 15px rgba(22, 163, 74, 0.4);
    opacity: 0.9;
}

.disclaimer-text {
    font-size: 15px;
    color: #f9f9f9;
    margin-top: 45px;
    margin-bottom: 0;
    max-width: 750px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.5;
    font-style: italic;
    opacity: 0.8;
    text-align: center;
}

.main-footer {
    padding-top: 30px !important;
}

/* ----------------------------------------
   Responsive Design
   ---------------------------------------- */
@media (max-width: 768px) {
    .hero-visual {
        flex-direction: column;
        gap: 20px;
    }

    .hero-arrow {
        width: 50px;
    }

    .equals-sign {
        font-size: 48px;
    }

    .part-card {
        flex-direction: column;
        text-align: center;
        gap: 20px;
        padding: 25px 30px;
    }

    .part-content {
        text-align: center;
    }

    .part-icon {
        width: 110px;
    }

    .you-should-box-listen {
        padding: 30px 20px;
    }

    .you-should-box-listen .you-should-items {
        flex-direction: column;
        align-items: center;
        gap: 40px;
    }

    .you-should-box-listen .you-should-image {
        width: 160px;
        margin: 0 auto 15px auto;
        display: block;
    }

    .you-should-box-listen .you-should-item {
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
        max-width: 100%;
    }

    .audio-cards-container {
        flex-direction: column;
        align-items: center;
    }

    .audio-card {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }
}

/* Mobile Fixes for Icons, Green Box, Button (<450px) */
@media (max-width: 450px) {

    /* 2. Green Box (Ready Instructions) */
    .ready-instructions-wrapper {
        padding: 15px !important;
    }

    .ready-instructions-content {
        padding: 20px !important;
    }

    .ready-instructions-content p {
        font-size: clamp(16px, 5vw, 20px) !important;
        line-height: 1.4 !important;
    }

    /* 3. Warning Text (Ready Banner) */
    .ready-banner .highlight {
        padding: 20px !important;
        font-size: clamp(14px, 4vw, 18px) !important;
        width: 100%;
        box-sizing: border-box;
        margin-bottom: 5px !important;
    }

    /* Reduce wrapper margins */
    .ready-banner {
        margin-bottom: 0px !important;
    }

    .cta-area {
        margin-top: 10px !important;
        /* massive reduction from mt-large */
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
    }

    /* Reduce top margin of the green box wrapper if needed */
    .ready-instructions-wrapper {
        margin-top: 5px !important;
        /* Likely key to reducing the gap */
    }

    /* 4. CTA Button & Disclaimer */

    .btn-primary.large {
        display: inline-flex !important;
        width: auto !important;
        max-width: 90%;
        margin: 0 0 20px 0 !important;
        padding: 15px 40px !important;
        font-size: clamp(18px, 5vw, 22px) !important;
        box-sizing: border-box;
    }

    .disclaimer-text {
        font-size: clamp(11px, 3.5vw, 14px) !important;
        line-height: 1.4;
        opacity: 0.8;
        text-align: center;
    }

    /* Info Card Title Scaling */
    .tan-box-title {
        font-size: clamp(20px, 5vw, 29px) !important;
        font-weight: normal !important;
    }

    /* Info Note Text Scaling */
    .info-note p {
        font-size: clamp(16px, 4vw, 26px) !important;
        font-weight: normal !important;
    }

    /* NOTE: Real IELTS Test Box Scaling */
    .exam-note-box {
        padding: 20px 25px !important;
    }

    .exam-note-box p {
        font-size: clamp(16px, 4vw, 26px) !important;
        line-height: 1.4 !important;
    }

    /* What to Do Intro Text Scaling */
    .what-to-do-intro {
        padding: 20px 25px !important;
    }

    .what-to-do-intro p {
        font-size: clamp(16px, 4vw, 22px) !important;
    }
}