/* =============================================
   BLOG LISTING PAGE — PREMIUM DESIGN
   Dedicated styles for /blog/ listing page
   ============================================= */

/* ===== HERO — Immersive gradient with floating particles ===== */
.blg-hero {
    position: relative;
    padding: 160px 16px 80px;
    text-align: center;
    background: linear-gradient(135deg, var(--color-green-deep) 0%, #104959 30%, var(--color-green-accent) 60%, var(--color-green-deep) 100%);
    overflow: hidden;
}
.blg-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 20% 80%, rgba(212,133,58,0.16) 0%, transparent 55%),
        radial-gradient(ellipse at 80% 20%, rgba(26,107,90,0.26) 0%, transparent 55%),
        radial-gradient(circle at 50% 120%, rgba(212,133,58,0.1) 0%, transparent 40%);
    pointer-events: none;
}
.blg-hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 140px;
    background: linear-gradient(to top, var(--color-light-blue), transparent);
    pointer-events: none;
    z-index: 1;
}
.blg-hero .container {
    position: relative;
    z-index: 2;
    max-width: 900px;
}

/* Floating particles */
.blg-hero-particles {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}
.blg-hero-particles span {
    position: absolute;
    display: block;
    border-radius: 50%;
    background: rgba(212, 133, 58, 0.1);
    animation: blg-float 18s infinite ease-in-out;
}
.blg-hero-particles span:nth-child(1)  { width: 80px;  height: 80px;  left: 8%;  top: 20%; animation-delay: 0s;   animation-duration: 22s; }
.blg-hero-particles span:nth-child(2)  { width: 40px;  height: 40px;  left: 85%; top: 15%; animation-delay: 2s;   animation-duration: 16s; }
.blg-hero-particles span:nth-child(3)  { width: 120px; height: 120px; left: 70%; top: 60%; animation-delay: 4s;   animation-duration: 24s; background: rgba(212,133,58,0.07); }
.blg-hero-particles span:nth-child(4)  { width: 60px;  height: 60px;  left: 15%; top: 70%; animation-delay: 1s;   animation-duration: 20s; }
.blg-hero-particles span:nth-child(5)  { width: 30px;  height: 30px;  left: 50%; top: 10%; animation-delay: 3s;   animation-duration: 14s; }
.blg-hero-particles span:nth-child(6)  { width: 50px;  height: 50px;  left: 35%; top: 80%; animation-delay: 5s;   animation-duration: 18s; }
.blg-hero-particles span:nth-child(7)  { width: 100px; height: 100px; left: 90%; top: 45%; animation-delay: 0.5s; animation-duration: 26s; background: rgba(26,107,90,0.1); }
.blg-hero-particles span:nth-child(8)  { width: 25px;  height: 25px;  left: 60%; top: 30%; animation-delay: 6s;   animation-duration: 15s; }
.blg-hero-particles span:nth-child(9)  { width: 70px;  height: 70px;  left: 5%;  top: 40%; animation-delay: 2.5s; animation-duration: 21s; }
.blg-hero-particles span:nth-child(10) { width: 35px;  height: 35px;  left: 45%; top: 65%; animation-delay: 7s;   animation-duration: 17s; }
@keyframes blg-float {
    0%, 100% { transform: translateY(0) translateX(0) scale(1); opacity: 0.6; }
    25%      { transform: translateY(-30px) translateX(15px) scale(1.1); opacity: 0.8; }
    50%      { transform: translateY(-15px) translateX(-10px) scale(0.95); opacity: 0.5; }
    75%      { transform: translateY(-40px) translateX(20px) scale(1.05); opacity: 0.7; }
}

/* Hero Badge */
.blg-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(212,133,58,0.13);
    border: 1px solid rgba(212,133,58,0.36);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 50px;
    padding: 8px 24px;
    margin-bottom: 24px;
    color: #f0b46f;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    animation: blg-fadeUp 0.8s ease forwards;
}
.blg-hero h1 {
    color: #fff;
    font-family: 'Righteous', sans-serif;
    font-size: 56px;
    margin-bottom: 18px;
    letter-spacing: -0.5px;
    line-height: 1.1;
    animation: blg-fadeUp 0.8s ease 0.1s forwards;
    opacity: 0;
}
.blg-hero-sub {
    color: rgba(255,255,255,0.6);
    font-size: 17px;
    max-width: 580px;
    margin: 0 auto 40px;
    line-height: 1.7;
    animation: blg-fadeUp 0.8s ease 0.2s forwards;
    opacity: 0;
}

/* Hero Stats */
.blg-hero-stats {
    display: inline-flex;
    align-items: center;
    gap: 0;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 16px;
    padding: 20px 0;
    animation: blg-fadeUp 0.8s ease 0.3s forwards;
    opacity: 0;
}
.blg-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 36px;
}
.blg-stat-num {
    font-family: 'Righteous', sans-serif;
    font-size: 30px;
    color: var(--color-gold);
    line-height: 1;
    margin-bottom: 4px;
}
.blg-stat-label {
    font-size: 12px;
    color: rgba(255,255,255,0.45);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}
.blg-stat-divider {
    width: 1px;
    height: 40px;
    background: rgba(255,255,255,0.12);
}

@keyframes blg-fadeUp {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ===== FEATURED POST SECTION ===== */
.blg-featured-section {
    padding: 0 16px 60px;
    background: #f7f8fc;
    position: relative;
    z-index: 2;
    margin-top: -40px;
}
.blg-featured-section .container {
    max-width: 1100px;
}
.blg-featured-card {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    background: #fff;
    border-radius: 24px;
    overflow: hidden;
    box-shadow:
        0 4px 6px rgba(0,0,0,0.04),
        0 20px 60px rgba(37,60,152,0.1);
    transition: transform 0.45s cubic-bezier(.4,0,.2,1), box-shadow 0.45s;
}
.blg-featured-card:hover {
    transform: translateY(-6px);
    box-shadow:
        0 4px 6px rgba(0,0,0,0.04),
        0 32px 80px rgba(37,60,152,0.16);
}

/* Featured Image */
.blg-featured-img-wrap {
    position: relative;
    overflow: hidden;
    display: block;
    min-height: 360px;
}
.blg-featured-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s cubic-bezier(.4,0,.2,1);
}
.blg-featured-card:hover .blg-featured-img-wrap img {
    transform: scale(1.06);
}
.blg-featured-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    background: linear-gradient(135deg, #253C98, #3450b5);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 7px 18px;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    z-index: 1;
    box-shadow: 0 4px 14px rgba(37,60,152,0.3);
}

/* Featured Body */
.blg-featured-body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 44px 48px;
}
.blg-featured-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
    flex-wrap: wrap;
}
.blg-cat-pill {
    display: inline-block;
    padding: 5px 16px;
    border-radius: 50px;
    font-size: 11px;
    font-weight: 700;
    color: #253C98;
    background: rgba(37,60,152,0.08);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.blg-date-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 13px;
    color: #aaa;
}
.blg-featured-body h2 {
    font-size: 28px;
    font-weight: 800;
    color: #1a2a6c;
    margin-bottom: 14px;
    line-height: 1.25;
    font-family: 'Figtree', 'Poppins', sans-serif !important;
    text-transform: none !important;
    letter-spacing: -0.3px;
}
.blg-featured-body h2 a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s;
}
.blg-featured-body h2 a:hover { color: #3450b5; }
.blg-featured-body > p {
    font-size: 15px;
    color: #777;
    line-height: 1.75;
    margin-bottom: 24px;
}

/* Featured Footer */
.blg-featured-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 20px;
    border-top: 1px solid #f0f0f0;
    gap: 16px;
    flex-wrap: wrap;
}
.blg-author-mini {
    display: flex;
    align-items: center;
    gap: 12px;
}
.blg-author-dot {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #253C98, #5b8def);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.blg-author-name {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: #1a2a6c;
}
.blg-author-role {
    display: block;
    font-size: 11px;
    color: #bbb;
}
.blg-read-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 24px;
    border-radius: 50px;
    background: #253C98;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s;
    box-shadow: 0 4px 14px rgba(37,60,152,0.2);
}
.blg-read-btn:hover {
    background: #1a2a6c;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37,60,152,0.3);
    gap: 12px;
}

/* ===== FILTER BAR ===== */
.blg-filter-bar {
    padding: 0 16px;
    background: #f7f8fc;
}
.blg-filter-bar .container {
    max-width: 1100px;
}
.blg-filter-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e8e8e8;
}
.blg-filter-title {
    font-size: 28px;
    font-weight: 800;
    color: #1a2a6c;
    font-family: 'Figtree', 'Poppins', sans-serif !important;
    text-transform: none !important;
    letter-spacing: -0.3px;
}
.blg-filter-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.blg-pill {
    display: inline-block;
    padding: 8px 18px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 600;
    color: #888;
    background: #fff;
    border: 1px solid #e0e0e0;
    cursor: pointer;
    transition: all 0.25s;
    font-family: 'Figtree', 'Poppins', sans-serif;
    user-select: none;
}
.blg-pill:hover {
    color: #253C98;
    border-color: #253C98;
    background: rgba(37,60,152,0.04);
}
.blg-pill.active {
    background: #253C98;
    color: #fff;
    border-color: #253C98;
    box-shadow: 0 4px 14px rgba(37,60,152,0.25);
}

/* ===== BLOG CARD GRID ===== */
.blg-grid-section {
    padding: 36px 16px 80px;
    background: #f7f8fc;
}
.blg-grid-section .container {
    max-width: 1100px;
}
.blg-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

/* Individual Blog Card */
.blg-card {
    background: #fff;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
    border: 1px solid #eee;
    transition:
        transform 0.4s cubic-bezier(.4,0,.2,1),
        box-shadow 0.4s cubic-bezier(.4,0,.2,1),
        opacity 0.5s;
    display: flex;
    flex-direction: column;
    opacity: 0;
    transform: translateY(30px);
}
.blg-card.blg-card-visible {
    opacity: 1;
    transform: translateY(0);
}
.blg-card:hover {
    transform: translateY(-10px);
    box-shadow:
        0 8px 24px rgba(37,60,152,0.08),
        0 20px 60px rgba(37,60,152,0.1);
}

/* Card Image */
.blg-card-img {
    display: block;
    position: relative;
    height: 220px;
    overflow: hidden;
}
.blg-card-img::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 80px;
    background: linear-gradient(to top, rgba(0,0,0,0.12), transparent);
    pointer-events: none;
}
.blg-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(.4,0,.2,1);
}
.blg-card:hover .blg-card-img img {
    transform: scale(1.08);
}
.blg-card-cat {
    position: absolute;
    top: 14px;
    left: 14px;
    background: linear-gradient(135deg, #253C98, #3450b5);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    padding: 5px 14px;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    z-index: 1;
    box-shadow: 0 2px 10px rgba(37,60,152,0.3);
}

/* Card Body */
.blg-card-body {
    padding: 24px 26px 26px;
    display: flex;
    flex-direction: column;
    flex: 1;
}
.blg-card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}
.blg-card-date {
    font-size: 12px;
    color: #bbb;
    font-weight: 500;
}
.blg-card-read {
    font-size: 11px;
    color: #ccc;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 50px;
    background: #f7f8fc;
}
.blg-card-body h3 {
    font-size: 17px;
    font-weight: 700;
    color: #1a2a6c;
    margin-bottom: 10px;
    line-height: 1.35;
    font-family: 'Figtree', 'Poppins', sans-serif !important;
    text-transform: none !important;
    letter-spacing: -0.2px;
}
.blg-card-body h3 a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s;
}
.blg-card-body h3 a:hover { color: #3450b5; }
.blg-card-body > p {
    font-size: 14px;
    color: #999;
    line-height: 1.65;
    margin-bottom: 18px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}
.blg-card-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 700;
    color: #253C98;
    text-decoration: none;
    transition: gap 0.3s, color 0.2s;
    margin-top: auto;
    padding-top: 16px;
    border-top: 1px solid #f0f0f0;
}
.blg-card-link:hover {
    color: #1a2a6c;
    gap: 10px;
}
.blg-card-link svg {
    transition: transform 0.3s;
}
.blg-card:hover .blg-card-link svg {
    transform: translateX(3px);
}

/* ===== CTA SECTION ===== */
.blg-cta {
    position: relative;
    background: linear-gradient(135deg, var(--color-green-deep) 0%, var(--color-green-accent) 50%, var(--color-green-deep) 100%);
    padding: 100px 16px;
    text-align: center;
    overflow: hidden;
}
.blg-cta-glow {
    position: absolute;
    top: -50%;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(212,133,58,0.18) 0%, transparent 70%);
    pointer-events: none;
    animation: blg-glow-pulse 4s ease-in-out infinite;
}
@keyframes blg-glow-pulse {
    0%, 100% { transform: translateX(-50%) scale(1); opacity: 0.6; }
    50%      { transform: translateX(-50%) scale(1.2); opacity: 1; }
}
.blg-cta .container {
    position: relative;
    z-index: 1;
    max-width: 640px;
}
.blg-cta-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
}
.blg-cta-icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: rgba(212,133,58,0.14);
    border: 1px solid rgba(212,133,58,0.26);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 28px;
    color: #5b8def;
}
.blg-cta h2 {
    font-family: 'Figtree', 'Poppins', sans-serif !important;
    font-size: 36px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 16px;
    text-transform: none;
    letter-spacing: -0.5px;
}
.blg-cta p {
    font-size: 16px;
    color: rgba(255,255,255,0.55);
    line-height: 1.7;
    margin-bottom: 36px;
}
.blg-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, var(--color-gold), #b8652b);
    color: #fff;
    padding: 16px 40px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 15px;
    text-decoration: none;
    transition: all 0.35s;
    box-shadow: 0 4px 24px rgba(212,133,58,0.3);
}
.blg-cta-btn:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(212,133,58,0.4);
    background: linear-gradient(135deg, #e09a52, #9d4e21);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .blg-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
    .blg-hero h1 { font-size: 42px; }
    .blg-featured-card { grid-template-columns: 1fr; }
    .blg-featured-img-wrap { min-height: 260px; }
    .blg-featured-body { padding: 32px; }
    .blg-featured-body h2 { font-size: 24px; }
    .blg-filter-inner { justify-content: center; text-align: center; }
    .blg-filter-title { width: 100%; }
    .blg-filter-pills { justify-content: center; }
    .blg-hero-stats { flex-direction: column; gap: 20px; padding: 24px 36px; }
    .blg-stat-divider { width: 60px; height: 1px; }
}
@media (max-width: 600px) {
    .blg-hero { padding: 140px 16px 60px; }
    .blg-hero h1 { font-size: 32px; }
    .blg-hero-sub { font-size: 15px; }
    .blg-grid { grid-template-columns: 1fr; }
    .blg-featured-section { margin-top: -20px; }
    .blg-featured-body { padding: 24px; }
    .blg-featured-body h2 { font-size: 20px; }
    .blg-featured-footer { flex-direction: column; align-items: flex-start; }
    .blg-cta h2 { font-size: 28px; }
    .blg-cta { padding: 70px 16px; }
    .blg-pill { padding: 6px 14px; font-size: 11px; }
    .blg-filter-title { font-size: 22px; }
    .blg-card-img { height: 200px; }
}
