/* =====================================================
   HOME PAGE — UNIFIED DESIGN SYSTEM
   ===================================================== */
:root {
    --h-ease: cubic-bezier(.2,.8,.2,1);
    --h-radius: 16px;
    --h-radius-sm: 10px;
    --h-card-shadow: 0 1px 2px rgba(15,23,42,.04), 0 4px 16px rgba(30,64,175,.06);
    --h-card-shadow-hover: 0 8px 28px rgba(30,64,175,.14);
}

/* Animate-on-scroll baseline */
[data-animate] { opacity: 0; transform: translateY(16px); transition: opacity .7s var(--h-ease), transform .7s var(--h-ease); }
[data-animate].is-in { opacity: 1; transform: translateY(0); }

/* Section rhythm */
.h-section { padding: 96px 0; }
.h-section--alt { background: var(--bg-light); }
@media (max-width: 992px) { .h-section { padding: 72px 0; } }
@media (max-width: 640px) { .h-section { padding: 56px 0; } }

/* Section header */
.h-header { max-width: 720px; margin: 0 auto 56px; text-align: center; }
.h-eyebrow {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 6px 14px;
    background: rgba(59,130,246,0.08);
    color: var(--primary);
    border-radius: 999px;
    font-size: 12px; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.08em;
    margin-bottom: 16px;
}
.h-eyebrow i { font-size: 11px; }
.h-h2 {
    font-size: clamp(30px, 4vw, 44px);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.02em;
    color: var(--text-dark);
    margin: 0 0 14px;
}
.h-subtitle {
    font-size: 17px;
    line-height: 1.65;
    color: var(--text-light);
    margin: 0;
}

/* Buttons */
.h-btn {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 14px 24px;
    border-radius: 12px;
    font-weight: 600; font-size: 15px;
    text-decoration: none; border: 1.5px solid transparent;
    cursor: pointer;
    transition: all .25s var(--h-ease);
    white-space: nowrap;
}
.h-btn--primary { background: var(--primary); color: #fff; box-shadow: 0 6px 16px rgba(30,64,175,.22); }
.h-btn--primary:hover { background: var(--primary-dark); transform: translateY(-2px); box-shadow: 0 10px 24px rgba(30,64,175,.30); color: #fff; }
.h-btn--ghost { background: transparent; color: var(--text-dark); border-color: var(--border-medium); }
.h-btn--ghost:hover { border-color: var(--primary); color: var(--primary); background: rgba(59,130,246,0.06); transform: translateY(-2px); }
.h-btn--outline { background: var(--bg-white); color: var(--primary); border-color: rgba(59,130,246,0.35); }
.h-btn--outline:hover { background: var(--primary); color: #fff; border-color: var(--primary); transform: translateY(-2px); }
.h-btn--white { background: #fff; color: var(--primary); box-shadow: 0 8px 20px rgba(0,0,0,.18); }
.h-btn--white:hover { background: var(--bg-lighter); transform: translateY(-2px); color: var(--primary-dark); }
.h-btn--ghost-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.4); }
.h-btn--ghost-light:hover { background: rgba(255,255,255,.12); border-color: #fff; color: #fff; transform: translateY(-2px); }
.h-icon-arrow { transition: transform .25s var(--h-ease); }
.h-btn:hover .h-icon-arrow { transform: translateX(4px); }
[dir="rtl"] .h-btn:hover .h-icon-arrow { transform: translateX(-4px) rotate(180deg); }
[dir="rtl"] .h-icon-arrow { transform: rotate(180deg); }

.h-link {
    display: inline-flex; align-items: center; gap: 6px;
    color: var(--primary); font-weight: 600; font-size: 14px;
    text-decoration: none;
    transition: color .2s ease;
}
.h-link:hover { color: var(--primary-dark); }
.h-link--muted { color: var(--text-medium); }
.h-link--muted:hover { color: var(--text-dark); }

/* Chip */
.h-chip {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 8px 16px;
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: 999px;
    font-size: 13px; font-weight: 600;
    color: var(--text-medium);
    box-shadow: var(--shadow-sm);
}
.h-chip__dot {
    width: 8px; height: 8px;
    background: #10b981;
    border-radius: 50%;
    box-shadow: 0 0 0 4px rgba(16,185,129,.22);
    animation: h-pulse 2s ease-in-out infinite;
}
@keyframes h-pulse {
    0%, 100% { box-shadow: 0 0 0 4px rgba(16,185,129,.22); }
    50% { box-shadow: 0 0 0 8px rgba(16,185,129,.05); }
}

/* Grid */
.h-grid { display: grid; gap: 24px; }
.h-grid--3 { grid-template-columns: repeat(3, 1fr); }
.h-grid--4 { grid-template-columns: repeat(4, 1fr); }
.h-grid--courses-1 { grid-template-columns: 1fr; max-width: 400px; margin: 0 auto; }
.h-grid--courses-2 { grid-template-columns: repeat(2, 1fr); max-width: 820px; margin: 0 auto; }
.h-grid--courses-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 992px) { .h-grid--3 { grid-template-columns: repeat(2, 1fr); } .h-grid--4 { grid-template-columns: repeat(2, 1fr); } .h-grid--courses-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .h-grid--3, .h-grid--4 { grid-template-columns: 1fr; } .h-grid--courses-2, .h-grid--courses-3 { grid-template-columns: 1fr; } }

/* Card base */
.h-card {
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: var(--h-radius);
    padding: 32px;
    box-shadow: var(--h-card-shadow);
    transition: all .35s var(--h-ease);
    display: flex; flex-direction: column;
}
.h-card:hover { transform: translateY(-4px); box-shadow: var(--h-card-shadow-hover); border-color: rgba(59,130,246,.35); }
.h-card__title { font-size: 20px; font-weight: 700; color: var(--text-dark); margin: 0 0 10px; line-height: 1.3; }
.h-card__desc { font-size: 15px; line-height: 1.65; color: var(--text-light); margin: 0 0 16px; flex-grow: 1; }
.h-center { text-align: center; }
.h-mt-32 { margin-top: 32px; }
.h-mt-48 { margin-top: 48px; }

/* =====================================================
   1. HERO
   ===================================================== */
.h-hero {
    position: relative;
    padding: 80px 0 96px;
    background: var(--bg-white);
    overflow: hidden;
}
.h-hero__grid {
    position: absolute; inset: 0;
    background-image:
        linear-gradient(rgba(59,130,246,0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(59,130,246,0.06) 1px, transparent 1px);
    background-size: 56px 56px;
    mask-image: radial-gradient(ellipse at center, #000 35%, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse at center, #000 35%, transparent 75%);
    z-index: 0;
}
.h-hero__glow { position: absolute; width: 520px; height: 520px; border-radius: 50%; filter: blur(120px); opacity: 0.32; z-index: 0; pointer-events: none; }
.h-hero__glow--a { background: var(--primary-light); top: -160px; right: -120px; }
.h-hero__glow--b { background: var(--accent); bottom: -180px; left: -120px; opacity: .22; }
[dir="rtl"] .h-hero__glow--a { right: auto; left: -120px; }
[dir="rtl"] .h-hero__glow--b { left: auto; right: -120px; }

.h-hero__inner {
    position: relative; z-index: 1;
    max-width: 880px;
    text-align: center;
}
.h-chip--ghost { margin-bottom: 28px; }
.h-hero__title {
    font-size: clamp(38px, 6.4vw, 72px);
    font-weight: 800;
    line-height: 1.07;
    letter-spacing: -0.03em;
    color: var(--text-dark);
    margin: 0 0 22px;
}
.h-hero__accent {
    background: linear-gradient(135deg, var(--primary), var(--accent), var(--primary-light));
    background-size: 200% 200%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: h-gradient 8s ease-in-out infinite;
    display: inline-block;
}
@keyframes h-gradient {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}
.h-hero__lede {
    font-size: 18px;
    line-height: 1.7;
    color: var(--text-light);
    max-width: 680px;
    margin: 0 auto 36px;
}
.h-hero__ctas {
    display: flex; gap: 14px;
    justify-content: center; flex-wrap: wrap;
    margin-bottom: 40px;
}
.h-hero__industries {
    display: inline-flex; align-items: center; gap: 12px;
    flex-wrap: wrap; justify-content: center;
    padding: 12px 22px;
    background: var(--bg-light);
    border: 1px solid var(--border-light);
    border-radius: 999px;
    margin-bottom: 32px;
}
.h-hero__industries-label {
    font-size: 11px; font-weight: 700;
    color: var(--text-light);
    text-transform: uppercase; letter-spacing: 0.12em;
}
.h-hero__industries-list { font-size: 13px; font-weight: 600; color: var(--text-medium); }
.h-hero__socials { display: flex; gap: 10px; justify-content: center; }
.h-hero__social {
    width: 44px; height: 44px;
    border-radius: 12px;
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    color: var(--text-medium);
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 16px;
    transition: all .3s var(--h-ease);
}
.h-hero__social:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(30,64,175,.25);
}
@media (max-width: 640px) {
    .h-hero { padding: 56px 0 64px; }
    .h-hero__industries { padding: 10px 16px; }
    .h-hero__industries-list { font-size: 11px; }
    .h-hero__lede { font-size: 16px; }
    .h-hero__ctas { gap: 10px; }
    .h-hero__ctas .h-btn { padding: 12px 20px; font-size: 14px; }
}

/* =====================================================
   2. TRUST STRIP
   ===================================================== */
.h-trust { padding: 56px 0; background: var(--bg-white); border-top: 1px solid var(--border-light); border-bottom: 1px solid var(--border-light); }
.h-trust__grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 24px;
    text-align: center;
}
.h-trust__item { padding: 8px 4px; }
.h-trust__num {
    display: block;
    font-size: clamp(28px, 3.4vw, 40px);
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
    letter-spacing: -0.02em;
    margin-bottom: 6px;
}
.h-trust__label {
    display: block;
    font-size: 12px; font-weight: 600;
    color: var(--text-light);
    text-transform: uppercase; letter-spacing: 0.06em;
}
@media (max-width: 900px) { .h-trust__grid { grid-template-columns: repeat(3, 1fr); gap: 28px 16px; } }
@media (max-width: 540px) { .h-trust__grid { grid-template-columns: repeat(2, 1fr); gap: 24px 12px; } .h-trust__num { font-size: 26px; } .h-trust__label { font-size: 11px; } }

/* =====================================================
   3. ABOUT
   ===================================================== */
.h-about__grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 64px;
    align-items: start;
}
.h-about__story .h-eyebrow { margin-bottom: 14px; }
.h-about__lede {
    font-size: 19px;
    line-height: 1.6;
    color: var(--text-medium);
    margin: 12px 0 18px;
    font-weight: 500;
    max-width: 580px;
}
.h-about__body {
    font-size: 15px;
    line-height: 1.8;
    color: var(--text-light);
    margin-bottom: 24px;
}
.h-about__meta {
    display: flex; flex-wrap: wrap;
    gap: 12px 22px;
    padding: 14px 18px;
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    margin-bottom: 24px;
}
.h-about__meta-item {
    display: inline-flex; align-items: center;
    gap: 8px;
    font-size: 13.5px; font-weight: 500;
    color: var(--text-medium);
}
.h-about__meta-item i { color: var(--primary); font-size: 13px; }
.h-about__ctas { display: flex; gap: 12px; flex-wrap: wrap; }

.h-about__cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}
.h-stat-card {
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: 14px;
    padding: 22px;
    position: relative;
    overflow: hidden;
    transition: all .3s var(--h-ease);
}
.h-stat-card::before {
    content: '';
    position: absolute; top: 0; left: 0;
    width: 100%; height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    border-radius: 14px 14px 0 0;
}
.h-stat-card:hover { transform: translateY(-3px); box-shadow: var(--h-card-shadow-hover); }
.h-stat-card__icon {
    width: 40px; height: 40px;
    background: rgba(59,130,246,.1);
    color: var(--primary);
    border-radius: 10px;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 16px;
    margin-bottom: 12px;
}
.h-stat-card__title { font-size: 15px; font-weight: 700; color: var(--text-dark); margin: 0 0 6px; line-height: 1.3; }
.h-stat-card__desc { font-size: 13px; line-height: 1.55; color: var(--text-light); margin: 0; }
@media (max-width: 992px) {
    .h-about__grid { grid-template-columns: 1fr; gap: 40px; }
}
@media (max-width: 480px) {
    .h-about__cards { grid-template-columns: 1fr; }
}

/* =====================================================
   4. SERVICES
   ===================================================== */
.h-svc__icon {
    width: 56px; height: 56px;
    background: linear-gradient(135deg, var(--primary-light), var(--primary));
    color: #fff;
    border-radius: 14px;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 22px;
    margin-bottom: 18px;
    box-shadow: 0 8px 20px rgba(30,64,175,.22);
}
.h-svc__list {
    list-style: none;
    padding: 0; margin: 12px 0 0;
    display: flex; flex-direction: column; gap: 8px;
    border-top: 1px solid var(--border-light);
    padding-top: 16px;
}
.h-svc__list li {
    display: flex; align-items: flex-start;
    gap: 10px;
    font-size: 14px; color: var(--text-medium);
    line-height: 1.5;
}
.h-svc__list i {
    color: var(--primary);
    font-size: 10px;
    margin-top: 6px;
    flex-shrink: 0;
}

/* =====================================================
   5. TECH STACK
   ===================================================== */
.h-tech { display: flex; flex-direction: column; gap: 28px; }
.h-tech__group {
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: 16px;
    padding: 24px 28px;
}
.h-tech__label {
    font-size: 12px; font-weight: 700;
    color: var(--primary);
    text-transform: uppercase; letter-spacing: 0.12em;
    margin: 0 0 14px;
}
.h-tech__pills { display: flex; flex-wrap: wrap; gap: 10px; }
.h-pill {
    display: inline-flex; align-items: center;
    gap: 8px;
    padding: 8px 14px;
    background: var(--bg-light);
    border: 1px solid var(--border-light);
    border-radius: 10px;
    font-size: 13.5px; font-weight: 600;
    color: var(--text-medium);
    transition: all .25s var(--h-ease);
}
.h-pill:hover {
    background: var(--bg-white);
    border-color: var(--primary-light);
    color: var(--primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}
.h-pill i { font-size: 13px; color: var(--primary); }

/* =====================================================
   6. FEATURED PROJECTS
   ===================================================== */
.h-proj { position: relative; }
.h-proj__head {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 14px;
}
.h-proj__icon {
    width: 48px; height: 48px;
    background: linear-gradient(135deg, var(--primary-light), var(--primary));
    color: #fff;
    border-radius: 12px;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 18px;
}
.h-proj__badge {
    padding: 4px 10px;
    background: rgba(59,130,246,.1);
    color: var(--primary);
    border-radius: 999px;
    font-size: 10px; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.08em;
}
.h-proj__techs {
    display: flex; flex-wrap: wrap; gap: 6px;
    margin-bottom: 14px;
}
.h-proj__chip {
    padding: 4px 10px;
    background: var(--bg-light);
    border: 1px solid var(--border-light);
    border-radius: 6px;
    font-size: 11.5px; font-weight: 600;
    color: var(--text-medium);
}
.h-proj__actions {
    display: flex; gap: 18px; flex-wrap: wrap;
    margin-top: auto;
    padding-top: 14px;
    border-top: 1px solid var(--border-light);
}

/* =====================================================
   7. LEARNING PLATFORM
   ===================================================== */
.h-course { padding: 0; overflow: hidden; }
.h-course__media {
    width: 100%; height: 180px;
    background: linear-gradient(135deg, var(--primary-light), var(--primary));
    color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-size: 56px;
    overflow: hidden;
}
.h-course__media img { width: 100%; height: 100%; object-fit: cover; }
.h-course__body { padding: 24px; flex-grow: 1; display: flex; flex-direction: column; }
.h-course__level {
    display: inline-block;
    padding: 4px 10px;
    background: rgba(59,130,246,.1);
    color: var(--primary);
    border-radius: 6px;
    font-size: 10.5px; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.06em;
    margin-bottom: 10px;
    width: fit-content;
}
.h-counters {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-top: 48px;
    padding: 32px;
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: 16px;
}
.h-counters__item { text-align: center; }
.h-counters__item strong {
    display: block;
    font-size: clamp(24px, 3vw, 34px);
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
    margin-bottom: 6px;
    letter-spacing: -0.01em;
}
.h-counters__item span { font-size: 12px; font-weight: 600; color: var(--text-light); text-transform: uppercase; letter-spacing: 0.08em; }
@media (max-width: 640px) {
    .h-counters { grid-template-columns: repeat(2, 1fr); padding: 22px 16px; }
}

/* =====================================================
   8. TESTIMONIALS
   ===================================================== */
.h-rec { position: relative; padding-top: 38px; }
.h-rec__quote {
    position: absolute;
    top: 24px; left: 32px;
    font-size: 28px;
    color: var(--primary-light);
    opacity: 0.4;
}
[dir="rtl"] .h-rec__quote { left: auto; right: 32px; transform: scaleX(-1); }
.h-rec__text {
    font-size: 15px;
    line-height: 1.75;
    color: var(--text-medium);
    margin: 0 0 22px;
    font-style: italic;
}
.h-rec__author {
    display: flex; align-items: center;
    gap: 12px;
    margin-top: auto;
    padding-top: 18px;
    border-top: 1px solid var(--border-light);
}
.h-rec__avatar {
    width: 44px; height: 44px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}
.h-rec__avatar--fallback {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-size: 16px; font-weight: 700;
}
.h-rec__info { flex-grow: 1; min-width: 0; }
.h-rec__name { font-size: 14px; font-weight: 700; color: var(--text-dark); margin: 0; }
.h-rec__role { font-size: 12px; color: var(--text-light); margin: 2px 0 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.h-rec__linkedin {
    width: 32px; height: 32px;
    border-radius: 8px;
    background: rgba(59,130,246,.1);
    color: var(--primary);
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 13px;
    transition: all .25s ease;
    flex-shrink: 0;
}
.h-rec__linkedin:hover { background: var(--primary); color: #fff; }

/* =====================================================
   9. CONSULTATION CTA
   ===================================================== */
.h-cta { position: relative; padding: 96px 0; overflow: hidden; color: #fff; }
.h-cta__bg {
    position: absolute; inset: 0;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, var(--primary-light) 100%);
    z-index: 0;
}
.h-cta__bg::before {
    content: '';
    position: absolute; inset: 0;
    background-image:
        radial-gradient(circle at 18% 24%, rgba(255,255,255,.18) 0%, transparent 40%),
        radial-gradient(circle at 82% 76%, rgba(255,255,255,.12) 0%, transparent 40%);
}
.h-cta__inner {
    position: relative; z-index: 1;
    text-align: center;
    max-width: 760px;
    margin: 0 auto;
    padding: 0 20px;
}
.h-cta__icon {
    width: 72px; height: 72px;
    margin: 0 auto 22px;
    background: rgba(255,255,255,.18);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,.25);
    border-radius: 20px;
    display: flex; align-items: center; justify-content: center;
    font-size: 30px; color: #fff;
}
.h-cta__title {
    font-size: clamp(28px, 4.4vw, 44px);
    font-weight: 800;
    line-height: 1.18;
    letter-spacing: -0.02em;
    margin: 0 0 14px;
    color: #fff;
}
.h-cta__desc { font-size: 17px; line-height: 1.65; color: rgba(255,255,255,.9); margin: 0 0 32px; }
.h-cta__actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
@media (max-width: 640px) {
    .h-cta { padding: 72px 0; }
    .h-cta__icon { width: 60px; height: 60px; font-size: 26px; }
    .h-cta__desc { font-size: 15px; }
}

/* =====================================================
   10. LATEST BLOGS SECTION
   ===================================================== */
.h-blogs-interactive {
    margin-top: 24px;
}

.h-blogs-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.h-blogs-inactive-wrapper {
    grid-column: span 1;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.h-blog-card {
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    box-shadow: var(--h-card-shadow);
    transition: all 0.35s var(--h-ease);
    will-change: transform, opacity;
}

/* Active Card Styling */
.h-blog-card--active {
    grid-column: span 2;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    border-radius: 20px;
    overflow: hidden;
}

.h-blog-card--active:hover {
    box-shadow: var(--h-card-shadow-hover);
    border-color: rgba(59,130,246,.35);
}

.h-blog-card--active .h-blog-card__media {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 380px;
    overflow: hidden;
}

.h-blog-card--active .h-blog-card__media img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s var(--h-ease);
}

.h-blog-card--active:hover .h-blog-card__media img {
    transform: scale(1.03);
}

.h-blog-card__cat {
    position: absolute;
    top: 20px;
    left: 20px;
    padding: 6px 14px;
    background: var(--primary);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    border-radius: 999px;
    box-shadow: 0 4px 12px rgba(30,64,175,.2);
    z-index: 2;
}

[dir="rtl"] .h-blog-card__cat {
    left: auto;
    right: 20px;
}

.h-blog-card--active .h-blog-card__content {
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.h-blog-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    font-size: 13px;
    color: var(--text-light);
    margin-bottom: 16px;
}

.h-blog-card__meta span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.h-blog-card__meta i {
    font-size: 12px;
    color: var(--primary-light);
}

.h-blog-card--active .h-blog-card__title {
    font-size: clamp(20px, 2.2vw, 25px);
    font-weight: 800;
    line-height: 1.35;
    color: var(--text-dark);
    margin: 0 0 16px;
}

.h-blog-card--active .h-blog-card__excerpt {
    font-size: 14.5px;
    line-height: 1.65;
    color: var(--text-light);
    margin: 0 0 28px;
}

.h-blog-card--active .h-btn {
    align-self: flex-start;
}

/* Inactive Card Styling */
.h-blog-card--inactive {
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    display: flex;
    flex-direction: column;
}

.h-blog-card--inactive:hover {
    transform: translateY(-4px);
    box-shadow: var(--h-card-shadow-hover);
    border-color: rgba(59,130,246,.35);
}

.h-blog-card--inactive .h-blog-card__media {
    position: relative;
    width: 100%;
    height: 130px;
    overflow: hidden;
    background: var(--bg-light);
}

.h-blog-card--inactive .h-blog-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s var(--h-ease);
}

.h-blog-card--inactive:hover .h-blog-card__media img {
    transform: scale(1.05);
}

.h-blog-card--inactive .h-blog-card__content {
    padding: 16px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.h-blog-card--inactive .h-blog-card__cat {
    position: static;
    background: transparent;
    box-shadow: none;
    padding: 0;
    font-size: 10px;
    font-weight: 700;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 8px;
}

.h-blog-card--inactive .h-blog-card__title {
    font-size: 13.5px;
    font-weight: 700;
    line-height: 1.4;
    color: var(--text-dark);
    margin: 0 0 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex-grow: 1;
}

.h-blog-card--inactive .h-blog-card__date {
    font-size: 11.5px;
    color: var(--text-light);
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-top: auto;
}

/* Swapping animations */
.h-blog-card--swapping {
    opacity: 0;
    transform: scale(0.97);
}

/* Media Queries for Latest Blogs Grid */
@media (max-width: 1100px) {
    .h-blogs-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    .h-blog-card--active {
        grid-column: span 1;
    }
    .h-blogs-inactive-wrapper {
        grid-column: span 1;
    }
}

@media (max-width: 768px) {
    .h-blog-card--active {
        grid-template-columns: 1fr;
    }
    .h-blog-card--active .h-blog-card__media {
        height: 260px;
        min-height: auto;
    }
    .h-blog-card--active .h-blog-card__content {
        padding: 28px;
    }
}

@media (max-width: 600px) {
    .h-blogs-inactive-wrapper {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .h-blog-card--inactive {
        flex-direction: row;
        height: 110px;
    }
    .h-blog-card--inactive .h-blog-card__media {
        width: 110px;
        height: 100%;
        flex-shrink: 0;
    }
    .h-blog-card--inactive .h-blog-card__content {
        padding: 12px 16px;
    }
    .h-blog-card--inactive .h-blog-card__title {
        font-size: 12.5px;
        margin-bottom: 4px;
    }
}
