/* style/blog.css */

:root {
    --primary-color: #113B7A;
    --secondary-color: #1D5FD1;
    --button-gradient: linear-gradient(180deg, #2B73F6 0%, #1144A6 100%);
    --card-bg: #10233F;
    --text-main: #F3F8FF;
    --text-secondary: #AFC4E8;
    --border-color: #244D84;
    --glow-color: #4FA8FF;
    --gold-color: #F2C14E;
    --divider-color: #1B3357;
    --deep-navy: #08162B;
}

.page-blog {
    font-family: Arial, sans-serif;
    color: var(--text-main); /* Default text color for the page, suitable for dark background */
    background-color: var(--deep-navy); /* Ensure body background is respected from shared.css */
}

.page-blog__dark-bg {
    background-color: var(--deep-navy);
    color: var(--text-main);
}

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

.page-blog__hero-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.page-blog__hero-image {
    width: 100%;
    margin-bottom: 30px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

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

.page-blog__hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 100%;
    max-width: 900px;
}

.page-blog__main-title {
    font-size: 3.2em;
    font-weight: 700;
    color: var(--gold-color);
    line-height: 1.2;
    margin-bottom: 20px;
    text-shadow: 0 0 10px var(--glow-color);
}

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

.page-blog__cta-button {
    display: inline-block;
    padding: 15px 40px;
    background: var(--button-gradient);
    color: #ffffff;
    text-decoration: none;
    border-radius: 50px;
    font-size: 1.1em;
    font-weight: bold;
    margin-top: 20px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    border: none;
    cursor: pointer;
}

.page-blog__cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
    filter: brightness(1.1);
}

.page-blog__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    background-color: var(--deep-navy);
    border-radius: 10px;
}

.page-blog__section-title {
    font-size: 2.5em;
    font-weight: 700;
    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(--secondary-color);
    border-radius: 2px;
}

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

.page-blog__latest-posts-section .page-blog__container {
    padding-top: 60px;
    padding-bottom: 60px;
}

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

.page-blog__post-card {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    overflow: hidden;
    text-decoration: none;
    color: var(--text-main);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

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

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

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

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

.page-blog__card-excerpt {
    font-size: 0.95em;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 15px;
    flex-grow: 1;
}

.page-blog__post-date {
    font-size: 0.85em;
    color: var(--text-secondary);
    opacity: 0.8;
    text-align: right;
    margin-top: auto;
}

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

.page-blog__cta-section {
    padding: 80px 20px;
    text-align: center;
}

.page-blog__cta-content {
    max-width: 900px;
    background-color: var(--deep-navy);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 50px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.4);
}

.page-blog__faq-section {
    padding-top: 60px;
    padding-bottom: 80px;
}

.page-blog__faq-list {
    margin-top: 40px;
}

details.page-blog__faq-item {
    margin-bottom: 15px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    overflow: hidden;
    background: var(--card-bg);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

details.page-blog__faq-item summary.page-blog__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    cursor: pointer;
    user-select: none;
    list-style: none;
    transition: background-color 0.3s ease;
    font-size: 1.1em;
    font-weight: 600;
    color: var(--text-main);
}

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

details.page-blog__faq-item summary.page-blog__faq-question:hover {
    background: rgba(var(--primary-color), 0.2);
}

.page-blog__faq-qtext {
    flex: 1;
    line-height: 1.5;
    text-align: left;
    color: var(--text-main);
}

.page-blog__faq-toggle {
    font-size: 24px;
    font-weight: bold;
    color: var(--gold-color);
    flex-shrink: 0;
    margin-left: 15px;
    width: 28px;
    text-align: center;
}

details.page-blog__faq-item .page-blog__faq-answer {
    padding: 0 25px 20px;
    background: rgba(var(--primary-color), 0.1);
    border-radius: 0 0 8px 8px;
    font-size: 1em;
    line-height: 1.7;
    color: var(--text-secondary);
}

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

/* General image responsiveness */
.page-blog img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-blog__main-title {
        font-size: 2.8em;
    }
    .page-blog__section-title {
        font-size: 2.2em;
    }
    .page-blog__hero-description, .page-blog__text-block {
        font-size: 1em;
    }
    .page-blog__post-card img {
        
    }
    .page-blog__card-title {
        font-size: 1.2em;
    }
    .page-blog__card-excerpt {
        font-size: 0.9em;
    }
    .page-blog__faq-item summary.page-blog__faq-question {
        font-size: 1em;
    }
}

@media (max-width: 768px) {
    .page-blog__hero-section {
        padding-top: 10px !important;
        padding-bottom: 40px;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-blog__hero-image {
        margin-bottom: 20px;
    }
    .page-blog__hero-image img {
        border-radius: 4px;
    }
    .page-blog__main-title {
        font-size: 2em;
        margin-bottom: 15px;
    }
    .page-blog__hero-description {
        font-size: 0.95em;
        margin-bottom: 20px;
    }
    .page-blog__cta-button {
        padding: 12px 30px;
        font-size: 1em;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }
    .page-blog__container {
        padding: 30px 15px;
    }
    .page-blog__section-title {
        font-size: 1.8em;
        margin-bottom: 30px;
    }
    .page-blog__post-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .page-blog__post-card img {
        
    }
    .page-blog__card-title {
        font-size: 1.1em;
    }
    .page-blog__card-excerpt {
        font-size: 0.85em;
    }
    .page-blog__view-all-button-container {
        margin-top: 40px;
    }
    .page-blog__cta-section {
        padding: 50px 15px;
    }
    .page-blog__cta-content {
        padding: 30px;
    }
    details.page-blog__faq-item summary.page-blog__faq-question {
        padding: 15px;
        font-size: 0.95em;
    }
    .page-blog__faq-qtext {
        font-size: 0.95em;
    }
    .page-blog__faq-toggle {
        font-size: 20px;
        width: 24px;
    }
    details.page-blog__faq-item .page-blog__faq-answer {
        padding: 0 15px 15px;
        font-size: 0.9em;
    }

    /* Mobile image and container specific overrides */
    .page-blog img {
      max-width: 100% !important;
      width: 100% !important;
      height: auto !important;
    }
    
    .page-blog__section, .page-blog__card, .page-blog__container, .page-blog__cta-content {
      max-width: 100% !important;
      width: 100% !important;
      box-sizing: border-box !important;
      padding-left: 15px;
      padding-right: 15px;
    }
}