/* style/blog.css */
/* Custom Colors */
:root {
    --page-blog-bg: #08160F; /* Background */
    --page-blog-card-bg: #11271B; /* Card BG */
    --page-blog-text-main: #F2FFF6; /* Text Main */
    --page-blog-text-secondary: #A7D9B8; /* Text Secondary */
    --page-blog-border: #2E7A4E; /* Border */
    --page-blog-glow: #57E38D; /* Glow */
    --page-blog-gold: #F2C14E; /* Gold */
    --page-blog-divider: #1E3A2A; /* Divider */
    --page-blog-deep-green: #0A4B2C; /* Deep Green */
    --page-blog-button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%); /* Button */
}

.page-blog {
    background-color: var(--page-blog-bg);
    color: var(--page-blog-text-main); /* Ensure main text is light against dark background */
    font-family: 'Arial', sans-serif; /* Example font */
    line-height: 1.6;
}

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

.page-blog__hero-image-wrapper {
    width: 100%;
    max-height: 700px; /* Limit height for hero image */
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 40px; /* Space between image and content */
}

.page-blog__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    filter: brightness(0.7); /* Slightly darken image for text readability if needed, but not changing color */
}

.page-blog__hero-content {
    max-width: 900px;
    text-align: center;
    padding: 0 20px;
    color: var(--page-blog-text-main);
}

.page-blog__main-title {
    font-size: clamp(2.2rem, 4vw, 3.5rem); /* Responsive font size */
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    color: var(--page-blog-gold); /* Using gold for main title */
    letter-spacing: 1px;
}

.page-blog__subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem);
    margin-bottom: 30px;
    color: var(--page-blog-text-secondary);
}

/* --- General Container & Titles --- */
.page-blog__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

.page-blog__section-title {
    font-size: clamp(1.8rem, 3.5vw, 2.8rem);
    font-weight: 700;
    text-align: center;
    margin-bottom: 40px;
    color: var(--page-blog-text-main);
    position: relative;
    padding-bottom: 15px;
}

.page-blog__section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: var(--page-blog-gold);
    border-radius: 2px;
}

.page-blog__section-title--light {
    color: var(--page-blog-text-main);
}

/* --- Latest Posts Section --- */
.page-blog__latest-posts-section {
    padding: 80px 0;
    background-color: var(--page-blog-bg);
}

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

.page-blog__post-card {
    background-color: var(--page-blog-card-bg);
    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;
    border: 1px solid var(--page-blog-border);
}

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

.page-blog__post-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.page-blog__post-image {
    width: 100%;
    height: 220px; /* Fixed height for consistency */
    object-fit: cover;
    display: block;
}

.page-blog__post-content {
    padding: 25px;
}

.page-blog__post-title {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--page-blog-text-main);
    line-height: 1.4;
}

.page-blog__post-meta {
    font-size: 0.9rem;
    color: var(--page-blog-text-secondary);
    margin-bottom: 15px;
}

.page-blog__post-excerpt {
    font-size: 1rem;
    color: var(--page-blog-text-secondary);
}

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

/* --- Categories Section --- */
.page-blog__categories-section {
    padding: 80px 0;
    background-color: var(--page-blog-deep-green); /* Use deep green for contrast */
}

.page-blog__category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}

.page-blog__category-card {
    background-color: var(--page-blog-card-bg);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    text-decoration: none;
    color: var(--page-blog-text-main);
    transition: background-color 0.3s ease, transform 0.3s ease;
    border: 1px solid var(--page-blog-border);
}

.page-blog__category-card:hover {
    background-color: #1a362a; /* Slightly lighter on hover */
    transform: translateY(-3px);
}

.page-blog__category-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--page-blog-gold);
}

.page-blog__category-description {
    font-size: 0.95rem;
    color: var(--page-blog-text-secondary);
}

/* --- About jun88wnet1 Section --- */
.page-blog__about-jun88wnet1-section {
    padding: 80px 0;
    background-color: var(--page-blog-bg);
}

.page-blog__content-wrapper {
    max-width: 900px;
    margin: 0 auto;
    color: var(--page-blog-text-main);
}

.page-blog__content-wrapper p {
    margin-bottom: 20px;
    font-size: 1rem;
    line-height: 1.7;
    color: var(--page-blog-text-secondary); /* Use secondary for main paragraphs */
}

.page-blog__content-wrapper strong {
    color: var(--page-blog-text-main); /* Stronger text stands out */
}

/* --- FAQ Section --- */
.page-blog__faq-section {
    padding: 80px 0;
    background-color: var(--page-blog-deep-green);
}

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

.page-blog__faq-item {
    background-color: var(--page-blog-card-bg);
    border: 1px solid var(--page-blog-border);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    color: var(--page-blog-text-main);
}

.page-blog__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.15rem;
    font-weight: 600;
    cursor: pointer;
    background-color: #1a362a; /* Slightly lighter background for question */
    color: var(--page-blog-text-main);
    transition: background-color 0.3s ease;
}

.page-blog__faq-question:hover {
    background-color: #2e5a3c;
}

.page-blog__faq-item[open] .page-blog__faq-question {
    background-color: #2e5a3c;
}

.page-blog__faq-toggle {
    font-size: 1.5rem;
    line-height: 1;
    margin-left: 15px;
    color: var(--page-blog-gold);
}

.page-blog__faq-answer {
    padding: 0 25px 20px;
    font-size: 1rem;
    color: var(--page-blog-text-secondary);
    line-height: 1.6;
}

.page-blog__faq-item summary::-webkit-details-marker {
    display: none;
}
.page-blog__faq-item summary {
    list-style: none;
}


/* --- CTA Section --- */
.page-blog__cta-section {
    padding: 80px 0;
    text-align: center;
    background-color: var(--page-blog-deep-green); /* Use deep green for CTA */
}

.page-blog__cta-section .page-blog__container {
    background-color: var(--page-blog-card-bg); /* Use card background for inner container */
    padding: 50px 30px;
    border-radius: 15px;
    border: 1px solid var(--page-blog-border);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
}

.page-blog__cta-description {
    font-size: 1.25rem;
    color: var(--page-blog-text-secondary);
    margin-bottom: 40px;
}

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

/* --- Buttons --- */
.page-blog__cta-button {
    display: inline-block;
    padding: 15px 35px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    cursor: pointer;
}

.page-blog__cta-button--primary {
    background: var(--page-blog-button-gradient);
    color: var(--page-blog-text-main); /* Light text on green gradient */
    border: none;
}

.page-blog__cta-button--primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3), 0 0 15px var(--page-blog-glow); /* Add glow on hover */
}

.page-blog__cta-button--secondary {
    background-color: transparent;
    color: var(--page-blog-glow); /* Glow color for text */
    border: 2px solid var(--page-blog-glow);
}

.page-blog__cta-button--secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3), 0 0 15px var(--page-blog-glow);
    background-color: rgba(87, 227, 141, 0.1); /* Slight background on hover */
}


/* --- Responsive Design --- */
@media (max-width: 1024px) {
    .page-blog__hero-image-wrapper {
        max-height: 500px;
    }
    .page-blog__main-title {
        font-size: clamp(2rem, 5vw, 3rem);
    }
    .page-blog__subtitle {
        font-size: clamp(0.9rem, 2.5vw, 1.15rem);
    }
    .page-blog__post-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}

@media (max-width: 768px) {
    .page-blog__hero-section {
        padding-bottom: 40px;
        padding-top: 10px !important; /* Ensure small top padding */
    }
    .page-blog__hero-image-wrapper {
        max-height: 350px;
        margin-bottom: 30px;
    }
    .page-blog__main-title {
        font-size: clamp(1.8rem, 6vw, 2.5rem);
        margin-bottom: 15px;
    }
    .page-blog__subtitle {
        font-size: clamp(0.9rem, 3vw, 1rem);
        margin-bottom: 25px;
    }
    .page-blog__section-title {
        font-size: clamp(1.6rem, 5vw, 2.2rem);
        margin-bottom: 30px;
    }
    .page-blog__latest-posts-section,
    .page-blog__categories-section,
    .page-blog__about-jun88wnet1-section,
    .page-blog__faq-section,
    .page-blog__cta-section {
        padding: 60px 0;
    }
    .page-blog__post-image {
        height: 180px;
    }
    .page-blog__post-title {
        font-size: 1.25rem;
    }
    .page-blog__category-title {
        font-size: 1.3rem;
    }
    .page-blog__faq-question {
        font-size: 1.05rem;
        padding: 15px 20px;
    }
    .page-blog__faq-answer {
        padding: 0 20px 15px;
    }
    .page-blog__cta-description {
        font-size: 1.1rem;
        margin-bottom: 30px;
    }
    .page-blog__cta-buttons {
        flex-direction: column; /* Stack buttons vertically */
        gap: 15px;
    }

    /* Mobile specific overrides for images, videos, buttons, and containers */
    .page-blog img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-blog video,
    .page-blog__video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-blog__section,
    .page-blog__card,
    .page-blog__container,
    .page-blog__post-card,
    .page-blog__category-card,
    .page-blog__faq-item,
    .page-blog__hero-section,
    .page-blog__latest-posts-section,
    .page-blog__categories-section,
    .page-blog__about-jun88wnet1-section,
    .page-blog__faq-section,
    .page-blog__cta-section,
    .page-blog__video-section,
    .page-blog__video-container,
    .page-blog__video-wrapper,
    .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;
        overflow: hidden !important; /* Ensure no overflow */
    }
    .page-blog__cta-button,
    .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; /* Adjust padding for full width buttons */
        padding-right: 15px; /* Adjust padding for full width buttons */
    }
    .page-blog__video-section {
        padding-top: 10px !important;
    }
}

@media (max-width: 480px) {
    .page-blog__post-image {
        height: 160px;
    }
    .page-blog__post-title {
        font-size: 1.15rem;
    }
    .page-blog__category-title {
        font-size: 1.2rem;
    }
    .page-blog__cta-button {
        font-size: 1rem;
        padding: 12px 25px;
    }
}