/* ============================================================
   IAL REVISION COURSE � Dedicated Page Styles
   ITS Education Asia Design System
   (Aligned to official brand palette: 8 primary colours + derived tints/darks)
   Dom. Blue:  #0067AC   Light Blue: #00A4E4   Dark Blue: #003A63
   Green:      #01A355   Purple:     #6B1FAD   Orange:    #CC4E00
   Teal:       #168CA1   Gold:       #CEA82C
   ============================================================ */
:root {
    --blue:        #0067AC;
    --dark-blue:   #003A63;
    --mid-blue:    #005188;
    --cyan:        #00A4E4;
    --light-blue:  #00A4E4;
    --light-bg:    #E8F4FC;
    --grey-bg:     #f8f9fa;
    --text:        #333;
    --grey:        #666;
    --white:       #fff;

    --green:       #01A355;
    --green-tint:  #E9F8EF;
    --green-dark:  #016B38;

    --gold:        #CEA82C;
    --gold-tint:   #FDF6E4;
    --gold-dark:   #8B721D;

    --purple:      #6B1FAD;
    --purple-tint: #F3EBFC;
    --purple-dark: #4A1578;

    --orange:      #CC4E00;
    --orange-tint: #FFF3EB;
    --orange-dark: #993B00;

    --teal:        #168CA1;
    --teal-tint:   #E6F5F7;
    --teal-dark:   #0E6171;
}

*, *::before, *::after { box-sizing: border-box; }

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text);
    overflow-x: hidden;
    background: #fff;
    margin: 0;
}

h1, h2, h3, h4, h5, h6 { font-family: 'Poppins', sans-serif; }

a { color: var(--blue); text-decoration: none !important; }
a:hover { color: var(--mid-blue); }

/* ---- PAGE CONTENT WRAPPER (no sidebar, single column) ---- */
.page-content {
    max-width: 1200px;
    margin: 0 auto;
}

/* ---- HERO SECTION ---- */
.hero {
    background: var(--dark-blue);
    color: #fff;
    padding: 40px 24px 36px;
    position: relative;
    overflow: hidden;
    border-bottom: 4px solid var(--cyan);
    text-align: center;
}
.hero .wrap { max-width: 900px; margin: 0 auto; position: relative; }
.hero h1 {
    font-size: clamp(1.7rem, 3.6vw, 2.7rem);
    font-weight: 700;
    color: #fff;
    line-height: 1.25;
    margin: 0 0 20px;
}
.hero .btn-row { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.hero .btn-cta {
    display: inline-block;
    background: #fff;
    color: var(--dark-blue);
    font-weight: 700;
    font-size: 1rem;
    padding: 13px 28px;
    border-radius: 6px;
    transition: all 0.2s;
    border: 2px solid transparent;
    cursor: pointer;
}
.hero .btn-cta:hover { background: var(--gold); color: var(--dark-blue); }
.hero .btn-cta.ghost {
    background: transparent;
    color: #fff;
    border-color: rgba(255,255,255,0.5);
}
.hero .btn-cta.ghost:hover { background: rgba(255,255,255,0.15); border-color: #fff; }

/* Enrol Now CTA � brand-wide orange call-to-action colour */
.btn-orange {
    background: var(--orange) !important;
    color: #fff !important;
}
.btn-orange:hover { background: var(--orange-dark) !important; color: #fff !important; }

/* ---- QUICK LINKS PILL ROW ---- */
.quick-nav {
    /* background: var(--light-bg); */
    padding: 26px 24px;
}
.quick-nav-row {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    justify-content: center;
    max-width: 1000px;
    margin: 0 auto;
}
.quick-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #fff;
    color: var(--blue);
    border: 1px solid var(--blue);
    font-size: 13px;
    font-weight: 600;
    padding: 10px 18px;
    border-radius: 30px;
    transition: all 0.2s;
}
.quick-pill:hover { background: var(--blue); color: #fff !important; transform: translateY(-2px); }
.quick-pill i { font-size: 12px; }

/* ---- STATS BAR ---- */
.stats-bar {
    background: var(--mid-blue);
    padding: 20px 20px;
}
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 20px;
    max-width: 1100px;
    margin: auto;
}
.stat-item { text-align: center; }
.stat-item .num {
    font-size: 2.1rem;
    font-weight: 700;
    color: #fff;
    line-height: 1;
}
.stat-item .num.gold { color: var(--gold); }
.stat-item .num.green { color: #3fe08f; }
.stat-item .label { font-size: 12px; color: #d6e8f7; margin-top: 6px; line-height: 1.4; }

/* ---- SECTION COMMONS ---- */
.section { padding: 40px 24px; }
.section-light { background: var(--grey-bg); }
.section-blue { background: var(--light-bg); }
.wrap-lg { max-width: 1140px; margin: auto; }
.section-title {
    font-size: clamp(1.5rem, 4vw, 2.2rem);
    font-weight: 700;
    line-height: 1.2;
    color: var(--blue);
    text-align: center;
    margin: 0 auto 10px;
}
.section-sub {
    color: var(--grey);
    font-size: clamp(0.95rem, 2vw, 1.05rem);
    line-height: 1.7;
    max-width: 720px;
    text-align: center;
    margin: 0 auto 16px;
}

/* ---- INTRO SPLIT ---- */
.intro-split {
    display: grid;
    grid-template-columns: 1.4fr 0.8fr;
    gap: 40px;
    align-items: center;
}
@media (max-width: 768px) { .intro-split { grid-template-columns: 1fr; gap: 24px; } }
.intro-split .section-title { text-align: left; margin: 0 0 8px; }
.intro-split .img-frame {
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 6px 24px rgba(0,55,96,0.12);
    padding: 24px;
}
.intro-split .img-frame img {
    width: 100%;
    height: auto;
    object-fit: contain;
}
.intro-split .pearson-caption {
    font-size: 13px;
    color: var(--dark-blue);
    font-weight: 600;
    line-height: 1.6;
    text-align: center;
    margin: 14px 0 10px;
}
.intro-split .meet-team-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--light-bg);
    color: var(--blue);
    font-size: 13px;
    font-weight: 600;
    padding: 9px 18px;
    border-radius: 30px;
    transition: all 0.2s;
}
.intro-split .meet-team-link:hover { background: var(--blue); color: #fff !important; }

/* ---- SUBJECTS GRID ---- */
.subjects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
    margin-top: 14px;
}
.subject-card {
    background: #fff;
    border-radius: 12px;
    padding: 24px 16px;
    text-align: center;
    box-shadow: 0 2px 16px rgba(0,55,96,0.08);
    border-top: 4px solid var(--blue);
    transition: transform 0.2s, box-shadow 0.2s;
}
.subject-card:hover { transform: translateY(-4px); box-shadow: 0 10px 28px rgba(0,55,96,0.14); }
.subject-card .icon-circle {
    width: 54px; height: 54px;
    margin: 0 auto 14px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem;
    background: var(--light-bg);
    color: var(--blue);
}
.subject-card h4 { font-size: 1rem; font-weight: 700; color: var(--dark-blue); margin: 0; }
.subject-card:nth-child(5n+1) .icon-circle { background: var(--light-bg); color: var(--blue); }
.subject-card:nth-child(5n+1) { border-top-color: var(--blue); }
.subject-card:nth-child(5n+2) .icon-circle { background: var(--green-tint); color: var(--green); }
.subject-card:nth-child(5n+2) { border-top-color: var(--green); }
.subject-card:nth-child(5n+3) .icon-circle { background: var(--orange-tint); color: var(--orange); }
.subject-card:nth-child(5n+3) { border-top-color: var(--orange); }
.subject-card:nth-child(5n+4) .icon-circle { background: var(--teal-tint); color: var(--teal); }
.subject-card:nth-child(5n+4) { border-top-color: var(--teal); }
.subject-card:nth-child(5n+5) .icon-circle { background: var(--purple-tint); color: var(--purple); }
.subject-card:nth-child(5n+5) { border-top-color: var(--purple); }

/* ---- GAIN GRID ---- */
.gain-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    margin-top: 10px;
}
.gain-card {
    background: #fff;
    border-radius: 10px;
    padding: 22px 16px;
    text-align: center;
    box-shadow: 0 2px 12px rgba(0,55,96,0.07);
    border-top: 3px solid var(--cyan);
    transition: transform 0.2s;
}
.gain-card:hover { transform: translateY(-3px); }
.gain-card .icon-circle {
    width: 44px; height: 44px;
    margin: 0 auto 12px;
    background: var(--light-bg);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.15rem;
    color: var(--cyan);
}
.gain-card h4 { font-size: 0.98rem; font-weight: 700; color: var(--dark-blue); margin: 0; }

/* ---- FORMAT / HOW-IT-WORKS STEPS ---- */
.process-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0;
    margin: 24px 0 0;
    position: relative;
}
.process-grid::before {
    content: '';
    position: absolute;
    top: 30px;
    left: 10%;
    right: 10%;
    height: 2px;
    background: linear-gradient(to right, var(--blue), var(--cyan));
    z-index: 0;
}
@media (max-width: 600px) { .process-grid::before { display: none; } }
.step {
    text-align: center;
    position: relative;
    z-index: 1;
    padding: 0 12px;
}
.step .n {
    width: 60px; height: 60px;
    border-radius: 50%;
    background: var(--blue);
    color: #fff;
    font-size: 1.3rem;
    font-weight: 700;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 14px;
    box-shadow: 0 4px 14px rgba(0,103,172,0.35);
}
.step h3 { font-size: 1rem; font-weight: 700; color: var(--dark-blue); margin-bottom: 6px; }
.step p { font-size: 14px; color: #555; line-height: 1.55; }

/* ---- SCHEDULE / TIMETABLE (INTERACTIVE, PLAIN DISPLAY) ---- */
.poster-plain {
    text-align: center;
}
.poster-plain h2 { color: var(--blue); font-size: clamp(1.4rem, 3.4vw, 2rem); margin-bottom: 10px; }
.poster-plain p.sub { color: var(--grey); max-width: 640px; margin: 0 auto 18px; line-height: 1.7; font-size: 15px; }
.poster-frame {
    position: relative;
    display: inline-block;
    max-width: 100%;
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 10px 32px rgba(0,55,96,0.18);
    border: 1px solid #e3edf5;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.poster-frame:hover { transform: translateY(-4px) scale(1.005); box-shadow: 0 16px 42px rgba(0,55,96,0.26); }
.poster-frame img { width: 100%; display: block; }
.poster-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,20,40,0.82) 0%, rgba(0,20,40,0.15) 45%, rgba(0,20,40,0) 70%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.25s ease;
}
.poster-frame:hover .poster-overlay,
.poster-frame:focus .poster-overlay { opacity: 1; }
.poster-overlay .overlay-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    color: var(--dark-blue);
    font-weight: 700;
    font-size: 14px;
    padding: 10px 20px;
    border-radius: 30px;
    margin-bottom: 6px;
}
.poster-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 22px;
}
.poster-actions .btn-outline-its {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    border: 2px solid var(--blue);
    color: var(--blue);
    font-weight: 600;
    font-size: 14px;
    padding: 10px 22px;
    border-radius: 6px;
    transition: all 0.2s;
    cursor: pointer;
}
.poster-actions .btn-outline-its:hover { background: var(--blue); color: #fff; }

/* ---- LIGHTBOX MODAL FOR POSTER ---- */
.its-lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0,15,30,0.9);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
}
.its-lightbox.open { display: flex; }
.its-lightbox-inner {
    position: relative;
    max-width: 900px;
    width: 100%;
    max-height: 92vh;
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.its-lightbox-header {
    background: var(--dark-blue);
    color: #fff;
    padding: 14px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.its-lightbox-header h3 { color: #fff; font-size: 1rem; margin: 0; font-weight: 700; }
.its-lightbox-close {
    background: none;
    border: none;
    color: #fff;
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
    padding: 0 4px;
}
.its-lightbox-body {
    overflow: auto;
    padding: 0;
    background: #eef3f7;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
}
.its-lightbox-body img { width: 100%; height: auto; display: block; }
.its-lightbox-footer {
    padding: 14px 20px;
    background: #fff;
    border-top: 1px solid #eee;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: flex-end;
}
.its-lightbox-footer a, .its-lightbox-footer button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    font-size: 14px;
    padding: 10px 20px;
    border-radius: 6px;
    transition: all 0.2s;
    cursor: pointer;
}
.its-lightbox-footer .dl-btn { background: var(--blue); color: #fff; border: 2px solid var(--blue); }
.its-lightbox-footer .dl-btn:hover { background: var(--mid-blue); }

/* ---- MODULE BOOKING NOTE ---- */
.module-note {
    background: var(--light-bg);
    border-left: 4px solid var(--blue);
    border-radius: 0 10px 10px 0;
    padding: 18px 22px;
    font-size: 14px;
    color: #333;
    line-height: 1.7;
}
.module-note strong { color: var(--dark-blue); }

/* ---- CTA FINAL (compact by default on this page) ---- */
.cta-final {
    background: linear-gradient(135deg, var(--dark-blue), #0a4a7e);
    color: #fff;
    text-align: center;
    padding: 22px 24px;
    border-radius: 12px;
    max-width: 1140px;
    margin: 0 auto 28px;
}
.cta-final h2 { font-size: clamp(1.15rem, 2.4vw, 1.5rem); font-weight: 700; margin-bottom: 6px; color: #fff; }
.cta-final p { color: #c6e0f0; font-size: 0.9rem; max-width: 560px; margin: 0 auto 16px; line-height: 1.6; }
.cta-final .btn-row { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; }
.cta-final .btn-white {
    background: #fff;
    color: var(--dark-blue);
    font-weight: 700;
    font-size: 0.9rem;
    padding: 10px 22px;
    border-radius: 6px;
    transition: all 0.2s;
    display: inline-block;
}
.cta-final .btn-white:hover { background: var(--gold); color: var(--dark-blue); }
.cta-final .btn-orange-solid {
    background: var(--orange) !important;
    color: #fff !important;
}
.cta-final .btn-orange-solid:hover { background: var(--orange-dark) !important; color: #fff !important; }
.cta-final .btn-solid-cyan {
    background: var(--cyan);
    border: 2px solid var(--cyan);
    color: var(--dark-blue);
    font-weight: 700;
    font-size: 0.9rem;
    padding: 10px 22px;
    border-radius: 6px;
    transition: all 0.2s;
    display: inline-block;
    cursor: pointer;
}
.cta-final .btn-solid-cyan:hover { background: #fff; border-color: #fff; color: var(--dark-blue); }

/* ---- CONTACT MODAL ---- */
.its-modal { position: fixed; inset: 0; background: rgba(0,15,30,0.75); z-index: 10001; display: none; align-items: center; justify-content: center; padding: 20px; }
.its-modal.open { display: flex; }
.its-modal-inner { max-width: 520px; width: 100%; background: #fff; border-radius: 8px; overflow: hidden; max-height: 92vh; overflow-y: auto; }
.its-modal-header { background: var(--dark-blue); color: #fff; padding: 18px 24px; text-align: center; }
.its-modal-header h5 { color: #fff; font-weight: 700; margin-bottom: 6px; }
.its-modal-header p { color: #cde8f8; font-size: 13px; margin: 0; }
.its-modal-header a { color: #fff; font-weight: 700; text-decoration: underline !important; }
.its-modal-body { padding: 22px 24px; }
.its-modal-body .form-group { margin-bottom: 14px; }
.its-modal-body label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 5px; color: #333; }
.its-modal-body input, .its-modal-body textarea { width: 100%; padding: 10px 12px; border: 1px solid #ccc; border-radius: 4px; font-family: 'Poppins', sans-serif; font-size: 14px; }
.its-modal-actions { display: flex; gap: 10px; margin-top: 6px; }
.its-modal-actions .btn {
    border: none; border-radius: 4px; padding: 10px 18px; font-size: 14px; font-weight: 600;
    cursor: pointer; display: inline-block; text-decoration: none; transition: all .2s;
}
.its-modal-actions .btn-primary { background: var(--blue); color: #fff; }
.its-modal-actions .btn-primary:hover { background: var(--mid-blue); }
.its-modal-close-btn { background: #ccc; color: #333; }

/* ---- FIXED ELEMENTS ---- */
#cta-phone {
    position: fixed; right: 20px; bottom: 86px;
    width: 56px; height: 56px;
    background: var(--blue);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    z-index: 9999;
    box-shadow: 0 4px 14px rgba(0,0,0,0.28);
}
#cta-phone img { width: 28px; height: 28px; }
#wa-float-btn {
    position: fixed; right: 20px; bottom: 20px;
    width: 56px; height: 56px;
    background: #25d366;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    z-index: 9999;
    box-shadow: 0 4px 14px rgba(0,0,0,0.28);
}
#wa-float-btn img { width: 32px; height: 32px; }
@media (min-width: 769px) { #cta-phone { display: none; } }

#fixed-social {
    position: fixed; top: 35%; left: 0;
    z-index: 10;
    box-shadow: 0 0 5px #b7b7b7;
}
#fixed-social div a {
    display: flex; align-items: center;
    width: 40px; overflow: hidden;
    transition: width 0.3s;
    padding: 8px 10px;
    color: #fff !important;
    font-size: 1rem;
}
#fixed-social div a span { white-space: nowrap; margin-left: 6px; opacity: 0; transition: opacity 0.3s; }
#fixed-social div a:hover { width: 120px; }
#fixed-social div a:hover span { opacity: 1; }
#fixed-social .fixed-title  { background: #666; }
#fixed-social .fixed-facebook { background: #3b5998; }
#fixed-social .fixed-linkedin { background: #0077b5; }
#fixed-social .fixed-gplus    { background: #d34836; }
@media (max-width: 768px) { #fixed-social { display: none; } }

/* ---- REVEAL ANIMATIONS ---- */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.55s ease, transform 0.55s ease; }
.reveal.visible { opacity: 1; transform: none; }
.reveal-stagger .reveal:nth-child(1) { transition-delay: 0.05s; }
.reveal-stagger .reveal:nth-child(2) { transition-delay: 0.12s; }
.reveal-stagger .reveal:nth-child(3) { transition-delay: 0.19s; }
.reveal-stagger .reveal:nth-child(4) { transition-delay: 0.26s; }
.reveal-stagger .reveal:nth-child(5) { transition-delay: 0.33s; }
.reveal-stagger .reveal:nth-child(6) { transition-delay: 0.40s; }
.reveal-stagger .reveal:nth-child(7) { transition-delay: 0.47s; }
.reveal-stagger .reveal:nth-child(8) { transition-delay: 0.54s; }

/* ---- MOBILE RESPONSIVE ---- */
@media screen and (max-width: 600px) {
    .page-content { padding: 0 12px; }
    .section { padding: 30px 16px; }
    .hero { padding: 32px 16px 28px; }
    .quick-nav { padding: 20px 16px; }
    .quick-nav-row { gap: 10px; }
    .poster-actions { flex-direction: column; align-items: center; }
    .poster-actions .btn-outline-its { width: 100%; justify-content: center; max-width: 320px; }
    .cta-final { margin-bottom: 24px; }
    .intro-split .meet-team-link { width: 100%; justify-content: center; }
}
@media screen and (max-width: 1024px) {
    .intro-split {
        grid-template-columns: 1fr;
    }
}