/* style/news.css */
:root {
    --primary-color: #FFD700;
    --secondary-color: #1A1A1A;
    --text-light: #f0f0f0;
    --text-dark: #333333;
    --button-hover-color: #e6c200;
    --button-text-color: #1A1A1A; /* Text on gold button */
    --card-bg: #2a2a2a;
    --border-color: #444;
}

.page-news {
    font-family: 'Arial', sans-serif;
    background-color: var(--secondary-color); /* Dark background from shared */
    color: var(--text-light); /* Light text for dark background */
    line-height: 1.6;
    padding-top: var(--header-offset, 120px);
}

.page-news__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Hero Section */
.page-news__hero-section {
    position: relative;
    width: 100%;
    height: 600px; /* Fixed height for desktop */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    margin-bottom: 60px;
}

.page-news__hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.page-news__hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.5));
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
}

.page-news__hero-content {
    max-width: 800px;
    color: #ffffff;
    z-index: 3;
    padding: 20px;
}

.page-news__main-title {
    font-size: 3.5em;
    margin-bottom: 20px;
    color: var(--primary-color);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    line-height: 1.2;
}

.page-news__hero-description {
    font-size: 1.2em;
    margin-bottom: 40px;
    line-height: 1.8;
    color: var(--text-light);
}

.page-news__cta-button {
    display: inline-block;
    padding: 15px 40px;
    background-color: var(--primary-color);
    color: var(--button-text-color);
    text-decoration: none;
    border-radius: 50px;
    font-size: 1.2em;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
    border: none;
    cursor: pointer;
}

.page-news__cta-button:hover {
    background-color: var(--button-hover-color);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

/* Section Titles */
.page-news__section-title {
    font-size: 2.5em;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 15px;
    padding-top: 40px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.page-news__section-subtitle {
    font-size: 1.1em;
    color: var(--text-light);
    text-align: center;
    margin-bottom: 50px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Featured News Section */
.page-news__featured-news-section {
    padding: 60px 0;
    background-color: var(--secondary-color);
}

.page-news__featured-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.page-news__featured-item {
    background-color: var(--card-bg);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.page-news__featured-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.page-news__featured-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.page-news__featured-image {
    width: 100%;
    height: 220px; /* Fixed height for consistency */
    object-fit: cover;
    border-bottom: 1px solid var(--border-color);
}

.page-news__featured-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.page-news__featured-title {
    font-size: 1.4em;
    color: var(--primary-color);
    margin-bottom: 15px;
    line-height: 1.4;
}

.page-news__featured-excerpt {
    font-size: 0.95em;
    color: var(--text-light);
    margin-bottom: 20px;
    flex-grow: 1;
}

.page-news__read-more {
    display: inline-flex;
    align-items: center;
    color: var(--primary-color);
    font-weight: bold;
    font-size: 0.9em;
    transition: color 0.3s ease;
}

.page-news__read-more:hover {
    color: var(--button-hover-color);
}

.page-news__arrow {
    margin-left: 8px;
    transition: transform 0.3s ease;
}

.page-news__featured-item:hover .page-news__arrow {
    transform: translateX(5px);
}

/* Latest Articles Section */
.page-news__latest-articles-section {
    padding: 60px 0;
    background-color: var(--secondary-color);
}

.page-news__article-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 25px;
}

.page-news__article-item {
    background-color: var(--card-bg);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: row;
    align-items: center;
}

.page-news__article-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.25);
}

.page-news__article-link {
    display: flex;
    width: 100%;
    text-decoration: none;
    color: inherit;
    align-items: center;
}

.page-news__article-thumbnail {
    width: 250px;
    height: 180px;
    object-fit: cover;
    flex-shrink: 0;
    border-right: 1px solid var(--border-color);
}

.page-news__article-content {
    padding: 20px 25px;
    flex-grow: 1;
}

.page-news__article-title {
    font-size: 1.25em;
    color: var(--primary-color);
    margin-bottom: 10px;
    line-height: 1.3;
}

.page-news__article-excerpt {
    font-size: 0.9em;
    color: var(--text-light);
    margin-bottom: 15px;
}

.page-news__article-meta {
    font-size: 0.8em;
    color: #999;
    display: flex;
    justify-content: space-between;
}

.page-news__article-category {
    background-color: #333;
    padding: 4px 10px;
    border-radius: 5px;
    color: #eee;
    font-weight: bold;
}

/* Pagination */
.page-news__pagination {
    display: flex;
    justify-content: center;
    margin-top: 50px;
    gap: 10px;
}

.page-news__pagination-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: var(--card-bg);
    color: var(--primary-color);
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease;
    border: 1px solid var(--border-color);
}

.page-news__pagination-link:hover:not(.page-news__pagination-link--active):not(.page-news__pagination-link--disabled) {
    background-color: var(--primary-color);
    color: var(--button-text-color);
}

.page-news__pagination-link--active {
    background-color: var(--primary-color);
    color: var(--button-text-color);
    cursor: default;
}

.page-news__pagination-link--disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Newsletter Section */
.page-news__newsletter-section {
    padding: 80px 0;
    background-color: #1a1a1a;
    text-align: center;
    border-top: 1px solid var(--border-color);
}

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

.page-news__newsletter-title {
    font-size: 2.2em;
    color: var(--primary-color);
    margin-bottom: 20px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.page-news__newsletter-description {
    font-size: 1.1em;
    color: var(--text-light);
    margin-bottom: 30px;
}

.page-news__newsletter-form {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
}

.page-news__newsletter-input {
    padding: 15px 20px;
    border-radius: 50px;
    border: 1px solid var(--primary-color);
    background-color: #333;
    color: #fff;
    font-size: 1em;
    width: 60%;
    max-width: 400px;
    box-sizing: border-box;
}

.page-news__newsletter-input::placeholder {
    color: #aaa;
}

.page-news__newsletter-button {
    padding: 15px 30px;
    background-color: var(--primary-color);
    color: var(--button-text-color);
    border: none;
    border-radius: 50px;
    font-size: 1em;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-news__newsletter-button:hover {
    background-color: var(--button-hover-color);
    transform: translateY(-2px);
}

.page-news__cta-button--bottom {
    margin-top: 20px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-news__main-title {
        font-size: 3em;
    }

    .page-news__hero-description {
        font-size: 1.1em;
    }

    .page-news__section-title {
        font-size: 2em;
    }

    .page-news__featured-image {
        height: 180px;
    }

    .page-news__article-thumbnail {
        width: 200px;
        height: 150px;
    }
}

@media (max-width: 768px) {
    .page-news {
        padding-top: var(--header-offset, 120px) !important;
    }

    .page-news__hero-section {
        height: 450px;
        margin-bottom: 40px;
    }

    .page-news__main-title {
        font-size: 2.2em;
        margin-bottom: 15px;
    }

    .page-news__hero-description {
        font-size: 1em;
        margin-bottom: 30px;
    }

    .page-news__cta-button {
        padding: 12px 30px;
        font-size: 1em;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    .page-news__container {
        padding: 0 15px;
    }

    .page-news__section-title {
        font-size: 1.8em;
        padding-top: 30px;
    }

    .page-news__section-subtitle {
        font-size: 0.9em;
        margin-bottom: 30px;
    }

    .page-news__featured-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-news__featured-image {
        height: 200px;
    }

    .page-news__featured-content {
        padding: 20px;
    }

    .page-news__featured-title {
        font-size: 1.2em;
    }

    .page-news__featured-excerpt {
        font-size: 0.85em;
    }

    .page-news__latest-articles-section {
        padding: 40px 0;
    }

    .page-news__article-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .page-news__article-thumbnail {
        width: 100% !important;
        height: auto !important;
        max-width: 100% !important;
        border-right: none;
        border-bottom: 1px solid var(--border-color);
    }

    .page-news__article-content {
        padding: 20px;
        width: 100%;
        box-sizing: border-box;
    }

    .page-news__newsletter-section {
        padding: 60px 0;
    }

    .page-news__newsletter-title {
        font-size: 1.8em;
    }

    .page-news__newsletter-description {
        font-size: 0.95em;
    }

    .page-news__newsletter-form {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }

    .page-news__newsletter-input {
        width: 90%;
        max-width: none;
    }

    .page-news__newsletter-button {
        width: 90%;
        max-width: none;
    }

    /* Mobile image and video overflow prevention */
    .page-news img,
    .page-news video {
        max-width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    .page-news__hero-section,
    .page-news__featured-news-section,
    .page-news__latest-articles-section,
    .page-news__newsletter-section,
    .page-news__container,
    .page-news__featured-item,
    .page-news__article-item,
    .page-news__newsletter-content,
    .page-news__newsletter-form {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow-x: hidden !important; /* Ensure no horizontal scroll */
    }

    .page-news__hero-overlay,
    .page-news__hero-content {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding: 0 15px;
    }

    .page-news__cta-buttons {
        display: flex;
        flex-direction: column;
        gap: 10px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding: 0 15px;
    }

    .page-news__cta-button {
        margin: 0 auto; /* Center button if not full width */
    }
}

@media (max-width: 480px) {
    .page-news__main-title {
        font-size: 1.8em;
    }

    .page-news__hero-section {
        height: 350px;
    }

    .page-news__cta-button {
        font-size: 0.9em;
        padding: 10px 20px;
    }

    .page-news__section-title {
        font-size: 1.5em;
    }

    .page-news__featured-image {
        height: 150px;
    }

    .page-news__article-title {
        font-size: 1.1em;
    }

    .page-news__article-excerpt {
        font-size: 0.8em;
    }

    .page-news__newsletter-title {
        font-size: 1.5em;
    }
}