/* ==========================================================================
   ALL INDIA ASSOCIATION FOR DIFFERENTLY ABLED (AIADA)
   Official Institutional Stylesheet (Multi-Page & Fully Interactive)
   ========================================================================== */

/* 1. CSS VARIABLES & PALETTE */
:root {
    --color-navy-950: #020617;
    --color-navy-900: #0f172a;
    --color-navy-800: #1e293b;
    --color-navy-700: #334155;
    
    --color-brandblue-700: #0369a1;
    --color-brandblue-600: #0284c7;
    --color-brandblue-500: #0ea5e9;
    --color-brandblue-100: #e0f2fe;
    --color-brandblue-50: #f0f9ff;
    
    --color-gold-800: #92400e;
    --color-gold-700: #b45309;
    --color-gold-600: #d97706;
    --color-gold-500: #f59e0b;
    --color-gold-100: #fef3c7;
    
    --color-slate-900: #0f172a;
    --color-slate-800: #1e293b;
    --color-slate-700: #334155;
    --color-slate-600: #475569;
    --color-slate-500: #64748b;
    --color-slate-300: #cbd5e1;
    --color-slate-200: #e2e8f0;
    --color-slate-100: #f1f5f9;
    --color-slate-50: #f8fafc;
    
    --font-sans: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-serif: 'Lora', Georgia, Cambria, "Times New Roman", Times, serif;
    --font-display: 'Cinzel', Georgia, "Times New Roman", serif;
    
    --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(15, 23, 42, 0.15), 0 10px 10px -5px rgba(15, 23, 42, 0.04);
}

/* 2. BASE & RESET */
*, *::before, *::after {
    box-sizing: border-box;
}

html, body {
    max-width: 100%;
    overflow-x: hidden;
}

html {
    scroll-behavior: smooth;
    font-size: 100%;
}

body {
    margin: 0;
    padding: 0;
    background-color: var(--color-slate-50);
    color: var(--color-slate-800);
    font-family: var(--font-sans);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    -webkit-font-smoothing: antialiased;
}

/* 3. ACCESSIBILITY & HIGH CONTRAST MODE */
*:focus-visible {
    outline: 3px solid var(--color-gold-700) !important;
    outline-offset: 3px !important;
    border-radius: 2px;
}

html.high-contrast,
html.high-contrast body,
html.high-contrast main,
html.high-contrast section,
html.high-contrast div,
html.high-contrast header,
html.high-contrast aside,
html.high-contrast footer,
html.high-contrast details,
html.high-contrast summary,
html.high-contrast nav,
html.high-contrast article,
html.high-contrast form {
    background-color: #000000 !important;
    background: #000000 !important;
    color: #ffffff !important;
    border-color: #ffff00 !important;
    box-shadow: none !important;
    text-shadow: none !important;
}

html.high-contrast a,
html.high-contrast button,
html.high-contrast input,
html.high-contrast textarea,
html.high-contrast select,
html.high-contrast .nav-link {
    background-color: #000000 !important;
    color: #ffff00 !important;
    border: 2px solid #ffff00 !important;
    text-decoration: underline !important;
    font-weight: 700 !important;
}

html.high-contrast img {
    filter: grayscale(100%) contrast(150%) !important;
}

/* Skip Navigation Link */
.skip-link {
    position: absolute;
    top: -100px;
    left: 1rem;
    background: var(--color-gold-600);
    color: #ffffff;
    padding: 0.75rem 1.25rem;
    z-index: 9999;
    font-weight: 700;
    font-size: 0.875rem;
    border-radius: 0 0 0.375rem 0.375rem;
    transition: top 0.2s ease;
    text-decoration: none;
    box-shadow: var(--shadow-md);
}

.skip-link:focus {
    top: 0;
}

/* 4. NAVIGATION & ACTIVE STATES */
.nav-link {
    position: relative;
    transition: all 0.2s ease;
}

.nav-link.active-page {
    color: var(--color-brandblue-600) !important;
    font-weight: 800 !important;
    background-color: var(--color-slate-100);
}

.nav-link.active-page::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 3px;
    background-color: var(--color-brandblue-600);
    border-radius: 2px 2px 0 0;
}

/* 5. HERO & GRADIENTS */
.hero-gradient {
    background: linear-gradient(135deg, #020617 0%, #0f172a 50%, #1e293b 100%);
    position: relative;
    overflow: hidden;
}

.hero-gradient::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(2, 132, 199, 0.15) 1px, transparent 1px);
    background-size: 24px 24px;
    pointer-events: none;
}

/* 6. INSTITUTIONAL CARDS & INTERACTIVE DISABILITY GALLERY */
.official-card {
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), 
                border-color 0.25s ease, 
                box-shadow 0.25s ease;
}

.official-card:hover {
    transform: translateY(-3px);
    border-color: var(--color-brandblue-600);
    box-shadow: var(--shadow-lg);
}

.clickable-image-card {
    cursor: pointer;
    position: relative;
    overflow: hidden;
    border-radius: 0.5rem;
    border: 1px solid var(--color-slate-300);
    background-color: var(--color-navy-900);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.clickable-image-card img {
    width: 100%;
    height: 15rem;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.clickable-image-card:hover img {
    transform: scale(1.08);
}

.clickable-image-card .zoom-badge {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    background: rgba(15, 23, 42, 0.85);
    color: #f59e0b;
    padding: 0.35rem 0.65rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.35rem;
    backdrop-filter: blur(4px);
    border: 1px solid rgba(245, 158, 11, 0.3);
    z-index: 10;
    transition: background 0.2s ease;
}

.clickable-image-card:hover .zoom-badge {
    background: #0284c7;
    color: #ffffff;
    border-color: #0284c7;
}

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(2, 6, 23, 0.95) 0%, rgba(2, 6, 23, 0.35) 60%, transparent 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1.25rem;
    color: #ffffff;
}

/* 7. STAT COUNTERS */
.stat-card {
    background: #ffffff;
    border: 1px solid var(--color-slate-200);
    border-top: 4px solid var(--color-brandblue-600);
    padding: 1.5rem 1rem;
    border-radius: 0.5rem;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* 8. ACCORDIONS */
details summary .chevron {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

details[open] summary .chevron {
    transform: rotate(180deg);
}

details[open] summary {
    border-bottom: 2px solid var(--color-brandblue-600);
}

details summary::-webkit-details-marker {
    display: none;
}

/* 9. SEARCH MATCH HIGHLIGHTING */
.highlight-match {
    background-color: var(--color-gold-100) !important;
    border-color: var(--color-gold-700) !important;
    color: var(--color-gold-800) !important;
    font-weight: 700 !important;
    box-shadow: 0 0 0 2px var(--color-gold-500) !important;
}

/* 10. FORM INPUTS */
.form-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--color-slate-300);
    border-radius: 0.375rem;
    font-size: 0.875rem;
    color: var(--color-slate-800);
    background-color: #ffffff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-input:focus {
    outline: none;
    border-color: var(--color-brandblue-600);
    box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15);
}

/* 11. LIGHTBOX & MODAL OVERLAY */
.modal-overlay {
    position: fixed;
    inset: 0;
    background-color: rgba(2, 6, 23, 0.85);
    backdrop-filter: blur(6px);
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-content {
    background-color: #ffffff;
    border-radius: 0.5rem;
    max-width: 42rem;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    padding: 1.5rem;
    box-shadow: var(--shadow-xl);
    transform: scale(0.95);
    transition: transform 0.25s ease;
}

.modal-overlay.active .modal-content {
    transform: scale(1);
}

.lightbox-img-container {
    max-height: 60vh;
    overflow: hidden;
    border-radius: 0.375rem;
    background: #000000;
}

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

/* 12. PRINT MEDIA STYLES */
@media print {
    aside, header, footer, .accessibility-bar, .no-print, button {
        display: none !important;
    }
    body {
        background: #ffffff !important;
        color: #000000 !important;
    }
}