/* =========================================
   BLOG SECTION
========================================= */
.blog_section {
    position: relative;
    background: #000;
    overflow: hidden;
    padding: 120px 0 100px;
}

/* =========================================
   BACKGROUND EFFECTS
========================================= */
.blog_bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

.blog_bg_gradient {
    position: absolute;
    border-radius: 50%;
    filter: blur(150px);
}

.blog_bg_gradient_1 {
    width: 600px;
    height: 600px;
    background: linear-gradient(135deg, #eab308, #f59e0b);
    opacity: 0.05;
    top: -10%;
    right: -15%;
    animation: blog_float 20s ease-in-out infinite;
}

.blog_bg_gradient_2 {
    width: 500px;
    height: 500px;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    opacity: 0.04;
    bottom: -10%;
    left: -15%;
    animation: blog_float 22s ease-in-out infinite 8s;
}

@keyframes blog_float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(40px, -40px) scale(1.1); }
}

.blog_bg_grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(234, 179, 8, 0.015) 1px, transparent 1px),
        linear-gradient(90deg, rgba(234, 179, 8, 0.015) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
}

.blog_bg_orbs {
    position: absolute;
    inset: 0;
}

.blog_bg_orbs span {
    position: absolute;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: rgba(234, 179, 8, 0.3);
    animation: blog_orb_float 18s ease-in-out infinite;
}

.blog_bg_orbs span:nth-child(1) { top: 15%; left: 10%; animation-delay: 0s; }
.blog_bg_orbs span:nth-child(2) { top: 45%; right: 8%; animation-delay: 4s; width: 6px; height: 6px; background: rgba(59, 130, 246, 0.3); }
.blog_bg_orbs span:nth-child(3) { bottom: 30%; left: 20%; animation-delay: 8s; width: 5px; height: 5px; }
.blog_bg_orbs span:nth-child(4) { bottom: 15%; right: 25%; animation-delay: 12s; background: rgba(168, 85, 247, 0.3); }

@keyframes blog_orb_float {
    0%, 100% { transform: translateY(0) scale(1); opacity: 0.3; }
    50% { transform: translateY(-35px) scale(1.6); opacity: 0.8; }
}

/* =========================================
   SECTION HEADER
========================================= */
.blog_header {
    text-align: center;
    margin-bottom: 50px;
    position: relative;
    z-index: 2;
}

.blog_badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, rgba(234, 179, 8, 0.12), rgba(234, 179, 8, 0.04));
    border: 1px solid rgba(234, 179, 8, 0.35);
    padding: 10px 24px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 700;
    color: #eab308;
    margin-bottom: 28px;
    text-transform: uppercase;
    letter-spacing: 2.5px;
    position: relative;
    overflow: hidden;
}

.blog_badge::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(234, 179, 8, 0.15), transparent);
    animation: blog_badge_shine 3s ease-in-out infinite;
}

@keyframes blog_badge_shine {
    0% { left: -100%; }
    50%, 100% { left: 100%; }
}

.blog_badge_dot {
    width: 7px;
    height: 7px;
    background: #eab308;
    border-radius: 50%;
    animation: blog_dot_pulse 2s ease-in-out infinite;
    flex-shrink: 0;
}

@keyframes blog_dot_pulse {
    0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(234, 179, 8, 0.4); }
    50% { opacity: 0.5; box-shadow: 0 0 0 6px rgba(234, 179, 8, 0); }
}

.blog_title {
    font-size: clamp(36px, 5vw, 58px);
    font-weight: 900;
    color: #fff;
    line-height: 1.1;
    margin-bottom: 20px;
    letter-spacing: -1.5px;
}

.blog_title_gradient {
    background: linear-gradient(135deg, #eab308 0%, #fbbf24 50%, #f59e0b 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.blog_subtitle {
    font-size: clamp(15px, 2vw, 18px);
    color: #9ca3af;
    max-width: 650px;
    margin: 0 auto;
    line-height: 1.7;
}

/* =========================================
   FILTER TABS
========================================= */
.blog_filters {
    display: flex;
    justify-content: center;
    margin-bottom: 50px;
    position: relative;
    z-index: 2;
}

.blog_filters_wrap {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 6px;
    position: relative;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.blog_filter_btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 22px;
    border: none;
    background: transparent;
    color: #6b7280;
    font-family: "Poppins", sans-serif;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    border-radius: 12px;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    position: relative;
    z-index: 2;
    white-space: nowrap;
}

.blog_filter_btn svg {
    transition: all 0.3s ease;
    opacity: 0.5;
}

.blog_filter_btn:hover {
    color: #d1d5db;
}

.blog_filter_btn:hover svg {
    opacity: 0.8;
}

.blog_filter_active {
    color: #000 !important;
}

.blog_filter_active svg {
    opacity: 1 !important;
}

/* Sliding Indicator */
.blog_filter_indicator {
    position: absolute;
    height: calc(100% - 12px);
    top: 6px;
    left: 6px;
    background: linear-gradient(135deg, #eab308, #f59e0b);
    border-radius: 12px;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    z-index: 1;
    box-shadow: 0 4px 15px rgba(234, 179, 8, 0.3);
}

/* =========================================
   BLOG GRID
========================================= */
.blog_grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    position: relative;
    z-index: 2;
}

/* =========================================
   BLOG CARD
========================================= */
.blog_card {
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.015) 100%);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 24px;
    overflow: hidden;
    transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
    position: relative;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.blog_card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 24px;
    border: 1px solid transparent;
    background: linear-gradient(135deg, rgba(234, 179, 8, 0.3), transparent 40%) border-box;
    -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: 0;
}

.blog_card:hover {
    transform: translateY(-12px);
    box-shadow:
        0 30px 60px -15px rgba(0, 0, 0, 0.5),
        0 0 40px rgba(234, 179, 8, 0.06);
    border-color: rgba(234, 179, 8, 0.2);
}

.blog_card:hover::before {
    opacity: 1;
}

/* Hidden Cards */
.blog_card_hidden {
    display: none;
    opacity: 0;
    transform: translateY(30px);
}

.blog_card_hidden.blog_card_show {
    display: block;
    animation: blog_card_reveal 0.6s cubic-bezier(0.23, 1, 0.32, 1) forwards;
}

@keyframes blog_card_reveal {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.97);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Filter Hide/Show */
.blog_card_filter_hide {
    display: none !important;
}

.blog_card_filter_show {
    display: block;
    animation: blog_card_filter_in 0.5s cubic-bezier(0.23, 1, 0.32, 1) forwards;
}

@keyframes blog_card_filter_in {
    from {
        opacity: 0;
        transform: scale(0.92) translateY(20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* =========================================
   CARD IMAGE
========================================= */
.blog_card_image {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.blog_card_image_placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(145deg, rgba(234, 179, 8, 0.08) 0%, rgba(234, 179, 8, 0.02) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(234, 179, 8, 0.3);
    transition: all 0.6s ease;
}

.blog_card_placeholder_blue {
    background: linear-gradient(145deg, rgba(59, 130, 246, 0.08) 0%, rgba(59, 130, 246, 0.02) 100%);
    color: rgba(59, 130, 246, 0.3);
}

.blog_card_placeholder_green {
    background: linear-gradient(145deg, rgba(34, 197, 94, 0.08) 0%, rgba(34, 197, 94, 0.02) 100%);
    color: rgba(34, 197, 94, 0.3);
}

.blog_card_placeholder_purple {
    background: linear-gradient(145deg, rgba(168, 85, 247, 0.08) 0%, rgba(168, 85, 247, 0.02) 100%);
    color: rgba(168, 85, 247, 0.3);
}

.blog_card:hover .blog_card_image_placeholder {
    transform: scale(1.08);
}

.blog_card:hover .blog_card_image_placeholder svg {
    transform: scale(1.1);
    opacity: 0.6;
}

.blog_card_overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.6) 0%, transparent 60%);
    z-index: 1;
}

/* Category Badge on Image */
.blog_card_category_badge {
    position: absolute;
    top: 16px;
    left: 16px;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: rgba(234, 179, 8, 0.15);
    border: 1px solid rgba(234, 179, 8, 0.35);
    border-radius: 8px;
    font-size: 11px;
    font-weight: 700;
    color: #eab308;
    text-transform: uppercase;
    letter-spacing: 1px;
    z-index: 2;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.blog_badge_blue {
    background: rgba(59, 130, 246, 0.15);
    border-color: rgba(59, 130, 246, 0.35);
    color: #3b82f6;
}

.blog_badge_green {
    background: rgba(34, 197, 94, 0.15);
    border-color: rgba(34, 197, 94, 0.35);
    color: #22c55e;
}

.blog_badge_purple {
    background: rgba(168, 85, 247, 0.15);
    border-color: rgba(168, 85, 247, 0.35);
    color: #a855f7;
}

/* Read Time Badge */
.blog_card_read_time {
    position: absolute;
    top: 16px;
    right: 16px;
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 5px 12px;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    font-size: 11px;
    font-weight: 500;
    color: #d1d5db;
    z-index: 2;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* =========================================
   CARD BODY
========================================= */
.blog_card_body {
    padding: 28px;
    position: relative;
    z-index: 2;
}

/* Meta: Author + Date */
.blog_card_meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.blog_card_author {
    display: flex;
    align-items: center;
    gap: 10px;
}

.blog_card_author_avatar {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    background: linear-gradient(135deg, rgba(234, 179, 8, 0.15), rgba(234, 179, 8, 0.05));
    border: 1px solid rgba(234, 179, 8, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #eab308;
    flex-shrink: 0;
}

.blog_avatar_blue {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.15), rgba(59, 130, 246, 0.05));
    border-color: rgba(59, 130, 246, 0.2);
    color: #3b82f6;
}

.blog_avatar_green {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.15), rgba(34, 197, 94, 0.05));
    border-color: rgba(34, 197, 94, 0.2);
    color: #22c55e;
}

.blog_avatar_purple {
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.15), rgba(168, 85, 247, 0.05));
    border-color: rgba(168, 85, 247, 0.2);
    color: #a855f7;
}

.blog_card_author span {
    font-size: 12px;
    font-weight: 500;
    color: #9ca3af;
}

.blog_card_date {
    font-size: 12px;
    color: #6b7280;
    font-weight: 400;
}

/* Title */
.blog_card_title {
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    line-height: 1.4;
    margin-bottom: 12px;
    transition: color 0.3s ease;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog_card:hover .blog_card_title {
    color: #eab308;
}

/* Excerpt */
.blog_card_excerpt {
    font-size: 14px;
    color: #6b7280;
    line-height: 1.7;
    margin-bottom: 18px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Tags */
.blog_card_tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.blog_card_tag {
    padding: 4px 12px;
    background: rgba(234, 179, 8, 0.06);
    border: 1px solid rgba(234, 179, 8, 0.15);
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    color: #eab308;
    transition: all 0.3s ease;
}

.blog_card:hover .blog_card_tag {
    background: rgba(234, 179, 8, 0.12);
    border-color: rgba(234, 179, 8, 0.3);
}

.blog_tag_blue {
    background: rgba(59, 130, 246, 0.06);
    border-color: rgba(59, 130, 246, 0.15);
    color: #3b82f6;
}

.blog_card:hover .blog_tag_blue {
    background: rgba(59, 130, 246, 0.12);
    border-color: rgba(59, 130, 246, 0.3);
}

.blog_tag_green {
    background: rgba(34, 197, 94, 0.06);
    border-color: rgba(34, 197, 94, 0.15);
    color: #22c55e;
}

.blog_card:hover .blog_tag_green {
    background: rgba(34, 197, 94, 0.12);
    border-color: rgba(34, 197, 94, 0.3);
}

.blog_tag_purple {
    background: rgba(168, 85, 247, 0.06);
    border-color: rgba(168, 85, 247, 0.15);
    color: #a855f7;
}

.blog_card:hover .blog_tag_purple {
    background: rgba(168, 85, 247, 0.12);
    border-color: rgba(168, 85, 247, 0.3);
}

/* Read Link */
.blog_card_link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 600;
    color: #eab308;
    text-decoration: none;
    transition: all 0.4s ease;
    padding: 10px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    width: 100%;
}

.blog_card_link svg {
    transition: transform 0.4s ease;
}

.blog_card_link:hover {
    gap: 16px;
}

.blog_card_link:hover svg {
    transform: translateX(5px);
}

.blog_link_blue { color: #3b82f6; }
.blog_link_green { color: #22c55e; }
.blog_link_purple { color: #a855f7; }

/* =========================================
   LOAD MORE BUTTON
========================================= */
.blog_load_more {
    display: flex;
    justify-content: center;
    margin-top: 50px;
    position: relative;
    z-index: 2;
}

.blog_load_more_btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 20px 50px;
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.02) 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    position: relative;
    overflow: hidden;
    font-family: "Poppins", sans-serif;
}

.blog_load_more_btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(234, 179, 8, 0.08), transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.blog_load_more_btn:hover {
    transform: translateY(-5px);
    border-color: rgba(234, 179, 8, 0.35);
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.4), 0 0 30px rgba(234, 179, 8, 0.06);
}

.blog_load_more_btn:hover::before {
    opacity: 1;
}

.blog_load_more_text {
    font-size: 16px;
    font-weight: 700;
    color: #eab308;
    position: relative;
    z-index: 1;
}

.blog_load_more_icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(234, 179, 8, 0.1);
    border: 1px solid rgba(234, 179, 8, 0.2);
    border-radius: 50%;
    color: #eab308;
    position: relative;
    z-index: 1;
    transition: all 0.4s ease;
    animation: blog_bounce 2s ease-in-out infinite;
}

.blog_load_more_btn:hover .blog_load_more_icon {
    background: #eab308;
    color: #000;
    transform: scale(1.1);
    border-color: #eab308;
}

@keyframes blog_bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(5px); }
}

.blog_load_more_count {
    font-size: 12px;
    color: #6b7280;
    position: relative;
    z-index: 1;
    font-weight: 400;
}

/* Hidden State for Load More */
.blog_load_more_btn.blog_btn_loaded {
    opacity: 0.4;
    pointer-events: none;
    transform: scale(0.95);
}

.blog_load_more_btn.blog_btn_loaded .blog_load_more_text {
    color: #6b7280;
}

.blog_load_more_btn.blog_btn_loaded .blog_load_more_text::after {
    content: ' ✓';
}

/* =========================================
   SCROLL ANIMATIONS
========================================= */
.blog_animate {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.23, 1, 0.32, 1);
}

.blog_animate.blog_visible {
    opacity: 1;
    transform: translateY(0);
}

/* =========================================
   RESPONSIVE
========================================= */
@media (max-width: 1200px) {
    .blog_grid {
        gap: 24px;
    }
}

@media (max-width: 992px) {
    .blog_section {
        padding: 80px 0;
    }

    .blog_grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }

    .blog_filters_wrap {
        flex-wrap: wrap;
        justify-content: center;
        gap: 4px;
        border-radius: 20px;
        padding: 8px;
    }

    .blog_filter_btn {
        padding: 10px 16px;
        font-size: 12px;
    }

    .blog_filter_indicator {
        display: none;
    }

    .blog_filter_active {
        background: linear-gradient(135deg, #eab308, #f59e0b) !important;
        color: #000 !important;
        border-radius: 10px;
    }
}

@media (max-width: 768px) {
    .blog_section {
        padding: 60px 0;
    }

    .blog_header {
        margin-bottom: 36px;
    }

    .blog_grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .blog_card_image {
        height: 200px;
    }

    .blog_card_body {
        padding: 22px;
    }

    .blog_card_title {
        font-size: 17px;
    }

    .blog_filter_btn {
        padding: 8px 14px;
        font-size: 11px;
        gap: 5px;
    }

    .blog_filter_btn svg {
        width: 14px;
        height: 14px;
    }

    .blog_load_more_btn {
        padding: 16px 36px;
    }

    .blog_load_more_text {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .blog_section {
        padding: 40px 0;
    }

    .blog_title {
        font-size: 30px;
    }

    .blog_card_image {
        height: 170px;
    }

    .blog_card_body {
        padding: 18px;
    }

    .blog_card_title {
        font-size: 16px;
    }

    .blog_card_excerpt {
        font-size: 13px;
    }

    .blog_card_meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .blog_filters_wrap {
        gap: 4px;
    }

    .blog_filter_btn {
        padding: 7px 10px;
        font-size: 10px;
    }

    .blog_filter_btn svg {
        display: none;
    }
}

