:root {
    --bg: #0f172a;
    --bg-soft: #111827;
    --card: rgba(255, 255, 255, 0.06);
    --card-border: rgba(255, 255, 255, 0.12);
    --text: #f8fafc;
    --muted: #cbd5e1;
    --accent: #ef4444;
    --accent-hover: #dc2626;
    --secondary: rgb(52, 56, 121);
    --secondary-hover: rgba(255, 255, 255, 0.14);
    --shadow: 0 20px 45px rgba(0, 0, 0, 0.35);
    --radius: 24px;
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    font-family: "Segoe UI", Arial, sans-serif;
    background:
        radial-gradient(circle at top left, rgba(239, 68, 68, 0.16), transparent 30%),
        radial-gradient(circle at top right, rgba(59, 130, 246, 0.12), transparent 30%),
        linear-gradient(180deg, #0b1120 0%, #111827 100%);
    color: var(--text);
    min-height: 100%;
}

body {
    min-height: 100vh;
}

img {
    max-width: 100%;
    display: block;
}

a {
    text-decoration: none;
}

.page-shell {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 56px 24px 72px;
}

.hero {
    text-align: center;
    max-width: 820px;
    margin: 0 auto 42px;
}

.hero-badge {
    display: inline-block;
    padding: 8px 14px;
    margin-bottom: 18px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #fca5a5;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.4px;
}

.hero h1 {
    margin: 0 0 16px;
    font-size: clamp(32px, 5vw, 56px);
    line-height: 1.08;
    font-weight: 800;
}

.hero p {
    margin: 0;
    font-size: 18px;
    line-height: 1.7;
    color: var(--muted);
}

.program-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px;
}

.program-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 420px;
    padding: 28px;
    border-radius: var(--radius);
    background: var(--card);
    border: 1px solid var(--card-border);
    backdrop-filter: blur(18px);
    box-shadow: var(--shadow);
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.program-card:hover {
    transform: translateY(-6px);
    border-color: rgba(239, 68, 68, 0.32);
    box-shadow: 0 26px 50px rgba(0, 0, 0, 0.42);
}

.program-card.featured {
    border-color: rgba(239, 68, 68, 0.28);
}

.program-icon-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 210px;
    margin-bottom: 22px;
}

.program-icon-wrap img {
    width: 180px;
    height: 180px;
    object-fit: contain;
    filter: drop-shadow(0 16px 24px rgba(0, 0, 0, 0.25));
}

.program-content h2 {
    margin: 0 0 10px;
    font-size: 32px;
    line-height: 1.2;
    font-weight: 800;
}

.program-content p {
    margin: 0 0 22px;
    color: var(--muted);
    font-size: 17px;
    line-height: 1.6;
}

.button-group {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.button-group.two-buttons .btn {
    flex: 1 1 220px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 14px 20px;
    border-radius: 14px;
    font-size: 16px;
    font-weight: 700;
    transition: all 0.22s ease;
    text-align: center;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent), #fb7185);
    color: #fff;
    box-shadow: 0 10px 24px rgba(239, 68, 68, 0.26);
}

.btn-primary:hover {
    transform: translateY(-2px);
    background: linear-gradient(135deg, var(--accent-hover), #f43f5e);
    color: #fff;
}

.btn-secondary {
    background: var(--secondary);
    color: var(--text);
    border: 1px solid rgba(255, 255, 255, 0.14);
}

.btn-secondary:hover {
    transform: translateY(-2px);
    background: var(--secondary-hover);
    color: #fff;
}

@media (max-width: 900px) {
    .program-grid {
        grid-template-columns: 1fr;
    }

    .program-card {
        min-height: auto;
    }

    .program-content h2 {
        font-size: 28px;
    }
}

@media (max-width: 640px) {
    .page-shell {
        padding: 36px 16px 52px;
    }

    .hero {
        margin-bottom: 28px;
    }

    .hero p {
        font-size: 16px;
    }

    .program-card {
        padding: 22px;
        border-radius: 20px;
    }

    .program-icon-wrap {
        min-height: 160px;
    }

    .program-icon-wrap img {
        width: 140px;
        height: 140px;
    }

    .button-group,
    .button-group.two-buttons {
        flex-direction: column;
    }

    .button-group.two-buttons .btn {
        flex: 1 1 auto;
    }
}