@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');

/* ═══════════════════════════════════════════════════════
   COURSES SECTION — BrutForce Aviation
   Sky video background + white floating cards
   Responsive: Mobile / Tablet / Desktop
═══════════════════════════════════════════════════════ */

.dgca-section {
    width: 100%;
    position: relative;
    overflow: hidden;
    padding: 80px 0 120px; /* extra bottom padding for wave */
    /* Fallback if video fails to load — matches video sky */
    background: linear-gradient(
        180deg,
        #0a1628 0%,
        #0f2347 12%,
        #1a3a6e 28%,
        #2d6aad 42%,
        #5a9fd4 55%,
        #a8cfe8 68%,
        #d4e9f5 80%,
        #eaf4fb 100%
    );
    font-family: 'Outfit', sans-serif;
}

#dgca_airline_prep_courses { scroll-margin-top: 72px; }

/* ── VIDEO BACKGROUND ── */
.bg-video {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    object-position: center center;
    z-index: 0;
    pointer-events: none;
}

/* ── GRADIENT OVERLAY — matches actual video zones ──
   Top:    very dark (sky at altitude, brightness 56)
   Middle: semi-transparent blue tint
   Bottom: near-transparent so white clouds show through
*/
.overlay {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: linear-gradient(
        180deg,
        rgba(8, 15, 36, 0.82) 0%,
        rgba(12, 28, 70, 0.72) 20%,
        rgba(18, 45, 100, 0.58) 40%,
        rgba(30, 70, 130, 0.38) 60%,
        rgba(50, 100, 160, 0.18) 80%,
        rgba(180, 210, 235, 0.08) 100%
    );
    z-index: 1;
    pointer-events: none;
}

/* ── CONTENT WRAPPER ── */
.content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 40px;
}

/* ════════════════════════════════════════
   SECTION HEADER
════════════════════════════════════════ */
.cs-header {
    text-align: center;
    margin-bottom: 52px;
}

.cs-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #93c5fd;
    background: rgba(147,197,253,0.15);
    border: 1px solid rgba(147,197,253,0.3);
    border-radius: 99px;
    padding: 5px 16px;
    margin-bottom: 16px;
}

.cs-eyebrow-dot {
    width: 6px; height: 6px;
    border-radius: 50%;
    background: #93c5fd;
    flex-shrink: 0;
    animation: csDot 2s ease-in-out infinite;
}

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

/* Override legacy .heading class */
.heading,
.cs-header h2 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    color: #ffffff;
    line-height: 1.1;
    letter-spacing: -0.01em;
    margin-bottom: 14px;
    text-align: center;
    text-shadow: 0 2px 20px rgba(0,0,0,0.35);
}

.heading span,
.cs-header h2 em {
    color: #fbbf24;
    font-style: italic;
}

.cs-header-sub {
    font-size: 15px;
    color: rgba(255,255,255,0.7);
    max-width: 500px;
    margin: 0 auto;
    line-height: 1.65;
    font-weight: 400;
}

.cs-divider {
    width: 44px;
    height: 3px;
    background: linear-gradient(90deg, #93c5fd, #60a5fa);
    border-radius: 2px;
    margin: 18px auto 0;
}

/* ════════════════════════════════════════
   CARD GRID
════════════════════════════════════════ */
.grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    max-width: 960px;
    width: 100%;
}

/* ════════════════════════════════════════
   CARD — white, floating above clouds
════════════════════════════════════════ */
.card {
    background: #ffffff;
    border-radius: 18px;
    padding: 28px 26px;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.95);
    box-shadow:
        0 4px 24px rgba(0,0,0,0.13),
        0 1px 4px rgba(0,0,0,0.08);
    transition: transform 0.25s cubic-bezier(.22,.68,0,1.3),
                box-shadow 0.25s ease;
}

/* Coloured top accent bar */
.card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    border-radius: 18px 18px 0 0;
    background: var(--card-accent, linear-gradient(90deg, #4f5fe0, #818cf8));
}

@media (hover: hover) {
    .card:hover {
        transform: translateY(-6px);
        box-shadow:
            0 20px 52px rgba(0,0,0,0.18),
            0 4px 12px rgba(0,0,0,0.1);
    }
}

.card:active { transform: scale(0.98); }

/* ── Per-card colour themes ── */
.card:nth-child(1) {
    --card-accent: linear-gradient(90deg, #4f5fe0, #818cf8);
    --icon-bg: #eef2ff;
    --tag-bg: #eef2ff;
    --tag-color: #4338ca;
    --check-bg: #4f5fe0;
}
.card:nth-child(2) {
    --card-accent: linear-gradient(90deg, #0ea5e9, #38bdf8);
    --icon-bg: #e0f2fe;
    --tag-bg: #e0f2fe;
    --tag-color: #0369a1;
    --check-bg: #0ea5e9;
}
.card:nth-child(3) {
    --card-accent: linear-gradient(90deg, #10b981, #34d399);
    --icon-bg: #d1fae5;
    --tag-bg: #d1fae5;
    --tag-color: #065f46;
    --check-bg: #10b981;
}
.card:nth-child(4) {
    --card-accent: linear-gradient(90deg, #f97316, #fb923c);
    --icon-bg: #ffedd5;
    --tag-bg: #ffedd5;
    --tag-color: #9a3412;
    --check-bg: #f97316;
}

/* ── Card icon ── */
.cs-icon {
    width: 46px; height: 46px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    margin-bottom: 14px;
    background: var(--icon-bg, #eef2ff);
}

/* ── Tag pill ── */
.cs-tag {
    display: inline-block;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 2px 9px;
    border-radius: 99px;
    margin-bottom: 6px;
    background: var(--tag-bg, #eef2ff);
    color: var(--tag-color, #4338ca);
}

/* ── Card heading ── */
.card h3 {
    font-family: 'Playfair Display', serif;
    font-size: 19px;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.2;
    letter-spacing: -0.01em;
    margin-bottom: 0;
}

/* ── Card description ── */
.card p {
    font-size: 13.5px;
    color: #64748b;
    line-height: 1.65;
    font-weight: 400;
    margin: 10px 0 16px;
}

/* ── Feature list ── */
.card ul {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.card ul li {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    font-size: 13px;
    color: #475569;
    font-weight: 400;
    line-height: 1.4;
    margin-bottom: 0;
}

/* ── Check circle ── */
.cs-check {
    width: 17px; height: 17px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 1px;
    background: var(--check-bg, #4f5fe0);
}

.cs-check svg {
    width: 9px; height: 9px;
    stroke: #fff;
    stroke-width: 2.5;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* ════════════════════════════════════════
   SCROLL REVEAL — identical to original
════════════════════════════════════════ */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}
.fade-in.active {
    opacity: 1;
    transform: translateY(0);
}

.slide-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.slide-up.active {
    opacity: 1;
    transform: translateY(0);
}

.grid .card:nth-child(1) { transition-delay: 0.05s; }
.grid .card:nth-child(2) { transition-delay: 0.15s; }
.grid .card:nth-child(3) { transition-delay: 0.25s; }
.grid .card:nth-child(4) { transition-delay: 0.35s; }

/* ════════════════════════════════════════
   TABLET  640px – 1023px
════════════════════════════════════════ */
@media (max-width: 1023px) {
    .dgca-section { padding: 70px 0 80px; }
    .content      { padding: 0 28px; }
    .grid         { gap: 16px; }
    .card         { padding: 24px 20px; }
    .card h3      { font-size: 17px; }
    .cs-header    { margin-bottom: 40px; }
}

/* ════════════════════════════════════════
   MOBILE  < 640px
════════════════════════════════════════ */
@media (max-width: 639px) {
    .dgca-section { padding: 60px 0 70px; }
    .content      { padding: 0 16px; }

    .cs-header    { margin-bottom: 32px; }

    .heading,
    .cs-header h2 { font-size: 1.85rem; }

    .cs-header-sub { font-size: 13.5px; }

    /* Single column on mobile */
    .grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .card {
        padding: 22px 18px;
        border-radius: 14px;
    }

    .cs-icon  { width: 40px; height: 40px; font-size: 19px; border-radius: 10px; }
    .card h3  { font-size: 17px; }
    .card p   { font-size: 13px; margin-bottom: 12px; }
    .card ul li { font-size: 12.5px; }
    .cs-check { width: 15px; height: 15px; }
    .cs-check svg { width: 8px; height: 8px; }
}

/* ════════════════════════════════════════
   SECTION TRANSITION — Courses → Demo
   White wave at bottom bleeds into demo bg
════════════════════════════════════════ */
.courses-wave {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    line-height: 0;
    z-index: 4;
    pointer-events: none;
}

.courses-wave svg {
    display: block;
    width: 100%;
    height: 120px;
}

/* Tablet */
@media (max-width: 1023px) {
    .dgca-section { padding: 60px 0 110px; }
    .courses-wave svg { height: 90px; }
}

/* Mobile */
@media (max-width: 639px) {
    .dgca-section { padding: 50px 0 90px; }
    .courses-wave svg { height: 70px; }
}