/* --- 1. CORE VARIABLES & RESET --- */
:root {
    --bg-color: #FDFBF7;
    --text-dark: #2B2826;
    --text-light: #6C6661;
    --accent-pink: #F4A394;
    --accent-dark: #d66d5d;
    --card-bg: #FFFFFF;
}

body {
    margin: 0;
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-dark);
    display: flex;
    min-height: 100vh;
    overflow-x: hidden;
}

/* --- 2. SIDEBAR (ANCHORED LEFT) --- */
.hero-panel {
    width: 300px;
    background-color: var(--accent-pink);
    display: flex;
    flex-direction: column;
    position: sticky;
    top: 0;
    height: 100vh;
    z-index: 10;
    flex-shrink: 0;
}

.hero-content {
    padding: 3rem 2rem;
    z-index: 2;
}

h1 {
    font-size: 3.5rem;
    line-height: 0.9;
    margin: 0 0 0.5rem 0;
    font-weight: 800;
    letter-spacing: -1px;
}

.hero-content p {
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 3rem;
    opacity: 0.8;
}

.nav-link {
    display: block;
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 1rem;
    opacity: 0.6;
    transition: all 0.2s ease;
}

.nav-link:hover { opacity: 1; transform: translateX(5px); }
.nav-link.active { opacity: 1; border-left: 3px solid var(--text-dark); padding-left: 10px; }

.portrait {
    width: 100%;
    flex: 1;
    min-height: 0;
    object-fit: contain; 
    object-position: bottom center;
    margin-bottom: 30px; 
    display: block;
    z-index: 1;
    filter: drop-shadow(0px 10px 20px rgba(0,0,0,0.08));
}

/* --- 3. MAIN CONTENT (STRETCHED) --- */
.content-panel {
    flex: 1;
    padding: 4rem 5%;
    box-sizing: border-box;
    /* No max-width here allows it to fill the screen */
}

#content-target {
    transition: opacity 0.15s ease-in-out;
}

h2 { font-size: 2.5rem; margin-top: 0; border-bottom: 2px solid #eee; padding-bottom: 1rem; }
h3 { font-size: 1.5rem; margin-top: 0; }

/* Allow text to fill the cards */
p, .blog-content p, .blog-summary { 
    max-width: 100%; 
    line-height: 1.7; 
    font-size: 1.1rem;
}

.card {
    background: var(--card-bg);
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
    margin-bottom: 2rem;
    border: 1px solid rgba(0,0,0,0.05);
    width: 100%;
    box-sizing: border-box;
}

.tag {
    display: inline-block;
    background: #eee;
    padding: 0.3rem 0.8rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 1rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.btn-link {
    display: inline-block;
    text-decoration: none;
    color: var(--accent-dark);
    font-weight: 800;
    margin-top: 1rem;
    border-bottom: 2px solid transparent;
    transition: border-color 0.2s;
}

.btn-link:hover { border-color: var(--accent-dark); }

/* --- 4. BLOG LIST & CONTROLS --- */
.blog-controls { 
    background: var(--card-bg); 
    padding: 1.5rem; 
    border-radius: 12px; 
    margin-bottom: 2rem; 
    box-shadow: 0 4px 15px rgba(0,0,0,0.03); 
    border: 1px solid rgba(0,0,0,0.05); 
}

.search-input { 
    width: 100%; 
    padding: 1rem; 
    font-family: 'Outfit', sans-serif; 
    font-size: 1rem; 
    border: 2px solid #eee; 
    border-radius: 8px; 
    background: #fafafa; 
    margin-bottom: 1rem; 
    box-sizing: border-box; 
}

.category-chips { display: flex; flex-wrap: wrap; gap: 0.5rem; }

.chip { 
    padding: 0.4rem 1rem; 
    border-radius: 50px; 
    font-size: 0.85rem; 
    font-weight: 600; 
    cursor: pointer; 
    border: 2px solid transparent; 
    background: #eee; 
}

.chip.active { box-shadow: 0 4px 10px rgba(0,0,0,0.1); transform: translateY(-2px); }

/* Blog Layout */
.blog-layout-wrapper { display: flex; gap: 2rem; align-items: start; width: 100%; }

.blog-card { 
    display: flex; 
    background: var(--card-bg); 
    border-radius: 16px; 
    overflow: hidden; 
    box-shadow: 0 10px 30px rgba(0,0,0,0.03); 
    margin-bottom: 1.5rem; 
    border: 1px solid rgba(0,0,0,0.05); 
    width: 100%;
}

.blog-thumb { width: 250px; min-width: 250px; object-fit: cover; background: #f0f0f0; }

.blog-info { padding: 1.5rem 2rem; flex: 1; display: flex; flex-direction: column; }

/* Blog Archive Sidebar */
.blog-sidebar { width: 300px; flex-shrink: 0; }

.archive-tree details { margin-bottom: 0.5rem; }

.archive-tree summary { 
    cursor: pointer; 
    font-weight: 600; 
    padding: 0.6rem 0.8rem; 
    background: rgba(0,0,0,0.03); 
    border-radius: 6px; 
    display: flex; 
    align-items: center; 
    justify-content: space-between; 
}

/* --- 5. UTILITIES GRID (SQUARE CARDS) --- */
.utilities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.utility-card {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
    border: 1px solid rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    aspect-ratio: 1 / 1; /* Forces square shape */
    justify-content: center;
    text-align: center;
    transition: transform 0.3s ease, border-color 0.3s ease;
    text-decoration: none;
    color: inherit;
    box-sizing: border-box;
}

.utility-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-pink);
}

.utility-card h3 {
    margin: 0 0 1rem 0;
    color: var(--accent-dark);
    font-size: 1.5rem;
}

/* --- 6. GALLERY & LIGHTBOX --- */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 1.5rem; }

.gallery-item { cursor: pointer; border-radius: 12px; overflow: hidden; position: relative; box-shadow: 0 5px 15px rgba(0,0,0,0.05); }

.gallery-img { width: 100%; height: 250px; object-fit: cover; display: block; }

.lightbox { 
    display: none; 
    position: fixed; 
    z-index: 100; 
    left: 0; 
    top: 0; 
    width: 100%; 
    height: 100%; 
    background-color: rgba(26,26,26,0.95); 
    justify-content: center; 
    align-items: center; 
    flex-direction: column; 
    opacity: 0; 
}

.lightbox.active { display: flex; opacity: 1; }

.lightbox-content { max-width: 90%; max-height: 80vh; border-radius: 8px; }

/* --- 7. RESPONSIVE --- */
@media (max-width: 1024px) {
    .blog-layout-wrapper { flex-direction: column; }
    .blog-sidebar { width: 100%; }
}

@media (max-width: 900px) {
    body { flex-direction: column; }
    .hero-panel { width: 100%; height: auto; position: relative; flex-direction: row; align-items: center; justify-content: space-between; padding: 2rem; box-sizing: border-box; }
    .hero-content { padding: 0; width: 60%; }
    .portrait { width: 35%; margin: 0; }
    .content-panel { padding: 2rem; }
    .blog-card { flex-direction: column; }
    .blog-thumb { width: 100%; height: 200px; }
}

@media (max-width: 600px) {
    .hero-panel { flex-direction: column; text-align: center; }
    .hero-content { width: 100%; }
    .portrait { width: 80%; margin-top: 2rem; }
}