/* ============================================================================
   MODERN NEWS OUTLET STYLESHEET
   Clean, professional, responsive design
   ============================================================================ */

/* Variables - Director Freedom Brand */
:root {
    --primary-color: #2c4a63;      /* Navy blue */
    --secondary-color: #5a7a95;     /* Slate blue */
    --accent-color: #f5a623;        /* Gold/Orange CTA */
    --text-color: #333;
    --text-light: #666;
    --border-color: #e0e0e0;
    --bg-light: #f4f6f8;
    --bg-dark: #1a2c3d;             /* Dark navy for hero */
    --bg-white: #ffffff;
    --max-width: 1200px;
    --border-radius: 8px;
    --spacing: 1.5rem;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-light);
}

a {
    color: var(--secondary-color);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* Container */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--spacing);
}

/* Header */
header {
    background: var(--bg-white);
    border-bottom: 3px solid var(--primary-color);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing) 0;
}

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

.brand h1 a {
    color: var(--primary-color);
    text-decoration: none;
    display: block;
}

.brand h1 a:hover {
    color: var(--secondary-color);
    opacity: 0.9;
}

.brand .logo {
    height: 50px;
    width: auto;
    display: block;
    transition: opacity 0.2s;
}

.tagline {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-top: 0.25rem;
}

.nav {
    display: flex;
    gap: 1.5rem;
}

.nav-link {
    color: var(--text-color);
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
    transition: background 0.2s;
}

.nav-link:hover,
.nav-link.active {
    background: var(--bg-light);
    text-decoration: none;
}

/* Subscribe Button */
.btn-subscribe {
    background: var(--accent-color);
    color: white;
    border: none;
    padding: 0.5rem 1.5rem;
    border-radius: var(--border-radius);
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
    font-size: 0.95rem;
}

.btn-subscribe:hover {
    background: #d68d1a;
    transform: translateY(-1px);
}

.btn-subscribe:active {
    transform: translateY(0);
}

/* Hero Section */
.hero {
    background: var(--bg-dark);
    color: white;
    padding: 4rem 0;
    margin-bottom: 3rem;
    text-align: center;
}

.hero-content {
    max-width: 900px;
    margin: 0 auto;
}

.hero h2 {
    font-size: 2.5rem;
    line-height: 1.2;
    margin-bottom: 1rem;
    font-weight: 700;
}

.hero p {
    font-size: 1.25rem;
    color: rgba(255,255,255,0.9);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.btn-cta {
    display: inline-block;
    background: var(--accent-color);
    color: white;
    padding: 1rem 2.5rem;
    border-radius: var(--border-radius);
    font-weight: 700;
    font-size: 1.1rem;
    text-transform: uppercase;
    transition: background 0.2s, transform 0.1s;
    text-decoration: none;
    border: none;
    cursor: pointer;
}

.btn-cta:hover {
    background: #d68d1a;
    transform: translateY(-2px);
    text-decoration: none;
}

/* Main Content */
main {
    min-height: calc(100vh - 300px);
}

main.no-hero {
    margin-top: 2rem;
}

.section-title {
    font-size: 1.5rem;
    margin-bottom: var(--spacing);
    color: var(--primary-color);
}

/* Articles Grid */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.article-card {
    background: var(--bg-white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.2s, box-shadow 0.2s;
}

.article-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.card-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: var(--bg-light);
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-content {
    padding: 1.5rem;
}

.card-category {
    display: inline-block;
    background: var(--accent-color);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 0.75rem;
}

.card-title {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.card-title a {
    color: var(--text-color);
}

.card-title a:hover {
    color: var(--secondary-color);
}

.card-description {
    color: var(--text-light);
    font-size: 0.95rem;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.card-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.85rem;
    color: var(--text-light);
}

/* Single Article */
.article-full {
    background: var(--bg-white);
    padding: 3rem;
    border-radius: var(--border-radius);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    margin-bottom: 3rem;
}

.article-image {
    margin: -3rem -3rem 2rem -3rem;
    max-height: 400px;
    overflow: hidden;
    border-radius: var(--border-radius) var(--border-radius) 0 0;
}

.article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.breadcrumb {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 1rem;
}

.breadcrumb .separator {
    margin: 0 0.5rem;
}

.article-headline {
    font-size: 2.5rem;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.article-meta {
    display: flex;
    gap: 1.5rem;
    padding-bottom: 1.5rem;
    margin-bottom: 2rem;
    border-bottom: 2px solid var(--border-color);
    font-size: 0.9rem;
    color: var(--text-light);
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.article-content {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 2rem;
}

.article-content p {
    margin-bottom: 1.5rem;
}

.article-content .inline-link {
    color: var(--secondary-color);
    font-weight: 500;
}

.article-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 2rem;
    padding-top: 2rem;
    border-top: 2px solid var(--border-color);
}

.tags-label {
    font-weight: 600;
    margin-right: 0.5rem;
}

.tag {
    background: var(--bg-light);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    color: var(--text-color);
}

.article-actions {
    margin-top: 2rem;
}

.back-button {
    display: inline-block;
    background: var(--primary-color);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius);
    font-weight: 500;
    transition: background 0.2s;
}

.back-button:hover {
    background: var(--secondary-color);
    text-decoration: none;
}

/* About Page */
.about-content {
    background: var(--bg-white);
    padding: 3rem;
    border-radius: var(--border-radius);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    margin-bottom: 3rem;
}

.about-content h2 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 2rem;
}

.about-section {
    margin-bottom: 2rem;
}

.about-section h3 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.about-section p {
    line-height: 1.8;
    margin-bottom: 1rem;
}

.about-section ul {
    margin-left: 2rem;
    line-height: 1.8;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    background: var(--bg-white);
    border-radius: var(--border-radius);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.empty-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.empty-title {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.empty-hint {
    color: var(--text-light);
    margin-bottom: 2rem;
}

.api-info {
    background: var(--bg-light);
    padding: 1rem;
    border-radius: var(--border-radius);
    font-size: 0.9rem;
    font-family: monospace;
}

/* Footer */
footer {
    background: var(--primary-color);
    color: white;
    margin-top: 4rem;
    padding: 2rem 0;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.footer-brand h3 {
    margin-bottom: 0.5rem;
}

.footer-brand p {
    color: rgba(255,255,255,0.8);
    font-size: 0.9rem;
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    color: white;
    transition: opacity 0.2s;
}

.footer-links a:hover {
    opacity: 0.8;
    text-decoration: none;
}

.footer-bottom {
    text-align: center;
    padding-top: 1rem;
    border-top: 1px solid rgba(255,255,255,0.2);
    font-size: 0.9rem;
    color: rgba(255,255,255,0.8);
}

/* Subscribe Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.2s;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    background: var(--bg-white);
    padding: 2.5rem;
    border-radius: var(--border-radius);
    max-width: 500px;
    width: 90%;
    position: relative;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    animation: slideUp 0.3s;
}

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

.modal-close {
    position: absolute;
    right: 1rem;
    top: 1rem;
    font-size: 2rem;
    font-weight: 300;
    color: var(--text-light);
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s;
}

.modal-close:hover {
    color: var(--accent-color);
}

.modal-content h2 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-size: 1.8rem;
}

.modal-content p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

#subscribeForm {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

#emailInput {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 1rem;
    transition: border-color 0.2s;
}

#emailInput:focus {
    outline: none;
    border-color: var(--secondary-color);
}

.btn-submit {
    background: var(--secondary-color);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius);
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
    white-space: nowrap;
}

.btn-submit:hover {
    background: #2980b9;
}

#subscribeMessage {
    min-height: 24px;
}

#subscribeMessage p {
    margin: 0;
    padding: 0.75rem;
    border-radius: var(--border-radius);
    font-weight: 500;
}

#subscribeMessage .success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

#subscribeMessage .error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Content Sections */
.content-section {
    padding: 4rem 0;
}

.content-section.bg-white {
    background: var(--bg-white);
}

.content-section.bg-light {
    background: var(--bg-light);
}

.content-section.bg-dark {
    background: var(--bg-dark);
    color: white;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.content-section.bg-dark .section-header h2 {
    color: white;
}

.section-header p {
    font-size: 1.15rem;
    color: var(--text-light);
    max-width: 700px;
    margin: 0 auto;
}

.content-section.bg-dark .section-header p {
    color: rgba(255,255,255,0.9);
}

/* Mission Section */
.mission-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.mission-text h3 {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.mission-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-color);
    margin-bottom: 1rem;
}

.mission-stat {
    background: var(--bg-light);
    padding: 3rem;
    border-radius: var(--border-radius);
    text-align: center;
    border: 3px solid var(--accent-color);
}

.stat-number {
    font-size: 4rem;
    font-weight: 700;
    color: var(--accent-color);
    line-height: 1;
    margin-bottom: 1rem;
}

.stat-description {
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--text-color);
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.stat-card {
    background: rgba(255,255,255,0.1);
    padding: 2rem;
    border-radius: var(--border-radius);
    text-align: center;
    border: 2px solid rgba(255,255,255,0.2);
    transition: transform 0.2s, border-color 0.2s;
}

.stat-card:hover {
    transform: translateY(-4px);
    border-color: var(--accent-color);
}

.stat-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.stat-card .stat-number {
    font-size: 3rem;
    color: var(--accent-color);
    margin-bottom: 0.5rem;
}

.stat-card .stat-description {
    font-size: 0.95rem;
    color: rgba(255,255,255,0.9);
}

/* Featured Article */
.featured-article {
    background: var(--bg-white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    margin-bottom: 3rem;
}

.featured-image {
    background: var(--bg-light);
    min-height: 400px;
    overflow: hidden;
}

.featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.featured-content {
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.featured-label {
    display: inline-block;
    background: var(--accent-color);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 1rem;
    width: fit-content;
}

.featured-content h3 {
    font-size: 2rem;
    line-height: 1.3;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.featured-content h3 a {
    color: var(--primary-color);
    text-decoration: none;
}

.featured-content h3 a:hover {
    color: var(--secondary-color);
}

.featured-excerpt {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

.featured-meta {
    display: flex;
    gap: 1.5rem;
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

.btn-read-more {
    display: inline-block;
    background: var(--primary-color);
    color: white;
    padding: 0.75rem 2rem;
    border-radius: var(--border-radius);
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s;
    width: fit-content;
}

.btn-read-more:hover {
    background: var(--secondary-color);
    text-decoration: none;
}

/* Recent Blogs - Compact Cards */
.recent-blogs-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.blog-card-compact {
    background: var(--bg-white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.2s, box-shadow 0.2s;
}

.blog-card-compact:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.blog-card-compact .card-image {
    height: 180px;
}

.blog-card-compact .card-content {
    padding: 1.25rem;
}

.blog-card-compact .card-title {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.blog-card-compact .card-description {
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
}

.blog-card-compact .card-meta {
    font-size: 0.8rem;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 5rem 0;
    text-align: center;
}

.cta-content {
    max-width: 700px;
    margin: 0 auto;
}

.cta-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: white;
}

.cta-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: rgba(255,255,255,0.95);
}

/* Contact Section */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 3rem;
    align-items: start;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-item {
    display: flex;
    gap: 1.5rem;
    align-items: start;
}

.contact-icon {
    font-size: 2.5rem;
    line-height: 1;
}

.contact-details h3 {
    font-size: 1.25rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.contact-details a {
    display: block;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
    text-decoration: none;
}

.contact-details a:hover {
    color: var(--primary-color);
}

.contact-details p {
    font-size: 0.95rem;
    color: var(--text-light);
    margin: 0;
}

.contact-form-wrapper {
    background: var(--bg-white);
    padding: 2.5rem;
    border-radius: var(--border-radius);
    box-shadow: 0 2px 12px rgba(0,0,0,0.1);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-weight: 600;
    color: var(--text-color);
    font-size: 0.95rem;
}

.form-group input,
.form-group textarea {
    padding: 0.75rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.2s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--secondary-color);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-checkbox label {
    display: flex;
    align-items: start;
    gap: 0.75rem;
    font-weight: 400;
    cursor: pointer;
}

.form-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    cursor: pointer;
    flex-shrink: 0;
}

.form-checkbox span {
    font-size: 0.9rem;
    line-height: 1.5;
    color: var(--text-color);
}

.contact-form .btn-submit {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: var(--border-radius);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.2s;
    width: 100%;
}

.contact-form .btn-submit:hover {
    background: var(--secondary-color);
}

#form-feedback {
    min-height: 24px;
}

/* Responsive */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 1rem;
    }
    
    .nav {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .hero h2 {
        font-size: 1.8rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .mission-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .featured-article {
        grid-template-columns: 1fr;
    }
    
    .featured-image {
        min-height: 250px;
    }
    
    .featured-content {
        padding: 2rem 1.5rem;
    }
    
    .featured-content h3 {
        font-size: 1.5rem;
    }
    
    .recent-blogs-grid {
        grid-template-columns: 1fr;
    }
    
    .section-header h2 {
        font-size: 1.8rem;
    }
    
    .cta-content h2 {
        font-size: 1.8rem;
    }
    
    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .contact-form-wrapper {
        padding: 1.5rem;
    }
    
    .modal-content {
        padding: 2rem 1.5rem;
    }
    
    #subscribeForm {
        flex-direction: column;
    }
    
    .btn-submit {
        width: 100%;
    }
    
    .articles-grid {
        grid-template-columns: 1fr;
    }
    
    .article-full {
        padding: 2rem 1.5rem;
    }
    
    .article-headline {
        font-size: 1.8rem;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}
