/* ============================================================
   PIONEERS SCHOOLS — Global Stylesheet
   ============================================================ */

/* ---------- Google Fonts loaded in HTML head ---------- */

:root {
    --gold: #D4A726;
    --gold-light: #F2D166;
    --gold-dark: #B8901E;
    --blue: #1B3A6B;
    --blue-light: #2A5298;
    --blue-dark: #0F2445;
    --blue-accent: #3B6DC6;
    --cream: #FEFCF6;
    --off-white: #F8F6F0;
    --text-dark: #1A1A2E;
    --text-muted: #5A5A7A;
    --shadow-sm: 0 2px 8px rgba(27,58,107,0.06);
    --shadow-md: 0 8px 30px rgba(27,58,107,0.10);
    --shadow-lg: 0 20px 60px rgba(27,58,107,0.15);
    --radius: 16px;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: 'DM Sans', sans-serif;
    color: var(--text-dark);
    background: var(--cream);
    overflow-x: hidden;
}
h1, h2, h3, h4, h5 { font-family: 'Playfair Display', serif; }
a { text-decoration: none; }
img { max-width: 100%; }

/* ===================== TOP BAR ===================== */
.top-bar {
    background: var(--blue-dark);
    color: rgba(255,255,255,0.8);
    font-size: 0.82rem;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}
.top-bar a {
    color: rgba(255,255,255,0.8);
    transition: color 0.3s;
}
.top-bar a:hover { color: var(--gold-light); }
.top-bar i { color: var(--gold); margin-right: 4px; }

/* ===================== NAVBAR ===================== */
.navbar-pioneers {
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(27,58,107,0.06);
    padding: 10px 0;
    transition: all 0.4s ease;
    z-index: 1000;
}
.navbar-pioneers.scrolled {
    background: rgba(255,255,255,0.98);
    box-shadow: var(--shadow-sm);
    padding: 6px 0;
}
.navbar-brand img {
    height: 55px;
    transition: height 0.3s ease;
}
.navbar-pioneers.scrolled .navbar-brand img { height: 42px; }

.nav-link-custom {
    font-weight: 500;
    font-size: 0.92rem;
    color: var(--blue-dark) !important;
    padding: 8px 16px !important;
    position: relative;
    letter-spacing: 0.02em;
    transition: color 0.3s;
}
.nav-link-custom::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 16px; right: 16px;
    height: 2.5px;
    background: var(--gold);
    transform: scaleX(0);
    transition: transform 0.3s ease;
    border-radius: 2px;
}
.nav-link-custom:hover::after,
.nav-link-custom.active::after { transform: scaleX(1); }
.nav-link-custom:hover { color: var(--blue-accent) !important; }

.btn-enroll {
    background: var(--gold);
    color: var(--blue-dark);
    font-weight: 600;
    padding: 10px 26px;
    border-radius: 50px;
    border: none;
    font-size: 0.88rem;
    letter-spacing: 0.03em;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(212,167,38,0.3);
}
.btn-enroll:hover {
    background: var(--gold-dark);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(212,167,38,0.4);
}

/* ===================== HERO SLIDER ===================== */
.hero-slider {
    position: relative;
    width: 100%;
    height: 85vh;
    min-height: 500px;
    overflow: hidden;
}
.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 1s ease;
    z-index: 1;
}
.hero-slide.active { opacity: 1; z-index: 2; }

.hero-slide-bg {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.hero-slide-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(15,36,69,0.85) 0%, rgba(27,58,107,0.7) 50%, rgba(42,82,152,0.6) 100%);
    z-index: 1;
}
.hero-slide-content {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    z-index: 2;
}
.hero-slide-content h1 {
    font-size: clamp(2.4rem, 5vw, 3.8rem);
    color: #fff;
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: 16px;
    text-shadow: 0 2px 20px rgba(0,0,0,0.15);
}
.hero-slide-content h1 .gold { color: var(--gold-light); }
.hero-slide-content p {
    color: rgba(255,255,255,0.8);
    font-size: 1.1rem;
    max-width: 540px;
    line-height: 1.7;
    margin-bottom: 28px;
}
.hero-slide-content .btn-hero {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 34px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s;
}
.btn-hero-primary {
    background: var(--gold);
    color: var(--blue-dark);
    border: none;
    box-shadow: 0 4px 20px rgba(212,167,38,0.35);
}
.btn-hero-primary:hover {
    background: var(--gold-light);
    color: var(--blue-dark);
    transform: translateY(-2px);
}
.btn-hero-outline {
    background: transparent;
    color: #fff;
    border: 1.5px solid rgba(255,255,255,0.35);
}
.btn-hero-outline:hover {
    background: rgba(255,255,255,0.1);
    color: #fff;
    border-color: rgba(255,255,255,0.5);
}

/* Slider Controls */
.slider-controls {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    gap: 10px;
}
.slider-dot {
    width: 12px; height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.35);
    border: none;
    cursor: pointer;
    transition: all 0.3s;
}
.slider-dot.active {
    background: var(--gold);
    width: 36px;
    border-radius: 6px;
}
.slider-arrows {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
    pointer-events: none;
}
.slider-arrow {
    width: 50px; height: 50px;
    border-radius: 50%;
    background: rgba(255,255,255,0.12);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
    color: #fff;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    pointer-events: all;
    transition: all 0.3s;
}
.slider-arrow:hover {
    background: var(--gold);
    color: var(--blue-dark);
    border-color: var(--gold);
}

/* Pattern overlay */
.bg-pattern {
    position: absolute;
    inset: 0;
    opacity: 0.04;
    background-image:
        radial-gradient(circle at 20% 80%, var(--gold-light) 1px, transparent 1px),
        radial-gradient(circle at 80% 20%, var(--gold-light) 1px, transparent 1px);
    background-size: 80px 80px, 60px 60px;
    pointer-events: none;
    z-index: 0;
}

/* ===================== SECTIONS COMMON ===================== */
.section-padding { padding: 90px 0; }
.section-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--gold-dark);
    margin-bottom: 12px;
}
.section-label::before {
    content: '';
    width: 24px; height: 2px;
    background: var(--gold);
    border-radius: 2px;
}
.section-heading {
    font-size: clamp(1.9rem, 3.5vw, 2.7rem);
    font-weight: 700;
    color: var(--blue-dark);
    line-height: 1.2;
    margin-bottom: 14px;
}
.section-desc {
    font-size: 1.02rem;
    color: var(--text-muted);
    max-width: 560px;
    line-height: 1.7;
}

/* ===================== WELCOME NOTE ===================== */
.welcome-section { background: #fff; }
.welcome-img-wrapper {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
}
.welcome-img-placeholder {
    width: 100%;
    height: 380px;
    background: linear-gradient(135deg, var(--blue), var(--blue-light));
    display: flex;
    align-items: center;
    justify-content: center;
}
.welcome-img-placeholder i {
    font-size: 6rem;
    color: rgba(255,255,255,0.15);
}
.welcome-badge {
    position: absolute;
    bottom: -1px; right: 0;
    background: var(--gold);
    color: var(--blue-dark);
    padding: 14px 24px;
    border-radius: 16px 0 0 0;
    font-weight: 600;
    font-size: 0.88rem;
}
.welcome-text {
    font-size: 1.02rem;
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 20px;
}
.welcome-signature {
    border-top: 1px solid rgba(27,58,107,0.08);
    padding-top: 16px;
    display: flex;
    align-items: center;
    gap: 14px;
}
.welcome-signature-avatar {
    width: 52px; height: 52px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--blue), var(--blue-light));
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 600;
    font-size: 1.1rem;
    flex-shrink: 0;
}
.welcome-signature-name { font-weight: 600; color: var(--blue-dark); font-size: 0.95rem; }
.welcome-signature-role { font-size: 0.82rem; color: var(--text-muted); }

/* ===================== COUNTERS ===================== */
.counters-section {
    background: linear-gradient(135deg, var(--blue-dark), var(--blue));
    position: relative;
    overflow: hidden;
}
.counter-item { text-align: center; padding: 30px 20px; }
.counter-icon {
    width: 68px; height: 68px;
    border-radius: 18px;
    background: rgba(212,167,38,0.12);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    color: var(--gold-light);
    margin-bottom: 16px;
}
.counter-number {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    font-weight: 700;
    color: var(--gold-light);
    line-height: 1;
}
.counter-label {
    color: rgba(255,255,255,0.6);
    font-size: 0.88rem;
    margin-top: 6px;
}

/* ===================== ACCREDITATION / COGNIA ===================== */
.accreditation-section { background: var(--off-white); }
.accreditation-card {
    background: #fff;
    border-radius: 20px;
    padding: 40px;
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
    gap: 40px;
    border: 1px solid rgba(27,58,107,0.06);
}
.cognia-logo-wrapper {
    width: 180px;
    flex-shrink: 0;
    text-align: center;
}
.cognia-logo-wrapper img {
    max-width: 160px;
}
.cognia-seal {
    width: 140px; height: 140px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0B3D91, #1565C0);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #fff;
    position: relative;
    box-shadow: 0 8px 30px rgba(11,61,145,0.25);
    margin: 0 auto;
}
.cognia-seal::before {
    content: '';
    position: absolute;
    inset: 4px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.3);
}
.cognia-seal-text {
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
}
.cognia-seal-sub {
    font-size: 0.65rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    opacity: 0.8;
    margin-top: 4px;
}
.accreditation-info h3 {
    font-size: 1.4rem;
    color: var(--blue-dark);
    margin-bottom: 10px;
}
.accreditation-info p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.7;
}

@media(max-width: 768px) {
    .accreditation-card {
        flex-direction: column;
        text-align: center;
        gap: 24px;
        padding: 28px;
    }
}

/* ===================== NEWS CARDS ===================== */
.news-card {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.4s ease;
    box-shadow: var(--shadow-sm);
    height: 100%;
}
.news-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
}
.news-card-img {
    height: 200px;
    position: relative;
    overflow: hidden;
}
.news-card-img-placeholder {
    width: 100%; height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: rgba(255,255,255,0.3);
}
.bg-grad-1 { background: linear-gradient(135deg, var(--blue), var(--blue-light)); }
.bg-grad-2 { background: linear-gradient(135deg, var(--gold-dark), var(--gold)); }
.bg-grad-3 { background: linear-gradient(135deg, var(--blue-dark), var(--blue)); }

.news-date-badge {
    position: absolute;
    top: 14px; left: 14px;
    background: var(--gold);
    color: var(--blue-dark);
    padding: 5px 12px;
    border-radius: 8px;
    font-size: 0.78rem;
    font-weight: 600;
}
.news-card-body { padding: 22px; }
.news-category {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--gold-dark);
    margin-bottom: 6px;
}
.news-card-body h4 {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--blue-dark);
    margin-bottom: 8px;
    line-height: 1.4;
}
.news-card-body p {
    font-size: 0.86rem;
    color: var(--text-muted);
    line-height: 1.6;
}
.news-read-more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--blue);
    font-weight: 500;
    font-size: 0.86rem;
    margin-top: 10px;
    transition: gap 0.3s;
}
.news-read-more:hover { gap: 10px; color: var(--blue-accent); }

/* ===================== EVENT CARDS ===================== */
.event-card {
    background: #fff;
    border-radius: 20px;
    padding: 24px;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s;
    height: 100%;
    border: 1px solid rgba(27,58,107,0.05);
}
.event-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}
.event-date-box {
    background: var(--gold);
    color: var(--blue-dark);
    width: 64px;
    padding: 10px 6px;
    border-radius: 14px;
    text-align: center;
    flex-shrink: 0;
}
.event-date-day {
    font-family: 'Playfair Display', serif;
    font-size: 1.7rem;
    font-weight: 700;
    line-height: 1;
}
.event-date-month {
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.event-info h4 {
    font-size: 1.02rem;
    color: var(--blue-dark);
    font-weight: 600;
    margin-bottom: 4px;
}
.event-info p {
    font-size: 0.84rem;
    color: var(--text-muted);
    line-height: 1.5;
}
.event-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--blue-accent);
    font-size: 0.8rem;
    font-weight: 500;
    margin-top: 6px;
}

/* ===================== PAGE HEADER (inner pages) ===================== */
.page-header {
    background: linear-gradient(135deg, var(--blue-dark), var(--blue));
    padding: 140px 0 60px;
    position: relative;
    overflow: hidden;
}
.page-header .bg-pattern { opacity: 0.03; }
.page-header h1 {
    color: #fff;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
}
.page-header-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
}
.page-header-breadcrumb a {
    color: var(--gold-light);
    font-size: 0.88rem;
}
.page-header-breadcrumb span { color: rgba(255,255,255,0.5); font-size: 0.88rem; }
.page-header-breadcrumb i { color: rgba(255,255,255,0.4); font-size: 0.7rem; }

/* ===================== GALLERY ===================== */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
}
.gallery-item {
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
    height: 240px;
}
.gallery-item-inner {
    width: 100%; height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: rgba(255,255,255,0.25);
    transition: transform 0.5s;
}
.gallery-item:hover .gallery-item-inner { transform: scale(1.08); }
.gallery-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(15,36,69,0.6), transparent);
    opacity: 0;
    transition: opacity 0.3s;
}
.gallery-item:hover::after { opacity: 1; }
.gallery-item-label {
    position: absolute;
    bottom: 14px; left: 14px;
    color: #fff;
    font-weight: 500;
    font-size: 0.86rem;
    z-index: 2;
    opacity: 0;
    transform: translateY(8px);
    transition: all 0.3s;
}
.gallery-item:hover .gallery-item-label { opacity: 1; transform: translateY(0); }

.gallery-item.featured {
    grid-column: span 2;
    grid-row: span 2;
    height: 496px;
}
@media(max-width: 768px) {
    .gallery-item.featured { grid-column: span 1; grid-row: span 1; height: 240px; }
}

.g-blue { background: linear-gradient(135deg, var(--blue), var(--blue-light)); }
.g-gold { background: linear-gradient(135deg, var(--gold-dark), var(--gold-light)); }
.g-dark { background: linear-gradient(135deg, var(--blue-dark), var(--blue)); }
.g-mix { background: linear-gradient(135deg, var(--blue), var(--gold-dark)); }

/* ===================== CONTACT FORM ===================== */
.contact-section { background: var(--cream); }
.contact-form-card {
    background: #fff;
    border-radius: 20px;
    padding: 36px;
    box-shadow: var(--shadow-sm);
}
.form-control-custom {
    background: var(--off-white);
    border: 1.5px solid rgba(27,58,107,0.08);
    border-radius: 12px;
    padding: 12px 16px;
    font-size: 0.92rem;
    transition: all 0.3s;
    color: var(--text-dark);
}
.form-control-custom:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(212,167,38,0.1);
    background: #fff;
    outline: none;
}
.btn-submit {
    background: var(--gold);
    color: var(--blue-dark);
    font-weight: 600;
    padding: 14px 40px;
    border-radius: 50px;
    border: none;
    font-size: 0.95rem;
    transition: all 0.3s;
}
.btn-submit:hover {
    background: var(--gold-dark);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(212,167,38,0.35);
}
.contact-info-card {
    background: linear-gradient(135deg, var(--blue-dark), var(--blue));
    border-radius: 20px;
    padding: 36px;
    color: #fff;
    height: 100%;
    position: relative;
    overflow: hidden;
}
.contact-info-card .bg-pattern { opacity: 0.04; }
.contact-info-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 24px;
}
.contact-info-icon {
    width: 44px; height: 44px;
    border-radius: 12px;
    background: rgba(212,167,38,0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold-light);
    flex-shrink: 0;
}
.contact-info-text h5 {
    font-family: 'DM Sans', sans-serif;
    font-weight: 600;
    font-size: 0.9rem;
    color: #fff;
    margin-bottom: 2px;
}
.contact-info-text p {
    font-size: 0.86rem;
    color: rgba(255,255,255,0.65);
    margin: 0;
}
.contact-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px; height: 40px;
    border-radius: 10px;
    background: rgba(255,255,255,0.08);
    color: rgba(255,255,255,0.6);
    margin-right: 8px;
    transition: all 0.3s;
}
.contact-social a:hover {
    background: var(--gold);
    color: var(--blue-dark);
    transform: translateY(-3px);
}

/* ===================== MAP ===================== */
.map-wrapper {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    height: 350px;
}
.map-wrapper iframe { width: 100%; height: 100%; border: 0; }

/* ===================== FOOTER ===================== */
.footer {
    background: var(--blue-dark);
    color: rgba(255,255,255,0.7);
    padding: 60px 0 30px;
}
.footer h5 {
    color: #fff;
    font-family: 'DM Sans', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 18px;
}
.footer-link {
    display: block;
    color: rgba(255,255,255,0.55);
    font-size: 0.86rem;
    padding: 3px 0;
    transition: color 0.3s;
}
.footer-link:hover { color: var(--gold-light); }
.footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px; height: 38px;
    border-radius: 10px;
    background: rgba(255,255,255,0.08);
    color: rgba(255,255,255,0.6);
    margin-right: 6px;
    transition: all 0.3s;
}
.footer-social a:hover { background: var(--gold); color: var(--blue-dark); transform: translateY(-3px); }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding-top: 24px;
    margin-top: 40px;
    font-size: 0.8rem;
    color: rgba(255,255,255,0.4);
}

/* ===================== BACK TO TOP ===================== */
.back-to-top {
    position: fixed;
    bottom: 30px; right: 30px;
    width: 46px; height: 46px;
    border-radius: 14px;
    background: var(--gold);
    color: var(--blue-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: var(--shadow-md);
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    z-index: 999;
    border: none;
}
.back-to-top.visible { opacity: 1; visibility: visible; }
.back-to-top:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }

/* ===================== ABOUT PAGE ===================== */
.about-values-card {
    background: #fff;
    border-radius: 20px;
    padding: 32px;
    box-shadow: var(--shadow-sm);
    text-align: center;
    transition: all 0.3s;
    height: 100%;
}
.about-values-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.about-values-icon {
    width: 64px; height: 64px;
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 16px;
}
.about-values-icon.blue { background: rgba(27,58,107,0.08); color: var(--blue); }
.about-values-icon.gold { background: rgba(212,167,38,0.12); color: var(--gold-dark); }

/* ===================== ANIMATIONS ===================== */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}
.float-anim { animation: float 6s ease-in-out infinite; }

/* ===================== RESPONSIVE ===================== */
@media(max-width: 991px) {
    .hero-slider { height: 70vh; }
    .section-padding { padding: 70px 0; }
}
@media(max-width: 576px) {
    .hero-slider { height: 60vh; min-height: 400px; }
    .section-padding { padding: 50px 0; }
    .counter-number { font-size: 2.2rem; }
    .top-bar .d-flex { flex-direction: column; gap: 4px; text-align: center; }
}
