/* ================= GLOBAL VARIABLES & FONTS (MATCHING REFERENCE) ================= */
:root {
    --primary-color: #0d6efd;
    --primary-dark: #0a58ca;
    --secondary-color: #6c757d;
    --accent-color: #ffc107;
    --text-dark: #212529;
    --text-light: #6c757d;
    --bg-light: #f8f9fa;
    --bg-dark: #212529;
    --card-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    --hover-shadow: 0 20px 40px rgba(13, 110, 253, 0.15);
}

body {
    font-family: 'Segoe UI', Roboto, "Helvetica Neue", Arial, sans-serif;
    color: var(--text-dark);
    background-color: var(--bg-light);
}

/* ================= ANIMATIONS ================= */
@keyframes gradientBG {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes shine {
    100% {
        left: 125%;
    }
}

/* ================= HERO SECTION ================= */
.blog-hero-section {
    position: relative;
    padding: 80px 0 90px;
    background-image: url('../../blog-background.jpg');
    background-size: cover;
    background-position: center 75%;
    background-attachment: fixed;
    color: white;
    margin-bottom: 0;
    text-align: center;
}

.hero-bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.1;
    text-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    animation: fadeInUp 0.8s ease-out;
}

.hero-subtitle {
    font-size: 1.15rem;
    opacity: 0.9;
    max-width: 700px;
    margin: 0 auto;
    font-weight: 300;
    animation: fadeInUp 1s ease-out;
}

/* ================= SEARCH BAR ================= */
.search-container {
    max-width: 600px;
    margin: 20px auto 0;
    position: relative;
    z-index: 10;
    animation: fadeInUp 1.2s ease-out;
}

.search-input-group {
    background: white;
    padding: 0.5rem;
    border-radius: 12px;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.search-input-group input {
    border: none;
    padding: 0.75rem 1rem;
    flex-grow: 1;
    min-width: 200px;
    border-radius: 8px;
    font-size: 1rem;
    outline: none;
    color: #1e293b;
}

.search-btn {
    background: #2563eb;
    color: white;
    border: none;
    padding: 0 1.5rem;
    border-radius: 8px;
    font-weight: 700;
    transition: all 0.2s;
}

.search-btn:hover {
    background: #1d4ed8;
}

@media (max-width: 576px) {
    .search-btn {
        width: auto;
        padding: 0.65rem 1.25rem;
        margin-left: auto;
    }

    .search-input-group {
        padding: 0.35rem;
        flex-wrap: nowrap;
    }

    .search-input-group input {
        min-width: 0;
        padding: 0.65rem 0.85rem;
    }
}

/* ================= LAYOUT UTILITIES ================= */
.section-bg-light {
    background-color: var(--bg-light);
    position: relative;
    z-index: 2;
    padding-top: 0;
}

/* ================= FLOATING FILTER CARD & EXAM FILTER TABS ================= */
.filter-bar-container {
    max-width: 1140px;
    transform: translateY(-50%);
    position: relative;
    z-index: 100;
    margin-bottom: -30px;
}

.search-filter-card {
    background: #ffffff;
    padding: 10px 18px;
    border-radius: 50px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08), 
                0 0 0 1px rgba(226, 232, 240, 0.8);
    border: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    width: fit-content;
    margin: 0 auto;
}

.search-filter-card:hover {
    box-shadow: 0 18px 40px -6px rgba(15, 23, 42, 0.12), 
                0 0 0 1px rgba(191, 219, 254, 0.8);
}

.exam-blog-filter-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 18px;
    font-size: 0.92rem;
    font-weight: 600;
    border-radius: 50px;
    text-decoration: none;
    background: #f8fafc;
    color: #475569 !important;
    border: 1px solid #e2e8f0;
    transition: all 0.2s ease;
    cursor: pointer;
}

.exam-blog-filter-btn:hover {
    background: #ffffff;
    color: #2563eb !important;
    border-color: #3b82f6;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.08);
    text-decoration: none;
}

.exam-blog-filter-btn.active {
    background: #2563eb !important;
    color: #ffffff !important;
    border-color: #2563eb !important;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.3) !important;
}

.exam-blog-filter-btn i {
    font-size: 0.85rem;
}

/* ================= BLOG CARD DESIGN ================= */
.blog-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    box-shadow: var(--card-shadow);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(0, 0, 0, 0.03);
    position: relative;
    cursor: pointer;
}

.blog-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--hover-shadow);
    border-color: transparent;
}

/* Image Wrapper */
.blog-image-wrapper {
    position: relative;
    overflow: hidden;
    height: 220px;
    background-color: #eee;
}

.blog-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.blog-card:hover .blog-image-wrapper img {
    transform: scale(1.1);
}

/* Shine Effect on Hover (From Reference) */
.shine-effect {
    position: absolute;
    top: 0;
    left: -75%;
    z-index: 2;
    display: block;
    content: '';
    width: 50%;
    height: 100%;
    background: linear-gradient(to right, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.3) 100%);
    transform: skewX(-25deg);
}

.blog-card:hover .shine-effect {
    animation: shine 0.75s;
}

/* Content Area */
.blog-content {
    padding: 25px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.blog-category {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--primary-color);
    letter-spacing: 1px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
}

.blog-title {
    font-size: 1.35rem;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 15px;
}

.blog-title a {
    color: var(--text-dark);
    text-decoration: none;
    transition: color 0.2s;
}

.blog-title a:hover {
    color: var(--primary-color);
}

.blog-desc {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ================= BUTTONS (MATCHING REFERENCE) ================= */
.btn-read-more {
    color: var(--primary-color) !important;
    background: transparent !important;
    border: 2px solid var(--primary-color) !important;
    border-radius: 50px !important;
    padding: 8px 25px !important;
    font-weight: 600 !important;
    font-size: 0.9rem !important;
    width: fit-content;
    transition: all 0.3s ease !important;
    display: inline-flex !important;
    align-items: center !important;
    text-decoration: none !important;
    white-space: nowrap;
}

.blog-card .stretched-link::after {
    z-index: 10;
}

.btn-read-more:hover {
    color: white !important;
    background: var(--primary-color) !important;
    box-shadow: 0 5px 15px rgba(13, 110, 253, 0.3) !important;
    transform: translateY(-2px) !important;
    border-color: var(--primary-color) !important;
}

.btn-read-more i {
    transition: transform 0.3s ease;
}

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

/* ================= RESPONSIVE ================= */
@media (max-width: 991.98px) {
    .blog-hero-section {
        padding: 55px 0 60px !important;
        background-attachment: scroll !important;
    }

    .hero-title {
        font-size: 2.2rem !important;
        line-height: 1.2 !important;
        margin-bottom: 12px !important;
    }

    .hero-subtitle {
        font-size: 0.95rem !important;
        line-height: 1.5 !important;
        margin-bottom: 22px !important;
        padding: 0 10px;
    }

    .filter-bar-container {
        transform: translateY(-50%) !important;
        position: relative !important;
        z-index: 100 !important;
        margin-bottom: 0 !important;
        max-width: 100% !important;
        transition: transform 0.25s ease;
    }

    .filter-bar-container.is-open,
    .filter-bar-container:has(.collapse.show) {
        transform: translateY(-22px) !important;
    }

    .search-filter-card {
        padding: 6px 20px !important;
        border-radius: 50px !important;
        width: fit-content !important;
        margin: 0 0 0 auto !important;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1) !important;
        background: #ffffff !important;
        transition: all 0.25s ease !important;
    }

    .search-filter-card.is-open,
    .search-filter-card:has(.collapse.show) {
        width: 100% !important;
        border-radius: 16px !important;
        padding: 14px !important;
        margin: 0 auto !important;
        box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12) !important;
    }

    .exam-blog-filter-btn {
        width: 100% !important;
        border-radius: 12px !important;
        min-height: 44px;
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .blog-image-wrapper {
        height: 200px;
    }

    .blog-content {
        padding: 20px;
    }
    
    .container, .container-fluid {
        padding-left: 15px !important;
        padding-right: 15px !important;
    }
}

/* ================= PROMO CARDS & SPONSORED AD BANNERS (PREMIUM DESIGN) ================= */
.cl-tech-promo-card {
    background: radial-gradient(circle at 10% 20%, rgba(37, 99, 235, 0.04) 0%, transparent 60%), linear-gradient(145deg, #ffffff 0%, #f8fafc 100%);
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    padding: 2.25rem 2rem;
    box-shadow: 0 10px 30px -5px rgba(15, 23, 42, 0.04), 0 20px 40px -15px rgba(37, 99, 235, 0.04);
    position: relative;
    overflow: hidden;
}

.cl-tech-promo-title {
    font-size: 1.65rem;
    font-weight: 800;
    color: #0f172a !important;
    letter-spacing: -0.02em;
    line-height: 1.25;
    margin-bottom: 0.65rem;
}

.cl-tech-promo-text {
    font-size: 0.95rem;
    color: #64748b;
    line-height: 1.65;
    margin-bottom: 1.25rem;
}

.cl-tech-promo-btn {
    font-size: 0.875rem;
    font-weight: 700;
    padding: 0.65rem 1.6rem;
    border-radius: 50px;
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    color: #ffffff !important;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.25);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    display: inline-flex;
    align-items: center;
    text-decoration: none !important;
    border: none;
}

.cl-tech-promo-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(37, 99, 235, 0.35);
    color: #ffffff !important;
}

.cd-sponsored-ad-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 30px -5px rgba(15, 23, 42, 0.04);
    height: 100%;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.cd-sponsored-ad-card:hover {
    border-color: #cbd5e1;
    transform: translateY(-2px);
}

.cd-sponsored-ad-topbar {
    padding: 10px 18px;
    background: #ffffff;
    border-bottom: 1px solid #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
}

.cd-sponsored-ad-topbar .badge {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%) !important;
    font-size: 0.72rem;
    padding: 0.3rem 0.75rem;
    letter-spacing: 0.5px;
    font-weight: 800;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.25);
}

.cd-sponsored-ad-hint {
    font-size: 0.75rem;
    color: #94a3b8;
    font-weight: 600;
}

.cd-sponsored-ad-link {
    display: flex;
    width: 100%;
    height: 100%;
    flex-grow: 1;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #ffffff;
    padding: 0.75rem;
}

.cd-sponsored-ad-img {
    width: 100%;
    height: 100%;
    min-height: 200px;
    max-height: 260px;
    object-fit: contain;
    object-position: center;
    display: block;
    border-radius: 12px;
}

.cd-sponsored-ad-card:hover .cd-sponsored-ad-img {
    transform: none;
}

/* ================= CTA BANNER (MOCK TESTS - ULTRA-PREMIUM) ================= */
.cta-banner {
    background: linear-gradient(135deg, #0b1329 0%, #172554 50%, #0b1329 100%) !important;
    color: white;
    padding: 2.75rem 3rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 20px 45px -10px rgba(11, 19, 41, 0.4);
    position: relative;
    overflow: hidden;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.cta-banner:hover {
    transform: translateY(-3px);
    box-shadow: 0 24px 50px -10px rgba(11, 19, 41, 0.5);
}

.cta-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(56, 189, 248, 0.18) 0%, transparent 70%);
    pointer-events: none;
}

.cta-banner::after {
    content: '';
    position: absolute;
    bottom: -50%;
    left: -20%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.2) 0%, transparent 70%);
    pointer-events: none;
}

.cta-banner h3 {
    font-size: 1.85rem !important;
    font-weight: 800 !important;
    letter-spacing: -0.02em !important;
    color: #ffffff !important;
}

.cta-banner p {
    font-size: 0.98rem !important;
    color: rgba(226, 232, 240, 0.85) !important;
    line-height: 1.6 !important;
}

.cta-banner a.btn {
    background: #ffffff !important;
    color: #0b1329 !important;
    font-size: 0.925rem !important;
    font-weight: 800 !important;
    padding: 0.75rem 1.85rem !important;
    border-radius: 50px !important;
    border: none !important;
    box-shadow: 0 4px 18px rgba(255, 255, 255, 0.25) !important;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.cta-banner a.btn:hover {
    background: #f8fafc !important;
    color: #2563eb !important;
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 26px rgba(255, 255, 255, 0.4) !important;
}

/* ================= ADVERTISE PROMO CARD (PREMIUM DESIGN) ================= */
.cd-advertise-promo-card {
    background: radial-gradient(circle at 50% 0%, rgba(37, 99, 235, 0.05) 0%, transparent 70%), #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 3rem 2.5rem;
    box-shadow: 0 10px 30px -5px rgba(15, 23, 42, 0.04), 0 20px 40px -15px rgba(37, 99, 235, 0.05);
    position: relative;
    overflow: hidden;
}

.cd-ad-badge {
    display: inline-flex;
    align-items: center;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 0.35rem 0.95rem;
    border-radius: 50px;
    background: rgba(37, 99, 235, 0.08);
    color: #2563eb;
    border: 1px solid rgba(37, 99, 235, 0.2);
    margin-bottom: 0.75rem;
}

.cd-ad-title {
    font-size: 1.85rem;
    font-weight: 800;
    color: #0f172a !important;
    margin-bottom: 0.65rem;
    letter-spacing: -0.025em;
    line-height: 1.25;
}

.cd-ad-text {
    font-size: 0.95rem;
    color: #64748b;
    max-width: 680px;
    margin: 0 auto 1.5rem auto;
    line-height: 1.65;
}

.cd-ad-btn {
    font-size: 0.9rem;
    font-weight: 700;
    padding: 0.75rem 2rem;
    border-radius: 50px;
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    color: #ffffff !important;
    border: none;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.25);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none !important;
}

.cd-ad-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(37, 99, 235, 0.35);
    color: #ffffff !important;
}

/* Mobile responsive adjustments */
@media (max-width: 767.98px) {
    .cl-tech-promo-card {
        padding: 1.5rem 1.25rem;
        border-radius: 16px;
    }

    .cl-tech-promo-title {
        font-size: 1.35rem;
    }

    .cl-tech-promo-text {
        font-size: 0.875rem;
        margin-bottom: 1rem;
    }

    .cl-tech-promo-btn {
        width: 100%;
        justify-content: center;
        padding: 0.75rem 1.25rem;
    }

    .cd-sponsored-ad-card {
        border-radius: 16px;
        min-height: 180px;
    }

    .cd-advertise-promo-card {
        padding: 1.75rem 1.25rem;
        border-radius: 16px;
    }

    .cd-ad-title {
        font-size: 1.35rem;
    }

    .cd-ad-text {
        font-size: 0.875rem;
        line-height: 1.55;
        margin-bottom: 1.25rem;
    }

    .cd-ad-btn {
        width: 100%;
        font-size: 0.875rem;
        padding: 0.75rem 1.25rem;
        justify-content: center;
    }

    .cta-banner {
        padding: 1.75rem 1.25rem !important;
        border-radius: 16px;
        text-align: center;
    }

    .cta-banner h3 {
        font-size: 1.4rem !important;
    }

    .cta-banner p {
        font-size: 0.875rem !important;
        margin-bottom: 1.25rem !important;
    }

    .cta-banner a.btn {
        width: 100% !important;
        justify-content: center;
        display: inline-flex;
        padding: 0.75rem 1.25rem !important;
    }
}

/* ================= PREMIUM COUNTDOWN TIMER ================= */
@keyframes glowingBreath {
    0% {
        box-shadow: 0 4px 15px rgba(239, 68, 68, 0.4);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 0 25px rgba(239, 68, 68, 0.8), 0 0 8px rgba(255, 255, 255, 0.2) inset;
        transform: scale(1.03);
    }
    100% {
        box-shadow: 0 4px 15px rgba(239, 68, 68, 0.4);
        transform: scale(1);
    }
}

.exam-countdown-premium {
    position: absolute;
    bottom: 12px;
    left: 0;
    right: 0;
    margin-left: auto;
    margin-right: auto;
    background: linear-gradient(135deg, #ef4444 0%, #b91c1c 100%) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 8px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 10;
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.4);
    width: 85%;
    justify-content: center;
    transition: all 0.3s ease;
    animation: glowingBreath 3s infinite ease-in-out !important;
}

.tech-event-card:hover .exam-countdown-premium,
.blog-card:hover .exam-countdown-premium {
    transform: translateY(-5px);
    background: linear-gradient(135deg, #dc2626 0%, #991b1b 100%) !important;
    border-color: rgba(255, 255, 255, 0.4);
}

.exam-countdown-premium .countdown-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: white;
}

.exam-countdown-premium .countdown-value {
    font-size: 1.15rem;
    font-weight: 800;
    line-height: 1;
    color: #ffffff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    font-variant-numeric: tabular-nums;
}

.exam-countdown-premium .countdown-label {
    font-size: 0.55rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.85);
    margin-top: 3px;
    font-weight: 700;
}

.exam-countdown-premium .countdown-separator {
    color: rgba(255, 255, 255, 0.2);
    font-weight: bold;
    font-size: 1.2rem;
    margin-top: -12px;
}

.countdown-concluded,
.exam-countdown-premium .countdown-concluded {
    color: #ffffff !important;
    font-weight: 700;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 6px;
}
