/* ---------------- BLOG & BANNER CSS ---------------- */

/* ---------------- Banner Section ---------------- */
.banner-section {
    background-image: url('../../../assets/live/images/image_png/blockchain_bg_black.png');
    background-size: cover;       /* Ensure the image covers the whole section */
    background-position: center;  /* Center the image */
    background-repeat: no-repeat; /* Prevent repeating if image is small */
    color: #fff;
    padding: 160px 20px 80px;     /* Top and bottom spacing */
    text-align: center;
    position: relative;
    overflow: hidden;
}

.banner-section::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.5); /* dark overlay */
    z-index: 1;
}

.banner-section * {
    position: relative;
    z-index: 2; /* ensure text is above overlay */
}


.banner-slider {
    max-width: 1200px;
    margin: 0 auto;
}

.banner-title {
    font-size: 3rem;
    margin-bottom: 20px;
    font-weight: 700;
    position: relative;
}

.center-underline::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background-color: #fff;
    margin: 10px auto 0;
    border-radius: 2px;
}

.banner-subtitle {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
}

/* ---------------- Blog Banner ---------------- */
.blog_banner_div {
    background: linear-gradient(135deg, #2c3e50 0%, #3498db 100%);
    padding: 80px 20px;
    color: white;
    text-align: center;
}

/* ---------------- Blog Section ---------------- */
.blog-section {
    padding: 60px 0px;
    max-width: 1200px;
    margin: 0 auto;
}

/* ---------------- Blog Grid & Cards ---------------- */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.blog-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.blog-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}

.card-img-container {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.card-img-top {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.blog-card:hover .card-img-top {
    transform: scale(1.05);
}

.category-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: rgba(52, 152, 219, 0.9);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 1rem;
    font-weight: 600;
}

/* ---------------- Card Body ---------------- */
.card-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.card-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: #2c3e50;
    line-height: 1.4;
}

.card-excerpt {
    color: #7f8c8d;
    font-size: 1.5rem;
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1;
}

.read-more-btn {
    display: inline-flex;
    align-items: center;
    padding: 8px 18px;
    background: #3498db;
    color: white;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.3s ease;
}

.read-more-btn:hover {
    background: #2980b9;
}

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

.read-more-btn:hover i {
    transform: translateX(5px);
}

/* ---------------- Card Footer ---------------- */
.card-footer {
    padding: 15px 20px;
    border-top: 1px solid #ecf0f1;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.post-meta {
    font-size: 1rem;
    color: #95a5a6;
}

.author-name {
    font-weight: 600;
    color: #3498db;
}

/* ---------------- Sidebar ---------------- */
.sidebar {
    position: sticky;
    top: 20px;
    z-index: 10;
    max-width: 300px;
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

/* ---------------- Search Box ---------------- */
.search-box {
    margin-bottom: 30px;
}

.search-box input {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid #ecf0f1;
    border-radius: 30px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.search-box input:focus {
    border-color: #3498db;
    outline: none;
}

/* ---------------- Categories ---------------- */
.category-title {
    font-size: 2rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.category-title:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: #3498db;
}

.category-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.category-item {
    margin-bottom: 10px;
}

.category-link {
    display: block;
    padding: 10px 15px;
    color: #7f8c8d;
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.category-link:hover,
.category-link.active {
    background: rgba(52, 152, 219, 0.1);
    color: #3498db;
    padding-left: 20px;
}

/* ---------------- Featured Post ---------------- */
.featured-post {
    margin-top: 40px;
}

.featured-post .card-title {
    font-size: 2rem;
}

/* ---------------- Pagination ---------------- */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 5px;
    padding-left: 0;
    list-style: none;
    margin: 20px 0 0 0;
}

.page-item {
    margin: 0 3px;
}

.page-link {
    color: #3498db;
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 6px 12px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.page-item.active .page-link {
    background-color: #3498db;
    color: white;
    border-color: #3498db;
}

.page-link:hover {
    background-color: #2980b9;
    color: white;
    border-color: #2980b9;
}

/* ---------------- Media Queries ---------------- */

/* Tablet */
@media (max-width: 1024px) {
    .blog-section {
        padding: 50px 10px;
    }

    .card-title {
        font-size: 1.6rem;
    }

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

/* Mobile */
@media (max-width: 768px) {
    .blog-grid {
        grid-template-columns: 1fr;
    }

    .sidebar {
        max-width: 100%;
        margin-bottom: 30px;
        position: relative;
        top: 0;
    }

    .banner-title {
        font-size: 2.2rem;
    }

    .banner-subtitle {
        font-size: 1rem;
    }

    .banner-section {
        /* padding: 70px 15px; */
         padding: 70px 15px 50px;
    }

    .card-title {
        font-size: 1.5rem;
    }

    .read-more-btn {
        padding: 8px 15px;
        font-size: 0.9rem;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .blog-banner-div {
        padding: 40px 10px;
    }

    .card-title {
        font-size: 1.3rem;
    }

    .card-excerpt {
        font-size: 0.9rem;
    }

    .read-more-btn {
        padding: 6px 12px;
        font-size: 0.85rem;
    }

    .pagination {
        flex-wrap: wrap;
        gap: 3px;
    }

    .page-link {
        padding: 5px 10px;
        font-size: 0.85rem;
    }
}
