/* style/blog.css */

/* --- General Page Styling --- */
.page-blog {
    color: #FFF6D6; /* Text Main */
    background: #0A0A0A; /* Background */
    font-family: Arial, sans-serif;
    line-height: 1.6;
}

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

.page-blog__section {
    padding: 60px 0;
    position: relative;
    z-index: 1; /* Ensure sections are above any potential background layers */
}

.page-blog__dark-section {
    background: #111111; /* Card BG */
}

.page-blog__section-title {
    font-size: 2.5em;
    color: #F2C14E; /* Primary color for titles */
    text-align: center;
    margin-bottom: 20px;
    font-weight: bold;
    line-height: 1.2;
    letter-spacing: 0.05em;
}

.page-blog__section-description {
    font-size: 1.1em;
    color: #FFF6D6; /* Text Main */
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px auto;
}

/* --- Hero Section --- */
.page-blog__hero-section {
    padding-top: var(--header-offset, 120px); /* Fixed header offset */
    padding-bottom: 60px;
    display: flex;
    flex-direction: column; /* Ensure image is above content */
    align-items: center;
    background: linear-gradient(135deg, #F2C14E, #FFD36B); /* Main/Auxiliary gradient for visual appeal */
    position: relative;
    overflow: hidden;
}

.page-blog__hero-image-wrapper {
    width: 100%;
    max-width: 1200px;
    margin-bottom: 40px; /* Space between image and text */
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

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

.page-blog__hero-content {
    text-align: center;
    max-width: 900px;
    padding: 0 20px;
    z-index: 2; /* Ensure content is readable */
}

.page-blog__main-title {
    color: #0A0A0A; /* Dark text on light hero background */
    font-size: clamp(2.2em, 4vw, 3.5em); /* Responsive H1 font size */
    margin-bottom: 15px;
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: 0.03em;
}

.page-blog__hero-description {
    color: #333333; /* Dark text for contrast */
    font-size: 1.2em;
    margin-bottom: 30px;
    line-height: 1.5;
}

/* --- CTA Button General Style --- */
.page-blog__cta-button {
    display: inline-block;
    padding: 14px 30px;
    border-radius: 50px;
    font-size: 1.1em;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    text-align: center;
    max-width: 100%; /* Ensure responsiveness */
    box-sizing: border-box; /* Include padding in width */
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Break long words */
}

.page-blog__btn-primary {
    background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%); /* Button color */
    color: #0A0A0A; /* Dark text on button */
    border: 2px solid transparent;
    box-shadow: 0 4px 15px rgba(255, 216, 106, 0.4);
}

.page-blog__btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 216, 106, 0.6);
}

.page-blog__btn-secondary {
    background: transparent;
    color: #FFD36B; /* Glow color */
    border: 2px solid #FFD36B; /* Glow color border */
    box-shadow: 0 0 10px rgba(255, 211, 107, 0.3);
}

.page-blog__btn-secondary:hover {
    background: rgba(255, 211, 107, 0.1);
    transform: translateY(-3px);
    box-shadow: 0 0 15px rgba(255, 211, 107, 0.6);
}

/* --- Latest Posts Grid --- */
.page-blog__post-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.page-blog__post-card {
    background: #111111; /* Card BG */
    border: 1px solid #3A2A12; /* Border color */
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    color: #FFF6D6; /* Text Main */
}

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

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

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

.page-blog__post-title {
    font-size: 1.5em;
    margin-bottom: 10px;
    line-height: 1.3;
    font-weight: 600;
}

.page-blog__post-title a {
    color: #F2C14E; /* Primary color for links */
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-blog__post-title a:hover {
    color: #FFD36B; /* Auxiliary color on hover */
    text-decoration: underline;
}

.page-blog__post-meta {
    font-size: 0.9em;
    color: #FFD36B; /* Auxiliary color for meta info */
    margin-bottom: 15px;
}

.page-blog__post-excerpt {
    font-size: 1em;
    color: #FFF6D6; /* Text Main */
    margin-bottom: 20px;
    flex-grow: 1;
}

.page-blog__read-more-btn {
    display: inline-block;
    padding: 10px 20px;
    border: 1px solid #F2C14E; /* Primary color border */
    border-radius: 5px;
    color: #F2C14E; /* Primary color text */
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease;
    align-self: flex-start;
}

.page-blog__read-more-btn:hover {
    background-color: #F2C14E; /* Primary color background */
    color: #0A0A0A; /* Dark text on hover */
}

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

.page-blog__view-all-btn {
    padding: 15px 40px;
    font-size: 1.2em;
}

/* --- Categories Section --- */
.page-blog__category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.page-blog__category-card {
    background: #111111; /* Card BG */
    border: 1px solid #3A2A12; /* Border color */
    border-radius: 12px;
    padding: 25px 15px;
    text-align: center;
    text-decoration: none;
    color: #FFF6D6; /* Text Main */
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 150px;
}

.page-blog__category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    background-color: rgba(242, 193, 78, 0.1); /* Slight highlight */
}

.page-blog__category-icon {
    width: 30px; /* Allowed small size for icons */
    height: 30px; /* Allowed small size for icons */
    object-fit: contain;
    margin-bottom: 15px;
    filter: drop-shadow(0 0 5px #FFD36B); /* Glow effect */
}

.page-blog__category-title {
    font-size: 1.2em;
    font-weight: 600;
    color: #F2C14E; /* Primary color */
}

/* --- Popular Posts Section --- */
.page-blog__popular-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-blog__popular-card {
    background: #111111; /* Card BG */
    border: 1px solid #3A2A12; /* Border color */
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    color: #FFF6D6; /* Text Main */
}

.page-blog__popular-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}

.page-blog__popular-image {
    width: 100%;
    height: 200px; /* Fixed height */
    object-fit: cover;
    display: block;
}

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

.page-blog__popular-title {
    font-size: 1.4em;
    margin-bottom: 10px;
    line-height: 1.3;
    font-weight: 600;
}

.page-blog__popular-title a {
    color: #F2C14E; /* Primary color for links */
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-blog__popular-title a:hover {
    color: #FFD36B; /* Auxiliary color on hover */
    text-decoration: underline;
}

.page-blog__popular-meta {
    font-size: 0.9em;
    color: #FFD36B; /* Auxiliary color */
    margin-bottom: 15px;
}

.page-blog__popular-excerpt {
    font-size: 1em;
    color: #FFF6D6; /* Text Main */
    margin-bottom: 20px;
    flex-grow: 1;
}

/* --- CTA Section --- */
.page-blog__cta-section {
    text-align: center;
    background: #111111; /* Card BG for dark section */
    padding: 80px 0;
}

.page-blog__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
    width: 100%; /* Ensure container is full width */
    max-width: 600px; /* Limit width on desktop */
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
    overflow: hidden;
}

/* --- FAQ Section --- */
.page-blog__faq-list {
    margin-top: 40px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}