/* 
   Arts & Commerce College, Patansaongi
   Unified CSS Stylesheet (Design System, Layouts, and Components)
*/

/* ==========================================================================
   1. CSS Variables & Design Tokens
   ========================================================================== */
:root {
    /* Colors */
    --primary-dark: #0f172a;       /* Slate 900 */
    --primary-blue: #1e3a8a;       /* Blue 900 - Brand Primary */
    --primary-blue-light: #2563eb; /* Blue 600 - Hover/Active */
    --accent-red: #b91c1c;         /* Red 700 - Logo Crimson */
    --accent-red-hover: #991b1b;   /* Red 800 */
    --accent-gold: #d97706;        /* Amber 600 - Warm Gold */
    --bg-light: #ffffff;           /* Pure White */
    --bg-alt: #f8fafc;             /* Slate 50 - Section Background */
    --bg-card: #ffffff;
    --text-main: #334155;          /* Slate 700 - Body Text */
    --text-dark: #1e293b;          /* Slate 800 - Headings */
    --text-light: #64748b;         /* Slate 500 - Captions/Muted */
    --border-color: #e2e8f0;       /* Slate 200 */
    --white: #ffffff;
    
    /* Fonts */
    --font-heading: 'Playfair Display', Georgia, serif;
    --font-body: 'Inter', system-ui, -apple-system, sans-serif;
    
    /* 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 -2px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.1);
    
    /* Borders & Spacing */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-full: 9999px;
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Navigation height */
    --nav-height: 80px;
}

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

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

body {
    font-family: var(--font-body);
    background-color: var(--bg-light);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--text-dark);
    font-weight: 700;
    line-height: 1.25;
    margin-bottom: 0.75rem;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; border-bottom: 2px solid var(--border-color); padding-bottom: 0.5rem; margin-bottom: 1.5rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

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

a:hover {
    color: var(--primary-blue-light);
}

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

button {
    font-family: var(--font-body);
    cursor: pointer;
}

/* ==========================================================================
   3. Common Layout & Utility Classes
   ========================================================================== */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section {
    padding: 5rem 0;
}

.section-alt {
    background-color: var(--bg-alt);
    padding: 5rem 0;
}

.text-center { text-align: center; }
.text-right { text-align: right; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.mb-5 { margin-bottom: 3rem; }

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }

@media (max-width: 992px) {
    .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
    .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
    h1 { font-size: 2rem; }
    h2 { font-size: 1.6rem; }
    .section, .section-alt { padding: 3rem 0; }
}

/* Flex utilities */
.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.flex-column { display: flex; flex-direction: column; }
.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    transition: all var(--transition-normal);
    border: none;
    font-size: 0.95rem;
}

.btn-primary {
    background-color: var(--primary-blue);
    color: var(--white);
}

.btn-primary:hover {
    background-color: var(--primary-blue-light);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-accent {
    background-color: var(--accent-red);
    color: var(--white);
}

.btn-accent:hover {
    background-color: var(--accent-red-hover);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

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

.btn-outline:hover {
    background-color: var(--primary-blue);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* ==========================================================================
   4. Shared Header Component
   ========================================================================== */
/* Top Utility Bar */
.top-bar {
    background-color: var(--primary-dark);
    color: var(--white);
    font-size: 0.85rem;
    padding: 0.5rem 0;
    font-weight: 500;
}

.top-bar a {
    color: rgba(255,255,255,0.85);
    margin-right: 1.5rem;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.top-bar a:hover {
    color: var(--white);
}

/* Logo Banner */
.logo-banner {
    background-color: var(--white);
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-color);
}

.logo-banner-content {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.logo-img {
    width: 90px;
    height: 90px;
    object-fit: contain;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-trust {
    font-size: 0.85rem;
    font-style: italic;
    color: var(--text-light);
    margin-bottom: 0.1rem;
}

.logo-title {
    font-family: var(--font-body);
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--accent-red);
    line-height: 1.15;
}

.logo-subtitle {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-dark);
}

.logo-affiliation {
    font-size: 0.85rem;
    color: var(--accent-gold);
    font-weight: 500;
}

@media (max-width: 768px) {
    .logo-banner-content {
        flex-direction: column;
        text-align: center;
        gap: 0.75rem;
    }
    .logo-img {
        width: 80px;
        height: 80px;
    }
    .logo-title { font-size: 1.4rem; }
    .logo-subtitle { font-size: 0.95rem; }
}

/* Navigation Bar */
.main-nav {
    background-color: var(--primary-blue);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow-md);
    transition: background-color var(--transition-normal);
}

.main-nav.scrolled {
    background-color: rgba(30, 58, 138, 0.95);
    backdrop-filter: blur(10px);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.nav-menu {
    display: flex;
    list-style: none;
    width: 100%;
}

.nav-item {
    position: relative;
}

.nav-link {
    color: rgba(255, 255, 255, 0.9);
    padding: 1.25rem 0.9rem;
    display: block;
    font-weight: 500;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    transition: all var(--transition-fast);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0.9rem;
    right: 0.9rem;
    height: 3px;
    background-color: var(--accent-gold);
    transform: scaleX(0);
    transition: transform var(--transition-fast);
}

.nav-link:hover {
    color: var(--white);
}

.nav-link:hover::after,
.nav-item.active .nav-link::after {
    transform: scaleX(1);
}

.nav-item.active .nav-link {
    color: var(--white);
    font-weight: 700;
}

/* Hamburger Menu Toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 110;
}

.menu-toggle span {
    width: 100%;
    height: 3px;
    background-color: var(--white);
    border-radius: var(--radius-sm);
    transition: all var(--transition-normal);
}

@media (max-width: 1024px) {
    .menu-toggle {
        display: flex;
        margin: 1rem 0;
    }
    .nav-container {
        justify-content: flex-end;
    }
    .nav-menu {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: -1.5rem;
        right: -1.5rem;
        background-color: var(--primary-blue);
        border-top: 1px solid rgba(255,255,255,0.1);
        box-shadow: var(--shadow-lg);
        width: calc(100% + 3rem);
    }
    .nav-menu.open {
        display: flex;
    }
    .nav-link {
        padding: 1rem 2rem;
        border-bottom: 1px solid rgba(255,255,255,0.05);
    }
    .nav-link::after {
        display: none;
    }
    .nav-item.active {
        background-color: rgba(255,255,255,0.1);
    }
    
    /* Hamburger Menu Animation when active */
    .menu-toggle.open span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    .menu-toggle.open span:nth-child(2) {
        opacity: 0;
    }
    .menu-toggle.open span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -8px);
    }
}

/* ==========================================================================
   5. Shared Footer Component
   ========================================================================== */
.footer {
    background-color: var(--primary-dark);
    color: rgba(255, 255, 255, 0.8);
    padding: 4rem 0 1.5rem;
    font-size: 0.9rem;
    border-top: 4px solid var(--accent-gold);
}

.footer h3 {
    color: var(--white);
    font-family: var(--font-body);
    font-size: 1.15rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 2px;
    background-color: var(--accent-gold);
}

.footer-logo-desc {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-logo-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--white);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.75);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: color var(--transition-fast), transform var(--transition-fast);
}

.footer-links a:hover {
    color: var(--white);
    transform: translateX(4px);
}

.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.footer-contact i {
    color: var(--accent-gold);
    margin-top: 0.25rem;
    font-size: 1rem;
}

.footer-bottom {
    margin-top: 3rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.55);
}

/* ==========================================================================
   6. Home Page Component Styles
   ========================================================================== */
/* Hero Section */
.hero {
    position: relative;
    background-color: var(--primary-dark);
    color: var(--white);
    overflow: hidden;
    padding: 6rem 0;
    min-height: 480px;
    display: flex;
    align-items: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.9) 0%, rgba(30, 58, 138, 0.8) 100%);
    z-index: 1;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    opacity: 0.3;
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 750px;
}

.hero-tagline {
    color: var(--accent-gold);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.95rem;
    margin-bottom: 1rem;
    display: inline-block;
}

.hero-title {
    font-size: 3.2rem;
    color: var(--white);
    line-height: 1.15;
    margin-bottom: 1.5rem;
}

.hero-desc {
    font-size: 1.15rem;
    color: rgba(255,255,255,0.85);
    margin-bottom: 2rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

@media (max-width: 768px) {
    .hero-title { font-size: 2.2rem; }
    .hero-desc { font-size: 1rem; }
    .hero { min-height: auto; padding: 4rem 0; }
}

/* Latest News Ticker */
.ticker-section {
    background-color: var(--accent-red);
    color: var(--white);
    padding: 0.6rem 0;
    font-weight: 600;
    box-shadow: var(--shadow-sm);
    z-index: 5;
    position: relative;
}

.ticker-container {
    display: flex;
    align-items: center;
}

.ticker-label {
    background-color: var(--accent-gold);
    padding: 0.3rem 1rem;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-right: 1.5rem;
    flex-shrink: 0;
    box-shadow: var(--shadow-sm);
}

.ticker-wrap {
    flex-grow: 1;
    overflow: hidden;
    white-space: nowrap;
    position: relative;
}

.ticker-track {
    display: inline-block;
    padding-left: 100%;
    animation: ticker 25s linear infinite;
    font-size: 0.95rem;
}

.ticker-track:hover {
    animation-play-state: paused;
}

.ticker-item {
    display: inline-block;
    padding-right: 3rem;
    color: var(--white);
}

.ticker-item a {
    color: #fef08a; /* Yellow-100 */
    text-decoration: underline;
}

@keyframes ticker {
    0% {
        transform: translate3d(0, 0, 0);
    }
    100% {
        transform: translate3d(-100%, 0, 0);
    }
}

/* Quick Features Info Grid */
.features-grid {
    margin-top: -3rem;
    position: relative;
    z-index: 10;
}

.feature-card {
    background-color: var(--bg-card);
    padding: 2.2rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    border-top: 4px solid var(--primary-blue);
    transition: all var(--transition-normal);
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.feature-card:nth-child(2) {
    border-top-color: var(--accent-red);
}
.feature-card:nth-child(3) {
    border-top-color: var(--accent-gold);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.feature-icon {
    font-size: 2.5rem;
    color: var(--primary-blue);
    line-height: 1;
}
.feature-card:nth-child(2) .feature-icon { color: var(--accent-red); }
.feature-card:nth-child(3) .feature-icon { color: var(--accent-gold); }

.feature-card h3 {
    margin-bottom: 0.2rem;
    font-family: var(--font-body);
    font-weight: 700;
}

.feature-card p {
    font-size: 0.95rem;
    color: var(--text-light);
}

.feature-link {
    font-weight: 600;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin-top: auto;
}

@media (max-width: 768px) {
    .features-grid {
        margin-top: 2rem;
    }
}

/* Welcome Segment */
.welcome-layout {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 4rem;
    align-items: center;
}

.welcome-text p {
    margin-bottom: 1.25rem;
    font-size: 1.05rem;
}

.welcome-img-wrapper {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.welcome-img-wrapper::after {
    content: '';
    position: absolute;
    inset: 0;
    border: 8px solid rgba(255, 255, 255, 0.25);
    pointer-events: none;
}

.welcome-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-normal);
}

.welcome-img-wrapper:hover .welcome-img {
    transform: scale(1.05);
}

@media (max-width: 992px) {
    .welcome-layout {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
}

/* Quick Stats Section */
.stats-section {
    background-color: var(--primary-blue);
    color: var(--white);
    padding: 4rem 0;
    position: relative;
}

.stats-card {
    text-align: center;
    padding: 1.5rem;
}

.stats-number {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--accent-gold);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stats-label {
    font-size: 1rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: rgba(255,255,255,0.85);
}

/* Course Categories section */
.course-card {
    background-color: var(--bg-card);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-normal);
    border: 1px solid var(--border-color);
}

.course-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-blue);
}

.course-info {
    padding: 2rem;
}

.course-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    background-color: rgba(30,58,138,0.1);
    color: var(--primary-blue);
    border-radius: var(--radius-full);
    margin-bottom: 1rem;
}

.course-card:nth-child(2) .course-badge {
    background-color: rgba(185,28,28,0.1);
    color: var(--accent-red);
}

.course-info h3 {
    margin-bottom: 0.75rem;
    font-family: var(--font-body);
}

.course-info p {
    font-size: 0.95rem;
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

.course-features {
    list-style: none;
    margin-bottom: 1.5rem;
}

.course-features li {
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-main);
}

.course-features i {
    color: var(--accent-gold);
    font-size: 0.8rem;
}

/* ==========================================================================
   7. Page Header / Banner
   ========================================================================== */
.page-header {
    background-color: var(--primary-dark);
    color: var(--white);
    padding: 4rem 0;
    position: relative;
    overflow: hidden;
}

.page-header-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.95) 0%, rgba(30, 58, 138, 0.85) 100%);
    z-index: 1;
}

.page-header-content {
    position: relative;
    z-index: 2;
}

.page-header h1 {
    color: var(--white);
    margin-bottom: 0.5rem;
    border: none;
    padding-bottom: 0;
    font-size: 2.5rem;
}

.breadcrumbs {
    display: flex;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
}

.breadcrumbs a {
    color: var(--accent-gold);
}

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

/* ==========================================================================
   8. About & Principal Desk Styles
   ========================================================================== */
.about-layout {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 3.5rem;
}

.about-sidebar {
    background-color: var(--bg-alt);
    padding: 2rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
}

.about-sidebar h3 {
    font-family: var(--font-body);
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid var(--primary-blue);
    padding-bottom: 0.5rem;
}

.about-sidebar-list {
    list-style: none;
}

.about-sidebar-list li {
    margin-bottom: 0.75rem;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    padding-bottom: 0.5rem;
}

.about-sidebar-list a {
    color: var(--text-dark);
    font-weight: 500;
    font-size: 0.95rem;
}

.about-sidebar-list a:hover {
    color: var(--primary-blue);
}

@media (max-width: 992px) {
    .about-layout {
        grid-template-columns: 1fr;
    }
}

/* Card Designs */
.info-card {
    background-color: var(--bg-card);
    padding: 2.2rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    border-left: 4px solid var(--primary-blue);
    margin-bottom: 2rem;
}

.info-card.accent-red { border-left-color: var(--accent-red); }
.info-card.accent-gold { border-left-color: var(--accent-gold); }

.info-card h3 {
    margin-bottom: 1rem;
    font-family: var(--font-body);
}

/* Principal Profile */
.principal-layout {
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 3.5rem;
    align-items: flex-start;
}

.principal-card {
    background-color: var(--bg-card);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
    text-align: center;
    padding-bottom: 1.5rem;
}

.principal-photo-wrapper {
    background-color: var(--bg-alt);
    padding: 1.5rem;
    display: flex;
    justify-content: center;
}

.principal-photo {
    width: 250px;
    height: 250px;
    object-fit: cover;
    border-radius: 50%;
    border: 6px solid var(--white);
    box-shadow: var(--shadow-md);
}

.principal-info {
    margin-top: 1rem;
}

.principal-name {
    font-family: var(--font-body);
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--text-dark);
}

.principal-title {
    font-size: 0.95rem;
    color: var(--accent-red);
    font-weight: 600;
}

.principal-msg {
    font-size: 1.05rem;
    line-height: 1.7;
}

.principal-msg p {
    margin-bottom: 1.5rem;
}

@media (max-width: 768px) {
    .principal-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .principal-card {
        max-width: 380px;
        margin: 0 auto;
    }
}

/* ==========================================================================
   9. Document & Table Styles (NAAC, IQAC, DVV, RTI)
   ========================================================================== */
.table-responsive {
    width: 100%;
    overflow-x: auto;
    margin-bottom: 2rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

.doc-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 0.95rem;
}

.doc-table th {
    background-color: var(--primary-blue);
    color: var(--white);
    font-weight: 600;
    padding: 1rem;
    font-family: var(--font-body);
}

.doc-table td {
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-main);
}

.doc-table tr:last-child td {
    border-bottom: none;
}

.doc-table tr:nth-child(even) {
    background-color: var(--bg-alt);
}

.doc-table tr:hover {
    background-color: rgba(30,58,138,0.03);
}

.btn-download {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background-color: rgba(185, 28, 28, 0.1);
    color: var(--accent-red);
    padding: 0.4rem 0.8rem;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: 600;
    transition: all var(--transition-fast);
}

.btn-download:hover {
    background-color: var(--accent-red);
    color: var(--white);
}

.alert-info-box {
    background-color: #eff6ff; /* Lighter Blue */
    border-left: 4px solid var(--primary-blue-light);
    padding: 1.5rem;
    border-radius: var(--radius-md);
    margin-bottom: 2rem;
    color: #1e40af;
}

.alert-info-box h4 {
    color: #1e3a8a;
    font-family: var(--font-body);
    font-weight: 700;
    margin-bottom: 0.5rem;
}

/* ==========================================================================
   10. Gallery Styles
   ========================================================================== */
.gallery-filter {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.filter-btn {
    background-color: var(--bg-alt);
    border: 1px solid var(--border-color);
    padding: 0.5rem 1.25rem;
    border-radius: var(--radius-full);
    font-weight: 500;
    color: var(--text-main);
    transition: all var(--transition-fast);
}

.filter-btn:hover, .filter-btn.active {
    background-color: var(--primary-blue);
    border-color: var(--primary-blue);
    color: var(--white);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
}

.gallery-item {
    background-color: var(--bg-card);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    cursor: pointer;
    transition: all var(--transition-normal);
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.gallery-img-container {
    position: relative;
    aspect-ratio: 3/2;
    overflow: hidden;
    background-color: #000;
}

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

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

.gallery-overlay-icon {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    color: var(--white);
    font-size: 2rem;
    background-color: rgba(0,0,0,0.3);
    transition: opacity var(--transition-normal);
}

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

.gallery-info {
    padding: 1.25rem;
}

.gallery-info h4 {
    margin-bottom: 0.25rem;
    font-family: var(--font-body);
    font-size: 1.05rem;
    font-weight: 700;
}

.gallery-info p {
    font-size: 0.85rem;
    color: var(--text-light);
}

/* Lightbox Modal */
.lightbox {
    position: fixed;
    inset: 0;
    background-color: rgba(15, 23, 42, 0.95);
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.lightbox.open {
    display: flex;
    opacity: 1;
}

.lightbox-content {
    max-width: 90%;
    max-height: 80%;
    position: relative;
}

.lightbox-img {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-xl);
}

.lightbox-caption {
    color: var(--white);
    text-align: center;
    margin-top: 1rem;
    font-size: 1.1rem;
}

.lightbox-close {
    position: absolute;
    top: -40px;
    right: 0;
    color: var(--white);
    font-size: 2rem;
    background: transparent;
    border: none;
    cursor: pointer;
}

.lightbox-prev, .lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: var(--white);
    background: rgba(255,255,255,0.1);
    border: none;
    padding: 1rem;
    cursor: pointer;
    font-size: 1.5rem;
    border-radius: 50%;
    transition: background var(--transition-fast);
}

.lightbox-prev:hover, .lightbox-next:hover {
    background: rgba(255,255,255,0.25);
}

.lightbox-prev { left: -80px; }
.lightbox-next { right: -80px; }

@media (max-width: 768px) {
    .lightbox-prev { left: 10px; }
    .lightbox-next { right: 10px; }
    .lightbox-close { top: 10px; right: 10px; }
}

/* ==========================================================================
   11. Contact & Library Pages
   ========================================================================== */
.contact-layout {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 4rem;
}

.contact-info-panel {
    background-color: var(--bg-alt);
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-detail-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.contact-detail-icon {
    font-size: 1.5rem;
    color: var(--accent-red);
}

.contact-detail-content h4 {
    font-family: var(--font-body);
    font-size: 1.05rem;
    margin-bottom: 0.25rem;
    font-weight: 700;
}

.contact-form-panel {
    background-color: var(--bg-card);
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--text-main);
    transition: all var(--transition-fast);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

textarea.form-control {
    resize: vertical;
    min-height: 150px;
}

.form-error {
    color: var(--accent-red);
    font-size: 0.8rem;
    margin-top: 0.25rem;
    display: none;
}

.form-success-msg {
    display: none;
    background-color: #d1fae5; /* Green 100 */
    border: 1px solid #10b981;
    color: #065f46;
    padding: 1.5rem;
    border-radius: var(--radius-md);
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.map-wrapper {
    width: 100%;
    height: 380px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
}

@media (max-width: 992px) {
    .contact-layout {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
}

/* E-Library Grid */
.lib-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.lib-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    transition: all var(--transition-normal);
    display: flex;
    flex-direction: column;
}

.lib-card:hover {
    border-color: var(--primary-blue-light);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.lib-card h3 {
    font-family: var(--font-body);
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.lib-card p {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 1.25rem;
}

.lib-link {
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin-top: auto;
}

/* ==========================================================================
   12. FontAwesome Icon Replacement Helper
   ========================================================================== */
/* We will use FontAwesome icons in pages, but for fallback we define some inline styling rules */
i {
    display: inline-block;
    font-style: normal;
}

/* ==========================================================================
   13. Animations & Transition Effects
   ========================================================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }
