/* General styles for the blog page */
.page-blog {
    font-family: 'Arial', sans-serif;
    color: #FFF6D6; /* Main text color for dark background */
    background-color: #0A0A0A; /* Body background from shared */
    line-height: 1.6;
}

/* Hero Section */
.page-blog__hero-section {
    padding-top: 10px; /* Small top padding, assuming body has header offset */
    padding-bottom: 60px;
    background-color: #0A0A0A; /* Ensure consistent dark background */
}

.page-blog__hero-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    padding: 40px 20px;
    gap: 40px;
}

.page-blog__hero-content {
    flex: 1 1 45%;
    min-width: 300px;
    color: #FFF6D6; /* Text Main */
}

.page-blog__hero-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem); /* Responsive H1 font size */
    font-weight: 700;
    line-height: 1.2;
    color: #FFD36B; /* Glow color for main title */
    margin-bottom: 20px;
    text-shadow: 0 0 8px rgba(255, 211, 107, 0.5); /* Subtle glow effect */
}

.page-blog__hero-description {
    font-size: 1.1rem;
    margin-bottom: 30px;
    color: #FFF6D6; /* Text Main */
}

.page-blog__hero-cta-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
}

.page-blog__hero-image {
    flex: 1 1 50%;
    min-width: 300px;
    text-align: center;
}

.page-blog__hero-side-image {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
}

/* Content Area - Blog List */
.page-blog__content-area {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px;
    background-color: #0A0A0A; /* Consistent dark background */
}

.page-blog__section-title {
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 600;
    color: #F2C14E; /* Primary color for section titles */
    text-align: center;
    margin-bottom: 50px;
    text-shadow: 0 0 5px rgba(242, 193, 78, 0.4);
}

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

.page-blog__blog-card {
    background-color: #111111; /* Card BG */
    border: 1px solid #3A2A12; /* Border color */
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-blog__blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
}

.page-blog__blog-card-link {
    text-decoration: none;
    display: block;
    color: inherit;
}

.page-blog__blog-card-media {
    width: 100%;
    height: 220px; /* Fixed height for consistency */
    overflow: hidden;
}

.page-blog__blog-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.page-blog__blog-card:hover .page-blog__blog-card-media img {
    transform: scale(1.05);
}

.page-blog__blog-card-content {
    padding: 25px;
}

.page-blog__blog-card-title {
    font-size: 1.4rem;
    font-weight: 600;
    color: #F2C14E; /* Primary color for card titles */
    margin-bottom: 10px;
    line-height: 1.4;
}

.page-blog__blog-card-meta {
    font-size: 0.9rem;
    color: #999; /* Slightly lighter for meta info */
    margin-bottom: 15px;
}

.page-blog__blog-card-excerpt {
    font-size: 1rem;
    color: #FFF6D6; /* Text Main */
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 3; /* Limit excerpt to 3 lines */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.page-blog__blog-card-readmore {
    display: inline-block;
    color: #FFD36B; /* Glow color for read more */
    font-weight: 500;
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-blog__blog-card-readmore:hover {
    color: #F2C14E; /* Primary color on hover */
}

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

/* Call To Action Section */
.page-blog__cta-section {
    background-color: #111111; /* Card BG */
    padding: 80px 20px;
    text-align: center;
    border-top: 1px solid #3A2A12; /* Border color */
}

.page-blog__cta-container {
    max-width: 900px;
    margin: 0 auto;
}

.page-blog__cta-title {
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 700;
    color: #FFD36B; /* Glow color for CTA title */
    margin-bottom: 20px;
    text-shadow: 0 0 8px rgba(255, 211, 107, 0.5);
}

.page-blog__cta-description {
    font-size: 1.1rem;
    color: #FFF6D6; /* Text Main */
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Buttons */
.page-blog__btn-primary,
.page-blog__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow text wrapping */
    box-sizing: border-box; /* Include padding in width */
    max-width: 100%; /* Ensure button doesn't overflow */
}

.page-blog__btn-primary {
    background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%); /* Button gradient */
    color: #111111; /* Dark text for bright button */
    border: none;
    box-shadow: 0 4px 15px rgba(242, 193, 78, 0.4);
}

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

.page-blog__btn-secondary {
    background: transparent;
    color: #F2C14E; /* Primary color for secondary button text */
    border: 2px solid #F2C14E; /* Primary color for border */
}

.page-blog__btn-secondary:hover {
    background-color: #F2C14E; /* Primary color background on hover */
    color: #111111; /* Dark text on hover */
    transform: translateY(-3px);
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-blog__hero-container {
        flex-direction: column;
        text-align: center;
    }
    .page-blog__hero-content,
    .page-blog__hero-image {
        flex: 1 1 100%;
        max-width: 100%;
    }
    .page-blog__hero-cta-buttons {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    /* HERO Section */
    .page-blog__hero-section {
        padding-top: 10px !important; /* Small top padding, assuming body has header offset */
        padding-bottom: 40px;
    }

    .page-blog__hero-container {
        padding: 30px 15px;
        gap: 30px;
    }

    .page-blog__hero-title {
        font-size: clamp(2rem, 8vw, 2.8rem);
        margin-bottom: 15px;
    }

    .page-blog__hero-description {
        font-size: 1rem;
        margin-bottom: 25px;
    }

    .page-blog__hero-cta-buttons {
        flex-direction: column; /* Stack buttons vertically */
        gap: 10px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        padding: 0 15px; /* Add padding to container for buttons */
    }

    /* Buttons (General) */
    .page-blog__btn-primary,
    .page-blog__btn-secondary {
        max-width: 100% !important;
        width: 100% !important;
        padding: 12px 20px;
        font-size: 1rem;
        white-space: normal !important;
        word-wrap: break-word !important;
        box-sizing: border-box !important;
    }

    /* Blog List */
    .page-blog__content-area {
        padding: 40px 15px;
    }

    .page-blog__section-title {
        font-size: clamp(1.8rem, 7vw, 2.5rem);
        margin-bottom: 40px;
    }

    .page-blog__blog-list {
        grid-template-columns: 1fr; /* Single column for blog cards */
        gap: 25px;
    }

    .page-blog__blog-card-media {
        height: 180px; /* Adjust height for mobile */
    }

    .page-blog__blog-card-title {
        font-size: 1.2rem;
    }

    .page-blog__blog-card-excerpt {
        font-size: 0.95rem;
    }

    .page-blog__view-all {
        padding: 0 15px;
        box-sizing: border-box;
        width: 100%;
    }

    /* CTA Section */
    .page-blog__cta-section {
        padding: 60px 15px;
    }

    .page-blog__cta-title {
        font-size: clamp(1.8rem, 7vw, 2.5rem);
        margin-bottom: 15px;
    }

    .page-blog__cta-description {
        font-size: 1rem;
        margin-bottom: 30px;
    }

    .page-blog__cta-buttons {
        flex-direction: column; /* Stack CTA buttons vertically */
        gap: 10px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        padding: 0 15px; /* Add padding to container for buttons */
    }

    /* General image responsive styles for content area */
    .page-blog img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !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;
    }
}