.page-news {
    background-color: #0A0A0A; /* Custom background color */
    color: #FFF6D6; /* Custom text color for main content */
    font-family: Arial, sans-serif;
    line-height: 1.6;
}

/* Hero Section */
.page-news__hero-section {
    display: flex;
    flex-direction: column; /* Ensure image is above text */
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 10px 20px 40px; /* Small top padding, then more for content */
    position: relative;
    overflow: hidden;
    max-width: 1200px;
    margin: 0 auto;
}

.page-news__hero-image {
    width: 100%;
    max-width: 1200px; /* Adjust based on typical display */
    height: auto;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 30px; /* Spacing between image and text */
    box-shadow: 0 0 20px rgba(255, 211, 107, 0.5); /* Glow effect */
}

.page-news__hero-content {
    max-width: 900px;
    margin-bottom: 40px;
}

.page-news__main-title {
    font-size: clamp(2em, 4vw, 3.2em); /* Responsive font size for H1 */
    font-weight: 700;
    color: #FFD36B; /* Accent color for main title */
    margin-bottom: 20px;
    line-height: 1.2;
    text-shadow: 0 0 10px rgba(255, 211, 107, 0.7);
}

.page-news__description,
.page-news__intro-text {
    font-size: 1.1em;
    margin-bottom: 30px;
    color: #FFF6D6; /* Main text color */
}

/* CTA Buttons */
.page-news__cta-buttons {
    display: flex;
    flex-wrap: wrap; /* Allow wrapping on small screens */
    gap: 20px;
    justify-content: center;
    width: 100%; /* Ensure container takes full width for responsive buttons */
    max-width: 600px; /* Limit button group width */
    margin: 0 auto;
    box-sizing: border-box;
    padding: 0 15px; /* Add padding to prevent overflow */
}

.page-news__btn-primary,
.page-news__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    text-align: center; /* Center text in case of wrapping */
    max-width: 100%; /* Ensure button adapts to container */
    box-sizing: border-box;
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Break long words */
}

.page-news__btn-primary {
    background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%); /* Custom button gradient */
    color: #111111; /* Dark text for light button */
    border: none;
}

.page-news__btn-primary:hover {
    background: linear-gradient(180deg, #FFD36B 0%, #F2C14E 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-news__btn-secondary {
    background: #111111; /* Card BG color */
    color: #FFD36B; /* Accent color for text */
    border: 2px solid #F2C14E; /* Main color for border */
}

.page-news__btn-secondary:hover {
    background: #F2C14E;
    color: #111111;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* Latest Articles Section */
.page-news__latest-articles-section,
.page-news__cta-section {
    padding: 60px 20px;
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.page-news__section-title {
    font-size: clamp(1.8em, 3.5vw, 2.8em);
    color: #FFD36B;
    margin-bottom: 40px;
    font-weight: 600;
    text-shadow: 0 0 8px rgba(255, 211, 107, 0.5);
}

.page-news__article-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.page-news__article-card {
    background-color: #111111; /* Card BG color */
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    color: #FFF6D6; /* Main text color */
}

.page-news__article-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
}

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

.page-news__article-image {
    width: 100%;
    height: 200px; /* Fixed height for consistency */
    object-fit: cover;
    display: block;
}

.page-news__article-content {
    padding: 20px;
    text-align: left;
    flex-grow: 1; /* Allow content to grow and push read more to bottom */
    display: flex;
    flex-direction: column;
}

.page-news__article-title {
    font-size: 1.4em;
    color: #F2C14E; /* Main color for title */
    margin-bottom: 10px;
    line-height: 1.3;
}

.page-news__article-date {
    font-size: 0.9em;
    color: #999; /* Lighter color for date */
    margin-bottom: 15px;
}

.page-news__article-excerpt {
    font-size: 1em;
    color: #FFF6D6;
    margin-bottom: 20px;
    flex-grow: 1; /* Allow excerpt to take available space */
}

.page-news__read-more {
    display: inline-block;
    color: #FFD36B;
    font-weight: bold;
    text-decoration: none;
    align-self: flex-start; /* Align to the left */
}

.page-news__read-more:hover {
    text-decoration: underline;
}

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

/* Common elements */
.page-news h2, .page-news h3, .page-news h4 {
    color: #FFD36B; /* Ensure headings have good contrast */
}

.page-news p, .page-news li {
    color: #FFF6D6; /* Ensure paragraphs and list items have good contrast */
}

/* Responsive styles */
@media (max-width: 1024px) {
    .page-news__hero-image {
        max-width: 100%;
    }
    .page-news__main-title {
        font-size: clamp(2em, 5vw, 3em);
    }
    .page-news__section-title {
        font-size: clamp(1.6em, 4vw, 2.5em);
    }
    .page-news__article-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

@media (max-width: 768px) {
    /* General content area padding */
    .page-news__hero-section,
    .page-news__latest-articles-section,
    .page-news__cta-section {
        padding-left: 15px;
        padding-right: 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    /* Hero Section */
    .page-news__hero-section {
        padding-top: 10px !important; /* Small top padding */
    }
    .page-news__hero-image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
    .page-news__main-title {
        font-size: clamp(1.8em, 7vw, 2.5em);
    }
    .page-news__description,
    .page-news__intro-text {
        font-size: 1em;
    }

    /* CTA Buttons */
    .page-news__cta-buttons {
        flex-direction: column; /* Stack buttons vertically */
        gap: 15px;
        max-width: 100% !important;
        width: 100% !important;
        padding: 0 15px !important; /* Ensure padding for buttons */
    }
    .page-news__btn-primary,
    .page-news__btn-secondary {
        max-width: 100% !important;
        width: 100% !important;
        padding: 12px 20px !important;
        font-size: 1em !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        box-sizing: border-box !important;
    }

    /* Latest Articles Section */
    .page-news__section-title {
        font-size: clamp(1.5em, 6vw, 2em);
    }
    .page-news__article-grid {
        grid-template-columns: 1fr; /* Single column layout */
        gap: 20px;
    }
    .page-news__article-image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
    .page-news__article-title {
        font-size: 1.2em;
    }
    .page-news__article-excerpt {
        font-size: 0.95em;
    }

    /* Image responsiveness for all img tags */
    .page-news img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-news__section,
    .page-news__card,
    .page-news__container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
}