

/* ===============================
   SMART SCHOOL FRONT CUSTOM CSS
================================ */

.modern-header {
    position: sticky;
    top: 0;
    z-index: 999;
}

/* TOP BAR */
.topbar {
    background: linear-gradient(135deg, #0ea5e9, #2563eb);
    color: #fff;
    font-size: 13px;
    padding: 6px 0;
}

.topbar-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.topbar-left span {
    margin-right: 18px;
}

.top-login-btn {
    background: #fff;
    color: #2563eb;
    padding: 6px 14px;
    border-radius: 20px;
    font-weight: 600;
    text-decoration: none;
}

.modern-menu > li > a {
    font-weight: 600;
    padding: 22px 16px;
    color: #111827;
}

.modern-menu > li.active > a,
.modern-menu > li > a:hover {
    color: #2563eb;
}
/* ===============================
   ROUND SCHOOL LOGO BADGE
================================ */

.modern-logo {
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
}

/* LOGO CIRCLE */
.modern-logo img {
    height: 52px;
    width: 52px;
    padding: 6px;
    background: #ffffff;
    border-radius: 50%;
    border: 2px solid #2563eb; /* blue border */
    box-shadow: 0 4px 10px rgba(0,0,0,0.12);
    object-fit: contain;
}

/* TEXT */
.school-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.school-name {
    font-size: 18px;
    font-weight: 700;
    color: #7c3aed; /* purple like image */
    letter-spacing: 0.3px;
}

.school-tagline {
    font-size: 12px;
    color: #6b7280;
    margin-top: 2px;
}
/* ===============================
   HEADER FLEX ALIGNMENT
================================ */

.navbar-modern {
    background: #f5f9ff;
    border: none;
    margin-bottom: 0;
}

.modern-nav-flex {
    display: flex;
    align-items: center;
    justify-content: space-between;
}


.school-name {
    font-size: 18px;
    font-weight: 700;
    color: #7c3aed;
}

.school-tagline {
    font-size: 12px;
    color: #6b7280;
}

/* MENU */
.modern-menu-wrap {
    flex: 1;
    display: flex;
    justify-content: center;
}

.modern-menu > li > a {
    font-weight: 600;
    padding: 18px 14px;
    color: #111827;
}

.modern-menu > li.active > a,
.modern-menu > li > a:hover {
    color: #2563eb;
    background: transparent;
}

/* LOGIN BUTTON */
.menu-login-btn {
    background: linear-gradient(135deg, #2563eb, #7c3aed);
    color: #fff;
    padding: 8px 18px;
    border-radius: 20px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
}

.menu-login-btn:hover {
    color: #fff;
    opacity: 0.9;
}



/* ===============================
   MODERN HOME HERO
================================ */


.hero-content {
    padding-right: 40px;
}

.hero-badge {
    display: inline-block;
    background: linear-gradient(135deg, #2563eb, #7c3aed);
    color: #fff;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 20px;
}

.hero-content h1 {
    font-size: 44px;
    font-weight: 800;
    color: #111827;
    line-height: 1.2;
}

.hero-content h1 span {
    color: #7c3aed;
}

.hero-content p {
    margin-top: 20px;
    font-size: 16px;
    color: #4b5563;
    line-height: 1.7;
}

.hero-buttons {
    margin-top: 30px;
}

.hero-buttons a {
    margin-right: 15px;
    padding: 12px 22px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(135deg, #2563eb, #7c3aed);
    color: #fff;
}

.btn-outline {
    border: 2px solid #2563eb;
    color: #2563eb;
}

/* IMAGE */
.hero-image {
    position: relative;
}

.hero-image img {
    width: 100%;
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0,0,0,.15);
}

.hero-image img:hover {
    transform: scale(1.01);
    transition: all 0.3s ease;
}


/* RATING CARD */
.rating-card {
    position: absolute;
    bottom: -20px;
    left: 20px;
    background: #fff;
    padding: 14px 18px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,.15);
}

.rating-card .grade {
    background: #22c55e;
    color: #fff;
    font-weight: 700;
    padding: 12px;
    border-radius: 50%;
}

/* MOBILE */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 32px;
    }

    .hero-image {
        margin-top: 40px;
    }
}
/* ===============================
   HOME HERO LAYOUT FIX
================================ */


/* Align hero content properly */
.hero-content {
    padding-right: 20px;
}

/* Reduce extra left gap */
.hero-content h1 {
    margin-top: 10px;
}

/* Make text block tighter */
.hero-content p {
    max-width: 520px;
}

/* IMAGE SIDE */
.hero-image img {
    max-width: 100%;
    height: auto;
    border-radius: 18px;
}

/* Fix rating card position */
.rating-card {
    bottom: -18px;
    left: 24px;
    padding: 12px 16px;
}


/* HEADER + HERO GAP FIX */
header.modern-header + .modern-hero {
    margin-top: -10px;
}

/* BUTTON ALIGNMENT */
.hero-buttons {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

/* ===============================
   RESPONSIVE FIX
================================ */
@media (max-width: 992px) {
    .hero-content {
        text-align: center;
        padding-right: 0;
    }

    .hero-content p {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-buttons {
        justify-content: center;
    }

    .rating-card {
        left: 50%;
        transform: translateX(-50%);
    }
}
/* ===============================
   FORCE FULL WIDTH HOME HERO
================================ */

/* Break Bootstrap container only for hero */
/* ===============================
   FORCE FULL WIDTH HOME HERO
================================ */

.modern-hero {
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    padding: 80px 0;

    /* ✅ RESTORED BACKGROUND */
    background: linear-gradient(135deg, #eef4ff, #f6edff);
}

/* Inner content container (centered) */
.modern-hero .hero-inner {
    max-width: 1320px;   /* large desktop */
    margin: 0 auto;
    padding: 0 24px;
}

/* Remove container limit inside hero */
.modern-hero .container {
    max-width: 100% !important;
    padding-left: 0;
    padding-right: 0;
}
.navbar-modern .container {
    max-width: 1320px;
}

/* ===============================
   HERO IMAGE BORDER & GLOW
================================ */

.hero-image img {
    border-radius: 24px;
    border: 6px solid #ffffff;           /* white border */
    box-shadow:
        0 0 0 1px rgba(255,255,255,0.6),
        0 25px 60px rgba(124,58,237,0.25); /* soft purple glow */
    background: #fff;
}
/* ===============================
   HERO TITLE STYLING
================================ */

.text-genius {
    color: #7c3aed;
}

.text-public-school {
    font-weight: 800;
    font-size: 46px;
    letter-spacing: 1px;
    background: linear-gradient(135deg, #7c3aed, #ec4899);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
@media (max-width: 768px) {
    .text-public-school {
        font-size: 34px;
    }
}
/* ===============================
   MOBILE HAMBURGER MENU
================================ */

.modern-toggle {
    border: none;
    background: transparent;
    padding: 10px;
}

.modern-toggle span {
    display: block;
    width: 24px;
    height: 3px;
    background: #2563eb;
    margin: 5px 0;
    border-radius: 3px;
    transition: 0.3s;
}

/* MOBILE MENU PANEL */
@media (max-width: 991px) {

    .navbar-modern {
        padding: 10px 0;
    }

    .navbar-collapse {
        background: #ffffff;
        margin-top: 10px;
        border-radius: 14px;
        box-shadow: 0 20px 40px rgba(0,0,0,0.15);
        padding: 10px 0;
    }

    .modern-menu > li > a {
        padding: 14px 20px;
        font-size: 15px;
        border-bottom: 1px solid #f1f5f9;
    }

    .modern-menu > li:last-child > a {
        border-bottom: none;
    }

    .mobile-login {
        font-weight: 700;
        color: #2563eb;
    }

    .modern-login-wrap {
        display: none;
    }
}
/* ===============================
   HEADER BACKGROUND & WIDTH FIX
================================ */

/* Make header full width */
header.modern-header,
.navbar-modern {
    width: 100%;
    margin: 0;
    padding: 0;
    background: #f5f9ff; /* single background */
}

/* Remove Bootstrap container side gaps ONLY for header */
.navbar-modern .container,
.navbar-modern .modern-nav-flex {
    width: 100%;
    max-width: 100%;
    padding-left: 20px;   /* controlled spacing */
    padding-right: 20px;
    margin: 0;
}

/* Remove any inherited background */
.navbar-modern .container {
    background: transparent;
}

/* Prevent double shadows */
.navbar-modern {
    box-shadow: 0 6px 20px rgba(0,0,0,0.08);
}

/* Fix mobile as well */
@media (max-width: 991px) {
    .navbar-modern .container,
    .navbar-modern .modern-nav-flex {
        padding-left: 14px;
        padding-right: 14px;
    }
}
/* ===============================
   MOBILE HEADER EDGE FIX
================================ */
@media (max-width: 767px) {

    /* Full edge-to-edge header */
    header.modern-header,
    .navbar-modern {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    /* Kill Bootstrap container padding */
    .navbar-modern .container,
    .navbar-modern .modern-nav-flex {
        padding-left: 12px !important;
        padding-right: 12px !important;
        margin: 0 !important;
    }
}

/* ===============================
   FORCE HAMBURGER VISIBILITY
================================ */
@media (max-width: 991px) {

    .modern-toggle {
        display: block !important;
        position: absolute;
        right: 14px;
        top: 50%;
        transform: translateY(-50%);
        z-index: 1001;
    }

    /* Keep logo left */
    .modern-logo-wrap {
        width: 100%;
    }

    /* Prevent flex stacking */
    .modern-nav-flex {
        flex-direction: row !important;
        align-items: center;
        position: relative;
    }
}

/* ===============================
   MOBILE HAMBURGER OVERLAY FIX
================================ */
@media (max-width: 991px) {

    /* Keep header height fixed */
    .navbar-modern {
        min-height: 72px;
        position: relative;
    }

    /* Position hamburger correctly */
    .modern-toggle {
        position: absolute;
        right: 0px;
        top: 30%;
        transform: translateY(-50%);
        z-index: 1002;
        display: block !important;
    }

    /* DO NOT stack logo & toggle */
    .modern-nav-flex {
        flex-direction: row !important;
        align-items: center;
        min-height: 72px;
    }

    /* Convert menu into overlay panel */
    .navbar-collapse {
        position: absolute;
        top: 72px;              /* below header */
        right: 12px;
        width: 78%;
        max-width: 280px;
        background: #ffffff;
        border-radius: 16px;
        box-shadow: 0 25px 50px rgba(0,0,0,0.25);
        padding: 10px 0;
        z-index: 1001;
    }

    /* Prevent header from expanding */
    .navbar-collapse.collapse {
        display: none !important;
    }

    .navbar-collapse.collapse.in {
        display: block !important;
    }

    /* Menu item styling */
    .modern-menu > li > a {
        padding: 14px 18px;
        font-size: 15px;
        border-bottom: 1px solid #f1f5f9;
    }

    .modern-menu > li:last-child > a {
        border-bottom: none;
    }
}

/* ===============================
   MOBILE MENU TEXT ALIGNMENT FIX
================================ */
@media (max-width: 991px) {

    /* Consistent left padding for menu */
    .navbar-collapse .modern-menu > li > a {
        padding-left: 22px !important;
        padding-right: 16px !important;
        text-align: left;
    }

    /* Style Login item clearly */
    .mobile-login {
        font-weight: 700;
        color: #2563eb !important;
    }

    .mobile-login-item {
        border-top: 1px solid #eef2f7;
        margin-top: 6px;
    }
}

/* ===============================
   MOBILE MENU OVERLAY FIX
================================ */
@media (max-width: 991px) {

    /* Prevent header height expansion */
    .navbar-modern {
        position: relative;
        z-index: 1000;
    }

    /* Overlay menu */
    .navbar-collapse {
        position: absolute !important;
        width: 72% !important;     /* 👈 reduce width */
        max-width: 280px;          /* 👈 hard limit */
        top: 100%;
        right: 14px;
        width: 82%;
        max-width: 320px;
        background: #ffffff;
        border-radius: 16px;
        box-shadow: 0 25px 60px rgba(0,0,0,0.25);
        overflow: hidden;
        padding: 8px 0;
    }

    /* Menu links spacing */
    .modern-menu > li > a {
        padding: 16px 20px;
        font-size: 15px;
        text-align: left;
    }
}

/* ===============================
   MOBILE LOGIN FIX
================================ */
@media (max-width: 991px) {

    .modern-menu li:last-child a {
        font-weight: 700;
        color: #2563eb !important;
        background: #f8fafc;
        margin-top: 6px;
    }
}

/* =====================================================
   MODERN FULL WIDTH FOOTER (CLEAN REBUILD)
===================================================== */

footer.modern-footer {
    width: 100%;
    background: linear-gradient(135deg, #0f172a, #4c1d95);
    color: #e5e7eb;
    font-family: "Segoe UI", Arial, sans-serif;
    padding-top: 70px;
    position: relative;
    overflow: hidden;
}

/* Soft background logo */
footer.modern-footer::before {
    content: "";
    position: absolute;
    right: -160px;
    bottom: -200px;
    width: 480px;
    height: 480px;
    background: url("/files/public_html/uploads/school_content/logo/logo.png") no-repeat;
    background-size: contain;
    opacity: 0.07;
    pointer-events: none;
}
.modern-logo img,
.footer-brand img {
    border: 2px solid #38bdf8;      /* light blue border */
    border-radius: 50%;             /* keeps logo circular */
    padding: 4px;                   /* space between logo & border */
    background: #ffffff;            /* clean white base */
    box-shadow: 0 0 0 2px rgba(56, 189, 248, 0.25); /* soft glow */
}


/* =====================================================
   INNER WRAPPER (CENTERED CONTENT)
===================================================== */

footer.modern-footer .container {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 24px 40px;
    position: relative;
    z-index: 2;
}

/* Kill bootstrap row overflow */
footer.modern-footer .row {
    margin-left: 0;
    margin-right: 0;
}

/* Equal column spacing */
footer.modern-footer [class*="col-"] {
    padding-left: 15px;
    padding-right: 15px;
}

/* =====================================================
   BRAND / ABOUT
===================================================== */

.footer-brand {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 18px;
}

.footer-brand img {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: #ffffff;
    padding: 5px;
}

.footer-brand h2 {
    font-size: 22px;
    font-weight: 600;
    color: #ffffff;
    margin: 0;
}

.footer-tagline {
    font-size: 15px;
    line-height: 1.7;
    color: #cbd5f5;
    max-width: 380px;
}

/* =====================================================
   SECTION TITLES
===================================================== */

footer.modern-footer .fo-title {
    font-size: 20px;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 18px;
    position: relative;
}

footer.modern-footer .fo-title::after {
    content: "";
    width: 36px;
    height: 3px;
    background: #38bdf8;
    display: block;
    margin-top: 8px;
}

/* =====================================================
   LINKS
===================================================== */

footer.modern-footer ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

footer.modern-footer ul li {
    margin-bottom: 10px;
}

footer.modern-footer ul li a {
    color: #e0e7ff;
    text-decoration: none;
    transition: 0.3s ease;
}

footer.modern-footer ul li a:hover {
    color: #38bdf8;
    padding-left: 6px;
}

/* =====================================================
   CONTACT INFO
===================================================== */

.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 12px;
    color: #e0e7ff;
}

.footer-contact i {
    color: #38bdf8;
    font-size: 16px;
    margin-top: 3px;
}

/* =====================================================
   SOCIAL ICONS
===================================================== */

.social {
    margin-top: 18px;
}

.social li {
    display: inline-block;
    margin-right: 10px;
}

.social li a {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.15);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #ffffff;
    transition: 0.3s;
}

.social li a:hover {
    background: #38bdf8;
    color: #000;
    transform: translateY(-3px);
}

/* =====================================================
   FOOTER BOTTOM
===================================================== */

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.18);
    padding: 10px 0;
    margin-top: 10px;
}

.footer-bottom p {
    margin: 0;
    font-size: 14px;
    color: #cbd5f5;
}

.footer-bottom small {
    display: block;
    margin-top: 6px;
    color: #94a3b8;
}

/* =====================================================
   SCROLL TO TOP
===================================================== */

footer.modern-footer .scrollToTop {
    background: #38bdf8;
    color: #000;
}

/* =====================================================
   MOBILE RESPONSIVE
===================================================== */

@media (max-width: 768px) {

    footer.modern-footer {
        text-align: center;
    }

    .footer-brand {
        justify-content: center;
    }

    .footer-tagline {
        margin: 0 auto;
    }

    footer.modern-footer .fo-title::after {
        margin-left: auto;
        margin-right: auto;
    }

    .footer-contact li {
        justify-content: center;
    }
}

/* =====================================================
   GLOBAL STICKY FOOTER LAYOUT
===================================================== */

html, body {
    height: 100%;
}

body.layout-root {
    display: flex;
    flex-direction: column;
    min-height: 170vh;
}

/* Header stays natural height */
body.layout-root > header,
body.layout-root > .modern-header {
    flex-shrink: 0;
}

/* Main page content expands */
.page-wrapper {
    flex: 1 0 auto;
    padding-top: 0px;     /* space below header */
    padding-bottom: 30px;  /* space above footer */
}

/* Footer always pushed to bottom */
footer.modern-footer {
    flex-shrink: 0;
}

/* =====================================================
   MOBILE FOOTER PERFECT ALIGNMENT
===================================================== */
@media (max-width: 768px) {

    /* Center all footer content */
    footer.modern-footer {
        text-align: center;
    }

    /* Center brand block */
    .footer-brand {
        justify-content: center;
        text-align: center;
    }

    .footer-tagline {
        margin: 0 auto 16px;
        max-width: 90%;
        line-height: 1.6;
    }

    /* Social icons center */
    .social {
        display: flex;
        justify-content: center;
        gap: 12px;
        margin-top: 14px;
    }

    /* Section titles center */
    footer.modern-footer .fo-title {
        text-align: center;
    }

    footer.modern-footer .fo-title::after {
        margin-left: auto;
        margin-right: auto;
    }

    /* Quick links center */
    .footer-links li {
        text-align: center;
    }

    .footer-links li a {
        display: inline-block;
    }

    /* Contact info center + icon alignment */
    .footer-contact li {
        justify-content: center;
        align-items: center;
        text-align: center;
    }

    .footer-contact i {
        margin-right: 8px;
    }

    /* Column spacing */
    footer.modern-footer [class*="col-"] {
        margin-bottom: 15px;
    }

    /* Footer bottom spacing */
    .footer-bottom {
        text-align: center;
        padding-top: 5px;
    }
}

/* ===============================
   VISION & MISSION SECTION
================================ */

/* FULL WIDTH FIX */
.modern-vision-mission {
    width: 100%;
    padding: 80px 0;
    background: #f6f9fc;
}
.modern-vision-mission .hero-inner {
    max-width: 1400px;   /* increase from default */
    margin: auto;
    padding: 0 40px;     /* side spacing */
}

/* IMAGE BORDER + CARD STYLE */
.vision-image img {
    width: 100%;
    border-radius: 20px;

    padding: 6px;               /* space inside border */
    box-shadow: 0 18px 45px rgba(0,0,0,0.15);
}

.vision-image img:hover {
    transform: scale(1.01);
    transition: all 0.3s ease;
}


.vision-content h2 {
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 20px;
    color: #0f172a;
}

.vision-content p {
    font-size: 16px;
    line-height: 1.75;
    color: #334155;
    margin-bottom: 16px;
}

.vision-content strong {
    color: #1e40af;
}

/* ===============================
   FORCE FULL WIDTH – VISION & MISSION (FINAL FIX)
================================ */

.modern-vision-mission {
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    padding: 80px 0;
    background: #f6f9fc;
}



/* ---------- MOBILE FIX ---------- */
@media (max-width: 768px) {

    .modern-vision-mission {
        padding: 50px 15px;
    }

    .vision-content {
        margin-top: 30px;
    }

    .vision-content h2 {
        font-size: 28px;
    }
}
