/* Bethany Bible Seminary - World-Class Design System */

/* ============================================
   FONTS
   ============================================ */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400&family=Inter:wght@300;400;500;600;700&family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;1,400&display=swap');

:root {
    /* Primary Colors */
    --bbs-deep-blue: #0f1c3f;
    --bbs-navy: #1a365d;
    --bbs-blue: #234e7a;
    --bbs-slate: #3d5a80;
    
    /* Accent Colors */
    --bbs-gold: #b8941f;
    --bbs-gold-light: #d4a843;
    --bbs-gold-bright: #c9a227;
    --bbs-gold-gradient: linear-gradient(135deg, #b8941f 0%, #d4a843 50%, #c9a227 100%);
    
    /* Neutral Colors */
    --bbs-cream: #faf8f5;
    --bbs-cream-dark: #f0ebe4;
    --bbs-ivory: #f5f2ed;
    --bbs-white: #ffffff;
    --bbs-charcoal: #2d3748;
    --bbs-gray: #4a5568;
    --bbs-gray-light: #a0aec0;
    --bbs-gray-lighter: #e2e8f0;
    
    /* Semantic Colors */
    --bbs-success: #276749;
    --bbs-warning: #b7791f;
    --bbs-error: #c53030;
    --bbs-info: #2b6cb0;
    
    /* Typography */
    --font-display: 'Playfair Display', serif;
    --font-serif: 'Cormorant Garamond', serif;
    --font-sans: 'Inter', sans-serif;
    
    /* Spacing */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;
    --space-4xl: 6rem;
    
    /* Borders */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-2xl: 24px;
    --radius-full: 9999px;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(15, 28, 63, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(15, 28, 63, 0.08), 0 2px 4px -1px rgba(15, 28, 63, 0.04);
    --shadow-lg: 0 10px 15px -3px rgba(15, 28, 63, 0.1), 0 4px 6px -2px rgba(15, 28, 63, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(15, 28, 63, 0.1), 0 10px 10px -4px rgba(15, 28, 63, 0.04);
    --shadow-2xl: 0 25px 50px -12px rgba(15, 28, 63, 0.25);
    --shadow-gold: 0 4px 14px 0 rgba(184, 148, 31, 0.3);
    
    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-base: 250ms ease;
    --transition-slow: 350ms ease;
}

/* ============================================
   RESET & BASE
   ============================================ */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    max-width: 100%;
    word-wrap: break-word;
}

img, picture, video, canvas, svg {
    max-width: 100%;
    display: block;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

html, body {
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.6;
    color: var(--bbs-charcoal);
    background: var(--bbs-cream);
    min-height: 100vh;
    overflow-x: hidden;
    max-width: 100vw;
}

/* ============================================
   TYPOGRAPHY
   ============================================ */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 600;
    line-height: 1.2;
    color: var(--bbs-deep-blue);
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    letter-spacing: -0.02em;
}

h2 {
    font-size: clamp(2rem, 4vw, 2.75rem);
    letter-spacing: -0.01em;
}

h3 {
    font-size: clamp(1.5rem, 3vw, 2rem);
}

h4 {
    font-size: 1.25rem;
}

h5 {
    font-size: 1.125rem;
}

h6 {
    font-size: 1rem;
}

p {
    margin-bottom: var(--space-md);
}

.text-serif {
    font-family: var(--font-serif);
}

.text-display {
    font-family: var(--font-display);
}

.text-gold {
    color: var(--bbs-gold);
}

.text-navy {
    color: var(--bbs-navy);
}

.text-cream {
    color: var(--bbs-cream);
}

.text-muted {
    color: var(--bbs-gray);
}

.text-sm {
    font-size: 0.875rem;
}

.text-lg {
    font-size: 1.125rem;
}

.text-xl {
    font-size: 1.25rem;
}

.font-light {
    font-weight: 300;
}

.font-medium {
    font-weight: 500;
}

.font-semibold {
    font-weight: 600;
}

.font-bold {
    font-weight: 700;
}

.uppercase {
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.italic {
    font-style: italic;
}

/* ============================================
   LINKS
   ============================================ */
a {
    color: var(--bbs-gold);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--bbs-gold-light);
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: var(--space-md) var(--space-xl);
    font-family: var(--font-sans);
    font-size: 0.9375rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-base);
    text-decoration: none;
}

.btn-primary {
    background: var(--bbs-gold-gradient);
    color: var(--bbs-deep-blue);
    box-shadow: var(--shadow-gold);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(184, 148, 31, 0.4);
    color: var(--bbs-deep-blue);
}

.btn-secondary {
    background: transparent;
    color: var(--bbs-white);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
    color: var(--bbs-white);
}

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

.btn-outline:hover {
    background: var(--bbs-navy);
    color: var(--bbs-white);
}

.btn-ghost {
    background: transparent;
    color: var(--bbs-gray);
}

.btn-ghost:hover {
    background: var(--bbs-gray-lighter);
    color: var(--bbs-deep-blue);
}

.btn-sm {
    padding: var(--space-sm) var(--space-md);
    font-size: 0.8125rem;
}

.btn-lg {
    padding: var(--space-lg) var(--space-2xl);
    font-size: 1rem;
}

/* ============================================
   FORMS
   ============================================ */
.form-group {
    margin-bottom: var(--space-lg);
}

.form-label {
    display: block;
    font-size: 0.8125rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--bbs-navy);
    margin-bottom: var(--space-sm);
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: var(--space-md) var(--space-lg);
    font-family: var(--font-sans);
    font-size: 1rem;
    color: var(--bbs-charcoal);
    background: var(--bbs-white);
    border: 2px solid var(--bbs-gray-lighter);
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--bbs-gold);
    box-shadow: 0 0 0 3px rgba(184, 148, 31, 0.15);
}

.form-input::placeholder {
    color: var(--bbs-gray-light);
}

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

/* ============================================
   CARDS
   ============================================ */
.card {
    background: var(--bbs-white);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    padding: var(--space-xl);
    transition: all var(--transition-base);
}

.card-elevated {
    box-shadow: var(--shadow-xl);
}

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

.card-bordered {
    border: 1px solid var(--bbs-gray-lighter);
}

/* ============================================
   BADGES
   ============================================ */
.badge {
    display: inline-flex;
    align-items: center;
    padding: var(--space-xs) var(--space-sm);
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    border-radius: var(--radius-full);
}

.badge-gold {
    background: rgba(184, 148, 31, 0.15);
    color: var(--bbs-gold);
}

.badge-success {
    background: rgba(39, 103, 73, 0.15);
    color: var(--bbs-success);
}

.badge-warning {
    background: rgba(183, 121, 31, 0.15);
    color: var(--bbs-warning);
}

.badge-error {
    background: rgba(197, 48, 48, 0.15);
    color: var(--bbs-error);
}

.badge-info {
    background: rgba(43, 108, 176, 0.15);
    color: var(--bbs-info);
}

/* ============================================
   PROGRESS
   ============================================ */
.progress-bar {
    width: 100%;
    height: 8px;
    background: var(--bbs-gray-lighter);
    border-radius: var(--radius-full);
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: var(--bbs-gold-gradient);
    border-radius: var(--radius-full);
    transition: width var(--transition-slow);
}

/* ============================================
   GRID SYSTEM
   ============================================ */
.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

.container-narrow {
    max-width: 640px;
}

.container-wide {
    max-width: 1440px;
}

.grid {
    display: grid;
    gap: var(--space-lg);
}

.grid-2 {
    grid-template-columns: repeat(2, 1fr);
}

.grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

.grid-4 {
    grid-template-columns: repeat(4, 1fr);
}

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

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

/* ============================================
   FLEX
   ============================================ */
.flex {
    display: flex;
}

.flex-center {
    align-items: center;
    justify-content: center;
}

.flex-between {
    justify-content: space-between;
}

.flex-col {
    flex-direction: column;
}

.flex-wrap {
    flex-wrap: wrap;
}

.gap-sm { gap: var(--space-sm); }
.gap-md { gap: var(--space-md); }
.gap-lg { gap: var(--space-lg); }
.gap-xl { gap: var(--space-xl); }

/* ============================================
   SECTIONS
   ============================================ */
.section {
    padding: var(--space-4xl) 0;
}

.section-navy {
    background: var(--bbs-deep-blue);
    color: var(--bbs-cream);
}

.section-cream {
    background: var(--bbs-cream);
}

.section-white {
    background: var(--bbs-white);
}

/* ============================================
   HERO
   ============================================ */
.hero {
    position: relative;
    min-height: 90vh;
    display: flex;
    align-items: center;
    background: var(--bbs-deep-blue);
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, 
        rgba(15, 28, 63, 0.95) 0%, 
        rgba(26, 54, 93, 0.85) 50%,
        rgba(15, 28, 63, 0.95) 100%
    );
}

.hero-pattern {
    position: absolute;
    inset: 0;
    background-image: 
        radial-gradient(circle at 25% 25%, rgba(184, 148, 31, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 75% 75%, rgba(184, 148, 31, 0.08) 0%, transparent 50%);
    opacity: 0.5;
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 800px;
}

.hero-divider {
    width: 80px;
    height: 4px;
    background: var(--bbs-gold-gradient);
    border-radius: var(--radius-full);
    margin-bottom: var(--space-xl);
}

.hero-title {
    color: var(--bbs-white);
    margin-bottom: var(--space-lg);
}

.hero-title span {
    background: linear-gradient(135deg, var(--bbs-gold) 0%, var(--bbs-gold-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: var(--space-2xl);
    max-width: 600px;
}

/* ============================================
   NAVIGATION
   ============================================ */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(15, 28, 63, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.25rem var(--space-lg);
    max-width: 1440px;
    margin: 0 auto;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    text-decoration: none;
}

.nav-logo {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.nav-logo svg {
    width: 28px;
    height: 28px;
    color: var(--bbs-deep-blue);
}

.nav-name {
    font-family: var(--font-display);
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--bbs-white);
    letter-spacing: 0.02em;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.nav-toggle span {
    width: 24px;
    height: 2px;
    background: white;
    transition: 0.3s;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: var(--space-xl);
}

.nav-link {
    font-size: 0.875rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color var(--transition-fast);
    position: relative;
}

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

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--bbs-gold);
    transition: width var(--transition-base);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

/* ============================================
   SIDEBAR
   ============================================ */
.sidebar {
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    width: 280px;
    background: var(--bbs-deep-blue);
    display: flex;
    flex-direction: column;
    z-index: 100;
}

.sidebar-header {
    padding: var(--space-xl);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.sidebar-nav {
    flex: 1;
    padding: var(--space-lg);
    overflow-y: auto;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-md) var(--space-lg);
    font-size: 0.9375rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
    margin-bottom: var(--space-xs);
}

.sidebar-link:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--bbs-white);
}

.sidebar-link.active {
    background: var(--bbs-gold);
    color: var(--bbs-deep-blue);
    font-weight: 600;
}

.sidebar-link svg {
    width: 20px;
    height: 20px;
    opacity: 0.8;
}

.sidebar-footer {
    padding: var(--space-lg);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.main-content {
    margin-left: 280px;
    min-height: 100vh;
    background: var(--bbs-cream);
}

/* ============================================
   STAT CARDS
   ============================================ */
.stat-card {
    background: var(--bbs-white);
    border-radius: var(--radius-xl);
    padding: var(--space-xl);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--bbs-gray-lighter);
    transition: all var(--transition-base);
}

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

.stat-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-md);
}

.stat-icon svg {
    width: 28px;
    height: 28px;
}

.stat-value {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--bbs-deep-blue);
    line-height: 1;
    margin-bottom: var(--space-xs);
}

.stat-label {
    font-size: 0.8125rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--bbs-gray);
}

/* ============================================
   COURSE CARDS
   ============================================ */
.course-card {
    background: var(--bbs-white);
    border-radius: var(--radius-xl);
    padding: var(--space-xl);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--bbs-gray-lighter);
    transition: all var(--transition-base);
}

.course-card:hover {
    box-shadow: var(--shadow-lg);
    border-color: var(--bbs-gold);
}

.course-code {
    display: inline-block;
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--bbs-gold);
    background: rgba(184, 148, 31, 0.1);
    padding: var(--space-xs) var(--space-sm);
    border-radius: var(--radius-sm);
    margin-bottom: var(--space-sm);
}

.course-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--bbs-deep-blue);
    margin-bottom: var(--space-sm);
}

.course-instructor {
    font-size: 0.875rem;
    color: var(--bbs-gray);
    margin-bottom: var(--space-md);
}

.course-progress {
    margin-top: var(--space-md);
}

/* ============================================
   TABLE
   ============================================ */
.table-container {
    background: var(--bbs-white);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--bbs-gray-lighter);
    overflow: hidden;
}

.table {
    width: 100%;
    border-collapse: collapse;
}

.table th,
.table td {
    padding: var(--space-lg);
    text-align: left;
}

.table th {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--bbs-gray);
    background: var(--bbs-cream);
    border-bottom: 2px solid var(--bbs-gray-lighter);
}

.table td {
    font-size: 0.9375rem;
    color: var(--bbs-charcoal);
    border-bottom: 1px solid var(--bbs-gray-lighter);
}

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

.table tr:hover td {
    background: var(--bbs-cream);
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background: var(--bbs-deep-blue);
    color: var(--bbs-cream);
    padding: var(--space-4xl) 0 var(--space-xl);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr repeat(3, 1fr);
    gap: var(--space-2xl);
    margin-bottom: var(--space-2xl);
}

.footer-brand {
    max-width: 300px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    margin-bottom: var(--space-lg);
}

.footer-desc {
    font-size: 0.9375rem;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.7;
}

.footer-title {
    font-size: 0.8125rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--bbs-gold);
    margin-bottom: var(--space-lg);
}

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

.footer-links li {
    margin-bottom: var(--space-sm);
}

.footer-links a {
    font-size: 0.9375rem;
    color: rgba(255, 255, 255, 0.6);
    transition: color var(--transition-fast);
}

.footer-links a:hover {
    color: var(--bbs-white);
}

.footer-bottom {
    padding-top: var(--space-xl);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-copyright {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.5);
}

/* ============================================
   UTILITIES
   ============================================ */
.mt-auto { margin-top: auto; }
.mb-0 { margin-bottom: 0; }
.mb-sm { margin-bottom: var(--space-sm); }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }
.mb-xl { margin-bottom: var(--space-xl); }
.mb-2xl { margin-bottom: var(--space-2xl); }

.p-0 { padding: 0; }
.p-sm { padding: var(--space-sm); }
.p-md { padding: var(--space-md); }
.p-lg { padding: var(--space-lg); }
.p-xl { padding: var(--space-xl); }

.hidden { display: none; }
.block { display: block; }

.text-center { text-align: center; }
.text-right { text-align: right; }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
    .sidebar {
        transform: translateX(-100%);
    }
    
    .main-content {
        margin-left: 0;
    }
    
    .mobile-menu {
        display: block;
    }
}

/* ============================================
   GALLERY STYLES
    ============================================ */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    aspect-ratio: 1 / 1;
    background: #eee;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-4px);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

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

.gallery-overlay {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 1.5rem;
    background: linear-gradient(to top, rgba(15, 28, 63, 0.9), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.gallery-overlay h4 {
    color: white;
    font-family: var(--font-display);
    font-size: 1.1rem;
    margin: 0 0 0.25rem;
}

.gallery-overlay p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.85rem;
    margin: 0;
}

/* Lightbox */
.gallery-lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.9);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
}

.gallery-lightbox.active {
    display: flex;
}

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

.gallery-lightbox-content img {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 8px;
}

.gallery-lightbox-info {
    text-align: center;
    color: white;
    padding: 1rem;
}

.gallery-lightbox-info h3 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    margin: 0 0 0.5rem;
    color: white;
}

.gallery-lightbox-info p {
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
}

.gallery-lightbox-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.15);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    line-height: 1;
}

.gallery-lightbox-close:hover {
    background: rgba(255, 255, 255, 0.25);
}

.gallery-lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.15);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    line-height: 1;
}

.gallery-lightbox-nav:hover {
    background: rgba(255, 255, 255, 0.25);
}

.gallery-lightbox-prev { left: 1rem; }
.gallery-lightbox-next { right: 1rem; }

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

@media (max-width: 600px) {
    .gallery-grid {
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
    }
    
    .gallery-item {
        aspect-ratio: 4/3;
    }
}

@media (max-width: 480px) {
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .gallery-item {
        aspect-ratio: 4/3;
    }
}

@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }
    
    .nav-menu {
        display: flex;
        position: fixed;
        top: 60px;
        left: 0;
        right: 0;
        background: rgba(15, 28, 63, 0.98);
        flex-direction: column;
        padding: 1rem;
        gap: 0;
        transform: translateY(-120%);
        transition: transform 0.3s ease;
        z-index: 999;
    }
    
    .nav-menu.active {
        transform: translateY(0);
    }
    
    .nav-menu .nav-link {
        padding: 0.75rem 0;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }
    
    .mobile-actions {
        display: flex;
        gap: 0.5rem;
        margin-top: 1rem;
        padding-top: 1rem;
        border-top: 1px solid rgba(255,255,255,0.2);
    }
    
    .mobile-actions .btn {
        flex: 1;
        text-align: center;
        padding: 0.5rem;
    }

.nav-actions .btn,
.mobile-actions .btn {
    padding: 0.35rem 1rem;
    font-size: 0.8125rem;
}

.image-grid img {
    width: 100%;
    object-fit: cover;
    border-radius: var(--radius-md);
}

.image-grid .card {
    padding: 0.5rem;
}
    
    .nav-actions {
        display: none;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .hero {
        min-height: 80vh;
    }
}
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .hero {
        min-height: 80vh;
    }
    
    .section {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .grid, .grid-2, .grid-3, .grid-4 {
        margin-left: 0;
        margin-right: 0;
    }
    
    .card {
        padding: 1rem;
    }
}

@media (max-width: 480px) {
    html, body {
        width: 100%;
        max-width: 100vw;
        overflow-x: hidden;
    }
    
    .container {
        padding: 0 1rem;
        max-width: 100%;
    }
    
    .btn {
        padding: 0.75rem 1.25rem;
        font-size: 0.875rem;
    }
    
    .section {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
        overflow-x: hidden;
    }
    
    .footer {
        padding: 3rem 1rem 1.5rem;
    }
    
    .footer-grid {
        padding: 0;
    }
}
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .hero {
        min-height: 80vh;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 var(--space-md);
        max-width: 100vw;
    }
    
    .btn {
        padding: var(--space-md) var(--space-lg);
    }
    
    .section {
        padding-left: 0;
        padding-right: 0;
    }
    
    * {
        max-width: 100vw;
        overflow-x: hidden;
    }
}