/* style/news.css */

.page-news {
    font-family: Arial, sans-serif;
    color: #F3F8FF; /* Text Main */
    background-color: #08162B; /* Deep Navy */
}

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

/* Hero Section */
.page-news__hero-section {
    position: relative;
    padding-top: 10px; /* Small top padding, body handles header offset */
    padding-bottom: 40px;
    text-align: center;
    overflow: hidden;
}

.page-news__hero-image-wrapper {
    width: 100%;
    max-height: 700px; /* Limit height for aesthetic */
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

.page-news__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    filter: brightness(0.7); /* Slightly darken image for text readability */
}

.page-news__hero-content {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    padding: 30px 20px;
    z-index: 2;
    color: #F3F8FF; /* Text Main */
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.page-news__main-title {
    font-size: clamp(2.2em, 4vw, 3.2em);
    font-weight: bold;
    margin-bottom: 15px;
    line-height: 1.2;
    color: #F2C14E; /* Gold */
}

.page-news__hero-description {
    font-size: 1.2em;
    line-height: 1.6;
    margin-bottom: 30px;
    color: #AFC4E8; /* Text Secondary */
}

.page-news__hero-cta {
    display: flex;
    justify-content: center;
    gap: 20px;
}

/* Section Titles */
.page-news__section-title {
    font-size: 2.5em;
    font-weight: bold;
    text-align: center;
    margin-bottom: 40px;
    color: #F2C14E; /* Gold */
    padding-top: 40px;
}

/* Buttons */
.page-news__btn-primary,
.page-news__btn-secondary,
.page-news__read-more,
.page-news__view-all-button {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    cursor: pointer;
    text-align: center;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-news__btn-primary {
    background: linear-gradient(180deg, #2B73F6 0%, #1144A6 100%);
    color: #F3F8FF; /* Text Main */
    border: 2px solid #4FA8FF; /* Glow */
    box-shadow: 0 0 15px rgba(79, 168, 255, 0.5);
}

.page-news__btn-primary:hover {
    background: linear-gradient(180deg, #1144A6 0%, #2B73F6 100%);
    box-shadow: 0 0 20px rgba(79, 168, 255, 0.8);
}

.page-news__btn-secondary {
    background-color: transparent;
    color: #F3F8FF; /* Text Main */
    border: 2px solid #1B3357; /* Divider */
}

.page-news__btn-secondary:hover {
    background-color: #1B3357; /* Divider */
    color: #F3F8FF; /* Text Main */
}

.page-news__read-more {
    background-color: #4FA8FF; /* Glow */
    color: #08162B; /* Deep Navy */
    padding: 8px 15px;
    border-radius: 5px;
    font-size: 0.9em;
}

.page-news__read-more:hover {
    background-color: #F2C14E; /* Gold */
}

/* News Grid & Cards */
.page-news__news-grid,
.page-news__promotions-grid,
.page-news__insights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.page-news__news-card,
.page-news__promo-card,
.page-news__insight-card {
    background-color: #10233F; /* Card BG */
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    min-height: 450px;
}

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

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

.page-news__card-content {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.page-news__news-date {
    font-size: 0.9em;
    color: #AFC4E8; /* Text Secondary */
    margin-bottom: 10px;
    display: block;
}

.page-news__card-title {
    font-size: 1.4em;
    font-weight: bold;
    margin-bottom: 15px;
    line-height: 1.3;
}

.page-news__card-title a {
    color: #F3F8FF; /* Text Main */
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-news__card-title a:hover {
    color: #F2C14E; /* Gold */
}

.page-news__news-excerpt,
.page-news__promo-excerpt,
.page-news__insight-excerpt {
    font-size: 1em;
    color: #AFC4E8; /* Text Secondary */
    line-height: 1.5;
    margin-bottom: 20px;
    flex-grow: 1;
}

.page-news__view-all-wrapper {
    text-align: center;
    margin-top: 20px;
    margin-bottom: 40px;
}

/* About Section */
.page-news__about-section {
    padding: 60px 0;
    background-color: #10233F; /* Card BG */
    border-top: 1px solid #1B3357; /* Divider */
    border-bottom: 1px solid #1B3357; /* Divider */
}

.page-news__about-text {
    font-size: 1.1em;
    line-height: 1.7;
    margin-bottom: 20px;
    color: #AFC4E8; /* Text Secondary */
    text-align: justify;
}

/* CTA Section */
.page-news__cta-section {
    padding: 80px 0;
    text-align: center;
}

.page-news__cta-description {
    font-size: 1.2em;
    color: #AFC4E8; /* Text Secondary */
    margin-bottom: 40px;
    line-height: 1.6;
}

.page-news__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-news__main-title {
        font-size: clamp(2em, 5vw, 2.8em);
    }

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

    .page-news__hero-cta {
        flex-direction: column;
        gap: 15px;
        max-width: 300px;
        margin: 0 auto;
    }

    .page-news__btn-primary,
    .page-news__btn-secondary {
        width: 100%;
    }
}

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

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

    .page-news__main-title {
        font-size: clamp(1.8em, 7vw, 2.5em) !important;
        margin-bottom: 10px;
    }

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

    .page-news__hero-cta {
        flex-direction: column !important;
        gap: 10px;
        max-width: 90% !important;
    }

    /* Section Titles */
    .page-news__section-title {
        font-size: 1.8em !important;
        margin-bottom: 30px;
        padding-top: 30px;
    }

    /* General Images & Containers */
    .page-news img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block;
    }
    
    .page-news__container,
    .page-news__hero-content,
    .page-news__news-grid,
    .page-news__promotions-grid,
    .page-news__insights-grid,
    .page-news__hero-cta,
    .page-news__cta-buttons,
    .page-news__news-card,
    .page-news__promo-card,
    .page-news__insight-card,
    .page-news__about-section,
    .page-news__cta-section {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px !important;
        padding-right: 15px !important;
        overflow-x: hidden !important;
    }

    /* Cards */
    .page-news__news-grid,
    .page-news__promotions-grid,
    .page-news__insights-grid {
        grid-template-columns: 1fr !important;
        gap: 20px;
    }

    .page-news__news-card,
    .page-news__promo-card,
    .page-news__insight-card {
        min-height: auto;
    }

    .page-news__news-image,
    .page-news__promo-image,
    .page-news__insight-image {
        height: 180px;
    }

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

    .page-news__news-excerpt,
    .page-news__promo-excerpt,
    .page-news__insight-excerpt {
        font-size: 0.95em;
    }

    /* Buttons & Button Containers */
    .page-news__btn-primary,
    .page-news__btn-secondary,
    .page-news__read-more,
    .page-news__view-all-button,
    .page-news a[class*="button"],
    .page-news a[class*="btn"] {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding-left: 15px !important;
        padding-right: 15px !important;
    }
    
    .page-news__cta-buttons {
        flex-direction: column !important;
        gap: 15px !important;
    }
}