:root {
    --bg-page: #D4C1EC;         /* Soft Lavender as the Main Page Background */
    --surface: #FEF9FF;         /* Lily White for cards, nav, and container surfaces */
    --light: #F2DFD7;           /* Warm Linen Cream for callout/contact banners */
    --primary: #736CED;         /* Vibrant Periwinkle for CTAs, links & active states */
    --primary-hover: #5D56DB;   /* Deeper Periwinkle for button hovers */
    --dark: #360568;            /* Deep Midnight Purple for headings, logo & footer */
    --text: #240A42;            /* Deep Midnight Charcoal for high-contrast body text */
    --text-muted: #7785AC;      /* Slate Blue for secondary captions, borders & accents */
    --border: rgba(119, 133, 172, 0.35); /* Slate Blue subtle border */
}

* { 
    box-sizing: border-box; 
    margin: 0; 
    padding: 0; 
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; 
}

body { 
    background-color: var(--bg-page);
    line-height: 1.6; 
    color: var(--text); 
    display: flex; 
    flex-direction: column; 
    min-height: 100vh; 
}

/* --- Global Layout Structures --- */
.container { 
    max-width: 1100px; 
    margin: 2rem auto; 
    padding: 0 1.5rem; 
    flex: 1; 
}

footer { 
    background: var(--dark); 
    color: var(--surface); 
    text-align: center; 
    padding: 1.25rem 1rem; 
    font-size: 0.875rem; 
    margin-top: 2rem; 
}

/* --- Shared Navigation Structure --- */
nav { 
    background: var(--surface); 
    box-shadow: 0 2px 10px rgba(54, 5, 104, 0.08); 
    border-bottom: 1px solid var(--border);
    background: var(--dark); 
    box-shadow: 0 4px 14px rgba(54, 5, 104, 0.25); 
    border-bottom: 1px solid rgba(212, 193, 236, 0.25);
    padding: 0.75rem 2rem; 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
}

/* Branding Header Logo */
.logo { 
    font-weight: 700; 
    font-size: 1.25rem; 
    color: var(--dark); 
    color: var(--surface); 
    text-decoration: none; 
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    transition: color 0.2s ease;
}

.logo:hover {
    color: var(--primary);
    color: var(--bg-page);
}

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

.nav-links a { 
    text-decoration: none; 
    color: var(--dark); 
    color: var(--surface); 
    margin-left: 1.5rem; 
    font-weight: 600; 
    transition: color 0.2s ease; 
}

.nav-links a:hover, .nav-links a.active { 
    color: var(--primary); 
    color: var(--bg-page); 
}

/* --- Dropdown Navigation Submenu --- */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 1.5rem;
    background-color: var(--surface);
    background-color: var(--dark);
    min-width: 150px;
    box-shadow: 0 6px 18px rgba(54, 5, 104, 0.14);
    border: 1px solid var(--border);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(212, 193, 236, 0.3);
    border-radius: 8px;
    padding: 0.5rem 0;
    z-index: 500;
}

.dropdown-menu a {
    display: block;
    padding: 0.5rem 1rem;
    margin: 0 !important;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--dark);
    color: var(--surface);
    transition: background-color 0.2s ease, color 0.2s ease;
}

.dropdown-menu a:hover {
    background-color: rgba(212, 193, 236, 0.45);
    color: var(--dark);
    background-color: rgba(115, 108, 237, 0.4);
    color: var(--surface);
}

.dropdown:hover .dropdown-menu,
.dropdown.open .dropdown-menu {
    display: block;
}


/* --- Home Page (Hero / Intro / Content Blocks) --- */
.hero { 
    max-width: 800px; 
    margin: 3.5rem auto; 
    padding: 0 2rem; 
    text-align: center; 
}

.hero h1 { 
    font-size: 2.5rem; 
    margin-bottom: 3rem; 
    color: var(--dark); 
}

.hero p { 
    font-size: 1.125rem; 
    color: var(--text); 
}

.content-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
    margin-bottom: 3.5rem;
    text-align: center;
}

.content-images {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 1.25rem;
    max-width: 620px;
}

.content-thumb {
    width: 280px;
    height: auto;
    max-width: 100%;
    display: block;
    object-fit: contain;
    border-radius: 10px;
    background: var(--surface);
    border: 1px solid var(--border);
    box-shadow: 0 4px 12px rgba(54, 5, 104, 0.08);
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.content-thumb:hover {
    transform: scale(1.04);
    border-color: var(--primary);
    box-shadow: 0 8px 24px rgba(115, 108, 237, 0.25);
}

.content-block p {
    max-width: 680px;
    font-size: 1.125rem;
    font-weight: 500;
    color: var(--text);
    margin: 0 auto;
    line-height: 1.6;
}

/* --- Contact Block Component --- */
.contact { 
    background: var(--light); 
    border-top: 1px solid var(--border);
    padding: 3.5rem 2rem; 
    text-align: center; 
    margin-top: auto; 
}

.contact h2 { 
    color: var(--dark);
    margin-bottom: 1.25rem; 
}

.btn { 
    display: inline-block; 
    background: var(--primary); 
    color: var(--surface); 
    text-decoration: none; 
    padding: 0.85rem 1.75rem; 
    border-radius: 8px; 
    font-weight: 600; 
    box-shadow: 0 4px 14px rgba(115, 108, 237, 0.35);
    transition: background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease; 
}

.btn:hover { 
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(115, 108, 237, 0.45);
}

/* --- Covers Page Formatting Layouts --- */
.main-intro {
    max-width: 800px;
    margin: 2rem auto 4rem auto;
    text-align: center;
    background: var(--surface);
    border: 1px solid var(--border);
    padding: 2.5rem 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(54, 5, 104, 0.06);
}

.main-intro h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--dark);
}

.main-intro p {
    font-size: 1.15rem;
    line-height: 1.7;
    color: var(--text);
    font-weight: 500;
}

.covers-hero-override {
    margin-bottom: 2rem;
}

.covers-p-override {
    text-align: center;
}

.tier-section {
    padding: 3rem 0;
    border-bottom: 1px solid var(--border);
}

.tier-section:last-of-type {
    border-bottom: none;
}

.tier-header {
    max-width: 800px;
    margin: 0 auto 2rem auto;
    text-align: center;
}

.tier-header h2 {
    font-size: 2rem;
    color: var(--dark);
    margin-bottom: 0.75rem;
}

.tier-header p {
    color: var(--text);
    font-size: 1.05rem;
    font-weight: 500;
}

/* --- Multi-Column Gallery Photo Grid --- */
.grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); 
    gap: 1.5rem; 
}

.grid-item { 
    position: relative; 
    aspect-ratio: 3/2; 
    overflow: hidden; 
    border-radius: 10px; 
    background: var(--surface);
    border: 1px solid var(--border);
    cursor: pointer; 
    box-shadow: 0 4px 12px rgba(54, 5, 104, 0.08); 
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.grid-item img { 
    width: 100%; 
    height: 100%; 
    object-fit: contain; 
    transition: transform 0.3s ease; 
}

.grid-item:hover { 
    transform: translateY(-3px);
    border-color: var(--primary);
    box-shadow: 0 8px 22px rgba(115, 108, 237, 0.25);
}

.grid-item:hover img { 
    transform: scale(1.05); 
}

/* --- Lightbox Modal Configs --- */
.modal { 
    display: none; 
    position: fixed; 
    z-index: 1000; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%; 
    background: rgba(54, 5, 104, 0.94); 
    backdrop-filter: blur(4px);
    justify-content: center; 
    align-items: center; 
}

.modal-content-wrapper { 
    position: relative; 
    max-width: 85%; 
    max-height: 80%; 
    display: flex; 
    justify-content: center; 
    align-items: center; 
}

.modal-img { 
    max-width: 100%; 
    max-height: 80vh; 
    object-fit: contain; 
    border-radius: 8px; 
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.close { 
    position: absolute; 
    top: -45px; 
    right: 0; 
    color: white; 
    font-size: 2.25rem; 
    cursor: pointer; 
    background: none; 
    border: none; 
    transition: color 0.2s ease;
}

.close:hover {
    color: var(--bg-page);
}

.nav-btn { 
    position: fixed; 
    top: 50%; 
    transform: translateY(-50%); 
    color: white; 
    background: rgba(115, 108, 237, 0.5); 
    border: 1px solid rgba(254, 249, 255, 0.3);
    padding: 1rem; 
    font-size: 2rem; 
    cursor: pointer; 
    border-radius: 50%; 
    width: 60px; 
    height: 60px; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    user-select: none; 
    transition: background 0.2s ease, transform 0.2s ease; 
}

.nav-btn:hover { 
    background: var(--primary); 
    transform: translateY(-50%) scale(1.1);
}

.prev { left: 24px; }
.next { right: 24px; }

/* --- Mobile / Tablet Breakdown Queries --- */
@media (max-width: 768px) {
    nav {
        padding: 0.75rem 1rem;
    }
    .nav-links a {
        margin-left: 1rem;
    }
}

@media (max-width: 600px) {
    .content-block {
        gap: 1rem;
        margin-bottom: 2.5rem;
    }
    .content-images {
        gap: 1rem;
    }
    .content-thumb {
        width: 100%;
        max-width: 260px;
        height: auto;
        max-height: 220px;
    }
    .hero p {
        text-align: center;
    }
    .prev { left: 10px; }
    .next { right: 10px; }
    .nav-btn {
        width: 48px;
        height: 48px;
        font-size: 1.5rem;
    }
}
