/* style/blog.css */

:root {
    --primary-color: #C91F17;
    --secondary-color: #E53935;
    --text-main-color: #FFF5E1;
    --card-bg-color: #D32F2F;
    --background-dark-color: #B71C1C;
    --border-color: #F2B544;
    --button-gradient: linear-gradient(180deg, #FFD86A 0%, #E6B800 100%);
    --button-text-color: #FFF5E1; /* Adjusted for contrast on gold button */
    --light-bg-color: #ffffff;
    --dark-text-color: #333333;
}

.page-blog {
    font-family: 'Arial', sans-serif;
    color: var(--text-main-color); /* Main text color for the page */
    background-color: var(--background-dark-color); /* Assuming body background is dark */
}

.page-blog__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px 0 40px; /* Small top padding, more bottom padding */
    background-color: var(--background-dark-color);
    overflow: hidden;
}

.page-blog__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    max-height: 500px; /* Limit hero image height */
    filter: brightness(0.7); /* Slightly dim the image for text readability */
}

.page-blog__hero-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    max-width: 900px;
    width: 90%;
    z-index: 1;
    padding: 20px;
    box-sizing: border-box;
    background: rgba(0, 0, 0, 0.4); /* Semi-transparent background for text */
    border-radius: 8px;
}

.page-blog__main-title {
    font-size: clamp(2em, 5vw, 3.5em);
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-main-color);
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.page-blog__hero-description {
    font-size: clamp(1em, 2vw, 1.3em);
    color: var(--text-main-color);
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
}

.page-blog__btn-primary,
.page-blog__btn-secondary {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1em;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    text-align: center;
    max-width: 100%;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-blog__btn-primary {
    background: var(--button-gradient);
    color: #333333; /* Dark text for gold button for better contrast */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

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

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

.page-blog__btn-secondary:hover {
    background: var(--border-color);
    color: var(--dark-text-color);
}

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

.page-blog__dark-section {
    background-color: var(--card-bg-color);
    color: var(--text-main-color);
    padding: 60px 0;
}

.page-blog__light-bg {
    background-color: var(--light-bg-color);
    color: var(--dark-text-color);
}

.page-blog__section-title {
    font-size: 2.5em;
    font-weight: 700;
    color: var(--text-main-color);
    text-align: center;
    margin-bottom: 20px;
    line-height: 1.3;
}

.page-blog__dark-section .page-blog__section-title {
    color: var(--text-main-color);
}

.page-blog__section-description {
    font-size: 1.1em;
    text-align: center;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: var(--text-main-color);
}

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

.page-blog__article-card {
    display: flex;
    flex-direction: column;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none;
}

.page-blog__article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
}

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

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

.page-blog__card-title {
    font-size: 1.4em;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--dark-text-color);
    line-height: 1.4;
}

.page-blog__card-excerpt {
    font-size: 0.95em;
    color: #666;
    margin-bottom: 15px;
    line-height: 1.6;
}

.page-blog__card-date {
    font-size: 0.85em;
    color: #999;
    display: block;
    text-align: right;
}

.page-blog__recent-articles {
    padding: 60px 0;
    background-color: var(--background-dark-color);
}

.page-blog__article-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 25px;
}

.page-blog__article-item {
    display: flex;
    align-items: center;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none;
}

.page-blog__article-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

.page-blog__article-item-image {
    width: 300px;
    height: 169px; /* 16:9 aspect ratio */
    object-fit: cover;
    flex-shrink: 0;
    display: block;
}

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

.page-blog__item-title {
    font-size: 1.25em;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--dark-text-color);
    line-height: 1.3;
}

.page-blog__item-excerpt {
    font-size: 0.9em;
    color: #666;
    margin-bottom: 10px;
    line-height: 1.5;
}

.page-blog__item-date {
    font-size: 0.8em;
    color: #999;
    display: block;
    text-align: right;
}

.page-blog__view-all-btn-container {
    text-align: center;
    margin-top: 40px;
}

.page-blog__categories {
    padding: 60px 0;
}

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

.page-blog__category-card {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    font-size: 1.1em;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    min-height: 80px;
    text-align: center;
    color: var(--dark-text-color);
}

.page-blog__category-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
    background-color: var(--border-color);
    color: var(--dark-text-color);
}

.page-blog__faq-section {
    padding: 60px 0;
    background-color: var(--background-dark-color);
}

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

.page-blog__faq-item {
    background-color: var(--card-bg-color);
    border-radius: 10px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    color: var(--text-main-color);
}

.page-blog__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    font-size: 1.2em;
    font-weight: 600;
    cursor: pointer;
    background-color: var(--card-bg-color);
    color: var(--text-main-color);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    list-style: none;
}

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

.page-blog__faq-item[open] .page-blog__faq-question {
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

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

.page-blog__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    margin-left: 15px;
}

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

.page-blog__faq-answer p {
    margin-bottom: 0;
    color: var(--text-main-color);
}

.page-blog__faq-answer a {
    color: var(--border-color);
    text-decoration: underline;
}

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

.page-blog__cta-section .page-blog__section-title {
    margin-bottom: 15px;
}

.page-blog__cta-description {
    font-size: 1.15em;
    max-width: 800px;
    margin: 0 auto 30px;
    color: var(--text-main-color);
}

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

/* --- Responsive Styles --- */
@media (max-width: 1024px) {
    .page-blog__hero-content {
        max-width: 80%;
    }
    .page-blog__article-item-image {
        width: 200px;
        height: 112px;
    }
    .page-blog__item-title {
        font-size: 1.1em;
    }
    .page-blog__item-excerpt {
        font-size: 0.85em;
    }
}

@media (max-width: 768px) {
    .page-blog__hero-section {
        padding: 10px 0 30px;
    }
    .page-blog__hero-content {
        padding: 15px;
        width: 90%;
    }
    .page-blog__main-title {
        font-size: 2em;
        margin-bottom: 10px;
    }
    .page-blog__hero-description {
        font-size: 0.95em;
        margin-bottom: 20px;
    }
    .page-blog__btn-primary,
    .page-blog__btn-secondary {
        font-size: 1em;
        padding: 10px 20px;
        width: 100% !important;
        max-width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
    .page-blog__cta-buttons {
        flex-direction: column;
        gap: 15px;
        padding: 0 20px;
    }
    .page-blog__section-title {
        font-size: 2em;
    }
    .page-blog__section-description {
        font-size: 1em;
        padding: 0 15px;
    }
    .page-blog__article-grid {
        grid-template-columns: 1fr;
        padding: 0 15px;
    }
    .page-blog__article-card {
        margin-bottom: 20px;
    }
    .page-blog__article-item {
        flex-direction: column;
        text-align: center;
        padding-bottom: 20px;
        margin-bottom: 20px;
    }
    .page-blog__article-item-image {
        width: 100% !important;
        height: auto !important;
        max-width: 100% !important;
        margin-bottom: 15px;
    }
    .page-blog__item-content {
        padding: 0 20px;
    }
    .page-blog__item-date {
        text-align: center;
    }
    .page-blog__category-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        padding: 0 15px;
    }
    .page-blog__faq-item {
        margin: 0 15px 15px;
    }
    .page-blog__cta-section .page-blog__container {
        padding: 0 15px;
    }
    /* Images responsive rules */
    .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 {
      max-width: 100% !important;
      width: 100% !important;
      box-sizing: border-box !important;
      padding-left: 15px;
      padding-right: 15px;
    }
    .page-blog__hero-image {
        max-height: 300px;
    }
    .page-blog__video-section {
        padding-top: 10px !important;
    }
}

@media (max-width: 480px) {
    .page-blog__main-title {
        font-size: 1.8em;
    }
    .page-blog__section-title {
        font-size: 1.8em;
    }
    .page-blog__article-card {
        margin-bottom: 15px;
    }
    .page-blog__article-item {
        margin-bottom: 15px;
    }
    .page-blog__cta-buttons {
        flex-direction: column;
    }
}