@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Playfair+Display:ital,wght@0,700;1,700&display=swap');

/* ═══════════════════════════════════════════════════════
   DGCA SUBJECTS SECTION — BrutForce Aviation
   Fixed: emoji sizing, removed bottom-left orb,
   bulletproof against style.css * reset + body #001f3f
═══════════════════════════════════════════════════════ */

/* ── Force solid white body on home page ── */
body.home,
body.front-page,
body.page-template-default {
    background: #ffffff !important;
}

/* ── Wave wrappers ── */
.subjects-wave-top {
    display: block !important;
    line-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    background: #f8faff !important;
}

.subjects-wave-bottom {
    display: block !important;
    line-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    background: #f0f4ff !important;
}

.subjects-wave-top svg,
.subjects-wave-bottom svg {
    display: block !important;
    width: 100% !important;
    height: 70px !important;
}

/* ── Outer section wrapper ── */
.subject-section-wrap {
    background: #f0f4ff !important;
    position: relative !important;
    overflow: hidden !important;
    padding: 64px 40px 88px !important;
    margin: 0 !important;
    box-sizing: border-box !important;
}

/* Only one soft orb — top-right indigo, subtle */
.subject-section-wrap::before {
    content: '' !important;
    position: absolute !important;
    width: 420px;
    height: 420px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(199,210,254,0.35), transparent 65%);
    top: -80px;
    right: -80px;
    pointer-events: none;
    z-index: 0;
}

/* No bottom-left orb — removed */
.subject-section-wrap::after {
    display: none !important;
}

/* ── WP block reset ── */
.bfa-subject-section-section.wp-block-group,
.bfa-subject-section-section {
    padding: 0 !important;
    margin: 0 !important;
    background: transparent !important;
    overflow: visible !important;
    position: relative !important;
    z-index: 1 !important;
}

/* ── Inner container ── */
.subject-section {
    max-width: 1140px !important;
    margin: 0 auto !important;
    position: relative !important;
    z-index: 1 !important;
}

/* ════════════════════════════════════════
   HEADER
════════════════════════════════════════ */
.ss-header-block {
    text-align: center !important;
    margin-bottom: 50px !important;
    padding: 0 !important;
}

.ss-eyebrow {
    display: inline-flex !important;
    align-items: center !important;
    gap: 7px !important;
    font-family: 'Outfit', sans-serif !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    letter-spacing: 0.14em !important;
    text-transform: uppercase !important;
    color: #4f5fe0 !important;
    background: #eef2ff !important;
    border: 1px solid #c7d2fe !important;
    border-radius: 99px !important;
    padding: 5px 16px !important;
    margin: 0 0 16px 0 !important;
}

.ss-eyebrow-dot {
    width: 6px !important;
    height: 6px !important;
    min-width: 6px !important;
    min-height: 6px !important;
    border-radius: 50% !important;
    background: #4f5fe0 !important;
    flex-shrink: 0 !important;
    animation: ssDot 2s ease-in-out infinite !important;
    display: block !important;
}

@keyframes ssDot {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0.3; }
}

.section-heading {
    font-family: 'Playfair Display', serif !important;
    font-size: clamp(1.9rem, 3.8vw, 2.9rem) !important;
    font-weight: 700 !important;
    color: #0f172a !important;
    line-height: 1.1 !important;
    letter-spacing: -0.01em !important;
    margin: 0 0 12px 0 !important;
    padding: 0 !important;
    text-align: center !important;
    background: none !important;
}

.section-heading em {
    color: #f97316 !important;
    font-style: italic !important;
}

.ss-header-sub {
    font-family: 'Outfit', sans-serif !important;
    font-size: 15px !important;
    color: #64748b !important;
    max-width: 520px !important;
    margin: 0 auto !important;
    line-height: 1.65 !important;
    padding: 0 !important;
}

.ss-divider {
    width: 44px !important;
    height: 3px !important;
    background: linear-gradient(90deg, #4f5fe0, #818cf8) !important;
    border-radius: 2px !important;
    margin: 18px auto 0 !important;
    padding: 0 !important;
    border: none !important;
}

/* ════════════════════════════════════════
   GRID
════════════════════════════════════════ */
.subject-section .subject-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 22px !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* ════════════════════════════════════════
   CARD
════════════════════════════════════════ */
.subject-section .subject-card {
    background: #ffffff !important;
    border: 1px solid #e8edf5 !important;
    border-radius: 16px !important;
    overflow: hidden !important;
    box-shadow: 0 2px 14px rgba(0,0,0,0.06) !important;
    display: flex !important;
    flex-direction: column !important;
    padding: 0 !important;
    margin: 0 !important;
    position: relative !important;
    opacity: 1 !important;
    height: auto !important;
    transition: transform 0.25s cubic-bezier(.22,.68,0,1.3),
                box-shadow 0.25s ease,
                border-color 0.2s !important;
    animation: ssCardReveal 0.5s ease both !important;
}

.subject-section .subject-card:nth-child(1) { animation-delay: 0.05s !important; }
.subject-section .subject-card:nth-child(2) { animation-delay: 0.12s !important; }
.subject-section .subject-card:nth-child(3) { animation-delay: 0.19s !important; }
.subject-section .subject-card:nth-child(4) { animation-delay: 0.26s !important; }
.subject-section .subject-card:nth-child(5) { animation-delay: 0.33s !important; }
.subject-section .subject-card:nth-child(6) { animation-delay: 0.40s !important; }

@keyframes ssCardReveal {
    from { opacity: 0; transform: translateY(18px); }
    to   { opacity: 1; transform: translateY(0); }
}

@media (hover: hover) {
    .subject-section .subject-card:hover {
        transform: translateY(-5px) !important;
        box-shadow: 0 16px 38px rgba(79,95,224,0.12) !important;
        border-color: #c7d2fe !important;
    }
}

/* ── Image — full bleed, fixed height ── */
.subject-section .subject-card img {
    width: 100% !important;
    height: 175px !important;
    min-height: 175px !important;
    object-fit: cover !important;
    object-position: center !important;
    display: block !important;
    border-radius: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    max-width: 100% !important;
    flex-shrink: 0 !important;
}

/* ── Card body ── */
.subject-section .subject-content {
    padding: 18px 18px 20px !important;
    margin: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    flex: 1 !important;
    background: #ffffff !important;
    overflow: visible !important;
}

/* ══════════════════════════════
   EMOJI ICON — small pill before title
   The emoji in h3 was rendering huge (emoji ignores font-size in many browsers).
   Solution: wrap emoji in .sc-icon span, set explicit small size.
══════════════════════════════ */
/* ── Subject icon — inline SVG in a coloured badge ── */
.subject-section .sc-icon {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 36px !important;
    height: 36px !important;
    min-width: 36px !important;
    min-height: 36px !important;
    border-radius: 10px !important;
    margin: 0 0 12px 0 !important;
    flex-shrink: 0 !important;
    overflow: visible !important;
    background: #eef2ff !important;
}

.subject-section .sc-icon svg {
    display: block !important;
    width: 16px !important;
    height: 16px !important;
    flex-shrink: 0 !important;
}

/* Per-card icon badge colour */
.subject-section .sc-met  { background: #dbeafe !important; }
.subject-section .sc-reg  { background: #fce7f3 !important; }
.subject-section .sc-nav  { background: #d1fae5 !important; }
.subject-section .sc-tec  { background: #cffafe !important; }
.subject-section .sc-rtr  { background: #fef9c3 !important; }
.subject-section .sc-spec { background: #ffedd5 !important; }

/* ── Card heading — NO emoji inside, just text ── */
.subject-section .subject-content h3 {
    font-family: 'Playfair Display', serif !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    color: #0f172a !important;
    line-height: 1.3 !important;
    margin: 0 0 8px 0 !important;
    padding: 0 !important;
    letter-spacing: -0.01em !important;
    background: none !important;
}

/* ── Description ── */
.subject-section .subject-content p {
    font-family: 'Outfit', sans-serif !important;
    font-size: 13px !important;
    color: #64748b !important;
    line-height: 1.65 !important;
    margin: 0 0 12px 0 !important;
    padding: 0 !important;
    background: none !important;
}

/* ── Feature list ── */
.subject-section .subject-content ul {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 6px !important;
}

.subject-section .subject-content li {
    font-family: 'Outfit', sans-serif !important;
    font-size: 12.5px !important;
    color: #475569 !important;
    line-height: 1.5 !important;
    padding: 0 0 0 18px !important;
    margin: 0 !important;
    position: relative !important;
    list-style: none !important;
    background: none !important;
    display: block !important;
}

.subject-section .subject-content li::before {
    content: '' !important;
    position: absolute !important;
    left: 4px !important;
    top: 7px !important;
    width: 5px !important;
    height: 5px !important;
    border-radius: 50% !important;
    background: #4f5fe0 !important;
    display: block !important;
}

/* ════════════════════════════════════════
   TABLET  640px – 1023px
════════════════════════════════════════ */
@media (max-width: 1023px) {
    .subject-section-wrap {
        padding: 50px 28px 72px !important;
    }
    .subject-section .subject-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 16px !important;
    }
    .subject-section .subject-card img {
        height: 155px !important;
        min-height: 155px !important;
    }
    .subjects-wave-top svg,
    .subjects-wave-bottom svg {
        height: 50px !important;
    }
}

/* ════════════════════════════════════════
   MOBILE  < 640px
════════════════════════════════════════ */
@media (max-width: 639px) {
    .subject-section-wrap {
        padding: 36px 16px 56px !important;
    }
    .subject-section .subject-grid {
        grid-template-columns: 1fr !important;
        gap: 14px !important;
    }
    .subject-section .subject-card img {
        height: 185px !important;
        min-height: 185px !important;
    }
    .section-heading {
        font-size: 1.75rem !important;
    }
    .ss-header-block {
        margin-bottom: 32px !important;
    }
    .subjects-wave-top svg,
    .subjects-wave-bottom svg {
        height: 38px !important;
    }
}