:root {
    --primary: #991b1b;
    --primary-hover: #7f1d1d;
    --bg: #ffffff;
    --bg-muted: #f9fafb;
    --text: #111827;
    --text-muted: #6b7280;
    --border: #e5e7eb;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

/* Smooth page transitions - prevent white flash */
@view-transition { navigation: auto; }
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    -webkit-text-size-adjust: 100%;
}
/* Fade-in animation for page content */
.main-content {
    animation: fadeIn 0.2s ease-out;
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(4px); }
    to { opacity: 1; transform: translateY(0); }
}
body.nav-open { overflow: hidden; }

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 1rem; }

/* ═══════════════════════════════════════
   Header
   ═══════════════════════════════════════ */
.header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255,255,255,0.97);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--border);
}
.header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 6rem;
}
.header-logo img {
    height: 5rem;
    width: auto;
}
.header-nav {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}
.header-nav a {
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--text-muted);
    transition: color 0.2s;
    position: relative;
}
.header-nav a:hover,
.header-nav a.active {
    color: var(--primary);
}
.header-nav a.active::after {
    content: '';
    position: absolute;
    bottom: -0.5rem;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--primary);
    border-radius: 1px;
}

/* Language switch */
.lang-switch {
    display: flex;
    gap: 0.25rem;
    margin-left: 1rem;
}
.lang-switch a {
    padding: 0.25rem 0.625rem;
    border-radius: 0.25rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--text-muted);
    border: 1px solid var(--border);
    transition: all 0.2s;
}
.lang-switch a::after { display: none !important; }
.lang-switch a.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

/* Hamburger button */
.mobile-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    -webkit-tap-highlight-color: transparent;
}
.hamburger {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 24px;
    height: 24px;
}
.hamburger span {
    display: block;
    height: 2px;
    width: 100%;
    background: var(--text);
    border-radius: 2px;
    transition: all 0.3s ease;
    transform-origin: center;
}
.mobile-toggle.active .hamburger span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.mobile-toggle.active .hamburger span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}
.mobile-toggle.active .hamburger span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Mobile nav */
.mobile-nav {
    display: none;
    flex-direction: column;
    background: white;
    border-top: 1px solid var(--border);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
}
.mobile-nav.open {
    display: flex;
    max-height: 100vh;
    animation: slideDown 0.3s ease forwards;
}
@keyframes slideDown {
    from { max-height: 0; opacity: 0; }
    to { max-height: 100vh; opacity: 1; }
}
.mobile-nav a {
    display: block;
    padding: 0.875rem 1.5rem;
    font-size: 1rem;
    font-weight: 500;
    color: var(--text);
    border-bottom: 1px solid var(--border);
    transition: background 0.15s;
}
.mobile-nav a:active { background: var(--bg-muted); }
.mobile-nav a.active {
    color: var(--primary);
    font-weight: 600;
    background: #fef2f2;
    border-left: 3px solid var(--primary);
}
.mobile-nav-footer {
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: center;
}
.mobile-nav-footer .lang-switch {
    margin-left: 0;
    gap: 0.5rem;
}
.mobile-nav-footer .lang-switch a {
    padding: 0.5rem 1.25rem;
    font-size: 0.9375rem;
}

/* Desktop: larger header */
@media (min-width: 769px) {
    .header .container { height: 7rem; }
    .header-logo img { height: 6rem; }
    .mobile-toggle { display: none !important; }
    .mobile-nav { display: none !important; }
}
@media (min-width: 1024px) {
    .header .container { height: 9rem; }
    .header-logo img { height: 8rem; }
}

/* Mobile: show hamburger, hide desktop nav */
@media (max-width: 768px) {
    .header-nav { display: none; }
    .mobile-toggle { display: flex; }
}

/* ═══════════════════════════════════════
   Hero (homepage)
   ═══════════════════════════════════════ */
.hero {
    position: relative;
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    color: white;
    text-align: center;
}
.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}
.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.6);
}
.hero-content {
    position: relative;
    z-index: 10;
    padding: 3rem 1.25rem;
}
.hero h1 {
    font-size: 1.75rem;
    font-weight: 700;
    letter-spacing: -0.025em;
    margin-bottom: 0.75rem;
}
.hero p {
    font-size: 1rem;
    opacity: 0.85;
    max-width: 42rem;
    margin: 0 auto 1.5rem;
}
.hero-buttons {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    flex-wrap: wrap;
}

@media (min-width: 480px) {
    .hero { min-height: 65vh; }
    .hero h1 { font-size: 2.25rem; }
    .hero p { font-size: 1.125rem; }
}
@media (min-width: 768px) {
    .hero { min-height: 70vh; }
    .hero h1 { font-size: 3rem; }
    .hero p { font-size: 1.375rem; }
    .hero-content { padding: 4rem 2rem; }
}
@media (min-width: 1024px) {
    .hero h1 { font-size: 3.75rem; }
    .hero p { font-size: 1.5rem; }
}

/* ═══════════════════════════════════════
   Page Hero (subpages)
   ═══════════════════════════════════════ */
.page-hero {
    position: relative;
    height: 12rem;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    color: white;
    text-align: center;
}
.page-hero .hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.page-hero h1 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}
.page-hero p {
    font-size: 0.9375rem;
    opacity: 0.8;
}
@media (min-width: 480px) {
    .page-hero { height: 14rem; }
    .page-hero h1 { font-size: 1.75rem; }
}
@media (min-width: 768px) {
    .page-hero { height: 18rem; }
    .page-hero h1 { font-size: 2.5rem; }
    .page-hero p { font-size: 1.125rem; }
}
@media (min-width: 1024px) {
    .page-hero { height: 20rem; }
    .page-hero h1 { font-size: 3rem; }
    .page-hero p { font-size: 1.25rem; }
}

/* ═══════════════════════════════════════
   Buttons
   ═══════════════════════════════════════ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.2s;
    cursor: pointer;
    border: none;
    -webkit-tap-highlight-color: transparent;
}
.btn-primary {
    background: var(--primary);
    color: white;
}
.btn-primary:hover { background: var(--primary-hover); }
.btn-outline {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.3);
    color: white;
}
.btn-outline:hover { background: rgba(255,255,255,0.1); }
.btn-outline-dark {
    background: transparent;
    border: 1.5px solid var(--primary);
    color: var(--primary);
}
.btn-outline-dark:hover { background: var(--primary); color: white; }
.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.8125rem;
}

/* ═══════════════════════════════════════
   Key Numbers
   ═══════════════════════════════════════ */
.key-numbers {
    background: var(--bg-muted);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 2rem 1rem;
}
.key-numbers .container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    text-align: center;
}
.key-numbers .stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
}
.key-numbers .stat-label {
    font-size: 0.8125rem;
    color: var(--text-muted);
    margin-top: 0.125rem;
}
@media (min-width: 480px) {
    .key-numbers .container { grid-template-columns: repeat(3, 1fr); }
    .key-numbers { padding: 2.5rem 1rem; }
}
@media (min-width: 768px) {
    .key-numbers { padding: 3rem 1rem; }
    .key-numbers .stat-value { font-size: 1.875rem; }
    .key-numbers .stat-label { font-size: 0.875rem; }
}

/* ═══════════════════════════════════════
   Sections
   ═══════════════════════════════════════ */
.section { padding: 2.5rem 1rem; }
.section-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
    text-align: center;
}
.section-text {
    color: var(--text-muted);
    line-height: 1.7;
    max-width: 48rem;
    margin: 0 auto;
    font-size: 0.9375rem;
}
@media (min-width: 768px) {
    .section { padding: 4rem 1rem; }
    .section-title { font-size: 1.5rem; margin-bottom: 1.5rem; }
    .section-text { font-size: 1rem; }
}

/* ═══════════════════════════════════════
   Cards
   ═══════════════════════════════════════ */
.card {
    background: white;
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    padding: 1.25rem;
    transition: box-shadow 0.15s, border-color 0.15s, transform 0.15s;
}
a > .card,
a.card {
    cursor: pointer;
}
a > .card:hover,
a.card:hover {
    border-color: #93c5fd;
    box-shadow: 0 4px 12px rgba(59,130,246,0.12);
    transform: translateY(-1px);
}
.dash-row:hover {
    background: #eff6ff !important;
    color: #1d4ed8 !important;
}
.card-title {
    font-weight: 600;
    margin-bottom: 0.5rem;
}
.card-text {
    color: var(--text-muted);
    font-size: 0.875rem;
}
@media (min-width: 768px) {
    .card { padding: 1.5rem; }
}

/* Grid */
.grid { display: grid; gap: 1rem; }
.grid-2 { grid-template-columns: 1fr; }
.grid-3 { grid-template-columns: 1fr; }
@media (min-width: 480px) {
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 640px) {
    .grid-2 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 768px) {
    .grid { gap: 1.5rem; }
    .grid-3 { grid-template-columns: repeat(3, 1fr); }
}

/* ═══════════════════════════════════════
   Services
   ═══════════════════════════════════════ */
.service-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: 0.75rem;
    padding: 1.5rem;
    text-align: center;
    transition: box-shadow 0.2s;
}
.service-card:hover { box-shadow: 0 4px 12px rgba(0,0,0,0.1); }
.service-icon {
    width: 2.5rem;
    height: 2.5rem;
    margin: 0 auto 0.75rem;
    color: var(--primary);
}
.service-card h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}
.service-card p {
    color: var(--text-muted);
    font-size: 0.8125rem;
    line-height: 1.5;
}
@media (min-width: 768px) {
    .service-card { padding: 2rem; }
    .service-icon { width: 3rem; height: 3rem; margin-bottom: 1rem; }
    .service-card h3 { font-size: 1.125rem; margin-bottom: 0.75rem; }
    .service-card p { font-size: 0.875rem; }
}

/* ═══════════════════════════════════════
   Features list
   ═══════════════════════════════════════ */
.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}
.feature-check {
    color: var(--primary);
    font-weight: 700;
    flex-shrink: 0;
    margin-top: 0.125rem;
}

/* ═══════════════════════════════════════
   Job card
   ═══════════════════════════════════════ */
.job-card-wrap {
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    overflow: hidden;
}
.job-card {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    background: white;
    padding: 1.25rem;
}
.job-card h3 { font-weight: 600; font-size: 1rem; }
.job-card .btn { align-self: flex-start; }
@media (min-width: 480px) {
    .job-card {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        padding: 1.25rem 1.5rem;
    }
    .job-card .btn { align-self: center; }
}

/* Job application form — collapsed by default */
.job-apply-form {
    display: none;
    padding: 1.25rem 1.5rem;
    background: var(--bg-muted);
    border-top: 1px solid var(--border);
}
.job-apply-form.open { display: block; }

/* Career form grid */
.career-form .form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}
@media (max-width: 480px) {
    .career-form .form-grid { grid-template-columns: 1fr; }
}
.career-form .form-group { margin-bottom: 0.75rem; }
.career-form .form-group:last-of-type { margin-bottom: 1rem; }

/* ═══════════════════════════════════════
   Contact card
   ═══════════════════════════════════════ */
.contact-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    padding: 1.25rem;
    text-align: center;
}
.contact-card h3 {
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 0.9375rem;
}
.contact-card p {
    color: var(--text-muted);
    font-size: 0.875rem;
    margin-bottom: 0.25rem;
}
.contact-card a { color: var(--primary); }
.contact-card a:hover { text-decoration: underline; }
@media (min-width: 768px) {
    .contact-card { padding: 1.5rem; }
    .contact-card h3 { font-size: 1rem; margin-bottom: 0.75rem; }
}

/* Address */
.address {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    font-size: 0.9375rem;
    flex-wrap: wrap;
    text-align: center;
}

/* Map */
.map-container {
    border-radius: 0.5rem;
    overflow: hidden;
    margin-bottom: 1.5rem;
}
.map-container iframe {
    width: 100%;
    height: 250px;
    display: block;
}
@media (min-width: 768px) {
    .map-container iframe { height: 350px; }
    .address { margin-bottom: 2rem; }
    .map-container { margin-bottom: 2rem; }
}

/* ═══════════════════════════════════════
   Footer
   ═══════════════════════════════════════ */
.footer {
    margin-top: auto;
    border-top: 1px solid var(--border);
    background: var(--bg-muted);
    padding: 2rem 1rem;
    font-size: 0.8125rem;
    color: var(--text-muted);
}
.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    text-align: center;
}
.footer-col h4 {
    font-weight: 600;
    color: var(--text);
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
}
.footer-col a {
    display: block;
    margin-bottom: 0.25rem;
    transition: color 0.2s;
}
.footer-col a:hover { color: var(--primary); }
.footer-center { text-align: center; }
.footer-right { text-align: center; }
.footer-copyright {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
    text-align: center;
}
@media (min-width: 768px) {
    .footer { padding: 2.5rem 1rem; font-size: 0.875rem; }
    .footer-grid { grid-template-columns: repeat(3, 1fr); text-align: left; }
    .footer-center { text-align: center; }
    .footer-right { text-align: right; }
    .footer-copyright { margin-top: 2rem; }
}

/* ═══════════════════════════════════════
   Admin styles
   ═══════════════════════════════════════ */
.admin-login {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-muted);
    padding: 1rem;
}
.admin-login-box {
    background: white;
    border: 1px solid var(--border);
    border-radius: 0.75rem;
    padding: 2rem;
    width: 100%;
    max-width: 24rem;
}
.admin-login-box h1 {
    font-size: 1.25rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 0.25rem;
}
.admin-login-box .subtitle {
    text-align: center;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    font-size: 0.875rem;
}
@media (min-width: 480px) {
    .admin-login-box { padding: 2.5rem; }
    .admin-login-box h1 { font-size: 1.5rem; }
}

/* ── Admin layout ── */
.admin-layout {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}
.admin-sidebar {
    width: 100%;
    background: #111827;
    color: white;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
}

/* Logo area */
.admin-sidebar-header {
    padding: 1.25rem 1.25rem 1rem;
    border-bottom: 1px solid #1f2937;
}
.admin-sidebar-header .brand {
    font-size: 0.9rem;
    font-weight: 700;
    color: #f9fafb;
    letter-spacing: 0.01em;
    line-height: 1.3;
}
.admin-sidebar-header .brand span {
    display: block;
    font-size: 0.7rem;
    font-weight: 400;
    color: #6b7280;
    margin-top: 0.1rem;
    letter-spacing: 0.02em;
}

/* Nav */
.admin-sidebar nav {
    display: flex;
    flex-wrap: wrap;
    flex: 1;
    padding: 0.5rem 0;
}
.admin-sidebar nav a,
.admin-sidebar nav a.nav-item {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.5rem 1.1rem;
    font-size: 0.8125rem;
    color: #9ca3af;
    text-decoration: none;
    transition: background 0.15s, color 0.15s;
    border-left: 2px solid transparent;
    border-radius: 0;
}
.admin-sidebar nav a:hover,
.admin-sidebar nav a.nav-item:hover {
    background: #1f2937;
    color: #e5e7eb;
    border-left-color: #374151;
}
.admin-sidebar nav a.active,
.admin-sidebar nav a.nav-item.active {
    background: #172554;
    color: #93c5fd;
    border-left-color: #3b82f6;
    font-weight: 600;
}
.nav-icon {
    flex-shrink: 0;
    width: 1rem;
    height: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.7;
}
.nav-icon svg {
    width: 1rem;
    height: 1rem;
}
.admin-sidebar nav a.active .nav-icon,
.admin-sidebar nav a.nav-item.active .nav-icon {
    opacity: 1;
}
.nav-label {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Section labels */
.nav-section-label {
    width: 100%;
    padding: 1rem 1.25rem 0.3rem;
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #4b5563;
    pointer-events: none;
}

/* Badge */
.nav-badge {
    background: #b91c1c;
    color: #fff;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 0.1rem 0.4rem;
    border-radius: 999px;
    min-width: 1.1rem;
    text-align: center;
    line-height: 1.5;
    flex-shrink: 0;
}

/* Logout */
.admin-sidebar .logout {
    padding: 0.75rem 1.25rem 1.25rem;
    border-top: 1px solid #1f2937;
    margin-top: auto;
}
.admin-sidebar .logout a {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.8rem;
    color: #6b7280;
    text-decoration: none;
    transition: color 0.15s;
}
.admin-sidebar .logout a:hover { color: #ef4444; }

/* Content */
.admin-content {
    flex: 1;
    padding: 1.25rem;
    background: var(--bg-muted);
    min-width: 0;
}
.admin-content h2 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

/* Mobile toggle */
.admin-mobile-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1.25rem;
    cursor: pointer;
    background: #111827;
    border-bottom: 1px solid #1f2937;
}
.admin-mobile-toggle span {
    font-size: 0.85rem;
    font-weight: 600;
    color: #f9fafb;
}
.admin-mobile-toggle svg {
    width: 1.2rem;
    height: 1.2rem;
    stroke: #9ca3af;
    transition: transform 0.2s;
}
.admin-sidebar.nav-open .admin-mobile-toggle svg { transform: rotate(180deg); }
.admin-sidebar nav { display: none; }
.admin-sidebar.nav-open nav { display: flex; }
.admin-sidebar .logout { display: none; }
.admin-sidebar.nav-open .logout { display: block; }

@media (min-width: 768px) {
    .admin-layout { flex-direction: row; }
    .admin-sidebar {
        width: 220px;
        min-height: 100vh;
        position: sticky;
        top: 0;
        height: 100vh;
        overflow-y: auto;
    }
    .admin-mobile-toggle { display: none; }
    .admin-sidebar nav {
        display: flex;
        flex-direction: column;
        flex-wrap: nowrap;
        padding: 0.75rem 0;
    }
    .admin-sidebar nav a,
    .admin-sidebar nav a.nav-item {
        padding: 0.5rem 1.1rem;
        font-size: 0.8125rem;
    }
    .admin-sidebar .logout { display: block; }
    .admin-content {
        padding: 2rem;
    }
    .admin-content h2 { font-size: 1.5rem; margin-bottom: 1.5rem; }
}

/* ═══════════════════════════════════════
   Forms
   ═══════════════════════════════════════ */
.form-group {
    margin-bottom: 1rem;
}
.form-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 0.25rem;
}
.form-control {
    width: 100%;
    border: 1px solid var(--border);
    border-radius: 0.375rem;
    padding: 0.625rem 0.75rem;
    font-size: 1rem; /* Prevents iOS zoom */
    font-family: inherit;
    -webkit-appearance: none;
    appearance: none;
}
.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(153, 27, 27, 0.1);
}
textarea.form-control { resize: vertical; }
@media (min-width: 768px) {
    .form-control { font-size: 0.875rem; }
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
}
@media (min-width: 640px) {
    .form-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
}

/* Bilingual column visual separator */
.bilingual-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}
@media (min-width: 768px) {
    .bilingual-grid {
        grid-template-columns: 1fr 1fr;
        gap: 1.5rem;
    }
}
.bilingual-col {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
.lang-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    margin-bottom: 0.25rem;
}
.lang-badge.cs { background: #dbeafe; color: #1d4ed8; border: 1px solid #bfdbfe; }
.lang-badge.en { background: #d1fae5; color: #065f46; border: 1px solid #a7f3d0; }
.bilingual-col.cs-col { border-left: 3px solid #bfdbfe; padding-left: 0.75rem; }
.bilingual-col.en-col { border-left: 3px solid #a7f3d0; padding-left: 0.75rem; }

/* ═══════════════════════════════════════
   Alerts
   ═══════════════════════════════════════ */
.alert {
    padding: 0.75rem 1rem;
    border-radius: 0.375rem;
    margin-bottom: 1rem;
    font-size: 0.875rem;
}
.alert-success { background: #dcfce7; color: #166534; }
.alert-error { background: #fee2e2; color: #991b1b; }

/* ═══════════════════════════════════════
   Admin list items
   ═══════════════════════════════════════ */
.admin-list-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    background: white;
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    padding: 1rem;
    margin-bottom: 0.5rem;
}
.admin-list-item .title { font-weight: 500; }
.admin-list-item .meta { font-size: 0.8125rem; color: var(--text-muted); }
.admin-list-item .actions { display: flex; gap: 0.75rem; }
.admin-list-item .actions a {
    font-size: 0.8125rem;
    font-weight: 500;
}
.admin-list-item .actions .edit { color: #2563eb; }
.admin-list-item .actions .edit:hover { text-decoration: underline; }
.admin-list-item .actions .delete { color: #dc2626; }
.admin-list-item .actions .delete:hover { text-decoration: underline; }
@media (min-width: 480px) {
    .admin-list-item {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        padding: 1rem 1.25rem;
    }
}

/* ═══════════════════════════════════════
   Utility
   ═══════════════════════════════════════ */
.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }
.text-primary { color: var(--primary); }
.text-sm { font-size: 0.875rem; }
.italic { font-style: italic; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-8 { margin-bottom: 2rem; }
.mt-4 { margin-top: 1rem; }
.mt-8 { margin-top: 2rem; }
.max-w-3xl { max-width: 48rem; margin-left: auto; margin-right: auto; }
.max-w-2xl { max-width: 42rem; margin-left: auto; margin-right: auto; }
.max-w-4xl { max-width: 56rem; margin-left: auto; margin-right: auto; }
.space-y-4 > * + * { margin-top: 1rem; }
.space-y-8 > * + * { margin-top: 2rem; }
.main-content { flex: 1; }

/* ═══════════════════════════════════════
   RICH TEXT EDITOR (simple toolbar)
   ═══════════════════════════════════════ */
.rte-wrapper { border: 1px solid #d1d5db; border-radius: 6px; overflow: hidden; }
.rte-toolbar {
    display: flex; gap: 2px; padding: 0.35rem 0.5rem;
    background: #f9fafb; border-bottom: 1px solid #e5e7eb; flex-wrap: wrap;
}
.rte-toolbar button {
    background: none; border: 1px solid transparent; border-radius: 4px;
    padding: 0.2rem 0.45rem; font-size: 0.82rem; cursor: pointer; color: #374151;
    line-height: 1; font-family: inherit;
}
.rte-toolbar button:hover { background: #e5e7eb; border-color: #d1d5db; }
.rte-toolbar button.active { background: #dbeafe; border-color: #93c5fd; color: #1d4ed8; }
.rte-toolbar .sep { width: 1px; background: #e5e7eb; margin: 2px 3px; }
.rte-editor {
    min-height: 120px; padding: 0.6rem 0.75rem; outline: none;
    font-size: 0.875rem; line-height: 1.6; color: #111827;
    background: #fff;
}
.rte-editor:focus { box-shadow: inset 0 0 0 2px #3b82f6; }
.rte-editor ul, .rte-editor ol { padding-left: 1.5rem; }
.rte-editor strong { font-weight: 700; }
.rte-editor em { font-style: italic; }

/* ═══════════════════════════════════════
   SCROLL ANIMATIONS
   ═══════════════════════════════════════ */

/* Elements marked for scroll animation start hidden */
.scroll-reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}
.scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}
/* Stagger variants */
.scroll-reveal[data-delay="1"] { transition-delay: 0.1s; }
.scroll-reveal[data-delay="2"] { transition-delay: 0.2s; }
.scroll-reveal[data-delay="3"] { transition-delay: 0.3s; }
.scroll-reveal[data-delay="4"] { transition-delay: 0.4s; }
.scroll-reveal[data-delay="5"] { transition-delay: 0.5s; }

/* Respect reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    .scroll-reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* ═══════════════════════════════════════
   PRINT STYLES
   ═══════════════════════════════════════ */
@media print {
    /* Hide non-essential elements */
    .header, .mobile-toggle, .mobile-nav,
    .cookie-banner, #cookieBanner,
    .page-hero .hero-overlay,
    .btn, footer nav,
    script, style { display: none !important; }

    body { font-size: 11pt; color: #000; background: #fff; }

    a { color: #000; text-decoration: none; }
    a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 9pt; color: #555; }
    a[href^="mailto"]::after { content: " (" attr(href) ")"; font-size: 9pt; }
    a[href^="tel"]::after { content: " (" attr(href) ")"; font-size: 9pt; }

    .page-hero {
        min-height: 0 !important;
        padding: 1rem 0 !important;
        background: none !important;
        color: #000 !important;
    }
    .page-hero h1 { font-size: 18pt; color: #000; }
    .page-hero p  { color: #333; }
    .hero-bg img  { display: none; }

    .section { padding: 1rem 0; }
    .container { max-width: 100%; padding: 0; }
    .card { border: 1px solid #ccc; box-shadow: none; break-inside: avoid; }

    .contact-grid { grid-template-columns: 1fr !important; }
    .contact-map  { display: none !important; }

    /* Show contact details prominently */
    .contact-info-box { border: 1px solid #000; padding: 1rem; }

    footer {
        border-top: 1px solid #ccc;
        padding: 1rem 0;
        font-size: 9pt;
        color: #555;
    }
    footer .footer-brand,
    footer .footer-bottom { display: block; }
}
