/* style/news.css */

:root {
    --shbet17-primary: #11A84E;
    --shbet17-secondary: #22C768;
    --shbet17-card-bg: #11271B;
    --shbet17-background: #08160F;
    --shbet17-text-main: #F2FFF6;
    --shbet17-text-secondary: #A7D9B8;
    --shbet17-border: #2E7A4E;
    --shbet17-glow: #57E38D;
    --shbet17-gold: #F2C14E;
    --shbet17-divider: #1E3A2A;
    --shbet17-deep-green: #0A4B2C;
}

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

.page-news__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    padding-top: 10px; /* Small top padding for first section */
    padding-bottom: 40px;
}

.page-news__hero-image-wrapper {
    width: 100%;
    max-height: 500px;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
}

.page-news__hero-image {
    width: 100%;
    height: auto;
    object-fit: cover;
    min-height: 200px;
}

.page-news__hero-content {
    max-width: 900px;
    padding: 0 20px;
    z-index: 1;
}

.page-news__main-title {
    font-size: clamp(2em, 5vw, 3.5em);
    font-weight: 700;
    color: var(--shbet17-gold);
    margin-bottom: 15px;
    line-height: 1.2;
    letter-spacing: 0.05em;
    text-shadow: 0 0 10px rgba(87, 227, 141, 0.6);
}

.page-news__hero-description {
    font-size: clamp(1em, 2vw, 1.25em);
    color: var(--shbet17-text-secondary);
    margin-bottom: 30px;
    line-height: 1.6;
}

.page-news__cta-button {
    display: inline-block;
    background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
    color: #FFFFFF;
    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(17, 168, 78, 0.4);
}

.page-news__cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(17, 168, 78, 0.6);
}

.page-news__cta-button--inline {
    margin-top: 20px;
}

.page-news__section {
    padding: 60px 0;
}

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

.page-news__section-title {
    font-size: clamp(1.8em, 4vw, 2.5em);
    color: var(--shbet17-primary);
    text-align: center;
    margin-bottom: 40px;
    font-weight: 700;
    text-shadow: 0 0 5px rgba(87, 227, 141, 0.3);
}

.page-news__text-block {
    font-size: 1.05em;
    line-height: 1.7;
    color: var(--shbet17-text-main);
    margin-bottom: 20px;
    text-align: justify;
}

.page-news__inline-link {
    color: var(--shbet17-secondary);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease;
}

.page-news__inline-link:hover {
    color: var(--shbet17-gold);
    text-decoration: underline;
}

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

.page-news__card {
    background-color: var(--shbet17-card-bg);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--shbet17-divider);
    display: flex;
    flex-direction: column;
    color: var(--shbet17-text-main);
}

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

.page-news__card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    min-height: 200px; /* Ensure min size */
}

.page-news__card-title {
    font-size: 1.4em;
    color: var(--shbet17-gold);
    margin: 20px 20px 10px;
    font-weight: 600;
    line-height: 1.4;
}

.page-news__card-title a {
    color: var(--shbet17-gold);
    text-decoration: none;
}

.page-news__card-title a:hover {
    text-decoration: underline;
}

.page-news__card-description {
    font-size: 0.95em;
    color: var(--shbet17-text-secondary);
    padding: 0 20px;
    margin-bottom: 20px;
    flex-grow: 1;
    line-height: 1.6;
}

.page-news__card-button {
    display: block;
    text-align: center;
    background: var(--shbet17-deep-green);
    color: #FFFFFF;
    padding: 12px 20px;
    border-radius: 0 0 12px 12px;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.3s ease;
    margin-top: auto; /* Push button to bottom */
}

.page-news__card-button:hover {
    background-color: var(--shbet17-primary);
}

.page-news__benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    text-align: center;
}

.page-news__benefit-item {
    background-color: var(--shbet17-card-bg);
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    border: 1px solid var(--shbet17-divider);
}

.page-news__benefit-icon {
    width: 100px;
    height: 100px;
    object-fit: contain;
    margin-bottom: 20px;
    min-width: 200px; /* Enforce min size */
    min-height: 200px; /* Enforce min size */
}

.page-news__benefit-title {
    font-size: 1.3em;
    color: var(--shbet17-primary);
    margin-bottom: 15px;
    font-weight: 600;
}

.page-news__benefit-text {
    font-size: 0.95em;
    color: var(--shbet17-text-secondary);
    line-height: 1.6;
}

.page-news__step-list {
    list-style: none;
    padding: 0;
    counter-reset: step-counter;
}

.page-news__step-list li {
    counter-increment: step-counter;
    margin-bottom: 20px;
    padding-left: 40px;
    position: relative;
    font-size: 1.05em;
    line-height: 1.7;
    color: var(--shbet17-text-main);
}

.page-news__step-list li strong {
    color: var(--shbet17-gold);
}

.page-news__step-list li::before {
    content: counter(step-counter);
    position: absolute;
    left: 0;
    top: 0;
    background-color: var(--shbet17-primary);
    color: #FFFFFF;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1em;
}

.page-news__faq-list {
    margin-top: 30px;
}

.page-news__faq-item {
    background-color: var(--shbet17-card-bg);
    border: 1px solid var(--shbet17-divider);
    border-radius: 10px;
    margin-bottom: 15px;
    overflow: hidden;
}

.page-news__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    cursor: pointer;
    font-size: 1.15em;
    font-weight: 600;
    color: var(--shbet17-primary);
    background-color: var(--shbet17-deep-green);
    transition: background-color 0.3s ease;
    list-style: none; /* For details/summary */
}

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

.page-news__faq-question:hover {
    background-color: var(--shbet17-primary);
    color: #FFFFFF;
}

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

.page-news__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    margin-left: 15px;
    transition: transform 0.3s ease;
}

.page-news__faq-item[open] .page-news__faq-toggle {
    transform: rotate(45deg);
}

.page-news__faq-answer {
    padding: 15px 25px 20px;
    font-size: 1em;
    line-height: 1.6;
    color: var(--shbet17-text-secondary);
    border-top: 1px solid var(--shbet17-divider);
}

.page-news__faq-answer p {
    margin-bottom: 10px;
}

.page-news__conclusion-section .page-news__text-block {
    text-align: center;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-news__hero-section {
        padding-bottom: 30px;
    }

    .page-news__main-title {
        font-size: clamp(2em, 5vw, 3em);
    }

    .page-news__hero-description {
        font-size: clamp(1em, 2vw, 1.15em);
    }

    .page-news__section {
        padding: 50px 0;
    }

    .page-news__section-title {
        font-size: clamp(1.8em, 4vw, 2.2em);
    }
}

@media (max-width: 768px) {
    .page-news img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    .page-news__hero-section {
        padding-top: 10px !important;
        padding-bottom: 20px;
    }

    .page-news__hero-image-wrapper,
    .page-news__hero-image {
        max-height: 300px;
    }

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

    .page-news__hero-description {
        font-size: clamp(0.9em, 3vw, 1em);
        margin-bottom: 20px;
    }

    .page-news__cta-button {
        padding: 12px 25px;
        font-size: 1em;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

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

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

    .page-news__section-title {
        font-size: clamp(1.5em, 6vw, 2em);
        margin-bottom: 30px;
    }

    .page-news__text-block,
    .page-news__card-description,
    .page-news__benefit-text,
    .page-news__step-list li,
    .page-news__faq-answer {
        font-size: 15px;
        line-height: 1.6;
    }

    .page-news__grid,
    .page-news__benefits-grid {
        grid-template-columns: 1fr;
    }

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

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

    .page-news__benefit-icon {
        width: 80px;
        height: 80px;
        min-width: 200px !important;
        min-height: 200px !important;
    }

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

    /* Ensure all containing elements for images/buttons/videos are responsive */
    .page-news__hero-section,
    .page-news__intro-section,
    .page-news__categories-section,
    .page-news__benefits-section,
    .page-news__access-guide-section,
    .page-news__faq-section,
    .page-news__conclusion-section,
    .page-news__container,
    .page-news__card,
    .page-news__benefit-item,
    .page-news__faq-item {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow-x: hidden;
    }
    .page-news__hero-content {
      padding: 0 15px;
    }
}

@media (max-width: 480px) {
    .page-news__cta-button {
        padding: 10px 20px;
        font-size: 0.95em;
    }

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

    .page-news__faq-question {
        font-size: 0.95em;
    }
}