/*
 * Shreenath Education Trust - Professional Blue Theme
 * Modern, industry-standard design for NGO/Education websites
 */

/* ===== CSS Variables ===== */
:root {
    /* Primary Blue Palette */
    --primary-color: #1a73e8;
    --primary-dark: #0d47a1;
    --primary-light: #4285f4;
    --primary-rgb: 26, 115, 232;
    
    /* Secondary Gold/Accent */
    --secondary-color: #f9a825;
    --secondary-dark: #f57f17;
    --secondary-light: #fbc02d;
    --secondary-rgb: 249, 168, 37;
    
    /* Neutral Colors */
    --text-dark: #1a1a2e;
    --text-body: #4a4a68;
    --text-light: #6c757d;
    --text-muted: #9ca3af;
    
    /* Background Colors */
    --bg-white: #ffffff;
    --bg-light: #f8fafc;
    --bg-gray: #f1f5f9;
    --bg-dark: #0f172a;
    --bg-dark-light: #1e293b;
    
    /* Utility */
    --white: #ffffff;
    --border-color: #e2e8f0;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    
    /* Shadows */
    --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);
    --shadow-primary: 0 10px 40px rgba(26, 115, 232, 0.3);
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.5s ease;
    
    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-2xl: 24px;
    --radius-full: 9999px;
}

/* ===== Base Styles ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-body);
    background-color: var(--bg-white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ===== Typography ===== */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
    font-weight: 700;
    line-height: 1.3;
    color: var(--text-dark);
    letter-spacing: -0.02em;
}

h1 { font-size: 3rem; }
h2 { font-size: 2.25rem; }
h3 { font-size: 1.875rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

p {
    margin-bottom: 1rem;
    color: var(--text-body);
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition-fast);
}

a:hover {
    color: var(--primary-dark);
}

/* ===== Section Styles ===== */
.section-subtitle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary-color);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-size: 0.8rem;
    margin-bottom: 0.75rem;
    padding: 6px 16px;
    background: rgba(26, 115, 232, 0.1);
    border-radius: var(--radius-full);
}

.section-subtitle::before {
    content: '';
    width: 6px;
    height: 6px;
    background: var(--primary-color);
    border-radius: 50%;
}

.section-title {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.section-description {
    color: var(--text-light);
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.8;
}

/* ===== Page Header ===== */
.page-header {
    padding: 120px 0 80px;
    margin-top: 0;
    background-size: cover;
    background-position: center;
    position: relative;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(13, 71, 161, 0.95), rgba(26, 115, 232, 0.85));
}

.page-header > .container {
    position: relative;
    z-index: 1;
}

.page-title {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 0.75rem;
    color: var(--white);
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.page-subtitle {
    font-size: 1.2rem;
    opacity: 0.95;
    color: var(--white);
    font-weight: 400;
}

.page-header .breadcrumb {
    background: none;
    margin-bottom: 0;
    padding: 0;
}

.page-header .breadcrumb-item a {
    color: rgba(255,255,255,0.85);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition-fast);
}

.page-header .breadcrumb-item a:hover {
    color: var(--white);
}

.page-header .breadcrumb-item.active {
    color: var(--white);
    font-weight: 600;
}

.page-header .breadcrumb-item + .breadcrumb-item::before {
    color: rgba(255,255,255,0.6);
    content: '/';
}

/* ===== Buttons ===== */
.btn {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.01em;
    border-radius: var(--radius-lg);
    transition: all var(--transition-base);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border: none;
    padding: 14px 32px;
    color: var(--white);
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-light), var(--primary-color));
    transform: translateY(-2px);
    box-shadow: var(--shadow-primary);
    color: var(--white);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-secondary {
    background: linear-gradient(135deg, var(--secondary-color), var(--secondary-dark));
    border: none;
    padding: 14px 32px;
    color: var(--text-dark);
    box-shadow: var(--shadow-md);
}

.btn-secondary:hover {
    background: linear-gradient(135deg, var(--secondary-light), var(--secondary-color));
    transform: translateY(-2px);
    box-shadow: 0 10px 40px rgba(249, 168, 37, 0.4);
    color: var(--text-dark);
}

.btn-outline-primary {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    padding: 12px 30px;
    background: transparent;
}

.btn-outline-primary:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-primary);
}

.btn-outline-light {
    border: 2px solid var(--white);
    color: var(--white);
    padding: 12px 30px;
    background: transparent;
}

.btn-outline-light:hover {
    background: var(--white);
    color: var(--primary-color);
}

.btn-lg {
    padding: 16px 40px;
    font-size: 1rem;
}

.btn-sm {
    padding: 8px 20px;
    font-size: 0.875rem;
}

/* ===== Cards ===== */
.card {
    border: none;
    border-radius: var(--radius-xl);
    background: var(--white);
    box-shadow: var(--shadow-md);
    transition: all var(--transition-base);
    overflow: hidden;
}

.card-hover:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.card-body {
    padding: 1.75rem;
}

.card-title {
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.75rem;
}

.card-text {
    color: var(--text-light);
    line-height: 1.7;
}

/* Feature Cards */
.feature-card {
    padding: 2rem;
    border-radius: var(--radius-xl);
    background: var(--white);
    border: 1px solid var(--border-color);
    transition: all var(--transition-base);
}

.feature-card:hover {
    border-color: var(--primary-light);
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.feature-card .icon-wrapper {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, rgba(26, 115, 232, 0.1), rgba(66, 133, 244, 0.1));
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
}

.feature-card .icon-wrapper i {
    font-size: 1.75rem;
    color: var(--primary-color);
}

/* ===== Icon Boxes ===== */
.icon-box {
    width: 72px;
    height: 72px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border-radius: var(--radius-lg);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.75rem;
    box-shadow: var(--shadow-md);
}

.icon-box-sm {
    width: 48px;
    height: 48px;
    font-size: 1.25rem;
    border-radius: var(--radius-md);
}

.icon-box-lg {
    width: 96px;
    height: 96px;
    font-size: 2.5rem;
    border-radius: var(--radius-xl);
}

.icon-box-outline {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    box-shadow: none;
}

/* ===== Navigation ===== */
.navbar {
    padding: 1rem 0;
    transition: all var(--transition-base);
    background: transparent;
}

.navbar.scrolled {
    background: var(--white) !important;
    box-shadow: var(--shadow-md);
    padding: 0.75rem 0;
}

.navbar-brand {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--primary-color) !important;
    display: flex;
    align-items: center;
    gap: 10px;
}

.navbar-brand img {
    width: auto;
}

.navbar-brand img.brand-deity-icon {
    width: 80px;
    height: 80px;
}

.navbar-nav .nav-link {
    font-weight: 600;
    color: var(--text-dark);
    padding: 8px 10px;
    transition: var(--transition-fast);
    position: relative;
    font-size: 0.85rem;
    white-space: nowrap;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--primary-color);
}

.navbar-nav .nav-link.active::after {
    content: '';
    position: absolute;
    left: 10px;
    right: 10px;
    bottom: 0;
    height: 3px;
    background: var(--primary-color);
    border-radius: 3px;
}

/* ===== Social Links ===== */
.social-links {
    display: flex;
    gap: 12px;
}

.social-link {
    width: 42px;
    height: 42px;
    background: var(--bg-gray);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-dark);
    font-size: 1rem;
    transition: all var(--transition-fast);
}

.social-link:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

/* ===== Forms ===== */
.form-control {
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 14px 16px;
    font-size: 1rem;
    transition: all var(--transition-fast);
    background: var(--white);
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(26, 115, 232, 0.1);
    outline: none;
}

.form-control::placeholder {
    color: var(--text-muted);
}

.form-label {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.form-text {
    color: var(--text-muted);
    font-size: 0.875rem;
}

select.form-control,
.form-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 12px center;
    background-repeat: no-repeat;
    background-size: 20px;
    padding-right: 45px;
}

/* ===== Stats Counter ===== */
.counter-box {
    text-align: center;
    padding: 2rem;
}

.counter-number {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--primary-color);
    font-family: 'Plus Jakarta Sans', sans-serif;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.counter-label {
    color: var(--text-light);
    font-size: 1rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Stats with background */
.stats-section {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
    position: relative;
    overflow: hidden;
}

.stats-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
}

.stats-section .counter-number {
    color: var(--white);
}

.stats-section .counter-label {
    color: rgba(255,255,255,0.85);
}

/* ===== Footer ===== */
footer {
    background: var(--bg-dark);
    color: rgba(255,255,255,0.8);
    padding: 80px 0 0;
}

footer h5 {
    color: var(--white);
    font-weight: 700;
    margin-bottom: 1.5rem;
    font-size: 1.125rem;
}

footer p {
    color: rgba(255,255,255,0.7);
}

footer a {
    color: rgba(255,255,255,0.7);
    transition: var(--transition-fast);
}

footer a:hover {
    color: var(--secondary-color);
}

footer ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

footer ul li {
    margin-bottom: 0.75rem;
}

footer ul li a {
    display: flex;
    align-items: center;
    gap: 8px;
}

footer ul li a::before {
    content: '→';
    color: var(--secondary-color);
    font-size: 0.875rem;
}

.footer-bottom {
    background: rgba(0,0,0,0.2);
    padding: 1.5rem 0;
    margin-top: 60px;
}

.footer-bottom p {
    margin: 0;
    color: rgba(255,255,255,0.6);
    font-size: 0.9rem;
}

/* ===== Hero Section ===== */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    background: linear-gradient(135deg, var(--bg-dark) 0%, var(--primary-dark) 100%);
    overflow: hidden;
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.hero-content p {
    font-size: 1.25rem;
    color: rgba(255,255,255,0.85);
    margin-bottom: 2rem;
    line-height: 1.8;
}

/* ===== About Section ===== */
.about-image-wrapper {
    position: relative;
}

.about-image-wrapper img {
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-2xl);
}

.about-image-wrapper::before {
    content: '';
    position: absolute;
    top: -20px;
    left: -20px;
    right: 20px;
    bottom: 20px;
    border: 3px solid var(--primary-color);
    border-radius: var(--radius-2xl);
    z-index: -1;
}

/* ===== Activities/Services Grid ===== */
.activity-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-base);
}

.activity-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.activity-card .card-img-top {
    height: 200px;
    object-fit: cover;
}

.activity-card .card-body {
    padding: 1.5rem;
}

.activity-card .category-badge {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(26, 115, 232, 0.1);
    color: var(--primary-color);
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

/* ===== Gallery ===== */
.gallery-item {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    cursor: pointer;
}

.gallery-item > a {
    position: relative;
    z-index: 3;
    display: block;
}

.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 50%);
    z-index: 1;
    opacity: 0;
    transition: opacity var(--transition-base);
    pointer-events: none;
}

.gallery-item:hover::before {
    opacity: 1;
}

.gallery-item .overlay-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.5rem;
    z-index: 2;
    transform: translateY(20px);
    opacity: 0;
    transition: all var(--transition-base);
    pointer-events: none;
}

.gallery-item:hover .overlay-content {
    transform: translateY(0);
    opacity: 1;
}

/* ===== Testimonials ===== */
.testimonial-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: 2rem;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    position: relative;
}

.testimonial-card::before {
    content: '"';
    font-family: Georgia, serif;
    font-size: 6rem;
    color: var(--primary-color);
    opacity: 0.1;
    position: absolute;
    top: 0;
    left: 1rem;
    line-height: 1;
}

.testimonial-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-body);
    font-style: italic;
    margin-bottom: 1.5rem;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.testimonial-author img {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
}

.testimonial-author h6 {
    margin: 0;
    font-weight: 700;
}

.testimonial-author span {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* ===== CTA Section ===== */
.cta-section {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
}

.cta-section::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -5%;
    width: 300px;
    height: 300px;
    background: rgba(255,255,255,0.05);
    border-radius: 50%;
}

.cta-section h2 {
    color: var(--white);
}

.cta-section p {
    color: rgba(255,255,255,0.9);
}

/* ===== Alerts ===== */
.alert {
    border: none;
    border-radius: var(--radius-md);
    padding: 1rem 1.25rem;
    font-weight: 500;
}

.alert-success {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success);
}

.alert-danger {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger);
}

.alert-warning {
    background: rgba(245, 158, 11, 0.1);
    color: var(--warning);
}

.alert-info {
    background: rgba(26, 115, 232, 0.1);
    color: var(--primary-color);
}

/* ===== Badges ===== */
.badge {
    padding: 6px 12px;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 0.8rem;
}

.badge-primary {
    background: rgba(26, 115, 232, 0.15);
    color: var(--primary-color);
}

.badge-success {
    background: rgba(16, 185, 129, 0.15);
    color: var(--success);
}

/* ===== Utilities ===== */
.bg-gradient-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark)) !important;
}

.bg-gradient-light {
    background: linear-gradient(135deg, var(--bg-light), var(--bg-gray)) !important;
}

.text-primary {
    color: var(--primary-color) !important;
}

.text-gradient {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.border-primary {
    border-color: var(--primary-color) !important;
}

.rounded-xl {
    border-radius: var(--radius-xl) !important;
}

.rounded-2xl {
    border-radius: var(--radius-2xl) !important;
}

.shadow-lg {
    box-shadow: var(--shadow-lg) !important;
}

.shadow-xl {
    box-shadow: var(--shadow-xl) !important;
}

/* ===== Animations ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

.animate-fadeInUp {
    animation: fadeInUp 0.6s ease forwards;
}

.animate-float {
    animation: float 3s ease-in-out infinite;
}

.animate-pulse {
    animation: pulse 2s ease-in-out infinite;
}

/* ===== Loading Skeleton ===== */
.skeleton {
    background: linear-gradient(90deg, var(--bg-gray) 25%, var(--bg-light) 50%, var(--bg-gray) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: var(--radius-md);
}

/* ===== Scrollbar ===== */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-light);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-light);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color);
}

/* ===== Responsive ===== */
@media (max-width: 1199px) {
    h1 { font-size: 2.75rem; }
    h2 { font-size: 2rem; }
    
    .hero-content h1 {
        font-size: 3rem;
    }
}

@media (max-width: 991px) {
    .page-title {
        font-size: 2.5rem;
    }
    
    .section-title {
        font-size: 1.875rem;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .counter-number {
        font-size: 2.5rem;
    }
}

@media (max-width: 767px) {
    .page-header {
        padding: 80px 0 60px;
    }
    
    .page-title {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-content p {
        font-size: 1.1rem;
    }
    
    .btn-primary,
    .btn-secondary {
        padding: 12px 24px;
        font-size: 0.9rem;
    }
    
    .counter-number {
        font-size: 2rem;
    }
    
    footer {
        padding: 60px 0 0;
    }
}

@media (max-width: 575px) {
    .page-header {
        padding: 60px 0 40px;
    }
    
    .page-title {
        font-size: 1.75rem;
    }
    
    h2 { font-size: 1.5rem; }
    h3 { font-size: 1.25rem; }
    
    .btn-lg {
        padding: 14px 28px;
    }
    
    .card-body {
        padding: 1.25rem;
    }
}

/* ============================================================
   SITE-WIDE DARK MODE
   Applied when body has class "dark-mode"
   ============================================================ */

/* --- Global text --- */
body.dark-mode,
body.dark-mode * {
    border-color: #2c3e5a !important;
}
body.dark-mode {
    background-color: #1a1a2e !important;
    color: #e0e0e0 !important;
}
body.dark-mode h1, body.dark-mode h2, body.dark-mode h3,
body.dark-mode h4, body.dark-mode h5, body.dark-mode h6 {
    color: #f0f0f0 !important;
}
body.dark-mode p, body.dark-mode span, body.dark-mode li,
body.dark-mode td, body.dark-mode th, body.dark-mode label,
body.dark-mode div, body.dark-mode small, body.dark-mode strong,
body.dark-mode em, body.dark-mode blockquote, body.dark-mode dt,
body.dark-mode dd, body.dark-mode figcaption, body.dark-mode address {
    color: #d0d0d0 !important;
}
body.dark-mode a {
    color: #6cb4ee !important;
}
body.dark-mode a:hover {
    color: #8ec8f6 !important;
}
body.dark-mode .text-dark {
    color: #e0e0e0 !important;
}
body.dark-mode .text-muted {
    color: #9e9e9e !important;
}
body.dark-mode .text-secondary {
    color: #aaa !important;
}
body.dark-mode .text-body {
    color: #d0d0d0 !important;
}
body.dark-mode .lead {
    color: #bbb !important;
}

/* --- Sections --- */
body.dark-mode .section-title {
    color: #f0f0f0 !important;
    -webkit-text-fill-color: #f0f0f0 !important;
    background: none !important;
    -webkit-background-clip: unset !important;
    background-clip: unset !important;
}
body.dark-mode .section-subtitle {
    background: rgba(108, 180, 238, 0.15) !important;
    color: #6cb4ee !important;
}
body.dark-mode .section-subtitle::before {
    background: #6cb4ee !important;
}
body.dark-mode .section-description {
    color: #bbb !important;
}

/* --- Page headers --- */
body.dark-mode .page-header {
    background: linear-gradient(135deg, #0f1729, #16213e) !important;
}
body.dark-mode .page-header h1,
body.dark-mode .page-header .page-title {
    color: #f0f0f0 !important;
}
body.dark-mode .page-header .breadcrumb-item,
body.dark-mode .page-header .breadcrumb-item a,
body.dark-mode .page-header p {
    color: #ccc !important;
}

/* --- Backgrounds --- */
body.dark-mode section,
body.dark-mode .py-5,
body.dark-mode .py-4 {
    background-color: transparent !important;
}
body.dark-mode .bg-light {
    background-color: #111827 !important;
}
body.dark-mode .bg-white {
    background-color: #16213e !important;
}

/* --- Cards --- */
body.dark-mode .card {
    background: #16213e !important;
    border-color: #2c3e5a !important;
    color: #e0e0e0 !important;
}
body.dark-mode .card-header {
    background: #1f2b45 !important;
    border-color: #2c3e5a !important;
}
body.dark-mode .card-title {
    color: #f0f0f0 !important;
}
body.dark-mode .card-text {
    color: #ccc !important;
}
body.dark-mode .card-footer {
    background: #1a2540 !important;
    border-color: #2c3e5a !important;
}

/* --- Forms --- */
body.dark-mode .form-control,
body.dark-mode .form-select {
    background: #1f2b45 !important;
    border-color: #2c3e5a !important;
    color: #e0e0e0 !important;
}
body.dark-mode .form-control:focus,
body.dark-mode .form-select:focus {
    background: #243350 !important;
    color: #f0f0f0 !important;
    border-color: #1a73e8 !important;
}
body.dark-mode ::placeholder {
    color: #777 !important;
}
body.dark-mode .form-label {
    color: #ccc !important;
}
body.dark-mode .form-text {
    color: #888 !important;
}
body.dark-mode .form-check-label {
    color: #ccc !important;
}
body.dark-mode .input-group-text {
    background: #1f2b45 !important;
    border-color: #2c3e5a !important;
    color: #ccc !important;
}
body.dark-mode .form-section {
    background: #16213e !important;
    border-color: #2c3e5a !important;
}
body.dark-mode .form-section-title {
    color: #f0f0f0 !important;
}
body.dark-mode .form-wrapper {
    background: #16213e !important;
    border-color: #2c3e5a !important;
}

/* --- Buttons --- */
body.dark-mode .btn-primary {
    background: #1a73e8 !important;
    border-color: #1a73e8 !important;
    color: #fff !important;
}
body.dark-mode .btn-outline-primary {
    color: #6cb4ee !important;
    border-color: #6cb4ee !important;
}
body.dark-mode .btn-outline-primary:hover {
    background: #1a73e8 !important;
    color: #fff !important;
}
body.dark-mode a.btn {
    color: #fff !important;
}

/* --- Tables --- */
body.dark-mode .table {
    color: #e0e0e0 !important;
}
body.dark-mode .table thead th {
    background: #1f2b45 !important;
    border-color: #2c3e5a !important;
}
body.dark-mode .table td,
body.dark-mode .table th {
    border-color: #2c3e5a !important;
}
body.dark-mode .table-striped tbody tr:nth-of-type(odd) {
    background-color: rgba(255,255,255,0.03) !important;
}

/* --- Lists --- */
body.dark-mode .list-group-item {
    background: #1f2b45 !important;
    border-color: #2c3e5a !important;
    color: #d0d0d0 !important;
}

/* --- Alerts --- */
body.dark-mode .alert {
    border-color: #2c3e5a !important;
}
body.dark-mode .alert-info {
    background: #16213e !important;
    color: #6cb4ee !important;
}
body.dark-mode .alert-success {
    background: #0d3320 !important;
    color: #6ee7b7 !important;
}
body.dark-mode .alert-danger {
    background: #3b1111 !important;
    color: #fca5a5 !important;
}

/* --- Badges --- */
body.dark-mode .badge {
    color: #fff !important;
}

/* --- Shadows --- */
body.dark-mode .shadow,
body.dark-mode .shadow-sm,
body.dark-mode .shadow-lg {
    box-shadow: 0 2px 10px rgba(0,0,0,0.4) !important;
}

/* --- HR / dividers --- */
body.dark-mode hr {
    border-color: #2c3e5a !important;
}

/* --- Modals --- */
body.dark-mode .modal-content {
    background: #16213e !important;
    border-color: #2c3e5a !important;
}
body.dark-mode .modal-header {
    border-color: #2c3e5a !important;
}
body.dark-mode .modal-footer {
    border-color: #2c3e5a !important;
}
body.dark-mode .btn-close {
    filter: invert(1) !important;
}

/* --- Sidebar widgets (admission, etc.) --- */
body.dark-mode .sidebar-widget,
body.dark-mode .admission-sidebar .sidebar-widget {
    background: #16213e !important;
    border-color: #2c3e5a !important;
}
body.dark-mode .widget-title {
    color: #f0f0f0 !important;
}
body.dark-mode .program-item,
body.dark-mode .info-item {
    border-color: #2c3e5a !important;
}
body.dark-mode .program-info h6 {
    color: #e0e0e0 !important;
}

/* --- Accordion --- */
body.dark-mode .accordion-item {
    background: #16213e !important;
    border-color: #2c3e5a !important;
}
body.dark-mode .accordion-button {
    background: #1f2b45 !important;
    color: #e0e0e0 !important;
}
body.dark-mode .accordion-button::after {
    filter: invert(1) !important;
}
body.dark-mode .accordion-body {
    background: #16213e !important;
    color: #d0d0d0 !important;
}

/* --- Pagination --- */
body.dark-mode .page-link {
    background: #1f2b45 !important;
    border-color: #2c3e5a !important;
    color: #6cb4ee !important;
}
body.dark-mode .page-item.active .page-link {
    background: #1a73e8 !important;
    border-color: #1a73e8 !important;
    color: #fff !important;
}

/* --- Images --- */
body.dark-mode img {
    opacity: 0.92;
}

/* --- Navbar toggler (mobile) --- */
body.dark-mode .navbar-toggler-icon {
    filter: invert(1) !important;
}
