/* Modern News Website - US/UK Style */
/* Soft White Theme */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #1a1a1a;
    --secondary-color: #4a4a4a;
    --accent-color: #c41e3a;
    --bg-color: #fafafa;
    --card-bg: #ffffff;
    --text-color: #222222;
    --text-light: #666666;
    --border-color: #e5e5e5;
    --hover-color: #f0f0f0;
}

body {
    font-family: 'Georgia', 'Times New Roman', serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--accent-color);
}

/* Main Header - Sticky */
.main-header {
    background-color: var(--card-bg);
    border-bottom: 1px solid var(--border-color);
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.logo {
    font-size: 2.5rem;
    font-weight: bold;
    font-family: 'Georgia', serif;
    letter-spacing: -1px;
}

.logo span {
    color: var(--accent-color);
}

.date-weather {
    font-size: 0.85rem;
    color: var(--text-light);
    font-family: 'Arial', sans-serif;
}

nav {
    border-top: 1px solid var(--border-color);
    padding-top: 15px;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
}

nav ul li a {
    font-family: 'Arial', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 5px 0;
    border-bottom: 2px solid transparent;
}

nav ul li a:hover {
    border-bottom-color: var(--accent-color);
}

/* Main Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px 20px;
}

/* Headline Section */
.headline-section {
    margin-bottom: 50px;
}

.section-title {
    font-family: 'Arial', sans-serif;
    font-size: 0.85rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--accent-color);
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--accent-color);
    display: inline-block;
}

.headline-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.headline-card {
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.headline-card img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.headline-card:hover img {
    transform: scale(1.02);
}

.headline-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.85));
    padding: 60px 20px 20px;
}

.headline-tag {
    font-family: 'Arial', sans-serif;
    font-size: 0.7rem;
    font-weight: bold;
    text-transform: uppercase;
    color: #fff;
    background-color: var(--accent-color);
    padding: 4px 10px;
    display: inline-block;
    margin-bottom: 10px;
}

.headline-title {
    font-size: 1.5rem;
    color: #fff;
    font-weight: bold;
    line-height: 1.3;
}

.headline-title:hover {
    color: #fff;
}

/* Categories Section */
.category-section {
    margin-bottom: 50px;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.category-card {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    padding: 20px;
    transition: box-shadow 0.2s ease;
}

.category-card:hover {
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
}

.category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
}

.category-name {
    font-family: 'Arial', sans-serif;
    font-size: 1rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.category-more {
    font-family: 'Arial', sans-serif;
    font-size: 0.75rem;
    color: var(--text-light);
}

.category-more:hover {
    color: var(--accent-color);
}

.category-list {
    list-style: none;
}

.category-list li {
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
}

.category-list li:last-child {
    border-bottom: none;
}

.category-list li a {
    display: block;
}

.category-list .article-title {
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 5px;
}

.category-list .article-excerpt {
    font-size: 0.85rem;
    color: var(--text-light);
    font-family: 'Arial', sans-serif;
    line-height: 1.5;
}

.category-list .article-date {
    font-size: 0.75rem;
    color: var(--text-light);
    font-family: 'Arial', sans-serif;
    margin-top: 8px;
}

/* Footer */
footer {
    background-color: var(--primary-color);
    color: #fff;
    padding: 50px 0 30px;
    margin-top: 50px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3 {
    font-family: 'Arial', sans-serif;
    font-size: 0.9rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
    color: #fff;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section ul li a {
    font-family: 'Arial', sans-serif;
    font-size: 0.85rem;
    color: #aaa;
}

.footer-section ul li a:hover {
    color: #fff;
}

.footer-bottom {
    border-top: 1px solid #333;
    padding-top: 20px;
    text-align: center;
    font-family: 'Arial', sans-serif;
    font-size: 0.8rem;
    color: #666;
}

/* Article Page Styles - NOT Sticky */
.article-header {
    margin-bottom: 30px;
}

.article-meta {
    font-family: 'Arial', sans-serif;
    font-size: 0.8rem;
    color: var(--text-light);
    margin-bottom: 15px;
}

.article-category {
    color: var(--accent-color);
    font-weight: bold;
    text-transform: uppercase;
}

.article-title {
    font-size: 2.5rem;
    font-weight: bold;
    line-height: 1.2;
    margin-bottom: 20px;
}

.article-subtitle {
    font-size: 1.2rem;
    color: var(--text-light);
    line-height: 1.5;
    margin-bottom: 20px;
}

.article-author {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 30px;
}

.author-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--border-color);
}

.author-info {
    font-family: 'Arial', sans-serif;
}

.author-name {
    font-weight: bold;
    font-size: 0.9rem;
}

.author-role {
    font-size: 0.8rem;
    color: var(--text-light);
}

.article-image {
    width: 100%;
    height: 500px;
    object-fit: cover;
    margin-bottom: 30px;
}

.article-content {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.1rem;
    line-height: 1.8;
    text-align: left;
}

.article-content p {
    margin-bottom: 20px;
}

.article-content h2 {
    font-size: 1.5rem;
    margin: 30px 0 15px;
}

.article-content blockquote {
    border-left: 4px solid var(--accent-color);
    padding-left: 20px;
    margin: 30px 0;
    font-style: italic;
    color: var(--text-light);
}

/* Contact Page Styles */
.contact-section {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 20px;
}

.contact-form {
    background: #fff;
    border: 1px solid var(--border-color);
    padding: 30px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-family: Arial, sans-serif;
    font-size: 0.9rem;
    font-weight: bold;
    margin-bottom: 8px;
    color: #1a1a1a;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    font-size: 1rem;
    font-family: Georgia, serif;
    transition: border-color 0.2s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--accent-color);
}

.form-group textarea {
    height: 150px;
    resize: vertical;
}

.submit-btn {
    background: var(--primary-color);
    color: #fff;
    padding: 15px 40px;
    border: none;
    font-size: 1rem;
    font-family: Arial, sans-serif;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.2s ease;
}

.submit-btn:hover {
    background: var(--accent-color);
}

.alert {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 4px;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.contact-info {
    margin-top: 40px;
    padding: 30px;
    background: #f9f9f9;
    border: 1px solid var(--border-color);
}

.contact-info h3 {
    font-family: Arial, sans-serif;
    font-size: 1.1rem;
    margin-bottom: 15px;
}

.contact-info p {
    margin-bottom: 10px;
    font-family: Georgia, serif;
}

.contact-info a {
    color: var(--accent-color);
}

/* Responsive */
@media (max-width: 768px) {
    .headline-grid {
        grid-template-columns: 1fr;
    }
    
    .category-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    nav ul {
        gap: 15px;
    }
    
    .article-title {
        font-size: 1.8rem;
    }
}

@media (max-width: 480px) {
    .logo {
        font-size: 1.8rem;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
}
