/*==========================
TOP BAR
==========================*/

.top-bar{

    background:#31259E;

    color:#fff;

    font-size:14px;

}

.top-bar a{

    color:#fff;

    margin-left:12px;

}

.top-bar a:hover{

    color:#FF6600;

}

/*==========================
HEADER
==========================*/

#site-header{

    position:relative;

    z-index:999;

}

.navbar{

    padding:15px 0;

}

.navbar-brand img{

    max-height:80px;

    width:auto;

}

.navbar-nav .menu-item{

    margin:0 10px;

}

.navbar-nav .nav-link{

    color:#222;

    font-weight:600;

    padding:10px 16px;

    transition:.3s;

}

.navbar-nav .nav-link:hover,

.navbar-nav .current-menu-item .nav-link{

    color:#31259E;

}

.search-btn{

    color:#31259E;

    font-size:22px;

}

.search-btn:hover{

    color:#FF6600;

}

.btn-donate{

    background:#FF6600;

    color:#fff;

    padding:12px 28px;

    border-radius:50px;

    font-weight:600;

}

.btn-donate:hover{

    background:#31259E;

    color:#fff;

}

.sticky-top{

    top:0;

}
/*=============================
NEWSLETTER
=============================*/

.newsletter-section{

    background:#31259E;

    color:#fff;

}

.newsletter-section h2{

    font-weight:700;

}

.newsletter-form .form-control{

    height:58px;

    border-radius:50px 0 0 50px;

    border:none;

}

.btn-subscribe{

    background:#FF6600;

    color:#fff;

    border-radius:0 50px 50px 0;

    padding:0 35px;

}

.btn-subscribe:hover{

    background:#fff;

    color:#31259E;

}

/*=============================
FOOTER
=============================*/

.site-footer{

    background:#111827;

    color:#fff;

    padding:70px 0 0;

}

.site-footer h4{

    color:#fff;

    margin-bottom:25px;

    font-size:22px;

}

.site-footer p{

    color:#d4d4d4;

}

.footer-menu{

    list-style:none;

    margin:0;

    padding:0;

}

.footer-menu li{

    margin-bottom:12px;

}

.footer-menu a{

    color:#d4d4d4;

    transition:.3s;

}

.footer-menu a:hover{

    color:#FF6600;

    padding-left:8px;

}

.footer-contact{

    list-style:none;

    padding:0;

}

.footer-contact li{

    margin-bottom:15px;

}

.footer-contact i{

    color:#FF6600;

    margin-right:10px;

}

.footer-social a{

    width:42px;

    height:42px;

    display:inline-flex;

    justify-content:center;

    align-items:center;

    background:#31259E;

    color:#fff;

    border-radius:50%;

    margin-right:10px;

    transition:.3s;

}

.footer-social a:hover{

    background:#FF6600;

}

/* .footer-bottom{

    margin-top:60px;

    background:#0a0a0a;

    padding:20px 0;

    color:#ccc;

} */

.footer-bottom a{

    color:#FF6600;

}

/*==================================
BLOG CARD
==================================*/

.blog-card .card{

    border-radius:20px;

    transition:.35s ease;

    overflow:hidden;

    box-shadow:0 10px 35px rgba(0,0,0,.08);

    height:100%;

}

.blog-card:hover .card{

    transform:translateY(-10px);

    box-shadow:0 20px 50px rgba(0,0,0,.15);

}

.blog-image{

    position:relative;

    overflow:hidden;

}

.blog-image img{

    width:100%;

    height:260px;

    object-fit:cover;

    transition:.5s;

}

.blog-card:hover img{

    transform:scale(1.08);

}

.blog-category{

    position:absolute;

    left:20px;

    bottom:20px;

    background:#31259E;

    color:#fff;

    padding:8px 18px;

    border-radius:50px;

    font-size:13px;

    font-weight:600;

}

.blog-date{

    color:#666;

    font-size:14px;

}

.blog-date i{

    color:#FF6600;

    margin-right:6px;

}

.blog-title{

    font-size:24px;

    font-weight:700;

    line-height:1.4;

    margin-bottom:15px;

}

.blog-title a{

    color:#222;

}

.blog-title a:hover{

    color:#31259E;

}

.blog-excerpt{

    color:#666;

    margin-bottom:25px;

}

.read-more{

    display:inline-flex;

    align-items:center;

    gap:10px;

    color:#31259E;

    font-weight:600;

}

.read-more:hover{

    color:#FF6600;

}

.read-more i{

    transition:.3s;

}

.read-more:hover i{

    transform:translateX(5px);

}


.single-hero img{

height:500px;

object-fit:cover;

}

.single-title{

font-size:42px;

font-weight:700;

margin-bottom:20px;

color:#222;

}

.post-meta{

color:#666;

}

.single-content{

line-height:1.9;

font-size:17px;

}

.single-content img{

max-width:100%;

height:auto;

border-radius:15px;

margin:20px 0;

}

.single-content h2,
.single-content h3{

margin-top:40px;

margin-bottom:20px;

font-weight:700;

}

.author-box{

background:#fff;

}

.share-box a{

width:45px;

height:45px;

display:inline-flex;

justify-content:center;

align-items:center;

border-radius:50%;

background:#31259E;

color:#fff;

margin-right:10px;

transition:.3s;

}

.share-box a:hover{

background:#FF6600;

}

.post-tags a{

background:#F8F9FC;

padding:8px 15px;

border-radius:30px;

margin-right:8px;

display:inline-block;

margin-bottom:10px;

}

.post-tags a:hover{

background:#31259E;

color:#fff;

}


/*======================
SIDEBAR
======================*/

.sidebar-widget{

background:#fff;

padding:30px;

border-radius:20px;

margin-bottom:30px;

box-shadow:0 10px 35px rgba(0,0,0,.08);

}

.widget-title{

font-size:24px;

font-weight:700;

margin-bottom:25px;

color:#31259E;

}

.category-list{

list-style:none;

padding:0;

margin:0;

}

.category-list li{

display:flex;

justify-content:space-between;

padding:12px 0;

border-bottom:1px solid #eee;

}

.category-list li:last-child{

border:none;

}

.category-list a{

color:#222;

}

.category-list a:hover{

color:#FF6600;

}

.recent-post{

display:flex;

gap:15px;

margin-bottom:20px;

}

.recent-post img{

width:90px;

height:70px;

object-fit:cover;

border-radius:10px;

}

.recent-post a{

color:#222;

font-weight:600;

}

.recent-post small{

display:block;

color:#888;

margin-top:5px;

}

.tag-cloud a{

display:inline-block;

padding:8px 18px;

margin:6px;

background:#F5F5F5;

border-radius:50px;

transition:.3s;

}

.tag-cloud a:hover{

background:#31259E;

color:#fff;

}

.donate-widget{

background:#31259E;

color:#fff;

text-align:center;

}

.donate-widget h3{

color:#fff;

margin-bottom:15px;

}

.donate-widget .btn-theme{

margin-top:20px;

background:#FF6600;

}

.donate-widget .btn-theme:hover{

background:#fff;

color:#31259E;

}
/*=========================
HERO
==========================*/

.hero-section{

padding:120px 0 0;

background:linear-gradient(135deg,#31259E 0%,#5648d8 100%);

position:relative;

overflow:hidden;

color:#fff;

}

.hero-subtitle{

display:inline-block;

background:rgba(255,255,255,.15);

padding:10px 20px;

border-radius:50px;

margin-bottom:25px;

font-weight:600;

}

.hero-title{

font-size:60px;

font-weight:800;

line-height:1.2;

margin-bottom:25px;

}

.hero-description{

font-size:19px;

line-height:1.8;

margin-bottom:40px;

}

.hero-buttons{

display:flex;

gap:20px;

flex-wrap:wrap;

}

.btn-outline{

padding:14px 35px;

border:2px solid #fff;

border-radius:50px;

color:#fff;

transition:.3s;

}

.btn-outline:hover{

background:#fff;

color:#31259E;

}

.hero-image{

animation:float 4s ease-in-out infinite;

}

.hero-wave{

display:block;

margin-top:70px;

}

@keyframes float{

0%{

transform:translateY(0);

}

50%{

transform:translateY(-15px);

}

100%{

transform:translateY(0);

}

}

/*=========================
TOP BAR
==========================*/

.top-bar{

background:#31259E;

color:#fff;

padding:8px 0;

font-size:14px;

}

.top-contact a{

color:#fff;

margin-right:15px;

text-decoration:none;

}

.top-contact span{

margin-right:15px;

}

.top-social a{

color:#fff;

margin-left:12px;

font-size:18px;

transition:.3s;

}

.top-social a:hover{

color:#FF6600;

}

/*=========================
HEADER
==========================*/

.site-header{

background:#fff;

position:sticky;

top:0;

z-index:9999;

box-shadow:0 5px 20px rgba(0,0,0,.06);

}

.site-logo img{

height:70px;

}

.navbar{

padding:15px 0;

}

.navbar-nav .menu-item{

margin-left:18px;

}

.navbar-nav .menu-item a{

font-size:16px;

font-weight:600;

color:#222;

text-decoration:none;

padding:10px 0;

transition:.3s;

}

.navbar-nav .current-menu-item>a,

.navbar-nav .menu-item a:hover{

color:#FF6600;

}

.btn-donate{

background:#31259E;

color:#fff;

padding:12px 28px;

border-radius:50px;

font-weight:600;

transition:.3s;

}

.btn-donate:hover{

background:#FF6600;

color:#fff;

}

/*==================================
FOOTER
==================================*/

.site-footer{

    background:#31259E;

    color:#fff;

    padding:60px 0 30px;

}

.footer-top{

    margin-bottom:25px;

}

.footer-top a{

    color:#fff;

    text-decoration:none;

    font-size:18px;

    font-weight:600;

    margin:0 15px;

    transition:.3s;

}

.footer-top a:hover{

    color:#FF6600;

}

.footer-top span{

    color:rgba(255,255,255,.5);

}

.site-footer hr{

    border-color:rgba(255,255,255,.15);

    margin:30px 0;

}

.footer-bottom{

    display:flex;

    justify-content:center;

    align-items:center;

    gap:40px;

    flex-wrap:wrap;

}

.copyright{

    font-size:17px;

}

.footer-social{

    display:flex;

    gap:15px;

}

.footer-social a{

    width:46px;

    height:46px;

    border-radius:50%;

    background:rgba(255,255,255,.12);

    color:#fff;

    display:flex;

    justify-content:center;

    align-items:center;

    text-decoration:none;

    transition:.3s;

}

.footer-social a:hover{

    background:#FF6600;

    transform:translateY(-4px);

}

.footer-social i{

    font-size:18px;

}

@media(max-width:768px){

.footer-bottom{

flex-direction:column;

text-align:center;

}

.footer-top a{

display:inline-block;

margin:8px;

}

}

/*==========================
BLOG CARD
==========================*/

.blog-card{

margin-bottom:30px;

}

.blog-card .card{

border-radius:22px;

overflow:hidden;

background:#fff;

box-shadow:0 10px 30px rgba(0,0,0,.08);

transition:.35s;

height:100%;

}

.blog-card:hover .card{

transform:translateY(-8px);

box-shadow:0 20px 45px rgba(0,0,0,.15);

}

.blog-image{

position:relative;

display:block;

overflow:hidden;

}

.blog-image img{

width:100%;

height:250px;

object-fit:cover;

transition:.5s;

}

.blog-card:hover img{

transform:scale(1.08);

}

.blog-category{

position:absolute;

left:18px;

bottom:18px;

background:#4b1fa8;

color:#fff;

padding:8px 18px;

font-size:13px;

font-weight:600;

border-radius:40px;

}

.card-body{

padding:28px;

}

.blog-date{

font-size:14px;

color:#666;

margin-bottom:15px;

}

.blog-date i{

color:#ff7a00;

margin-right:8px;

}

.blog-title{

font-size:31px;

line-height:1.35;

font-weight:700;

margin-bottom:18px;

}

.blog-title a{

color:#24145d;

text-decoration:none;

transition:.3s;

}

.blog-title a:hover{

color:#ff6600;

}

.blog-excerpt{

font-size:17px;

line-height:1.8;

color:#555;

margin-bottom:25px;

}

.read-more{

display:inline-flex;

align-items:center;

gap:10px;

color:#4b1fa8;

font-weight:700;

text-decoration:none;

}

.read-more:hover{

color:#ff6600;

}

.read-more i{

transition:.3s;

}

.read-more:hover i{

transform:translateX(6px);

}


/* ==========================
BLOG SECTION
========================== */

.blog-section{
    padding:80px 0;
    background:#fff;
}

.section-title{
    font-size:46px;
    font-weight:700;
    color:#2F2483;
    /* margin-bottom:50px; */
}

/* ==========================
BLOG CARD
========================== */

.blog-card{
    background:#fff;
    border-radius:20px;
    overflow:hidden;
    box-shadow:0 12px 35px rgba(0,0,0,.08);
    transition:.4s;
    height:100%;
    display:flex;
    flex-direction:column;
}

.blog-card:hover{
    transform:translateY(-10px);
    box-shadow:0 18px 45px rgba(0,0,0,.18);
}

.blog-image-link{
    display:block;
    overflow:hidden;
}

.blog-featured-image{
    width:100%;
    height:260px;
    object-fit:cover;
    transition:.5s;
}

.blog-card:hover .blog-featured-image{
    transform:scale(1.08);
}

/* ==========================
CONTENT
========================== */

.blog-content{
    padding:30px;
    display:flex;
    flex-direction:column;
    flex:1;
}

/* CATEGORY */

.blog-category{
    display:inline-block;
    background:#31259E;
    color:#fff;
    font-size:13px;
    font-weight:600;
    padding:8px 18px;
    border-radius:30px;
    margin-bottom:20px;
}

/* DATE */

.blog-date{
    color:#888;
    font-size:14px;
    margin-bottom:18px;
}

.blog-date i{
    color:#FF6600;
    margin-right:8px;
}

/* TITLE */

.blog-title{
    font-size:30px;
    line-height:1.4;
    font-weight:700;
    margin-bottom:18px;
}

.blog-title a{
    color:#1f1f1f;
    text-decoration:none;
}

.blog-title a:hover{
    color:#31259E;
}

/* EXCERPT */

.blog-excerpt{
    font-size:16px;
    color:#666;
    line-height:1.8;
    margin-bottom:25px;
    flex:1;
}

/* BUTTON */

.read-more{
    display:inline-flex;
    align-items:center;
    color:#31259E;
    font-weight:700;
    text-decoration:none;
}

.read-more .arrow-icon{
    margin-left:8px;
    transition:.3s;
}

.read-more:hover{
    color:#FF6600;
}

.read-more:hover .arrow-icon{
    transform:translateX(6px);
}

/* ==========================
PAGINATION
========================== */

.pagination,
.page-numbers{
    display:flex;
    justify-content:center;
    gap:10px;
    list-style:none;
    padding:0;
    margin-top:50px;
}

.page-numbers a,
.page-numbers span{
    width:45px;
    height:45px;
    display:flex;
    justify-content:center;
    align-items:center;
    border-radius:50%;
    background:#f4f4f4;
    color:#333;
    text-decoration:none;
    transition:.3s;
}

.page-numbers .current,
.page-numbers a:hover{
    background:#31259E;
    color:#fff;
}

/* ==========================
RESPONSIVE
========================== */

@media(max-width:991px){

.blog-featured-image{
    height:220px;
}

.blog-title{
    font-size:24px;
}

.section-title{
    font-size:36px;
}

}

@media(max-width:767px){

.blog-featured-image{
    height:200px;
}

.blog-content{
    padding:20px;
}

.blog-title{
    font-size:22px;
}

.section-title{
    font-size:30px;
}

}

/**
 * Front Page Styles
 * @package KokanNGO
 */

/* ===== Latest Blogs Section ===== */
.latest-blogs-section {
    background: #faf9fe;
    padding: 60px 0;
}

.section-title {
    font-size: 36px;
    font-weight: 700;
    color: #1B1453;
    position: relative;
    display: inline-block;
    margin-bottom: 10px;
}

/* .section-title::after {
    content: '';
    display: block;
    width: 50px;
    height: 4px;
    background: #5B2EFF;
    margin: 10px auto 0;
    border-radius: 2px;
} */

.section-subtitle {
    font-size: 18px;
    color: #666;
    margin-top: 10px;
}

/* ===== Blog Cards ===== */
.blog-card {
    background: #ffffff;
    border-radius: 24px;
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.blog-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.12);
}

/* Blog Image */
.blog-image-link {
    display: block;
    overflow: hidden;
    border-radius: 24px 24px 0 0;
}

.blog-featured-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.blog-card:hover .blog-featured-image {
    transform: scale(1.05);
}

/* Image Placeholder */
.blog-image-placeholder {
    width: 100%;
    height: 250px;
    background: #f0edff;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 24px 24px 0 0;
}

.blog-image-placeholder i {
    font-size: 48px;
    color: #5B2EFF;
    opacity: 0.3;
}

/* Blog Content */
.blog-content {
    padding: 24px 22px 28px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Category Badge */
.blog-category {
    display: inline-block;
    background: #5B2EFF;
    color: #ffffff;
    padding: 8px 18px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    align-self: flex-start;
    margin-bottom: 14px;
}

/* Date */
.blog-date {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #666;
    margin-bottom: 12px;
}

.blog-date i {
    font-size: 16px;
    color: #5B2EFF;
}

/* Title */
.blog-title {
    font-size: 30px;
    font-weight: 700;
    color: #1B1453;
    line-height: 1.3;
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

.blog-title a:hover {
    color: #5B2EFF;
}

/* Excerpt */
.blog-excerpt {
    font-size: 17px;
    color: #666;
    line-height: 1.8;
    margin-bottom: 18px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}

/* Read More */
.read-more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 700;
    color: #5B2EFF;
    text-decoration: none;
    font-size: 16px;
    transition: gap 0.3s ease;
}

.read-more .arrow-icon {
    display: inline-block;
    transition: transform 0.3s ease;
}

.read-more:hover .arrow-icon {
    transform: translateX(6px);
}

.read-more:hover {
    color: #4a1fcc;
}

/* ===== View All Button ===== */
.btn-view-all {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 35px;
    background: #5B2EFF;
    color: #ffffff;
    border-radius: 50px;
    font-weight: 600;
    font-size: 16px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(91, 46, 255, 0.25);
}

.btn-view-all:hover {
    background: #4a1fcc;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 12px 35px rgba(91, 46, 255, 0.35);
}

.btn-view-all i {
    transition: transform 0.3s ease;
}

.btn-view-all:hover i {
    transform: translateX(6px);
}

/* ===== No Posts Found ===== */
.no-posts-found {
    padding: 40px 0;
}

.no-posts-found i {
    color: #ddd;
}

.no-posts-found h3 {
    color: #1B1453;
    font-weight: 600;
}

.no-posts-found p {
    color: #666;
}

/* ===== CTA Section ===== */
.cta-section {
    background: linear-gradient(135deg, #1B1453 0%, #5B2EFF 100%);
    color: #ffffff;
    padding: 60px 0;
}

.cta-title {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 10px;
}

.cta-text {
    font-size: 18px;
    opacity: 0.9;
    margin-bottom: 0;
}
/* 
.btn-donate {
    display: inline-block;
    padding: 14px 40px;
    background: #ffffff;
    color: #5B2EFF;
    border-radius: 50px;
    font-weight: 700;
    font-size: 16px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.btn-donate:hover {
    background: #f8f7ff;
    color: #4a1fcc;
    transform: translateY(-2px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.25);
} */

/* ===== Responsive Design ===== */

/* Tablets */
@media (max-width: 991px) {
    .blog-title {
        font-size: 22px;
    }
    
    .blog-featured-image,
    .blog-image-placeholder {
        height: 220px;
    }
    
    .cta-title {
        font-size: 28px;
        text-align: center;
    }
    
    .cta-text {
        text-align: center;
    }
    
    .btn-donate {
        display: block;
        text-align: center;
        margin-top: 20px;
    }
}

/* Mobile Landscape */
@media (max-width: 767px) {
    .latest-blogs-section {
        padding: 40px 0;
    }
    
    .section-title {
        font-size: 30px;
    }
    
    .btn-view-all {
        width: 100%;
        justify-content: center;
    }
}

/* Mobile Portrait */
@media (max-width: 575px) {
    .blog-title {
        font-size: 20px;
    }
    
    .blog-featured-image,
    .blog-image-placeholder {
        height: 200px;
    }
    
    .blog-content {
        padding: 18px 16px 22px;
    }
    
    .cta-section {
        padding: 40px 0;
    }
    
    .cta-title {
        font-size: 24px;
    }
    
    .cta-text {
        font-size: 16px;
    }
    
    .btn-donate {
        padding: 12px 30px;
        font-size: 15px;
    }
}

/* ===== Accessibility ===== */
.blog-card a:focus-visible,
.read-more:focus-visible,
.btn-view-all:focus-visible,
.btn-donate:focus-visible {
    outline: 3px solid #5B2EFF;
    outline-offset: 2px;
}

/* ===== Print Styles ===== */
@media print {
    .latest-blogs-section {
        background: transparent !important;
    }
    
    .blog-card {
        box-shadow: none !important;
        border: 1px solid #ddd;
        page-break-inside: avoid;
    }
    
    .blog-card:hover {
        transform: none !important;
        box-shadow: none !important;
    }
    
    .cta-section {
        background: #1B1453 !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
}



/**
 * Premium Blog Section Styles
 * Kokan NGO
 * 
 * @package KokanNGO
 */

/* ===== CSS Variables ===== */
:root {
    --brand-blue: #31259E;
    --brand-orange: #FF6600;
    --brand-white: #FFFFFF;
    --brand-light-bg: #F8F9FC;
    --brand-dark: #222222;
    --brand-text: #666666;
    --card-radius: 18px;
    --card-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    --card-hover-shadow: 0 20px 45px rgba(49, 37, 158, 0.15);
    --transition-speed: 0.3s;
}

/* ===== Section Container ===== */
.latest-blogs-section {
    background: var(--brand-light-bg);
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

/* Subtle gradient at top */
.latest-blogs-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 200px;
    background: linear-gradient(180deg, rgba(49, 37, 158, 0.05) 0%, transparent 100%);
    pointer-events: none;
}

/* ===== Section Header ===== */
.section-header {
    margin-bottom: 50px;
    position: relative;
}

.section-title {
    font-size: 42px;
    font-weight: 700;
    color: var(--brand-blue);
    margin-bottom: 15px;
    font-family: 'Poppins', sans-serif;
    position: relative;
    display: inline-block;
}

.title-underline {
    width: 60px;
    height: 4px;
    background: var(--brand-orange);
    border-radius: 2px;
    margin: 0 auto;
    position: relative;
}

/* ===== Blog Grid ===== */
.row.g-4 {
    --bs-gutter-y: 30px;
    --bs-gutter-x: 30px;
}

/* ===== Blog Card ===== */
.blog-card {
    background: var(--brand-white);
    border-radius: var(--card-radius);
    box-shadow: var(--card-shadow);
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: transform var(--transition-speed) ease,
                box-shadow var(--transition-speed) ease;
    position: relative;
    animation: fadeUp 0.6s ease forwards;
    opacity: 0;
}

.blog-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--card-hover-shadow);
}

/* Stagger animation delay */
.blog-item:nth-child(1) .blog-card { animation-delay: 0.1s; }
.blog-item:nth-child(2) .blog-card { animation-delay: 0.2s; }
.blog-item:nth-child(3) .blog-card { animation-delay: 0.3s; }
.blog-item:nth-child(4) .blog-card { animation-delay: 0.4s; }
.blog-item:nth-child(5) .blog-card { animation-delay: 0.5s; }
.blog-item:nth-child(6) .blog-card { animation-delay: 0.6s; }

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== Blog Image ===== */
.blog-image-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: var(--card-radius) var(--card-radius) 0 0;
}

.blog-image-link {
    display: block;
    overflow: hidden;
}

.blog-featured-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: transform var(--transition-speed) ease;
}

.blog-card:hover .blog-featured-image {
    transform: scale(1.05);
}

/* Image Placeholder */
.blog-image-placeholder {
    width: 100%;
    height: 220px;
    background: #f0edff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.blog-image-placeholder i {
    font-size: 48px;
    color: var(--brand-blue);
    opacity: 0.3;
}

/* ===== Floating Category Badge ===== */
.blog-category {
    position: absolute;
    bottom: 15px;
    left: 15px;
    display: none;
    background: var(--brand-blue);
    color: var(--brand-white);
    padding: 8px 20px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 13px;
    text-transform: capitalize;
    letter-spacing: 0.3px;
    box-shadow: 0 4px 15px rgba(49, 37, 158, 0.3);
    z-index: 2;
    font-family: 'Poppins', sans-serif;
    transition: background var(--transition-speed) ease;
}

.blog-card:hover .blog-category {
    background: var(--brand-orange);
}

/* ===== Blog Content ===== */
.blog-content {
    padding: 24px 24px 28px;
    flex: 1;
    display: flex;
    flex-direction: column;
    background: var(--brand-white);
}

/* ===== Date ===== */
.blog-date {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--brand-text);
    margin-bottom: 12px;
    font-family: 'Poppins', sans-serif;
}

.blog-date i {
    font-size: 16px;
    color: var(--brand-orange);
}

/* ===== Title ===== */
.blog-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--brand-blue);
    line-height: 1.3;
    margin-bottom: 12px;
    font-family: 'Poppins', sans-serif;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-title a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition-speed) ease;
}

.blog-title a:hover {
    color: var(--brand-orange);
}

/* ===== Excerpt ===== */
.blog-excerpt {
    font-size: 16px;
    color: var(--brand-text);
    line-height: 1.7;
    margin-bottom: 18px;
    font-family: 'Poppins', sans-serif;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ===== Read More ===== */
.read-more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
    color: var(--brand-blue);
    text-decoration: none;
    font-size: 16px;
    font-family: 'Poppins', sans-serif;
    transition: gap var(--transition-speed) ease,
                color var(--transition-speed) ease;
    position: relative;
}

.read-more::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--brand-orange);
    transition: width var(--transition-speed) ease;
}

.read-more:hover::after {
    width: 100%;
}

.read-more .arrow-icon {
    display: inline-block;
    transition: transform var(--transition-speed) ease;
}

.read-more:hover .arrow-icon {
    transform: translateX(6px);
}

.read-more:hover {
    color: var(--brand-orange);
}

/* ===== Pagination ===== */
.blog-pagination {
    margin-top: 40px;
}

.blog-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 42px;
    padding: 0 14px;
    margin: 0 4px;
    border-radius: 8px;
    background: var(--brand-white);
    color: var(--brand-dark);
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    border: 1px solid #e0e0e0;
    transition: all var(--transition-speed) ease;
    font-family: 'Poppins', sans-serif;
}

.blog-pagination .page-numbers.current {
    background: var(--brand-blue);
    color: var(--brand-white);
    border-color: var(--brand-blue);
    box-shadow: 0 4px 15px rgba(49, 37, 158, 0.3);
}

.blog-pagination .page-numbers:hover:not(.current) {
    background: var(--brand-orange);
    color: var(--brand-white);
    border-color: var(--brand-orange);
    transform: translateY(-2px);
}

.blog-pagination .page-numbers.prev,
.blog-pagination .page-numbers.next {
    padding: 0 20px;
}

/* ===== No Posts Found ===== */
.no-posts-found {
    padding: 60px 0;
}

.no-posts-found i {
    color: #ddd;
}

.no-posts-found h3 {
    color: var(--brand-blue);
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
}

.no-posts-found p {
    color: var(--brand-text);
    font-family: 'Poppins', sans-serif;
}

/* ===== Responsive Design ===== */

/* Desktop (≥1200px) */
@media (min-width: 1200px) {
    .container {
        max-width: 1320px;
    }
}

/* Tablet (768–1199px) */
@media (max-width: 1199px) and (min-width: 768px) {
    .section-title {
        font-size: 36px;
    }
    
    .blog-title {
        font-size: 24px;
    }
    
    .blog-featured-image,
    .blog-image-placeholder {
        height: 200px;
    }
    
    .blog-content {
        padding: 20px;
    }
}

/* Mobile (<768px) */
@media (max-width: 767px) {
    .latest-blogs-section {
        padding: 50px 0;
    }
    
    .section-title {
        font-size: 30px;
    }
    
    .blog-featured-image,
    .blog-image-placeholder {
        height: 200px;
    }
    
    .blog-title {
        font-size: 22px;
    }
    
    .blog-content {
        padding: 18px 16px 22px;
    }
    
    .blog-excerpt {
        font-size: 15px;
    }
    
    .blog-pagination .page-numbers {
        min-width: 36px;
        height: 36px;
        font-size: 14px;
        padding: 0 10px;
        margin: 0 2px;
    }
    
    .blog-pagination .page-numbers.prev,
    .blog-pagination .page-numbers.next {
        padding: 0 14px;
        font-size: 13px;
    }
    
    .read-more {
        font-size: 15px;
    }
}

/* Small Mobile (<480px) */
@media (max-width: 480px) {
    .section-title {
        font-size: 26px;
    }
    
    .blog-featured-image,
    .blog-image-placeholder {
        height: 180px;
    }
    
    .blog-title {
        font-size: 20px;
    }
    
    .blog-category {
        font-size: 11px;
        padding: 6px 16px;
        bottom: 10px;
        left: 10px;
    }
}

/* ===== Accessibility ===== */
.blog-card a:focus-visible,
.read-more:focus-visible,
.page-numbers:focus-visible {
    outline: 3px solid var(--brand-orange);
    outline-offset: 2px;
}

/* ===== Print Styles ===== */
@media print {
    .latest-blogs-section {
        background: transparent !important;
        padding: 40px 0 !important;
    }
    
    .latest-blogs-section::before {
        display: none;
    }
    
    .blog-card {
        box-shadow: none !important;
        border: 1px solid #ddd;
        page-break-inside: avoid;
    }
    
    .blog-card:hover {
        transform: none !important;
        box-shadow: none !important;
    }
    
    .blog-card:hover .blog-featured-image {
        transform: none !important;
    }
    
    .blog-category {
        background: var(--brand-blue) !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
    
    .blog-pagination .page-numbers.current {
        background: var(--brand-blue) !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
    
    .read-more::after {
        display: none;
    }
}


