/* style/news.css */

:root {
    --primary-color: #C91F17;
    --secondary-color: #E53935;
    --button-gradient: linear-gradient(180deg, #FFD86A 0%, #E6B800 100%);
    --card-bg-color: #D32F2F;
    --background-dark-red: #B71C1C;
    --text-main-color: #FFF5E1;
    --glow-color: #FFCC66;
    --gold-color: #F4D34D;
    --deep-red-color: #7A0E0E;
}

.page-news {
    font-family: Arial, sans-serif;
    color: var(--text-main-color); /* Default text color for the page */
    background-color: var(--background-dark-red); /* Overall page background */
}

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

.page-news__hero-section {
    position: relative;
    width: 100%;
    overflow: hidden;
    padding-top: 10px; /* Small top padding, assuming shared.css handles body padding-top */
    padding-bottom: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.page-news__hero-image-wrapper {
    width: 100%;
    max-height: 500px;
    overflow: hidden;
}

.page-news__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    object-position: center;
}

.page-news__hero-content {
    position: relative;
    z-index: 1;
    padding: 20px;
    max-width: 900px;
    margin-top: -100px; /* Pull content slightly over the image for visual flow, without overlapping text on image */
    background-color: rgba(var(--deep-red-color), 0.8); /* Semi-transparent background for readability */
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.page-news__main-title {
    font-size: clamp(2.2rem, 4vw, 3.5rem);
    color: var(--gold-color);
    margin-bottom: 15px;
    font-weight: 700;
    line-height: 1.2;
}

.page-news__description {
    font-size: 1.1rem;
    color: var(--text-main-color);
    margin-bottom: 30px;
    line-height: 1.6;
}

.page-news__cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.page-news__btn-primary,
.page-news__btn-secondary {
    display: inline-block;
    padding: 14px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-news__btn-primary {
    background: var(--button-gradient);
    color: #333333; /* Dark text for gold button */
    border: none;
    box-shadow: 0 5px 15px rgba(255, 215, 0, 0.4);
}

.page-news__btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(255, 215, 0, 0.6);
}

.page-news__btn-secondary {
    background: var(--deep-red-color);
    color: var(--text-main-color);
    border: 2px solid var(--gold-color);
}

.page-news__btn-secondary:hover {
    background: var(--gold-color);
    color: var(--deep-red-color);
    transform: translateY(-3px);
}

.page-news__section-title {
    font-size: clamp(1.8rem, 3.5vw, 2.8rem);
    color: var(--gold-color);
    text-align: center;
    margin-bottom: 20px;
    font-weight: 700;
    position: relative;
    padding-bottom: 10px;
}

.page-news__section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: var(--gold-color);
    border-radius: 2px;
}

.page-news__section-description {
    font-size: 1.05rem;
    color: var(--text-main-color);
    text-align: center;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.page-news__latest-news-section,
.page-news__industry-insights-section {
    padding: 60px 0;
    background-color: var(--background-dark-red);
}

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

.page-news__news-card,
.page-news__insight-card {
    background-color: var(--card-bg-color);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.page-news__news-card:hover,
.page-news__insight-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.6);
}

.page-news__news-card-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
}

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

.page-news__news-card-title,
.page-news__insight-card-title {
    font-size: 1.4rem;
    margin-bottom: 10px;
    line-height: 1.4;
    flex-grow: 1;
}

.page-news__news-card-title a,
.page-news__insight-card-title a {
    color: var(--gold-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-news__news-card-title a:hover,
.page-news__insight-card-title a:hover {
    color: var(--text-main-color);
}

.page-news__news-card-meta,
.page-news__insight-card-meta {
    font-size: 0.9rem;
    color: rgba(var(--text-main-color), 0.7);
    margin-bottom: 15px;
}

.page-news__news-card-excerpt,
.page-news__insight-card-excerpt {
    font-size: 1rem;
    color: var(--text-main-color);
    margin-bottom: 20px;
    line-height: 1.5;
}

.page-news__news-card-link {
    display: inline-block;
    color: var(--gold-color);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
    margin-top: auto; /* Push link to bottom */
}

.page-news__news-card-link:hover {
    color: var(--text-main-color);
}

.page-news__view-all-button-container {
    text-align: center;
    margin-top: 50px;
}

.page-news__cta-section {
    background-color: var(--deep-red-color);
    padding: 80px 0;
    text-align: center;
}

.page-news__cta-content {
    max-width: 800px;
}

.page-news__cta-title {
    font-size: clamp(2rem, 4vw, 3rem);
    color: var(--gold-color);
    margin-bottom: 20px;
    font-weight: 700;
}

.page-news__cta-description {
    font-size: 1.1rem;
    color: var(--text-main-color);
    margin-bottom: 40px;
    line-height: 1.6;
}

/* General image styling */
.page-news img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-news__hero-content {
        margin-top: -80px;
    }

    .page-news__main-title {
        font-size: clamp(2rem, 4vw, 3rem);
    }

    .page-news__description {
        font-size: 1rem;
    }

    .page-news__news-card-title, .page-news__insight-card-title {
        font-size: 1.3rem;
    }
}

@media (max-width: 768px) {
    .page-news__hero-section {
        padding-top: 10px !important;
        padding-bottom: 30px;
    }

    .page-news__hero-image-wrapper {
        max-height: 300px;
    }

    .page-news__hero-content {
        margin-top: -60px;
        padding: 15px;
    }

    .page-news__main-title {
        font-size: clamp(1.8rem, 5vw, 2.5rem);
    }

    .page-news__description {
        font-size: 0.95rem;
        margin-bottom: 20px;
    }

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

    .page-news__btn-primary,
    .page-news__btn-secondary {
        width: 100% !important;
        max-width: 100% !important;
        padding: 12px 20px;
        font-size: 1rem;
        white-space: normal !important;
        word-wrap: break-word !important;
        box-sizing: border-box !important;
    }

    .page-news__section-title {
        font-size: clamp(1.5rem, 5vw, 2.2rem);
        margin-bottom: 15px;
    }

    .page-news__section-description {
        font-size: 0.95rem;
        margin-bottom: 30px;
    }

    .page-news__latest-news-section,
    .page-news__industry-insights-section {
        padding: 40px 0;
    }

    .page-news__news-grid,
    .page-news__insights-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .page-news__news-card-image {
        height: 180px;
    }

    .page-news__news-card-content {
        padding: 20px;
    }

    .page-news__news-card-title, .page-news__insight-card-title {
        font-size: 1.2rem;
    }

    .page-news__news-card-meta, .page-news__insight-card-meta {
        font-size: 0.85rem;
    }

    .page-news__news-card-excerpt, .page-news__insight-card-excerpt {
        font-size: 0.95rem;
    }

    .page-news__view-all-button-container {
        margin-top: 40px;
    }

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

    .page-news__cta-title {
        font-size: clamp(1.8rem, 5vw, 2.5rem);
    }

    .page-news__cta-description {
        font-size: 1rem;
        margin-bottom: 30px;
    }

    /* General image and container responsive styles */
    .page-news img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        box-sizing: border-box !important;
    }

    .page-news__container,
    .page-news__hero-section,
    .page-news__latest-news-section,
    .page-news__industry-insights-section,
    .page-news__cta-section,
    .page-news__news-card,
    .page-news__insight-card {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow-x: hidden;
    }
    .page-news__hero-content {
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-news__cta-buttons {
        overflow: hidden;
    }
}