/* General Styles */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.6;
    margin: 0;
    background: #f4f4f4;
    color: #333;
}

a {
    color: #0077cc;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Header */
header {
    background: #fff;
    padding: 1rem 0;
    border-bottom: 1px solid #ddd;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header .logo h1 {
    margin: 0;
    font-size: 1.8rem;
}

header nav ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

header nav ul li {
    display: inline-block;
    margin-left: 1.5rem;
}

header .actions button, header .actions .subscribe-btn {
    margin-left: 1rem;
    padding: 0.5rem 1rem;
    border: 1px solid #0077cc;
    border-radius: 5px;
    background: #0077cc;
    color: #fff;
    cursor: pointer;
    transition: background 0.2s;
}

header .actions .subscribe-btn {
    background: #005fa3;
    border-color: #005fa3;
}

header .actions button:hover, header .actions .subscribe-btn:hover {
    background: #005fa3;
}

/* Main Content */
main {
    padding: 2rem 0;
}

section {
    margin-bottom: 2rem;
}

section h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    border-bottom: 2px solid #0077cc;
    padding-bottom: 0.5rem;
}

/* Stories Grid */
.stories-grid, .news-grid, .featured-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

/* Latest News Tabs */
.tabs {
    margin-bottom: 1.5rem;
}

.tab-btn {
    padding: 0.5rem 1rem;
    border: 1px solid #ccc;
    background: #fff;
    cursor: pointer;
    margin-right: 0.5rem;
    border-radius: 5px;
    transition: background 0.2s, color 0.2s;
}

.tab-btn.active {
    background: #0077cc;
    color: #fff;
    border-color: #0077cc;
}

/* Footer */
footer {
    background: #333;
    color: #fff;
    padding: 2rem 0;
    text-align: center;
}

footer ul {
    margin: 1rem 0 0;
    padding: 0;
    list-style: none;
}

footer ul li {
    display: inline-block;
    margin: 0 1rem;
}

footer a {
    color: #fff;
}

/* Responsive */
@media (max-width: 768px) {
    header .container {
        flex-direction: column;
    }

    header nav {
        margin: 1rem 0;
    }

    header .actions {
        margin-top: 1rem;
    }
}
