/* ==========================================================================
   DESIGN SYSTEM & CSS CUSTOM PROPERTIES
   ========================================================================== */
:root {
    /* Fonts */
    --font-primary: 'Outfit', sans-serif;
    --font-heading: 'Playfair Display', serif;

    /* Light Theme Palette (Default) */
    --bg-primary: #f6f8fc;
    --bg-secondary: #ffffff;
    --bg-glow-1: rgba(212, 175, 55, 0.15); /* Warm Gold */
    --bg-glow-2: rgba(10, 25, 47, 0.08); /* Deep Navy */
    
    --text-primary: #1e293b;
    --text-secondary: #475569;
    --text-muted: #64748b;
    --text-inverse: #ffffff;

    --primary: #0a192f; /* Deep Navy */
    --primary-light: #172a45;
    --accent: #d4af37; /* Metallic Gold */
    --accent-hover: #b89326;
    
    /* Glassmorphism Styles */
    --glass-bg: rgba(255, 255, 255, 0.65);
    --glass-border: rgba(255, 255, 255, 0.4);
    --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.08);
    --glass-blur: blur(12px);

    /* UI colors */
    --success: #10b981;
    --error: #ef4444;
    --warning: #f59e0b;
    
    /* Layout & Utilities */
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-round: 50%;
    --transition-smooth: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.15s ease;
    --container-width: 1200px;
    --header-height: 80px;
}

/* Dark Theme Palette overrides */
.dark-theme {
    --bg-primary: #0b132b;
    --bg-secondary: #111a36;
    --bg-glow-1: rgba(212, 175, 55, 0.08);
    --bg-glow-2: rgba(10, 25, 47, 0.3);

    --text-primary: #f1f5f9;
    --text-secondary: #cbd5e1;
    --text-muted: #94a3b8;
    --text-inverse: #0b132b;

    --primary: #d4af37; /* Gold becomes primary highlight */
    --primary-light: #f39c12;
    --accent: #38bdf8; /* Soft blue secondary accent in dark mode */
    --accent-hover: #0ea5e9;

    --glass-bg: rgba(17, 26, 54, 0.7);
    --glass-border: rgba(255, 255, 255, 0.05);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

/* ==========================================================================
   GLOBAL RESET & STYLES
   ========================================================================== */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-primary);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background-color 0.5s ease, color 0.5s ease;
}

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

button, input, select, textarea {
    font-family: inherit;
    font-size: inherit;
}

ul {
    list-style: none;
}

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

/* Background Glow Elements */
.glow-bg {
    position: fixed;
    width: 600px;
    height: 600px;
    border-radius: var(--radius-round);
    filter: blur(130px);
    z-index: -1;
    pointer-events: none;
    transition: var(--transition-smooth);
}
.glow-1 {
    top: -200px;
    right: -100px;
    background: var(--bg-glow-1);
}
.glow-2 {
    bottom: -200px;
    left: -100px;
    background: var(--bg-glow-2);
}

/* Container */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
}

/* Section Margins & Padding */
.section-padding {
    padding: 80px 0;
}
.margin-top-md { margin-top: 16px; }
.margin-top-lg { margin-top: 24px; }
.margin-top-xl { margin-top: 40px; }
.margin-bottom-md { margin-bottom: 16px; }
.margin-bottom-lg { margin-bottom: 24px; }
.margin-bottom-xl { margin-bottom: 40px; }

/* Grid Layouts */
.grid-2col {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 48px;
}
.grid-3col {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}
.grid-4col {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}
.align-center {
    align-items: center;
}

/* Typographic Defaults */
h1, h2, h3, h4 {
    font-family: var(--font-primary);
    font-weight: 700;
    line-height: 1.25;
}
h1 {
    font-family: var(--font-heading);
    font-size: 3rem;
}
h2 {
    font-size: 2.25rem;
}
h3 {
    font-size: 1.5rem;
}
.text-lead {
    font-size: 1.15rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 16px;
}
.text-muted {
    color: var(--text-muted);
}

/* Section Header styling */
.section-header {
    margin-bottom: 50px;
}
.section-subtitle {
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--accent);
    margin-bottom: 8px;
}
.section-title {
    position: relative;
    display: inline-block;
    padding-bottom: 12px;
    margin-bottom: 16px;
}
.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background-color: var(--accent);
    border-radius: 2px;
}
.section-title-left {
    position: relative;
    display: inline-block;
    padding-bottom: 12px;
    margin-bottom: 20px;
}
.section-title-left::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background-color: var(--accent);
    border-radius: 2px;
}
.section-description {
    max-width: 600px;
    margin: 0 auto;
    color: var(--text-muted);
}
.text-center {
    text-align: center;
}

/* Rounded and Shadowed Image */
.rounded-img {
    border-radius: var(--radius-md);
    object-fit: cover;
    width: 100%;
}
.shadow-lg {
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    font-weight: 600;
    border-radius: var(--radius-sm);
    border: none;
    cursor: pointer;
    transition: var(--transition-smooth);
}
.btn-primary {
    background-color: var(--accent);
    color: var(--text-inverse);
}
.btn-primary:hover {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.4);
}
.btn-secondary {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--text-inverse);
    border: 1px solid rgba(255,255,255,0.25);
    backdrop-filter: blur(4px);
}
.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
}
.btn-full {
    width: 100%;
}
.btn-sm {
    padding: 8px 18px;
    font-size: 0.9rem;
}

/* Background Highlight Panel */
.bg-glass-accent {
    background-color: rgba(10, 25, 47, 0.02);
    border-top: 1px solid var(--glass-border);
    border-bottom: 1px solid var(--glass-border);
}
.dark-theme .bg-glass-accent {
    background-color: rgba(17, 26, 54, 0.4);
}

/* Glass panel */
.glass-panel {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    box-shadow: var(--glass-shadow);
    backdrop-filter: var(--glass-blur);
    padding: 32px;
}

/* ==========================================================================
   HEADER NAVIGATION (STYLISH & STICKY)
   ========================================================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background: rgba(255, 255, 255, 0.7);
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.03);
    backdrop-filter: var(--glass-blur);
    z-index: 1000;
    display: flex;
    align-items: center;
    transition: var(--transition-smooth);
}
.dark-theme .header {
    background: rgba(11, 19, 43, 0.75);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.header-container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Logo Design */
.logo-area {
    display: flex;
    align-items: center;
    gap: 12px;
}
.logo-icon {
    width: 44px;
    height: 44px;
    background-color: var(--primary);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    font-size: 1.25rem;
    box-shadow: 0 4px 10px rgba(10, 25, 47, 0.15);
}
.logo-text {
    display: flex;
    flex-direction: column;
}
.logo-title {
    font-size: 1.25rem;
    font-weight: 800;
    line-height: 1;
    color: var(--primary);
    letter-spacing: 1px;
}
.logo-subtitle {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-muted);
}

/* Nav Menu */
.nav-list {
    display: flex;
    gap: 20px;
    align-items: center;
}
.nav-link {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-secondary);
    position: relative;
    padding: 6px 0;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.nav-link:hover, .nav-link.active {
    color: var(--primary);
}
.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent);
    transition: var(--transition-fast);
}
.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
}

/* Dropdown navigation styles */
.nav-item.dropdown {
    position: relative;
}
.dropdown-arrow {
    font-size: 0.7rem;
    transition: var(--transition-fast);
    opacity: 0.8;
}
.nav-item.dropdown:hover .dropdown-arrow {
    transform: rotate(180deg);
}
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
    box-shadow: var(--glass-shadow);
    backdrop-filter: var(--glass-blur);
    min-width: 190px;
    padding: 10px 0;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-smooth);
    z-index: 1001;
}
.dropdown-menu li {
    display: block;
    width: 100%;
}
.dropdown-item {
    display: block;
    padding: 8px 20px;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-secondary);
    white-space: nowrap;
    text-align: left;
    transition: var(--transition-fast);
}
.dropdown-item:hover,
.dropdown-item.active {
    background-color: rgba(212, 175, 55, 0.15);
    color: var(--primary) !important;
    padding-left: 24px;
}
.nav-item.dropdown:hover .dropdown-menu,
.nav-item.dropdown:focus-within .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}
.nav-item.dropdown:hover > .nav-link,
.nav-item.dropdown:focus-within > .nav-link,
.nav-item.dropdown:has(.active) > .nav-link {
    color: var(--primary);
}
.nav-item.dropdown:hover > .nav-link::after,
.nav-item.dropdown:focus-within > .nav-link::after,
.nav-item.dropdown:has(.active) > .nav-link::after {
    width: 100%;
}

/* Header Right Utilities */
.header-right {
    display: flex;
    align-items: center;
    gap: 16px;
}
.theme-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1.2rem;
    cursor: pointer;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-round);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
}
.theme-btn:hover {
    background-color: rgba(0, 0, 0, 0.05);
    color: var(--primary);
}
.dark-theme .theme-btn:hover {
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--primary);
}
.cta-btn {
    padding: 10px 20px;
    background-color: var(--primary);
    color: var(--accent);
    font-weight: 600;
    font-size: 0.9rem;
    border-radius: var(--radius-sm);
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}
.cta-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.1);
}
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.4rem;
    color: var(--text-primary);
    cursor: pointer;
}

/* ==========================================================================
   SPA ROUTING SECTIONS (SMOOTH TRANSITIONS)
   ========================================================================== */
.main-content {
    margin-top: var(--header-height);
    min-height: calc(100vh - var(--header-height));
    position: relative;
}

.spa-section {
    display: none;
    opacity: 0;
    transform: translateY(15px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}
.spa-section.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.page-header {
    background-size: cover;
    background-position: center;
    padding: 60px 0;
    color: #ffffff;
    text-align: center;
    position: relative;
}
.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(10, 25, 47, 0.75), rgba(10, 25, 47, 0.9));
}
.page-header .container {
    position: relative;
    z-index: 1;
}
.page-header h1 {
    font-size: 2.75rem;
    margin-bottom: 8px;
    color: var(--accent);
}

.header-about { background-image: url('banner/building.jpeg'); }
.header-academics { background-image: url('banner/hytu.jpg'); }
.header-faculty { background-image: url('banner/ks.jpg'); }
.header-houses { background-image: url('banner/cads.jpg'); }
.header-admission { background-image: url('banner/sold.jpg'); }
.header-creche { background-image: url('banner/moble.jpg'); }
.header-alumni { background-image: url('banner/building.jpeg'); }
.header-news { background-image: url('banner/hytu.jpg'); }
.header-gallery { background-image: url('banner/ks.jpg'); }
.header-contact { background-image: url('banner/building.jpeg'); }

/* ==========================================================================
   HERO SLIDER
   ========================================================================== */
.hero-slider-container {
    position: relative;
    height: calc(100vh - var(--header-height));
    width: 100%;
    overflow: hidden;
}
.slider-wrapper {
    width: 100%;
    height: 100%;
}
.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    opacity: 0;
    transition: opacity 1s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
}
.slide.active {
    opacity: 1;
    z-index: 2;
}

.slide-content {
    max-width: 680px;
    margin-left: 10%;
    color: #ffffff;
    padding: 30px;
    z-index: 10;
    transform: translateY(30px);
    opacity: 0;
    transition: all 0.8s ease 0.4s;
}
.slide.active .slide-content {
    transform: translateY(0);
    opacity: 1;
}

.slide-tag {
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--accent);
    margin-bottom: 12px;
    display: inline-block;
}
.slide-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 16px;
    line-height: 1.15;
}
.slide-desc {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 30px;
}
.slide-actions {
    display: flex;
    gap: 16px;
}

/* Arrow Navigation */
.slide-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background-color: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    border-radius: var(--radius-round);
    cursor: pointer;
    z-index: 10;
    transition: var(--transition-fast);
    backdrop-filter: blur(4px);
}
.slide-arrow:hover {
    background-color: var(--accent);
    border-color: var(--accent);
}
.slide-arrow.prev { left: 30px; }
.slide-arrow.next { right: 30px; }

/* Dot Navs */
.slider-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 10;
}
.slider-dots .dot {
    width: 12px;
    height: 12px;
    border-radius: var(--radius-round);
    background-color: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: var(--transition-smooth);
}
.slider-dots .dot.active {
    background-color: var(--accent);
    width: 32px;
    border-radius: 6px;
}

/* ==========================================================================
   WELCOME & STATS
   ========================================================================== */
.welcome-text h2 {
    margin-bottom: 20px;
}
.stats-row {
    display: flex;
    gap: 24px;
    margin-top: 32px;
}
.stat-box {
    background: var(--bg-secondary);
    border: 1px solid var(--glass-border);
    padding: 16px 24px;
    border-radius: var(--radius-sm);
    box-shadow: 0 4px 12px rgba(0,0,0,0.02);
    flex: 1;
    text-align: center;
}
.stat-num {
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--accent);
    line-height: 1;
    margin-bottom: 4px;
}
.stat-lbl {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
}
.glass-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    background: rgba(10, 25, 47, 0.75);
    color: var(--accent);
    padding: 6px 14px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 20px;
    backdrop-filter: blur(4px);
}
.info-image-card {
    position: relative;
}

/* ==========================================================================
   COURSES CARDS
   ========================================================================== */
.course-card {
    background: var(--bg-secondary);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    padding: 30px;
    box-shadow: var(--glass-shadow);
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
}
.course-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
}
.course-icon {
    width: 54px;
    height: 54px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 20px;
}
.course-icon.science { background-color: rgba(56, 189, 248, 0.1); color: #38bdf8; }
.course-icon.arts { background-color: rgba(168, 85, 247, 0.1); color: #a855f7; }
.course-icon.business { background-color: rgba(16, 185, 129, 0.1); color: #10b981; }
.course-icon.homeec { background-color: rgba(244, 63, 94, 0.1); color: #f43f5e; }

.course-card h3 {
    font-size: 1.25rem;
    margin-bottom: 12px;
}
.course-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 20px;
    flex-grow: 1;
}
.learn-more-link {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--accent);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.learn-more-link i {
    transition: var(--transition-fast);
}
.learn-more-link:hover i {
    transform: translateX(4px);
}

.reverse-row {
    direction: rtl;
}
.reverse-row > * {
    direction: ltr;
}

.icon-list {
    margin: 20px 0;
}
.icon-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 8px;
}
.icon-list li i {
    color: var(--success);
}

/* ==========================================================================
   ACADEMICS PAGE (TABS MECHANISM)
   ========================================================================== */
.tabs-container {
    width: 100%;
    margin-top: 40px;
}
.tabs-nav {
    display: flex;
    justify-content: center;
    gap: 16px;
    border-bottom: 1px solid var(--glass-border);
    padding-bottom: 16px;
    margin-bottom: 40px;
}
.tab-btn {
    background: var(--bg-secondary);
    border: 1px solid var(--glass-border);
    color: var(--text-secondary);
    padding: 12px 24px;
    font-weight: 600;
    border-radius: var(--radius-sm);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition-fast);
}
.tab-btn:hover {
    color: var(--accent);
    background-color: var(--bg-primary);
}
.tab-btn.active {
    background-color: var(--accent);
    color: var(--text-inverse);
    border-color: var(--accent);
}

.tab-content {
    display: none;
    opacity: 0;
    transition: opacity 0.5s ease;
}
.tab-content.active {
    display: block;
    opacity: 1;
}

.subjects-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 20px;
}
.sub-pill {
    background-color: var(--bg-secondary);
    border: 1px solid var(--glass-border);
    padding: 8px 16px;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 8px;
}
.sub-pill i {
    color: var(--accent);
}

.facility-card {
    text-align: center;
    padding: 30px;
}
.facility-icon {
    width: 64px;
    height: 64px;
    background-color: rgba(212, 175, 55, 0.1);
    color: var(--accent);
    font-size: 1.75rem;
    border-radius: var(--radius-round);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px auto;
}
.facility-card h3 {
    margin-bottom: 12px;
    font-size: 1.25rem;
}
.facility-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* ==========================================================================
   FACULTY PAGE
   ========================================================================== */
.principal-message-card {
    padding: 40px;
}
.principal-message-card blockquote {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-style: italic;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 24px;
    position: relative;
}
.principal-message-card blockquote::before {
    content: '“';
    font-size: 4rem;
    position: absolute;
    top: -30px;
    left: -20px;
    color: rgba(212, 175, 55, 0.2);
}
.principal-info h4 {
    color: var(--accent);
    font-size: 1.1rem;
}
.principal-img {
    height: 380px;
    object-position: center top;
}

.faculty-card {
    text-align: center;
    padding: 30px 20px;
}
.faculty-avatar {
    width: 80px;
    height: 80px;
    background-color: var(--primary);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.25rem;
    border-radius: var(--radius-round);
    margin: 0 auto 20px auto;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}
.faculty-card h3 {
    font-size: 1.2rem;
    margin-bottom: 6px;
}
.faculty-title {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 6px;
}
.faculty-edu {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* ==========================================================================
   HOUSES
   ========================================================================== */
.house-card-box {
    padding: 30px;
    text-align: center;
    transition: var(--transition-smooth);
}
.house-card-box:hover {
    transform: translateY(-8px);
}
.house-banner {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-round);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #ffffff;
    margin: 0 auto 20px auto;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.house-banner.gold { background: linear-gradient(135deg, #f1c40f, #f39c12); }
.house-banner.blue { background: linear-gradient(135deg, #3498db, #2980b9); }
.house-banner.red { background: linear-gradient(135deg, #e74c3c, #c0392b); }
.house-banner.green { background: linear-gradient(135deg, #2ecc71, #27ae60); }

.house-motto {
    font-style: italic;
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 16px;
}
.house-color-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    background-color: var(--bg-primary);
    padding: 4px 12px;
    border-radius: 20px;
    border: 1px solid var(--glass-border);
    margin-bottom: 20px;
}
.color-dot {
    width: 8px;
    height: 8px;
    border-radius: var(--radius-round);
}
.gold-dot { background-color: #f39c12; }
.blue-dot { background-color: #2980b9; }
.red-dot { background-color: #c0392b; }
.green-dot { background-color: #27ae60; }

.house-stats {
    border-top: 1px solid var(--glass-border);
    padding-top: 16px;
    text-align: left;
    font-size: 0.85rem;
}
.house-stats li {
    display: flex;
    justify-content: space-between;
    margin-bottom: 4px;
    color: var(--text-secondary);
}

/* ==========================================================================
   ADMISSIONS PORTAL (MULTI-STEP WIZARD FORM)
   ========================================================================== */
.download-portal {
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.pdf-card {
    display: flex;
    align-items: center;
    gap: 16px;
    background-color: rgba(239, 68, 68, 0.05);
    border: 1px solid rgba(239, 68, 68, 0.2);
    padding: 16px;
    border-radius: var(--radius-sm);
    margin: 20px 0;
}
.pdf-icon {
    font-size: 2.25rem;
    color: #ef4444;
}
.pdf-details {
    display: flex;
    flex-direction: column;
}
.pdf-details strong {
    font-size: 0.95rem;
    color: var(--text-primary);
}
.pdf-details span {
    font-size: 0.8rem;
    color: var(--text-muted);
}
.download-meta {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Wizard Form Header Progress */
.wizard-progress {
    display: flex;
    justify-content: space-between;
    position: relative;
    margin-bottom: 40px;
}
.wizard-progress::before {
    content: '';
    position: absolute;
    top: 15px;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: var(--bg-primary);
    z-index: 1;
}
.step-progress {
    position: relative;
    width: 32px;
    height: 32px;
    border-radius: var(--radius-round);
    background-color: var(--bg-primary);
    border: 3px solid var(--glass-border);
    color: var(--text-muted);
    font-weight: 700;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    transition: var(--transition-smooth);
}
.step-progress span {
    position: absolute;
    top: 38px;
    white-space: nowrap;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
}
.step-progress.active {
    background-color: var(--accent);
    border-color: var(--accent);
    color: var(--text-inverse);
}
.step-progress.active span {
    color: var(--accent);
    font-weight: 700;
}
.step-progress.completed {
    background-color: var(--success);
    border-color: var(--success);
    color: var(--text-inverse);
}

/* Form layouts */
.form-step {
    display: none;
    opacity: 0;
    transition: opacity 0.4s ease;
}
.form-step.active {
    display: block;
    opacity: 1;
}
.form-step h3 {
    font-size: 1.15rem;
    margin-bottom: 20px;
    color: var(--accent);
    border-bottom: 1px solid var(--glass-border);
    padding-bottom: 8px;
}

.form-group {
    margin-bottom: 20px;
}
.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-secondary);
    margin-bottom: 6px;
}
.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group input[type="number"],
.form-group input[type="date"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px 14px;
    background-color: var(--bg-primary);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    outline: none;
    transition: var(--transition-fast);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.15);
}

.grid-2col-form {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.form-actions-wizard {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
    border-top: 1px solid var(--glass-border);
    padding-top: 20px;
}

/* Form Validation Msg */
.error-msg {
    display: none;
    font-size: 0.75rem;
    color: var(--error);
    margin-top: 4px;
    font-weight: 500;
}
input.invalid, select.invalid, textarea.invalid {
    border-color: var(--error) !important;
}

/* Declaration Custom Checkbox */
.checkbox-container {
    display: block;
    position: relative;
    padding-left: 28px;
    cursor: pointer;
    font-size: 0.85rem;
    user-select: none;
}
.checkbox-container input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}
.checkmark {
    position: absolute;
    top: 2px;
    left: 0;
    height: 18px;
    width: 18px;
    background-color: var(--bg-primary);
    border: 1px solid var(--glass-border);
    border-radius: 4px;
    transition: var(--transition-fast);
}
.checkbox-container:hover input ~ .checkmark {
    border-color: var(--accent);
}
.checkbox-container input:checked ~ .checkmark {
    background-color: var(--success);
    border-color: var(--success);
}
.checkmark::after {
    content: "";
    position: absolute;
    display: none;
}
.checkbox-container input:checked ~ .checkmark::after {
    display: block;
}
.checkbox-container .checkmark::after {
    left: 5px;
    top: 2px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

/* Form Review Details Panel */
.review-panel {
    background-color: var(--bg-primary);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
    padding: 16px;
}
.review-item {
    font-size: 0.85rem;
    padding: 6px 0;
    border-bottom: 1px solid rgba(0,0,0,0.03);
    display: flex;
    justify-content: space-between;
}
.review-item:last-child {
    border-bottom: none;
}
.review-item strong {
    color: var(--text-secondary);
}

/* Success submission Box */
.form-success-box {
    display: none;
    text-align: center;
    padding: 40px 20px;
}
.success-icon {
    font-size: 3.5rem;
    color: var(--success);
    margin-bottom: 20px;
}
.form-success-box h3 {
    margin-bottom: 12px;
}
.form-success-box p {
    font-size: 0.95rem;
    color: var(--text-secondary);
}

/* ==========================================================================
   CRECHE PAGE (ST. MAXMILLIAN GIL KIDDIES)
   ========================================================================== */
.creche-features-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 30px;
}
.c-feature {
    display: flex;
    gap: 16px;
}
.c-feature i {
    font-size: 1.5rem;
    color: var(--accent);
    width: 44px;
    height: 44px;
    background-color: rgba(212, 175, 55, 0.1);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.c-feature h4 {
    font-size: 1.05rem;
    margin-bottom: 4px;
}
.c-feature p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* ==========================================================================
   ALUMNI SECTION
   ========================================================================== */
.alumni-form-box {
    position: relative;
    overflow: hidden;
}
#alumni-success {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-secondary);
    z-index: 10;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

/* ==========================================================================
   GALLERY & NEWS
   ========================================================================== */
.news-card {
    position: relative;
    padding: 30px;
    overflow: hidden;
}
.news-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    background-color: rgba(10, 25, 47, 0.05);
    color: var(--primary);
    padding: 4px 10px;
    border-radius: 4px;
}
.dark-theme .news-badge {
    background-color: rgba(255, 255, 255, 0.08);
    color: var(--accent);
}
.creche-badge { background-color: rgba(244, 63, 94, 0.1) !important; color: #f43f5e !important; }
.science-badge { background-color: rgba(56, 189, 248, 0.1) !important; color: #38bdf8 !important; }

.news-date {
    font-size: 0.8rem;
    color: var(--text-muted);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 12px;
}
.news-card h3 {
    font-size: 1.15rem;
    margin-bottom: 8px;
    line-height: 1.35;
}
.news-card p {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* Photo Gallery Filtering */
.gallery-filters {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 30px;
    margin-bottom: 40px;
}
.filter-btn {
    background: var(--bg-secondary);
    border: 1px solid var(--glass-border);
    color: var(--text-secondary);
    padding: 8px 20px;
    font-weight: 600;
    font-size: 0.85rem;
    border-radius: 30px;
    cursor: pointer;
    transition: var(--transition-fast);
}
.filter-btn:hover, .filter-btn.active {
    background-color: var(--accent);
    color: var(--text-inverse);
    border-color: var(--accent);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.gallery-item {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    height: 250px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
    transition: var(--transition-smooth);
}
.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}
.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(10, 25, 47, 0.85), rgba(10, 25, 47, 0.1));
    display: flex;
    align-items: flex-end;
    padding: 20px;
    opacity: 0;
    transition: var(--transition-smooth);
}
.gallery-overlay span {
    color: #ffffff;
    font-weight: 600;
    font-size: 0.95rem;
    transform: translateY(10px);
    transition: var(--transition-smooth);
}
.gallery-item:hover {
    transform: scale(1.02);
}
.gallery-item:hover img {
    transform: scale(1.08);
}
.gallery-item:hover .gallery-overlay {
    opacity: 1;
}
.gallery-item:hover .gallery-overlay span {
    transform: translateY(0);
}

/* ==========================================================================
   CONTACT US & MAP
   ========================================================================== */
.contact-info-panel {
    display: flex;
    flex-direction: column;
}
.contact-details-list {
    margin-top: 24px;
    margin-bottom: 30px;
}
.contact-item-box {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 24px;
}
.contact-item-box i {
    font-size: 1.5rem;
    color: var(--accent);
    width: 50px;
    height: 50px;
    background-color: rgba(212, 175, 55, 0.1);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.contact-item-box h4 {
    font-size: 1.05rem;
    margin-bottom: 2px;
}
.contact-item-box p {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* Custom Vector Map Design */
.map-placeholder {
    height: 250px;
    background-color: #172a45;
    background-image: radial-gradient(rgba(212, 175, 55, 0.15) 1px, transparent 1px);
    background-size: 20px 20px;
    border-radius: var(--radius-md);
    border: 1px solid var(--glass-border);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--glass-shadow);
}
.map-info-bubble {
    position: absolute;
    top: 20px;
    left: 20px;
    background-color: rgba(10, 25, 47, 0.9);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: var(--radius-sm);
    padding: 12px;
    color: #ffffff;
    z-index: 10;
    max-width: 240px;
}
.map-info-bubble strong {
    display: block;
    font-size: 0.8rem;
    color: var(--accent);
}
.map-info-bubble p {
    font-size: 0.75rem;
    margin: 4px 0;
    color: #cbd5e1;
}
.map-status {
    font-size: 0.65rem;
    background-color: var(--success);
    color: #ffffff;
    padding: 2px 6px;
    border-radius: 10px;
    font-weight: 700;
}
.map-marker-pin {
    position: relative;
    font-size: 2rem;
    color: var(--accent);
    cursor: pointer;
    z-index: 5;
    animation: bounce 2s infinite;
}
.pin-pulse {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    border-radius: var(--radius-round);
    border: 2px solid var(--accent);
    animation: pulse-ring 1.5s infinite;
}
.map-legend {
    position: absolute;
    bottom: 12px;
    right: 16px;
    color: #94a3b8;
    font-size: 0.75rem;
    font-weight: 500;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}
@keyframes pulse-ring {
    0% { transform: translate(-50%, -50%) scale(0.3); opacity: 1; }
    100% { transform: translate(-50%, -50%) scale(1.2); opacity: 0; }
}

#contact-success {
    display: none;
    text-align: center;
    padding: 40px 10px;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer {
    background-color: #0a192f;
    color: #ffffff;
    border-top: 2px solid var(--accent);
    padding-top: 60px;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 40px;
}
.footer-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--accent);
    margin-bottom: 16px;
}
.footer-text {
    font-size: 0.85rem;
    color: #94a3b8;
    margin-bottom: 20px;
}
.social-links {
    display: flex;
    gap: 12px;
}
.social-links a {
    width: 36px;
    height: 36px;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-round);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #cbd5e1;
    transition: var(--transition-fast);
}
.social-links a:hover {
    background-color: var(--accent);
    color: #0a192f;
    transform: translateY(-2px);
}

.footer-col h4 {
    font-size: 1rem;
    color: var(--accent);
    margin-bottom: 20px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.footer-col ul li {
    margin-bottom: 10px;
}
.footer-col ul li a {
    font-size: 0.85rem;
    color: #cbd5e1;
}
.footer-col ul li a:hover {
    color: var(--accent);
    padding-left: 4px;
}

.contacts-col p {
    font-size: 0.85rem;
    color: #cbd5e1;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.contacts-col p i {
    color: var(--accent);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 24px 0;
    text-align: center;
    font-size: 0.75rem;
    color: #94a3b8;
}

/* ==========================================================================
   FLOATING AI KOFI CHAT ASSISTANT
   ========================================================================== */
.kofi-chat-widget {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9999;
    font-family: var(--font-primary);
}

/* Collapsed Bubble */
.kofi-chat-bubble {
    background-color: #0a192f;
    border: 2px solid var(--accent);
    border-radius: 50px;
    padding: 10px 18px;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    transition: var(--transition-smooth);
    position: relative;
}
.kofi-chat-bubble:hover {
    transform: scale(1.05) translateY(-3px);
    background-color: #172a45;
}
.kofi-avatar-pulse {
    position: absolute;
    top: 4px;
    left: 4px;
    width: 32px;
    height: 32px;
    background-color: var(--accent);
    border-radius: var(--radius-round);
    z-index: 1;
    opacity: 0.15;
    animation: avatar-ping 1.5s infinite;
}
.kofi-bubble-icon {
    width: 32px;
    height: 32px;
    background-color: var(--accent);
    color: #0a192f;
    border-radius: var(--radius-round);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    z-index: 2;
}
.kofi-bubble-text {
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    z-index: 2;
}

@keyframes avatar-ping {
    0% { transform: scale(1); opacity: 0.6; }
    100% { transform: scale(1.6); opacity: 0; }
}

/* Expanded Window */
.kofi-chat-window {
    display: none;
    flex-direction: column;
    width: 380px;
    height: 520px;
    background-color: var(--bg-secondary);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    opacity: 0;
    transform: translateY(20px) scale(0.95);
    transition: opacity 0.3s ease, transform 0.3s ease;
}
.kofi-chat-window.active {
    display: flex;
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* Header */
.kofi-chat-header {
    background-color: #0a192f;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 2px solid var(--accent);
}
.kofi-header-profile {
    display: flex;
    align-items: center;
    gap: 12px;
}
.kofi-avatar {
    width: 38px;
    height: 38px;
    background-color: var(--accent);
    color: #0a192f;
    border-radius: var(--radius-round);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    position: relative;
}
.online-indicator {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 10px;
    height: 10px;
    background-color: var(--success);
    border: 2px solid #0a192f;
    border-radius: var(--radius-round);
}
.kofi-profile-text h4 {
    font-size: 0.95rem;
    color: #ffffff;
    font-weight: 700;
}
.kofi-profile-text span {
    font-size: 0.7rem;
    color: #94a3b8;
}
.kofi-close-btn {
    background: none;
    border: none;
    color: #cbd5e1;
    font-size: 1.25rem;
    cursor: pointer;
    transition: var(--transition-fast);
}
.kofi-close-btn:hover {
    color: var(--accent);
}

/* Body */
.kofi-chat-body {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
    background-color: var(--bg-primary);
}
.kofi-msg {
    display: flex;
    max-width: 80%;
}
.msg-bubble {
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    line-height: 1.4;
    word-break: break-word;
}
.kofi-incoming {
    align-self: flex-start;
}
.kofi-incoming .msg-bubble {
    background-color: var(--bg-secondary);
    color: var(--text-primary);
    border-bottom-left-radius: 2px;
    border: 1px solid var(--glass-border);
    box-shadow: 0 2px 6px rgba(0,0,0,0.01);
}
.kofi-outgoing {
    align-self: flex-end;
}
.kofi-outgoing .msg-bubble {
    background-color: #0a192f;
    color: #ffffff;
    border-bottom-right-radius: 2px;
}
.dark-theme .kofi-outgoing .msg-bubble {
    background-color: var(--accent);
    color: var(--text-inverse);
}

/* Suggestions chips */
.kofi-suggestions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}
.suggestion-chip {
    background-color: var(--bg-secondary);
    border: 1px solid var(--glass-border);
    color: var(--text-secondary);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-fast);
    text-align: left;
}
.suggestion-chip:hover {
    background-color: var(--accent);
    color: var(--text-inverse);
    border-color: var(--accent);
}

/* Typing Indicator animation */
.kofi-typing-indicator {
    display: none;
    align-self: flex-start;
    background-color: var(--bg-secondary);
    padding: 8px 14px;
    border-radius: 12px;
    border-bottom-left-radius: 2px;
    margin-left: 20px;
    margin-bottom: 10px;
}
.kofi-typing-indicator .dot {
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: var(--radius-round);
    background-color: var(--text-muted);
    margin-right: 3px;
    animation: typing-wave 1.2s infinite;
}
.kofi-typing-indicator .dot:nth-child(2) { animation-delay: 0.2s; }
.kofi-typing-indicator .dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes typing-wave {
    0%, 60%, 100% { transform: translateY(0); }
    30% { transform: translateY(-5px); }
}

/* Footer Form */
.kofi-chat-footer {
    display: flex;
    padding: 12px 16px;
    background-color: var(--bg-secondary);
    border-top: 1px solid var(--glass-border);
    gap: 8px;
}
.kofi-chat-footer input {
    flex: 1;
    padding: 8px 14px;
    border: 1px solid var(--glass-border);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    border-radius: 30px;
    outline: none;
    font-size: 0.85rem;
}
.kofi-chat-footer input:focus {
    border-color: var(--accent);
}
.kofi-send-btn {
    background-color: #0a192f;
    color: var(--accent);
    border: none;
    width: 36px;
    height: 36px;
    border-radius: var(--radius-round);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
}
.dark-theme .kofi-send-btn {
    background-color: var(--accent);
    color: var(--text-inverse);
}
.kofi-send-btn:hover {
    transform: scale(1.05);
}

/* ==========================================================================
   RESPONSIVE DESIGN (MEDIA QUERIES)
   ========================================================================== */
@media (max-width: 1024px) {
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
    .grid-4col {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 768px) {
    h1 { font-size: 2.15rem; }
    h2 { font-size: 1.75rem; }
    
    .grid-2col, .grid-3col, .grid-4col {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    .reverse-row {
        direction: ltr; /* Reset reverse row on mobile */
    }
    
    .section-padding {
        padding: 50px 0;
    }
    
    /* Header & Mobile Navigation toggle */
    .mobile-menu-btn {
        display: block;
    }
    .nav-bar {
        position: fixed;
        top: var(--header-height);
        left: -100%;
        width: 80%;
        height: calc(100vh - var(--header-height));
        background-color: var(--bg-secondary);
        box-shadow: 10px 0 30px rgba(0,0,0,0.1);
        z-index: 999;
        transition: var(--transition-smooth);
    }
    .nav-bar.mobile-active {
        left: 0;
    }
    .nav-list {
        flex-direction: column;
        padding: 40px 24px;
        gap: 24px;
    }
    .nav-link {
        font-size: 1.1rem;
        display: block;
    }
    
    /* Mobile dropdown styling */
    .dropdown-arrow {
        display: none !important;
    }
    .dropdown-menu {
        position: static;
        transform: none !important;
        box-shadow: none;
        border: none;
        background: transparent;
        backdrop-filter: none;
        padding: 8px 0 8px 16px;
        opacity: 1;
        visibility: visible;
        display: block;
        min-width: unset;
        transition: none;
    }
    .dropdown-item {
        font-size: 1rem;
        padding: 8px 12px;
        display: block;
        color: var(--text-secondary);
    }
    .dropdown-item:hover,
    .dropdown-item.active {
        background-color: transparent;
        color: var(--primary) !important;
        padding-left: 12px;
    }
    
    .cta-btn {
        display: none; /* Hide header button on smaller tablets/phones */
    }
    
    /* Hero Slider on Mobile */
    .hero-slider-container {
        height: 70vh;
    }
    .slide-title {
        font-size: 2.25rem;
    }
    .slide-desc {
        font-size: 1rem;
    }
    .slide-content {
        margin-left: 5%;
        padding: 16px;
    }
    .slide-arrow {
        display: none; /* Hide arrows on mobile sliders */
    }
    
    /* Tabs on mobile */
    .tabs-nav {
        flex-direction: column;
        gap: 8px;
    }
    .tab-btn {
        justify-content: center;
    }
    
    /* Gallery Filter */
    .gallery-filters {
        flex-wrap: wrap;
    }
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    /* Kofi widget positioning */
    .kofi-chat-widget {
        bottom: 20px;
        right: 20px;
    }
    .kofi-chat-window {
        width: 320px;
        height: 480px;
    }
}
