/* ========================================
   MODERN PREMIUM SCHOOL WEBSITE CSS
   ======================================== */

/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

/* ===== CSS Variables ===== */
:root {
    --primary: #1a237e;
    --primary-light: #283593;
    --primary-dark: #0d1445;
    --secondary: #e8b931;
    --secondary-light: #f5d54a;
    --accent: #ff6f00;
    --success: #2e7d32;
    --danger: #c62828;
    --gradient-primary: linear-gradient(135deg, #1a237e 0%, #283593 50%, #3949ab 100%);
    --gradient-secondary: linear-gradient(135deg, #e8b931 0%, #f5d54a 100%);
    --gradient-hero: linear-gradient(135deg, rgba(26, 35, 126, 0.92) 0%, rgba(40, 53, 147, 0.85) 50%, rgba(57, 73, 171, 0.78) 100%);
    --light: #f8f9fa;
    --dark: #1a1a2e;
    --gray: #6c757d;
    --gray-light: #e9ecef;
    --gray-dark: #343a40;
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.08);
    --shadow-md: 0 8px 30px rgba(0,0,0,0.12);
    --shadow-lg: 0 15px 50px rgba(0,0,0,0.2);
    --shadow-xl: 0 25px 60px rgba(0,0,0,0.25);
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* ===== Reset & Base ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    line-height: 1.7;
    color: var(--dark);
    background: #ffffff;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img {
    max-width: 100%;
    height: auto;
}

a {
    text-decoration: none;
    color: inherit;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ===== Scrollbar ===== */
::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-track {
    background: var(--light);
}
::-webkit-scrollbar-thumb {
    background: var(--gradient-primary);
    border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

/* ========================================
   NAVIGATION - Premium Glassmorphism
   ======================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 16px 0;
    background: rgba(255, 255, 255, 255);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 2px 30px rgba(0,0,0,0.06);
    transition: var(--transition);
}

.navbar.scrolled {
    padding: 10px 0;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 4px 40px rgba(0,0,0,0.08);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-brand a {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--primary);
    text-decoration: none;
}

.nav-brand .brand-icon {
    width: 48px;
    height: 48px;
    background: var(--gradient-primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    box-shadow: 0 4px 15px rgba(26, 35, 126, 0.3);
}

.nav-brand .brand-text {
    font-size: 1.2rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-brand .brand-text span {
    font-weight: 300;
    -webkit-text-fill-color: var(--gray);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 8px;
    align-items: center;
    z-index:99999;
}

.nav-menu a {
    padding: 8px 28px;
    border-radius: 50px;
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--dark);
    transition: var(--transition);
    position: relative;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: var(--transition);
    transform: translateX(-50%);
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
    width: 60%;
}

.nav-menu a:hover {
    color: var(--primary);
    background: rgba(26, 35, 126, 0.06);
}

.nav-menu a.active {
    color: var(--primary);
    background: rgba(26, 35, 126, 0.08);
    font-weight: 600;
}

.admin-link {
    background: var(--gradient-primary) !important;
    color: white !important;
    padding: 8px 20px !important;
    border-radius: 50px !important;
    font-weight: 600 !important;
    box-shadow: 0 4px 15px rgba(26, 35, 126, 0.3);
}

.admin-link::after {
    display: none !important;
}

.admin-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(26, 35, 126, 0.4) !important;
    background: var(--primary-dark) !important;
}

.admin-link i {
    margin-right: 6px;
}

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    transition: var(--transition);
}

.hamburger:hover {
    background: rgba(26, 35, 126, 0.06);
}

.hamburger span {
    width: 28px;
    height: 3px;
    background: var(--primary);
    margin: 3px 0;
    border-radius: 10px;
    transition: var(--transition);
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}
.hamburger.active span:nth-child(2) {
    opacity: 0;
}
.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* ========================================
   HERO SECTION - Premium Design
   ======================================== */
.hero {
    min-height: 100vh;
    align-items: center;
    position: relative;
    padding: 120px 0 80px;
    background: var(--gradient-primary);
    overflow: hidden;
    /* Add background image */
    background-image: url('../uploads/hero-bg.png');
    background-size: contain;
    background-position: center;
    background-attachment: fixed;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(26, 35, 126, 0.88) 0%, rgba(40, 52, 147, 0.308) 40%, rgba(57, 72, 171, 0) 80%);
    z-index: 1;
}
.hero .container {
    position: relative;
    z-index: 2;
}
.hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 50%;
    height: 100%;
    background: radial-gradient(ellipse, rgba(255, 255, 255, 0.05) 0%, transparent 70%);
    border-radius: 50%;
    animation: heroGlow2 10s ease-in-out infinite alternate;
}

@keyframes heroGlow {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(-50px, 30px) scale(1.1); }
}

@keyframes heroGlow2 {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(50px, -20px) scale(1.2); }
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.hero-badge {
    display: inline-block;
    padding: 6px 20px;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 24px;
    backdrop-filter: blur(10px);
}

.hero-badge i {
    margin-right: 8px;
}

.hero h1 {
    font-size: 4rem;
    font-weight: 900;
    line-height: 1.1;
    color: white;
    margin-bottom: 16px;
    letter-spacing: -2px;
}

.hero h1 .highlight {
    background: var(--gradient-secondary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero .tagline {
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 400;
    margin-bottom: 20px;
    letter-spacing: 0.5px;
}

.hero .description {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.75);
    max-width: 600px;
    margin-bottom: 36px;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 48px;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 34px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--gradient-secondary);
    color: var(--primary-dark);
    box-shadow: 0 8px 30px rgba(232, 185, 49, 0.35);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(232, 185, 49, 0.45);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.15);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-3px);
    border-color: rgba(255, 255, 255, 0.5);
}

.btn i {
    font-size: 1.1rem;
}

/* Stats */
.stats {
    display: flex;
    gap: 60px;
    margin-top: 10px;
}

.stat-item {
    text-align: left;
}

.stat-item .stat-number {
    display: block;
    font-size: 2.8rem;
    font-weight: 900;
    color: white;
    letter-spacing: -1px;
    line-height: 1;
}

.stat-item .stat-number .plus {
    font-size: 2rem;
    color: var(--secondary);
}

.stat-item .stat-label {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 400;
    margin-top: 4px;
}

/* Hero Decorative Elements */
.hero-decorations {
    display: none; /* Hide old decorations */
}
/*.hero-decorations {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1;
    opacity: 0.3;
}*/

.hero-decorations .circle {
    position: absolute;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.hero-decorations .circle:nth-child(1) {
    width: 400px;
    height: 400px;
    right: -100px;
    top: -200px;
    animation: float 20s ease-in-out infinite;
}

.hero-decorations .circle:nth-child(2) {
    width: 600px;
    height: 600px;
    right: -200px;
    bottom: -300px;
    animation: float 25s ease-in-out infinite reverse;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    50% { transform: translate(-30px, -20px) rotate(180deg); }
}

/* ========================================
   QUICK LINKS - Premium Cards
   ======================================== */
.quick-links {
    padding: 20px 0;
    background: white;
    margin-top: -40px;
    position: relative;
    z-index: 3;
}

.quick-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
}

.quick-card {
    padding: 32px 24px;
    background: white;
    border-radius: var(--radius-md);
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid rgba(0,0,0,0.04);
    position: relative;
    overflow: hidden;
}

.quick-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
    opacity: 0;
    transition: var(--transition);
}

.quick-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}

.quick-card:hover::before {
    opacity: 1;
}

.quick-card .icon-wrapper {
    width: 70px;
    height: 70px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    color: white;
    font-size: 28px;
    box-shadow: 0 8px 30px rgba(26, 35, 126, 0.2);
}

.quick-card:nth-child(2) .icon-wrapper {
    background: var(--gradient-secondary);
    color: var(--primary-dark);
}

.quick-card:nth-child(3) .icon-wrapper {
    background: linear-gradient(135deg, #e8b931, #ff6f00);
}

.quick-card:nth-child(4) .icon-wrapper {
    background: linear-gradient(135deg, #2e7d32, #43a047);
}

.quick-card h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--dark);
}

.quick-card p {
    color: var(--gray);
    font-size: 0.95rem;
    margin-bottom: 16px;
}

.quick-card .card-link {
    color: var(--primary);
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.quick-card .card-link:hover {
    gap: 12px;
}

/* ========================================
   PAGE CONTENT - Premium Layout
   ======================================== */
.page-content {
    padding: 140px 0 80px;
    min-height: 60vh;
}

.page-content .page-header {
    margin-bottom: 40px;
    position: relative;
}

.page-content .page-header h1 {
    font-size: 3rem;
    font-weight: 900;
    color: var(--primary);
    letter-spacing: -1.5px;
    margin-bottom: 12px;
}

.page-content .page-header .breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--gray);
    font-size: 0.9rem;
}

.page-content .page-header .breadcrumb a {
    color: var(--primary);
    font-weight: 500;
}

.page-content .page-header .breadcrumb .separator {
    color: #ccc;
}

.page-content .featured-image {
    margin-bottom: 40px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.page-content .featured-image img {
    width: 100%;
    max-height: 450px;
    object-fit: cover;
    transition: var(--transition);
}

.page-content .featured-image img:hover {
    transform: scale(1.02);
}

.page-content-body {
    font-size: 1.05rem;
    line-height: 1.9;
    color: var(--dark);
}

.page-content-body h2 {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary);
    margin: 40px 0 16px;
    letter-spacing: -0.5px;
}

.page-content-body h3 {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary-light);
    margin: 30px 0 12px;
}

.page-content-body p {
    margin-bottom: 16px;
}

.page-content-body ul,
.page-content-body ol {
    margin: 16px 0 24px 24px;
}

.page-content-body ul li,
.page-content-body ol li {
    margin-bottom: 8px;
    padding-left: 8px;
}

.page-content-body ul li::marker {
    color: var(--secondary);
}

.page-content-body ol {
    counter-reset: item;
}

.page-content-body ol li {
    counter-increment: item;
    list-style: none;
    position: relative;
    padding-left: 36px;
}

.page-content-body ol li::before {
    content: counter(item);
    position: absolute;
    left: 0;
    top: 0;
    width: 24px;
    height: 24px;
    background: var(--gradient-primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 700;
}

.page-content-body .content-card {
    background: var(--light);
    padding: 30px;
    border-radius: var(--radius-md);
    margin: 24px 0;
    border-left: 4px solid var(--primary);
}

.page-content-body .content-card h4 {
    color: var(--primary);
    margin-bottom: 8px;
}

/* ========================================
   UPDATES SECTION
   ======================================== */
.updates {
    padding: 10px 0;
}

.updates .section-header {
    text-align: center;
    margin-bottom: 10px;
}

.updates .section-header h2 {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--primary);
    letter-spacing: -1px;
}

.updates .section-header .section-subtitle {
    color: var(--gray);
    font-size: 1.1rem;
    margin-top: 8px;
}

.updates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.update-card {
    background: white;
    border-radius: var(--radius-md);
    padding: 28px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid rgba(0,0,0,0.04);
}

.update-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.update-card .card-badge {
    display: inline-block;
    padding: 4px 14px;
    background: rgba(26, 35, 126, 0.08);
    color: var(--primary);
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 12px;
}

.update-card .date {
    color: var(--gray);
    font-size: 0.85rem;
    margin-bottom: 8px;
}

.update-card .date i {
    margin-right: 6px;
}

.update-card h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--dark);
}

.update-card p {
    color: var(--gray);
    font-size: 0.95rem;
    margin-bottom: 12px;
}

.update-card .read-more {
    color: var(--primary);
    font-weight: 600;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition);
}

.update-card .read-more:hover {
    gap: 12px;
}

/* ========================================
   FOOTER - Premium Design
   ======================================== */
.footer {
    background: var(--dark);
    color: white;
    padding: 60px 0 30px;
    margin-top: 40px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.footer-section h3 i {
    color: var(--secondary);
    margin-right: 10px;
}

.footer-section h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 16px;
    color: rgba(255,255,255,0.8);
}

.footer-section p {
    color: rgba(255,255,255,0.6);
    line-height: 1.8;
    font-size: 0.95rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section ul a {
    color: rgba(255,255,255,0.6);
    transition: var(--transition);
    font-size: 0.95rem;
}

.footer-section ul a:hover {
    color: var(--secondary);
    padding-left: 6px;
}

.social-links {
    display: flex;
    gap: 12px;
    margin-top: 16px;
}

.social-links a {
    width: 44px;
    height: 44px;
    background: rgba(255,255,255,0.06);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.1rem;
    transition: var(--transition);
    border: 1px solid rgba(255,255,255,0.06);
}

.social-links a:hover {
    background: var(--secondary);
    color: var(--dark);
    transform: translateY(-3px);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.06);
    padding-top: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.footer-bottom p {
    color: rgba(255,255,255,0.4);
    font-size: 0.9rem;
}

.footer-bottom .footer-links {
    display: flex;
    gap: 20px;
}

.footer-bottom .footer-links a {
    color: rgba(255,255,255,0.4);
    font-size: 0.9rem;
    transition: var(--transition);
}

.footer-bottom .footer-links a:hover {
    color: var(--secondary);
}

/* ========================================
   GALLERY - Premium Grid
   ======================================== */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

.gallery-item {
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    background: white;
}

.gallery-item:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.gallery-item .image-wrapper {
    height: 240px;
    overflow: hidden;
    background: var(--light);
    position: relative;
}

.gallery-item .image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.gallery-item:hover .image-wrapper img {
    transform: scale(1.08);
}

.gallery-item .image-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.6), transparent);
    opacity: 0;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-item:hover .image-overlay {
    opacity: 1;
}

.gallery-item .image-overlay .view-btn {
    padding: 10px 24px;
    background: white;
    border-radius: 50px;
    color: var(--primary);
    font-weight: 600;
    transform: translateY(20px);
    transition: var(--transition);
}

.gallery-item:hover .image-overlay .view-btn {
    transform: translateY(0);
}

.gallery-item .image-info {
    padding: 16px 20px;
}

.gallery-item .image-info h4 {
    font-weight: 700;
    font-size: 1.05rem;
    margin-bottom: 4px;
}

.gallery-item .image-info p {
    color: var(--gray);
    font-size: 0.9rem;
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */
@media (max-width: 1024px) {
    .hero h1 {
        font-size: 3.2rem;
    }
    .footer-content {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .navbar {
        padding: 12px 0;
    }
    
    .hamburger {
        display: flex;
    }
    
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: 20px 24px;
        box-shadow: var(--shadow-lg);
        gap: 4px;
        border-top: 1px solid rgba(0,0,0,0.04);
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    .nav-menu a {
        width: 100%;
        padding: 12px 16px;
        border-radius: 12px;
    }
    
    .nav-menu a::after {
        display: none;
    }
    
    .hero {
        min-height: 90vh;
        padding: 100px 0 60px;
    }
    
    .hero h1 {
        font-size: 2.4rem;
        letter-spacing: -1px;
    }
    
    .hero .tagline {
        font-size: 1.2rem;
    }
    
    .stats {
        gap: 30px;
        flex-wrap: wrap;
    }
    
    .stat-item .stat-number {
        font-size: 2rem;
    }
    
    .quick-links {
        padding: 40px 0;
        margin-top: -20px;
    }
    
    .quick-grid {
        grid-template-columns: 1fr 1fr;
        gap: 16px;
    }
    
    .page-content {
        padding: 100px 0 40px;
    }
    
    .page-content .page-header h1 {
        font-size: 2rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    
    .updates-grid {
        grid-template-columns: 1fr;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 16px;
    }
}

@media (max-width: 480px) {
    .quick-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
    }
    
    .hero-buttons .btn {
        justify-content: center;
    }
    
    .stats {
        gap: 20px;
    }
    
    .stat-item .stat-number {
        font-size: 1.6rem;
    }
    
    .stat-item .stat-label {
        font-size: 0.8rem;
    }
}

/* ========================================
   ANIMATIONS
   ======================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ========================================
   UTILITY CLASSES
   ======================================== */
.text-center { text-align: center; }
.text-primary { color: var(--primary); }
.text-secondary { color: var(--secondary); }
.text-gradient { background: var(--gradient-primary); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }

.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }
.mt-5 { margin-top: 48px; }

.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 32px; }
.mb-5 { margin-bottom: 48px; }

.section-bg-light {
    background: var(--light);
}

.section-bg-white {
    background: white;
}

.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
/* ========================================
   HERO SLIDER - FIXED
   ======================================== */

.hero-slider {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 600px;
    overflow: hidden;
}

.slides-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s ease-in-out, visibility 0.8s ease-in-out;
    display: flex;
    align-items: center;
    z-index: 1;
}

.slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 2;
}

.slide-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: 0;
}

.slide-bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(26, 35, 126, 0.88) 0%, rgba(40, 53, 147, 0.5) 50%, rgba(57, 72, 171, 0.2) 100%);
}

.slide .container {
    position: relative;
    z-index: 2;
    width: 100%;
}

/* Slider Buttons */
.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(8px);
    color: white;
    border: 2px solid rgba(255,255,255,0.2);
    /*padding: 16px 22px;*/
    cursor: pointer;
    border-radius: 50%;
    font-size: 1.5rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slider-btn:hover {
    background: rgba(255,255,255,0.3);
    transform: translateY(-50%) scale(1.1);
}

.prev-btn {
    left: 20px;
}

.next-btn {
    right: 20px;
}

/* Slider Dots */
.slider-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    gap: 12px;
}

.dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: rgba(255,255,255,0.4);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid rgba(255,255,255,0.2);
}

.dot.active {
    background: var(--secondary);
    border-color: var(--secondary);
    transform: scale(1.2);
}

.dot:hover {
    background: rgba(255,255,255,0.7);
}

/* Hide all slides except active */
.slide:not(.active) {
    opacity: 0 !important;
    visibility: hidden !important;
}

.slide.active {
    opacity: 1 !important;
    visibility: visible !important;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .hero-slider {
        height: 90vh;
        min-height: 500px;
    }
    
    .slider-btn {
        padding: 10px 14px;
        font-size: 1rem;
    }
    
    .prev-btn {
        left: 10px;
    }
    
    .next-btn {
        right: 10px;
    }
    
    .slider-dots {
        bottom: 20px;
        gap: 8px;
    }
    
    .dot {
        width: 10px;
        height: 10px;
    }
    
    .slide-bg {
        background-attachment: scroll !important;
    }
}

@media (max-width: 480px) {
    .slider-btn {
        display: none;
    }
}
/* ===== REMOVE HERO SLIDER OVERLAY ===== */
.hero-slider .slide-bg::after {
    display: none !important;
}

/* Optional: If you want text to be readable on images, add a subtle dark overlay */

.hero-slider .slide-bg::after {
    display: block !important;
    background: rgba(0, 0, 0, 0.3) !important;
}
/* Title - White */
.hero-slider .slide h1 {
    color: #ffffff !important;
}

/* Subtitle - Gold */
.hero-slider .slide .hero-badge {
    color: #e8b931 !important;
}

/* Description - Light White */
.hero-slider .slide .description {
    color: rgba(255, 255, 255, 0.9) !important;
}
/* ========================================
   NEWS CARDS WITH IMAGES
   ======================================== */

.update-card {
    background: white;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid rgba(0,0,0,0.04);
    display: flex;
    flex-direction: column;
}

.update-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

/* Card Image */
.update-card-image {
    width: 100%;
    height: 100px;
    overflow: hidden;
    background: var(--light);
    position: relative;
}

.update-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.update-card:hover .update-card-image img {
    transform: scale(1.05);
}

/* Card Body */
.update-card-body {
    padding: 20px 24px 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.update-card-body .card-badge {
    display: inline-block;
    padding: 4px 14px;
    background: rgba(26, 35, 126, 0.08);
    color: var(--primary);
    border-radius: 50px;
    font-size: 0.7rem;
    font-weight: 600;
    margin-bottom: 10px;
    align-self: flex-start;
}

.update-card-body .date {
    color: var(--gray);
    font-size: 0.8rem;
    margin-bottom: 8px;
}

.update-card-body .date i {
    margin-right: 6px;
}

.update-card-body h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--dark);
    line-height: 1.4;
}

.update-card-body p {
    color: var(--gray);
    font-size: 0.95rem;
    margin-bottom: 12px;
    flex: 1;
}

.update-card-body .read-more {
    color: var(--primary);
    font-weight: 600;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition);
    margin-top: auto;
}

.update-card-body .read-more:hover {
    gap: 12px;
    color: var(--secondary);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .update-card-image {
        height: 90px;
    }
    
    .update-card-body {
        padding: 16px 18px 20px;
    }
    
    .update-card-body h3 {
        font-size: 1rem;
    }
    
    .update-card-body p {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .update-card-image {
        height: 140px;
    }
    
    .update-card-body {
        padding: 14px 16px 18px;
    }
}
/* ========================================
   EVENTS SECTION - SMALL CARDS
   ======================================== */

.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.event-card {
    background: white;
    border-radius: 12px;
    padding: 20px 22px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    align-items: center;
    gap: 18px;
    border-left: 4px solid var(--secondary);
}

.event-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 25px rgba(0,0,0,0.1);
}

/* Event Date */
.event-date {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
    line-height: 1.2;
}

.event-date .event-day {
    font-size: 1.4rem;
    font-weight: 800;
    display: block;
}

.event-date .event-month {
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 0.8;
}

/* Event Content */
.event-content {
    flex: 1;
    min-width: 0;
}

.event-content h3 {
    font-size: 1rem;
    font-weight: 700;
    margin: 0 0 4px;
    color: var(--dark);
    line-height: 1.3;
}

.event-content p {
    color: var(--gray);
    font-size: 0.85rem;
    margin: 0 0 6px;
    line-height: 1.5;
}

.event-meta {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    font-size: 0.75rem;
    color: #999;
}

.event-meta span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.event-meta i {
    color: var(--secondary);
    font-size: 0.7rem;
}

/* Different colors for each event card */
.event-card:nth-child(1) { border-left-color: #e8b931; }
.event-card:nth-child(2) { border-left-color: #1a237e; }
.event-card:nth-child(3) { border-left-color: #dc3545; }
.event-card:nth-child(4) { border-left-color: #28a745; }
.event-card:nth-child(5) { border-left-color: #17a2b8; }
.event-card:nth-child(6) { border-left-color: #6f42c1; }

/* Event card with image */
.event-card.has-image {
    padding: 0;
    overflow: hidden;
    flex-direction: column;
    align-items: stretch;
    border-left: none;
    border-top: 4px solid var(--secondary);
}

.event-card.has-image .event-image {
    height: 120px;
    overflow: hidden;
}

.event-card.has-image .event-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.event-card.has-image .event-date {
    width: 50px;
    height: 50px;
    font-size: 0.8rem;
}

.event-card.has-image .event-content {
    padding: 14px 18px 18px;
}

/* Responsive */
@media (max-width: 768px) {
    .events-grid {
        grid-template-columns: 1fr 1fr;
        gap: 16px;
    }
    
    .event-card {
        padding: 16px 18px;
        gap: 14px;
    }
    
    .event-date {
        width: 50px;
        height: 50px;
    }
    
    .event-date .event-day {
        font-size: 1.1rem;
    }
    
    .event-date .event-month {
        font-size: 0.55rem;
    }
    
    .event-content h3 {
        font-size: 0.9rem;
    }
    
    .event-content p {
        font-size: 0.8rem;
    }
    
    .event-meta {
        font-size: 0.7rem;
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .events-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .event-card {
        padding: 14px 16px;
    }
}

/* ========================================
   UNIFIED CARD DESIGN - NEWS & EVENTS
   ======================================== */

/* ----- NEWS CARDS ----- */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

.news-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-left: 4px solid var(--primary);
}

.news-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 25px rgba(0,0,0,0.1);
}

.news-card .news-image {
    height: 160px;
    overflow: hidden;
    position: relative;
    background: var(--light);
}

.news-card .news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.news-card:hover .news-image img {
    transform: scale(1.05);
}

.news-card .news-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0,0,0,0.7);
    color: white;
    padding: 2px 12px;
    border-radius: 20px;
    font-size: 0.6rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.news-card .news-content {
    padding: 14px 18px 18px;
}

.news-card .news-meta {
    display: flex;
    gap: 14px;
    font-size: 0.7rem;
    color: #999;
    margin-bottom: 4px;
}

.news-card .news-meta span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.news-card .news-meta i {
    color: var(--secondary);
    font-size: 0.65rem;
}

.news-card .news-content h3 {
    font-size: 0.95rem;
    font-weight: 700;
    margin: 0 0 4px;
    color: var(--dark);
    line-height: 1.3;
}

.news-card .news-content p {
    color: var(--gray);
    font-size: 0.82rem;
    line-height: 1.5;
    margin: 0 0 10px;
}

.news-card .news-read-more {
    color: var(--primary);
    font-weight: 600;
    font-size: 0.8rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: gap 0.3s ease;
}

.news-card .news-read-more:hover {
    gap: 12px;
}

/* Different border colors for news cards */
.news-card:nth-child(1) { border-left-color: #e8b931; }
.news-card:nth-child(2) { border-left-color: #1a237e; }
.news-card:nth-child(3) { border-left-color: #dc3545; }
.news-card:nth-child(4) { border-left-color: #28a745; }
.news-card:nth-child(5) { border-left-color: #17a2b8; }
.news-card:nth-child(6) { border-left-color: #6f42c1; }

/* ----- EVENTS CARDS ----- */
.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.event-card {
    background: white;
    border-radius: 12px;
    padding: 16px 18px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    align-items: center;
    gap: 16px;
    border-left: 4px solid var(--secondary);
}

.event-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 25px rgba(0,0,0,0.1);
}

.event-card .event-date {
    flex-shrink: 0;
    width: 54px;
    height: 54px;
    background: var(--gradient-primary);
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
    line-height: 1.1;
}

.event-card .event-date .event-day {
    font-size: 1.2rem;
    font-weight: 800;
    display: block;
}

.event-card .event-date .event-month {
    font-size: 0.55rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 0.8;
}

.event-card .event-content {
    flex: 1;
    min-width: 0;
}

.event-card .event-content h3 {
    font-size: 0.9rem;
    font-weight: 700;
    margin: 0 0 3px;
    color: var(--dark);
    line-height: 1.3;
}

.event-card .event-content p {
    color: var(--gray);
    font-size: 0.78rem;
    margin: 0 0 4px;
    line-height: 1.4;
}

.event-card .event-meta {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    font-size: 0.65rem;
    color: #999;
}

.event-card .event-meta span {
    display: inline-flex;
    align-items: center;
    gap: 3px;
}

.event-card .event-meta i {
    color: var(--secondary);
    font-size: 0.6rem;
}

/* Different border colors for event cards */
.event-card:nth-child(1) { border-left-color: #e8b931; }
.event-card:nth-child(2) { border-left-color: #1a237e; }
.event-card:nth-child(3) { border-left-color: #dc3545; }
.event-card:nth-child(4) { border-left-color: #28a745; }
.event-card:nth-child(5) { border-left-color: #17a2b8; }
.event-card:nth-child(6) { border-left-color: #6f42c1; }

/* ----- RESPONSIVE ----- */
@media (max-width: 768px) {
    .news-grid {
        grid-template-columns: 1fr 1fr;
        gap: 16px;
    }
    
    .news-card .news-image {
        height: 130px;
    }
    
    .news-card .news-content {
        padding: 12px 14px 14px;
    }
    
    .news-card .news-content h3 {
        font-size: 0.85rem;
    }
    
    .news-card .news-content p {
        font-size: 0.78rem;
    }
    
    .events-grid {
        grid-template-columns: 1fr 1fr;
        gap: 14px;
    }
    
    .event-card {
        padding: 14px 16px;
        gap: 12px;
    }
    
    .event-card .event-date {
        width: 46px;
        height: 46px;
    }
    
    .event-card .event-date .event-day {
        font-size: 1rem;
    }
    
    .event-card .event-content h3 {
        font-size: 0.82rem;
    }
    
    .event-card .event-content p {
        font-size: 0.75rem;
    }
}

@media (max-width: 480px) {
    .news-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }
    
    .news-card .news-image {
        height: 120px;
    }
    
    .events-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .event-card {
        padding: 12px 14px;
    }
}
/* Logo Preview */
#logoPreview, #faviconPreview {
    transition: all 0.3s ease;
}

#logoPreview:hover, #faviconPreview:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

/* File input styling */
input[type="file"].form-control {
    padding: 10px !important;
    background: var(--admin-bg);
}

input[type="file"].form-control:hover {
    background: #e9ecef;
}
/* ========================================
   FOOTER - CENTERED ON MOBILE
   ======================================== */

@media (max-width: 768px) {
    .footer {
        text-align: center;
    }
    
    .footer-content {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 30px;
    }
    
    .footer-section {
        width: 100%;
        max-width: 400px;
        margin: 0 auto;
    }
    
    .footer-section h3,
    .footer-section h4 {
        text-align: center;
    }
    
    .footer-section ul {
        text-align: center;
        padding: 0;
    }
    
    .footer-section ul li {
        text-align: center;
    }
    
    .footer-section ul a {
        display: inline-block;
    }
    
    .social-links {
        justify-content: center;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-bottom .footer-links {
        justify-content: center;
        flex-wrap: wrap;
    }
}

@media (max-width: 480px) {
    .footer-content {
        gap: 25px;
    }
    
    .footer-section {
        max-width: 100%;
        padding: 0 15px;
    }
    
    .footer-section ul a {
        font-size: 0.9rem;
    }
}
/* ========================================
   FEATURED BOXES - CENTERED CONTENT
   ======================================== */

.featured-boxes-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.featured-box {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(0,0,0,0.04);
    text-align: center !important;
}

.featured-box:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.12);
}

.featured-box-image {
    height: 160px;
    overflow: hidden;
    background: var(--light);
}

.featured-box-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.featured-box:hover .featured-box-image img {
    transform: scale(1.05);
}

.featured-box-content {
    padding: 28px 24px 30px;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

/* ===== ICON - Centered ===== */
.featured-box-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 26px;
    margin: 0 auto 16px;
    box-shadow: 0 4px 15px rgba(26, 35, 126, 0.25);
    flex-shrink: 0;
}

/* ===== TITLE - Centered ===== */
.featured-box h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--dark);
    margin: 0 0 4px;
    text-align: center;
    letter-spacing: 0.5px;
}

/* ===== SUBTITLE - Centered ===== */
.featured-box-subtitle {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--secondary);
    margin: 0 0 10px;
    text-align: center;
}

/* ===== DESCRIPTION - Centered ===== */
.featured-box-description {
    font-size: 0.9rem;
    color: var(--gray);
    line-height: 1.7;
    margin: 0 0 18px;
    text-align: center;
    max-width: 90%;
}

/* ===== BUTTON - Centered ===== */
.featured-box-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary);
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    transition: gap 0.3s ease;
    padding: 8px 20px;
    border-radius: 50px;
    background: rgba(26, 35, 126, 0.06);
    margin-top: 4px;
}

.featured-box-btn:hover {
    gap: 14px;
    background: rgba(26, 35, 126, 0.12);
}

.featured-box-btn i {
    font-size: 0.75rem;
}

/* ===== BORDER COLORS (optional accent) ===== */
.featured-box:nth-child(1) { border-top: 4px solid var(--secondary); }
.featured-box:nth-child(2) { border-top: 4px solid var(--primary); }
.featured-box:nth-child(3) { border-top: 4px solid #e74c3c; }
.featured-box:nth-child(4) { border-top: 4px solid #2ecc71; }
.featured-box:nth-child(5) { border-top: 4px solid #3498db; }
.featured-box:nth-child(6) { border-top: 4px solid #9b59b6; }

/* ======================================== */
/* RESPONSIVE */
/* ======================================== */

@media (max-width: 992px) {
    .featured-boxes-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }
}

@media (max-width: 768px) {
    .featured-boxes-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        max-width: 450px;
        margin: 0 auto;
    }
    
    .featured-box-image {
        height: 140px;
    }
    
    .featured-box-content {
        padding: 22px 20px 26px;
    }
    
    .featured-box-icon {
        width: 50px;
        height: 50px;
        font-size: 22px;
        margin-bottom: 12px;
    }
    
    .featured-box h3 {
        font-size: 1rem;
    }
    
    .featured-box-description {
        font-size: 0.85rem;
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .featured-box-image {
        height: 120px;
    }
    
    .featured-box-content {
        padding: 18px 16px 22px;
    }
    
    .featured-box-icon {
        width: 44px;
        height: 44px;
        font-size: 18px;
    }
    
    .featured-box h3 {
        font-size: 0.9rem;
    }
    
    .featured-box-description {
        font-size: 0.8rem;
    }
    
    .featured-box-btn {
        font-size: 0.8rem;
        padding: 6px 16px;
    }
}
/* MOBILE RESPONSIVE CSS Fix FOR SECTIONS 11AUG */

/* ============================================ */
/* MOBILE RESPONSIVE FIXES - ALL SECTIONS */
/* ============================================ */

/* ===== DOCTORS SECTION ===== */
@media (max-width: 992px) {
    .doctors-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 16px !important;
    }
}

@media (max-width: 480px) {
    .doctors-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px !important;
    }
    .doctor-card {
        padding: 12px !important;
    }
    .doctor-card img {
        width: 70px !important;
        height: 70px !important;
    }
    .doctor-card h3 {
        font-size: 0.85rem !important;
    }
    .doctor-card p {
        font-size: 0.7rem !important;
    }
}

/* ===== EVENTS SECTION ===== */
@media (max-width: 768px) {
    .events-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px !important;
    }
}

@media (max-width: 480px) {
    .events-grid {
        grid-template-columns: 1fr !important;
        gap: 10px !important;
    }
    .event-card {
        padding: 12px 14px !important;
    }
    .event-card .event-date {
        width: 40px !important;
        height: 40px !important;
    }
    .event-card .event-date .event-day {
        font-size: 0.85rem !important;
    }
    .event-card h3 {
        font-size: 0.8rem !important;
    }
    .event-card p {
        font-size: 0.65rem !important;
    }
}

/* ===== FEATURED BOXES SECTION ===== */
@media (max-width: 768px) {
    .featured-boxes-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 15px !important;
    }
}

@media (max-width: 480px) {
    .featured-boxes-grid {
        grid-template-columns: 1fr !important;
        gap: 12px !important;
        max-width: 100% !important;
    }
    .featured-box .featured-image {
        height: 120px !important;
    }
    .featured-box .featured-content {
        padding: 14px 14px 16px !important;
    }
    .featured-box h3 {
        font-size: 0.85rem !important;
    }
}

/* ===== BLOG SECTION ===== */
@media (max-width: 768px) {
    .news-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 15px !important;
    }
}

@media (max-width: 480px) {
    .news-grid {
        grid-template-columns: 1fr !important;
        gap: 12px !important;
    }
    .news-card .news-image {
        height: 120px !important;
    }
    .news-card .news-content {
        padding: 12px 14px 14px !important;
    }
    .news-card h3 {
        font-size: 0.8rem !important;
    }
    .news-card p {
        font-size: 0.7rem !important;
    }
}

/* ===== PATIENT STORIES SECTION ===== */
@media (max-width: 768px) {
    .stories-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 15px !important;
    }
}

@media (max-width: 480px) {
    .stories-grid {
        grid-template-columns: 1fr !important;
        gap: 12px !important;
    }
    .story-card {
        padding: 16px !important;
    }
    .story-card .story-image {
        width: 50px !important;
        height: 50px !important;
    }
    .story-card h3 {
        font-size: 0.85rem !important;
    }
    .story-card p {
        font-size: 0.75rem !important;
    }
}

/* ===== SERVICES SECTION ===== */
@media (max-width: 768px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 15px !important;
    }
}

@media (max-width: 480px) {
    .services-grid {
        grid-template-columns: 1fr !important;
        gap: 12px !important;
        max-width: 100% !important;
    }
    .service-card {
        padding: 16px !important;
    }
    .service-card .service-icon {
        width: 40px !important;
        height: 40px !important;
        font-size: 16px !important;
    }
    .service-card h3 {
        font-size: 0.85rem !important;
    }
    .service-card p {
        font-size: 0.72rem !important;
    }
}
/* NAV MENU FIX FOR 1280 */

/* ======================================== */
/* TABLET SPECIFIC FIXES */
/* ======================================== */

/* For 800x1280 tablets (Samsung Tab, iPad Mini) */
@media (min-width: 768px) and (max-width: 820px) {
    .navbar {
        padding: 4px 0 !important;
        min-height: 44px !important;
        max-height: 48px !important;
    }
    
    .nav-brand .brand-icon {
        width: 28px !important;
        height: 28px !important;
        font-size: 12px !important;
        border-radius: 6px !important;
    }
    
    .nav-brand .brand-text {
        font-size: 0.75rem !important;
    }
    
    /* Show hamburger on tablet */
    .hamburger {
        display: flex !important;
    }
    
    .hamburger span {
        width: 22px !important;
        height: 2px !important;
        margin: 2px 0 !important;
    }
    
    .nav-menu {
        display: none !important;
        position: fixed;
        top: 44px !important;
        left: 0;
        right: 0;
        background: #ffffff;
        flex-direction: column;
        padding: 12px 16px;
        box-shadow: 0 10px 30px rgba(0,0,0,0.15);
        z-index: 999;
        border-top: 3px solid #1a237e;
        max-height: calc(100vh - 44px);
        overflow-y: auto;
        gap: 2px;
    }
    
    .nav-menu.active {
        display: flex !important;
    }
    
    .nav-menu li {
        width: 100%;
    }
    
    .nav-menu a {
        display: block;
        padding: 8px 14px !important;
        font-size: 0.85rem !important;
        color: #1a1a2e;
        border-bottom: 1px solid #f0f0f0;
        width: 100%;
        white-space: normal;
        border-radius: 0 !important;
    }
    
    .nav-menu a:last-child {
        border-bottom: none;
    }
    
    .admin-link {
        background: #1a237e !important;
        color: white !important;
        border-radius: 6px !important;
        text-align: center;
        margin-top: 4px;
        padding: 8px 14px !important;
    }
    
    .nav-menu a::after {
        display: none !important;
    }
}

/* For 1024x1366 tablets (iPad Pro, larger tablets) */
@media (min-width: 821px) and (max-width: 1024px) {
    .navbar {
        padding: 4px 0 !important;
        min-height: 46px !important;
        max-height: 50px !important;
    }
    
    .nav-brand .brand-icon {
        width: 30px !important;
        height: 30px !important;
        font-size: 13px !important;
        border-radius: 7px !important;
    }
    
    .nav-brand .brand-text {
        font-size: 0.8rem !important;
    }
    
    /* Show hamburger on tablet */
    .hamburger {
        display: flex !important;
    }
    
    .hamburger span {
        width: 24px !important;
        height: 2.5px !important;
        margin: 2.5px 0 !important;
    }
    
    .nav-menu {
        display: none !important;
        position: fixed;
        top: 46px !important;
        left: 0;
        right: 0;
        background: #ffffff;
        flex-direction: column;
        padding: 14px 18px;
        box-shadow: 0 10px 30px rgba(0,0,0,0.15);
        z-index: 999;
        border-top: 3px solid #1a237e;
        max-height: calc(100vh - 46px);
        overflow-y: auto;
        gap: 2px;
    }
    
    .nav-menu.active {
        display: flex !important;
    }
    
    .nav-menu li {
        width: 100%;
    }
    
    .nav-menu a {
        display: block;
        padding: 8px 14px !important;
        font-size: 0.9rem !important;
        color: #1a1a2e;
        border-bottom: 1px solid #f0f0f0;
        width: 100%;
        white-space: normal;
        border-radius: 0 !important;
    }
    
    .nav-menu a:last-child {
        border-bottom: none;
    }
    
    .admin-link {
        background: #1a237e !important;
        color: white !important;
        border-radius: 6px !important;
        text-align: center;
        margin-top: 4px;
        padding: 8px 14px !important;
    }
    
    .nav-menu a::after {
        display: none !important;
    }
}

/* Desktop: Hide hamburger */
@media (min-width: 1025px) {
    .hamburger {
        display: none !important;
    }
    
    .nav-menu {
        display: flex !important;
        position: static !important;
        flex-direction: row !important;
        padding: 0 !important;
        box-shadow: none !important;
        border-top: none !important;
        background: transparent !important;
        max-height: none !important;
        overflow-y: visible !important;
    }
}
/* BLOG IMAGE FIX*/
/* Blog images - full visible */
.blog-card .blog-image img,
.news-card .news-image img,
.blog-grid .blog-image img {
    object-fit: contain !important;
    width: 100% !important;
    height: 100% !important;
}

.blog-card .blog-image,
.news-card .news-image,
.blog-grid .blog-image {
    background: #f8f9fa !important;
}
/* ============================================ */
/* BLOG PAGE - MOBILE RESPONSIVE FIX */
/* ============================================ */

/* Blog grid - responsive */
.blog-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 30px !important;
}

/* Tablet */
@media (max-width: 992px) {
    .blog-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 20px !important;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .blog-grid {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
        max-width: 100% !important;
    }
    
    .blog-grid > div {
        max-width: 100% !important;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .blog-grid {
        gap: 16px !important;
    }
}
/* ============================================ */
/* SERVICES PAGE - MOBILE RESPONSIVE FIX */
/* ============================================ */

/* Services grid - desktop */
.services-grid-full {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 30px !important;
}

/* Tablet */
@media (max-width: 992px) {
    .services-grid-full {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 20px !important;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .services-grid-full {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
        max-width: 100% !important;
    }
    
    .services-grid-full > div {
        max-width: 100% !important;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .services-grid-full {
        gap: 16px !important;
    }
    
    .service-card-full {
        padding: 20px 16px !important;
    }
    
    .service-card-full .service-icon {
        width: 50px !important;
        height: 50px !important;
        font-size: 20px !important;
    }
    
    .service-card-full h3 {
        font-size: 1rem !important;
    }
    
    .service-card-full p {
        font-size: 0.85rem !important;
    }
}
/* ----- PATIENT STORIES PAGE - MOBILE RESPONSIVE FIX----- */
.stories-grid-full {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 30px !important;
}

@media (max-width: 992px) {
    .stories-grid-full {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 20px !important;
    }
}

@media (max-width: 768px) {
    .stories-grid-full {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }
}

/* ----- DOCTORS PAGE --- MOBILE RESPONSIVE FIX--- */
.doctors-grid-full {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 30px !important;
}

@media (max-width: 992px) {
    .doctors-grid-full {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 20px !important;
    }
}

@media (max-width: 768px) {
    .doctors-grid-full {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 16px !important;
    }
}

@media (max-width: 480px) {
    .doctors-grid-full {
        grid-template-columns: 1fr !important;
        gap: 16px !important;
        max-width: 100% !important;
    }
    .doctors-grid-full > div {
        max-width: 100% !important;
    }
}
/* ============================================ */
/* ABOUT US PAGE - COMPLETE MOBILE FIX */
/* ============================================ */

/* Mobile: Convert all grids to single column */
@media (max-width: 768px) {
    /* Mission & Vision - 2 columns to 1 */
    .page-content-body div[style*="display: grid"][style*="grid-template-columns: 1fr 1fr"] {
        grid-template-columns: 1fr !important;
        gap: 16px !important;
    }
    
    /* Approach - 3 columns to 1 */
    .page-content-body div[style*="display: grid"][style*="grid-template-columns: 1fr 1fr 1fr"] {
        grid-template-columns: 1fr !important;
        gap: 16px !important;
        max-width: 100% !important;
    }
    
    /* Why Choose Us - 2 columns to 1 */
    .page-content-body ul[style*="display: grid"][style*="grid-template-columns: 1fr 1fr"] {
        grid-template-columns: 1fr !important;
        gap: 6px !important;
    }
    
    /* All cards padding */
    .page-content-body div[style*="background: rgb(248, 249, 250)"][style*="padding: 30px"] {
        padding: 20px !important;
    }
    
    .page-content-body div[style*="background: #f8f9fa"][style*="padding: 30px"] {
        padding: 20px !important;
    }
    
    /* Approach cards */
    .page-content-body div[style*="text-align: center"][style*="padding: 25px"] {
        padding: 20px 16px !important;
    }
    
    /* Approach icons */
    .page-content-body div[style*="width: 60px"][style*="height: 60px"] {
        width: 50px !important;
        height: 50px !important;
        font-size: 20px !important;
    }
    
    /* Headings */
    .page-content-body h2 {
        font-size: 1.4rem !important;
    }
    
    .page-content-body h3 {
        font-size: 1rem !important;
    }
    
    .page-content-body h4 {
        font-size: 0.95rem !important;
    }
    
    /* Paragraphs */
    .page-content-body p {
        font-size: 0.9rem !important;
        text-align: left !important;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .page-content-body div[style*="background: rgb(248, 249, 250)"][style*="padding: 30px"] {
        padding: 14px !important;
    }
    
    .page-content-body div[style*="background: #f8f9fa"][style*="padding: 30px"] {
        padding: 14px !important;
    }
    
    .page-content-body h2 {
        font-size: 1.2rem !important;
    }
}
/* ============================================ */
/* GALLERY PAGE - MOBILE RESPONSIVE FIX */
/* ============================================ */

/* Gallery grid - desktop */
.gallery-grid-full {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 20px !important;
}

/* Tablet */
@media (max-width: 992px) {
    .gallery-grid-full {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 16px !important;
    }
}

/* Small Tablet */
@media (max-width: 768px) {
    .gallery-grid-full {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 14px !important;
    }
}

/* Mobile */
@media (max-width: 480px) {
    .gallery-grid-full {
        grid-template-columns: 1fr !important;
        gap: 14px !important;
        max-width: 100% !important;
    }
    
    .gallery-grid-full > div {
        max-width: 100% !important;
    }
    
    /* Gallery item image height */
    .gallery-grid-full .gallery-item-image {
        height: 180px !important;
    }
    
    .gallery-grid-full .gallery-item-image img {
        height: 180px !important;
    }
}

/* Gallery item styling */
.gallery-grid-full .gallery-item {
    border-radius: 12px !important;
    overflow: hidden !important;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06) !important;
    transition: all 0.3s !important;
    background: white !important;
}

.gallery-grid-full .gallery-item:hover {
    transform: translateY(-4px) !important;
    box-shadow: 0 8px 25px rgba(0,0,0,0.12) !important;
}

.gallery-grid-full .gallery-item-image {
    height: 200px !important;
    overflow: hidden !important;
    background: var(--light) !important;
    position: relative !important;
}

.gallery-grid-full .gallery-item-image img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    transition: transform 0.5s !important;
}

.gallery-grid-full .gallery-item:hover .gallery-item-image img {
    transform: scale(1.05) !important;
}

.gallery-grid-full .gallery-item-content {
    padding: 12px 16px !important;
}

.gallery-grid-full .gallery-item-content h4 {
    font-weight: 700 !important;
    font-size: 0.9rem !important;
    margin: 0 0 2px !important;
    color: var(--dark) !important;
}

.gallery-grid-full .gallery-item-content p {
    color: var(--gray) !important;
    font-size: 0.8rem !important;
    margin: 0 !important;
}

.gallery-grid-full .gallery-item-content .gallery-date {
    color: #999 !important;
    font-size: 0.65rem !important;
    margin-top: 4px !important;
}