/* Blog Layout */
.blog-page {
    padding: 0px 0;
    background: #f8f9fa;
}

.blog-layout {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 30px;
    margin-top: 15px;
}

.blog-content {
    background: white;
    padding: 20px 30px;
    border-radius: 8px;
    /* Removed width: 100% to allow grid-template-columns to control width */
}

/* ============================================
   BLOG PAGE - REMOVE DUPLICATE HEADING
   ============================================ */

/* Hide the duplicate "Blog" page heading on blog index page
   since it's already visible in the navigation menu and breadcrumbs.
   This only affects the main blog listing page (/blog). */
.blog-index-heading {
    display: none !important;
    margin: 0 !important;
    padding: 0 !important;
    height: 0 !important;
}

/* Blog Grid - Reduce default spacing */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-top: 15px;
    /* Changed from 30px to 15px */
}

/* Post Card */
.post-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.post-image {
    display: block;
    position: relative;
    padding-top: 60%;
    /* 5:3 aspect ratio */
    overflow: hidden;
}

.post-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.post-card:hover .post-image img {
    transform: scale(1.05);
}

.post-content {
    padding: 20px;
}

.post-title {
    font-size: 20px;
    margin: 0 0 15px;
    line-height: 1.4;
}

.post-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s;
}

.post-title a:hover {
    color: #ff6b35;
}

.post-meta {
    display: flex;
    gap: 15px;
    font-size: 14px;
    color: #666;
    margin-bottom: 15px;
}

.post-meta i {
    color: #ff6b35;
    margin-right: 5px;
}

.post-excerpt {
    color: #666;
    line-height: 1.6;
    margin-bottom: 15px;
}

.read-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #ff6b35;
    text-decoration: none;
    font-weight: 500;
    transition: gap 0.3s;
}

.read-more:hover {
    gap: 12px;
}

/* Pagination */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 40px;
}

.page-link,
.page-number {
    padding: 8px 15px;
    background: white;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-decoration: none;
    color: #333;
    transition: all 0.3s;
}

.page-link:hover,
.page-number:hover {
    background: #007bff;
    color: white;
    border-color: #007bff;
}

/* Current page: same visual as hover so users see where they are */
.page-number.active {
    background: #007bff;
    color: white;
    border-color: #007bff;
    font-weight: 600;
    cursor: default;
}

.page-number.active:hover {
    background: #007bff;
    color: white;
    border-color: #007bff;
}

/* Sidebar */
.blog-sidebar {
    position: sticky;
    top: 20px;
    align-self: start;
}

.sidebar-widget {
    background: white;
    padding: 25px;
    border-radius: 8px;
    margin-bottom: 25px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.sidebar-widget h3 {
    margin: 0 0 20px;
    font-size: 18px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Search Widget */
.search-form {
    display: flex;
    gap: 10px;
}

.search-form input {
    flex: 1;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.search-form button {
    padding: 10px 20px;
    background: #4C5FD5;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.3s;
}

.search-form button:hover {
    background: #e55a29;
}

/* Categories Widget */
.categories-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.categories-list li {
    border-bottom: 1px solid #eee;
}

.categories-list li:last-child {
    border-bottom: none;
}

.categories-list a {
    display: block;
    padding: 12px 0;
    color: #666;
    text-decoration: none;
    transition: color 0.3s, padding-left 0.3s;
}

.categories-list a:hover {
    color: #4C5FD5;
    padding-left: 10px;
}

/* Recent Stories Widget */
.recent-stories {
    display: flex;
    flex-direction: column;
}

.recent-story-item {
    border-bottom: 1px solid #eee;
}

.recent-story-item:last-child {
    border-bottom: none;
}

.story-link {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 0;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.story-link:hover {
    transform: translateX(5px);
}

.story-image {
    width: 80px;
    height: 80px;
    flex-shrink: 0;
    border-radius: 8px;
    overflow: hidden;
}

.story-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.story-content {
    flex: 1;
}

.story-title {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    color: #2c3e50;
    margin: 0 0 5px 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-clamp: 2;
    overflow: hidden;
}

.story-date {
    font-size: 12px;
    color: #999;
}

.story-link:hover .story-title {
    color: #4C5FD5;
}



/* Tags Widget */
.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 15px;
}

.tag-item {
    display: inline-block;
    padding: 6px 14px;
    background-color: #f0f2f5;
    color: #333 !important;
    border-radius: 20px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 1px solid #e0e0e0;
}

.tag-item:hover {
    background-color: #4C5FD5;
    color: #fff !important;
    border-color: #4C5FD5;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(76, 95, 213, 0.2);
}

/* Banner Widget */
.banner-widget img {
    width: 100%;
    border-radius: 8px;
}

/* Breadcrumbs - Compact Spacing */
.breadcrumbs {
    padding: 10px 0;
    margin-top: 10px;
    margin-bottom: 10px;
    background: transparent;
    border-bottom: none;
}

/* ==========================================================================
   MOBILE RESPONSIVE - CLEAN SPACING
   ========================================================================== */

@media (max-width: 768px) {

    /* Breadcrumbs - Compact */
    .breadcrumbs {
        padding: 6px 0 !important;
        margin-top: 6px !important;
        margin-bottom: 8px !important;
        /* Positive margin - clean */
    }

    .breadcrumbs .container {
        padding-top: 0 !important;
        padding-bottom: 0 !important;
    }

    /* Blog Content - Remove vertical padding */
    .blog-content {
        padding: 0 16px !important;
        /* Horizontal only */
        padding-top: 0 !important;
        padding-bottom: 0 !important;
        margin-top: 0 !important;
        background: transparent;
        /* No white box on mobile */
    }

    /* Blog Grid - Remove top spacing */
    .blog-grid {
        margin-top: 0 !important;
        padding-top: 0 !important;
        grid-template-columns: 1fr;
        /* Single column */
        gap: 20px;
        /* Reduce card gap */
    }

    /* Blog Layout - Stack on mobile */
    .blog-layout {
        grid-template-columns: 1fr;
        gap: 0;
        margin-top: 0;
    }
}

.breadcrumbs a {
    color: #666;
    text-decoration: none;
}

.breadcrumbs a:hover {
    color: #ff6b35;
}

.breadcrumbs i {
    margin: 0 10px;
    font-size: 12px;
    color: #999;
}

.breadcrumbs span {
    color: #333;
}

/* No posts message */
.no-posts {
    text-align: center;
    padding: 40px;
    color: #666;
    font-size: 18px;
}

/* Category description */
.category-description {
    margin-top: 15px;
    font-size: 16px;
    line-height: 1.6;
    color: #666;
}

/* Tag name highlight in heading */
.tag-highlight {
    color: #2C7BE5;
    font-style: normal;
}

/* Search results */
.search-info {
    margin-top: 15px;
    padding: 15px;
    background: #e9ecef;
    border-radius: 4px;
    font-size: 14px;
    color: #495057;
}

.no-results,
.search-prompt {
    text-align: center;
    padding: 60px 20px;
}

.no-results h3,
.search-prompt h3 {
    margin-bottom: 15px;
    color: #333;
}

.no-results p,
.search-prompt p {
    color: #666;
    margin-bottom: 20px;
}