/* ========================================
   CSS Variables & Reset
======================================== */
:root {
    --primary-color: #1e3a5f;
    --secondary-color: #2d5a87;
    --accent-color: #c41e3a;
    --text-color: #2d3748;
    --text-light: #718096;
    --bg-cream: #faf8f5;
    --bg-light: #f7fafc;
    --border-color: #e2e8f0;
    --white: #ffffff;
}

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

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

/* ========================================
   Layout
======================================== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ========================================
   Header & Navigation
======================================== */
.site-header {
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.main-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--primary-color);
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.mobile-menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background: var(--primary-color);
    transition: 0.3s;
}

/* ========================================
   News Ticker
======================================== */
.news-ticker {
    background: var(--accent-color);
    color: var(--white);
    padding: 0.75rem 0;
}

.news-ticker .container {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.ticker-label {
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.ticker-text {
    opacity: 0.95;
}

/* ========================================
   Featured Article
======================================== */
.featured-article {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    padding: 2.5rem 0;
    align-items: center;
}

.featured-image img {
    width: 100%;
    height: auto;
    border-radius: 4px;
    display: block;
}

.featured-image-placeholder {
    width: 100%;
    height: 300px;
    background: var(--border-color);
    border-radius: 4px;
}

.featured-title {
    font-size: 2rem;
    line-height: 1.2;
    margin-bottom: 0.75rem;
}

.featured-title a {
    color: var(--text-color);
    text-decoration: none;
}

.featured-title a:hover {
    color: var(--primary-color);
}

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

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

.section-divider {
    border: none;
    border-top: 1px solid var(--border-color);
    margin: 0;
}

/* ========================================
   Homepage Articles Grid
======================================== */
.articles-grid-home {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    padding: 2.5rem 0;
}

.article-card-home {
    background: var(--white);
}

.article-card-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
    border-radius: 4px;
}

.article-card-content {
    padding: 1rem 0;
}

.article-card-title {
    font-size: 1.15rem;
    line-height: 1.3;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

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

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

.article-card-date {
    color: var(--text-light);
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
}

.article-card-excerpt {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.5;
}

/* ========================================
   Breadcrumbs
======================================== */
.breadcrumbs {
    padding: 1rem 0;
    font-size: 0.9rem;
    color: var(--text-light);
}

.breadcrumbs a {
    color: var(--primary-color);
    text-decoration: none;
}

.breadcrumbs a:hover {
    text-decoration: underline;
}

.breadcrumbs span {
    margin: 0 0.5rem;
}

.breadcrumbs .current {
    color: var(--text-light);
    margin: 0;
}

/* ========================================
   Hero Section
======================================== */
.hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--white);
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

/* Hero Heights */
.hero-small {
    min-height: 150px;
    padding: 2rem 0;
}

.hero-medium {
    min-height: 200px;
    padding: 3rem 0;
}

.hero-large {
    min-height: 300px;
    padding: 4rem 0;
}

.hero-xlarge {
    min-height: 400px;
    padding: 5rem 0;
}

/* Hero with Background Image */
.hero-with-image {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero-with-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(30, 58, 95, 0.7);
    z-index: 1;
}

.hero-with-image .container {
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.hero p {
    font-size: 1.2rem;
    opacity: 0.95;
    max-width: 600px;
    margin: 0 auto;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

.hero-small h1 {
    font-size: 2rem;
}

.hero-small p {
    font-size: 1rem;
}

/* ========================================
   Page Content
======================================== */
.page-content {
    padding: 2rem 0;
}

.page-content-wrapper {
    background: var(--white);
    padding: 3rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    margin: 2rem 0;
    max-width: 800px;
}

.page-content-wrapper h2 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    margin-top: 2rem;
}

.page-content-wrapper h2:first-child {
    margin-top: 0;
}

.page-content-wrapper h3 {
    color: var(--secondary-color);
    margin-bottom: 0.75rem;
    margin-top: 1.5rem;
}

.page-content-wrapper p {
    margin-bottom: 1rem;
    line-height: 1.8;
}

.page-content-wrapper ul,
.page-content-wrapper ol {
    margin-bottom: 1rem;
    padding-left: 2rem;
}

.page-content-wrapper li {
    margin-bottom: 0.5rem;
}

.page-content-wrapper a {
    color: var(--accent-color);
}

.page-content-wrapper img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1rem 0;
}

/* ========================================
   Section Titles
======================================== */
.section-title {
    font-size: 1.75rem;
    color: var(--primary-color);
    margin: 2rem 0 1.5rem;
    text-align: center;
}

/* ========================================
   Blog Page Articles Grid
======================================== */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

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

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

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

.article-content {
    padding: 1.5rem;
}

.article-date {
    font-size: 0.85rem;
    color: var(--text-light);
}

.article-title {
    font-size: 1.2rem;
    margin: 0.5rem 0;
    line-height: 1.4;
}

.article-title a {
    color: var(--text-color);
    text-decoration: none;
}

.article-title a:hover {
    color: var(--primary-color);
}

.article-excerpt {
    color: var(--text-light);
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.read-more {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

.read-more:hover {
    text-decoration: underline;
}

/* ========================================
   Single Article
======================================== */
.article-header {
    text-align: center;
    margin-bottom: 2rem;
}

.article-header h1 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.article-meta {
    color: var(--text-light);
    font-size: 0.9rem;
}

.article-featured-image {
    width: 100%;
    max-height: 400px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 2rem;
}

.article-body {
    background: var(--white);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    max-width: 800px;
    margin: 0 auto 2rem;
}

.article-body h2 {
    color: var(--primary-color);
    margin: 2rem 0 1rem;
}

.article-body h3 {
    color: var(--secondary-color);
    margin: 1.5rem 0 0.75rem;
}

.article-body p {
    margin-bottom: 1rem;
    line-height: 1.8;
}

.article-body ul,
.article-body ol {
    margin-bottom: 1rem;
    padding-left: 2rem;
}

.article-body img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1rem 0;
}

.article-body blockquote {
    border-left: 4px solid var(--primary-color);
    padding-left: 1.5rem;
    margin: 1.5rem 0;
    font-style: italic;
    color: var(--text-light);
}

/* ========================================
   Buttons
======================================== */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    transition: opacity 0.3s;
    cursor: pointer;
    border: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.85rem;
}

.btn:hover {
    opacity: 0.9;
}

.btn-primary {
    background: var(--accent-color);
    color: var(--white);
}

.btn-secondary {
    background: var(--border-color);
    color: var(--text-color);
}

/* ========================================
   Pagination
======================================== */
.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin: 2rem 0;
}

.pagination a,
.pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 0.75rem;
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
}

.pagination a:hover {
    background: var(--bg-light);
    border-color: var(--primary-color);
}

.pagination .current {
    background: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

/* ========================================
   Footer
======================================== */
.site-footer {
    background: var(--primary-color);
    color: var(--white);
    padding: 3rem 0 1.5rem;
    margin-top: 4rem;
}

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

.footer-column h4 {
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.footer-column p {
    opacity: 0.8;
    font-size: 0.95rem;
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: 0.5rem;
}

.footer-column a {
    color: var(--white);
    text-decoration: none;
    opacity: 0.8;
    transition: opacity 0.3s;
}

.footer-column a:hover {
    opacity: 1;
}

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

/* ========================================
   Mobile Responsive
======================================== */
@media (max-width: 992px) {
    .featured-article {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .featured-title {
        font-size: 1.5rem;
    }
    
    .articles-grid-home {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
    }
    
    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        padding: 1rem;
        gap: 0;
        box-shadow: 0 4px 10px rgba(0,0,0,0.1);
        display: none;
    }
    
    .nav-links.active {
        display: flex;
    }
    
    .nav-links li {
        padding: 0.75rem 0;
        border-bottom: 1px solid var(--border-color);
    }
    
    .hero h1 {
        font-size: 1.75rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .hero-small h1 {
        font-size: 1.5rem;
    }
    
    .news-ticker .container {
        flex-direction: column;
        text-align: center;
        gap: 0.25rem;
    }
    
    .articles-grid-home {
        grid-template-columns: 1fr;
    }
    
    .page-content-wrapper {
        padding: 1.5rem;
        margin: 1rem 0;
    }
    
    .article-body {
        padding: 1.5rem;
    }
    
    .articles-grid {
        grid-template-columns: 1fr;
    }
    
    .breadcrumbs {
        font-size: 0.85rem;
    }
    
    .breadcrumbs .current {
        display: inline-block;
        max-width: 150px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        vertical-align: bottom;
    }
}
