/* Base Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #d2b48c; /* Light Tan */
    /* Refined background: subtle pattern, centered focus */
    background-image: linear-gradient(335deg, #b87352 23px, transparent 23px),
                      linear-gradient(155deg, #a66344 23px, transparent 23px);
    background-size: 58px 58px; 
    background-attachment: fixed;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #3e2723;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* 3-Panel Wrapper */
.container {
    display: flex;
    flex-direction: column;
    flex: 1;
    width: 100%;
}

/* --- Header Stage --- */
header {
    background: rgba(62, 39, 35, 0.95);
    color: #f5f5f5;
    padding: 15px;
    border-bottom: 4px solid #8d4e33;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 100;
}

.picturebox {
    flex: 0 1 60px; /* Specific width for mobile needles */
    display: flex;
    align-items: center;
}

.picturebox img {
    width: 100%;
    height: auto;
    display: block;
}

header h1 {
    flex: 1;
    text-align: center;
    font-size: 1.2rem; /* Mobile first font size */
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0 10px;
}

/* --- Navigation: The Oval Buttons --- */
nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    padding: 15px 10px;
    background: rgba(62, 39, 35, 0.1);
}

nav a {
    display: inline-block;
    background-color: #f5deb3;
    color: #3e2723;
    padding: 12px 20px;
    border-radius: 50px;
    border: 2px solid #8d4e33;
    text-decoration: none;
    font-weight: 900;
    text-transform: uppercase;
    font-size: 0.85rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: 0.3s;
}

nav a:hover {
    background-color: #eedcaf;
    transform: translateY(-2px);
}

/* --- The Reality Fix: Centering the Content --- */
.middle-section {
    display: flex;
    flex-direction: column;
    flex: 1;
    align-items: center; /* Crucial: Centers the panels on the screen */
    padding: 10px;
    width: 100%;
}

.left-panel, .right-panel, .support-card {
    padding: 25px;
    background: rgba(255, 255, 255, 0.96); /* High opacity for text clarity */
    margin: 15px 0; 
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
    width: 95%; /* Fits mobile width perfectly */
    max-width: 600px;
    display: flex;
    flex-direction: column;
}

.left-panel h2, .right-panel h2 {
    color: #8d4e33;
    margin-bottom: 15px;
    font-size: 1.4rem;
}

p {
    line-height: 1.6;
    margin-bottom: 15px;
}

/* --- Desktop Scaling (The Breakpoint) --- */
@media (min-width: 768px) {
    header h1 { font-size: 2rem; }
    .picturebox { flex: 0 1 150px; }
    
    .middle-section {
        flex-direction: row;
        justify-content: center;
        align-items: flex-start;
        padding: 40px 20px;
    }

    .left-panel, .right-panel {
        flex: 1;
        margin: 0 15px;
        max-height: 80vh;
        overflow-y: auto;
    }
}

/* Footer */
footer {
    background: #3e2723;
    color: #d2b48c;
    padding: 20px;
    text-align: center;
    font-size: 0.9rem;
}

/* --- Animation Preparation --- */
.picturebox, header h1 {
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 1.2s ease-out, transform 1s ease-out;
}

.fade-in-ready {
    opacity: 1 !important;
    transform: translateY(0) !important;
}
.hidden { display: none; }

.blogEntry {
    margin: 20px 0;
    padding: 15px;
    /* PHP will inject the border styles here */
}

#adminPanel {
    position: fixed;
    bottom: 10px;
    right: 10px;
}