/* style/blog.css */

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

/* Base styles for the blog page */
.page-blog {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: var(--vf88-win-text-main); /* Default text color for the page */
    background-color: var(--vf88-win-bg); /* Default background color for the page */
}

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

.page-blog__section-title {
    font-size: clamp(28px, 3.5vw, 48px);
    font-weight: 700;
    color: var(--vf88-win-gold);
    text-align: center;
    margin-bottom: 40px;
    line-height: 1.2;
}

.page-blog__text-block {
    font-size: 18px;
    line-height: 1.7;
    margin-bottom: 20px;
    color: var(--vf88-win-text-secondary);
    text-align: center;
}

/* Hero Section */
.page-blog__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 60px 20px;
    padding-top: 10px; /* Small top padding, body handles --header-offset */
    text-align: center;
    overflow: hidden;
}

.page-blog__hero-image-wrapper {
    width: 100%;
    max-width: 100%;
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    overflow: hidden;
    z-index: 0;
}

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

.page-blog__hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    background: rgba(0, 0, 0, 0.6); /* Slightly darker overlay for text readability */
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.page-blog__main-title {
    font-size: clamp(32px, 4.5vw, 56px);
    font-weight: 800;
    color: var(--vf88-win-gold);
    margin-bottom: 20px;
    line-height: 1.1;
    text-shadow: 0 2px 5px rgba(0,0,0,0.5);
}

.page-blog__hero-description {
    font-size: 19px;
    color: var(--vf88-win-text-main);
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.8;
}

/* Buttons */
.page-blog__btn-primary {
    display: inline-block;
    background: var(--vf88-win-button-gradient);
    color: #ffffff;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 18px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.page-blog__btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.page-blog__btn-secondary {
    display: inline-block;
    background: var(--vf88-win-card-bg);
    color: var(--vf88-win-gold);
    padding: 12px 25px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    border: 1px solid var(--vf88-win-border);
    cursor: pointer;
}

.page-blog__btn-secondary:hover {
    background-color: var(--vf88-win-deep-green);
    color: var(--vf88-win-gold);
    border-color: var(--vf88-win-gold);
}

/* Intro Section */
.page-blog__intro-section {
    padding: 60px 0;
    background-color: var(--vf88-win-bg);
    text-align: center;
}

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

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

.page-blog__category-card {
    background-color: var(--vf88-win-card-bg);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    border: 1px solid var(--vf88-win-border);
}

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

.page-blog__category-card .page-blog__card-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--vf88-win-gold);
    margin: 20px 15px 10px;
    line-height: 1.3;
}

.page-blog__category-card .page-blog__card-description {
    font-size: 16px;
    color: var(--vf88-win-text-secondary);
    padding: 0 15px 20px;
    flex-grow: 1;
}

.page-blog__category-card .page-blog__btn-secondary {
    margin-bottom: 20px;
    align-self: center;
}

/* Featured Articles Section */
.page-blog__featured-articles {
    padding: 60px 0;
    background-color: var(--vf88-win-bg); /* Use page background for contrast */
}

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

.page-blog__article-card {
    background-color: var(--vf88-win-card-bg);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    border: 1px solid var(--vf88-win-border);
}

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

.page-blog__article-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.page-blog__article-title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 10px;
    line-height: 1.3;
}

.page-blog__article-title a {
    color: var(--vf88-win-gold);
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-blog__article-title a:hover {
    color: var(--vf88-win-primary);
}

.page-blog__article-meta {
    font-size: 14px;
    color: var(--vf88-win-text-secondary);
    margin-bottom: 15px;
}

.page-blog__article-summary {
    font-size: 16px;
    color: var(--vf88-win-text-main);
    margin-bottom: 20px;
    flex-grow: 1;
}

.page-blog__read-more {
    display: inline-block;
    color: var(--vf88-win-primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: color 0.3s ease;
}

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

.page-blog__all-posts-cta {
    text-align: center;
    margin-top: 50px;
}

/* Why Choose Section */
.page-blog__why-choose-section {
    padding: 60px 0;
    text-align: center;
}

.page-blog__why-choose-section .page-blog__text-block {
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 40px;
}

.page-blog__features-list {
    list-style: none;
    padding: 0;
    margin-top: 30px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
}

.page-blog__feature-item {
    background-color: var(--vf88-win-card-bg);
    color: var(--vf88-win-text-main);
    padding: 15px 25px;
    border-radius: 8px;
    font-size: 17px;
    font-weight: 500;
    border: 1px solid var(--vf88-win-border);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

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

.page-blog__faq-list {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.page-blog__faq-item {
    background-color: var(--vf88-win-card-bg);
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--vf88-win-border);
}

.page-blog__faq-item summary {
    list-style: none;
    cursor: pointer;
    padding: 20px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 700;
    font-size: 18px;
    color: var(--vf88-win-gold);
    transition: background-color 0.3s ease;
}

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

.page-blog__faq-item summary:hover {
    background-color: var(--vf88-win-deep-green);
}

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

.page-blog__faq-toggle {
    font-size: 24px;
    margin-left: 15px;
    color: var(--vf88-win-primary);
}

.page-blog__faq-answer {
    padding: 0 25px 20px;
    font-size: 16px;
    color: var(--vf88-win-text-secondary);
    line-height: 1.7;
}

/* CTA Section */
.page-blog__cta-section {
    padding: 60px 0;
    text-align: center;
}

.page-blog__cta-section .page-blog__text-block {
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 40px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-blog__hero-content {
        padding: 25px;
    }
    .page-blog__main-title {
        font-size: clamp(28px, 4vw, 48px);
    }
    .page-blog__hero-description {
        font-size: 17px;
    }
    .page-blog__section-title {
        font-size: clamp(24px, 3vw, 40px);
    }
}

@media (max-width: 768px) {
    .page-blog {
        font-size: 16px;
        line-height: 1.6;
    }
    .page-blog__container {
        padding: 0 15px;
    }

    .page-blog__hero-section {
        padding: 40px 15px;
        padding-top: 10px !important;
    }

    .page-blog__hero-content {
        padding: 20px;
    }
    .page-blog__main-title {
        font-size: clamp(26px, 6vw, 38px);
        margin-bottom: 15px;
    }
    .page-blog__hero-description {
        font-size: 16px;
        margin-bottom: 25px;
    }

    .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;
      margin-bottom: 10px; /* Add some space between stacked buttons */
    }

    .page-blog__btn-primary + .page-blog__btn-primary, /* For multiple buttons stacked */
    .page-blog__btn-secondary + .page-blog__btn-secondary {
      margin-top: 10px;
    }

    .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;
      display: flex;
      flex-direction: column;
      align-items: center; /* Center buttons when stacked */
    }

    .page-blog img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    .page-blog__section,
    .page-blog__card,
    .page-blog__container,
    .page-blog__category-card,
    .page-blog__article-card,
    .page-blog__faq-item {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-blog__category-card .page-blog__card-description {
        padding-bottom: 15px;
    }
    .page-blog__category-card .page-blog__btn-secondary {
        margin-bottom: 15px;
    }

    .page-blog__faq-item summary {
        font-size: 17px;
        padding: 18px 20px;
    }
    .page-blog__faq-answer {
        padding: 0 20px 18px;
    }

    .page-blog__grid-layout {
        grid-template-columns: 1fr;
    }
    .page-blog__articles-grid {
        grid-template-columns: 1fr;
    }
    .page-blog__category-image, .page-blog__article-image {
        height: auto; /* Allow auto height on mobile for better aspect ratio */
    }
}

/* Dark background section for contrast */
.page-blog__dark-section {
    background-color: var(--vf88-win-bg);
    color: var(--vf88-win-text-main);
}

.page-blog__light-bg {
    background-color: var(--vf88-win-card-bg);
    color: var(--vf88-win-text-main);
}

.page-blog p, .page-blog li {
    color: var(--vf88-win-text-secondary);
}

.page-blog__section-title, .page-blog__main-title {
    color: var(--vf88-win-gold);
}

.page-blog__article-title a, .page-blog__faq-item summary {
    color: var(--vf88-win-gold);
}

.page-blog__read-more, .page-blog__faq-toggle {
    color: var(--vf88-win-primary);
}