@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600&display=swap');

:root {
    --primary-color: #1a2e63;
    --secondary-color: #f4f4f4;
    --accent-color: #f4d35e;
    --text-color: #333;
    --bg-light: #ffffff;
    --card-radius: 12px;
}

body {
    margin: 0;
    font-family: 'Inter', sans-serif;
    background-color: var(--secondary-color);
    color: var(--text-color);
    line-height: 1.6;
}

nav {
    background-color: rgba(20, 36, 74, 0.95);
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

nav a {
    color: white;
    text-decoration: none;
    padding: 1rem;
    display: block;
    transition: background-color 0.3s ease, color 0.3s ease;
    font-weight: 600;
}

nav a:hover {
    background-color: var(--accent-color);
    color: var(--primary-color);
}

.container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 1rem;
    background: var(--bg-light);
    border-radius: var(--card-radius);
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    animation: fadeIn 0.8s ease;
}

footer {
    background-color: var(--primary-color);
    color: white;
    text-align: center;
    padding: 1rem;
    margin-top: 2rem;
    font-size: 0.95rem;
}

.responsive-img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

.grid {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.card {
    background-color: var(--bg-light);
    padding: 1rem;
    border-radius: var(--card-radius);
    box-shadow: 0 4px 10px rgba(0,0,0,0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-6px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.1);
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.hero {
    text-align: center;
    background: linear-gradient(to right, #1a2e63, #344b94);
    color: white;
    padding: 3rem 1rem;
}

.hero img {
    max-width: 160px;
    margin-bottom: 1rem;
}

.hero h1 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.hero p {
    font-size: 1.2rem;
    font-weight: 300;
}

.post {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background-color: var(--bg-light);
    border-radius: var(--card-radius);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: box-shadow 0.3s ease;
}

.post:hover {
    box-shadow: 0 4px 14px rgba(0,0,0,0.08);
}

.post-header {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.post-body {
    font-size: 1.05rem;
    white-space: pre-wrap;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.slide-in {
    animation: slideInUp 0.8s ease both;
    opacity: 0;
}

.slide-delay-1 { animation-delay: 0.2s; }
.slide-delay-2 { animation-delay: 0.4s; }
.slide-delay-3 { animation-delay: 0.6s; }
.slide-delay-4 { animation-delay: 0.8s; }

/* Duplicate body/bg adjustments (keep final one) */
body {
    background-color: #f1f3f6;
}

.section {
    padding: 1rem 0.5rem;
}

.section.alt {
    background-color: #e9ecf2;
    padding: 1rem 0.5rem;
}

/* These last-of-type rules were making white text inside white cards */
.section:last-of-type .container,
.section:last-of-type .container p {
    /* override back to black */
    color: #000 !important;
}

/* -------------------- OVERRIDES FOR BLACK TEXT ON WHITE BG -------------------- */

/* Force black text inside your white‑background components */
.container,
.card,
.grid,
.post,
.section,
.hero,
.tile {
    color: #000 !important;
}

/* Inputs, labels, selects, textareas */
input,
textarea,
select,
label,
option {
    color: #000 !important;
}

/* Lists inside white cards (e.g. minutes-list) */
.minutes-list li,
.message-entry,
.folders a,
.messages {
    color: #000 !important;
}
