/* =========================================================
   PTE MODULES
   Uses your existing :root variables
========================================================= */

body {
    font-family: Arial, Helvetica, sans-serif;
    color: var(--text3);
    background: var(--light-bg);
    line-height: 1.7;
}

.pte-modules-section {
    padding: 90px 0;
    background: radial-gradient( circle at 10% 10%, rgba(255, 169, 0, 0.06), transparent 25%), linear-gradient(180deg, #ffffff 0%, var(--light-bg) 100%);
}


/* =========================================================
HEADING
========================================================= */

.pte-section-heading {
    position: relative;
    width: 100%;
    height: 100%;
    margin: 0 auto 60px;
    background: var(--primary);
    border-radius: var(--radius-md);
    padding-block: 5px;
}

.pte-section-heading>span {
    display: inline-block;
    margin-bottom: 12px;
    color: var(--white);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 2px;
}

.pte-section-heading h2 {
    margin: 0 0 16px;
    color: var(--white);
    font-size: clamp(34px, 5vw, 52px);
    font-weight: 800;
    line-height: 1.15;
}

.pte-section-heading h2 strong {
    color: var(--secondary);
}

.pte-section-heading p {
    max-width: 700px;
    margin: 0 auto;
    color: var(--secondary-light);
    font-size: 15px;
    line-height: 1.8;
}

.pte-heading-line {
    width: 80px;
    height: 3px;
    margin: 18px auto 0;
    background: var(--secondary);
}


/* =========================================================
   MAIN MODULE CARD
========================================================= */

.pte-module-card {
    position: relative;
    margin-bottom: 35px;
    overflow: hidden;
    background: var(--white);
    border: 1px solid var(--border3);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.pte-module-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}


/* =========================================================
   MODULE HEADER
========================================================= */

.pte-module-header {
    position: relative;
    display: flex;
    align-items: center;
    gap: 22px;
    padding: 32px 38px;
    border-bottom: 1px solid var(--border3);
}

.pte-module-header::after {
    content: "";
    position: absolute;
    left: 38px;
    bottom: -1px;
    width: 120px;
    height: 3px;
    background: var(--secondary);
}

.pte-module-icon {
    width: 72px;
    min-width: 72px;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 17px;
    font-size: 30px;
    transition: var(--transition);
}

.pte-module-card:hover .pte-module-icon {
    transform: translateY(-3px) rotate(-3deg);
}


/* =========================================================
   ICON VARIANTS
========================================================= */

.pte-module-icon.speaking {
    color: #72529b;
    background: #f2edf8;
}

.pte-module-icon.writing {
    color: #286cb2;
    background: #edf4fc;
}

.pte-module-icon.reading {
    color: #318c64;
    background: #edf8f2;
}

.pte-module-icon.listening {
    color: #e78b19;
    background: #fff5e9;
}


/* =========================================================
   HEADER TEXT
========================================================= */

.pte-module-header h3 {
    margin: 0 0 6px;
    color: var(--primary);
    font-size: 28px;
    font-weight: 800;
    text-transform: uppercase;
}

.pte-module-header h3 span {
    color: var(--secondary);
}

.pte-module-header p {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
}


/* =========================================================
   CONTENT
========================================================= */

.pte-module-content {
    padding: 38px;
}

.pte-module-intro {
    margin-bottom: 32px;
    color: var(--text3);
    font-size: 15px;
    line-height: 1.85;
}

.pte-module-intro strong {
    color: var(--primary);
}


/* =========================================================
   CONTENT BOX
========================================================= */

.pte-content-box {
    height: 100%;
    padding: 27px;
    background: var(--light-bg);
    border: 1px solid var(--border3);
    border-radius: var(--radius-md);
    transition: var(--transition);
}

.pte-content-box:hover {
    background: var(--white);
    border-color: rgba(255, 169, 0, 0.45);
    box-shadow: var(--shadow-sm);
    transform: translateY(-3px);
}

.pte-content-box h4 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    color: var(--primary);
    font-size: 17px;
    font-weight: 800;
}

.pte-content-box h4 i {
    color: var(--secondary);
    font-size: 20px;
}

.pte-content-box p {
    margin: 0 0 14px;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.8;
}

.pte-content-box p:last-child {
    margin-bottom: 0;
}


/* =========================================================
   SKILL LIST
========================================================= */

.pte-skill-list {
    padding: 0;
    margin: 0;
    list-style: none;
}

.pte-skill-list li {
    position: relative;
    padding-left: 27px;
    margin-bottom: 11px;
    color: var(--text3);
    font-size: 14px;
    line-height: 1.6;
}

.pte-skill-list li:last-child {
    margin-bottom: 0;
}

.pte-skill-list li::before {
    content: "\F26A";
    position: absolute;
    left: 0;
    top: 0;
    color: var(--secondary);
    font-family: "bootstrap-icons";
    font-size: 16px;
}


/* =========================================================
   QUESTION TYPES
========================================================= */

.pte-question-section {
    margin-top: 32px;
}

.pte-question-section>h4 {
    margin-bottom: 18px;
    color: var(--primary);
    font-size: 19px;
    font-weight: 800;
}

.pte-question-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.pte-question-grid span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 9px 15px;
    color: var(--primary);
    background: var(--white);
    border: 1px solid var(--border3);
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    transition: var(--transition);
}

.pte-question-grid span i {
    color: var(--secondary);
}

.pte-question-grid span:hover {
    color: var(--white);
    background: var(--primary);
    border-color: var(--primary);
    transform: translateY(-2px);
}

.pte-question-grid span:hover i {
    color: var(--secondary);
}


/* =========================================================
   STRATEGY BOX
========================================================= */

.pte-strategy-box {
    position: relative;
    overflow: hidden;
    margin-top: 32px;
    padding: 28px 30px;
    background: var(--primary);
    border-radius: var(--radius-md);
}

.pte-strategy-box::before {
    content: "";
    position: absolute;
    width: 240px;
    height: 240px;
    right: -100px;
    top: -130px;
    border-radius: 50%;
    background: rgba(255, 203, 129, 1)
}

.pte-strategy-box h4 {
    position: relative;
    z-index: 2;
    margin-bottom: 10px;
    color: var(--white);
    font-size: 18px;
    font-weight: 800;
}

.pte-strategy-box h4 i {
    margin-right: 8px;
    color: var(--secondary);
}

.pte-strategy-box p {
    position: relative;
    z-index: 2;
    max-width: 950px;
    margin: 0;
    color: var(--secondary-light);
    font-size: 14px;
    line-height: 1.8;
}


/* =========================================================
   BOTTOM BAR
========================================================= */

.pte-module-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-top: 30px;
    padding-top: 25px;
    border-top: 1px solid var(--border3);
    color: var(--primary);
    font-size: 14px;
    font-weight: 700;
}

.pte-module-bottom>div i {
    margin-right: 7px;
    color: var(--secondary);
}


/* =========================================================
   BUTTON
========================================================= */

.pte-module-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 23px;
    color: var(--primary-dark);
    background: var(--secondary);
    border-radius: 8px;
    font-size: 13px;
    font-weight: 800;
    transition: var(--transition);
}

.pte-module-btn:hover {
    color: var(--white);
    background: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 53, 55, 0.15);
}

.pte-module-btn i {
    transition: var(--transition);
}

.pte-module-btn:hover i {
    transform: translateX(4px);
}


/* =========================================================
   FINAL CTA
========================================================= */

.pte-final-cta {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    margin-top: 55px;
    padding: 40px 45px;
    background: var(--primary);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.pte-final-cta::before {
    content: "";
    position: absolute;
    width: 300px;
    height: 300px;
    right: -100px;
    top: -190px;
    border-radius: 50%;
    background: rgba(255, 203, 129, 1)
}

.pte-cta-small {
    position: relative;
    z-index: 2;
    display: block;
    margin-bottom: 7px;
    color: var(--secondary);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 2px;
}

.pte-final-cta h2 {
    position: relative;
    z-index: 2;
    margin: 0 0 7px;
    color: var(--white);
    font-size: 28px;
    font-weight: 800;
}

.pte-final-cta h2 strong {
    color: var(--secondary);
}

.pte-final-cta p {
    position: relative;
    z-index: 2;
    max-width: 650px;
    margin: 0;
    color: var(--secondary-light);
    font-size: 13px;
}


/* =========================================================
   CTA BUTTON
========================================================= */

.pte-cta-button {
    position: relative;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    flex-shrink: 0;
    padding: 14px 25px;
    color: var(--primary-dark);
    background: var(--secondary);
    border-radius: 8px;
    font-size: 13px;
    font-weight: 800;
    transition: var(--transition);
    border: 1px solid var(--primary-light);
}

.pte-cta-button:hover {
    color: var(--white);
    background: var(--primary-light);
    transform: translateY(-3px);
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 991px) {
    .pte-modules-section {
        padding: 70px 0;
    }
    .pte-module-header {
        padding: 28px;
    }
    .pte-module-content {
        padding: 28px;
    }
    .pte-final-cta {
        padding: 35px;
    }
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 767px) {
    .pte-modules-section {
        padding: 55px 12px;
    }
    .pte-section-heading {
        margin-bottom: 40px;
    }
    .pte-section-heading h2 {
        font-size: 32px;
    }
    .pte-section-heading p {
        font-size: 13px;
    }
    .pte-module-card {
        margin-bottom: 25px;
        border-radius: 20px;
    }
    .pte-module-header {
        align-items: flex-start;
        gap: 15px;
        padding: 22px;
    }
    .pte-module-header::after {
        left: 22px;
        width: 90px;
    }
    .pte-module-icon {
        width: 58px;
        min-width: 58px;
        height: 58px;
        border-radius: 14px;
        font-size: 25px;
    }
    .pte-module-header h3 {
        font-size: 22px;
    }
    .pte-module-header p {
        font-size: 12px;
    }
    .pte-module-content {
        padding: 22px;
    }
    .pte-module-intro {
        font-size: 14px;
    }
    .pte-content-box {
        padding: 21px;
    }
    .pte-content-box p,
    .pte-skill-list li {
        font-size: 13px;
    }
    .pte-question-grid span {
        font-size: 12px;
        padding: 8px 12px;
    }
    .pte-strategy-box {
        padding: 22px;
    }
    .pte-module-bottom {
        flex-direction: column;
        align-items: stretch;
    }
    .pte-module-btn {
        width: 100%;
    }
    .pte-final-cta {
        flex-direction: column;
        align-items: stretch;
        padding: 30px 22px;
        text-align: left;
        border-radius: 20px;
    }
    .pte-final-cta h2 {
        font-size: 24px;
    }
    .pte-cta-button {
        width: 100%;
    }
}


/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 480px) {
    .pte-section-heading h2 {
        font-size: 28px;
    }
    .pte-module-header {
        padding: 20px;
    }
    .pte-module-content {
        padding: 20px;
    }
    .pte-module-icon {
        width: 52px;
        min-width: 52px;
        height: 52px;
        font-size: 22px;
    }
    .pte-module-header h3 {
        font-size: 20px;
    }
    .pte-question-grid {
        flex-direction: column;
    }
    .pte-question-grid span {
        width: 100%;
        border-radius: 8px;
    }
}