:root {
    --sa-green: #007a4d;
    --sa-gold: #ffb81c;
    --sa-blue: #003366;
    --sa-light: #f5f5f5;
    --sa-ink: #1c2833;
    --sa-border: rgba(0, 51, 102, 0.14);
}

body {
    font-family: "Open Sans", sans-serif;
    color: var(--sa-ink);
    background: #ffffff;
}

h1,
h2,
h3,
h4,
h5,
.navbar-brand,
.btn,
.section-eyebrow {
    font-family: "Poppins", sans-serif;
}

a {
    color: var(--sa-blue);
}

.top-strip {
    background: var(--sa-blue);
    color: rgba(255, 255, 255, 0.85);
}

.language-selector {
    min-width: 110px;
}

.site-header {
    background: linear-gradient(90deg, rgba(0, 51, 102, 0.98), rgba(0, 122, 77, 0.96));
}

.brand-emblem {
    width: 48px;
    height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--sa-gold), #ffd566);
    color: var(--sa-blue);
    font-weight: 700;
    letter-spacing: 0.08em;
}

.brand-title {
    font-size: 1rem;
    font-weight: 600;
}

.brand-subtitle {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.75);
}

.navbar .nav-link {
    font-weight: 600;
    color: rgba(255, 255, 255, 0.88);
}

.navbar .nav-link.active,
.navbar .nav-link:hover,
.footer-links a:hover {
    color: var(--sa-gold);
}

.hero-section {
    position: relative;
    overflow: hidden;
    min-height: 74vh;
    color: #fff;
    background:
        linear-gradient(120deg, rgba(0, 31, 63, 0.78), rgba(0, 122, 77, 0.62)),
        url("https://coresg-normal.trae.ai/api/ide/v1/text_to_image?prompt=south%20african%20government%20district%20panoramic%20view%2C%20national%20colors%20subtle%20accents%2C%20official%20tourism%20portal%20hero%20image%2C%20realistic%20photography%2C%20dramatic%20sunrise&image_size=landscape_16_9")
        center/cover;
}

.hero-section::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(255, 184, 28, 0.15), transparent 35%),
        repeating-linear-gradient(
            135deg,
            rgba(255, 255, 255, 0.04),
            rgba(255, 255, 255, 0.04) 1px,
            transparent 1px,
            transparent 14px
        );
    pointer-events: none;
}

.hero-content,
.section-block {
    position: relative;
    z-index: 1;
}

.hero-card,
.info-card,
.news-card,
.panel-card,
.status-result-card,
.contact-card,
.faq-card {
    border: 1px solid var(--sa-border);
    border-radius: 1.1rem;
    box-shadow: 0 1rem 3rem rgba(0, 51, 102, 0.08);
}

.hero-card {
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(8px);
}

.section-eyebrow {
    display: inline-block;
    margin-bottom: 0.75rem;
    color: var(--sa-green);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.section-heading {
    font-size: clamp(1.85rem, 2.5vw, 2.8rem);
    color: var(--sa-blue);
}

.section-subtext {
    max-width: 680px;
    color: #52606d;
}

.notice-banner {
    border-left: 4px solid var(--sa-gold);
    background: #fff;
}

.metric-badge,
.status-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.45rem 0.85rem;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.84rem;
}

.metric-badge {
    background: rgba(255, 184, 28, 0.18);
    color: #7a5700;
}

.status-badge {
    background: rgba(0, 122, 77, 0.14);
    color: var(--sa-green);
}

.status-badge.warning {
    background: rgba(255, 184, 28, 0.2);
    color: #8a6400;
}

.status-badge.danger {
    background: rgba(164, 39, 39, 0.14);
    color: #a42727;
}

.icon-pill {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 122, 77, 0.1);
    color: var(--sa-green);
    font-weight: 700;
}

.table-visa thead th {
    background: var(--sa-blue);
    color: #fff;
    border: 0;
}

.table-visa tbody tr:nth-child(even) {
    background: rgba(0, 51, 102, 0.03);
}

.page-hero {
    background: linear-gradient(135deg, rgba(0, 51, 102, 0.96), rgba(0, 122, 77, 0.9));
    color: #fff;
}

.progress {
    height: 0.85rem;
    background: rgba(0, 51, 102, 0.08);
}

.progress-bar {
    background: linear-gradient(90deg, var(--sa-green), var(--sa-blue));
}

.form-step {
    display: none;
}

.form-step.active {
    display: block;
}

.step-indicator {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.75rem;
}

.step-indicator button {
    border: 1px solid var(--sa-border);
    background: #fff;
    border-radius: 1rem;
    padding: 0.85rem;
    font-weight: 600;
    color: #475467;
}

.step-indicator button.active {
    background: rgba(0, 122, 77, 0.1);
    border-color: rgba(0, 122, 77, 0.34);
    color: var(--sa-green);
}

.timeline-item {
    position: relative;
    padding-left: 1.75rem;
}

.timeline-item::before {
    content: "";
    position: absolute;
    left: 0.2rem;
    top: 0.35rem;
    width: 0.75rem;
    height: 0.75rem;
    border-radius: 999px;
    background: var(--sa-green);
}

.timeline-item::after {
    content: "";
    position: absolute;
    left: 0.55rem;
    top: 1.2rem;
    bottom: -1rem;
    width: 2px;
    background: rgba(0, 122, 77, 0.18);
}

.timeline-item:last-child::after {
    display: none;
}

.map-placeholder {
    min-height: 260px;
    background:
        linear-gradient(135deg, rgba(0, 51, 102, 0.85), rgba(0, 122, 77, 0.75)),
        url("https://coresg-normal.trae.ai/api/ide/v1/text_to_image?prompt=Pretoria%20city%20map%20style%20background%2C%20government%20service%20location%20visual%2C%20clean%20official%20cartographic%20design%2C%20realistic%20presentation&image_size=landscape_4_3")
        center/cover;
    border-radius: 1.1rem;
}

.site-footer {
    background: #09203a;
}

.footer-title,
.footer-heading {
    color: #fff;
}

.footer-heading {
    font-size: 1rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
}

.footer-links li,
.footer-contact li {
    margin-bottom: 0.65rem;
}

.sidebar-card {
    border-radius: 1.1rem;
    border: 1px solid var(--sa-border);
}

.category-chip {
    display: inline-flex;
    padding: 0.35rem 0.7rem;
    background: rgba(0, 122, 77, 0.1);
    border-radius: 999px;
    color: var(--sa-green);
    font-weight: 600;
    font-size: 0.85rem;
}

.search-empty {
    display: none;
}

.search-empty.visible {
    display: block;
}

@media (max-width: 991.98px) {
    .hero-section {
        min-height: auto;
    }

    .step-indicator {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 575.98px) {
    .step-indicator {
        grid-template-columns: 1fr;
    }

    .brand-subtitle {
        display: none;
    }
}
