/* Greenhaven Network Standard Stylesheet v2.1 */
:root {
    --primary-dark: #04342C;
    --accent-teal: #1D9E75;
    --highlight-coral: #D85A30;
    --bg-light: #f4f7f6;
    --text-main: #2d3436;
    --white: #ffffff;
}

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

body {
    font-family: 'DM Sans', sans-serif;
    background-color: var(--bg-light);
    color: var(--text-main);
    line-height: 1.6;
}

h1, h2, h3, h4 {
    font-family: 'Lora', serif;
    color: var(--primary-dark);
    margin-bottom: 1rem;
}

/* --- Header & Navigation --- */
header {
    background-color: var(--primary-dark);
    color: var(--white);
    padding: 2rem 1rem;
    text-align: center;
}

nav {
    background-color: var(--accent-teal);
    padding: 10px;
    text-align: center;
    position: sticky;
    top: 0;
    z-index: 1000;
}

nav a {
    color: var(--white);
    margin: 0 15px;
    text-decoration: none;
    font-weight: bold;
}

/* --- Ticker Animation --- */
.ticker-wrap {
    width: 100%;
    overflow: hidden;
    background: #eee;
    border-bottom: 1px solid #ddd;
    height: 40px;
    display: flex;
    align-items: center;
}

#news-ticker {
    display: inline-block;
    white-space: nowrap;
    padding-left: 100%;
    animation: ticker-scroll 30s linear infinite;
    font-weight: bold;
    color: var(--highlight-coral);
}

@keyframes ticker-scroll {
    0% { transform: translate3d(0, 0, 0); }
    100% { transform: translate3d(-100%, 0, 0); }
}

/* --- Layout --- */
.container {
    max-width: 1200px;
    margin: 40px auto;
    display: grid;
    grid-template-columns: 3fr 1fr;
    gap: 30px;
    padding: 0 20px;
}

main { background: var(--white); padding: 30px; border-radius: 8px; }

/* Ad Slots */
.ad-slot { background: #f9f9f9; border: 1px dashed #ccc; text-align: center; margin: 20px 0; display: flex; align-items: center; justify-content: center; color: #999; font-size: 0.8rem; }
.leaderboard { height: 90px; }
.rectangle { height: 250px; }
.sidebar-ad { height: 600px; }

/* News Grid */
.news-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; margin-top: 20px; }
.card { border: 1px solid #eee; border-radius: 8px; padding: 15px; }

@media (max-width: 768px) {
    .container { grid-template-columns: 1fr; }
}

footer { background: var(--primary-dark); color: var(--white); text-align: center; padding: 40px; margin-top: 50px; }