/* ==========================================================================
   Satyameva Jayathe Foundation Charitable Trust
   Unified Design System & Global Stylesheet
   ========================================================================== */

:root {
    /* Color Palette */
    --primary: #1e3a8a;        /* Royal Sapphire Blue */
    --primary-dark: #0f172a;   /* Midnight Slate */
    --primary-light: #eff6ff;  /* Ice Blue Tint */
    --primary-accent: #2563eb; /* Electric Blue */
    
    --secondary: #ea580c;      /* Vibrant Warm Orange */
    --secondary-hover: #c2410c;/* Deep Amber Orange */
    --secondary-light: #fff7ed;/* Warm Peach Tint */
    
    --accent-teal: #0d9488;    /* Emerald Teal */
    --accent-green: #16a34a;   /* Ecosystem Green */
    
    --text-dark: #0f172a;      /* Slate 900 */
    --text-muted: #475569;     /* Slate 600 */
    --text-light: #94a3b8;     /* Slate 400 */
    --text-white: #ffffff;
    
    --bg-main: #f8fafc;        /* Off-white canvas */
    --surface-card: #ffffff;
    --surface-glass: rgba(255, 255, 255, 0.88);
    --footer-bg: #0b132b;      /* Deep Space Navy */
    
    /* Shadows */
    --shadow-sm: 0 4px 6px -1px rgba(0,0,0,0.05), 0 2px 4px -2px rgba(0,0,0,0.03);
    --shadow-md: 0 12px 28px -6px rgba(15, 23, 42, 0.08), 0 8px 10px -6px rgba(0, 0, 0, 0.04);
    --shadow-lg: 0 25px 40px -12px rgba(30, 58, 138, 0.18), 0 12px 20px -8px rgba(234, 88, 12, 0.12);
    --shadow-glow: 0 0 30px rgba(234, 88, 12, 0.3);
    
    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-full: 9999px;
    
    /* Transitions */
    --transition-fast: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Reset & Base */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-muted);
    background-color: var(--bg-main);
    line-height: 1.75;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

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

ul {
    list-style: none;
}

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    color: var(--primary-dark);
    font-weight: 700;
    line-height: 1.25;
}

h1 {
    font-size: 3.2rem;
    letter-spacing: -1px;
}

h2 {
    font-size: 2.4rem;
    letter-spacing: -0.5px;
    margin-bottom: 1.5rem;
    position: relative;
}

.section-title-center {
    text-align: center;
    margin-bottom: 3.5rem;
}

.section-title-center::after {
    content: '';
    display: block;
    width: 80px;
    height: 5px;
    background: linear-gradient(90deg, var(--primary-accent), var(--secondary));
    border-radius: 5px;
    margin: 16px auto 0;
    transition: var(--transition);
}

.section-title-center:hover::after {
    width: 130px;
}

.gradient-text {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.badge-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--primary-light);
    color: var(--primary);
    padding: 6px 16px;
    border-radius: var(--radius-full);
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 1rem;
}

.badge-tag-orange {
    background: var(--secondary-light);
    color: var(--secondary);
}

/* Layout Containers */
.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

.section-padding {
    padding: 5rem 0;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 32px;
    border-radius: var(--radius-full);
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    border: none;
    transition: var(--transition);
    text-align: center;
}

.btn-primary {
    background: linear-gradient(135deg, var(--secondary), #f97316);
    color: var(--text-white) !important;
    box-shadow: 0 8px 24px rgba(234, 88, 12, 0.35);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--secondary-hover), var(--secondary));
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(234, 88, 12, 0.5);
}

.btn-secondary {
    background: var(--primary);
    color: var(--text-white) !important;
    box-shadow: 0 8px 24px rgba(30, 58, 138, 0.25);
}

.btn-secondary:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(30, 58, 138, 0.4);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: var(--text-white);
    transform: translateY(-3px);
}

a.btn-outline-white,
a.btn-outline-white:link,
a.btn-outline-white:visited,
.btn-outline-white,
.btn-outline-light {
    border: 2px solid #ffffff !important;
    color: #ffffff !important;
    background: transparent !important;
}

a.btn-outline-white:hover,
a.btn-outline-white:focus,
a.btn-outline-white:active,
.btn-outline-white:hover {
    background: #ffffff !important;
    color: var(--primary-dark) !important;
    border-color: #ffffff !important;
    transform: translateY(-3px);
}

/* Navbar & Header */
#scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-accent), var(--secondary), var(--accent-teal));
    z-index: 1100;
    width: 0%;
    transition: width 0.1s ease-out;
}

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(226, 232, 240, 0.8);
    z-index: 1000;
    transition: var(--transition);
    height: 76px;
    display: flex;
    align-items: center;
}

.site-header.scrolled {
    height: 68px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
}

.header-container {
    width: 100%;
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 32px;
}

.nav-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    position: relative;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 14px;
    font-family: 'Plus Jakarta Sans', sans-serif;
    text-decoration: none;
    white-space: nowrap;
    flex-shrink: 0;
}

.nav-brand img {
    height: 48px;
    width: 48px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--secondary);
    box-shadow: 0 4px 12px rgba(30, 58, 138, 0.15);
    transition: transform 0.3s ease;
}

.nav-brand:hover img {
    transform: scale(1.05);
}

.nav-brand-text {
    display: flex;
    flex-direction: column;
    white-space: nowrap;
}

.nav-brand-title {
    line-height: 1.1;
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--primary-dark);
    letter-spacing: -0.3px;
}

.nav-brand-sub {
    font-size: 0.66rem;
    color: var(--secondary);
    font-weight: 700;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    margin-top: 2px;
}

/* Nav Menu Links & Dropdowns */
.nav-menu {
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav-item {
    position: relative;
}

.nav-link {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--text-dark);
    padding: 8px 12px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 5px;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    white-space: nowrap;
    transition: all 0.25s ease;
}

.nav-link:hover, .nav-link.active {
    color: var(--secondary);
    background: rgba(234, 88, 12, 0.08);
}

.nav-link i.fa-chevron-down {
    font-size: 0.68rem;
    opacity: 0.7;
    transition: transform 0.25s ease;
}

.nav-item:hover .nav-link i.fa-chevron-down {
    transform: rotate(180deg);
}

/* Mega / Sub Dropdown */
.dropdown-menu {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    min-width: 250px;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: 16px;
    box-shadow: 0 20px 45px -10px rgba(15, 23, 42, 0.16), 0 0 0 1px rgba(226, 232, 240, 0.9);
    padding: 8px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(8px);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 1050;
}

.dropdown-menu::before {
    content: '';
    position: absolute;
    top: -14px;
    left: 0;
    width: 100%;
    height: 14px;
    background: transparent;
}

.nav-item:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
}

.dropdown-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 9px 16px;
    border-radius: 8px;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-dark);
    transition: all 0.2s ease;
}

.dropdown-item:hover {
    background: var(--primary-light);
    color: var(--secondary);
    transform: translateX(4px);
}

.dropdown-item.active {
    color: var(--secondary);
    font-weight: 700;
    background: var(--secondary-light);
}

/* Mobile Menu Toggle */
.mobile-toggle {
    display: none;
    background: transparent;
    border: none;
    font-size: 1.6rem;
    color: var(--primary-dark);
    cursor: pointer;
    padding: 6px;
}

/* Mobile Nav Drawer */
.mobile-drawer {
    position: fixed;
    top: 0;
    right: -100%;
    width: 320px;
    max-width: 85vw;
    height: 100vh;
    background: var(--surface-card);
    box-shadow: -10px 0 30px rgba(0,0,0,0.15);
    z-index: 1200;
    padding: 24px;
    overflow-y: auto;
    transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.mobile-drawer.open {
    right: 0;
}

.mobile-drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid #e2e8f0;
}

.mobile-drawer-close {
    background: transparent;
    border: none;
    font-size: 1.5rem;
    color: var(--text-dark);
    cursor: pointer;
}

.mobile-nav-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.mobile-accordion-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-weight: 700;
    padding: 10px 0;
    color: var(--primary-dark);
    cursor: pointer;
}

.mobile-sub-list {
    display: none;
    padding-left: 16px;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 10px;
}

.mobile-sub-list.open {
    display: flex;
}

.mobile-sub-list a {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(15, 23, 42, 0.5);
    backdrop-filter: blur(4px);
    z-index: 1150;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.drawer-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Breadcrumb Header */
.page-hero {
    background: linear-gradient(135deg, rgba(11, 19, 43, 0.94), rgba(30, 58, 138, 0.88)),
                url('../Homepage Gallery/WhatsApp Image 2026-08-09 at 12.07.25 PM.jpeg') center/cover no-repeat;
    padding: 130px 0 60px;
    color: var(--text-white);
    text-align: center;
    position: relative;
}

.page-hero h1 {
    color: var(--text-white);
    font-size: 3.2rem;
    margin-bottom: 12px;
}

.page-hero p {
    font-size: 1.15rem;
    max-width: 750px;
    margin: 0 auto 20px;
    color: rgba(255, 255, 255, 0.9);
}

.breadcrumbs {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.75);
}

.breadcrumbs a {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
}

.breadcrumbs a:hover {
    color: var(--secondary);
}

/* Hero Section (Homepage) */
.hero-home {
    min-height: 90vh;
    background: linear-gradient(135deg, rgba(11, 19, 43, 0.93), rgba(30, 58, 138, 0.85)),
                url('../Homepage Gallery/WhatsApp Image 2026-08-09 at 12.07.25 PM.jpeg') center/cover no-repeat fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--text-white);
    padding: 130px 20px 70px;
    position: relative;
    overflow: hidden;
    width: 100%;
}

.hero-content {
    max-width: 950px;
    width: 100%;
    position: relative;
    z-index: 2;
    margin: 0 auto;
}

.hero-home h1 {
    font-size: clamp(2.2rem, 5vw, 4.2rem);
    color: var(--text-white);
    margin-bottom: 20px;
    font-weight: 800;
    line-height: 1.15;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.hero-home p.lead {
    font-size: clamp(1rem, 2vw, 1.35rem);
    margin-bottom: 35px;
    color: rgba(255, 255, 255, 0.92);
}

.hero-btn-group {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 45px;
    width: 100%;
}

.hero-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    max-width: 1000px;
    width: 100%;
    margin: 0 auto;
}

.hero-stat-card {
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 20px 14px;
    border-radius: var(--radius-md);
    text-align: center;
}

.hero-stat-card h3 {
    color: var(--text-white);
    font-size: 2rem;
    font-weight: 800;
}

.hero-stat-card p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.85rem;
    margin: 0;
}

/* Cards & Grids */
.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.grid-2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: 40px;
}

.card {
    background: var(--surface-card);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(226, 232, 240, 0.8);
    overflow: hidden;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-md);
    border-color: rgba(37, 99, 235, 0.3);
}

.card-img {
    height: 240px;
    width: 100%;
    object-fit: cover;
}

.card-body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.card-title {
    font-size: 1.35rem;
    margin-bottom: 12px;
}

.card-text {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 20px;
    flex-grow: 1;
}

/* Person / Profile Cards */
.profile-card {
    background: var(--surface-card);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(226, 232, 240, 0.8);
    overflow: hidden;
    transition: var(--transition);
    text-align: center;
    padding: 30px 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.profile-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
    border-color: var(--secondary);
}

.profile-img-wrap {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    overflow: hidden;
    margin-bottom: 20px;
    border: 4px solid var(--primary-light);
    box-shadow: var(--shadow-sm);
    background: var(--bg-main);
}

.profile-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
}

.profile-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 4px;
}

.profile-role {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
}

.profile-qual {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 500;
    margin-bottom: 14px;
}

.profile-bio {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* Gallery Grid */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.gallery-item {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    aspect-ratio: 4 / 3;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.gallery-item:hover img {
    transform: scale(1.08);
}

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(11, 19, 43, 0.85), transparent);
    display: flex;
    align-items: flex-end;
    padding: 20px;
    opacity: 0;
    transition: var(--transition);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-caption {
    color: var(--text-white);
    font-weight: 600;
    font-size: 0.95rem;
}

/* Lightbox Modal */
.lightbox-modal {
    position: fixed;
    inset: 0;
    background: rgba(11, 19, 43, 0.95);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.lightbox-modal.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-content {
    max-width: 90vw;
    max-height: 85vh;
    border-radius: var(--radius-md);
    overflow: hidden;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 85vh;
    object-fit: contain;
}

.lightbox-close {
    position: absolute;
    top: 24px;
    right: 30px;
    color: var(--text-white);
    font-size: 2.2rem;
    cursor: pointer;
    background: none;
    border: none;
}

/* Footer */
.site-footer {
    background: var(--footer-bg);
    color: rgba(255, 255, 255, 0.8);
    padding: 70px 0 30px;
    margin-top: auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
    margin-bottom: 50px;
}

.footer-brand h3 {
    color: var(--text-white);
    font-size: 1.5rem;
    margin-bottom: 14px;
}

.footer-brand p {
    font-size: 0.92rem;
    margin-bottom: 20px;
    line-height: 1.7;
}

.footer-col h4 {
    color: var(--text-white);
    font-size: 1.1rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 8px;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 35px;
    height: 3px;
    background: var(--secondary);
    border-radius: 2px;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links a {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.75);
}

.footer-links a:hover {
    color: var(--secondary);
    padding-left: 6px;
}

.social-links {
    display: flex;
    gap: 14px;
}

.social-icon {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-white);
    font-size: 1.1rem;
    transition: var(--transition);
}

.social-icon:hover {
    background: var(--secondary);
    transform: translateY(-4px);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 24px;
    text-align: center;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
}

.mobile-toggle {
    display: none;
    background: var(--primary-light);
    border: 1px solid rgba(30, 58, 138, 0.15);
    border-radius: 12px;
    width: 44px;
    height: 44px;
    font-size: 1.3rem;
    color: var(--primary-dark);
    cursor: pointer;
    transition: var(--transition-fast);
}

.mobile-toggle:hover {
    background: var(--secondary-light);
    color: var(--secondary);
}

/* Animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive Media Queries */
@media (max-width: 1200px) {
    .header-container {
        padding: 0 20px;
    }

    .nav-menu {
        display: none;
    }
    
    .mobile-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .hero-home h1 {
        font-size: 3.2rem;
    }
}

@media (max-width: 768px) {
    .hero-home {
        padding: 110px 16px 40px;
        min-height: auto;
    }

    .hero-content {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        padding: 0;
    }

    .hero-home h1 {
        font-size: 1.85rem;
        line-height: 1.25;
        margin-bottom: 14px;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    .hero-home p.lead {
        font-size: 0.95rem;
        line-height: 1.5;
        margin-bottom: 24px;
        padding: 0 4px;
    }

    .hero-btn-group {
        flex-direction: column;
        align-items: center;
        width: 100%;
        gap: 12px;
        margin-bottom: 32px;
    }

    .hero-btn-group .btn {
        width: 100%;
        max-width: 320px;
        padding: 12px 20px;
        font-size: 0.9rem;
        box-sizing: border-box;
        justify-content: center;
    }

    .hero-stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        width: 100%;
        box-sizing: border-box;
    }

    .hero-stat-card {
        padding: 14px 10px;
    }

    .hero-stat-card h3 {
        font-size: 1.35rem;
        margin-bottom: 2px;
    }

    .hero-stat-card p {
        font-size: 0.75rem;
        line-height: 1.2;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .section-padding {
        padding: 3rem 0;
    }

    .grid-2, .grid-3, .grid-4 {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero-home {
        padding: 100px 12px 35px;
    }

    .hero-home h1 {
        font-size: 1.6rem;
        line-height: 1.25;
    }

    .hero-home h1 br {
        display: none;
    }

    .hero-home p.lead {
        font-size: 0.88rem;
    }

    .hero-btn-group .btn {
        max-width: 100%;
    }

    .hero-stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .hero-stat-card {
        padding: 10px 6px;
    }

    .hero-stat-card h3 {
        font-size: 1.2rem;
    }

    .hero-stat-card p {
        font-size: 0.72rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }
}

/* Interactive Homepage Image Slider */
.slider-section {
    position: relative;
    width: 100%;
}

.homepage-slider-container {
    position: relative;
    width: 100%;
    height: 520px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    background: var(--primary-dark);
}

.slider-track {
    position: relative;
    width: 100%;
    height: 100%;
}

.slide-item {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s ease-in-out, transform 0.8s ease-in-out;
    transform: scale(1.03);
}

.slide-item.active {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
}

.slide-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: pointer;
}

.slide-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 40px 32px 32px;
    background: linear-gradient(to top, rgba(11, 19, 43, 0.94), rgba(11, 19, 43, 0.5), transparent);
    color: var(--text-white);
}

.slide-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(234, 88, 12, 0.9);
    color: white;
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.slide-caption h3 {
    color: white;
    font-size: 1.6rem;
    font-weight: 800;
    margin-bottom: 4px;
}

.slide-caption p {
    color: rgba(255, 255, 255, 0.88);
    font-size: 0.95rem;
    margin: 0;
}

.slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: var(--transition-fast);
}

.slider-nav:hover {
    background: var(--secondary);
    border-color: var(--secondary);
    transform: translateY(-50%) scale(1.1);
}

.slider-prev { left: 20px; }
.slider-next { right: 20px; }

.slider-dots {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.slider-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: all 0.3s ease;
}

.slider-dot.active {
    width: 28px;
    border-radius: 10px;
    background: var(--secondary);
}

@media (max-width: 768px) {
    .homepage-slider-container {
        height: 360px;
    }
    .slide-caption {
        padding: 24px 18px 18px;
    }
    .slide-caption h3 {
        font-size: 1.2rem;
    }
    .slide-caption p {
        font-size: 0.82rem;
    }
    .slider-nav {
        width: 36px;
        height: 36px;
        font-size: 0.95rem;
    }
    .slider-prev { left: 10px; }
    .slider-next { right: 10px; }
    .slider-dots { left: 50%; transform: translateX(-50%); bottom: 12px; }
}
