:root {
    --brand-blue: #2b5fb8;
    --brand-red: #cc3f4f;
    --brand-green: #2f8c6a;
    --brand-purple: #6a4fb8;
    --brand-orange: #d9853b;
    --ink-strong: #1f2a44;
    --ink-soft: #53627d;
    --surface: #f5f8fc;
    --white-soft: #ffffff;
    --line-soft: rgba(47, 78, 130, 0.18);
    --card-shadow: 0 14px 34px rgba(22, 42, 77, 0.12);
    --card-shadow-hover: 0 22px 44px rgba(22, 42, 77, 0.18);
}

body {
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    color: var(--ink-strong);
    background:
        radial-gradient(circle at 8% 10%, rgba(43, 95, 184, 0.12) 0%, transparent 42%),
        radial-gradient(circle at 88% 16%, rgba(217, 133, 59, 0.12) 0%, transparent 40%),
        linear-gradient(180deg, #f9fbff 0%, #edf3fb 100%);
}

.hero-header {
    background:
        linear-gradient(125deg, rgba(43, 95, 184, 0.94) 0%, rgba(106, 79, 184, 0.9) 36%, rgba(204, 63, 79, 0.88) 66%, rgba(47, 140, 106, 0.88) 100%);
    position: relative;
    overflow: hidden;
}

.hero-header::after {
    content: "";
    position: absolute;
    inset: auto -12% -58% -12%;
    height: 220px;
    background: radial-gradient(ellipse at center, rgba(217, 133, 59, 0.28) 0%, rgba(217, 133, 59, 0) 65%);
    pointer-events: none;
}

.hero-subtitle {
    opacity: 0.92;
}

.logo-frame {
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.38);
    box-shadow: 0 10px 28px rgba(12, 24, 48, 0.22);
    border-radius: 18px;
    padding: 0.85rem 1.1rem;
    backdrop-filter: blur(3px);
}

.main-nav {
    background: linear-gradient(90deg, #1f2f4f 0%, #243b64 100%) !important;
    box-shadow: 0 8px 20px rgba(16, 30, 56, 0.2);
}

.main-nav .nav-link,
.main-nav .navbar-brand {
    color: rgba(255, 255, 255, 0.92) !important;
}

.main-nav .nav-link:hover,
.main-nav .navbar-brand:hover {
    color: #ffffff !important;
}

.timeline-section {
    padding: 76px 0;
}

.section-title {
    color: var(--ink-strong);
}

.section-subtitle {
    color: var(--ink-soft);
}

.timeline {
    position: relative;
}

.timeline::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 3px;
    background: linear-gradient(180deg, var(--brand-blue) 0%, var(--brand-red) 34%, var(--brand-green) 66%, var(--brand-purple) 100%);
    transform: translateX(-50%);
    opacity: 0.76;
}

.timeline-item {
    position: relative;
    margin: 62px 0;
}

.timeline-item:nth-child(odd) {
    padding-right: calc(50% + 34px);
    text-align: right;
}

.timeline-item:nth-child(even) {
    padding-left: calc(50% + 34px);
    text-align: left;
}

.timeline-badge {
    position: absolute;
    top: 18px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
    font-weight: 700;
    color: #fff;
    border: 3px solid #fff;
    box-shadow: var(--card-shadow);
}

.timeline-item:nth-child(odd) .timeline-badge {
    right: calc(50% - 24px);
    background: linear-gradient(130deg, var(--brand-blue) 0%, var(--brand-purple) 100%);
}

.timeline-item:nth-child(even) .timeline-badge {
    left: calc(50% - 24px);
    background: linear-gradient(130deg, var(--brand-red) 0%, var(--brand-orange) 100%);
}

.timeline-card {
    border: none;
    border-radius: 16px;
    overflow: hidden;
    background: var(--white-soft);
    box-shadow: var(--card-shadow);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.timeline-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--card-shadow-hover);
}

.timeline-card .card-header {
    border: none;
    color: #fff;
    padding: 1.1rem 1.45rem;
}

.timeline-item:nth-child(1) .timeline-card .card-header {
    background: linear-gradient(135deg, rgba(43, 95, 184, 0.95) 0%, rgba(106, 79, 184, 0.95) 100%);
}

.timeline-item:nth-child(2) .timeline-card .card-header {
    background: linear-gradient(135deg, rgba(47, 140, 106, 0.96) 0%, rgba(43, 95, 184, 0.92) 100%);
}

.timeline-item:nth-child(3) .timeline-card .card-header {
    background: linear-gradient(135deg, rgba(204, 63, 79, 0.95) 0%, rgba(217, 133, 59, 0.92) 100%);
}

.timeline-card .card-body {
    padding: 1.5rem;
}

.timeline-card .card-text {
    color: var(--ink-strong);
}

.details {
    margin-top: 1rem;
    padding: 0.95rem;
    border-radius: 10px;
    background: #f4f8ff;
    border-left: 4px solid var(--brand-blue);
}

.btn {
    border-radius: 10px;
}

.question-section {
    background: linear-gradient(130deg, rgba(31, 47, 79, 0.97) 0%, rgba(43, 95, 184, 0.92) 35%, rgba(106, 79, 184, 0.92) 64%, rgba(47, 140, 106, 0.9) 100%) !important;
}

.question-section .form-control {
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.28);
    background: rgba(255, 255, 255, 0.94);
}

.question-section .form-control:focus {
    border-color: rgba(217, 133, 59, 0.8);
    box-shadow: 0 0 0 0.2rem rgba(217, 133, 59, 0.24);
}

.question-submit {
    background: linear-gradient(120deg, #f7f9ff 0%, #ffe6cf 100%);
    border: none;
    color: #243b64;
    font-weight: 700;
}

.question-submit:hover {
    background: linear-gradient(120deg, #ffffff 0%, #ffdcb6 100%);
    color: #1f2f4f;
}

footer {
    background: #1a2640 !important;
}

@media (max-width: 992px) {
    .timeline::before {
        left: 24px;
    }

    .timeline-item,
    .timeline-item:nth-child(odd),
    .timeline-item:nth-child(even) {
        text-align: left;
        padding: 0 0 0 64px;
        margin: 40px 0;
    }

    .timeline-item .timeline-badge,
    .timeline-item:nth-child(odd) .timeline-badge,
    .timeline-item:nth-child(even) .timeline-badge {
        left: 0;
        right: auto;
    }
}
