/* blogs.css */

/* Base & Typography */
body {
    background-color: #f8f9fa;
    font-family: 'Poppins', sans-serif;
}

/* Hero Section */
.blog-hero {
    background: linear-gradient(rgba(13, 42, 94, 0.4), rgba(13, 42, 94, 0.8)), url('https://images.unsplash.com/photo-1544365558-35aa4afcf11f?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80') center/cover no-repeat;
    padding: 120px 0 100px; /* enough space for floating header */
    color: #fff;
    position: relative;
    margin-top: 100px;
}
@media (max-width: 991px) {
    .blog-hero { margin-top: 70px; padding: 80px 0 100px; }
}
.blog-hero-breadcrumb {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 20px;
}
.blog-hero-breadcrumb a { color: #fff; text-decoration: none; }
.blog-hero-breadcrumb a:hover { color: #FDBB2D; }
.blog-hero-breadcrumb .sep { margin: 0 8px; }
.blog-hero-breadcrumb .current { color: #FDBB2D; font-weight: 500; }

.blog-hero h1 {
    font-size: 3.2rem;
    font-weight: 700;
    margin-bottom: 15px;
}
.blog-hero p {
    font-size: 1.1rem;
    max-width: 600px;
    opacity: 0.9;
    margin-bottom: 40px;
}

/* Search Box inside Hero */
.blog-search-wrapper {
    max-width: 700px;
    position: relative;
}
.blog-search-input {
    width: 100%;
    padding: 18px 25px;
    border-radius: 8px;
    border: none;
    font-size: 1rem;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    outline: none;
}
.blog-search-btn {
    position: absolute;
    right: 8px;
    top: 8px;
    bottom: 8px;
    background: #FDBB2D;
    color: #0d2a5e;
    border: none;
    border-radius: 6px;
    padding: 0 25px;
    font-weight: 600;
    transition: transform 0.2s;
}
.blog-search-btn:hover {
    transform: scale(1.02);
}

/* Floating Category Navigation */
.blog-cat-nav-wrap {
    margin-top: -40px;
    position: relative;
    z-index: 10;
}
.blog-cat-nav {
    background: #fff;
    border-radius: 12px;
    padding: 15px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    overflow-x: auto;
    white-space: nowrap;
    gap: 30px;
}
.blog-cat-nav::-webkit-scrollbar { display: none; }
.blog-cat-item {
    color: #475569;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s;
}
.blog-cat-item i { font-size: 1.1rem; }
.blog-cat-item:hover {
    color: #FDBB2D;
}
.blog-cat-item.active {
    color: #FDBB2D;
}

/* Main Layout */
.blog-main-content {
    padding: 60px 0;
}

/* Left Grid Header */
.blog-grid-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}
.blog-grid-header h2 {
    font-size: 1.4rem;
    font-weight: 700;
    color: #0d2a5e;
    margin: 0;
}
.blog-grid-controls {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 0.85rem;
    color: #475569;
    font-weight: 500;
}
.blog-sort-select {
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 6px 30px 6px 12px;
    font-size: 0.85rem;
    color: #1a1a1a;
    font-weight: 500;
    outline: none;
    appearance: none;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="12" height="12" fill="%236c757d" viewBox="0 0 16 16"><path d="M7.247 11.14L2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z"/></svg>') no-repeat right 10px center;
    background-size: 10px;
}

/* Blog Cards */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
@media (max-width: 1200px) {
    .blog-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
    .blog-grid { grid-template-columns: 1fr; }
}

.bc-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
    display: flex;
    flex-direction: column;
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid #f1f5f9;
}
.bc-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.08);
}
.bc-img-wrap {
    position: relative;
    height: 180px;
    overflow: hidden;
}
.bc-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.bc-card:hover .bc-img-wrap img {
    transform: scale(1.05);
}
.bc-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: #FDBB2D;
    color: #000;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 20px;
    text-transform: uppercase;
}
.bc-date-circle {
    position: absolute;
    top: 12px;
    right: 12px;
    background: #fff;
    width: 40px;
    height: 45px;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}
.bc-date-circle span:nth-child(1) { font-size: 1rem; font-weight: 800; line-height: 1; color: #0d2a5e; }
.bc-date-circle span:nth-child(2) { font-size: 0.65rem; font-weight: 600; color: #6c757d; text-transform: uppercase;}

.bc-body {
    padding: 15px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}
.bc-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #0d2a5e;
    line-height: 1.4;
    margin-bottom: 12px;
}
.bc-title a { color: inherit; text-decoration: none; transition: color 0.2s;}
.bc-title a:hover { color: #FDBB2D; }

.bc-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}
.bc-author-img {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    object-fit: cover;
}
.bc-author-name {
    font-size: 0.75rem;
    font-weight: 600;
    color: #475569;
}
.bc-meta-dot {
    width: 4px;
    height: 4px;
    background: #cbd5e1;
    border-radius: 50%;
}
.bc-read-time {
    font-size: 0.75rem;
    color: #6c757d;
}

.bc-excerpt {
    font-size: 0.8rem;
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 15px;
    flex-grow: 1;
}
.bc-read-more {
    font-size: 0.85rem;
    font-weight: 600;
    color: #0d2a5e;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: color 0.2s;
}
.bc-read-more i { transition: transform 0.2s; font-size: 0.8rem;}
.bc-read-more:hover { color: #FDBB2D; }
.bc-read-more:hover i { transform: translateX(4px); }


/* Pagination */
.blog-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 40px;
}
.bp-btn {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    border: 1px solid #e2e8f0;
    background: #fff;
    color: #475569;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.85rem;
    transition: all 0.2s;
}
.bp-btn:hover:not(.dots) {
    border-color: #FDBB2D;
    color: #FDBB2D;
}
.bp-btn.active {
    background: #FDBB2D;
    border-color: #FDBB2D;
    color: #fff;
}
.bp-btn.dots {
    border: none;
    background: transparent;
    pointer-events: none;
}


/* Right Sidebar Widgets */
.sidebar-widget {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 25px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
    border: 1px solid #f1f5f9;
}
.sw-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #0d2a5e;
    margin-bottom: 20px;
}

/* Popular Posts */
.popular-post-item {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}
.popular-post-item:last-child { margin-bottom: 0; }
.pop-img-wrap {
    position: relative;
    width: 70px;
    height: 70px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
}
.pop-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.pop-number {
    position: absolute;
    top: -5px;
    left: -5px;
    background: #FDBB2D;
    color: #000;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 800;
    border: 2px solid #fff;
}
.pop-info {
    display: flex;
    flex-direction: column;
}
.pop-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: #0d2a5e;
    line-height: 1.3;
    margin-bottom: 6px;
    text-decoration: none;
    transition: color 0.2s;
}
.pop-title:hover { color: #FDBB2D; }
.pop-meta {
    font-size: 0.7rem;
    color: #64748b;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Newsletter Widget */
.widget-newsletter {
    background: #0d2a5e;
    color: #fff;
    border: none;
}
.widget-newsletter .sw-title { color: #fff; margin-bottom: 10px; }
.widget-newsletter p {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.8);
    margin-bottom: 20px;
    line-height: 1.5;
}
.nl-input {
    width: 100%;
    padding: 10px 15px;
    border-radius: 6px;
    border: none;
    outline: none;
    font-size: 0.85rem;
    margin-bottom: 12px;
}
.nl-btn {
    width: 100%;
    background: #FDBB2D;
    color: #0d2a5e;
    font-weight: 700;
    font-size: 0.9rem;
    border: none;
    border-radius: 6px;
    padding: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: background 0.2s;
}
.nl-btn:hover { background: #e5a722; }
.nl-privacy {
    font-size: 0.7rem;
    color: rgba(255,255,255,0.6);
    margin-top: 15px;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Categories */
.cat-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.cat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #f1f5f9;
}
.cat-item:last-child { border-bottom: none; padding-bottom: 0; }
.cat-link {
    text-decoration: none;
    color: #1a1a1a;
    font-size: 0.85rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: color 0.2s;
}
.cat-link i { color: #64748b; font-size: 1rem; width: 18px; text-align: center;}
.cat-link:hover, .cat-link:hover i { color: #FDBB2D; }
.cat-count {
    background: #f1f5f9;
    color: #64748b;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 4px;
}

/* Promo Widget */
.widget-promo {
    background: linear-gradient(rgba(13, 42, 94, 0.7), rgba(13, 42, 94, 0.8)), url('https://images.unsplash.com/photo-1544365558-35aa4afcf11f?ixlib=rb-4.0.3&auto=format&fit=crop&w=600&q=80') center/cover;
    color: #fff;
    border: none;
    padding: 25px 20px;
}
.widget-promo .sw-title { color: #fff; margin-bottom: 10px; font-size: 1.2rem;}
.widget-promo p { font-size: 0.8rem; color: rgba(255,255,255,0.9); margin-bottom: 20px;}
.promo-btn {
    background: #FDBB2D;
    color: #0d2a5e;
    font-weight: 700;
    border: none;
    border-radius: 6px;
    padding: 8px 16px;
    font-size: 0.85rem;
    transition: transform 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}
.promo-btn:hover { transform: translateY(-2px); color: #0d2a5e; }

/* Bottom CTA Banner */
.bottom-cta {
    background: #0d2a5e;
    border-radius: 12px;
    padding: 25px 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 40px;
    color: #fff;
    position: relative;
    overflow: hidden;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" fill="none" stroke="rgba(255,255,255,0.03)" stroke-width="2" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" d="M12 19l9 2-9-18-9 18 9-2zm0 0v-8"/></svg>');
    background-position: left 20px center;
    background-size: 80px;
    background-repeat: no-repeat;
}

.cta-text { position: relative; z-index: 1; padding-left: 100px; }
.cta-text h4 { font-size: 1.2rem; font-weight: 700; margin-bottom: 6px; }
.cta-text p { font-size: 0.85rem; color: rgba(255,255,255,0.8); margin: 0; }

.cta-actions {
    position: relative;
    z-index: 1;
    display: flex;
    gap: 12px;
    align-items: center;
}
.cta-btn {
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.85rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    transition: transform 0.2s;
}
.cta-btn:hover { transform: translateY(-2px); }
.cta-call { background: #FDBB2D; color: #0d2a5e; }
.cta-call:hover { color: #0d2a5e; }
.cta-wa { background: #25D366; color: #fff; }
.cta-wa:hover { color: #fff; }
.cta-plan { background: transparent; border: 1px solid rgba(255,255,255,0.3); color: #fff; }
.cta-plan:hover { background: rgba(255,255,255,0.1); color: #fff; }

@media (max-width: 991px) {
    .bottom-cta { flex-direction: column; text-align: center; gap: 20px; padding: 30px; background-position: top center; background-size: 60px; }
    .cta-text { padding-left: 0; padding-top: 70px; }
    .cta-actions { flex-direction: column; width: 100%; }
    .cta-btn { width: 100%; justify-content: center; }
}
