/* --- Imports: Google Fonts --- */
/* Cinzel Decorative (Gothic/Stone vibe) & Philosopher (Calligraphic flow) */
@import url('https://fonts.googleapis.com/css2?family=Cinzel+Decorative:wght@400;700&family=Philosopher:ital,wght@0,400;0,700;1,400&display=swap');

/* --- CSS Variables & Reset --- */
:root {
    --color-bg-body: #1a241a;
    --color-bg-parchment: #f0ece2;
    --color-text-dark: #2b3a29;
    --color-text-light: #e0e8e0;
    --color-accent: #6b8e65; 
    
    /* Updated Fonts */
    --font-heading: 'Cinzel Decorative', cursive;
    --font-body: 'Philosopher', sans-serif;
    
    --container-width: 1100px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--color-bg-body);
    color: var(--color-text-dark);
    font-family: var(--font-body);
    line-height: 1.7;
    font-size: 18px; /* Slightly larger for the intricate font */
}

/* --- Typography --- */
h1, h2, h3 {
    font-family: var(--font-heading);
    color: var(--color-text-dark);
    font-weight: 700;
}

h1.page-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: var(--color-bg-parchment);
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

p {
    margin-bottom: 1.5rem;
}

/* Images */
img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 4px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    cursor: pointer; /* Indicates clickable */
    transition: transform 0.3s ease;
}

img:hover {
    transform: scale(1.02); /* Subtle zoom on hover */
}

/* --- Layout Containers --- */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* --- Navigation --- */
header {
    background-color: rgba(18, 28, 18, 0.98);
    padding: 1rem 0;
    border-bottom: 3px solid var(--color-accent);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 4px 10px rgba(0,0,0,0.5);
}

nav ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
}

nav li a {
    text-decoration: none;
    color: var(--color-text-light);
    font-family: var(--font-heading);
    text-transform: uppercase;
    font-size: 1.1rem;
    letter-spacing: 1px;
    padding: 0.5rem;
    transition: all 0.3s ease;
    border-bottom: 2px solid transparent;
}

nav li a:hover, nav li a.active {
    color: var(--color-accent);
    border-bottom-color: var(--color-accent);
}

/* --- Page Structure --- */
main {
    padding: 3rem 0;
}

/* --- Content Box (The blurred background container) --- */
.content-box {
    position: relative;
    /* We remove the parchment background-color here */
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    border: 1px solid rgba(255, 255, 255, 0.2); /* Subtle glass border */
    
    /* Change text to light for readability against dark background */
    color: var(--color-text-light); 
    overflow: hidden; /* Clips the blurred edges */
    z-index: 1; 
}

/* This creates the blurred image layer BEHIND the text */
.content-box::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1; /* Pushes this layer behind the text */
    
    /* Magic trick: Inherits the image set in the HTML style attribute */
    background-image: inherit; 
    background-size: cover;
    background-position: center;
    
    /* The Visual Effect: Blur + Darken */
    filter: blur(12px) brightness(0.3); 
    transform: scale(1.1); /* Zooms in slightly to hide blurry edges */
}

/* Ensure Headings inside the box are light/white */
.content-box h3, 
.content-box h1, 
.content-box strong {
    color: #fff; /* Pure white for contrast */
    text-shadow: 0 2px 5px rgba(0,0,0,0.8); /* Shadow for readability */
}

/* Make the grid look good on top of the blur */
.two-col-grid {
    display: grid;
    gap: 3rem; /* Increased gap for elegance */
    align-items: center;
    grid-template-columns: 1fr;
}

/* Grid layout */
.two-col-grid {
    display: grid;
    gap: 2rem;
    align-items: center;
    grid-template-columns: 1fr; /* Default to mobile (1 column) */
}

/* --- Hero Section --- */
.hero-section {
    position: relative;
    height: 80vh;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-bg-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
    filter: brightness(0.6);
}

.hero-content {
    text-align: center;
    color: var(--color-text-light);
    max-width: 90%;
    width: 800px;
    padding: 2rem;
    background: rgba(0,0,0,0.6); 
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.2);
    backdrop-filter: blur(3px);
}

.hero-content h2 {
    font-size: 2.5rem; 
    color: var(--color-text-light);
    margin-bottom: 1.5rem;
}

.hero-content p {
    font-size: 1.2rem;
}

/* --- Footer --- */
footer {
    text-align: center;
    padding: 2rem 0;
    color: var(--color-accent);
    font-family: var(--font-heading);
    margin-top: 3rem;
    border-top: 1px solid rgba(255,255,255,0.1);
}

/* --- LIGHTBOX (Popup) STYLES --- */
#lightbox-modal {
    display: none; /* Hidden by default */
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.9);
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

#lightbox-modal.show {
    display: flex;
    opacity: 1;
}

#lightbox-img {
    max-width: 90%;
    max-height: 90vh;
    box-shadow: 0 0 20px rgba(255,255,255,0.2);
    border: 2px solid var(--color-text-light);
}

#lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    font-family: sans-serif;
}

/* --- Media Queries (Desktop/Tablet) --- */
@media (min-width: 768px) {
    .two-col-grid {
        grid-template-columns: 1fr 1fr; /* Switch to 2 columns */
    }
    
    .content-box {
        padding: 3rem;
    }

    .hero-content h2 {
        font-size: 3.5rem;
    }
}