:root {
    --primary-navy: #1B2A4A;
    --accent-gold: #C5A059;
    --soft-bg: #F8F9FA;
    --text-dark: #2B2D42;
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    color: var(--text-dark);
    scroll-behavior: smooth;
}

h1, h2, h3, .serif-font {
    font-family: 'Merriweather', serif;
}

/* Navbar Styling */
.navbar {
    background-color: var(--primary-navy);
}
.navbar-brand, .nav-link {
    color: #fff !important;
}
.nav-link:hover {
    color: var(--accent-gold) !important;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--primary-navy) 0%, #0F172A 100%);
    color: white;
    padding: 100px 0 80px;
}
.hero-badge {
    background-color: rgba(197, 160, 89, 0.2);
    color: var(--accent-gold);
    border: 1px solid var(--accent-gold);
}

/* Section Styling */
.section-title {
    position: relative;
    margin-bottom: 2.5rem;
}
.section-title::after {
    content: '';
    width: 50px;
    height: 3px;
    background-color: var(--accent-gold);
    position: absolute;
    bottom: -10px;
    left: 0;
}
.section-title.text-center::after {
    left: 50%;
    transform: translateX(-50%);
}

/* Book Cards */
.book-card {
    border: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background-color: #fff;
}
.book-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.book-modal-content {
    background: linear-gradient(180deg, #FDF9F2 0%, #F5F0E8 100%);
    border: none;
}
.book-modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 5;
    width: 2rem;
    height: 2rem;
    background: rgba(27, 42, 74, 0.08);
    border-radius: 999px;
}
.book-modal-body {
    position: relative;
}
.book-viewer {
    background: radial-gradient(circle at top left, rgba(255,255,255,0.7), rgba(249, 241, 227, 0.92));
    border-radius: 30px;
    padding: 1rem;
    min-height: 420px;
    box-shadow: inset 0 0 0 1px rgba(27, 42, 74, 0.06), 0 16px 40px rgba(27, 42, 74, 0.12);
}
.pdf-reader {
    background: #fffdf6;
    border-radius: 24px;
    overflow: hidden;
    height: 100%;
    min-height: 360px;
    display: grid;
}
.book-pdf-frame {
    width: 100%;
    height: 100%;
    border: 0;
    background: #fff;
}
.page-controls .btn {
    min-width: 100px;
}
.book-note {
    font-size: 0.95rem;
}
@media (max-width: 991.98px) {
    .book-viewer {
        min-height: 320px;
    }
}

/* Gallery Section */
.gallery-scroll {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    padding-bottom: 0.5rem;
    scroll-snap-type: x proximity;
}
.gallery-scroll::-webkit-scrollbar {
    height: 8px;
}
.gallery-scroll::-webkit-scrollbar-thumb {
    background: var(--accent-gold);
    border-radius: 999px;
}
.gallery-card {
    min-width: 260px;
    max-width: 260px;
    background: #fff;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 10px 24px rgba(27, 42, 74, 0.08);
    border: 1px solid rgba(197, 160, 89, 0.15);
    scroll-snap-align: start;
    flex-shrink: 0;
}
.gallery-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
}
.gallery-preview-trigger {
    cursor: zoom-in;
    transition: transform 0.25s ease, opacity 0.25s ease;
}
.gallery-preview-trigger:hover,
.gallery-preview-trigger:focus {
    opacity: 0.9;
    transform: scale(1.02);
    outline: none;
}
.gallery-preview-modal .modal-content {
    position: relative;
    background: transparent;
    border: 0;
}
.gallery-preview-image {
    width: 100%;
    max-height: 88vh;
    object-fit: contain;
    border-radius: 12px;
    background: #111;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
}
.gallery-preview-close {
    position: absolute;
    top: -2.5rem;
    right: 0;
    z-index: 2;
}
.gallery-card-body {
    padding: 1rem 1.1rem 1.15rem;
}
.gallery-card-body h5 {
    color: var(--primary-navy);
}

/* Stats Section */
.stats-grid {
    margin-top: 0.5rem;
}
.stats-card {
    background: linear-gradient(135deg, var(--primary-navy), #233a5b);
    color: #fff;
    border-radius: 18px;
    padding: 1.5rem 1rem;
    box-shadow: 0 10px 25px rgba(27, 42, 74, 0.12);
}
.stats-number {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 0.3rem;
    color: var(--accent-gold);
}
.stats-label {
    font-size: 1rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.9);
}

/* Timeline Styling */
.timeline {
    border-left: 3px solid var(--accent-gold);
    padding-left: 20px;
    margin-left: 10px;
}
.timeline-item {
    position: relative;
    margin-bottom: 2rem;
}
.timeline-item::before {
    content: '';
    width: 12px;
    height: 12px;
    background: var(--primary-navy);
    border: 3px solid var(--accent-gold);
    border-radius: 50%;
    position: absolute;
    left: -28px;
    top: 5px;
}

/* Media Highlights */
.media-video-card {
    position: relative;
    min-height: 420px;
    border-radius: 24px;
    overflow: hidden;
    background: linear-gradient(135deg, var(--primary-navy), #2f456d);
    box-shadow: 0 16px 35px rgba(27, 42, 74, 0.15);
}
.media-video-player {
    width: 100%;
    height: 100%;
    min-height: 420px;
    object-fit: cover;
    display: block;
    background: #000;
}
.media-video-overlay {
    position: absolute;
    left: 1.5rem;
    right: 1.5rem;
    bottom: 1.5rem;
    background: rgba(255,255,255,0.92);
    border-radius: 16px;
    padding: 1.2rem 1.3rem;
    color: var(--text-dark);
}
.media-content-card {
    background: #fff;
    border-radius: 20px;
    padding: 1.5rem;
    box-shadow: 0 10px 24px rgba(27, 42, 74, 0.08);
    border: 1px solid rgba(197, 160, 89, 0.15);
}
.media-list {
    display: grid;
    gap: 0.9rem;
}
.media-list-item {
    padding: 0.9rem 1rem;
    border-left: 3px solid var(--accent-gold);
    background: var(--soft-bg);
    border-radius: 10px;
}

/* Contact Footer */
footer {
    background-color: var(--primary-navy);
    color: #fff;
}
