/* style/latest-news.css */

/* Base styles for the page content, ensuring light text on a dark body background */
.page-latest-news {
    color: #f0f0f0; /* Light text for dark background */
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    background: var(--dark-bg-1); /* Inherited from shared.css, assumed dark */
}

/* Fixed navigation bar spacing for the first content section */
.page-latest-news__hero-banner {
    padding-top: 120px; /* Desktop padding to clear fixed header */
    padding-bottom: 60px;
    background: linear-gradient(135deg, #2a2a2a, #1a1a1a); /* Dark gradient for hero */
    text-align: center;
}

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

.page-latest-news__main-title {
    font-size: 42px;
    color: #FFD700; /* Golden color for main title */
    margin-bottom: 20px;
    font-weight: 700;
    line-height: 1.2;
}

.page-latest-news__hero-description {
    font-size: 18px;
    color: #e0e0e0;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-latest-news__hero-button {
    display: inline-block;
    background: #DC143C; /* Red accent color */
    color: #ffffff;
    padding: 15px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 700;
    font-size: 18px;
    transition: background-color 0.3s ease, transform 0.3s ease;
    border: none;
    cursor: pointer;
}

.page-latest-news__hero-button:hover {
    background: #c01230;
    transform: translateY(-2px);
}

.page-latest-news__section {
    padding: 60px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1); /* Subtle separator */
}

.page-latest-news__section-title {
    font-size: 36px;
    color: #FFD700; /* Golden color for section titles */
    text-align: center;
    margin-bottom: 40px;
    font-weight: 700;
}

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

.page-latest-news__card {
    background: rgba(255, 255, 255, 0.08); /* Slightly transparent white for cards */
    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;
    border: 1px solid rgba(255, 215, 0, 0.3); /* Golden border */
}

.page-latest-news__card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

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

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

.page-latest-news__card-title {
    font-size: 22px;
    color: #FFD700;
    margin-bottom: 10px;
    line-height: 1.3;
}

.page-latest-news__card-title a {
    color: #FFD700;
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-latest-news__card-title a:hover {
    color: #fff;
}

.page-latest-news__card-date {
    font-size: 14px;
    color: #bbb;
    margin-bottom: 15px;
}

.page-latest-news__card-text {
    font-size: 16px;
    color: #e0e0e0;
    margin-bottom: 20px;
    flex-grow: 1;
}

.page-latest-news__read-more-link {
    display: inline-block;
    color: #DC143C;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
    margin-top: auto; /* Push to bottom */
}

.page-latest-news__read-more-link:hover {
    color: #FFD700;
}

/* Promotions Section */
.page-latest-news__promo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: 30px;
}

.page-latest-news__promo-card {
    background: rgba(255, 255, 255, 0.08);
    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: row; /* Horizontal layout */
    border: 1px solid rgba(255, 215, 0, 0.3);
}

.page-latest-news__promo-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-latest-news__promo-image {
    width: 200px; /* Fixed width for promo image */
    height: auto;
    object-fit: cover;
    display: block;
    flex-shrink: 0;
}

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

.page-latest-news__promo-title {
    font-size: 24px;
    color: #FFD700;
    margin-bottom: 10px;
    line-height: 1.3;
}

.page-latest-news__promo-text {
    font-size: 16px;
    color: #e0e0e0;
    margin-bottom: 20px;
    flex-grow: 1;
}

.page-latest-news__promo-button {
    display: inline-block;
    background: #DC143C;
    color: #ffffff;
    padding: 12px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: background-color 0.3s ease, transform 0.3s ease;
    border: none;
    cursor: pointer;
    margin-top: auto;
}

.page-latest-news__promo-button:hover {
    background: #c01230;
    transform: translateY(-2px);
}

/* Guides &amp; Tips Section (Article List) */
.page-latest-news__article-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.page-latest-news__article-item {
    background: rgba(255, 255, 255, 0.08);
    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;
    border: 1px solid rgba(255, 215, 0, 0.3);
}

.page-latest-news__article-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-latest-news__article-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

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

.page-latest-news__article-title {
    font-size: 20px;
    color: #FFD700;
    margin-bottom: 10px;
    line-height: 1.3;
}

.page-latest-news__article-title a {
    color: #FFD700;
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-latest-news__article-title a:hover {
    color: #fff;
}

.page-latest-news__article-date {
    font-size: 14px;
    color: #bbb;
    margin-bottom: 15px;
}

.page-latest-news__article-excerpt {
    font-size: 16px;
    color: #e0e0e0;
    margin-bottom: 20px;
    flex-grow: 1;
}

/* FAQ Section */
.page-latest-news__faq-list {
    max-width: 900px;
    margin: 0 auto;
}

.page-latest-news__faq-item {
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.05); /* Slightly darker background for FAQ items */
    border: 1px solid rgba(255, 215, 0, 0.2);
}

.page-latest-news__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    background: rgba(255, 255, 255, 0.08); /* Lighter background for question */
    border-radius: 8px;
    cursor: pointer;
    user-select: none;
    transition: background-color 0.3s ease, border-color 0.3s ease;
    position: relative;
}

.page-latest-news__faq-question:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 215, 0, 0.4);
}

.page-latest-news__faq-question h3 {
    margin: 0;
    padding: 0;
    flex: 1;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.5;
    color: #FFD700; /* Golden for question text */
    pointer-events: none; /* Prevent h3 from blocking click */
}

.page-latest-news__faq-toggle {
    font-size: 28px;
    font-weight: bold;
    line-height: 1;
    color: #e0e0e0;
    transition: transform 0.3s ease, color 0.3s ease;
    flex-shrink: 0;
    margin-left: 15px;
    pointer-events: none; /* Prevent toggle from blocking click */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
}

.page-latest-news__faq-item.active .page-latest-news__faq-toggle {
    color: #FFD700;
    transform: rotate(45deg); /* Rotate for 'x' effect, or keep '−' */
}

.page-latest-news__faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease, opacity 0.4s ease;
    padding: 0 25px;
    opacity: 0;
}

.page-latest-news__faq-item.active .page-latest-news__faq-answer {
    max-height: 2000px !important; /* Sufficiently large for content */
    padding: 20px 25px !important;
    opacity: 1;
    background: rgba(255, 255, 255, 0.03); /* Darker background for answer */
    border-radius: 0 0 8px 8px;
    color: #e0e0e0;
}

.page-latest-news__faq-answer p {
    margin-bottom: 10px;
    color: #e0e0e0;
}

/* Contact Section */
.page-latest-news__contact {
    text-align: center;
}

.page-latest-news__contact-text {
    font-size: 18px;
    color: #e0e0e0;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-latest-news__contact-list {
    list-style: none;
    padding: 0;
    margin-bottom: 30px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.page-latest-news__contact-list li {
    font-size: 18px;
    color: #e0e0e0;
}

.page-latest-news__contact-list a {
    color: #FFD700;
    text-decoration: none;
    transition: color 0.3s ease;
    font-weight: 600;
}

.page-latest-news__contact-list a:hover {
    color: #DC143C;
}

.page-latest-news__contact-note {
    font-size: 16px;
    color: #bbb;
}

/* Utility classes */
.text-highlight {
    color: #FFD700;
    font-weight: bold;
}

/* Responsive design */
@media (max-width: 1024px) {
    .page-latest-news__main-title {
        font-size: 38px;
    }
    .page-latest-news__section-title {
        font-size: 32px;
    }
    .page-latest-news__promo-grid {
        grid-template-columns: 1fr; /* Stack promo cards */
    }
    .page-latest-news__promo-card {
        flex-direction: column; /* Stack image and content */
    }
    .page-latest-news__promo-image {
        width: 100%;
        height: 250px; /* Adjust height for stacked layout */
    }
}

@media (max-width: 768px) {
    /* Mobile padding for fixed header */
    .page-latest-news__hero-banner {
        padding-top: 100px;
        padding-bottom: 40px;
    }

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

    .page-latest-news__main-title {
        font-size: 32px;
    }

    .page-latest-news__hero-description {
        font-size: 16px;
    }

    .page-latest-news__hero-button {
        padding: 12px 25px;
        font-size: 16px;
    }

    .page-latest-news__section {
        padding: 40px 0;
    }

    .page-latest-news__section-title {
        font-size: 28px;
        margin-bottom: 30px;
    }

    .page-latest-news__grid,
    .page-latest-news__article-list {
        grid-template-columns: 1fr; /* Stack cards */
        gap: 20px;
    }

    .page-latest-news__card-image,
    .page-latest-news__article-image {
        height: 180px;
    }

    .page-latest-news__card-title,
    .page-latest-news__article-title {
        font-size: 18px;
    }

    .page-latest-news__promo-image {
        height: 200px;
    }

    .page-latest-news__promo-title {
        font-size: 20px;
    }

    .page-latest-news__faq-question {
        padding: 15px 20px;
    }

    .page-latest-news__faq-question h3 {
        font-size: 16px;
    }

    .page-latest-news__faq-toggle {
        font-size: 24px;
        width: 28px;
        height: 28px;
    }

    .page-latest-news__faq-answer {
        padding: 0 20px;
    }
    .page-latest-news__faq-item.active .page-latest-news__faq-answer {
        padding: 15px 20px !important;
    }

    .page-latest-news__contact-text,
    .page-latest-news__contact-list li {
        font-size: 16px;
    }

    /* Mobile image responsive override (important) */
    .page-latest-news img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
    
    .page-latest-news__section,
    .page-latest-news__card,
    .page-latest-news__container,
    .page-latest-news__promo-card,
    .page-latest-news__article-item,
    .page-latest-news__faq-item {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        /* Padding handled by .page-latest-news__container for sections */
    }
}

@media (max-width: 480px) {
    .page-latest-news__promo-card {
        flex-direction: column;
    }
    .page-latest-news__promo-image {
        width: 100%;
        height: 180px;
    }
}