/* ========================================
   CURSOR AI WEBSITE STYLES
   ======================================== */

/* CSS Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Make media responsive by default */
img, video, canvas, svg, iframe {
    max-width: 100%;
    height: auto;
}

/* CSS Custom Properties (Variables) */
:root {
    /* Color Palette - Sampled from reference site */
    --primary-color: #1e40af;        /* Deep blue */
    --primary-dark: #1e3a8a;         /* Darker blue */
    --primary-light: #3b82f6;        /* Lighter blue */
    --secondary-color: #f8fafc;      /* Light gray */
    --accent-color: #f59e0b;         /* Amber/orange */
    --accent-dark: #d97706;          /* Darker amber */
    --text-primary: #1f2937;         /* Dark gray */
    --text-secondary: #6b7280;       /* Medium gray */
    --text-light: #9ca3af;           /* Light gray */
    --text-white: #ffffff;           /* White */
    --background-white: #ffffff;     /* White background */
    --background-light: #f9fafb;     /* Very light gray */
    --border-color: #e5e7eb;         /* Light border */
    --shadow-light: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
    --shadow-medium: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-heavy: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    
    /* Typography */
    --font-family-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-size-xs: 0.75rem;         /* 12px */
    --font-size-sm: 0.875rem;        /* 14px */
    --font-size-base: 1rem;          /* 16px */
    --font-size-lg: 1.125rem;        /* 18px */
    --font-size-xl: 1.25rem;         /* 20px */
    --font-size-2xl: 1.5rem;         /* 24px */
    --font-size-3xl: 1.875rem;       /* 30px */
    --font-size-4xl: 2.25rem;        /* 36px */
    --font-size-5xl: 3rem;           /* 48px */
    --font-size-6xl: 3.75rem;        /* 60px */
    
    /* Font Weights */
    --font-weight-light: 300;
    --font-weight-normal: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;
    
    /* Line Heights */
    --line-height-tight: 1.25;
    --line-height-normal: 1.5;
    --line-height-relaxed: 1.75;
    
    /* Spacing Scale */
    --space-1: 0.25rem;              /* 4px */
    --space-2: 0.5rem;               /* 8px */
    --space-3: 0.75rem;              /* 12px */
    --space-4: 1rem;                 /* 16px */
    --space-5: 1.25rem;              /* 20px */
    --space-6: 1.5rem;               /* 24px */
    --space-8: 2rem;                 /* 32px */
    --space-10: 2.5rem;              /* 40px */
    --space-12: 3rem;                /* 48px */
    --space-16: 4rem;                /* 64px */
    --space-20: 5rem;                /* 80px */
    --space-24: 6rem;                /* 96px */
    --space-32: 8rem;                /* 128px */
    
    /* Border Radius */
    --radius-sm: 0.25rem;            /* 4px */
    --radius-md: 0.375rem;           /* 6px */
    --radius-lg: 0.5rem;             /* 8px */
    --radius-xl: 0.75rem;            /* 12px */
    --radius-2xl: 1rem;              /* 16px */
    --radius-full: 9999px;
    
    /* Transitions */
    --transition-fast: 0.15s ease-in-out;
    --transition-normal: 0.3s ease-in-out;
    --transition-slow: 0.5s ease-in-out;
    
    /* Z-index Scale */
    --z-dropdown: 1000;
    --z-sticky: 1020;
    --z-fixed: 1030;
    --z-modal-backdrop: 1040;
    --z-modal: 1050;
    --z-popover: 1060;
    --z-tooltip: 1070;
}
.text-warning2{
    color: #f59e0b !important;
}
.text-primary2{
    color: #1e40af !important;
}
/* Base Styles */
html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family-primary);
    font-size: var(--font-size-base);
    line-height: var(--line-height-normal);
    color: var(--text-primary);
    background-color: var(--background-light);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Container */

@media (min-width: 768px) {
    .container {
        padding: 0 var(--space-6);
    }
}

@media (min-width: 1024px) {
    .container {
        padding: 0 var(--space-8);
    }
}


/* ========================================
   MIDDLE SECTION STYLES
   ======================================== */
.middle-section {
    background-color: var(--background-white);
    padding: var(--space-6) 0;
    border-bottom: 1px solid var(--border-color);
}

.middle-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--space-8);
}

.logo-section {
    display: flex;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: var(--space-4);
}

.logo img {
    height: 120px;
    width: auto;
}

.logo-text {
    display: flex;
    flex-direction: column;
    gap: var(--space-1);

}

.logo-main {
    font-size: var(--font-size-4xl);
    font-weight: var(--font-weight-bold);
    color: var(--accent-color);
    line-height: 1;
    /*text-transform: uppercase;*/
}
.logo-hindi {
    font-size: var(--font-size-xl);
    font-weight: var(--font-weight-semibold);
    color: var(--primary-color);
    line-height: 1.5;
}

.logo-tagline {
    font-size: var(--font-size-lg);
    font-weight: var(--font-weight-bold);
    color: var(--accent-color);
    line-height: 1.3;
    font-style: italic;
    margin: var(--space-2) 0;
    text-transform: capitalize;
    letter-spacing: 0.5px;
    text-shadow: 0 1px 2px rgba(245, 158, 11, 0.3);
    position: relative;
}

.logo-tagline::before {
    content: '';
    position: absolute;
    left: -15px;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 20px;
    background: linear-gradient(180deg, var(--accent-color) 0%, #fbbf24 100%);
    border-radius: 2px;
}

.logo-tagline::after {
    content: '';
    position: absolute;
    right: -15px;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 20px;
    background: linear-gradient(180deg, var(--accent-color) 0%, #fbbf24 100%);
    border-radius: 2px;
}

/* Enhanced tagline hover effect */
.logo-tagline:hover {
    color: var(--accent-dark);
    text-shadow: 0 2px 4px rgba(245, 158, 11, 0.4);
    transform: translateY(-1px);
    transition: all 0.3s ease;
}

/* Responsive adjustments for tagline */
@media (max-width: 768px) {
    .logo-tagline {
        font-size: var(--font-size-base);
        letter-spacing: 0.3px;
        margin: var(--space-1) 0;
    }
    
    .logo-tagline::before,
    .logo-tagline::after {
        width: 2px;
        height: 16px;
        left: -10px;
        right: -10px;
    }
}

.logo-subtitle {
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
    line-height: 1;
}

/* Tighter header visuals on small screens */
@media (max-width: 767px) {
    .logo img { height: 72px; }
    .logo-main { font-size: var(--font-size-2xl); }
    .logo-hindi { font-size: var(--font-size-lg); }
    .logo-subtitle { font-size: var(--font-size-xs); }
}

.government-info {
    display: flex;
    align-items: center;
    gap: var(--space-4);
}

.ministry-text {
    text-align: right;
}

.ministry-name {
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-semibold);
    color: var(--text-primary);
    line-height: 1.2;
}

.government-name {
    font-size: var(--font-size-xs);
    color: var(--text-secondary);
    line-height: 1.2;
}

.emblem {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-1);
}

.ashoka-chakra {
    display: flex;
    align-items: center;
    justify-content: center;
}

.motto {
    font-size: var(--font-size-xs);
    color: var(--text-primary);
    font-weight: var(--font-weight-medium);
}

/* ========================================
   QUICK LINKS BAR
   ======================================== */
.quick-links-bar {
    background-color: var(--background-white);
    padding: var(--space-4) 0;
    border-bottom: 1px solid var(--border-color);
}

/* Inline quick links in middle header */
.quick-links-inline .quick-links-group { align-items: center; }
.ql-small .ql-btn { padding: var(--space-2) var(--space-3); box-shadow: 0 1px 3px rgba(0,0,0,0.12); }
.ql-small .caret { width: 10px; height: 10px; }

.quick-links-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-4);
}

.quick-links-group {
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.ql-btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-4);
    border-radius: 6px;
    text-decoration: none;
    font-weight: var(--font-weight-semibold);
    font-size: var(--font-size-sm);
    box-shadow: 0 2px 6px rgba(0,0,0,0.12);
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
    color: var(--text-white);
}

.ql-btn .caret { opacity: 0.9; }

.ql-btn:hover {
    box-shadow: 0 6px 14px rgba(0,0,0,0.16) !important;
    border:1px solid #1e3a8a !important;
    color: #1e3a8a !important;
}

.ql-gold { background-color: #fbbf24; color: #ffffff; }
.ql-primary { background-color: #1e3a8a; color: #ffffff}

.quick-phones {
    display: flex;
    align-items: center;
    gap: var(--space-6);
    color: var(--text-secondary);
}

.phone-item { display: inline-flex; align-items: center; gap: var(--space-2); }

@media (max-width: 767px) {
    .quick-links-content { flex-direction: column; align-items: stretch; gap: var(--space-3); }
    .quick-phones { justify-content: center; gap: var(--space-4); flex-wrap: wrap; }
}

/* ========================================
   BOTTOM NAVIGATION STYLES
   ======================================== */
.bottom-nav {
    background-color: #1e3a8a;
    color: var(--text-white);
    position: sticky;
    top: 0;
    z-index: var(--z-sticky);
    box-shadow: var(--shadow-light);
}

.bottom-nav .container {
    padding: 0;
}

/* (removed unused hero/carousel styles) */


.notice-panel {
    border: 1px solid var(--border-color);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow-light);
    background-color: #fff;
}

.notice-header {
    background: linear-gradient(90deg, #1e4aa8 0%, #0c3e86 100%);
    padding: 14px 18px;
}

.notice-title {
    color: #fff;
    font-weight: 800;
    letter-spacing: 0.5px;
}

.notice-list { padding: 14px 18px; }

.notice-badge {
    display: inline-block;
    background: #ffe600;
    color: #222;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.85rem;
}

/* New, simple title style when badges are not desired */
.notice-title-text {
    font-weight: 700;
    color: #1f2a44;
    margin-bottom: 6px;
}

/* Refined notice board list */
.notice-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    background: #ffffff;
    box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
    transition: all .2s ease;
    margin-bottom: 6px;
    position: relative; /* for badge positioning */
    /*padding-right: 56px; /* space for top-right NEW badge */*/
}

.notice-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(16, 24, 40, 0.08);
    border-color: #d0d7e2;
}

/* No icon layout */
.notice-sep { color:#94a3b8; }
.notice-title-link { color:#0f172a; text-decoration:none; font-weight:700; }
.notice-title-link:hover { color:#1e3a8a; text-decoration:underline; }

.notice-meta {
    display: flex;
    align-items: center;
    gap: 10px;
}

.notice-date {
    color: #475569;
    font-weight: 600;
    background: transparent;
    padding: 0;
    border-radius: 0;
    white-space: nowrap;
}

.notice-link {
    color:#1e3a8a;
    text-decoration:none;
    font-weight:700;
}

.notice-link:hover { text-decoration:underline; }

.notice-meta { display:flex; align-items:center; gap: 12px; margin-top: 8px; }
.notice-date { color: #214a9a; font-weight: 600; background:#e6eefc; padding:4px 8px; border-radius:4px; }
.notice-link { color:#1e3a8a; text-decoration:none; font-weight:700; }
.notice-link:hover { text-decoration:underline; }
.notice-new {
    position: absolute;
    top: 8px;
    right: 8px;
    background: #e21a2c;
    color: #fff;
    font-weight: 800;
    font-size: 0.7rem;
    padding: 2px 8px;
    border-radius: 9999px;
    line-height: 1;
    display: inline-block;
}

.notice-text { color: #2b2b2b; font-weight: 700; line-height: 1.4; }

/* (removed unused responsive hero/carousel rules) */

.bottom-nav .nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: var(--space-1);
}

.bottom-nav .nav-item {
    position: relative;
}

.bottom-nav .nav-link {
    display: flex;
    align-items: center;
    gap: var(--space-1);
    padding: var(--space-3) var(--space-4);
    color: var(--text-white);
    text-decoration: none;
    font-weight: var(--font-weight-medium);
    font-size: var(--font-size-sm);
    transition: all var(--transition-fast);
    white-space: nowrap;
}

.bottom-nav .nav-link:hover,
.bottom-nav .nav-link:focus {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--text-white);
}

.bottom-nav .nav-link[aria-current="page"] {
    background-color: rgba(255, 255, 255, 0.2);
    color: var(--text-white);
}

.bottom-nav .dropdown-icon {
    width: 12px;
    height: 12px;
    transition: transform var(--transition-fast);
}

.bottom-nav .dropdown:hover .dropdown-icon {
    transform: rotate(180deg);
}

/* Dropdown Menu for Bottom Nav */
.bottom-nav .dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 200px;
    background-color: var(--background-white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-heavy);
    display: block; /* ensure it participates in layout */
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all var(--transition-normal);
    z-index: 1050; /* above sticky sections */
    list-style: none;
    padding: var(--space-2) 0;
    pointer-events: none; /* disable interactions while hidden */
}

.bottom-nav .dropdown:hover .dropdown-menu,
.bottom-nav .dropdown:focus-within .dropdown-menu,
.bottom-nav .dropdown.open .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.bottom-nav .dropdown-link {
    display: block;
    padding: var(--space-3) var(--space-4);
    color: var(--text-primary);
    text-decoration: none;
    font-size: var(--font-size-sm);
    transition: all var(--transition-fast);
}

.bottom-nav .dropdown-link:hover {
    background-color: var(--secondary-color);
    color: var(--primary-color);
}

/* Mobile Menu Toggle for Bottom Nav */
.bottom-nav .mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    color: var(--text-white);
}

/* X close button styling */
.bottom-nav .mobile-menu-close {
    display: none;
    position: fixed;
    top: 8px;
    right: 12px;
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 9999px;
    background: rgba(0,0,0,0.35);
    color: #fff;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    z-index: var(--z-fixed);
}

.bottom-nav .hamburger-line {
    width: 24px;
    height: 2px;
    background-color: var(--text-white);
    margin: 2px 0;
    transition: all var(--transition-fast);
    border-radius: 1px;
}

.bottom-nav .mobile-menu-toggle[aria-expanded="true"] .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.bottom-nav .mobile-menu-toggle[aria-expanded="true"] .hamburger-line:nth-child(2) {
    opacity: 0;
}

.bottom-nav .mobile-menu-toggle[aria-expanded="true"] .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}


/* (removed old hero slider styles) */

/* ========================================
   NOTIFICATION AREA STYLES
   ======================================== */
.notifications {
    background-color: var(--accent-color);
    color: var(--text-white);
    /*padding: var(--space-3) 0;*/
    overflow: hidden;
    max-height: 450px;
}

/* Full-width bar with fixed left label */
.latest-updates-bar {
    position: relative;
    display: flex;
    align-items: stretch;
}

.latest-label {
    flex: 0 0 auto;
    padding: 0 var(--space-6);
    background-color: #1e3a8a; /* deep blue */
    color: var(--text-white);
    font-weight: var(--font-weight-semibold);
    display: flex;
    align-items: center;
    z-index: 2; /* sits above marquee background */
}

.marquee-container {
    position: relative;
    flex: 1 1 auto;
    overflow: hidden;
}

.marquee-track {
    display: inline-block;
    white-space: nowrap;
    padding-left: var(--space-6);
    animation: marquee-left 25s linear infinite;
}

.marquee-segment { color: #fff; opacity: 0.95; }
.marquee-separator { color: #fff; opacity: 0.9; margin: 0 var(--space-2); }

@keyframes marquee-left {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.notification-icon {
    flex-shrink: 0;
}

.notification-text {
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.notification-label {
    font-weight: var(--font-weight-semibold);
    background-color: rgba(255, 255, 255, 0.2);
    padding: var(--space-1) var(--space-3);
    border-radius: var(--radius-full);
    font-size: var(--font-size-sm);
}

.notification-message {
    font-size: var(--font-size-sm);
}

@keyframes scroll {
    0% {
        transform: translateX(100%);
    }
    100% {
        transform: translateX(-100%);
    }
}

/* ========================================
   NOTICE CAROUSEL + NOTICE BOARD HEIGHT LIMITS
   ======================================== */
#notice-carousel { max-height: 450px; overflow: hidden; }
#notice-carousel .row { align-items: stretch; }

/* Left: Bootstrap carousel */
#ncCarousel,
#ncCarousel .carousel-inner { height: 450px; max-height: 450px; }
#ncCarousel .carousel-item { height: 100%; }
#ncCarousel .carousel-item img { height: 100% !important; max-height: 450px; object-fit: cover; width: 100%; }

/* Right: Notice panel */
#notice-carousel .notice-panel { max-height: 450px; display: flex; flex-direction: column; }
#notice-carousel .notice-header { flex: 0 0 auto; }
#notice-carousel .notice-list { 
    flex: 1 1 auto; 
    overflow: auto; 
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* Internet Explorer 10+ */
}

#notice-carousel .notice-list::-webkit-scrollbar {
    display: none; /* WebKit browsers (Chrome, Safari, Edge) */
}

/* Scale down notice carousel on phones */
@media (max-width: 767px) {
    #notice-carousel { max-height: none; }
    #ncCarousel, #ncCarousel .carousel-inner { height: 260px; max-height: 260px; }
    #ncCarousel .carousel-item img { max-height: 260px; }
    #notice-carousel .notice-panel { max-height: 260px; }
}
/* ========================================
   SECOND MENUBAR
   ======================================== */
   #secondMenubar {
    position: relative;
    padding: 24px 0;
    background: var(--background-light);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
  }
    .theme-card {
       position: relative;
       background: #ffffff;
       color: #0f172a;
       text-align: center;
       padding: 20px 16px;
       border-radius: 14px;
       transition: none;
       height: 100%;
       border: 1px solid var(--border-color);
       text-decoration: none;
       display: flex;
       flex-direction: column;
       align-items: center;
       gap: 10px;
       box-shadow: 0 1px 2px rgba(16, 24, 40, 0.06);
    }
    .theme-card::after { content: none; }
    .theme-card i {
      width: 52px;
      height: 52px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      border-radius: 9999px;
      background: linear-gradient(135deg, var(--accent-color) 0%, #fbbf24 100%);
      color: #ffffff;
      font-size: 1.25rem;
      flex-shrink: 0;
      box-shadow: 0 6px 12px rgba(245, 158, 11, 0.25);
    }
    .theme-card h6 {
      margin: 0;
      font-size: 1.025rem;
      font-weight: 700;
      color: var(--primary-dark);
      letter-spacing: 0.2px;
    }
    .theme-card:hover {
      transform: none;
      box-shadow: 0 1px 2px rgba(16, 24, 40, 0.06);
      border-color: var(--border-color);
      background-color: inherit;
      color: inherit;
    }
    .theme-card:hover i { transform: none; }
    .theme-card:focus-visible {
      outline: 3px solid rgba(30, 64, 175, 0.2);
      outline-offset: 2px;
    }

    @media (max-width: 576px) {
      .theme-card { justify-content: center; text-align: center; }
    }

/*mission and vision*/

.bg-warning2{background-color: var(--accent-color);}
.bg-primary2{background-color: var(--primary-color);}
/* ========================================
   PRINCIPAL MESSAGE & ABOUT US COMBINED SECTION
   ======================================== */
.principal-about-combined-section {
    padding: 20px 0;
    background-color: var(--background-light);
    position: relative;
}

.principal-message-card {
    background-color: var(--background-white);
    padding: var(--space-8);
    height: 100%;
}

.about-us-card {
    background-color: var(--background-white);
    padding: var(--space-8);
    height: 100%;
}

@media (max-width: 767px) {
    .principal-message-card,
    .about-us-card { padding: var(--space-4); }
}

.about-header {
    margin-bottom: var(--space-6);
}

.about-header h2 {
    font-size: var(--font-size-2xl);
    font-weight: var(--font-weight-bold);
    color: var(--primary-color);
    margin-bottom: var(--space-4);
    position: relative;
}

.about-underline {
    width: 60px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 2px;
}

.about-content {
    flex: 1;
    margin-bottom: var(--space-6);
}

.about-lead {
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-normal);
    color: var(--text-secondary);
    margin-bottom: var(--space-4);
    line-height: var(--line-height-relaxed);
    text-align: justify;
}

.about-content p {
    font-size: var(--font-size-base);
    line-height: var(--line-height-relaxed);
    color: var(--text-secondary);
    margin-bottom: var(--space-4);
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-4);
    margin-bottom: var(--space-6);
}

.stat-item {
    text-align: center;
    padding: var(--space-4);
    background-color: var(--secondary-color);
    border-radius: var(--radius-lg);
    transition: all var(--transition-normal);
    border: 1px solid var(--border-color);
}

.stat-item:hover {
    background-color: var(--primary-color);
    color: var(--text-white);
    transform: translateY(-2px);
}

.stat-number {
    display: block;
    font-size: var(--font-size-2xl);
    font-weight: var(--font-weight-bold);
    color: var(--primary-color);
    margin-bottom: var(--space-1);
    transition: color var(--transition-normal);
}

.stat-item:hover .stat-number {
    color: var(--text-white);
}

.stat-label {
    font-size: var(--font-size-xs);
    color: var(--text-secondary);
    font-weight: var(--font-weight-medium);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: color var(--transition-normal);
}

.stat-item:hover .stat-label {
    color: var(--text-white);
}

.about-cta {
    text-align: left;
}

.about-cta .btn {
    /*padding: var(--space-2) var(--space-4);*/
    /*font-size: 0.875rem;*/
    font-weight: var(--font-weight-semibold);
    letter-spacing: 0.5px;
    border-radius: var(--radius-lg);
    transition: all var(--transition-normal);
}

.about-cta .btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

/* ========================================
   PRINCIPAL MESSAGE SECTION
   ======================================== */
.principal-message-section {
    padding: var(--space-20) 0;
    background-color: var(--background-light);
    position: relative;
}

.principal-image-card {
    background-color: var(--background-white);
    /*border-radius: var(--radius-xl);*/
    padding: var(--space-6);
    border-right: 1px solid #e5e7eb;
    text-align: center;
    /*border: 2px solid #e5e7eb;*/
}

.principal-photo {
    width: 100%;
    max-width: 300px;
    object-fit: cover;
    border-radius: var(--radius-lg);
    /*margin-bottom: var(--space-4);*/
    /*border: 3px solid #fbbf24; /* Golden border */*/
}

.principal-title h4 {
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-bold);
    color: var(--primary-dark);
    margin-bottom: var(--space-2);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.principal-title h3 {
    font-size: var(--font-size-xl);
    font-weight: var(--font-weight-bold);
    color: #d97706; /* Golden brown */
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.principal-message-content {
    padding: var(--space-6);
}

.message-header {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    margin-bottom: var(--space-6);
}

.desk-icon {
    width: 40px;
    height: 40px;
    background-color: var(--background-white);
    border: 2px solid #002200;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.message-header h2 {
    font-size: var(--font-size-2xl);
    font-weight: var(--font-weight-bold);
    margin: 0;
    letter-spacing: 1px;
}

.principal-roles {
    margin-bottom: var(--space-6);
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-medium);
    color: var(--text-primary);
    line-height: 1.6;
}

.role-item {
    color: var(--text-primary);
}

.role-item.highlighted {
    color: var(--primary-dark);
    font-weight: var(--font-weight-semibold);
}

.role-separator {
    color: var(--text-secondary);
    margin: 0 var(--space-2);
}

.principal-message-text {
    margin-bottom: var(--space-8);
}

.principal-message-text p {
    font-size: var(--font-size-base);
    line-height: var(--line-height-relaxed);
    color: var(--text-primary);
    margin: 0;
    text-align: justify;
}


.read-more { text-align: left; }

/* Improve President's Message layout on small screens */
@media (max-width: 576px) {
    .principal-about-combined-section .row.g-1 { display: block; }
    .principal-about-combined-section .row.g-1 > [class*="col-"] { width: 100% !important; max-width: 100% !important; }
    .principal-image-card { border-right: 0; padding: var(--space-4); }
    .principal-photo { max-width: 220px; margin: 0 auto; display: block; }
    .principal-title { margin-top: var(--space-2); }
    .principal-message-content { padding: var(--space-4); }
    .principal-message-text p { text-align: left; }
}

/* Accent button to match Learn More style but with accent color */
.btn-accent {
    background-color: var(--accent-color);
    color: var(--text-white);
    border: 1px solid var(--accent-color);
    padding: var(--space-3) var(--space-5);
    border-radius: var(--radius-lg);
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-semibold);
    letter-spacing: 0.5px;
    text-decoration: none;
}

.btn-accent:hover {
    background-color: var(--accent-dark);
    border-color: var(--accent-dark);
    color: var(--text-white);
}

.btn-read-more:hover {
    background-color: #b45309; /* Darker golden brown */
    transform: translateY(-1px);
    color: var(--text-white);
    text-decoration: none;
}

/* ========================================
   PHOTO GALLERY SECTION
   ======================================== */
.photo-gallery-section {
    padding: 0 0 var(--space-20) 0;
    background-color: var(--background-white);
}

/* Make Photo Gallery header match Contact Us header style */
.photo-gallery-section .section-header {
    text-align: center;
    margin-bottom: var(--space-16);
}

.photo-gallery-section .section-header h2 {
    font-size: var(--font-size-4xl);
    font-weight: var(--font-weight-bold);
    color: var(--primary-color);
    margin-bottom: var(--space-4);
    position: relative;
}

.photo-gallery-section .section-header h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--accent-color);
    border-radius: 2px;
}

.photo-gallery-section .section-header .section-subtitle {
    font-size: var(--font-size-lg);
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
    line-height: var(--line-height-relaxed);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-6);
    margin-bottom: var(--space-12);
}

.gallery-item {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-light);
    transition: all var(--transition-normal);
    cursor: pointer;
    background-color: var(--background-white);
}

.gallery-item:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-heavy);
}

.gallery-image {
    width: 100%;
    max-height: 500px;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.gallery-item:hover .gallery-image {
    transform: scale(1.05);
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: var(--text-white);
    padding: var(--space-6);
    transform: translateY(0);
    transition: transform var(--transition-normal);
}

.gallery-item:hover .gallery-overlay {
    transform: translateY(0);
}

.gallery-overlay h4 {
    font-size: var(--font-size-lg);
    font-weight: var(--font-weight-semibold);
    margin-bottom: var(--space-2);
    color: var(--text-white);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.gallery-overlay p {
    font-size: var(--font-size-sm);
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
    line-height: var(--line-height-normal);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.gallery-footer {
    margin-top: var(--space-8);
}

.gallery-footer .btn {
    padding: var(--space-4) var(--space-8);
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-semibold);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: var(--radius-lg);
    transition: all var(--transition-normal);
}

.gallery-footer .btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

/* Responsive Gallery */
@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: var(--space-4);
    }
    
    .gallery-image {
        height: 250px;
    }
    
    .gallery-overlay {
        padding: var(--space-4);
    }
    
    .gallery-overlay h4 {
        font-size: var(--font-size-base);
    }
    
    .gallery-overlay p {
        font-size: var(--font-size-xs);
    }
}

/* ========================================
   PRINCIPAL MESSAGE & ABOUT US SECTION
   ======================================== */
.principal-about-section {
    /*padding: var(--space-20) 0;*/
    background-color: var(--background-white);
    position: relative;
    overflow: hidden;
}

.principal-about-section::before {
    content: none;
    height: 0;
    background: none;
}

.principal-card {
    background-color: var(--background-white);
    border-radius: var(--radius-xl);
    padding: var(--space-8);
    box-shadow: var(--shadow-light);
    text-align: center;
    height: 100%;
    position: relative;
    border: 1px solid var(--border-color);
    transition: all var(--transition-normal);
}

.principal-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-heavy);
    border-color: var(--primary-color);
}

.principal-image {
    margin-bottom: var(--space-6);
    position: relative;
    display: inline-block;
}

.principal-image img {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border: 3px solid var(--primary-color);
    position: relative;
    transition: all var(--transition-normal);
}

.principal-card:hover .principal-image img {
    transform: scale(1.05);
    border-color: var(--accent-color);
}

.principal-content h3 {
    font-size: var(--font-size-3xl);
    font-weight: var(--font-weight-bold);
    color: var(--primary-color);
    margin-bottom: var(--space-6);
    position: relative;
}

.principal-content h3::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 2px;
}

.principal-message {
    font-size: var(--font-size-lg);
    font-style: italic;
    line-height: var(--line-height-relaxed);
    color: var(--text-secondary);
    margin-bottom: var(--space-6);
    position: relative;
    padding: var(--space-6);
    background: var(--secondary-color);
    border-radius: var(--radius-lg);
    border-left: 4px solid var(--primary-color);
}

.principal-message::before {
    content: '"';
    font-size: var(--font-size-4xl);
    color: var(--primary-color);
    position: absolute;
    top: -10px;
    left: 15px;
    font-family: serif;
    opacity: 0.3;
    line-height: 1;
}

.principal-signature {
    background-color: var(--primary-color);
    color: var(--text-white);
    padding: var(--space-4) var(--space-6);
    border-radius: var(--radius-lg);
    margin-top: var(--space-4);
    transition: all var(--transition-fast);
}

.principal-signature:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
}

.principal-signature h5 {
    font-size: var(--font-size-lg);
    font-weight: var(--font-weight-semibold);
    margin-bottom: var(--space-1);
    color: var(--text-white);
}

.principal-signature p {
    font-size: var(--font-size-sm);
    color: var(--text-white);
    margin: 0;
    font-weight: var(--font-weight-medium);
}

/* Enhanced About Content */
.principal-about-section .about-content {
    padding: var(--space-6);
}

.principal-about-section .about-content h2 {
    font-size: var(--font-size-4xl);
    font-weight: var(--font-weight-bold);
    color: var(--primary-color);
    margin-bottom: var(--space-6);
    position: relative;
}

.principal-about-section .about-content h2::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 0;
    width: 80px;
    height: 4px;
    background: var(--primary-color);
    border-radius: 2px;
}

.principal-about-section .about-content .lead {
    font-size: var(--font-size-xl);
    font-weight: var(--font-weight-medium);
    color: var(--primary-color);
    margin-bottom: var(--space-6);
    line-height: var(--line-height-relaxed);
}

.principal-about-section .about-content p {
    font-size: var(--font-size-lg);
    line-height: var(--line-height-relaxed);
    color: var(--text-secondary);
    margin-bottom: var(--space-6);
}

.principal-about-section .about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-6);
    margin-top: var(--space-8);
}

.principal-about-section .stat {
    text-align: center;
    padding: var(--space-6);
    background-color: var(--secondary-color);
    border-radius: var(--radius-lg);
    color: var(--text-primary);
    transition: all var(--transition-normal);
    border: 1px solid var(--border-color);
}

.principal-about-section .stat:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-heavy);
    background-color: var(--primary-color);
    color: var(--text-white);
}

.principal-about-section .stat-number {
    display: block;
    font-size: var(--font-size-3xl);
    font-weight: var(--font-weight-bold);
    color: var(--primary-color);
    margin-bottom: var(--space-2);
    transition: color var(--transition-normal);
}

.principal-about-section .stat:hover .stat-number {
    color: var(--text-white);
}

.principal-about-section .stat-label {
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
    font-weight: var(--font-weight-medium);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: color var(--transition-normal);
}

.principal-about-section .stat:hover .stat-label {
    color: var(--text-white);
}

/* ========================================
   ABOUT SECTION STYLES
   ======================================== */
.about-section {
    background: linear-gradient(180deg, var(--background-light), var(--background-white));
}

/* Make About Us header match Photo Gallery header style */
.about-section .section-header {
    text-align: center;
    margin-bottom: var(--space-16);
}

.about-section .section-header h2 {
    font-size: var(--font-size-4xl);
    font-weight: var(--font-weight-bold);
    color: var(--primary-color);
    margin-bottom: var(--space-4);
    position: relative;
}

.about-section .section-header h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--accent-color);
    border-radius: 2px;
}

.about-section .section-header .section-subtitle {
    font-size: var(--font-size-lg);
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
    line-height: var(--line-height-relaxed);
}

.about-text h2 {
    font-size: var(--font-size-2xl);
    font-weight: var(--font-weight-bold);
    color: var(--primary-dark);
    margin-bottom: var(--space-4);
    line-height: var(--line-height-tight);
    position: relative;
    letter-spacing: 3px;
}

.lead {
    font-size: var(--font-size-lg);
    font-weight: var(--font-weight-medium);
    color: var(--primary-color);
    margin-bottom: var(--space-6);
    line-height: var(--line-height-relaxed);
    text-align: justify;
}

.about-text p {
    font-size: var(--font-size-lg);
    line-height: var(--line-height-relaxed);
    color: var(--text-secondary);
    margin-bottom: var(--space-6);
    text-align: justify;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: var(--space-6);
    margin-top: var(--space-8);
}

.stat {
    text-align: center;
    padding: var(--space-4);
    background-color: var(--secondary-color);
    border-radius: var(--radius-lg);
}

.stat-number {
    display: block;
    font-size: var(--font-size-3xl);
    font-weight: var(--font-weight-bold);
    color: var(--primary-color);
    margin-bottom: var(--space-2);
}

.stat-label {
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
    font-weight: var(--font-weight-medium);
}

.about-image {
    position: relative;
}

.about-image img {
    width: 100%;
    height: auto;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-heavy);
}

/* ========================================
   PROGRAMS SECTION STYLES
   ======================================== */
.programs-section {
    padding: var(--space-20) 0;
    background-color: var(--background-light);
}

.section-header {
    text-align: center;
    margin-bottom: var(--space-16);
}

.section-header h2 {
    font-size: var(--font-size-4xl);
    font-weight: var(--font-weight-bold);
    color: var(--text-primary);
    margin-bottom: var(--space-4);
    line-height: var(--line-height-tight);
}

.section-subtitle {
    font-size: var(--font-size-xl);
    color: var(--text-light);
    margin: 0 auto;
    line-height: var(--line-height-relaxed);
}

.programs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: var(--space-8);
}

.program-card {
    background-color: var(--background-white);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-light);
    transition: all var(--transition-normal);
    position: relative;
}

.program-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-heavy);
}

.card-image {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.program-card:hover .card-image img {
    transform: scale(1.05);
}

.card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(30, 64, 175, 0.8) 0%, rgba(59, 130, 246, 0.6) 100%);
    opacity: 0;
    transition: opacity var(--transition-normal);
    display: flex;
    align-items: center;
    justify-content: center;
}

.program-card:hover .card-overlay {
    opacity: 1;
}

.card-link {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-full);
    background-color: var(--text-white);
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all var(--transition-fast);
}

.card-link:hover {
    transform: scale(1.1);
    background-color: var(--accent-color);
    color: var(--text-white);
}

.card-content {
    padding: var(--space-6);
}

.card-title {
    font-size: var(--font-size-xl);
    font-weight: var(--font-weight-semibold);
    color: var(--text-primary);
    margin-bottom: var(--space-3);
    line-height: var(--line-height-tight);
}

.card-description {
    font-size: var(--font-size-base);
    color: var(--text-secondary);
    line-height: var(--line-height-relaxed);
    margin-bottom: var(--space-4);
}

.card-cta {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: var(--font-weight-medium);
    font-size: var(--font-size-sm);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: color var(--transition-fast);
}

.card-cta:hover {
    color: var(--accent-color);
}

/* ========================================
   ENHANCED TESTIMONIALS SECTION STYLES
   ======================================== */
.testimonials-section {
    padding: var(--space-20) 0;
    background: var(--background-white);
    position: relative;
    overflow: hidden;
}

/* Match Contact Us header style for Testimonials */
.testimonials-section .section-header { text-align: center; margin-bottom: var(--space-16); }
.testimonials-section .section-header h2 {
    font-size: var(--font-size-4xl);
    font-weight: var(--font-weight-bold);
    color: var(--primary-color);
    margin-bottom: var(--space-4);
    position: relative;
}
.testimonials-section .section-header h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--accent-color);
    border-radius: 2px;
}
.testimonials-section .section-header .section-subtitle {
    font-size: var(--font-size-lg);
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
    line-height: var(--line-height-relaxed);
}

/* simple section, no decorative bars */

.testimonials-carousel { position: relative; width: 100%; max-width: none; margin: 0; padding: var(--space-8) 0; }
.testimonial-slide { display: none; animation: fadeIn 0.4s ease-in-out; }
.testimonial-slide.active { display: block; }

.testimonials-section .testimonial-card {
    background-color: var(--background-white);
    border-radius: var(--radius-lg);
    padding: var(--space-8);
    box-shadow: none;
    border: 1px solid var(--border-color);
    position: relative;
    transition: none;
    height: 100%;
    display: flex;
    flex-direction: column;
}

/* remove hover lift/border accent for professional look */
.testimonials-section .testimonial-card:hover { transform: none; box-shadow: none; border-color: var(--border-color); }

.testimonials-section .testimonial-content {
    margin-bottom: var(--space-6);
    position: relative;
    flex: 1;
}

.testimonials-section .quote-icon { display: none; }

.testimonials-section .testimonial-content blockquote {
    font-size: var(--font-size-lg);
    font-style: italic;
    line-height: var(--line-height-relaxed);
    color: var(--text-primary);
    margin: 0;
    position: relative;
    padding: var(--space-4) var(--space-6);
    background: transparent;
    border-radius: 0;
    border-left: 3px solid var(--primary-color);
}

.testimonials-section .testimonial-content blockquote::before {
    content: '"';
    font-size: var(--font-size-5xl);
    color: var(--accent-color);
    position: absolute;
    top: -10px;
    left: 20px;
    font-family: serif;
    opacity: 0.3;
    line-height: 1;
}

.testimonials-section .testimonial-author {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: 0;
    background: transparent;
    border: 0;
    margin-top: var(--space-4);
}

.testimonials-section .author-image {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-full);
    overflow: hidden;
    flex-shrink: 0;
    border: 2px solid var(--accent-color);
    position: relative;
}

.testimonials-section .author-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-normal);
}

.testimonials-section .author-image:hover .author-photo { transform: none; }

.testimonials-section .author-info {
    flex: 1;
}

.testimonials-section .author-name {
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-semibold);
    color: var(--primary-dark);
    margin-bottom: 2px;
    line-height: 1.2;
}

.testimonials-section .author-title {
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
    margin: 0;
    font-weight: var(--font-weight-normal);
}

.testimonials-section .rating {
    display: flex;
    gap: var(--space-1);
}

.testimonials-section .rating { display: none; }

/* ========================================
   CONTACT SECTION STYLES
   ======================================== */
.contact-section {
    padding: var(--space-8) 0;
    background: linear-gradient(135deg, var(--background-light) 0%, var(--background-white) 100%);
    position: relative;
    overflow: hidden;
    min-height: 500px;
    display: flex;
    align-items: center;
}

.contact-section::before {
    content: none;
    height: 0;
    background: none;
}

.contact-section .section-header {
    text-align: center;
    margin-bottom: var(--space-16);
}

.contact-section .section-header h2 {
    font-size: var(--font-size-4xl);
    font-weight: var(--font-weight-bold);
    color: var(--primary-color);
    margin-bottom: var(--space-4);
    position: relative;
}

.contact-section .section-header h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--accent-color);
    border-radius: 2px;
}

.contact-section .section-subtitle {
    font-size: var(--font-size-lg);
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
    line-height: var(--line-height-relaxed);
}

/* Contact Information Section */
.contact-info-section {
    padding: var(--space-6);
    /*background: var(--background-white);*/
    border-radius: var(--border-radius-lg);
    /*box-shadow: var(--shadow-medium);*/
    height: 100%;
    display: flex;
    flex-direction: column;
}

.contact-main-heading {
    font-size: var(--font-size-4xl);
    font-weight: var(--font-weight-bold);
    color: var(--text-primary);
    margin-bottom: var(--space-4);
    line-height: 1.2;
}

.contact-intro-text {
    font-size: var(--font-size-lg);
    color: var(--text-secondary);
    line-height: var(--line-height-relaxed);
    margin-bottom: var(--space-8);
}

.contact-details-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-6);
}

.contact-detail-item {
    display: flex;
    align-items: flex-start;
    gap: var(--space-4);
}

.contact-detail-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-6);
}

.contact-icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    flex-shrink: 0;
    margin-top: 2px;
}

.contact-icon i {
    font-size: 20px;
}

.contact-detail-content {
    flex: 1;
}

.contact-detail-label {
    font-size: var(--font-size-lg);
    font-weight: var(--font-weight-semibold);
    color: var(--text-primary);
    margin-bottom: var(--space-2);
    line-height: 1.3;
}

.contact-detail-value {
    font-size: var(--font-size-base);
    color: var(--text-secondary);
    line-height: var(--line-height-normal);
    margin: 0;
}

.contact-detail-value:not(:last-child) {
    margin-bottom: var(--space-1);
}

/* Contact Image Container */
.contact-image-container {
    position: relative;
    border-radius: var(--radius-2xl);
    overflow: hidden;
    box-shadow: var(--shadow-heavy);
    height: 450px;
    min-height: 450px;
}

.contact-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.contact-image-container:hover .contact-image {
    transform: scale(1.05);
}

.contact-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(30, 64, 175, 0.8) 0%, rgba(245, 158, 11, 0.7) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.contact-image-container:hover .contact-overlay {
    opacity: 1;
}

.contact-info-card {
    background-color: rgba(255, 255, 255, 0.95);
    padding: var(--space-8);
    border-radius: var(--radius-xl);
    text-align: center;
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-heavy);
}

.contact-info-card h3 {
    font-size: var(--font-size-2xl);
    font-weight: var(--font-weight-bold);
    color: var(--primary-color);
    margin-bottom: var(--space-4);
}

.contact-info-card p {
    font-size: var(--font-size-base);
    color: var(--text-secondary);
    margin-bottom: var(--space-6);
    line-height: var(--line-height-relaxed);
}

.contact-highlights {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
}

.highlight-item {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    font-size: var(--font-size-sm);
    color: var(--text-primary);
    font-weight: var(--font-weight-medium);
}

.highlight-item i {
    color: var(--accent-color);
    font-size: var(--font-size-lg);
}

/* Contact Form Container */
.contact-form-container {
    background-color: var(--background-white);
    padding: var(--space-4);
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-heavy);
    border: 1px solid var(--border-color);
    overflow-y: auto;
}

.form-header {
    margin-bottom: var(--space-3);
    text-align: center;
}

.form-header h3 {
    font-size: var(--font-size-2xl);
    font-weight: var(--font-weight-bold);
    color: var(--primary-color);
    margin-bottom: var(--space-2);
}

.form-header p {
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
    line-height: var(--line-height-normal);
}

/* Form Styles */
.contact-form {
    margin-bottom: var(--space-4);
}

.form-group {
    margin-bottom: var(--space-2);
}

.form-label {
    display: block;
    font-weight: var(--font-weight-semibold);
    color: var(--text-primary);
    margin-bottom: var(--space-2);
    font-size: var(--font-size-sm);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-control {
    width: 100%;
    padding: var(--space-2) var(--space-3);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-lg);
    font-size: var(--font-size-sm);
    transition: all var(--transition-fast);
    background-color: var(--background-white);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.1);
}

.form-control.is-invalid {
    border-color: #dc3545;
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1);
}

.form-control.is-valid {
    border-color: #28a745;
    box-shadow: 0 0 0 3px rgba(40, 167, 69, 0.1);
}

.invalid-feedback {
    display: none;
    width: 100%;
    margin-top: var(--space-1);
    font-size: var(--font-size-sm);
    color: #dc3545;
}

.form-control.is-invalid ~ .invalid-feedback {
    display: block;
}

.form-check {
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.form-check-input {
    width: 18px;
    height: 18px;
    margin: 0;
    accent-color: var(--primary-color);
}

.form-check-label {
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
    cursor: pointer;
    line-height: var(--line-height-normal);
}

/* Form Alerts */
.form-error-alert,
.form-success-alert {
    margin-bottom: var(--space-4);
    padding: var(--space-3) var(--space-4);
    border-radius: var(--radius-lg);
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-medium);
    display: none;
    animation: slideDown 0.3s ease-out;
}

.form-error-alert {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.form-success-alert {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Form Actions */
.form-actions {
    display: flex;
    justify-content: center;
    margin-top: var(--space-4);
}

.form-actions .btn {
    min-width: 120px;
    padding: var(--space-3) var(--space-5);
    font-weight: var(--font-weight-semibold);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: var(--radius-lg);
    transition: all var(--transition-normal);
    font-size: var(--font-size-sm);
}

.form-actions .btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}


/* Responsive Design for Contact Section */
@media (max-width: 991px) {
    .contact-section {
        padding: var(--space-6) 0;
        min-height: auto;
    }
    
    .contact-info-section {
        padding: var(--space-4);
        margin-bottom: var(--space-4);
    }
    
    .contact-main-heading {
        font-size: var(--font-size-3xl);
    }
    
    .contact-intro-text {
        font-size: var(--font-size-base);
    }
    
    .contact-detail-row {
        grid-template-columns: 1fr;
        gap: var(--space-4);
    }
    
    .contact-image-container {
        height: 350px;
        min-height: 350px;
        margin-bottom: var(--space-4);
    }
    
    .contact-form-container {
        padding: var(--space-4);
        height: auto;
        min-height: 450px;
    }
    
    .form-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .form-actions .btn {
        width: 100%;
        max-width: 300px;
    }
}

@media (max-width: 767px) {
    .contact-section {
        min-height: auto;
    }
    
    .contact-section .section-header h2 {
        font-size: var(--font-size-3xl);
    }
    
    .contact-section .section-subtitle {
        font-size: var(--font-size-base);
    }
    
    .contact-image-container {
        height: 300px;
        min-height: 300px;
    }
    
    .contact-form-container {
        padding: var(--space-4);
        height: auto;
        min-height: 400px;
    }
    
    .form-header h3 {
        font-size: var(--font-size-2xl);
    }
    
    .contact-info-section {
        padding: var(--space-3);
    }
    
    .contact-main-heading {
        font-size: var(--font-size-2xl);
    }
    
    .contact-intro-text {
        font-size: var(--font-size-sm);
    }
    
    .contact-detail-item {
        gap: var(--space-3);
    }
    
    .contact-icon {
        width: 20px;
        height: 20px;
    }
    
    .contact-icon i {
        font-size: 16px;
    }
    
    .contact-detail-label {
        font-size: var(--font-size-base);
    }
    
    .contact-detail-value {
        font-size: var(--font-size-sm);
    }
    
}

/* ========================================
   FOOTER STYLES
   ======================================== */
.main-footer {
    background-color: var(--text-primary);
    color: var(--text-white);
    padding: var(--space-16) 0 var(--space-8);
}

.footer-content {
    margin-bottom: var(--space-12);
}

.footer-column h3 {
    font-size: var(--font-size-lg);
    font-weight: var(--font-weight-semibold);
    margin-bottom: var(--space-4);
    color: var(--text-white);
}
.footer-column h4 {
    color: var(--accent-color);
}
.footer-description {
    font-size: var(--font-size-sm);
    line-height: var(--line-height-relaxed);
    color: var(--text-light);
    margin-bottom: var(--space-6);
}

.trust-info {
    font-size: var(--font-size-sm);
    color: white;
    margin: 0;
    font-style: italic;
    opacity: 0.8;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: var(--space-2);
}

.footer-link {
    color: var(--text-light);
    text-decoration: none;
    font-size: var(--font-size-sm);
    transition: color var(--transition-fast);
}

.footer-link:hover {
    color: var(--text-white);
}

/* Map Container */
.map-container {
    margin-bottom: var(--space-4);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-medium);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.map-container iframe {
    border-radius: var(--radius-lg);
    transition: transform var(--transition-normal);
}

.map-container:hover iframe {
    transform: scale(1.02);
}

.contact-info .contact-item {
    display: flex;
    align-items: flex-start;
    gap: var(--space-3);
    margin-bottom: var(--space-3);
    font-size: var(--font-size-sm);
    color: var(--text-light);
}

.contact-icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    margin-top: 2px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: var(--space-6);
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--space-4);
}

.copyright {
    font-size: var(--font-size-sm);
    color: var(--text-light);
}

.footer-bottom-links {
    display: flex;
    gap: var(--space-6);
}

.footer-bottom-link {
    color: var(--text-light);
    text-decoration: none;
    font-size: var(--font-size-sm);
    transition: color var(--transition-fast);
}

.footer-bottom-link:hover {
    color: var(--text-white);
}

/* Social Media Links */
.social-links {
    display: flex;
    gap: var(--space-3);
    margin-top: var(--space-4);
    justify-content: flex-start;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: var(--radius-lg);
    text-decoration: none;
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.social-link svg {
    width: 24px;
    height: 24px;
    transition: all var(--transition-normal);
    z-index: 2;
    position: relative;
}

/* Facebook */
.social-link.facebook {
    background-color: #1877F2;
    color: white;
}

.social-link.facebook:hover {
    background-color: #166FE5;
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 25px rgba(24, 119, 242, 0.4);
}

/* Twitter */
.social-link.twitter {
    background-color: #1DA1F2;
    color: white;
}

.social-link.twitter:hover {
    background-color: #1A91DA;
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 25px rgba(29, 161, 242, 0.4);
}

/* LinkedIn */
.social-link.linkedin {
    background-color: #0077B5;
    color: white;
}

.social-link.linkedin:hover {
    background-color: #006BA1;
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 25px rgba(0, 119, 181, 0.4);
}

/* YouTube */
.social-link.youtube {
    background-color: #FF0000;
    color: white;
}

.social-link.youtube:hover {
    background-color: #E60000;
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 25px rgba(255, 0, 0, 0.4);
}

/* General hover effects */
.social-link:hover svg {
    transform: scale(1.1);
}

.social-link:active {
    transform: translateY(-1px) scale(1.02);
}

/* ========================================
   BUTTON STYLES
   ======================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-3) var(--space-6);
    border-radius: var(--radius-lg);
    font-weight: var(--font-weight-medium);
    text-decoration: none;
    transition: all var(--transition-fast);
    border: 2px solid transparent;
    cursor: pointer;
    font-size: var(--font-size-base);
    line-height: 1;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--text-white);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}



/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

/* Tablet Styles (768px - 1023px) */
@media (max-width: 1023px) {
    .slide-title {
        font-size: var(--font-size-3xl);
    }
    
    .slide-subtitle {
        font-size: var(--font-size-lg);
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: var(--space-8);
    }
    
    .programs-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: var(--space-6);
    }
    
    .testimonial-author {
    flex-direction: column;
        text-align: center;
    }
}

/* Mobile Styles (max-width: 767px) */
@media (max-width: 767px) {
    /* Top Bar */
    .top-bar-content {
        flex-direction: column;
        gap: var(--space-2);
        text-align: center;
    }
    
    .top-left,
    .top-center,
    .top-right {
    justify-content: center;
    }
    
    .search-box {
        flex-direction: column;
        gap: var(--space-2);
    }
    
    .search-input {
        width: 100%;
    }
    
    /* Middle Section */
    .middle-content {
        flex-direction: column;
        gap: var(--space-4);
        text-align: center;
    }
    
    .logo {
        flex-direction: column;
        gap: var(--space-2);
    }
    
    .government-info {
        flex-direction: column;
        gap: var(--space-2);
    }
    
    .ministry-text {
        text-align: center;
    }
    
    /* Bottom Navigation */
    .bottom-nav .nav-menu {
        position: fixed;
        top: 56px;
        left: 0;
        width: 100%;
        background-color: #1e3a8a;
        flex-direction: column;
        padding: var(--space-4);
        box-shadow: var(--shadow-heavy);
        transform: translateY(-16px);
        opacity: 0;
        visibility: hidden;
        transition: all var(--transition-normal);
        z-index: var(--z-fixed);
        max-height: calc(100vh - 56px);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .bottom-nav .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    /* Show close button when menu is open */
    .bottom-nav .nav-menu.active ~ .mobile-menu-close {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
    
    .bottom-nav .nav-item {
        width: 100%;
    }
    
    .bottom-nav .nav-link {
        width: 100%;
        justify-content: space-between;
        padding: var(--space-4);
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .bottom-nav .dropdown-menu {
        position: static;
        transform: none;
        box-shadow: none;
        background-color: rgba(255, 255, 255, 0.1);
        margin-top: var(--space-2);
        border-radius: var(--radius-md);
        display: none; /* hidden by default on mobile */
        visibility: hidden;
        opacity: 0;
    }
    .bottom-nav .dropdown.open .dropdown-menu { display: block; visibility: visible; opacity: 1; }
    /* make submenu items tappable and styled */
    .bottom-nav .dropdown-menu li { width: 100%; }
    .bottom-nav .dropdown-menu .dropdown-link {
        color: var(--text-white);
        padding: var(--space-3) var(--space-4);
        display: block;
    }
    .bottom-nav .dropdown-menu .dropdown-link:hover { background: rgba(255,255,255,0.14); }
    
    .bottom-nav .dropdown-link {
        color: var(--text-white);
    }
    
    .bottom-nav .dropdown-link:hover {
        background-color: rgba(255, 255, 255, 0.2);
        color: var(--text-white);
    }
    
    .bottom-nav .mobile-menu-toggle {
        display: flex;
    }
    
    /* Hero Slider */
    .hero-slider {
        height: 60vh;
        min-height: 400px;
    }
    
    .slide-title {
        font-size: var(--font-size-2xl);
    }
    
    .slide-subtitle {
        font-size: var(--font-size-base);
    }
    
    .slide-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .slider-control {
        width: 40px;
        height: 40px;
    }
    
    .slider-control.prev {
        left: var(--space-4);
    }
    
    .slider-control.next {
        right: var(--space-4);
    }
    
    /* About Section */
    .about-section {
        padding: var(--space-12) 0;
    }
    
    .about-text h2 {
        font-size: var(--font-size-3xl);
    }
    
    .lead {
        font-size: var(--font-size-lg);
    }
    
    .about-stats {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
        gap: var(--space-4);
    }
    
    /* Programs Section */
    .programs-section {
        padding: var(--space-12) 0;
    }
    
    .section-header h2 {
        font-size: var(--font-size-3xl);
    }
    
    .section-subtitle {
        font-size: var(--font-size-lg);
    }
    
    .programs-grid {
        grid-template-columns: 1fr;
        gap: var(--space-6);
    }
    
    /* Testimonials */
    .testimonials-section {
        padding: var(--space-12) 0;
    }
    
    .testimonial-quote blockquote {
        font-size: var(--font-size-lg);
    }
    
    /* Footer */
    .main-footer {
        padding: var(--space-12) 0 var(--space-6);
    }
    
    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-bottom-links {
        justify-content: center;
    }
    
    .map-container {
        margin-bottom: var(--space-3);
    }
    
    .map-container iframe {
        height: 150px;
    }
    
    .social-links {
        justify-content: center;
        gap: var(--space-2);
    }
    
    .social-link {
        width: 44px;
        height: 44px;
    }
    
    .social-link svg {
        width: 20px;
        height: 20px;
    }
}

/* Small Mobile Styles (max-width: 480px) */
@media (max-width: 480px) {
    .container {
        padding: 0 var(--space-3);
    }
    
    .slide-title {
        font-size: var(--font-size-xl);
    }
    
    .slide-subtitle {
        font-size: var(--font-size-sm);
    }
    
    .about-text h2 {
        font-size: var(--font-size-2xl);
    }
    
    .section-header h2 {
        font-size: var(--font-size-2xl);
    }
    
    .programs-grid {
        grid-template-columns: 1fr;
    }
    
    .program-card {
        margin: 0 var(--space-2);
    }
}

/* ========================================
   FONT SIZE CONTROLS
   ======================================== */
.font-small {
    font-size: 0.875rem;
}

.font-normal {
    font-size: 1rem;
}

.font-large {
    font-size: 1.125rem;
}

/* ========================================
   THEME VARIATIONS
   ======================================== */
.theme-dark {
    --primary-color: #1f2937;
    --primary-dark: #111827;
    --primary-light: #374151;
    --text-primary: #f9fafb;
    --text-secondary: #d1d5db;
    --background-white: #111827;
    --background-light: #1f2937;
    --border-color: #374151;
}

.theme-purple {
    --accent-color: #f59e0b;
    --accent-dark: #d97706;
}

/* ========================================
   ACCESSIBILITY IMPROVEMENTS
   ======================================== */

/* Focus styles */
*:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Skip link for keyboard navigation */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: var(--primary-color);
    color: var(--text-white);
    padding: 8px;
    text-decoration: none;
    z-index: var(--z-tooltip);
}

.skip-link:focus {
    top: 6px;
}

/* Reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    :root {
        --text-primary: #000000;
        --text-secondary: #333333;
        --border-color: #000000;
    }
}

/* ========================================
   ENHANCED TESTIMONIALS SECTION STYLES
   ======================================== */

/* ========================================
   ENHANCED STUDENT COUNTER SECTION STYLES
   ======================================== */
.student-counter-section {
    padding: var(--space-20) 0;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: var(--text-white);
    position: relative;
    overflow: hidden;
}

.student-counter-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="75" cy="75" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="50" cy="10" r="0.5" fill="rgba(255,255,255,0.05)"/><circle cx="10" cy="60" r="0.5" fill="rgba(255,255,255,0.05)"/><circle cx="90" cy="40" r="0.5" fill="rgba(255,255,255,0.05)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

.student-counter-section .section-header {
    position: relative;
    z-index: 2;
}

.student-counter-section .section-header h2 {
    color: var(--text-white);
    font-size: var(--font-size-5xl);
    font-weight: var(--font-weight-bold);
    margin-bottom: var(--space-4);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.student-counter-section .section-subtitle {
    color: rgba(255, 255, 255, 0.9);
    font-size: var(--font-size-xl);
    max-width: 600px;
    margin: 0 auto;
    line-height: var(--line-height-relaxed);
}

.counter-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-8);
    margin-top: var(--space-12);
    position: relative;
    z-index: 2;
}

.counter-item {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-2xl);
    padding: var(--space-8);
    text-align: center;
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.counter-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-color) 0%, #fbbf24 50%, var(--accent-color) 100%);
    transform: scaleX(0);
    transition: transform var(--transition-normal);
}

.counter-item:hover::before {
    transform: scaleX(1);
}

.counter-item:hover {
    transform: translateY(-8px) scale(1.02);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    border-color: var(--accent-color);
}

.counter-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto var(--space-6);
    background: linear-gradient(135deg, var(--accent-color) 0%, #fbbf24 100%);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.counter-icon::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.3) 50%, transparent 70%);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.counter-item:hover .counter-icon::before {
    transform: translateX(100%);
}

.counter-item:hover .counter-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 10px 25px rgba(245, 158, 11, 0.4);
}

.counter-icon i {
    font-size: var(--font-size-3xl);
    color: var(--text-white);
    z-index: 2;
    position: relative;
}

.counter-content {
    position: relative;
}

.counter-number {
    font-size: var(--font-size-6xl);
    font-weight: var(--font-weight-bold);
    color: var(--text-white);
    margin-bottom: var(--space-3);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    line-height: 1;
    display: block;
    transition: all var(--transition-normal);
}

.counter-item:hover .counter-number {
    transform: scale(1.1);
    color: var(--accent-color);
    text-shadow: 0 4px 8px rgba(245, 158, 11, 0.3);
}

.counter-label {
    font-size: var(--font-size-lg);
    color: rgba(255, 255, 255, 0.9);
    font-weight: var(--font-weight-semibold);
    text-transform: uppercase;
    letter-spacing: 1px;
    line-height: 1.2;
    transition: color var(--transition-normal);
}

.counter-item:hover .counter-label {
    color: var(--text-white);
}

/* Counter Animation */
@keyframes countUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.counter-number.animate {
    animation: countUp 0.8s ease-out;
}

/* Responsive Design for Enhanced Sections */
@media (max-width: 768px) {
    .testimonials-section {
        padding: var(--space-12) 0;
    }

    
    .testimonials-section .testimonial-card {
        padding: var(--space-6);
    }
    
    .testimonials-section .testimonial-content blockquote {
        font-size: var(--font-size-base);
        padding: var(--space-4);
    }
    
    .testimonials-section .testimonial-author {
        flex-direction: column;
        text-align: center;
        gap: var(--space-3);
    }
    
    .testimonials-section .author-image {
        width: 60px;
        height: 60px;
    }
    
    .student-counter-section {
        padding: var(--space-12) 0;
    }
    
    .student-counter-section .section-header h2 {
        font-size: var(--font-size-4xl);
    }
    
    .student-counter-section .section-subtitle {
        font-size: var(--font-size-lg);
    }
    
    .counter-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: var(--space-6);
        margin-top: var(--space-8);
    }
    
    .counter-item {
        padding: var(--space-6);
    }
    
    .counter-icon {
        width: 60px;
        height: 60px;
        margin-bottom: var(--space-4);
    }
    
    .counter-icon i {
        font-size: var(--font-size-2xl);
    }
    
    .counter-number {
        font-size: var(--font-size-4xl);
    }
    
    .counter-label {
        font-size: var(--font-size-base);
    }
}

@media (max-width: 480px) {
    
    .testimonials-section .testimonial-content blockquote {
        font-size: var(--font-size-sm);
    }
    
    .counter-grid {
        grid-template-columns: 1fr;
        gap: var(--space-4);
    }
    
    .student-counter-section .section-header h2 {
        font-size: var(--font-size-3xl);
    }
}

/* Carousel controls */
.testimonial-controls { display: none; }
.testimonial-indicators, .testimonial-indicator { display: none; }
.testimonial-indicators { display: flex; gap: 8px; }
.testimonial-indicator { width: 10px; height: 10px; border-radius: var(--radius-full); background-color: #e5e7eb; border: 1px solid #e5e7eb; cursor: pointer; transition: background-color var(--transition-fast); }
.testimonial-indicator.active { background-color: var(--primary-color); border-color: var(--primary-color); }

/* Print styles */
@media print {
    .top-bar,
    .main-header,
    .slider-controls,
    .slider-indicators,
    .testimonial-controls,
    .main-footer {
        display: none;
    }
    
    .hero-slider {
        height: auto;
    }
    
    .slide {
        position: static;
        opacity: 1;
    }
    
    .slide-image::after {
        display: none;
    }
    
    .slide-content {
        position: static;
        color: var(--text-primary);
    }
}

/* wrap the inner columns as cards */
.about-section .about-content .row > [class*="col-"] { display: flex; }
.about-section .about-text { background: var(--background-white); border: 1px solid var(--border-color); border-radius: var(--radius-xl); box-shadow: var(--shadow-light); }
@media (max-width: 767px) { .about-section .about-text { padding: var(--space-4) !important; } }

/* Modern Mission & Vision highlight */
.mv-highlight {
    position: relative;
    border-radius: var(--radius-2xl);
    overflow: hidden;
    background: linear-gradient(135deg, var(--primary-dark) 0%, #0b1f5a 100%);
    color: var(--text-white);
}
.mv-highlight::before { content: none; }
.mv-highlight::after { content: none; }
.mv-card { position: relative; border-left: 4px solid transparent; }
.mv-card--vision { border-left-color: var(--primary-color); }
.mv-card--mission { border-left-color: var(--accent-color); }
@media (max-width: 767px) { .mv-highlight { padding: var(--space-4) !important; } }

/* Simplify Mission & Vision content: remove heavy cards inside highlight */
.mv-highlight .about-text {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
}
.mv-card { border-left-width: 3px; border-radius: 0; }
.mv-card h2 { color: #ffffff; }
.mv-card p.text-muted { color: rgba(255,255,255,0.85) !important; }
.mv-card ul li span { color: rgba(255,255,255,0.95); }
.mv-card i.bi-check-circle-fill { color: #ffffff; }
.mv-card .badge { 
    background: rgba(255,255,255,0.12) !important; 
    color: #ffffff; 
    border-color: rgba(255,255,255,0.25) !important;
}

/* Keep overlay visible always, including after hover ends */
.gallery-overlay { opacity: 1 !important; transform: none !important; }
.gallery-item:hover .gallery-overlay { opacity: 1 !important; transform: none !important; }

/* ========================================
   CORE PILLARS (Refined)
   ======================================== */
.pillars-section { background: var(--background-light); padding: var(--space-12) 0; }
.pillars-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-6);
}
@media (max-width: 992px) { .pillars-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 576px) { .pillars-grid { grid-template-columns: 1fr; } }

.pillar-card {
    background: var(--background-white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-2xl);
    padding: var(--space-6);
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
    height: 100%;
    box-shadow: var(--shadow-light);
}
.pillar-card:hover { box-shadow: var(--shadow-heavy); border-color: #d0d7e2; transform: translateY(-2px); transition: all var(--transition-normal); }

.pillar-header { display: flex; align-items: center; gap: var(--space-3); }
.pillar-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-full);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    box-shadow: 0 6px 12px rgba(0,0,0,0.08);
}
.pillar-title { font-size: var(--font-size-xl); font-weight: var(--font-weight-bold); color: var(--primary-dark); margin: 0; }
.pillar-text { color: var(--text-secondary); line-height: var(--line-height-relaxed); margin: 0; }

/* Variant accents */
.pillar--mission .pillar-icon { background: linear-gradient(135deg, var(--primary-color), var(--primary-dark)); }
.pillar--vedic .pillar-icon { background: linear-gradient(135deg, var(--accent-color), var(--accent-dark)); }
.pillar--uplift .pillar-icon { background: linear-gradient(135deg, #3b82f6, #1e40af); }

.pillar-footnote { font-size: var(--font-size-sm); color: var(--text-light); margin-top: auto; }

/* ========================================
   RULES & REGULATIONS MODAL STYLES
   ======================================== */

/* Rules Modal Container */
#rulesModal .modal-content {
    border: none;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-heavy);
    overflow: hidden;
    background: var(--background-white);
}

#rulesModal .modal-header {
    background: var(--primary-color);
    border-bottom: none;
    padding: var(--space-6);
}

#rulesModal .modal-title {
    font-size: var(--font-size-xl);
    font-weight: var(--font-weight-bold);
    margin: 0;
    color: var(--text-white);
}

#rulesModal .modal-body {
    padding: var(--space-6);
    background: var(--background-light);
    max-height: 70vh;
    overflow-y: auto;
}

#rulesModal .modal-footer {
    background: var(--background-white);
    border-top: 1px solid var(--border-color);
    padding: var(--space-4) var(--space-6);
}

/* Rules Introduction */
.rules-intro {
    text-align: center;
    margin-bottom: var(--space-6);
}

.rules-intro h4 {
    color: var(--primary-color);
    font-weight: var(--font-weight-semibold);
    margin-bottom: var(--space-2);
    font-size: var(--font-size-lg);
}

.rules-intro .alert {
    border: none;
    border-radius: var(--radius-lg);
    background: var(--secondary-color);
    border-left: 4px solid var(--primary-color);
    padding: var(--space-4) var(--space-5);
    font-size: var(--font-size-sm);
    line-height: var(--line-height-relaxed);
    color: var(--text-secondary);
}

/* Rules Container */
.rules-container {
    background: var(--background-white);
    border-radius: var(--radius-lg);
    padding: var(--space-6);
    box-shadow: var(--shadow-light);
    border: 1px solid var(--border-color);
}

/* Rules Section */
.rules-section {
    margin-bottom: var(--space-6);
    padding-bottom: var(--space-5);
    border-bottom: 1px solid var(--border-color);
}

.rules-section:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

/* Section Title */
.section-title {
    font-size: var(--font-size-lg);
    font-weight: var(--font-weight-semibold);
    color: var(--primary-color);
    margin-bottom: var(--space-4);
    padding-bottom: var(--space-2);
    border-bottom: 2px solid var(--background-light);
    display: flex;
    align-items: center;
}

.section-title i {
    color: var(--accent-color);
    margin-right: var(--space-2);
}

/* Rules List */
.rules-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.rules-list li {
    position: relative;
    padding: var(--space-3) 0 var(--space-3) var(--space-5);
    color: var(--text-primary);
    line-height: var(--line-height-relaxed);
    font-size: var(--font-size-base);
    border-bottom: 1px solid var(--background-light);
    transition: all var(--transition-fast);
}

.rules-list li:last-child {
    border-bottom: none;
}

.rules-list li::before {
    content: '•';
    position: absolute;
    left: 0;
    top: var(--space-3);
    color: var(--primary-color);
    font-weight: bold;
    font-size: var(--font-size-lg);
}

.rules-list li:hover {
    color: var(--primary-color);
    padding-left: var(--space-6);
}

/* Parent Guidelines */
.parent-guidelines {
    margin-top: var(--space-6);
}

.parent-guidelines .alert {
    border: none;
    border-radius: var(--radius-lg);
    background: var(--secondary-color);
    border-left: 4px solid var(--accent-color);
    padding: var(--space-5) var(--space-6);
}

.parent-guidelines .alert-heading {
    color: var(--primary-color);
    font-weight: var(--font-weight-semibold);
    margin-bottom: var(--space-3);
    font-size: var(--font-size-base);
    display: flex;
    align-items: center;
}

.parent-guidelines .alert-heading i {
    color: var(--accent-color);
    margin-right: var(--space-2);
}

.parent-guidelines ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.parent-guidelines li {
    position: relative;
    padding: var(--space-2) 0 var(--space-2) var(--space-5);
    color: var(--text-primary);
    line-height: var(--line-height-relaxed);
    font-size: var(--font-size-sm);
}

.parent-guidelines li::before {
    content: '•';
    position: absolute;
    left: 0;
    top: var(--space-2);
    color: var(--accent-color);
    font-weight: bold;
    font-size: var(--font-size-lg);
}

/* Inspirational Quote */
#rulesModal blockquote {
    background: var(--secondary-color);
    border: none;
    border-left: 4px solid var(--primary-color);
    border-radius: var(--radius-lg);
    padding: var(--space-6);
    margin: var(--space-6) 0 0 0;
    position: relative;
}

#rulesModal blockquote::before {
    content: '"';
    position: absolute;
    top: -10px;
    left: 20px;
    font-size: var(--font-size-4xl);
    color: var(--primary-color);
    font-family: serif;
    opacity: 0.3;
    line-height: 1;
}

#rulesModal blockquote p {
    font-size: var(--font-size-base);
    font-style: italic;
    color: var(--primary-color);
    margin: 0;
    line-height: var(--line-height-relaxed);
    font-weight: var(--font-weight-medium);
}

/* Modal Buttons */
#rulesModal .btn {
    border-radius: var(--radius-lg);
    font-weight: var(--font-weight-semibold);
    padding: var(--space-3) var(--space-5);
    transition: all var(--transition-normal);
    font-size: var(--font-size-sm);
    border: none;
}

#rulesModal .btn-secondary {
    background: var(--text-secondary);
    color: var(--text-white);
}

#rulesModal .btn-secondary:hover {
    background: var(--text-primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

#rulesModal .btn-primary {
    background: var(--primary-color);
    color: var(--text-white);
}

#rulesModal .btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

/* Responsive Design for Rules Modal */
@media (max-width: 768px) {
    #rulesModal .modal-body {
        padding: var(--space-4);
        max-height: 60vh;
    }
    
    #rulesModal .modal-header {
        padding: var(--space-4);
    }
    
    #rulesModal .modal-footer {
        padding: var(--space-3) var(--space-4);
        flex-direction: column;
        gap: var(--space-3);
    }
    
    .rules-container {
        padding: var(--space-4);
    }
    
    .rules-section {
        margin-bottom: var(--space-4);
        padding-bottom: var(--space-4);
    }
    
    .section-title {
        font-size: var(--font-size-base);
        margin-bottom: var(--space-3);
    }
    
    .rules-list li {
        font-size: var(--font-size-sm);
        padding: var(--space-2) 0 var(--space-2) var(--space-4);
    }
    
    .parent-guidelines li {
        font-size: var(--font-size-sm);
    }
    
    #rulesModal blockquote {
        padding: var(--space-4) var(--space-5);
        margin-top: var(--space-4);
    }
    
    #rulesModal blockquote p {
        font-size: var(--font-size-sm);
    }
}

@media (max-width: 480px) {
    #rulesModal .modal-dialog {
        margin: var(--space-2);
    }
    
    #rulesModal .modal-body {
        padding: var(--space-3);
    }
    
    #rulesModal .modal-header {
        padding: var(--space-3);
    }
    
    #rulesModal .modal-footer {
        padding: var(--space-2) var(--space-3);
    }
    
    .rules-container {
        padding: var(--space-3);
    }
    
    .rules-section {
        margin-bottom: var(--space-3);
        padding-bottom: var(--space-3);
    }
    
    .section-title {
        font-size: var(--font-size-sm);
        flex-direction: column;
        align-items: flex-start;
        gap: var(--space-1);
    }
    
    .rules-list li {
        font-size: var(--font-size-xs);
        padding: var(--space-2) 0 var(--space-2) var(--space-3);
    }
    
    .parent-guidelines .alert {
        padding: var(--space-3) var(--space-4);
    }
    
    #rulesModal blockquote {
        padding: var(--space-3) var(--space-4);
        margin-top: var(--space-3);
    }
    
    #rulesModal blockquote p {
        font-size: var(--font-size-xs);
    }
}
