/* style/news.css */
:root {
    --kbbet06-primary: #11A84E;
    --kbbet06-secondary: #22C768;
    --kbbet06-bg-dark: #08160F;
    --kbbet06-card-bg: #11271B;
    --kbbet06-text-main: #F2FFF6;
    --kbbet06-text-secondary: #A7D9B8;
    --kbbet06-border: #2E7A4E;
    --kbbet06-button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
    --kbbet06-glow: #57E38D;
    --kbbet06-gold: #F2C14E;
    --kbbet06-divider: #1E3A2A;
    --kbbet06-deep-green: #0A4B2C;
}

.page-news {
    background-color: var(--kbbet06-bg-dark);
    color: var(--kbbet06-text-main);
    font-family: 'Arial', sans-serif;
}

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

.page-news__section-spacing {
    padding: 80px 0;
}

.page-news__section-title {
    font-size: 2.8em;
    font-weight: 700;
    color: var(--kbbet06-text-main);
    text-align: center;
    margin-bottom: 40px;
    line-height: 1.2;
    text-shadow: 0 0 10px rgba(87, 227, 141, 0.3);
}

.page-news__paragraph {
    font-size: 1.1em;
    line-height: 1.8;
    margin-bottom: 20px;
    color: var(--kbbet06-text-secondary);
}

.page-news__link {
    color: var(--kbbet06-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-news__link:hover {
    color: var(--kbbet06-glow);
    text-decoration: underline;
}

/* Hero Section */
.page-news__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 10px; /* Small top padding */
    background-color: var(--kbbet06-deep-green);
    overflow: hidden;
}

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

.page-news__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    filter: brightness(0.7);
}

.page-news__hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 900px;
    padding: 40px 20px 80px;
    margin-top: -100px; /* Pull content up over the bottom of the image for visual flow */
    background-color: var(--kbbet06-bg-dark);
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    border: 1px solid var(--kbbet06-border);
}

.page-news__main-title {
    font-size: clamp(2em, 4vw, 3.5em);
    font-weight: 800;
    color: var(--kbbet06-gold);
    margin-bottom: 20px;
    line-height: 1.3;
    text-shadow: 0 0 15px rgba(242, 193, 78, 0.5);
}

.page-news__intro-text {
    font-size: 1.2em;
    line-height: 1.7;
    margin-bottom: 30px;
    color: var(--kbbet06-text-secondary);
}

/* Buttons */
.page-news__btn-primary {
    display: inline-block;
    background: var(--kbbet06-button-gradient);
    color: var(--kbbet06-text-main);
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1em;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(34, 199, 104, 0.4);
}

.page-news__btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(34, 199, 104, 0.6);
    opacity: 0.9;
}

.page-news__btn-secondary {
    display: inline-block;
    background-color: transparent;
    color: var(--kbbet06-secondary);
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1em;
    border: 2px solid var(--kbbet06-secondary);
    transition: all 0.3s ease;
    cursor: pointer;
}

.page-news__btn-secondary:hover {
    background-color: var(--kbbet06-secondary);
    color: var(--kbbet06-text-main);
    transform: translateY(-3px);
}

/* Image inline */
.page-news__image-inline {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
    margin: 40px auto;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.page-news__image-inline--center {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

/* Category Grid */
.page-news__category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-news__category-card {
    background-color: var(--kbbet06-card-bg);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--kbbet06-border);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-news__category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

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

.page-news__card-title {
    font-size: 1.5em;
    font-weight: 700;
    color: var(--kbbet06-text-main);
    padding: 20px 20px 10px;
}

.page-news__card-title a {
    color: inherit;
    text-decoration: none;
}

.page-news__card-title a:hover {
    color: var(--kbbet06-secondary);
}

.page-news__card-text {
    font-size: 0.95em;
    color: var(--kbbet06-text-secondary);
    padding: 0 20px 20px;
    line-height: 1.6;
}

/* Benefits Section */
.page-news__benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-news__benefit-item {
    background-color: var(--kbbet06-card-bg);
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--kbbet06-border);
    text-align: center;
}

.page-news__benefit-title {
    font-size: 1.4em;
    font-weight: 700;
    color: var(--kbbet06-secondary);
    margin-bottom: 15px;
}

.page-news__benefit-text {
    font-size: 1em;
    line-height: 1.7;
    color: var(--kbbet06-text-secondary);
}

/* Latest Articles Section */
.page-news__article-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-news__article-card {
    background-color: var(--kbbet06-card-bg);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--kbbet06-border);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.page-news__article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.page-news__article-card-title {
    font-size: 1.4em;
    font-weight: 700;
    color: var(--kbbet06-text-main);
    padding: 20px 20px 10px;
    flex-grow: 1;
}

.page-news__article-card-title a {
    color: inherit;
    text-decoration: none;
}

.page-news__article-card-title a:hover {
    color: var(--kbbet06-secondary);
}

.page-news__article-card-meta {
    font-size: 0.9em;
    color: var(--kbbet06-text-secondary);
    padding: 0 20px;
    margin-bottom: 10px;
}

.page-news__article-card-excerpt {
    font-size: 0.95em;
    color: var(--kbbet06-text-secondary);
    padding: 0 20px 20px;
    line-height: 1.6;
}

.page-news__article-card .page-news__btn-secondary {
    margin: 0 20px 20px;
    align-self: flex-start;
}

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

.page-news__btn-primary--center {
    margin-left: auto;
    margin-right: auto;
}

/* CTA Section */
.page-news__cta-section {
    background-color: var(--kbbet06-deep-green);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-news__cta-content {
    position: relative;
    z-index: 1;
    padding: 60px 20px;
}

.page-news__cta-title {
    font-size: 2.5em;
    font-weight: 700;
    color: var(--kbbet06-gold);
    margin-bottom: 20px;
    text-shadow: 0 0 10px rgba(242, 193, 78, 0.4);
}

.page-news__cta-text {
    font-size: 1.15em;
    line-height: 1.7;
    color: var(--kbbet06-text-secondary);
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

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

.page-news__cta-image {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 900px;
    height: auto;
    opacity: 0.2;
    z-index: 0;
    object-fit: contain;
    pointer-events: none;
}

/* FAQ Section */
.page-news__faq-list {
    margin-top: 40px;
}

.page-news__faq-item {
    background-color: var(--kbbet06-card-bg);
    border: 1px solid var(--kbbet06-border);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.page-news__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    font-size: 1.2em;
    font-weight: 600;
    color: var(--kbbet06-text-main);
    cursor: pointer;
    background-color: var(--kbbet06-deep-green);
    border-bottom: 1px solid var(--kbbet06-divider);
}

.page-news__faq-item[open] .page-news__faq-question {
    border-bottom: 1px solid var(--kbbet06-border);
}

.page-news__faq-question::-webkit-details-marker {
    display: none;
}

.page-news__faq-qtext {
    flex-grow: 1;
}

.page-news__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    margin-left: 15px;
    color: var(--kbbet06-secondary);
}

.page-news__faq-answer {
    padding: 20px;
    font-size: 1em;
    line-height: 1.7;
    color: var(--kbbet06-text-secondary);
    background-color: var(--kbbet06-card-bg);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-news__hero-content {
        margin-top: -50px;
        padding-bottom: 60px;
    }
    .page-news__section-title {
        font-size: 2.2em;
    }
    .page-news__main-title {
        font-size: clamp(1.8em, 5vw, 3em);
    }
    .page-news__cta-title {
        font-size: 2em;
    }
}

@media (max-width: 768px) {
    .page-news__hero-section {
        padding-top: 10px !important;
    }
    .page-news__hero-content {
        margin-top: 0;
        padding: 30px 15px;
        border-radius: 0;
        box-shadow: none;
        border: none;
    }
    .page-news__section-spacing {
        padding: 50px 0;
    }
    .page-news__container,
    .page-news__hero-image-wrapper,
    .page-news__content-section,
    .page-news__categories-section,
    .page-news__benefits-section,
    .page-news__latest-articles-section,
    .page-news__cta-section,
    .page-news__faq-section,
    .page-news__category-grid,
    .page-news__benefits-grid,
    .page-news__article-grid,
    .page-news__cta-buttons,
    .page-news__faq-list {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important;
    }

    .page-news img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    .page-news video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    .page-news__btn-primary,
    .page-news__btn-secondary,
    .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;
        padding-right: 15px;
    }

    .page-news__cta-buttons {
        flex-direction: column !important;
        gap: 15px !important;
    }

    .page-news__section-title {
        font-size: 1.8em;
        margin-bottom: 30px;
    }

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

    .page-news__intro-text {
        font-size: 1em;
    }

    .page-news__card-title,
    .page-news__benefit-title,
    .page-news__article-card-title {
        font-size: 1.2em;
    }

    .page-news__faq-question {
        font-size: 1.1em;
        padding: 15px;
    }

    .page-news__faq-answer {
        padding: 15px;
    }
}

@media (max-width: 480px) {
    .page-news__section-spacing {
        padding: 40px 0;
    }
    .page-news__section-title {
        font-size: 1.6em;
    }
    .page-news__main-title {
        font-size: 1.8em;
    }
    .page-news__cta-title {
        font-size: 1.8em;
    }
    .page-news__paragraph,
    .page-news__intro-text,
    .page-news__card-text,
    .page-news__benefit-text,
    .page-news__article-card-excerpt,
    .page-news__cta-text,
    .page-news__faq-answer {
        font-size: 0.95em;
    }
}