/* style/blog.css */
.page-blog {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #0A2342; /* Dark blue for main text, good contrast on light background */
    background-color: #F8F8F8; /* Light grey background */
}

/* Hero Section */
.page-blog-hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 60px 20px;
    background: linear-gradient(135deg, #0A2342 0%, #1A3A68 100%); /* Dark blue gradient */
    color: #FFFFFF; /* White text on dark background */
    position: relative;
    overflow: hidden;
}

.page-blog-hero-content {
    max-width: 800px;
    z-index: 1;
}

.page-blog-hero-title {
    font-size: 2.8em;
    margin-bottom: 15px;
    color: #F0A500; /* Auxiliary color for emphasis */
    font-weight: bold;
}

.page-blog-hero-description {
    font-size: 1.2em;
    margin-bottom: 30px;
    color: #E0E0E0; /* Slightly off-white for description */
}

.page-blog-hero-cta {
    display: inline-block;
    padding: 12px 30px;
    background-color: #F0A500; /* Auxiliary color for CTA */
    color: #0A2342; /* Dark blue text on orange CTA for contrast */
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.3s ease;
    border: none;
    cursor: pointer;
}

.page-blog-hero-cta:hover {
    background-color: #FFB733; /* Lighter orange on hover */
    transform: translateY(-2px);
}

.page-blog-hero-image {
    position: absolute;
    bottom: 0;
    right: 0;
    opacity: 0.1; /* Subtle background image */
    z-index: 0;
    max-width: 50%; /* Adjust size for effect */
    height: auto;
}

.page-blog-hero-img {
    width: 100%;
    height: auto;
    display: block;
}

/* Main Content Layout */
.page-blog-content {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

.page-blog-articles-container {
    display: flex;
    flex-wrap: wrap; /* Allows wrapping on smaller screens */
    gap: 30px;
}

.page-blog-main-articles {
    flex: 3; /* Takes more space */
    min-width: 0; /* Important for flex items with long content */
}

.page-blog-sidebar {
    flex: 1; /* Takes less space */
    min-width: 280px; /* Minimum width for sidebar */
}

.page-blog-section-title {
    font-size: 2em;
    color: #0A2342;
    margin-bottom: 30px;
    border-bottom: 2px solid #F0A500;
    padding-bottom: 10px;
}

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

.page-blog-article-card {
    background-color: #FFFFFF;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-blog-article-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.page-blog-article-info {
    padding: 20px;
}

.page-blog-article-meta {
    font-size: 0.9em;
    color: #6C7B8E; /* Greyish blue for meta info */
    margin-bottom: 10px;
    display: block;
}

.page-blog-article-title {
    font-size: 1.4em;
    margin-bottom: 10px;
    line-height: 1.3;
}

.page-blog-article-title a {
    color: #0A2342;
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-blog-article-title a:hover {
    color: #F0A500;
}

.page-blog-article-summary {
    font-size: 1em;
    color: #333333;
    margin-bottom: 15px;
}

.page-blog-read-more {
    display: inline-flex;
    align-items: center;
    color: #F0A500;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.page-blog-read-more:hover {
    color: #0A2342;
}

.page-blog-arrow {
    margin-left: 5px;
    transition: transform 0.3s ease;
}

.page-blog-read-more:hover .page-blog-arrow {
    transform: translateX(3px);
}

/* All Articles List */
.page-blog-article-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.page-blog-list-item {
    background-color: #FFFFFF;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
    overflow: hidden;
    display: flex;
    align-items: flex-start;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-blog-list-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.page-blog-list-img {
    width: 150px;
    height: 100px;
    object-fit: cover;
    flex-shrink: 0;
    border-radius: 8px 0 0 8px;
}

.page-blog-list-content {
    padding: 15px 20px;
}

.page-blog-list-title {
    font-size: 1.2em;
    margin-bottom: 5px;
    line-height: 1.3;
}

.page-blog-list-title a {
    color: #0A2342;
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-blog-list-title a:hover {
    color: #F0A500;
}

.page-blog-list-summary {
    font-size: 0.95em;
    color: #555555;
    margin-bottom: 10px;
}

/* Pagination */
.page-blog-pagination {
    display: flex;
    justify-content: center;
    margin-top: 40px;
    gap: 10px;
}

.page-blog-pagination-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: #E0E0E0;
    color: #0A2342;
    text-decoration: none;
    border-radius: 50%;
    transition: background-color 0.3s ease, color 0.3s ease;
    font-weight: bold;
}

.page-blog-pagination-link:hover {
    background-color: #F0A500;
    color: #FFFFFF;
}

.page-blog-pagination-active {
    background-color: #F0A500;
    color: #FFFFFF;
}

/* Sidebar */
.page-blog-sidebar-widget {
    background-color: #FFFFFF;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
    padding: 25px;
    margin-bottom: 30px;
}

.page-blog-widget-title {
    font-size: 1.5em;
    color: #0A2342;
    margin-bottom: 20px;
    border-bottom: 1px solid #EEEEEE;
    padding-bottom: 10px;
}

/* Search Widget */
.page-blog-search-box {
    display: flex;
    border: 1px solid #DDDDDD;
    border-radius: 5px;
    overflow: hidden;
}

.page-blog-search-input {
    flex-grow: 1;
    border: none;
    padding: 10px 15px;
    font-size: 1em;
    outline: none;
}

.page-blog-search-btn {
    background-color: #F0A500;
    color: #0A2342;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    font-weight: bold;
}

.page-blog-search-btn:hover {
    background-color: #FFB733;
}

/* Categories Widget */
.page-blog-categories ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.page-blog-categories li {
    margin-bottom: 10px;
}

.page-blog-categories li a {
    color: #0A2342;
    text-decoration: none;
    font-size: 1.1em;
    display: block;
    padding: 5px 0;
    transition: color 0.3s ease, padding-left 0.3s ease;
}

.page-blog-categories li a:hover {
    color: #F0A500;
    padding-left: 5px;
}

/* CTA Widget */
.page-blog-cta-widget p {
    font-size: 1em;
    color: #333333;
    margin-bottom: 20px;
}

.page-blog-cta-btn {
    display: block;
    width: 100%;
    padding: 12px 15px;
    text-align: center;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    margin-bottom: 10px;
    transition: background-color 0.3s ease, transform 0.3s ease;
    border: none;
    cursor: pointer;
}

.page-blog-cta-btn.btn-primary {
    background-color: #F0A500;
    color: #0A2342; /* Dark blue text on orange */
}

.page-blog-cta-btn.btn-primary:hover {
    background-color: #FFB733;
    transform: translateY(-2px);
}

.page-blog-cta-btn.btn-secondary {
    background-color: #0A2342; /* Dark blue background */
    color: #FFFFFF; /* White text on dark blue */
}

.page-blog-cta-btn.btn-secondary:hover {
    background-color: #1A3A68; /* Slightly lighter dark blue */
    transform: translateY(-2px);
}

/* Base button styles (can be defined in shared.css but added here for completeness) */
.page-blog .btn {
    /* Base styles for all buttons */
    cursor: pointer;
    border: none;
    text-decoration: none;
    display: inline-block;
}

.page-blog .btn-text {
    background: none;
    padding: 0;
    margin: 0;
    border: none;
    font-size: inherit;
    font-family: inherit;
    cursor: pointer;
}


/* Responsive Design */
@media (max-width: 992px) {
    .page-blog-hero-title {
        font-size: 2.2em;
    }
    .page-blog-hero-description {
        font-size: 1.1em;
    }
    .page-blog-articles-container {
        flex-direction: column;
    }
    .page-blog-main-articles,
    .page-blog-sidebar {
        flex: none;
        width: 100%;
    }
    .page-blog-hero-image {
        max-width: 70%;
    }
}

@media (max-width: 768px) {
    .page-blog-hero {
        padding: 40px 15px;
    }
    .page-blog-hero-title {
        font-size: 1.8em;
    }
    .page-blog-hero-description {
        font-size: 1em;
    }
    .page-blog-featured-grid {
        grid-template-columns: 1fr;
    }
    .page-blog-list-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .page-blog-list-img {
        width: 100%;
        height: 180px;
        border-radius: 8px 8px 0 0;
    }
    .page-blog-list-content {
        padding: 15px;
    }
    .page-blog-hero-image {
        max-width: 90%;
    }
}

@media (max-width: 480px) {
    .page-blog-hero-title {
        font-size: 1.5em;
    }
    .page-blog-hero-description {
        font-size: 0.9em;
    }
    .page-blog-hero-cta {
        padding: 10px 20px;
        font-size: 0.9em;
    }
    .page-blog-section-title {
        font-size: 1.5em;
    }
    .page-blog-article-info,
    .page-blog-list-content,
    .page-blog-sidebar-widget {
        padding: 15px;
    }
}