/* style/blog.css */

/* Variables for colors, derived from the provided scheme */
:root {
    --okbet-primary-color: #F2C14E;
    --okbet-secondary-color: #FFD36B;
    --okbet-card-bg: #111111;
    --okbet-main-bg: #0A0A0A;
    --okbet-text-main: #FFF6D6;
    --okbet-border-color: #3A2A12;
    --okbet-glow-color: #FFD36B;
    --okbet-button-gradient: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%);
    --text-on-dark-bg: #FFF6D6; /* Ensuring contrast on dark background */
    --text-on-light-bg: #333333; /* For elements that might have lighter backgrounds */
}

.page-blog {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-on-dark-bg); /* Default text color for the page content on dark body bg */
    background-color: var(--okbet-main-bg); /* Explicitly setting for consistency, though body handles it */
}

/* Container for consistent content width */
.page-blog__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

/* Card styling */
.page-blog__card {
    background-color: var(--okbet-card-bg);
    border: 1px solid var(--okbet-border-color);
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    color: var(--text-on-dark-bg); /* Text on card background */
}

/* Section Titles */
.page-blog__section-title {
    font-size: 2.5em;
    color: var(--okbet-secondary-color);
    text-align: center;
    margin-bottom: 20px;
    font-weight: bold;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.page-blog__section-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px auto;
    font-size: 1.1em;
    color: rgba(255, 246, 214, 0.8); /* Slightly muted text */
}

/* Buttons */
.page-blog__btn-primary,
.page-blog__btn-secondary {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    box-sizing: border-box;
    max-width: 100%; /* For responsiveness */
    white-space: normal; /* Allow text wrap */
    word-wrap: break-word; /* Allow text wrap */
}

.page-blog__btn-primary {
    background: var(--okbet-button-gradient);
    color: #ffffff; /* White text on gradient button */
    border: none;
}

.page-blog__btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 211, 107, 0.4);
}

.page-blog__btn-secondary {
    background-color: transparent;
    color: var(--okbet-secondary-color);
    border: 2px solid var(--okbet-secondary-color);
}

.page-blog__btn-secondary:hover {
    background-color: var(--okbet-secondary-color);
    color: var(--okbet-main-bg); /* Dark text on secondary button hover */
    box-shadow: 0 5px 15px rgba(255, 211, 107, 0.4);
}

/* Hero Section */
.page-blog__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column; /* Image on top, content below */
    align-items: center;
    padding-top: 10px; /* Small top padding, body handles --header-offset */
    margin-bottom: 60px;
}

.page-blog__hero-image-wrapper {
    width: 100%;
    max-height: 500px; /* Limit height for hero image */
    overflow: hidden;
}

.page-blog__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.page-blog__hero-content {
    text-align: center;
    padding: 40px 20px;
    max-width: 900px;
    margin-top: -80px; /* Overlap slightly with image for visual appeal */
    background-color: var(--okbet-card-bg); /* Dark background for text */
    border-radius: 10px;
    border: 1px solid var(--okbet-border-color);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
    z-index: 10; /* Ensure content is above other elements if any */
}

.page-blog__hero-title {
    font-size: clamp(2em, 4vw, 3.5em); /* Responsive font size, not fixed large */
    color: var(--okbet-secondary-color);
    margin-bottom: 20px;
    font-weight: bold;
    line-height: 1.2;
    letter-spacing: -0.03em;
}

.page-blog__hero-description {
    font-size: 1.2em;
    color: var(--okbet-text-main);
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Latest Blog Posts Section */
.page-blog__latest-posts {
    padding: 60px 0;
    background-color: var(--okbet-main-bg);
}

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

.page-blog__post-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    color: var(--text-on-dark-bg);
}

.page-blog__post-image {
    width: 100%;
    height: 200px; /* Fixed height for consistency */
    object-fit: cover;
    border-radius: 8px 8px 0 0;
}

.page-blog__post-content {
    padding: 20px;
    flex-grow: 1;
}

.page-blog__post-title {
    font-size: 1.4em;
    margin-bottom: 10px;
    line-height: 1.3;
}

.page-blog__post-title a {
    color: var(--okbet-secondary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-blog__post-title a:hover {
    color: var(--okbet-primary-color);
}

.page-blog__post-meta {
    font-size: 0.9em;
    color: rgba(255, 246, 214, 0.6);
    margin-bottom: 15px;
}

.page-blog__post-excerpt {
    font-size: 1em;
    color: rgba(255, 246, 214, 0.8);
    margin-bottom: 20px;
    flex-grow: 1;
}

.page-blog__read-more {
    color: var(--okbet-primary-color);
    text-decoration: none;
    font-weight: bold;
    display: inline-block;
    transition: color 0.3s ease;
}

.page-blog__read-more:hover {
    text-decoration: underline;
}

.page-blog__view-all-wrapper {
    text-align: center;
}

/* Categories Section */
.page-blog__categories {
    padding: 60px 0;
    background-color: var(--okbet-main-bg);
}

.page-blog__categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
    justify-content: center;
}

.page-blog__category-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 25px 15px;
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: var(--text-on-dark-bg);
}

.page-blog__category-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(255, 211, 107, 0.2);
    border-color: var(--okbet-secondary-color);
}

.page-blog__category-icon {
    width: 30px; /* Allowed small size */
    height: 30px; /* Allowed small size */
    margin-bottom: 15px;
    object-fit: contain;
}

.page-blog__category-name {
    font-size: 1.1em;
    font-weight: bold;
    color: var(--okbet-secondary-color);
}

/* Featured Article Section */
.page-blog__featured-article {
    padding: 60px 0;
    background-color: var(--okbet-main-bg);
}

.page-blog__featured-content {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

.page-blog__featured-image {
    width: 50%;
    height: auto;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

.page-blog__featured-text {
    width: 50%;
    color: var(--okbet-text-main);
}

.page-blog__featured-text p {
    margin-bottom: 20px;
    font-size: 1.05em;
    color: rgba(255, 246, 214, 0.9);
}

/* Tips & Strategies Section */
.page-blog__tips-strategies {
    padding: 60px 0;
    background-color: var(--okbet-main-bg);
}

.page-blog__strategy-list {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.page-blog__strategy-item {
    color: var(--text-on-dark-bg);
}

.page-blog__strategy-title {
    font-size: 1.3em;
    color: var(--okbet-secondary-color);
    margin-bottom: 15px;
}

.page-blog__strategy-item p {
    font-size: 1em;
    color: rgba(255, 246, 214, 0.8);
}

.page-blog__view-more-wrapper {
    text-align: center;
}

/* Call to Action Section */
.page-blog__cta-section {
    padding: 80px 0;
    text-align: center;
    background-color: var(--okbet-primary-color); /* Using primary color for CTA background */
    color: #ffffff; /* White text on primary color background */
    border-radius: 10px;
    margin: 60px auto;
    max-width: 1000px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
}

.page-blog__cta-section .page-blog__section-title {
    color: #ffffff; /* White title on primary color background */
}

.page-blog__cta-text {
    font-size: 1.2em;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-blog__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
}

/* FAQ Section */
.page-blog__faq-section {
    padding: 60px 0;
    background-color: var(--okbet-main-bg);
}

.page-blog__faq-list {
    max-width: 900px;
    margin: 0 auto;
}

.page-blog__faq-item {
    margin-bottom: 20px;
    overflow: hidden;
    color: var(--text-on-dark-bg);
}

.page-blog__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    cursor: pointer;
    background-color: rgba(255, 255, 255, 0.05); /* Slightly lighter background for question */
    border-bottom: 1px solid var(--okbet-border-color);
    transition: background-color 0.3s ease;
}

.page-blog__faq-question:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.page-blog__faq-question h3 {
    font-size: 1.2em;
    color: var(--okbet-secondary-color);
    margin: 0;
}

.page-blog__faq-toggle {
    font-size: 1.5em;
    font-weight: bold;
    color: var(--okbet-primary-color);
    transition: transform 0.3s ease;
}

.page-blog__faq-item.active .page-blog__faq-toggle {
    transform: rotate(45deg); /* For '+' to 'x' or just '-' */
}

.page-blog__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 20px;
    transition: max-height 0.3s ease, padding 0.3s ease;
    background-color: var(--okbet-card-bg); /* Answer background */
    color: rgba(255, 246, 214, 0.9);
}

.page-blog__faq-item.active .page-blog__faq-answer {
    max-height: 1000px !important; /* Sufficiently large to show content */
    padding: 15px 20px;
}

.page-blog__faq-answer p {
    margin: 0;
}

/* Image styling for responsive and no small icons (except categories) */
.page-blog img:not(.page-blog__category-icon) {
    min-width: 200px;
    min-height: 200px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-blog__hero-content {
        margin-top: -60px;
    }

    .page-blog__featured-content {
        flex-direction: column;
        align-items: center;
    }

    .page-blog__featured-image,
    .page-blog__featured-text {
        width: 100%;
    }

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

@media (max-width: 768px) {
    .page-blog__container {
        padding: 0 15px;
    }

    .page-blog__hero-section {
        margin-bottom: 40px;
    }

    .page-blog__hero-content {
        margin-top: -40px;
        padding: 30px 15px;
    }

    .page-blog__hero-title {
        font-size: clamp(1.8em, 6vw, 2.5em);
    }

    .page-blog__hero-description {
        font-size: 1.1em;
    }

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

    .page-blog__posts-grid,
    .page-blog__categories-grid,
    .page-blog__strategy-list {
        grid-template-columns: 1fr;
        gap: 20px;
    }

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

    .page-blog__category-item {
        padding: 20px 10px;
    }

    .page-blog__cta-section {
        padding: 50px 20px;
        margin: 40px auto;
    }

    .page-blog__cta-text {
        font-size: 1.1em;
    }

    .page-blog__cta-buttons {
        flex-direction: column; /* Stack buttons vertically */
        gap: 15px;
    }

    /* Mobile specific image adaptation */
    .page-blog img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }

    /* Mobile specific button adaptation */
    .page-blog__btn-primary,
    .page-blog__btn-secondary,
    .page-blog a[class*="button"],
    .page-blog 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-blog__cta-buttons,
    .page-blog__button-group,
    .page-blog__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;
    }

    /* Ensure video-section doesn't have extra padding from --header-offset if it were present */
    .page-blog__video-section {
        padding-top: 10px !important; 
    }
}