/* style/blog.css */

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

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

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

.page-blog__section-title {
    font-size: 2.5rem;
    color: var(--gold-color);
    text-align: center;
    margin-bottom: 40px;
    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(--primary-color);
    border-radius: 2px;
}

.page-blog__text-block {
    margin-bottom: 20px;
    color: var(--text-secondary);
    font-size: 1.1rem;
    line-height: 1.8;
}

/* Hero Section */
.page-blog__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px 0 60px 0; /* body padding-top handles header offset, small top padding for aesthetic */
    overflow: hidden;
    text-align: center;
}

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

.page-blog__hero-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.3; /* Overlay effect */
}

.page-blog__hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    padding: 40px 20px;
    color: var(--text-main);
}

.page-blog__main-title {
    font-size: 3.2rem;
    color: var(--gold-color);
    margin-bottom: 20px;
    line-height: 1.2;
    font-weight: bold;
}

.page-blog__description {
    font-size: 1.4rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
    line-height: 1.5;
}

.page-blog__cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.page-blog__btn-primary,
.page-blog__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
    box-sizing: border-box;
    max-width: 100%;
    white-space: normal;
    word-wrap: break-word;
}

.page-blog__btn-primary {
    background: var(--button-gradient);
    color: #ffffff;
    border: none;
}

.page-blog__btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

.page-blog__btn-secondary {
    background: var(--card-bg);
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.page-blog__btn-secondary:hover {
    background: var(--primary-color);
    color: #ffffff;
    transform: translateY(-2px);
}

/* Content Sections */
.page-blog__content-section,
.page-blog__products-section,
.page-blog__advantages-section,
.page-blog__promotions-section,
.page-blog__cta-bottom-section {
    padding: 60px 0;
    background-color: var(--main-bg);
}

.page-blog__guide-section,
.page-blog__faq-section {
    padding: 60px 0;
    background-color: #ffffff; /* Light background for contrast */
    color: #333333; /* Dark text for light background */
}

.page-blog__guide-section .page-blog__section-title,
.page-blog__faq-section .page-blog__section-title {
    color: var(--deep-green);
}

.page-blog__guide-section .page-blog__text-block,
.page-blog__faq-section .page-blog__text-block {
    color: #555555;
}

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

.page-blog__card {
    background-color: var(--card-bg);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
    color: var(--text-main);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.page-blog__card:hover {
    transform: translateY(-5px);
}

.page-blog__card img {
    width: 100%;
    height: 200px; /* Fixed height for consistency */
    object-fit: cover;
    display: block;
}

.page-blog__card-title {
    font-size: 1.4rem;
    color: var(--gold-color);
    padding: 15px 20px 10px;
    flex-grow: 1;
}

.page-blog__card-title a {
    color: inherit;
    text-decoration: none;
}

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

.page-blog__card-text {
    color: var(--text-secondary);
    padding: 0 20px 15px;
    font-size: 1rem;
}

.page-blog__btn-text {
    display: inline-block;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: bold;
    padding: 10px 20px 20px;
    transition: color 0.3s ease;
}

.page-blog__btn-text:hover {
    color: var(--gold-color);
}

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

.page-blog__advantage-item {
    background-color: var(--card-bg);
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    text-align: center;
}

.page-blog__advantage-title {
    font-size: 1.5rem;
    color: var(--gold-color);
    margin-bottom: 15px;
}

/* Guide Section */
.page-blog__guide-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-blog__step-item {
    background-color: #f8f8f8;
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: relative;
    padding-top: 60px;
}

.page-blog__step-number {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--primary-color);
    color: #ffffff;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    font-weight: bold;
    border: 3px solid #ffffff;
    box-shadow: 0 0 0 5px var(--glow-color);
}

.page-blog__step-title {
    font-size: 1.3rem;
    color: var(--deep-green);
    margin-bottom: 15px;
}

.page-blog__cta-center {
    text-align: center;
    margin-top: 40px;
}

/* Promotions Section */
.page-blog__promotion-list {
    list-style: none;
    padding: 0;
    margin-top: 40px;
}

.page-blog__promotion-item {
    background-color: var(--card-bg);
    border-radius: 10px;
    padding: 25px 30px;
    margin-bottom: 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.page-blog__promotion-title {
    font-size: 1.4rem;
    color: var(--gold-color);
    margin-bottom: 10px;
}

/* FAQ Section */
.page-blog__faq-list {
    margin-top: 40px;
}

.page-blog__faq-item {
    background-color: #f8f8f8;
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.page-blog__faq-item summary {
    display: block;
    cursor: pointer;
    padding: 20px 25px;
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--deep-green);
    position: relative;
    list-style: none; /* Hide default marker */
}

.page-blog__faq-item summary::-webkit-details-marker {
    display: none; /* Hide default marker for webkit browsers */
}

.page-blog__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.page-blog__faq-toggle {
    font-size: 1.5rem;
    line-height: 1;
    color: var(--primary-color);
    transition: transform 0.3s ease;
}

.page-blog__faq-item[open] .page-blog__faq-toggle {
    transform: rotate(45deg); /* Rotate plus to form an 'x' or simply change to minus */
}

.page-blog__faq-answer {
    padding: 0 25px 20px;
    color: #555555;
    font-size: 1.05rem;
}

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

/* Call to Action Bottom Section */
.page-blog__cta-bottom-section {
    text-align: center;
    padding: 80px 0;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-blog__main-title {
        font-size: 2.8rem;
    }
    .page-blog__description {
        font-size: 1.2rem;
    }
    .page-blog__section-title {
        font-size: 2rem;
    }
    .page-blog__card-title {
        font-size: 1.2rem;
    }
}

@media (max-width: 768px) {
    .page-blog__main-title {
        font-size: 2.2rem;
    }
    .page-blog__description {
        font-size: 1.1rem;
    }
    .page-blog__section-title {
        font-size: 1.8rem;
    }
    .page-blog__hero-section {
        padding: 10px 0 40px 0;
    }
    .page-blog__hero-content {
        padding: 20px;
    }
    .page-blog__cta-buttons {
        flex-direction: column;
        gap: 15px;
        width: 100%;
        max-width: 300px; /* Constrain buttons for better mobile look */
        margin: 0 auto;
    }
    .page-blog__btn-primary,
    .page-blog__btn-secondary {
        width: 100% !important;
        max-width: 100% !important;
        padding: 12px 20px;
        font-size: 1rem;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }
    .page-blog__container,
    .page-blog__content-section,
    .page-blog__products-section,
    .page-blog__advantages-section,
    .page-blog__guide-section,
    .page-blog__promotions-section,
    .page-blog__faq-section,
    .page-blog__cta-bottom-section {
        padding-left: 15px !important;
        padding-right: 15px !important;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    .page-blog__card img {
        
    }
    .page-blog img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-blog video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-blog__video-section,
    .page-blog__video-container,
    .page-blog__video-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important;
    }
    .page-blog__video-section {
        padding-top: 10px !important;
    }
    .page-blog__advantage-item, .page-blog__step-item {
        padding: 25px;
    }
    .page-blog__step-number {
        top: -15px;
        width: 40px;
        height: 40px;
        font-size: 1.5rem;
    }
    .page-blog p, .page-blog li {
      font-size: 1rem;
      line-height: 1.7;
    }
}

@media (max-width: 480px) {
    .page-blog__main-title {
        font-size: 1.8rem;
    }
    .page-blog__description {
        font-size: 1rem;
    }
    .page-blog__section-title {
        font-size: 1.5rem;
    }
    .page-blog__card-title {
        font-size: 1.1rem;
    }
    .page-blog__advantage-title {
        font-size: 1.3rem;
    }
    .page-blog__step-title {
        font-size: 1.1rem;
    }
    .page-blog__faq-item summary {
        font-size: 1.1rem;
    }
    .page-blog__faq-answer {
        font-size: 0.95rem;
    }
}