/* ========================================
   BLOG LIST PAGE - BOOTSTRAP LAYOUT
   ======================================== */

body {
    background-color: #f5f7fa;
}

/* ============================================
   PAGE HEADER
   ============================================ */

.page-header {
    background: linear-gradient(135deg, #0f3c55 0%, #1a5a7a 100%);
    padding: 80px 0;
    text-align: center;
}

.header-content h1 {
    font-family: "Google Sans", sans-serif;
    font-size: 48px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 15px;
}

.header-subtitle {
    font-family: "Outfit", sans-serif;
    font-size: 18px;
    color: rgba(255, 255, 255, 0.85);
    margin: 0;
}

/* ============================================
   MAIN SECTION
   ============================================ */

.blog-main-section {
    padding: 50px 0 80px;
}

/* ============================================
   SEARCH AND FILTER BAR
   ============================================ */

.search-box {
    position: relative;
}

.search-box i {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: #888;
    font-size: 16px;
}

.search-box input {
    width: 100%;
    padding: 15px 20px 15px 50px;
    border: none;
    border-radius: 50px;
    background: #fff;
    font-family: "Outfit", sans-serif;
    font-size: 15px;
    /* box-shadow: 0 2px 15px rgba(0, 0, 0, 0.06); */
    outline: none;
    /* transition: box-shadow 0.3s ease; */
}

/* .search-box input:focus {
    box-shadow: 0 4px 20px rgba(15, 60, 85, 0.15);
} */

.filter-tags {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.tag {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 50px;
    font-family: "Google Sans", sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: #555;
    background: #fff;
    text-decoration: none;
    transition: all 0.3s ease;
    /* box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04); */
}

.tag:hover {
    background: #0f3c55;
    color: #fff;
    transform: translateY(-2px);
}

.tag.active {
    background: #0f3c55;
    color: #fff;
}

/* ============================================
   BLOG CARDS
   ============================================ */

.blog-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
    /* box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06); */
}

.blog-card:hover {
    transform: translateY(-5px);
    /* box-shadow: 0 12px 35px rgba(0, 0, 0, 0.12); */
}

/* Featured Card */
.featured-card .card-image img {
    height: 100%;
    object-fit: cover;
}

.featured-card .card-content {
    padding: 10px 30px 0;
}

.featured-card .card-title {
    font-size: 24px;
}

/* Regular Cards */
.card-image {
    display: block;
    position: relative;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.blog-card:hover .card-image img {
    transform: scale(1.08);
}

.card-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: #dc3545;
    color: #fff;
    font-family: "Google Sans", sans-serif;
    font-size: 12px;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 20px;
}

.card-content {
    padding: 25px;
}

.card-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 12px;
}

.card-meta .category {
    font-family: "Google Sans", sans-serif;
    font-size: 12px;
    font-weight: 600;
    color: #0f3c55;
    background: rgba(15, 60, 85, 0.1);
    padding: 4px 12px;
    border-radius: 20px;
}

.card-meta .date {
    font-family: "Outfit", sans-serif;
    font-size: 13px;
    color: #888;
}

.card-title {
    font-family: "Google Sans", sans-serif;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 12px;
}

.card-title a {
    color: #1a1a1a;
    text-decoration: none;
    transition: color 0.3s ease;
}

.card-title a:hover {
    color: #0f3c55;
}

.card-excerpt {
    font-family: "Outfit", sans-serif;
    font-size: 14px;
    line-height: 24px;
    color: #666;
    margin-bottom: 20px;
}

.card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 4px;
    border-top: 1px solid #f0f0f0;
    padding-bottom: 4px;
}

.author {
    display: flex;
    align-items: center;
    gap: 10px;
}

.author img {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    object-fit: cover;
}

.author span {
    font-family: "Google Sans", sans-serif;
    font-size: 13px;
    font-weight: 500;
    color: #333;
}

.read-link {
    font-family: "Google Sans", sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #0f3c55;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: gap 0.3s ease;
}

.read-link:hover {
    gap: 12px;
}

.read-link i {
    font-size: 12px;
}

/* No Posts */
.no-posts {
    text-align: center;
    padding: 80px 40px;
    background: #fff;
    border-radius: 16px;
}

.no-posts i {
    font-size: 50px;
    color: #ddd;
    margin-bottom: 20px;
}

.no-posts h3 {
    font-family: "Google Sans", sans-serif;
    font-size: 22px;
    color: #333;
    margin-bottom: 10px;
}

.no-posts p {
    font-family: "Outfit", sans-serif;
    font-size: 15px;
    color: #888;
}

/* ============================================
   SIDEBAR
   ============================================ */

.blog-sidebar {
    position: sticky;
    top: 100px;
}

.sidebar-card {
    background: #fff;
    border-radius: 16px;
    padding: 28px;
    /* box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06); */
}

/* Sidebar Title */
.sidebar-title {
    font-family: "Google Sans", sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid #f0f0f0;
}

/* Popular Posts List */
.popular-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.popular-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    text-decoration: none;
    padding: 10px;
    border-radius: 10px;
    transition: background 0.3s ease;
}

.popular-item:hover {
    background: #f8f9fa;
}

.popular-number {
    font-family: "Google Sans", sans-serif;
    font-size: 28px;
    font-weight: 800;
    color: #e0e0e0;
    line-height: 1;
}

.popular-item:hover .popular-number {
    color: #0f3c55;
}

.popular-content h5 {
    font-family: "Google Sans", sans-serif;
    font-size: 15px;
    font-weight: 600;
    color: #333;
    margin: 0 0 5px 0;
    line-height: 1.4;
    transition: color 0.3s ease;
}

.popular-item:hover .popular-content h5 {
    color: #0f3c55;
}

.popular-date {
    font-family: "Outfit", sans-serif;
    font-size: 12px;
    color: #888;
}

/* Category Buttons */
.category-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.cat-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    background: #f8f9fa;
    border-radius: 10px;
    font-family: "Google Sans", sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: #333;
    text-decoration: none;
    transition: all 0.3s ease;
}

.cat-btn i {
    font-size: 16px;
    color: #0f3c55;
}

.cat-btn:hover {
    background: #0f3c55;
    color: #fff;
    transform: translateX(5px);
}

.cat-btn:hover i {
    color: #fff;
}

/* ============================================
   PAGINATION
   ============================================ */

.pagination-section {
    margin-top: 30px;
    display: flex;
    justify-content: center;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 991px) {
    .blog-sidebar {
        position: relative;
        top: 0;
        margin-top: 40px;
    }
}

@media (max-width: 768px) {
    .header-content h1 {
        font-size: 36px;
    }

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

    .filter-tags {
        justify-content: flex-start;
    }

    .featured-card .card-image img {
        min-height: 220px;
    }
}

@media (max-width: 576px) {
    .header-content h1 {
        font-size: 30px;
    }

    .tag {
        padding: 8px 16px;
        font-size: 13px;
    }

    .card-content {
        padding: 20px;
    }

    .sidebar-card {
        padding: 22px;
    }
}
