﻿/* =====================================================
   ST. COLUMBUS PUBLIC SCHOOL
   COMPLETE RESPONSIVE SCHOOL WEBSITE CSS
===================================================== */

/* =====================================================
   THEME VARIABLES
===================================================== */

:root {
    --primary: #0b3d91;
    --primary-light: #2f6edb;

    --secondary: #f59e0b;
    --secondary-light: #fbbf24;

    --dark: #10233f;
    --text: #4b5563;

    --bg: #ffffff;
    --surface: #f7f9fc;
    --card: #ffffff;

    --heading: #10233f;

    --white: #ffffff;
    --black: #000000;

    --border: #e5e7eb;

    --topbar: #10233f;
    --footer: #091a30;

    --shadow: 0 10px 30px rgba(0, 0, 0, 0.08);

    --transition: all 0.35s ease;
}


/* =====================================================
   DARK MODE VARIABLES
===================================================== */

body[data-theme="dark"] {
    --primary: #6d9cff;
    --primary-light: #8db0ff;

    --secondary: #f5b942;
    --secondary-light: #ffd166;

    --dark: #e8eef8;
    --text: #cbd5e1;

    --bg: #0b1220;
    --surface: #111a2b;
    --card: #172033;

    --heading: #f8fafc;

    /* IMPORTANT
       White remains white.
       This keeps hero text visible.
    */
    --white: #ffffff;

    --border: #26354d;

    --topbar: #070d18;
    --footer: #070d18;

    --shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
}


/* =====================================================
   RESET
===================================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Segoe UI", Arial, sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.7;
    overflow-x: hidden;
    transition: background 0.3s ease, color 0.3s ease;
}

a {
    text-decoration: none;
    transition: var(--transition);
}

img {
    max-width: 100%;
    display: block;
}

section {
    padding: 90px 0;
}

button,
input,
textarea,
select {
    font: inherit;
}

.container {
    width: min(1120px, calc(100% - 30px));
}


/* =====================================================
   HEADINGS
===================================================== */

h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--heading);
    font-weight: 700;
    margin-bottom: 0.8rem;
}

p {
    margin-bottom: 1rem;
}


/* =====================================================
   TOP BAR
===================================================== */

.top-bar {
    background: var(--topbar);
    color: #ffffff;
    padding: 9px 0;
    font-size: 14px;
}

.top-bar i {
    color: var(--secondary);
    margin-right: 5px;
}

.top-bar a {
    color: #ffffff;
}

.top-bar a:hover {
    color: var(--secondary);
}


/* =====================================================
   MAIN HEADER
===================================================== */

.main-header {
    background: var(--card);
    position: sticky;
    top: 0;
    z-index: 999;
    box-shadow: 0 3px 18px rgba(0, 0, 0, 0.08);
}

.logo-area {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.logo-area img {
    width: 115px;
    height: 72px;
    object-fit: contain;
}

.navbar {
    padding: 0;
}

.navbar-nav {
    gap: 3px;
}

.nav-link {
    color: var(--dark);
    font-size: 14px;
    font-weight: 600;
    padding: 28px 11px !important;
    position: relative;
}

.nav-link::after {
    content: "";
    position: absolute;
    left: 11px;
    right: 11px;
    bottom: 18px;
    height: 2px;
    background: var(--secondary);
    transform: scaleX(0);
    transition: var(--transition);
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary);
}

.nav-link:hover::after,
.nav-link.active::after {
    transform: scaleX(1);
}


/* =====================================================
   DROPDOWN
===================================================== */

.dropdown-menu {
    border: 1px solid var(--border);
    border-radius: 10px;
    box-shadow: var(--shadow);
    padding: 10px;
    background: var(--card);
}

.dropdown-item {
    border-radius: 7px;
    padding: 9px 15px;
    font-size: 14px;
    color: var(--heading);
}

.dropdown-item:hover {
    background: var(--primary);
    color: #ffffff;
}


/* =====================================================
   NAVBAR TOGGLE
===================================================== */

.navbar-toggler {
    border: none;
    font-size: 28px;
    color: var(--primary);
    background: transparent;
}

.navbar-toggler:focus {
    box-shadow: none;
}

.navbar-expand-lg .navbar-collapse {
    justify-content: flex-end;
}


/* =====================================================
   HEADER ACTIONS
===================================================== */

.header-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    margin-left: 20px;
}


/* =====================================================
   THEME TOGGLE
===================================================== */

.theme-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;

    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--heading);

    border-radius: 999px;
    padding: 8px 12px;

    font-size: 0.82rem;
    font-weight: 600;

    cursor: pointer;
    transition: var(--transition);
}

.theme-toggle:hover {
    border-color: var(--secondary);
    color: var(--primary);
}


/* =====================================================
   HERO SECTION
===================================================== */

.hero-section {
    padding: 0;
    overflow: hidden;
}

.hero-section .carousel-item {
    height: 620px;
    position: relative;
}

.hero-section .carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    inset: 0;

    background: linear-gradient(
        90deg,
        rgba(5, 24, 55, 0.88),
        rgba(5, 24, 55, 0.45),
        rgba(5, 24, 55, 0.15)
    );
}

.carousel-caption {
    position: absolute;

    top: 50%;
    left: 9%;
    right: auto;
    bottom: auto;

    transform: translateY(-50%);

    text-align: left;

    max-width: 700px;
}

.hero-small-title {
    display: inline-block;

    color: var(--secondary) !important;

    font-size: 16px;
    font-weight: 700;

    letter-spacing: 3px;

    margin-bottom: 12px;
}


/* IMPORTANT:
   Hero heading ALWAYS WHITE
*/

.carousel-caption h1 {
    color: #ffffff !important;

    font-size: clamp(38px, 5vw, 68px);

    line-height: 1.1;

    margin-bottom: 20px;
}

.carousel-caption p {
    color: #f8fafc !important;

    font-size: 20px;

    margin-bottom: 30px;
}


/* =====================================================
   BUTTONS
===================================================== */

.btn-primary {
    background: var(--primary);
    border: 2px solid var(--primary);

    padding: 12px 25px;

    border-radius: 7px;

    font-weight: 600;

    transition: var(--transition);

    color: #ffffff;
}

.btn-primary:hover {
    background: var(--secondary);
    border-color: var(--secondary);

    transform: translateY(-3px);

    color: #ffffff;
}

.btn-primary i {
    margin-left: 8px;
}

.btn-light {
    padding: 12px 25px;

    font-weight: 600;

    border-radius: 7px;

    transition: var(--transition);
}

.btn-light:hover {
    background: var(--secondary);
    border-color: var(--secondary);

    color: #ffffff;

    transform: translateY(-3px);
}


/* =====================================================
   CAROUSEL
===================================================== */

.carousel-control-prev,
.carousel-control-next {
    width: 6%;
}

.carousel-indicators button {
    width: 35px;
    height: 4px;

    border: none;
    border-radius: 5px;
}


/* =====================================================
   FEATURES
===================================================== */

.features-section {
    padding: 0;

    margin-top: -55px;

    position: relative;

    z-index: 10;
}

.feature-card {
    background: var(--card);

    padding: 35px 30px;

    min-height: 250px;

    border-radius: 12px;

    box-shadow: var(--shadow);

    border-bottom: 4px solid transparent;

    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-10px);

    border-bottom-color: var(--secondary);
}

.feature-icon {
    width: 65px;
    height: 65px;

    display: flex;

    align-items: center;
    justify-content: center;

    background: rgba(11, 61, 145, 0.1);

    color: var(--primary);

    border-radius: 50%;

    font-size: 28px;

    margin-bottom: 20px;

    transition: var(--transition);
}

.feature-card:hover .feature-icon {
    background: var(--primary);

    color: #ffffff;

    transform: rotateY(180deg);
}


/* =====================================================
   SECTION HEADINGS
===================================================== */

.section-subtitle {
    color: var(--secondary);

    font-size: 14px;

    font-weight: 800;

    letter-spacing: 2px;

    display: inline-block;

    margin-bottom: 10px;
}

.section-heading {
    margin-bottom: 50px;
}

.section-heading h2,
.about-section h2,
.achievement-section h2,
.classes-section h2,
.facilities-section h2 {
    font-size: clamp(2rem, 2vw + 1rem, 2.8rem);

    line-height: 1.2;

    margin-bottom: 18px;
}


/* =====================================================
   COMMON LIGHT SECTIONS
===================================================== */

.about-section,
.mission-section,
.achievement-section,
.gallery-section,
.contact-section,
.admission-section,
.facilities-section {
    background: var(--surface);
}


/* =====================================================
   ABOUT
===================================================== */

.about-image {
    position: relative;

    padding: 15px;
}

.about-image::before {
    content: "";

    position: absolute;

    width: 180px;
    height: 180px;

    left: 0;
    top: 0;

    border-left: 6px solid var(--secondary);

    border-top: 6px solid var(--secondary);

    z-index: 0;
}

.about-image img {
    position: relative;

    z-index: 1;

    width: 100%;

    height: 450px;

    object-fit: cover;

    border-radius: 10px;

    box-shadow: var(--shadow);
}

.about-points {
    display: grid;

    gap: 15px;

    margin-top: 20px;
}

.about-point {
    display: flex;

    align-items: center;

    gap: 12px;

    color: var(--heading);

    font-weight: 600;
}

.about-point i {
    color: var(--secondary);

    font-size: 1.2rem;
}


/* =====================================================
   LEADERSHIP / PRINCIPAL
===================================================== */

.leadership-section {
    background: var(--surface);
}

.leadership-heading {
    margin-bottom: 40px;
}

.leadership-subtitle {
    color: var(--secondary);

    letter-spacing: 2px;

    text-transform: uppercase;

    font-size: 13px;

    font-weight: 800;
}

.leader-box {
    background: var(--card);

    border: 1px solid var(--border);

    border-radius: 18px;

    padding: 30px;

    box-shadow: var(--shadow);

    margin-bottom: 25px;
}

.leader-profile {
    padding: 12px;
}

.leader-image {
    width: 100%;

    max-width: 260px;

    height: 280px;

    overflow: hidden;

    border-radius: 18px;

    margin: 0 auto 18px;

    box-shadow: var(--shadow);
}

.leader-image img {
    width: 100%;
    height: 100%;

    object-fit: cover;
}

.leader-role {
    color: var(--secondary);

    font-weight: 700;
}

.leader-content {
    padding-left: 10px;
}

.message-label {
    color: var(--secondary);

    font-size: 12px;

    letter-spacing: 2px;

    font-weight: 800;

    display: inline-block;

    margin-bottom: 10px;
}

.signature {
    margin-top: 24px;

    border-left: 4px solid var(--secondary);

    padding-left: 18px;

    display: grid;

    gap: 3px;
}

.signature span,
.signature small {
    color: var(--text);
}

.signature strong {
    color: var(--heading);
}

.principal-highlight {
    display: flex;

    gap: 18px;

    background: var(--surface);

    border-left: 4px solid var(--primary);

    border-radius: 8px;

    padding: 18px 20px;

    margin: 20px 0;
}

.principal-highlight i {
    font-size: 2rem;

    color: var(--secondary);
}


/* =====================================================
   MISSION
===================================================== */

.mission-card {
    background: var(--card);

    padding: 40px;

    height: 100%;

    border-radius: 12px;

    box-shadow: var(--shadow);

    border-top: 4px solid var(--primary);

    transition: var(--transition);
}

.mission-card:hover {
    transform: translateY(-8px);
}

.mission-icon {
    width: 65px;
    height: 65px;

    display: flex;

    align-items: center;
    justify-content: center;

    background: var(--primary);

    color: #ffffff;

    border-radius: 12px;

    font-size: 28px;

    margin-bottom: 20px;
}


/* =====================================================
   CLASSES
===================================================== */

.class-card {
    padding: 35px 20px;

    background: var(--card);

    border-radius: 12px;

    transition: var(--transition);

    border: 1px solid var(--border);
}

.class-card:hover {
    background: var(--primary);

    transform: translateY(-8px);

    box-shadow: var(--shadow);
}

.class-card i {
    display: block;

    color: var(--secondary);

    font-size: 38px;

    margin-bottom: 15px;
}

.class-card h4 {
    margin: 0;

    font-size: 18px;

    color: var(--heading);
}

.class-card p {
    color: var(--text);
}

.class-card:hover h4,
.class-card:hover p {
    color: #ffffff;
}


/* =====================================================
   STATS
===================================================== */

.stats-section {
    background: linear-gradient(
        135deg,
        #0b3d91,
        #10233f
    );

    padding: 70px 0;
}

.stat-card {
    color: #ffffff;

    padding: 20px;
}

.stat-card i {
    font-size: 38px;

    color: var(--secondary);

    margin-bottom: 10px;
}

.stat-card h2 {
    color: #ffffff;

    font-size: 45px;

    margin-bottom: 0;
}

.stat-card p {
    color: #dbeafe;

    margin: 0;
}


/* =====================================================
   NEWS + EVENTS
===================================================== */

.news-grid,
.event-grid {
    display: grid;

    gap: 20px;

    grid-template-columns:
        repeat(auto-fit, minmax(220px, 1fr));
}

.news-card,
.event-card {
    background: var(--card);

    border: 1px solid var(--border);

    border-radius: 15px;

    padding: 20px;

    box-shadow: var(--shadow);

    height: 100%;
}

.news-card h3,
.event-card h3 {
    font-size: 1.4rem;

    margin-bottom: 10px;

    color: var(--heading);
}

.news-meta,
.event-meta {
    display: inline-block;

    background: rgba(11, 61, 145, 0.08);

    color: var(--primary);

    border-radius: 999px;

    padding: 6px 10px;

    font-size: 0.75rem;

    font-weight: 700;

    margin-bottom: 12px;
}


/* =====================================================
   CTA
===================================================== */

.cta-section {
    background:
        linear-gradient(
            90deg,
            rgba(11, 61, 145, 0.95),
            rgba(16, 35, 63, 0.95)
        );

    padding: 70px 0;
}

.cta-section h2 {
    color: #ffffff;

    font-size: 40px;

    margin-bottom: 12px;
}

.cta-section p {
    color: #e5e7eb;

    margin-bottom: 25px;
}


/* =====================================================
   FOOTER
===================================================== */

.footer {
    background: var(--footer);

    color: #cbd5e1;

    padding: 70px 0 20px;
}

.footer-logo {
    width: 120px;
    height: 80px;

    object-fit: contain;

    margin-bottom: 20px;
}

.footer h4 {
    color: #ffffff;

    font-size: 18px;

    margin-bottom: 20px;
}

.footer p,
.footer li,
.footer a {
    font-size: 14px;
}

.footer ul {
    padding: 0;

    margin: 0;

    list-style: none;
}

.footer ul li {
    margin-bottom: 9px;
}

.footer ul li a {
    color: #cbd5e1;
}

.footer ul li a:hover {
    color: var(--secondary);

    padding-left: 5px;
}

.footer i {
    color: var(--secondary);

    margin-right: 6px;
}

.social-links {
    display: flex;

    gap: 10px;
}

.social-links a {
    width: 40px;
    height: 40px;

    display: flex;

    justify-content: center;
    align-items: center;

    background: rgba(255, 255, 255, 0.08);

    border-radius: 50%;

    color: #ffffff;
}

.social-links a i {
    margin: 0;
}

.social-links a:hover {
    background: var(--secondary);

    transform: translateY(-5px);
}

.footer hr {
    border-color: rgba(255, 255, 255, 0.15);

    margin: 40px 0 20px;
}

.footer-bottom {
    display: flex;

    justify-content: space-between;

    gap: 20px;

    font-size: 13px;
}

.footer-bottom p {
    margin: 0;
}


/* =====================================================
   SCROLL TOP
===================================================== */

.scroll-top {
    position: fixed;

    right: 25px;
    bottom: 25px;

    width: 45px;
    height: 45px;

    border: none;

    border-radius: 50%;

    background: var(--secondary);

    color: #ffffff;

    font-size: 20px;

    display: none;

    align-items: center;
    justify-content: center;

    z-index: 999;

    box-shadow: var(--shadow);

    transition: var(--transition);
}

.scroll-top:hover {
    background: var(--primary);

    transform: translateY(-4px);
}


/* =====================================================
   PAGE HERO
===================================================== */

.page-hero {
    background:
        linear-gradient(
            135deg,
            rgba(11, 61, 145, 0.95),
            rgba(16, 35, 63, 0.95)
        );

    color: #ffffff;

    padding: 90px 0 70px;
}

.page-hero h1 {
    color: #ffffff;

    font-size: clamp(2.2rem, 3vw, 3.3rem);

    margin-bottom: 12px;
}

.page-hero p {
    color: rgba(255, 255, 255, 0.8);

    max-width: 700px;

    margin: 0 auto;
}

.breadcrumb {
    display: flex;

    flex-wrap: wrap;

    gap: 10px;

    align-items: center;

    font-size: 0.85rem;

    color: rgba(255, 255, 255, 0.8);
}

.breadcrumb a {
    color: #ffffff;
}


/* =====================================================
   GALLERY
===================================================== */

.gallery-grid {
    display: grid;

    grid-template-columns:
        repeat(auto-fit, minmax(220px, 1fr));

    gap: 24px;
}

.gallery-item {
    position: relative;

    overflow: hidden;

    border-radius: 14px;

    box-shadow: var(--shadow);

    aspect-ratio: 4 / 3;

    background: var(--surface);
}

.gallery-item img {
    width: 100%;
    height: 100%;

    object-fit: cover;

    transition: transform 0.4s ease;
}

.gallery-item:hover img {
    transform: scale(1.08);
}

.gallery-overlay {
    position: absolute;

    inset: 0;

    background: rgba(16, 35, 63, 0.62);

    display: flex;

    align-items: center;
    justify-content: center;

    flex-direction: column;

    color: #ffffff;

    opacity: 0;

    transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}


/* =====================================================
   CONTACT + ADMISSION
===================================================== */

.contact-info,
.contact-form,
.admission-panel,
.message-card {
    background: var(--card);

    border: 1px solid var(--border);

    border-radius: 16px;

    box-shadow: var(--shadow);

    padding: 28px;

    height: 100%;
}

.contact-item {
    display: flex;

    gap: 16px;

    align-items: flex-start;

    padding: 14px 0;

    border-bottom: 1px solid var(--border);
}

.contact-item:last-child {
    border-bottom: none;
}

.contact-icon {
    width: 48px;
    height: 48px;

    border-radius: 12px;

    background: rgba(11, 61, 145, 0.08);

    color: var(--primary);

    display: flex;

    align-items: center;
    justify-content: center;

    font-size: 1.3rem;

    flex-shrink: 0;
}


/* =====================================================
   FORMS
===================================================== */

.form-control,
.form-select,
textarea.form-control {
    border: 1px solid var(--border);

    background: var(--card);

    color: var(--heading);

    border-radius: 10px;

    padding: 12px 14px;
}

.form-control::placeholder,
textarea.form-control::placeholder {
    color: #94a3b8;
}

.form-control:focus,
.form-select:focus,
textarea.form-control:focus {
    border-color: var(--primary);

    box-shadow:
        0 0 0 0.2rem
        rgba(11, 61, 145, 0.15);

    background: var(--card);

    color: var(--heading);
}

.form-label {
    display: inline-block;

    margin-bottom: 8px;

    color: var(--heading);

    font-weight: 600;
}

.contact-btn,
.admission-btn {
    border: none;

    border-radius: 10px;

    background: var(--primary);

    color: #ffffff;

    font-weight: 700;

    padding: 12px 22px;

    transition: var(--transition);
}

.contact-btn:hover,
.admission-btn:hover {
    background: var(--secondary);

    color: #ffffff;

    transform: translateY(-2px);
}


/* =====================================================
   MAP
===================================================== */

.map-container {
    margin-top: 35px;

    border-radius: 18px;

    overflow: hidden;

    box-shadow: var(--shadow);
}


/* =====================================================
   ADMISSION
===================================================== */

.admission-highlights {
    display: grid;

    gap: 18px;

    margin-top: 30px;
}

.admission-highlight {
    display: flex;

    gap: 14px;

    align-items: flex-start;

    padding: 18px;

    border: 1px solid var(--border);

    border-radius: 12px;

    background: var(--surface);
}

.admission-highlight i {
    color: var(--secondary);

    font-size: 1.5rem;
}


/* =====================================================
   FORM MESSAGE
===================================================== */

.form-message {
    display: none;

    margin-top: 12px;

    padding: 10px 12px;

    border-radius: 8px;

    font-weight: 600;
}

.form-message.success {
    display: block;

    background: rgba(31, 157, 85, 0.12);

    color: #157347;
}

.form-message.error {
    display: block;

    background: rgba(220, 38, 38, 0.08);

    color: #b42318;
}


/* =====================================================
   PRINCIPAL MESSAGE
===================================================== */

.message-card img {
    width: 100%;

    max-width: 275px;

    height: 320px;

    object-fit: cover;

    border-radius: 15px;

    box-shadow: var(--shadow);

    margin: 0 auto 20px;
}

.message-text {
    color: var(--text);

    line-height: 1.9;

    font-size: 1.02rem;
}


/* =====================================================
   SCHOOL FACILITIES
===================================================== */

.facilities-section {
    padding: 90px 0;

    background: var(--surface);
}

.facilities-section .section-heading p {
    max-width: 700px;

    margin: 15px auto 0;

    color: var(--text);
}

.facility-card {
    height: 100%;

    padding: 35px 25px;

    text-align: center;

    background: var(--card);

    border-radius: 18px;

    border: 1px solid var(--border);

    box-shadow: var(--shadow);

    transition: var(--transition);

    position: relative;

    overflow: hidden;
}

.facility-card::before {
    content: "";

    position: absolute;

    left: 0;
    top: 0;

    width: 100%;
    height: 4px;

    background:
        linear-gradient(
            90deg,
            var(--primary),
            var(--secondary)
        );

    transform: scaleX(0);

    transform-origin: left;

    transition: transform 0.35s ease;
}

.facility-card:hover {
    transform: translateY(-10px);

    box-shadow: var(--shadow);
}

.facility-card:hover::before {
    transform: scaleX(1);
}

.facility-icon {
    width: 75px;
    height: 75px;

    margin: 0 auto 22px;

    border-radius: 50%;

    display: flex;

    align-items: center;
    justify-content: center;

    background: rgba(11, 61, 145, 0.1);

    color: var(--primary);

    font-size: 32px;

    transition: var(--transition);
}

.facility-card:hover .facility-icon {
    transform: scale(1.08) rotate(5deg);

    background: var(--primary);

    color: #ffffff;
}

.facility-card h4 {
    color: var(--heading);

    font-size: 21px;

    font-weight: 700;

    margin-bottom: 14px;
}

.facility-card p {
    color: var(--text);

    line-height: 1.7;

    margin-bottom: 20px;
}

.facility-link {
    color: var(--primary);

    font-weight: 600;

    font-size: 14px;
}

.facility-link:hover {
    color: var(--secondary);
}

.facility-link i {
    margin-left: 5px;

    transition: margin-left 0.25s ease;
}

.facility-card:hover .facility-link i {
    margin-left: 10px;
}


/* =====================================================
   DARK MODE - GENERAL
===================================================== */

body[data-theme="dark"] .feature-icon,
body[data-theme="dark"] .contact-icon {
    background: rgba(91, 141, 239, 0.15);

    color: #8db0ff;
}

body[data-theme="dark"] .theme-toggle {
    background: #1a2639;

    color: var(--heading);

    border-color: #33445f;
}

body[data-theme="dark"] .theme-toggle:hover {
    background: #22324b;

    border-color: var(--secondary);

    color: #ffd166;
}


/* =====================================================
   DARK MODE - HERO
===================================================== */

body[data-theme="dark"] .carousel-caption h1 {
    color: #ffffff !important;
}

body[data-theme="dark"] .carousel-caption p {
    color: #f8fafc !important;
}


/* =====================================================
   DARK MODE - CLASSES
===================================================== */

body[data-theme="dark"] .class-card {
    background: var(--card);

    border-color: var(--border);
}

body[data-theme="dark"] .class-card h4 {
    color: var(--heading);
}

body[data-theme="dark"] .class-card p {
    color: var(--text);
}

body[data-theme="dark"] .class-card:hover {
    background: var(--primary);
}

body[data-theme="dark"] .class-card:hover h4,
body[data-theme="dark"] .class-card:hover p {
    color: #ffffff;
}


/* =====================================================
   DARK MODE - NEWS
===================================================== */

body[data-theme="dark"] .news-meta,
body[data-theme="dark"] .event-meta {
    background: rgba(91, 141, 239, 0.14);

    color: #8db0ff;
}


/* =====================================================
   DARK MODE - PRINCIPAL
===================================================== */

body[data-theme="dark"] .principal-highlight {
    background: #172236;
}


/* =====================================================
   DARK MODE - FORM
===================================================== */

body[data-theme="dark"] .form-control,
body[data-theme="dark"] .form-select,
body[data-theme="dark"] textarea.form-control {
    background: #0f192a;

    color: #f1f5f9;

    border-color: #33445f;
}

body[data-theme="dark"] .form-control::placeholder,
body[data-theme="dark"] textarea.form-control::placeholder {
    color: #8290a5;
}

body[data-theme="dark"] .form-control:focus,
body[data-theme="dark"] .form-select:focus,
body[data-theme="dark"] textarea.form-control:focus {
    background: #111d30;

    color: #ffffff;

    border-color: var(--primary);

    box-shadow:
        0 0 0 0.2rem
        rgba(91, 141, 239, 0.18);
}

body[data-theme="dark"] .form-select option {
    background: #0f192a;

    color: #ffffff;
}


/* =====================================================
   DARK MODE - ADMISSION
===================================================== */

body[data-theme="dark"] .admission-highlight {
    background: var(--surface);

    border-color: var(--border);
}


/* =====================================================
   DARK MODE - MESSAGE
===================================================== */

body[data-theme="dark"] .message-text,
body[data-theme="dark"] .signature span,
body[data-theme="dark"] .signature small {
    color: var(--text);
}


/* =====================================================
   DARK MODE - FACILITIES
===================================================== */

body[data-theme="dark"] .facilities-section {
    background: var(--surface);
}

body[data-theme="dark"] .facility-card {
    background: var(--card);

    border-color: var(--border);

    box-shadow: var(--shadow);
}

body[data-theme="dark"] .facility-card h4 {
    color: #ffffff;
}

body[data-theme="dark"] .facility-card p,
body[data-theme="dark"] .facilities-section .section-heading p {
    color: #b8c5d8;
}

body[data-theme="dark"] .facility-icon {
    background: rgba(91, 141, 239, 0.15);

    color: #8db0ff;
}

body[data-theme="dark"] .facility-card:hover .facility-icon {
    background: var(--primary);

    color: #ffffff;
}

body[data-theme="dark"] .facility-link {
    color: #8db0ff;
}

body[data-theme="dark"] .facility-link:hover {
    color: var(--secondary);
}


/* =====================================================
   DARK MODE - FOOTER
===================================================== */

body[data-theme="dark"] .footer {
    background: #070d18;
}

body[data-theme="dark"] .footer a,
body[data-theme="dark"] .footer li,
body[data-theme="dark"] .footer p {
    color: #b8c5d8;
}

body[data-theme="dark"] .footer a:hover {
    color: var(--secondary);
}


/* =====================================================
   DARK MODE - BUTTONS
===================================================== */

body[data-theme="dark"] .btn-primary,
body[data-theme="dark"] .contact-btn,
body[data-theme="dark"] .admission-btn {
    color: #ffffff;
}

body[data-theme="dark"] .btn-primary:hover,
body[data-theme="dark"] .contact-btn:hover,
body[data-theme="dark"] .admission-btn:hover {
    color: #ffffff;
}

body[data-theme="dark"] .btn-light {
    background: #f8fafc;

    color: #10233f;
}

body[data-theme="dark"] .btn-light:hover {
    background: var(--secondary);

    color: #ffffff;
}


/* =====================================================
   DARK MODE - FORM MESSAGE
===================================================== */

body[data-theme="dark"] .form-message.success {
    background: rgba(34, 197, 94, 0.14);

    color: #86efac;
}

body[data-theme="dark"] .form-message.error {
    background: rgba(248, 113, 113, 0.12);

    color: #fca5a5;
}


/* =====================================================
   REVEAL ANIMATION
===================================================== */

.reveal-element {
    opacity: 0;

    transform: translateY(18px);

    transition:
        opacity 0.7s ease,
        transform 0.7s ease;
}

.show-element {
    opacity: 1;

    transform: translateY(0);
}


/* =====================================================
   WHATSAPP FLOAT BUTTON
===================================================== */

.whatsapp-float {
    position: fixed;

    right: 25px;

    bottom: 85px;

    width: 52px;
    height: 52px;

    display: flex;

    align-items: center;
    justify-content: center;

    background: #25d366;

    color: #ffffff;

    border-radius: 50%;

    font-size: 27px;

    text-decoration: none;

    z-index: 9999;

    box-shadow:
        0 5px 18px
        rgba(0, 0, 0, 0.25);

    transition: all 0.3s ease;

    animation: whatsappPulse 2s infinite;
}

.whatsapp-float:hover {
    color: #ffffff;

    transform:
        translateY(-5px)
        scale(1.08);

    box-shadow:
        0 8px 25px
        rgba(0, 0, 0, 0.3);
}

@keyframes whatsappPulse {

    0% {
        box-shadow:
            0 0 0 0
            rgba(37, 211, 102, 0.5);
    }

    70% {
        box-shadow:
            0 0 0 12px
            rgba(37, 211, 102, 0);
    }

    100% {
        box-shadow:
            0 0 0 0
            rgba(37, 211, 102, 0);
    }
}


/* =====================================================
   REDUCED MOTION
===================================================== */

@media (prefers-reduced-motion: reduce) {

    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation: none !important;

        transition: none !important;
    }
}


/* =====================================================
   LARGE TABLET
===================================================== */

@media (max-width: 1199px) {

    .nav-link {
        font-size: 13px;

        padding-left: 7px !important;
        padding-right: 7px !important;
    }

    .carousel-caption {
        left: 8%;
    }
}


/* =====================================================
   TABLET
===================================================== */

@media (max-width: 991px) {

    section {
        padding: 70px 0;
    }

    .top-bar {
        text-align: center;
    }

    .top-bar .text-md-end {
        text-align: center !important;

        margin-top: 5px;
    }

    .main-header {
        position: relative;
    }

    .navbar {
        padding: 10px 0;
    }

    .navbar-nav {
        background: var(--card);

        padding: 15px;

        margin-top: 10px;

        border-radius: 10px;

        box-shadow: var(--shadow);
    }

    .nav-link {
        padding: 10px 15px !important;
    }

    .nav-link::after {
        display: none;
    }

    .dropdown-menu {
        box-shadow: none;

        border: 1px solid var(--border);
    }

    .hero-section .carousel-item {
        height: 520px;
    }

    .carousel-caption {
        left: 7%;
        right: 7%;
    }

    .carousel-caption h1 {
        font-size: 45px;
    }

    .features-section {
        margin-top: 0;

        padding: 50px 0;
    }
}


/* =====================================================
   MOBILE
===================================================== */

@media (max-width: 767px) {

    section {
        padding: 55px 0;
    }

    .logo-area img {
        width: 100px;

        height: 65px;
    }

    .hero-section .carousel-item {
        height: 500px;
    }

    .carousel-caption {
        text-align: center;

        left: 20px;
        right: 20px;
    }

    .carousel-caption h1 {
        font-size: 35px;
    }

    .carousel-caption p {
        font-size: 16px;
    }

    .hero-small-title {
        font-size: 12px;
    }

    .about-image img {
        height: 320px;
    }

    .page-hero {
        padding-top: 70px;

        padding-bottom: 60px;
    }

    .message-card,
    .contact-info,
    .contact-form,
    .admission-panel {
        padding: 20px;
    }

    .footer-bottom {
        flex-direction: column;

        text-align: center;
    }

    .header-actions {
        margin-left: 0;

        margin-top: 10px;
    }
}


/* =====================================================
   SMALL MOBILE
===================================================== */

@media (max-width: 575px) {

    .top-bar {
        font-size: 12px;
    }

    .hero-section .carousel-item {
        height: 450px;
    }

    .carousel-caption h1 {
        font-size: 30px;
    }

    .carousel-caption p {
        font-size: 14px;
    }

    .btn-primary {
        padding: 10px 18px;

        font-size: 14px;
    }

    .feature-card {
        padding: 28px 22px;
    }

    .facility-card {
        padding: 30px 20px;
    }

    .whatsapp-float {
        right: 18px;

        bottom: 75px;

        width: 48px;
        height: 48px;

        font-size: 24px;
    }

    .scroll-top {
        right: 18px;

        bottom: 18px;

        width: 42px;
        height: 42px;
    }
}