/* style/news-daily-update.css */
.page-news-daily-update {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333333; /* Dark text for light background */
    background-color: var(--secondary-color); /* Matches body background */
}

/* --- Hero Section --- */
.page-news-daily-update__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 20px;
    padding-top: var(--header-offset, 120px); /* Ensure space for fixed header */
    background-color: #017439; /* Brand primary color for hero background */
    color: #ffffff; /* White text for dark background */
    overflow: hidden; /* Prevent image overflow */
}

.page-news-daily-update__hero-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 30px;
}

.page-news-daily-update__hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 100%;
    max-width: 800px;
}

.page-news-daily-update__hero-content h1 {
    font-size: 44px;
    margin-bottom: 20px;
    color: #FFFF00; /* Custom color for important titles/promos */
    line-height: 1.2;
    font-weight: bold;
}

.page-news-daily-update__hero-content p {
    font-size: 18px;
    margin-bottom: 30px;
    color: #ffffff;
}

.page-news-daily-update__hero-image {
    width: 100%;
    margin-top: 30px;
    position: relative;
    z-index: 1;
}

.page-news-daily-update__hero-image img {
    width: 100%;
    height: auto;
    max-width: 100%;
    display: block;
    border-radius: 8px;
    object-fit: cover;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.page-news-daily-update__cta-button {
    display: inline-block;
    padding: 15px 40px;
    background: #C30808; /* Custom login/register button color */
    color: #FFFF00; /* Custom login/register font color */
    text-decoration: none;
    border-radius: 5px;
    font-size: 18px;
    font-weight: bold;
    margin-top: 30px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-news-daily-update__cta-button:hover {
    background: #a30606; /* Darker red on hover */
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* --- General Section Styling --- */
.page-news-daily-update__section-title {
    font-size: 36px;
    color: #017439; /* Primary brand color for titles */
    text-align: center;
    margin-bottom: 20px;
    font-weight: bold;
}

.page-news-daily-update__section-description {
    font-size: 18px;
    color: #555555;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px auto;
}

.page-news-daily-update__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    box-sizing: border-box;
}

/* --- Latest News Section --- */
.page-news-daily-update__latest-news-section {
    background-color: #ffffff; /* Light background for news cards */
    padding: 60px 0;
}

.page-news-daily-update__news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-news-daily-update__news-card {
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-news-daily-update__news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.page-news-daily-update__news-card img {
    width: 100%;
    height: 220px; /* Fixed height for consistent card appearance */
    object-fit: cover;
    display: block;
}

.page-news-daily-update__card-content {
    padding: 20px;
}

.page-news-daily-update__card-content h3 {
    font-size: 22px;
    margin-bottom: 10px;
    line-height: 1.4;
}

.page-news-daily-update__card-content h3 a.page-news-daily-update__card-link {
    color: #017439; /* Primary brand color for news titles */
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-news-daily-update__card-content h3 a.page-news-daily-update__card-link:hover {
    color: #005f2e; /* Darker primary on hover */
    text-decoration: underline;
}

.page-news-daily-update__card-content p {
    font-size: 15px;
    color: #666666;
    margin-bottom: 15px;
}

.page-news-daily-update__news-date {
    display: block;
    font-size: 13px;
    color: #999999;
    margin-bottom: 15px;
}

.page-news-daily-update__read-more {
    display: inline-block;
    color: #017439; /* Primary brand color for read more link */
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.page-news-daily-update__read-more:hover {
    color: #005f2e;
    text-decoration: underline;
}

.page-news-daily-update__pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 50px;
    gap: 10px;
}

.page-news-daily-update__pagination-link {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    border: 1px solid #e0e0e0;
    border-radius: 5px;
    color: #017439;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
}

.page-news-daily-update__pagination-link:hover {
    background-color: #f0f0f0;
    border-color: #c0c0c0;
}

.page-news-daily-update__pagination-link--active {
    background-color: #017439;
    color: #ffffff;
    border-color: #017439;
    cursor: default;
}

.page-news-daily-update__pagination-link--active:hover {
    background-color: #017439;
    color: #ffffff;
}

/* --- CTA Section (Bottom) --- */
.page-news-daily-update__cta-section {
    background-color: #017439; /* Primary brand color */
    color: #ffffff;
    padding: 80px 20px;
    text-align: center;
}

.page-news-daily-update__cta-section .page-news-daily-update__section-title {
    color: #FFFF00; /* Custom color for important titles/promos */
    margin-bottom: 25px;
}

.page-news-daily-update__cta-section .page-news-daily-update__section-description {
    color: #ffffff;
    margin-bottom: 50px;
}

.page-news-daily-update__cta-section .page-news-daily-update__cta-button {
    margin: 0 10px 20px; /* Adjust margin for multiple buttons */
    display: inline-block;
}

.page-news-daily-update__btn-primary {
    background: #C30808; /* Custom login button color */
    color: #FFFF00; /* Custom login font color */
    border: none;
}

.page-news-daily-update__btn-primary:hover {
    background: #a30606;
}

.page-news-daily-update__btn-secondary {
    background: #ffffff; /* White background for register button */
    color: #017439; /* Primary brand color text */
    border: 2px solid #017439;
}

.page-news-daily-update__btn-secondary:hover {
    background: #f0f0f0;
    color: #005f2e;
    border-color: #005f2e;
}

/* --- FAQ Section --- */
.page-news-daily-update__faq-section {
    background-color: #f9f9f9; /* Light grey background for FAQ */
    padding: 60px 0;
}

.page-news-daily-update__faq-list {
    max-width: 900px;
    margin: 40px auto 0 auto;
}

.page-news-daily-update__faq-item {
    margin-bottom: 15px;
    border-radius: 5px;
    overflow: hidden;
}

.page-news-daily-update__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 15px;
    opacity: 0;
}

.page-news-daily-update__faq-item.active .page-news-daily-update__faq-answer {
    max-height: 2000px !important; /* Ensure enough space for content */
    padding: 20px 15px !important;
    opacity: 1;
    background: #ffffff; /* White background for answer content */
    border-radius: 0 0 5px 5px;
    box-shadow: inset 0 2px 8px rgba(0,0,0,0.05);
}

.page-news-daily-update__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 5px;
    cursor: pointer;
    user-select: none;
    transition: background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

.page-news-daily-update__faq-item.active .page-news-daily-update__faq-question {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    border-color: #c0c0c0;
    background-color: #f5f5f5;
}

.page-news-daily-update__faq-question:hover {
    background: #f5f5f5;
    border-color: #d0d0d0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.page-news-daily-update__faq-question:active {
    background: #eeeeee;
}

.page-news-daily-update__faq-question h3 {
    margin: 0;
    padding: 0;
    flex: 1;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.5;
    color: #333333;
    pointer-events: none;
}

.page-news-daily-update__faq-toggle {
    font-size: 24px;
    font-weight: bold;
    line-height: 1;
    color: #666;
    transition: transform 0.3s ease, color 0.3s ease;
    flex-shrink: 0;
    margin-left: 15px;
    pointer-events: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
}

.page-news-daily-update__faq-item.active .page-news-daily-update__faq-toggle {
    color: #017439; /* Primary brand color when active */
    transform: rotate(180deg); /* Rotate for minus sign effect */
}


/* --- Responsive Design --- */
@media (max-width: 1024px) {
    .page-news-daily-update__hero-content h1 {
        font-size: 38px;
    }
    .page-news-daily-update__hero-content p {
        font-size: 16px;
    }
    .page-news-daily-update__section-title {
        font-size: 30px;
    }
    .page-news-daily-update__news-card img {
        
    }
    .page-news-daily-update__card-content h3 {
        font-size: 20px;
    }
}

@media (max-width: 768px) {
    .page-news-daily-update__hero-section {
        padding-top: var(--header-offset, 120px) !important;
        padding-bottom: 40px;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-news-daily-update__hero-container {
        flex-direction: column;
    }
    .page-news-daily-update__hero-content h1 {
        font-size: 32px;
        margin-bottom: 15px;
    }
    .page-news-daily-update__hero-content p {
        font-size: 15px;
        margin-bottom: 20px;
    }
    .page-news-daily-update__hero-image {
        margin-top: 20px;
    }
    .page-news-daily-update__hero-image img {
        border-radius: 4px;
    }
    .page-news-daily-update__cta-button {
        padding: 12px 30px;
        font-size: 16px;
        width: 100% !important; /* Ensure buttons are full width */
        max-width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        margin-left: 0;
        margin-right: 0;
    }

    .page-news-daily-update__container {
        padding: 20px 15px;
    }
    .page-news-daily-update__section-title {
        font-size: 26px;
        margin-bottom: 15px;
    }
    .page-news-daily-update__section-description {
        font-size: 16px;
        margin-bottom: 30px;
    }

    .page-news-daily-update__news-grid {
        grid-template-columns: 1fr; /* Single column for mobile */
        gap: 20px;
    }
    .page-news-daily-update__news-card img {
        
    }
    .page-news-daily-update__card-content h3 {
        font-size: 18px;
    }
    .page-news-daily-update__card-content p {
        font-size: 14px;
    }

    .page-news-daily-update__pagination {
        margin-top: 30px;
    }
    .page-news-daily-update__pagination-link {
        width: 35px;
        height: 35px;
        font-size: 14px;
    }

    .page-news-daily-update__cta-section {
        padding: 50px 15px;
    }
    .page-news-daily-update__cta-section .page-news-daily-update__cta-button {
        margin: 0 auto 15px auto;
        display: block; /* Stack buttons vertically */
    }

    .page-news-daily-update__faq-question {
        padding: 15px;
        flex-wrap: wrap;
    }
    .page-news-daily-update__faq-question h3 {
        font-size: 15px;
        margin-bottom: 0;
        width: calc(100% - 40px);
    }
    .page-news-daily-update__faq-toggle {
        margin-left: 10px;
        width: 24px;
        height: 24px;
        font-size: 20px;
    }
    .page-news-daily-update__faq-answer {
        padding: 0 15px;
    }
    .page-news-daily-update__faq-item.active .page-news-daily-update__faq-answer {
        padding: 15px !important;
    }

    /* Mobile image and container responsiveness */
    .page-news-daily-update img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-news-daily-update__section,
    .page-news-daily-update__card,
    .page-news-daily-update__container,
    .page-news-daily-update__news-grid,
    .page-news-daily-update__faq-list {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-news-daily-update__cta-buttons,
    .page-news-daily-update__button-group,
    .page-news-daily-update__btn-container {
      max-width: 100% !important;
      width: 100% !important;
      box-sizing: border-box !important;
      padding-left: 15px;
      padding-right: 15px;
      flex-wrap: wrap !important;
      gap: 10px;
    }
    .page-news-daily-update__cta-section .page-news-daily-update__cta-button {
      display: flex;
      justify-content: center;
      align-items: center;
    }
}