/* ============================================
   CSS Variables & Reset
   ============================================ */
:root {
    --primary-color: #1e3a8a;
    --primary-dark: #1e40af;
    --primary-light: #3b82f6;
    --secondary-color: #f59e0b;
    --secondary-dark: #d97706;
    --accent-color: #10b981;
    --text-dark: #1f2937;
    --text-light: #6b7280;
    --bg-light: #f9fafb;
    --bg-white: #ffffff;
    --border-color: #e5e7eb;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.2s ease;
    --transition-slow: all 0.5s ease;
    --gradient-primary: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 50%, #60a5fa 100%);
    --gradient-secondary: linear-gradient(135deg, #f59e0b 0%, #fbbf24 100%);
    --gradient-accent: linear-gradient(135deg, #059669 0%, #10b981 50%, #34d399 100%);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
    line-height: 1.7;
    color: var(--text-dark);
    background-color: var(--bg-white);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ============================================
   Navigation
   ============================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    box-shadow: none;
    z-index: 1000;
    transition: var(--transition);
    border-bottom: none;
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: var(--shadow-md);
    border-bottom: 1px solid rgba(229, 231, 235, 0.5);
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    transition: var(--transition);
}

.navbar.scrolled .logo {
    color: var(--primary-color);
    text-shadow: none;
}

.logo i {
    font-size: 2rem;
    color: var(--secondary-color);
    filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.5));
}

.navbar.scrolled .logo i {
    filter: none;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-menu a {
    text-decoration: none;
    color: white;
    font-weight: 600;
    position: relative;
    transition: var(--transition);
    padding: 0.5rem 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.navbar.scrolled .nav-menu a {
    color: var(--text-dark);
    text-shadow: none;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: white;
    transition: var(--transition);
}

.navbar.scrolled .nav-menu a::after {
    background: var(--primary-color);
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
    width: 100%;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: white;
}

.navbar.scrolled .nav-menu a:hover,
.navbar.scrolled .nav-menu a.active {
    color: var(--primary-color);
}

/* Better visibility for active/hover in mobile drawer (white background) */
@media (max-width: 768px) {
    .nav-menu a {
        padding: 0.75rem 1rem;
        border-radius: 999px;
    }
    .nav-menu a.active,
    .nav-menu a:hover {
        background: var(--primary-color);
        color: #ffffff;
        text-shadow: none;
    }
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 5px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: white;
    transition: var(--transition);
    border-radius: 3px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.navbar.scrolled .hamburger span {
    background: var(--primary-color);
    box-shadow: none;
}

/* ============================================
   Hero Section
   ============================================ */
.hero {
    position: relative;
    height: 100vh;
    min-height: 100vh;
    overflow: hidden;
    margin-top: 0;
}

.hero-slider {
    position: relative;
    width: 100%;
    height: 100%;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    opacity: 0;
    transition: opacity 1.2s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    transform: scale(1.05);
}

.hero-slide.active {
    opacity: 1;
    z-index: 1;
    transform: scale(1);
    transition: opacity 1.2s cubic-bezier(0.4, 0, 0.2, 1), transform 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}


.hero-slide:nth-child(1) {
    background: url('https://images.unsplash.com/photo-1529390079861-591de354faf5?w=2560&q=95&auto=format&fit=crop') center/cover;
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
}

.hero-slide:nth-child(2) {
    background: url('https://images.unsplash.com/photo-1511578314322-379afb476865?w=2560&q=95&auto=format&fit=crop') center/cover;
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
}

.hero-slide:nth-child(3) {
    background: url('https://images.unsplash.com/photo-1529390079861-591de354faf5?w=2560&q=95&auto=format&fit=crop') center/cover;
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
}

@media (max-width: 768px) {
    .hero-slide:nth-child(1),
    .hero-slide:nth-child(2),
    .hero-slide:nth-child(3) {
        background-attachment: scroll;
    }
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
    padding: 2rem;
    max-width: 900px;
    margin: 0 auto;
}

.hero-title {
    font-size: 4.5rem;
    font-weight: 900;
    margin-bottom: 1.5rem;
    text-shadow: 3px 3px 10px rgba(0, 0, 0, 0.6);
    animation: fadeInUp 1s ease-out;
    letter-spacing: -0.02em;
    line-height: 1.1;
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 3rem;
    }
}

.hero-subtitle {
    font-size: 1.8rem;
    margin-bottom: 3rem;
    opacity: 1;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
    font-weight: 500;
    animation: fadeInUp 1s ease-out 0.2s both;
}

@media (max-width: 768px) {
    .hero-subtitle {
        font-size: 1.3rem;
    }
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 1s ease-out 0.4s both;
}

.hero-indicators {
    position: absolute;
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 3;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: var(--transition);
}

.indicator.active {
    background: white;
    width: 30px;
    border-radius: 6px;
}

.hero-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 2rem;
    z-index: 3;
}

.hero-nav-btn {
    background: rgba(255, 255, 255, 0.25);
    border: 2px solid rgba(255, 255, 255, 0.6);
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.hero-nav-btn:hover {
    background: rgba(255, 255, 255, 0.4);
    transform: scale(1.15);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

/* ============================================
   Buttons
   ============================================ */
.btn {
    display: inline-block;
    padding: 0.875rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    border: 2px solid transparent;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--secondary-color), var(--secondary-dark));
    color: white;
    box-shadow: var(--shadow-md);
    border: none;
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--secondary-dark), var(--secondary-color));
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.btn-secondary:hover {
    background: white;
    color: var(--primary-color);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-outline:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

/* ============================================
   Stats Section
   ============================================ */
.stats {
    padding: 5rem 0;
    background: var(--bg-light);
    margin-top: 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.stat-card {
    background: white;
    padding: 2.5rem;
    border-radius: 20px;
    text-align: center;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: var(--transition-slow);
}

.stat-card:hover::before {
    left: 100%;
}

.stat-card:hover {
    transform: translateY(-12px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-color);
}

.stat-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    transition: var(--transition);
}

.stat-card:hover .stat-icon {
    transform: scale(1.2) rotate(5deg);
    color: var(--secondary-color);
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1.1rem;
    color: var(--text-light);
    font-weight: 500;
}

/* ============================================
   Section Headers
   ============================================ */
.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title {
    font-size: 2.75rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
    letter-spacing: -0.02em;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--secondary-color);
    border-radius: 2px;
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-top: 1rem;
}

/* ============================================
   About Preview
   ============================================ */
.about-preview {
    padding: 5rem 0;
    background: white;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: center;
}

@media (min-width: 768px) {
    .about-content {
        grid-template-columns: 1fr 1fr;
    }
}

.about-text p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    color: var(--text-light);
    line-height: 1.8;
}

.about-image {
    position: relative;
}

.image-placeholder {
    width: 100%;
    height: 400px;
    background: url('https://images.unsplash.com/photo-1529390079861-591de354faf5?w=1200&q=95&auto=format&fit=crop') center/cover;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-xl);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    background-size: cover;
    background-position: center;
}

.image-placeholder:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-xl);
}

.image-placeholder i {
    font-size: 8rem;
    color: rgba(255, 255, 255, 0.3);
    position: relative;
    z-index: 1;
}

/* ============================================
   Programs Section
   ============================================ */
.programs {
    padding: 5rem 0;
    background: var(--bg-light);
}

.programs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.program-card {
    background: white;
    padding: 2.5rem;
    border-radius: 20px;
    text-align: center;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(229, 231, 235, 0.5);
}

.program-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transform: scaleX(0);
    transition: var(--transition);
}

.program-card:hover::before {
    transform: scaleX(1);
}

.program-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
}

.program-icon {
    width: 90px;
    height: 90px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    border-radius: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    box-shadow: var(--shadow-md);
}

.program-card:hover .program-icon {
    transform: rotate(5deg) scale(1.1);
    background: linear-gradient(135deg, var(--secondary-color), var(--secondary-dark));
}

.program-icon i {
    font-size: 2.5rem;
    color: white;
}

.program-card h3 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.program-card p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.program-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
}

.program-link:hover {
    color: var(--secondary-color);
    gap: 1rem;
}

/* ============================================
   Features Section
   ============================================ */
.features {
    padding: 5rem 0;
    background: white;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-item {
    padding: 2.5rem;
    border-radius: 20px;
    transition: var(--transition);
    border: 2px solid transparent;
    background: white;
    box-shadow: var(--shadow-sm);
}

.feature-item:hover {
    border-color: var(--primary-color);
    background: white;
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    transition: var(--transition);
    box-shadow: var(--shadow-md);
}

.feature-item:hover .feature-icon {
    transform: rotate(-5deg) scale(1.1);
    background: linear-gradient(135deg, var(--secondary-color), var(--secondary-dark));
}

.feature-icon i {
    font-size: 2rem;
    color: white;
}

.feature-item h3 {
    font-size: 1.3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.feature-item p {
    color: var(--text-light);
    line-height: 1.8;
}

/* ============================================
   News Preview
   ============================================ */
.news-preview {
    padding: 5rem 0;
    background: var(--bg-light);
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.news-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    display: flex;
    border: 1px solid rgba(229, 231, 235, 0.5);
    position: relative;
}

.news-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
}

.news-date {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: white;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 100px;
}

.news-date .day {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1;
}

.news-date .month {
    font-size: 1rem;
    text-transform: uppercase;
    opacity: 0.9;
}

.news-content {
    padding: 1.5rem;
    flex: 1;
}

.news-content h3 {
    color: var(--primary-color);
    margin-bottom: 0.75rem;
    font-size: 1.3rem;
}

.news-content p {
    color: var(--text-light);
    margin-bottom: 1rem;
    line-height: 1.7;
}

.news-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
}

.news-link:hover {
    color: var(--secondary-color);
    gap: 1rem;
}

.text-center {
    text-align: center;
}

/* ============================================
   Footer
   ============================================ */
.footer {
    background: var(--text-dark);
    color: white;
    padding: 4rem 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-col h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--secondary-color);
}

.footer-col h4 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: var(--secondary-color);
}

.footer-col p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 1rem;
    line-height: 1.8;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 0.75rem;
}

.footer-col ul li a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: var(--transition);
    display: inline-block;
}

.footer-col ul li a:hover {
    color: var(--secondary-color);
    transform: translateX(5px);
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: var(--transition);
}

/* ============================================
   CMS Image Blocks (Public Site)
   ============================================ */
.cms-image-block img {
    width: 100%;
    display: block;
    border-radius: 20px;
    box-shadow: var(--shadow-xl);
}

/* Never show admin-only inline controls on the public site (in case old content was saved with them). */
.cms-image-actions {
    display: none !important;
}

/* Hide broken placeholder <img> tags with no src (keeps layouts from showing broken-image icons). */
.cms-image-block img:not([src]),
.cms-image-block img[src=""] {
    display: none;
}

.social-links a.is-disabled {
    opacity: 0.45;
    pointer-events: none;
    filter: grayscale(1);
}

.social-links a:hover {
    background: var(--secondary-color);
    transform: translateY(-5px);
}

.contact-info li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.contact-info i {
    color: var(--secondary-color);
    width: 20px;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
}

/* Ensure long text wraps and stays inside cards */
.news-card,
.item-card,
.feature-item,
.program-card {
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* Limit very long body text in admin cards (e.g. announcements) */
.item-card-content {
    max-height: 240px;
    overflow-y: auto;
}

/* ============================================
   Animations
   ============================================ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.8s ease-out;
}

/* ============================================
   Page Specific Styles
   ============================================ */
.page-header {
    background: url('https://images.unsplash.com/photo-1529390079861-591de354faf5?w=2560&q=95&auto=format&fit=crop') center/cover;
    color: white;
    padding: 8rem 0 4rem;
    margin-top: 70px;
    text-align: center;
    position: relative;
    overflow: hidden;
    background-size: cover;
    background-position: center;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.page-header > .container {
    position: relative;
    z-index: 2;
}

.page-header h1 {
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    margin-bottom: 1rem;
    font-weight: 800;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
    letter-spacing: -0.02em;
}

.page-header p {
    font-size: clamp(1rem, 2.6vw, 1.2rem);
    opacity: 0.95;
}

.page-content {
    padding: 4rem 0;
}

.content-section {
    margin-bottom: 4rem;
}

.content-section h2 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 3px solid var(--secondary-color);
}

.content-section p {
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.page-content img {
    max-width: 100%;
    height: auto;
    border-radius: 16px;
    box-shadow: var(--shadow-md);
}

@media (max-width: 768px) {
    .page-content [style*="grid-template-columns"] {
        grid-template-columns: 1fr !important;
    }
    .page-content [style*="display: grid"] {
        gap: 1.25rem !important;
    }
    .page-content img {
        max-height: none;
        height: auto;
        object-fit: cover;
    }
}

.page-content ul,
.page-content ol {
    padding-left: 1.5rem;
    margin-bottom: 1rem;
}

/* ============================================
   Public CMS Pages (News, Events, Announcements)
   ============================================ */
.public-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.75rem;
}

.public-card {
    background: var(--bg-white);
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    min-height: 100%;
}

.public-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.public-card-media {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: linear-gradient(135deg, #1e3a8a, #3b82f6);
    overflow: hidden;
}

.public-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.public-card-body {
    padding: 1.25rem 1.5rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.public-card-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-color);
}

.public-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    color: var(--text-light);
    font-size: 0.9rem;
}

.public-card-meta i {
    color: var(--secondary-color);
    margin-right: 0.35rem;
}

.public-card-text {
    color: var(--text-light);
    line-height: 1.7;
}

.pill {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.25rem 0.65rem;
    border-radius: 999px;
    background: rgba(30, 58, 138, 0.1);
    color: var(--primary-color);
    font-size: 0.8rem;
    font-weight: 600;
}

.pill.warning {
    background: rgba(245, 158, 11, 0.15);
    color: #b45309;
}

.pill.info {
    background: rgba(59, 130, 246, 0.15);
    color: #1e40af;
}

.pill.success {
    background: rgba(16, 185, 129, 0.15);
    color: #047857;
}

.announcement-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

.announcement-card {
    background: var(--bg-white);
    border-radius: 16px;
    border: 1px solid var(--border-color);
    padding: 1.25rem 1.5rem;
    box-shadow: var(--shadow-sm);
}

.announcement-card h4 {
    color: var(--primary-color);
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.announcement-card p {
    color: var(--text-light);
}

.announcement-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 0.75rem;
    color: var(--text-light);
    font-size: 0.85rem;
}

/* ============================================
   Gallery Page
   ============================================ */
/* Gallery grid */
.public-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
}

.gallery-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.filter-btn {
    border: 1px solid var(--border-color);
    background: var(--bg-white);
    color: var(--text-dark);
    padding: 0.5rem 1rem;
    border-radius: 999px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-fast);
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #ffffff;
}

.public-gallery-item {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.public-gallery-item:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.public-gallery-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.public-gallery-caption {
    padding: 0.9rem 1rem 1.1rem;
}

.public-gallery-caption h4 {
    font-size: 1rem;
    color: var(--primary-color);
    margin-bottom: 0.35rem;
}

.public-gallery-caption p {
    color: var(--text-light);
    font-size: 0.9rem;
}


/* ============================================
   Admissions Page
   ============================================ */
.admission-form {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 18px;
    padding: 2rem;
    box-shadow: var(--shadow-sm);
}

.admission-form .form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}

.admission-form input,
.admission-form select,
.admission-form textarea {
    width: 100%;
    padding: 0.85rem 1rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    font-size: 1rem;
    transition: var(--transition-fast);
}

.admission-form input:focus,
.admission-form select:focus,
.admission-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(30, 58, 138, 0.12);
}

.fees-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
}

.fee-box {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    text-align: center;
}

.fee-box h4 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.fee-box p {
    font-weight: 700;
    font-size: 1.2rem;
}

/* ============================================
   Responsive Design
   ============================================ */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        flex-direction: column;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        width: 100%;
        padding: 2rem;
        box-shadow: var(--shadow-lg);
        transition: var(--transition);
        gap: 1rem;
    }
    
    .nav-menu a {
        color: var(--text-dark);
        text-shadow: none;
    }

    .nav-menu.active {
        left: 0;
    }

    .hero {
        min-height: 100vh;
        height: 100vh;
    }

    .hero-title {
        font-size: 2.5rem;
        line-height: 1.2;
    }

    .hero-subtitle {
        font-size: 1.2rem;
        margin-bottom: 2rem;
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }

    .hero-buttons .btn {
        width: 100%;
        margin: 0.5rem 0;
    }

    .about-content {
        grid-template-columns: 1fr;
    }

    .about-text {
        grid-template-columns: 1fr !important;
    }

    .section-title {
        font-size: 2rem;
    }

    .programs-grid,
    .features-grid,
    .news-grid {
        grid-template-columns: 1fr;
    }

    .public-grid {
        grid-template-columns: 1fr;
    }

    .public-card-body {
        padding: 1.1rem;
    }

    .public-gallery-grid {
        grid-template-columns: 1fr;
    }

    .program-card {
        margin-bottom: 1.5rem;
    }

    .program-card img {
        height: 250px !important;
    }

    .feature-item img {
        height: 180px !important;
    }

    .news-card {
        flex-direction: column !important;
    }

    .news-card img {
        height: 200px !important;
    }

    .page-header {
        padding: 6rem 0 3rem;
        margin-top: 0;
    }

    .page-header h1 {
        font-size: 2.5rem;
    }

    .hero-nav-btn {
        width: 45px;
        height: 45px;
        font-size: 1.2rem;
    }

    .hero-indicators {
        bottom: 30px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
        line-height: 1.1;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
        max-width: 100%;
    }

    .btn {
        width: 100%;
        text-align: center;
        padding: 0.875rem 1.5rem;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .program-card img,
    .feature-item img,
    .news-card img {
        height: 200px !important;
    }

    .container {
        padding: 0 15px;
    }

    .page-header h1 {
        font-size: 2rem;
    }

    .hero-nav {
        padding: 0 1rem;
    }

    .hero-nav-btn {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
}
