/* General styles for the Blog page */
.page-blog {
    font-family: 'Arial', sans-serif;
    color: #333333; /* Default text color for light background */
    background: #F4F7FB; /* Custom background color */
    line-height: 1.6;
}

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

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

.page-blog__section-title {
    font-size: 36px;
    font-weight: 700;
    color: #1F2D3D; /* Text Main color */
    text-align: center;
    margin-bottom: 20px;
    line-height: 1.2;
}

.page-blog__section-description {
    font-size: 18px;
    color: #333333;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px;
    line-height: 1.5;
}

/* Hero Section */
.page-blog__hero-section {
    padding-top: 10px; /* Small top padding, body handles header offset */
    padding-bottom: 60px;
    background: linear-gradient(180deg, #6FA3FF 0%, #2F6BFF 100%); /* Blue gradient background */
    color: #ffffff;
}

.page-blog__hero-section .page-blog__container {
    display: flex;
    align-items: center;
    gap: 40px;
}

.page-blog__hero-content {
    flex: 1;
    text-align: left;
}

.page-blog__main-title {
    font-size: clamp(32px, 4.5vw, 48px); /* Responsive font size for H1 */
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
    color: #ffffff;
}

.page-blog__hero-description {
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 30px;
}

.page-blog__cta-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap; /* Allow wrapping for multiple buttons */
}

.page-blog__btn-primary,
.page-blog__btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    box-sizing: border-box;
    max-width: 100%; /* Ensure buttons don't overflow */
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow text breaking */
    text-align: center;
}

.page-blog__btn-primary {
    background: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%);
    color: #ffffff;
    border: none;
}

.page-blog__btn-primary:hover {
    background: linear-gradient(180deg, #2F6BFF 0%, #4A8BFF 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.page-blog__btn-secondary {
    background: #ffffff;
    color: #2F6BFF;
    border: 2px solid #2F6BFF;
}

.page-blog__btn-secondary:hover {
    background: #e0e0e0;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.page-blog__hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

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

/* Featured Posts Section */
.page-blog__featured-posts {
    background: #ffffff; /* Card BG color */
}

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

.page-blog__post-card {
    background: #ffffff;
    border: 1px solid #D6E2FF; /* Border color */
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

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

.page-blog__post-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    height: 100%;
}

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

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

.page-blog__post-title {
    font-size: 20px;
    font-weight: 700;
    color: #1F2D3D; /* Text Main color */
    margin-bottom: 10px;
    line-height: 1.3;
}

.page-blog__post-excerpt {
    font-size: 15px;
    color: #333333;
    line-height: 1.6;
    margin-bottom: 15px;
    flex-grow: 1;
}

.page-blog__read-more {
    display: inline-flex;
    align-items: center;
    font-size: 15px;
    font-weight: 600;
    color: #2F6BFF;
    text-decoration: none;
}

.page-blog__read-more:hover {
    text-decoration: underline;
}

.page-blog__read-more i {
    margin-left: 8px;
    transition: transform 0.3s ease;
}

.page-blog__read-more:hover i {
    transform: translateX(5px);
}

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

/* All Posts Section */
.page-blog__all-posts {
    background: #F4F7FB; /* Background color */
}

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

.page-blog__list-item {
    display: flex;
    gap: 20px;
    background: #ffffff;
    border: 1px solid #D6E2FF;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-blog__list-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 18px rgba(0, 0, 0, 0.08);
}

.page-blog__list-image {
    width: 250px; /* Fixed width for list item image */
    height: 140px;
    object-fit: cover;
    flex-shrink: 0;
}

.page-blog__list-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.page-blog__list-title {
    font-size: 18px;
    font-weight: 700;
    color: #1F2D3D;
    margin-bottom: 8px;
    line-height: 1.4;
}

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

.page-blog__list-title a:hover {
    color: #2F6BFF;
}

.page-blog__list-meta {
    font-size: 13px;
    color: #666666;
    margin-bottom: 10px;
}

.page-blog__list-excerpt {
    font-size: 14px;
    color: #333333;
    line-height: 1.6;
}

/* CTA Section (Dark Background) */
.page-blog__cta-section {
    background: #2F6BFF; /* Main color as background */
    color: #ffffff;
    padding: 80px 0;
    text-align: center;
}

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

.page-blog__cta-title {
    font-size: 40px;
    font-weight: 700;
    margin-bottom: 20px;
    color: #ffffff;
    line-height: 1.2;
}