body {
    --body-font: "Segoe UI Variable", "Segoe UI", sans-serif;
    font-family: var(--body-font);
    font-size: var(--type-ramp-base-font-size);
    line-height: var(--type-ramp-base-line-height);
    margin: 0;
}

/* Header Styles */
.site-header {
    background-color: #1a3a5c !important;
    padding: 0 !important;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 0.5rem 2rem;
    gap: 1rem;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

.logo-image {
    height: 40px;
    width: auto;
    border-radius: 4px;
}

.logo-text-stack {
    display: flex;
    flex-direction: column;
    align-items: center;
    line-height: 1.1;
}

.logo-title {
    color: white;
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
}

.logo-subtitle {
    color: white;
    font-weight: 400;
    font-size: 0.65rem;
    letter-spacing: 0.3px;
}

.horizontal-nav {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-link {
    color: white !important;
    text-decoration: none;
    padding: 0.5rem 1rem;
    font-weight: 500;
    transition: color 0.2s;
}

.nav-link:hover {
    color: #e0e0e0 !important;
}

.nav-link.active {
    color: #e74c3c !important;
}

.mobile-controls {
    display: none;
}

.mobile-menu-button {
    display: block;
}

/* Language Selector */
.language-selector {
    margin-left: auto;
}

.language-selector-mobile {
    margin-left: 0;
}

.language-toggle {
    color: white;
}

/* Hide globe icon on desktop, show text */
.language-icon {
    display: none;
}

.language-text {
    display: block;
}

/* Body Content */
.body-content {
    min-height: calc(100dvh - 110px);
    padding: 0 !important;
}

/* Homepage Styles */
.homepage {
    width: 100%;
}

/* Hero Section */
.hero-section {
    width: 100%;
    overflow: hidden;
    position: relative;
}

.hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* Tagline Banner */
.tagline-banner {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgba(26, 58, 92, 0.85);
    padding: 2rem 1rem;
    text-align: center;
    z-index: 1;
}

.tagline-text {
    color: white !important;
    margin: 0.25rem 0;
}

/* Features Section */
.features-section {
    padding: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.feature-card {
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.card-content {
    padding: 1rem;
    flex: 1;
}

.card-title {
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.card-description {
    color: var(--neutral-foreground-rest);
    line-height: 1.5;
}

/* Footer Styles */
.site-footer {
    background-color: #1a3a5c !important;
    color: white !important;
    padding: 1rem 2rem !important;
}

.footer-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    width: 100%;
}

.footer-flag {
    height: 20px;
    width: auto;
}

/* Error Boundary */
.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1ID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;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

.blazor-error-boundary::before {
    content: "An error has occurred. "
}

/* Loading Progress */
.loading-progress {
    position: relative;
    display: block;
    width: 8rem;
    height: 8rem;
    margin: 20vh auto 1rem auto;
}

.loading-progress circle {
    fill: none;
    stroke: #e0e0e0;
    stroke-width: 0.6rem;
    transform-origin: 50% 50%;
    transform: rotate(-90deg);
}

.loading-progress circle:last-child {
    stroke: #1b6ec2;
    stroke-dasharray: calc(3.141 * var(--blazor-load-percentage, 0%) * 0.8), 500%;
    transition: stroke-dasharray 0.05s ease-in-out;
}

.loading-progress-text {
    position: absolute;
    text-align: center;
    font-weight: bold;
    inset: calc(20vh + 3.25rem) 0 auto 0.2rem;
}

.loading-progress-text:after {
    content: var(--blazor-load-percentage-text, "Loading");
}

#blazor-error-ui {
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
    margin: 20px 0;
}

#blazor-error-ui .dismiss {
    cursor: pointer;
    position: absolute;
    right: 0.75rem;
    top: 0.5rem;
}

code {
    color: #c02d76;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .features-section {
        padding: 1.5rem;
    }
}

@media (max-width: 600px) {
    .nav-container {
        flex-wrap: nowrap;
        padding: 0.5rem 0.5rem 0.5rem 1rem;
        position: relative;
    }

    .logo-text {
        font-size: 0.9rem;
    }

    /* Mobile controls container - holds hamburger + globe */
    .mobile-controls {
        display: flex;
        align-items: center;
        gap: 0.5rem;
        margin-left: auto;
    }

    /* Hide desktop language selector on mobile */
    .language-selector-desktop {
        display: none;
    }

    /* Show globe icon, hide text on mobile */
    .language-icon {
        display: block;
    }

    .language-text {
        display: none;
    }

    .mobile-menu-button ::deep fluent-button,
    .language-selector-mobile ::deep fluent-button {
        --fill-color: transparent;
        --neutral-fill-stealth-rest: transparent;
        --neutral-fill-stealth-hover: rgba(255, 255, 255, 0.1);
        color: white;
    }

    .horizontal-nav {
        display: none !important;
    }

    .features-section {
        padding: 1rem;
    }

    .card-image {
        height: 180px;
    }

    .tagline-banner {
        padding: 0.75rem 0.5rem;
    }

    .tagline-text {
        font-size: 0.875rem !important;
        line-height: 1.3 !important;
        margin: 0.125rem 0;
    }

    .footer-content {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }
}
