/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
.site-header {
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.header-image-container {
    padding: 40px;
    text-align: center;
    background-color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.header-logo {
    max-width: 900px;
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    object-position: left center;
    margin-right: -30px;
}

.main-nav {
    background-color: #003366;
    padding: 15px 20px;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

.main-nav a {
    color: #fff;
    text-decoration: none;
    padding: 10px 25px;
    margin: 0 10px;
    font-weight: 500;
    transition: background-color 0.3s ease;
    display: inline-block;
    min-width: 200px;
    text-align: center;
}

.main-nav a:hover {
    background-color: #004488;
    border-radius: 4px;
}

/* Main Content */
.main-content {
    padding: 40px 0;
    min-height: 60vh;
}

/* Section Titles */
.section-title {
    font-size: 24px;
    color: #003366;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #0066cc;
    font-weight: 700;
}

.today-section {
    margin-bottom: 60px;
}

.recent-section {
    margin-bottom: 40px;
}

/* No Articles State */
.no-articles {
    background-color: #f9f9f9;
    border: 1px solid #e0e0e0;
    color: #666;
    padding: 40px;
    border-radius: 8px;
    margin: 20px 0;
    text-align: center;
    font-size: 16px;
}

/* Featured Articles Section */
.featured-section {
    margin-bottom: 50px;
}

/* Top Story (Full Width Feature) */
.top-story-container {
    margin-bottom: 40px;
}

.top-story-article {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 6px 15px rgba(0,0,0,0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.top-story-article:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

.top-story-image {
    width: 100%;
    height: 400px;
    overflow: hidden;
    background-color: #f0f0f0;
}

.top-story-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.top-story-article:hover .top-story-image img {
    transform: scale(1.05);
}

.top-story-content-wrapper {
    display: flex;
    gap: 20px;
    padding: 30px;
    align-items: flex-start;
}

.top-story-article .article-meta {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
    gap: 10px;
}

.top-story-article .article-brand-icon {
    width: 90px;
    height: 90px;
    font-size: 28px;
    margin: 0;
}

.top-story-article h1 {
    font-size: 32px;
    margin-bottom: 15px;
    color: #003366;
    line-height: 1.3;
}

.top-story-article .article-blurb {
    font-size: 18px;
    color: #555;
    margin-bottom: 20px;
    line-height: 1.6;
}

.top-story-article .read-more {
    font-size: 16px;
    padding: 12px 30px;
}

/* Top Story (Full Width Feature - First Article) */
.top-story-container {
    margin-bottom: 40px;
}

.hero-article {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 6px 15px rgba(0,0,0,0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.hero-article:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

.hero-article .article-image {
    width: 100%;
    height: 400px;
    overflow: hidden;
    background-color: #f0f0f0;
}

.hero-article .article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.hero-article:hover .article-image img {
    transform: scale(1.05);
}

.hero-content {
    display: flex;
    gap: 20px;
    padding: 30px;
    align-items: flex-start;
}

.hero-article .article-brand-icon {
    width: 90px;
    height: 90px;
    font-size: 28px;
    margin: 0;
}

.hero-article .article-content {
    flex: 1;
}

.hero-article .article-meta {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    margin-bottom: 10px;
    gap: 10px;
}

.hero-article h1 {
    font-size: 32px;
    margin-bottom: 15px;
    color: #003366;
    line-height: 1.3;
}

.hero-article .article-blurb {
    font-size: 18px;
    color: #555;
    margin-bottom: 20px;
    line-height: 1.6;
}

.hero-article .read-more {
    font-size: 16px;
    padding: 12px 30px;
}

/* Grid Container (3x3) */
.grid-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 30px;
}

.featured-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.featured-article {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    cursor: pointer;
}

.featured-article:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

.article-image {
    width: 100%;
    height: 180px;
    overflow: hidden;
    background-color: #f0f0f0;
}

.article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.featured-article:hover .article-image img {
    transform: scale(1.05);
}

/* Brand Icon (Rounded Square) */
.article-brand-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #003366, #0066cc);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: bold;
    font-size: 24px;
    flex-shrink: 0;
    overflow: hidden;
}

.article-brand-icon img,
.brand-icon-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
}

.featured-article .article-content {
    padding: 0 20px 15px 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.featured-article .article-content-wrapper {
    display: flex;
    gap: 15px;
    align-items: flex-start;
    padding: 20px;
}

.featured-article .article-brand-icon {
    width: 80px;
    height: 80px;
    margin: 0;
}

.featured-article .article-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 3px;
}

.article-brand {
    color: #0066cc;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.article-date {
    color: #999;
    font-size: 13px;
    font-weight: 400;
}

.article-meta {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
    gap: 10px;
}

.featured-article h2 {
    font-size: 24px;
    margin-bottom: 15px;
    color: #003366;
    line-height: 1.3;
}

.featured-article .article-blurb {
    font-size: 16px;
    color: #555;
    margin-bottom: 20px;
    line-height: 1.5;
    flex-grow: 1;
}

.read-more {
    display: inline-block;
    color: #0066cc;
    text-decoration: none;
    font-weight: 600;
    padding: 10px 20px;
    border: 2px solid #0066cc;
    border-radius: 4px;
    transition: all 0.3s ease;
    align-self: flex-start;
}

.read-more:hover {
    background-color: #0066cc;
    color: #fff;
}

/* Regular Articles Section */
.regular-section {
    margin-bottom: 50px;
}

.regular-article {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.08);
    transition: box-shadow 0.3s ease;
    display: flex;
    gap: 20px;
    align-items: flex-start;
    cursor: pointer;
}

.regular-article:hover {
    box-shadow: 0 4px 10px rgba(0,0,0,0.12);
}

.regular-article .article-brand-icon {
    width: 70px;
    height: 70px;
    font-size: 20px;
    margin: 0;
}

.regular-article .article-details {
    flex-grow: 1;
}

.regular-article .article-meta {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 0;
    margin-bottom: 5px;
}

.regular-article .article-brand {
    flex-grow: 1;
}

.regular-article .article-date {
    position: absolute;
    right: 20px;
    top: 20px;
}

.regular-article {
    position: relative;
}

.regular-article h3 {
    font-size: 18px;
    margin-bottom: 8px;
    color: #003366;
}

.regular-article .article-blurb {
    font-size: 14px;
    color: #666;
    margin-bottom: 12px;
    line-height: 1.5;
}

.regular-article .read-more {
    font-size: 14px;
    padding: 8px 16px;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin: 40px 0;
}

.pagination-btn {
    background-color: #003366;
    color: #fff;
    border: none;
    padding: 12px 30px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}


.pagination-btn:hover:not(:disabled) {
    background-color: #004488;
}

.pagination-btn:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

.page-info {
    font-size: 16px;
    font-weight: 500;
    color: #333;
}

/* Footer Styles */
.site-footer {
    background-color: #fff;
    color: #333;
    padding: 50px 20px 20px;
    border-top: 1px solid #e0e0e0;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 50px;
    margin-bottom: 40px;
}

.footer-brand .footer-logo {
    max-width: 200px;
    height: auto;
    margin-bottom: 15px;
}

.footer-brand p {
    font-size: 16px;
    margin-bottom: 20px;
    color: #666;
}

.footer-social {
    display: flex;
    gap: 15px;
}

.footer-social a {
    color: #333;
    transition: color 0.3s ease;
}

.footer-social a:hover {
    color: #0066cc;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 30px;
}

.footer-column h4 {
    font-size: 16px;
    margin-bottom: 15px;
    color: #333;
    font-weight: 600;
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: 10px;
}

.footer-column ul li a {
    color: #666;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.footer-column ul li a:hover {
    color: #0066cc;
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 30px;
    border-top: 1px solid #e0e0e0;
    text-align: center;
}

.footer-bottom p {
    font-size: 14px;
    color: #666;
}

.footer-bottom a {
    color: #0066cc;
    text-decoration: none;
}

.footer-bottom a:hover {
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 992px) {
    .grid-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }

    .header-image-container {
        padding: 20px 15px;
    }

    .header-logo {
        max-width: 100%;
        margin-right: 0;
    }

    .main-nav {
        padding: 10px 15px;
    }

    .main-nav a {
        display: block;
        margin: 5px 0;
        padding: 8px 15px;
    }

    .main-content {
        padding: 20px 0;
    }

    .section-title {
        font-size: 20px;
    }

    /* Hero Article Mobile */
    .hero-article .article-image {
        height: 200px;
    }

    .hero-content {
        flex-direction: column;
        padding: 20px;
        gap: 15px;
    }

    .hero-article .article-brand-icon {
        width: 60px;
        height: 60px;
        font-size: 20px;
    }

    .hero-article h1 {
        font-size: 22px;
        margin-bottom: 10px;
    }

    .hero-article .article-blurb {
        font-size: 15px;
        margin-bottom: 15px;
    }

    .hero-article .read-more {
        padding: 10px 20px;
        font-size: 14px;
    }

    /* Grid Cards Mobile */
    .grid-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .featured-grid {
        grid-template-columns: 1fr;
    }

    .featured-article .article-content-wrapper {
        padding: 15px;
        gap: 12px;
    }

    .featured-article .article-brand-icon {
        width: 60px;
        height: 60px;
    }

    .featured-article h2 {
        font-size: 18px;
        margin-bottom: 10px;
    }

    .featured-article .article-blurb {
        font-size: 14px;
        margin-bottom: 15px;
    }

    .featured-article .article-content {
        padding: 0 15px 15px 15px;
    }

    /* Regular Articles Mobile */
    .regular-article {
        flex-direction: row;
        padding: 15px;
        gap: 15px;
    }

    .regular-article .article-brand-icon {
        width: 50px;
        height: 50px;
        font-size: 16px;
    }

    .regular-article .article-date {
        position: static;
        display: block;
        margin-top: 5px;
    }

    .regular-article .article-meta {
        flex-direction: column;
        align-items: flex-start;
    }

    .regular-article h3 {
        font-size: 16px;
    }

    .regular-article .article-blurb {
        font-size: 13px;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .regular-article .read-more {
        padding: 6px 12px;
        font-size: 13px;
    }

    /* Load More Button Mobile */
    .load-more-btn {
        width: auto;
        padding: 12px 30px;
        font-size: 14px;
    }

    /* Footer Mobile */
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .footer-links {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .footer-social img {
        width: 35px;
        height: 35px;
    }

    .pagination {
        flex-direction: column;
        gap: 15px;
    }

    .pagination-btn {
        width: 100%;
        max-width: 300px;
    }
}

@media (max-width: 480px) {
    .header-image-container {
        padding: 15px 10px;
    }

    .header-logo {
        max-width: 100%;
    }

    .section-title {
        font-size: 18px;
    }

    /* Very small screens - stack regular article */
    .regular-article {
        flex-direction: column;
        align-items: flex-start;
    }

    .regular-article .article-brand-icon {
        width: 50px;
        height: 50px;
    }

    .footer-links {
        grid-template-columns: 1fr;
    }

    .footer-column {
        text-align: center;
    }

    .footer-column ul {
        text-align: center;
    }

    .footer-brand {
        text-align: center;
    }

    .footer-social {
        justify-content: center;
    }
}

/* Loading State */
.loading {
    text-align: center;
    padding: 50px;
    font-size: 18px;
    color: #666;
}

/* Error State */
.error {
    background-color: #fee;
    border: 1px solid #fcc;
    color: #c33;
    padding: 20px;
    border-radius: 4px;
    margin: 20px 0;
    text-align: center;
}

/* Hidden Articles (Load More) */
.hidden-article {
    display: none !important;
}

/* Load More Button */
.load-more-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 40px 0;
}

.load-more-btn {
    padding: 15px 50px;
    font-size: 16px;
    text-decoration: none;
}

.load-more-btn:hover {
    transform: translateY(-2px);
}
