/* ==========================================================================
   Variables & Reset
   ========================================================================== */
:root {
    --primary-color: #0E4D64;
    --secondary-color: #E3C79B;
    --accent-color: #D36B59;
    --text-color: #333333;
    --text-light: #666666;
    --bg-color: #F9F9F9;
    --white: #FFFFFF;
    --font-main: system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

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

/* ==========================================================================
   Typography
   ========================================================================== */
h1, h2, h3 { color: var(--primary-color); line-height: 1.2; margin-bottom: 1rem; }
a { color: var(--accent-color); text-decoration: none; transition: color 0.3s; }
a:hover { color: var(--primary-color); }
p { margin-bottom: 1.5rem; }

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
header {
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}
.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.logo { font-size: 1.5rem; font-weight: bold; color: var(--primary-color); }
.nav-links { display: flex; gap: 2rem; list-style: none; }
.nav-links a { color: var(--text-color); font-weight: 500; }
.nav-links a:hover { color: var(--accent-color); }
.hamburger { display: none; cursor: pointer; flex-direction: column; gap: 5px; }
.hamburger span { width: 25px; height: 3px; background-color: var(--primary-color); border-radius: 2px; }

/* ==========================================================================
   Main & Hero Section
   ========================================================================== */
main { flex: 1; opacity: 0; animation: fadeIn 0.8s ease-in forwards; }
@keyframes fadeIn { to { opacity: 1; } }

.hero {
    position: relative;
    height: 60vh;
    min-height: 400px;
    background-color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    overflow: hidden;
}
.hero img {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%; object-fit: cover;
    opacity: 0.4;
    z-index: 1;
}
.hero-content { position: relative; z-index: 2; padding: 2rem; max-width: 800px; }
.hero h1 { color: var(--white); font-size: 3rem; margin-bottom: 1rem; }
.hero p { font-size: 1.25rem; margin-bottom: 2rem; }
.btn {
    display: inline-block; background-color: var(--accent-color); color: var(--white);
    padding: 0.8rem 2rem; border-radius: 30px; font-weight: bold; text-transform: uppercase;
}
.btn:hover { background-color: var(--secondary-color); color: var(--primary-color); }

/* ==========================================================================
   Layouts & Grids
   ========================================================================== */
.container { max-width: 1200px; margin: 0 auto; padding: 4rem 2rem; }
.section-title { text-align: center; margin-bottom: 3rem; font-size: 2.5rem; }

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

/* ==========================================================================
   Article Cards
   ========================================================================== */
.card {
    background: var(--white); border-radius: 12px; overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05); transition: transform 0.3s;
    display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-5px); }
.card-img { height: 200px; width: 100%; object-fit: cover; background-color: var(--secondary-color); }
.card-content { padding: 1.5rem; flex: 1; display: flex; flex-direction: column; }
.card-content h3 { font-size: 1.25rem; margin-bottom: 1rem; }
.card-content p { color: var(--text-light); flex: 1; }
.read-more { margin-top: 1rem; font-weight: bold; color: var(--primary-color); }

/* ==========================================================================
   Single Article & Forms
   ========================================================================== */
.article-header { text-align: center; margin-bottom: 3rem; }
.article-image { width: 100%; max-height: 500px; object-fit: cover; border-radius: 12px; margin-bottom: 2rem; }
.article-body { max-width: 800px; margin: 0 auto; font-size: 1.1rem; }
blockquote {
    border-left: 5px solid var(--secondary-color);
    padding-left: 1.5rem; margin: 2rem 0; font-style: italic; color: var(--primary-color);
    font-size: 1.2rem;
}

form { display: flex; flex-direction: column; gap: 1.5rem; max-width: 600px; margin: 0 auto; }
input, textarea {
    padding: 1rem; border: 1px solid #ccc; border-radius: 8px; font-family: inherit; font-size: 1rem;
}
textarea { resize: vertical; min-height: 150px; }
form button { background: var(--primary-color); color: var(--white); border: none; padding: 1rem; border-radius: 8px; font-size: 1.1rem; cursor: pointer; }
form button:hover { background: var(--accent-color); }

/* ==========================================================================
   Footer
   ========================================================================== */
footer {
    background-color: var(--primary-color); color: var(--white);
    text-align: center; padding: 2rem; margin-top: auto;
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 768px) {
    .hamburger { display: flex; }
    .nav-links {
        display: none; flex-direction: column; width: 100%; position: absolute;
        top: 100%; left: 0; background: var(--white); padding: 1rem 2rem;
        box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    }
    .nav-links.active { display: flex; }
    .hero h1 { font-size: 2rem; }
}
