/* style/blog-okbet-latest-news.css */

/* Base styles for the page content, ensuring light text on dark background */
.page-blog-okbet-latest-news {
    background-color: var(--site-bg, #0A0A0A); /* Fallback to custom background if var is not set */
    color: #FFF6D6; /* Main text color for dark background */
    font-family: 'Arial', sans-serif; /* Example font */
    line-height: 1.6;
}

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

/* Section titles */
.page-blog-okbet-latest-news__section-title {
    color: #FFD36B; /* Glow color for titles */
    font-size: 2.5em; /* Adjusted for desktop, will be responsive */
    font-weight: 700;
    text-align: center;
    margin-bottom: 30px;
    line-height: 1.2;
}

.page-blog-okbet-latest-news__section-description {
    text-align: center;
    margin-bottom: 40px;
    font-size: 1.1em;
    color: #FFF6D6;
}

/* Hero Section */
.page-blog-okbet-latest-news__hero-section {
    position: relative;
    display: flex;
    flex-direction: column; /* Image above content */
    align-items: center;
    padding: 10px 0 60px; /* Small top padding, main padding at bottom */
    text-align: center;
    background-color: #0A0A0A; /* Ensures consistent dark background */
}

.page-blog-okbet-latest-news__hero-image-wrapper {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    box-sizing: border-box;
    margin-bottom: 40px; /* Space between image and content */
}

.page-blog-okbet-latest-news__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    min-height: 200px; /* Minimum size requirement */
}

.page-blog-okbet-latest-news__hero-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
    z-index: 1;
    color: #FFF6D6;
}

.page-blog-okbet-latest-news__main-title {
    color: #FFD36B; /* Use glow color for H1 */
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-bottom: 20px;
    font-size: clamp(2.5rem, 5vw + 1rem, 3.8rem); /* Responsive H1 font size */
}

.page-blog-okbet-latest-news__hero-description {
    font-size: 1.2em;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* CTA Buttons */
.page-blog-okbet-latest-news__cta-button {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    transition: background-color 0.3s ease, transform 0.2s ease;
    text-align: center;
    box-sizing: border-box; /* Crucial for responsive buttons */
    white-space: normal; /* Allow text wrap */
    word-wrap: break-word; /* Allow text break */
    min-width: 180px; /* Ensure buttons are not too small */
}

.page-blog-okbet-latest-news__btn-primary {
    background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%);
    color: #ffffff;
    border: none;
}

.page-blog-okbet-latest-news__btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 211, 107, 0.4);
}

.page-blog-okbet-latest-news__btn-secondary {
    background: transparent;
    color: #FFD36B;
    border: 2px solid #FFD36B;
    margin-left: 20px;
}

.page-blog-okbet-latest-news__btn-secondary:hover {
    background: rgba(255, 211, 107, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 211, 107, 0.2);
}

/* Text Block Sections */
.page-blog-okbet-latest-news__introduction-section,
.page-blog-okbet-latest-news__why-choose-section {
    padding: 60px 20px;
    background-color: #0A0A0A;
}

.page-blog-okbet-latest-news__introduction-section p,
.page-blog-okbet-latest-news__why-choose-section p {
    color: #FFF6D6;
    margin-bottom: 15px;
    font-size: 1.05em;
    text-align: justify;
}

.page-blog-okbet-latest-news__introduction-section p strong,
.page-blog-okbet-latest-news__why-choose-section p strong {
    color: #FFD36B;
}

/* Articles Section (Blog Posts) */
.page-blog-okbet-latest-news__articles-section {
    padding: 60px 0;
    background-color: #0A0A0A;
}

.page-blog-okbet-latest-news__articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-blog-okbet-latest-news__article-card {
    background-color: #111111; /* Card Background */
    border: 1px solid #3A2A12; /* Border */
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

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

.page-blog-okbet-latest-news__article-image {
    width: 100%;
    height: 220px; /* Fixed height for consistency */
    object-fit: cover;
    display: block;
    min-width: 200px; /* Minimum size requirement */
    min-height: 200px; /* Minimum size requirement */
}

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

.page-blog-okbet-latest-news__article-title {
    font-size: 1.4em;
    margin-bottom: 10px;
    line-height: 1.3;
    color: #FFD36B; /* Text Main */
}

.page-blog-okbet-latest-news__article-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-blog-okbet-latest-news__article-title a:hover {
    color: #F2C14E; /* Lighter shade on hover */
}

.page-blog-okbet-latest-news__article-meta {
    font-size: 0.9em;
    color: #888;
    margin-bottom: 15px;
}

.page-blog-okbet-latest-news__article-excerpt {
    font-size: 1em;
    color: #FFF6D6;
    margin-bottom: 20px;
    flex-grow: 1;
}

.page-blog-okbet-latest-news__article-excerpt strong {
    color: #FFD36B;
}

.page-blog-okbet-latest-news__read-more {
    display: inline-block;
    color: #F2C14E;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.page-blog-okbet-latest-news__read-more:hover {
    color: #FFD36B;
    text-decoration: underline;
}

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

/* CTA Banner Section */
.page-blog-okbet-latest-news__cta-banner-section {
    position: relative;
    padding: 80px 0;
    background-color: #0A0A0A;
    overflow: hidden; /* Ensure image doesn't overflow */
}

.page-blog-okbet-latest-news__cta-background-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    opacity: 0.2; /* Subtle background image */
    display: block;
    min-width: 200px;
    min-height: 200px;
}

.page-blog-okbet-latest-news__cta-content {
    position: relative;
    z-index: 1;
    text-align: center;
    color: #FFF6D6;
}

.page-blog-okbet-latest-news__cta-content .page-blog-okbet-latest-news__section-title {
    color: #FFD36B;
    margin-bottom: 20px;
}

.page-blog-okbet-latest-news__cta-content .page-blog-okbet-latest-news__section-description {
    color: #FFF6D6;
    max-width: 700px;
    margin: 0 auto 40px;
}

.page-blog-okbet-latest-news__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
    flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
    width: 100%; /* Ensure container takes full width for wrapping */
    box-sizing: border-box;
    padding: 0 15px; /* Add padding to prevent overflow */
}

/* FAQ Section */
.page-blog-okbet-latest-news__faq-section {
    padding: 60px 0;
    background-color: #0A0A0A;
}

.page-blog-okbet-latest-news__faq-list {
    margin-top: 40px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.page-blog-okbet-latest-news__faq-item {
    background-color: #111111; /* Card Background */
    border: 1px solid #3A2A12; /* Border */
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
}

.page-blog-okbet-latest-news__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    background-color: #111111;
    color: #FFD36B; /* Text Main for question */
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.page-blog-okbet-latest-news__faq-question:hover {
    background-color: #1a1a1a;
}

.page-blog-okbet-latest-news__faq-question h3 {
    margin: 0;
    font-size: 1.15em;
    color: inherit;
}

.page-blog-okbet-latest-news__faq-toggle {
    font-size: 1.5em;
    font-weight: 300;
    line-height: 1;
    transition: transform 0.3s ease;
    color: #F2C14E; /* Toggle icon color */
}

.page-blog-okbet-latest-news__faq-item.active .page-blog-okbet-latest-news__faq-toggle {
    transform: rotate(45deg); /* Or change to '−' via JS */
}

.page-blog-okbet-latest-news__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 25px;
    transition: max-height 0.3s ease, padding 0.3s ease;
    color: #FFF6D6;
}

.page-blog-okbet-latest-news__faq-item.active .page-blog-okbet-latest-news__faq-answer {
    max-height: 1000px !important; /* Sufficiently large to reveal content */
    padding: 15px 25px 25px;
}

.page-blog-okbet-latest-news__faq-answer p {
    margin: 0;
    color: inherit;
    font-size: 1em;
}

.page-blog-okbet-latest-news__faq-answer a {
    color: #F2C14E;
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 992px) {
    .page-blog-okbet-latest-news__section-title {
        font-size: 2em;
    }
    .page-blog-okbet-latest-news__hero-description {
        font-size: 1.1em;
    }
    .page-blog-okbet-latest-news__article-title {
        font-size: 1.2em;
    }
    .page-blog-okbet-latest-news__article-image {
        height: 180px;
    }
}

@media (max-width: 768px) {
    .page-blog-okbet-latest-news__hero-section {
        padding: 10px 0 40px;
    }
    .page-blog-okbet-latest-news__hero-content {
        padding: 0 15px;
    }
    .page-blog-okbet-latest-news__main-title {
        font-size: clamp(2rem, 8vw + 1rem, 3rem); /* Adjust H1 for mobile */
    }
    .page-blog-okbet-latest-news__hero-description {
        font-size: 1em;
    }
    .page-blog-okbet-latest-news__cta-button {
        padding: 12px 20px;
        font-size: 0.9em;
        margin-left: 0; /* Remove margin for single column */
        width: 100% !important; /* Force full width for buttons */
        max-width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }
    .page-blog-okbet-latest-news__btn-secondary {
        margin-top: 15px; /* Stack buttons */
    }
    .page-blog-okbet-latest-news__cta-buttons {
        flex-direction: column; /* Stack buttons vertically */
        gap: 15px;
        padding: 0 15px;
    }

    .page-blog-okbet-latest-news__introduction-section,
    .page-blog-okbet-latest-news__why-choose-section,
    .page-blog-okbet-latest-news__articles-section,
    .page-blog-okbet-latest-news__cta-banner-section,
    .page-blog-okbet-latest-news__faq-section {
        padding: 40px 0;
    }
    .page-blog-okbet-latest-news__container {
        padding: 0 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    /* Images responsiveness */
    .page-blog-okbet-latest-news img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
        min-width: 200px !important; /* Ensure minimum size is maintained */
        min-height: 200px !important; /* Ensure minimum size is maintained */
    }
    .page-blog-okbet-latest-news__article-image {
        height: auto !important; /* Allow height to adjust */
    }

    /* Ensure content containers don't overflow */
    .page-blog-okbet-latest-news__articles-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .page-blog-okbet-latest-news__card-section,
    .page-blog-okbet-latest-news__text-block {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    
    /* FAQ Section mobile adjustments */
    .page-blog-okbet-latest-news__faq-question {
        padding: 15px 20px;
    }
    .page-blog-okbet-latest-news__faq-answer {
        padding: 0 20px;
    }
    .page-blog-okbet-latest-news__faq-item.active .page-blog-okbet-latest-news__faq-answer {
        padding: 10px 20px 20px;
    }

    /* Video section top padding, relying on body for --header-offset */
    .page-blog-okbet-latest-news__video-section {
        padding-top: 10px !important;
    }
}

/* Ensure content area images maintain minimum size, not just for mobile */
.page-blog-okbet-latest-news__article-image,
.page-blog-okbet-latest-news__hero-image,
.page-blog-okbet-latest-news__cta-background-image {
    min-width: 200px;
    min-height: 200px;
}
/* For any other img in content area, ensure min-size */
.page-blog-okbet-latest-news p img { /* Example for images within paragraphs */
    min-width: 200px;
    min-height: 200px;
    width: 100%; /* Ensure responsiveness */
    height: auto;
}

/* Ensure no CSS filters are applied to images */
.page-blog-okbet-latest-news img {
    filter: none !important;
}