@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

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

header {
    position: sticky;
    top: 0;
    z-index: 100;
    width: 100%;
    border-bottom: 1px solid rgba(229, 231, 235, 0.8);
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(14px);
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
}

body {
    font-family: 'Inter', 'Segoe UI', Arial, sans-serif;
    background:
        radial-gradient(circle at top left, rgba(34, 197, 94, 0.14), transparent 28%),
        radial-gradient(circle at bottom right, rgba(16, 185, 129, 0.12), transparent 30%),
        linear-gradient(135deg, #f8fcf9 0%, #f4fff7 100%);
    color: #111827;
    line-height: 1.6;
    position: relative;
    overflow-x: hidden;
    padding-bottom: 0;
}

html {
    overflow-x: hidden;
}

body::before,
body::after {
    content: '';
    position: fixed;
    width: 320px;
    height: 320px;
    border-radius: 50%;
    filter: blur(70px);
    opacity: 0.18;
    pointer-events: none;
    z-index: -1;
}

body::before {
    top: -60px;
    left: -80px;
    background: #86efac;
}

body::after {
    right: -70px;
    bottom: -90px;
    background: #4ade80;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 22px 60px;
    min-height: 84px;
    max-width: 1200px;
    margin: auto;
    gap: 24px;
}

.nav {
    display: flex;
    gap: 20px;
    list-style: none;
    align-items: center;
    flex-wrap: wrap;
}

.nav a {
    padding: 8px 10px;
    border-radius: 999px;
    transition: background 0.2s ease, color 0.2s ease;
}

.nav a:hover {
    background: #f0fdf4;
    color: #16a34a;
}

.nav a:focus-visible {
    background: #ecfdf3;
    color: #166534;
}

.nav a.active {
    background: #dcfce7;
    color: #15803d;
}

.nav-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: 1px solid #bbf7d0;
    border-radius: 50%;
    background: #dcfce7;
    color: #166534;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(22, 163, 74, 0.14);
}

.nav-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    border-radius: 2px;
    background: currentColor;
    position: relative;
    transition: background-color 0.2s ease;
}

.nav-toggle span::before,
.nav-toggle span::after {
    content: '';
    position: absolute;
    left: 0;
    width: 20px;
    height: 2px;
    border-radius: 2px;
    background: currentColor;
    transition: transform 0.25s ease;
}

.nav-toggle span::before {
    top: -6px;
}

.nav-toggle span::after {
    top: 6px;
}

.nav-toggle.active span {
    background: transparent;
}

.nav-toggle.active span::before {
    transform: rotate(45deg);
    top: 0;
}

.nav-toggle.active span::after {
    transform: rotate(-45deg);
    top: 0;
}

body.menu-open {
    overflow: hidden;
}



.logo a {
    font-size: 32px;
    font-weight: 800;
    color: #15803d;
    letter-spacing: -0.03em;
    text-decoration: none;
    transition: color 0.3s ease;
    display: inline-block;
}

.logo a:hover {
    color: #23843e;
}

ul {
    display: flex;
    gap: 20px;
    list-style: none;
    align-items: center;
    flex-wrap: wrap;
}

a {
    text-decoration: none;
    color: #374151;
    font-size: 15px;
    font-weight: 600;
    transition: 0.3s ease;
}

a:hover {
    color: #16a34a;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 3px solid #22c55e;
    outline-offset: 2px;
}

button,
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 999px;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.3s ease;
    font-weight: 600;
    box-shadow: 0 10px 24px rgba(22, 163, 74, 0.2);
}

button:hover,
.button:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 28px rgba(22, 163, 74, 0.24);
    background: linear-gradient(135deg, #16a34a 0%, #15803d 100%);
    color: #ffffff;
}

a.button:hover,
a.button:focus-visible,
a.button:active {
    color: #ffffff;
}

button.is-pressed,
.button.is-pressed,
.floating-ai.is-pressed {
    transform: scale(0.98);
    box-shadow: 0 8px 18px rgba(22, 163, 74, 0.18);
}

.floating-ai {
    position: fixed;
    right: max(16px, env(safe-area-inset-right));
    bottom: max(20px, env(safe-area-inset-bottom));
    z-index: 200;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 11px;
    border-radius: 999px;
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    color: #fff;
    box-shadow: 0 10px 24px rgba(22, 163, 74, 0.24);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    animation: aiPulse 2.2s ease-in-out infinite;
    max-width: calc(100vw - 32px);
}

.floating-ai:hover,
.floating-ai.is-open {
    transform: translateY(-2px);
    box-shadow: 0 16px 36px rgba(22, 163, 74, 0.3);
    color: #fff;
    animation: none;
}

.floating-ai.is-layout-hidden {
    opacity: 0;
    pointer-events: none;
    transform: translateY(10px);
}

.ai-drawer {
    position: fixed;
    right: max(16px, env(safe-area-inset-right));
    bottom: calc(max(20px, env(safe-area-inset-bottom)) + 68px);
    width: min(380px, calc(100vw - 32px));
    max-height: min(70vh, 620px);
    padding: 16px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.97);
    border: 1px solid #d1fae5;
    box-shadow: 0 20px 44px rgba(15, 23, 42, 0.14);
    display: flex;
    flex-direction: column;
    gap: 8px;
    overflow: hidden;
    transform: translateY(12px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease;
    z-index: 220;
}

.ai-drawer.is-open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.ai-drawer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #111827;
    flex: 0 0 auto;
    min-width: 0;
}

.ai-drawer-close {
    border: none;
    background: transparent;
    color: #6b7280;
    font-size: 22px;
    cursor: pointer;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    box-shadow: none;
}

.ai-drawer-close:hover,
.ai-drawer-close:focus-visible {
    background: #f0fdf4;
    color: #166534;
}

.ai-drawer-welcome {
    margin: 0;
    color: #4b5563;
    font-size: 0.9rem;
    line-height: 1.6;
    flex: 0 0 auto;
}

.ai-drawer-response {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    min-height: 0;
    overflow: hidden;
    border: 1px solid #dcfce7;
    border-radius: 14px;
    padding: 10px;
    background: #f9fefb;
}

.ai-drawer-response .ai-response-status {
    margin-bottom: 8px;
}

.ai-drawer-transcript {
    max-height: 230px;
    min-height: 0;
    flex: 1 1 auto;
    overflow-y: auto;
    padding-right: 4px;
}

.ai-drawer-transcript .ai-response-message.is-assistant .ai-markdown-body p {
    margin: 0 0 16px;
}

.ai-drawer-transcript .ai-response-message.is-assistant .ai-markdown-body p:last-child {
    margin-bottom: 0;
}

.ai-drawer-transcript .ai-response-message.is-assistant .ai-markdown-body ul,
.ai-drawer-transcript .ai-response-message.is-assistant .ai-markdown-body ol {
    margin: 0 0 18px 22px;
    padding-left: 0;
    list-style-position: outside;
}

.ai-drawer-transcript .ai-response-message.is-assistant .ai-markdown-body li {
    display: list-item;
    margin-bottom: 10px;
}

body.site-dark .ai-drawer-transcript .ai-response-message.is-assistant .ai-markdown-body li::marker {
    color: #7dd3fc;
    font-weight: 700;
}

body.site-dark .ai-drawer-transcript .ai-response-message.is-assistant .ai-markdown-body strong {
    color: #f8fafc;
    font-weight: 700;
}

.ai-drawer-form {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    flex: 0 0 auto;
    min-width: 0;
}

.ai-drawer-form .ai-assistant-feedback {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 8px 10px;
    justify-self: stretch;
    line-height: 1.35;
}

.ai-drawer-label {
    font-size: 0.85rem;
    font-weight: 700;
    color: #166534;
}

.ai-drawer-form textarea {
    width: 100%;
    min-height: 84px;
    resize: vertical;
    max-height: 30vh;
    margin-bottom: 0;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 10px 12px;
    font: inherit;
    background: #fff;
}

.ai-drawer-form button[type="submit"] {
    width: auto;
    justify-self: end;
    padding: 10px 16px;
}

.ai-drawer-link {
    width: 100%;
    justify-content: center;
    padding: 10px 16px;
    flex: 0 0 auto;
}

@keyframes aiPulse {

    0%,
    100% {
        transform: scale(1);
        box-shadow: 0 12px 30px rgba(22, 163, 74, 0.25);
    }

    50% {
        transform: scale(1.03);
        box-shadow: 0 14px 34px rgba(22, 163, 74, 0.32);
    }
}

.floating-ai-icon {
    font-size: 20px;
}

.floating-ai-text {
    font-size: 14px;
    font-weight: 700;
}

.hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: 1180px;
    margin: 28px auto 24px;
    padding: 24px 20px 0;
}

.hero-container,
.page-hero-container,
.ai-container-box,
.sumbit-container {
    position: relative;
}

.hero-container,
.page-hero-container {
    max-width: 960px;
    width: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.97), rgba(247, 254, 249, 0.95));
    border: 1px solid rgba(187, 247, 208, 0.95);
    border-radius: 32px;
    padding: 48px 32px;
    box-shadow: 0 24px 70px rgba(15, 23, 42, 0.08);
}

.page-hero-container {
    margin: 0 auto;
    text-align: center;
}

.hero-container>*,
.page-hero-container>*,
.ai-container-box>*,
.sumbit-container>* {
    position: relative;
    z-index: 1;
}

.hero h1 {
    max-width: 900px;
    margin: 0 auto 18px;
    font-size: clamp(2.3rem, 5vw, 4rem);
    line-height: 1.05;
    letter-spacing: -0.03em;
    color: #111827;
}

.hero-copy {
    margin: 0 auto 24px;
    max-width: 760px;
    font-size: 1.08rem;
    color: #4b5563;
    line-height: 1.7;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 32px;
}

.journey-details-body .database-detail-link {
    margin: 8px 8px 0 0;
}

.content-expired-note {
    margin: 0 0 10px;
    padding: 10px 12px;
    border-radius: 10px;
    background: rgba(220, 38, 38, 0.14);
    border: 1px solid rgba(248, 113, 113, 0.3);
    color: #fecaca;
    font-weight: 600;
}

.content-detail-page {
    max-width: 980px;
}

.content-detail-root {
    width: 100%;
}

.content-detail-card {
    max-width: 920px;
    margin: 0 auto;
    display: grid;
    gap: 16px;
}

.content-detail-header h1 {
    margin: 8px 0 8px;
}

.content-detail-intro {
    color: #cbd5e1;
}

.content-detail-image {
    width: 100%;
    max-height: 420px;
    object-fit: cover;
    border-radius: 16px;
    border: 1px solid #334155;
}

.content-detail-body {
    display: grid;
    gap: 14px;
}

.content-detail-body p {
    color: #d4d4d8;
    line-height: 1.75;
}

.content-detail-section h2 {
    margin-bottom: 8px;
    font-size: clamp(1.35rem, 3vw, 1.7rem);
}

body.site-dark.about-page .mission-card h2,
body.site-dark.about-page .feature-card h3,
body.site-dark.about-page .ai-box h2,
body.site-dark .content-detail-page .content-detail-section h2,
body.site-dark .content-detail-page .content-detail-body :is(h2, h3, h4),
body.site-dark .content-detail-page .content-detail-section-heading {
    color: #f1dfa6;
}

body.site-dark .content-detail-page .content-detail-section-heading {
    font-weight: 700;
}

.content-detail-meta {
    display: grid;
    gap: 8px;
}

.content-detail-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.hero-buttons .button {
    min-width: 180px;
    padding: 14px 26px;
}

.hero-tags {
    margin-top: 24px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px 18px;
    flex-wrap: wrap;
    color: #4b5563;
}

.hero-tags span,
.hero-tags a {
    font-size: 15px;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid #e5e7eb;
    padding: 8px 14px;
    border-radius: 999px;
}

.hero-tags a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #4b5563;
}

.hero-tags a:hover {
    color: #16a34a;
    border-color: #bbf7d0;
}

.hero-tags svg {
    width: 18px;
    height: 18px;

    color: #16a34a;

}

@media (max-width: 600px) {
    .hero-tags {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        align-items: stretch;
        gap: 12px;
        width: 100%;
    }

    .hero-tags a {
        box-sizing: border-box;
        justify-content: center;
        min-width: 0;
        min-height: 48px;
        padding: 10px 8px;
        text-align: center;
        white-space: nowrap;
    }
}

.features {
    max-width: 1180px;
    margin: 0 auto;
    padding: 64px 24px 28px;
}

.features h2 {
    font-size: 32px;
    margin-bottom: 24px;
    color: #111827;
    text-align: center;
    font-weight: 800;
}

.container-grid {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.feature-card {
    position: relative;
    padding: 28px;
    border: 1px solid #e5e7eb;
    border-radius: 22px;
    text-align: left;
    background: rgba(255, 255, 255, 0.95);
    min-height: 220px;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.04);
    overflow: hidden;
}

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

.mission-card {
    max-width: 900px;
    margin: 0 auto;
    padding: 36px;
    border-radius: 24px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(247, 254, 249, 0.96));
    border: 1px solid rgba(187, 247, 208, 0.95);
    box-shadow: 0 20px 48px rgba(15, 23, 42, 0.06);
    text-align: center;
}

.mission-icon {
    font-size: 34px;
    margin-bottom: 14px;
}

.mission-card h2 {
    margin-bottom: 14px;
    font-size: 32px;
    color: #111827;
}

.mission-card p {
    font-size: 17px;
    color: #4b5563;
    line-height: 1.8;
}

.mission-points {
    margin-top: 20px;
    display: grid;
    gap: 12px;
    text-align: left;
}

.mission-points p {
    padding: 12px 14px;
    border-radius: 12px;
    background: #f0fdf4;
    border: 1px solid #dcfce7;
    color: #166534;
    font-weight: 600;
}

.feature-card::before {
    content: '';
    position: absolute;
    inset: 0 0 auto 0;
    height: 3px;
    background: linear-gradient(90deg, #22c55e, #86efac);
    transform: scaleX(0.7);
    transform-origin: left;
    transition: transform 0.25s ease;
}

.feature-card:hover,
.feature-card.is-hovered {
    transform: translateY(-4px);
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.08);
    border-color: #16a34a;
}

.feature-card:hover::before,
.feature-card.is-hovered::before {
    transform: scaleX(1);
}

.opportunity-card:hover,
.opportunity-card.is-hovered,
.news-card:hover,
.news-card.is-hovered {
    transform: translateY(-4px);
    border-color: #16a34a;
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.08);
}

.feature-card h3 {
    font-size: 22px;
    margin-bottom: 12px;
    color: #111827;
}

body.site-dark .hero :is(.feature-card, .step-card, .opportunity-card)>h3,
body.site-dark .hero :is(.feature-card, .step-card, .opportunity-card)>h3 a:link,
body.site-dark .hero :is(.feature-card, .step-card, .opportunity-card)>h3 a:visited,
body.site-dark .hero :is(.feature-card, .step-card, .opportunity-card)>h3 a:hover,
body.site-dark .hero :is(.feature-card, .step-card, .opportunity-card)>h3 a:active {
    color: #f4f4f5;
}

.feature-card p {
    color: #6b7280;
    font-size: 16px;
    line-height: 1.6;
}



.feature-card svg {
    width: 28px;
    height: 28px;
    color: #15803d;
    margin-bottom: 18px;
}



.opportunities {
    max-width: 1180px;
    margin: 0 auto;
    padding: 64px 24px 28px;
    text-align: center;
}

.opportunities h2 {
    font-size: 32px;
    margin-bottom: 10px;
    font-weight: 800;
}

.section-subtitle {
    color: #6b7280;
    margin-bottom: 28px;
    font-size: 17px;
}

.opportunities-container {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.opportunity-card {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid #e5e7eb;
    border-radius: 24px;
    padding: 28px;
    text-align: left;
    transition: all 0.3s ease;
    min-height: 260px;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.04);
}

.opportunity-card:hover {
    transform: translateY(-4px);
    border-color: #16a34a;
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.08);
}

.opportunity-card h3 {
    margin-bottom: 12px;
    color: #111827;
}

.opportunity-card p {
    color: #6b7280;
    margin-bottom: 20px;

}

.opportunity-card a {
    color: #16a34a;
    text-decoration: none;
    font-weight: 600;
}


.apply-btn {
    display: inline-block;
    margin-top: 20px;
    padding: 10px 20px;
    background: #22c55e;
    color: #ffffff;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.3s ease, transform 0.2s ease;
}

.apply-btn:hover {
    background: #15803d;
    color: #ffffff;
    transform: translateY(-2px);
}



.news {
    max-width: 1180px;
    margin: 0 auto;
    padding: 64px 24px 28px;
    text-align: center;
}

.news h2 {
    font-size: 32px;
    margin-bottom: 10px;
    font-weight: 800;
}

.news-container {
    max-width: 1100px;
    margin: 28px auto 0;
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 24px;
}

.news-card {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid #e5e7eb;
    border-radius: 24px;
    padding: 28px;
    text-align: left;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.04);
}

.news-card:hover {
    transform: translateY(-4px);
    border-color: #16a34a;
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.08);
}

.news-card h3 {
    margin: 16px 0 12px;
    color: #111827;
}

.news-card p {
    color: #6b7280;
    margin-bottom: 20px;
}

.news-card a {
    color: #16a34a;
    text-decoration: none;
    font-weight: 600;
}

body.site-dark .news-card h2,
body.site-dark .news-card h3,
body.site-dark[data-content-category="maqaalo"] .opportunity-list-card h3 {
    color: #f4f4f5;
}

body.site-dark .news-card h2 a:link,
body.site-dark .news-card h2 a:visited,
body.site-dark .news-card h2 a:hover,
body.site-dark .news-card h2 a:active,
body.site-dark .news-card h3 a:link,
body.site-dark .news-card h3 a:visited,
body.site-dark .news-card h3 a:hover,
body.site-dark .news-card h3 a:active,
body.site-dark[data-content-category="maqaalo"] .opportunity-list-card h3 a:link,
body.site-dark[data-content-category="maqaalo"] .opportunity-list-card h3 a:visited,
body.site-dark[data-content-category="maqaalo"] .opportunity-list-card h3 a:hover,
body.site-dark[data-content-category="maqaalo"] .opportunity-list-card h3 a:active {
    color: #f4f4f5;
}

.news-all-link {
    margin-top: 24px;
}

.home-articles-empty {
    grid-column: 1 / -1;
    color: #a1a1aa;
}


.ai-preview {
    max-width: 1180px;
    margin: 0 auto;
    padding: 64px 24px 28px;
}

.ai-container-box {
    max-width: 1000px;
    margin: 0 auto;
    background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf3 100%);
    border: 1px solid #bbf7d0;
    border-radius: 32px;
    padding: 56px 32px;
    text-align: center;
    box-shadow: 0 16px 40px rgba(22, 163, 74, 0.08);
}



.ai-box h2 {
    font-size: 42px;
    margin: 16px 0;
    color: #111827;
}



.ai-box p {
    max-width: 650px;
    margin: 0 auto 32px;
    color: #4b5563;
    font-size: 18px;
    line-height: 1.6;
}



.ai-search {
    max-width: 700px;
    margin: 0 auto;
    display: flex;
    gap: 12px;
    background: white;
    padding: 10px;
    border-radius: 16px;
    border: 1px solid #d1fae5;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.04);
    align-items: center;
}

.ai-search input {
    flex: 1;
    border: none;
    outline: none;
    padding: 14px;
    font-size: 16px;
    background: transparent;
}

.ai-search input::placeholder {
    color: #9ca3af;
    transition: color 0.2s ease;
}

.ai-search input.has-text::placeholder {
    color: #6b7280;
}

.ai-search button {
    background: #15803d;
    color: white;
    border: none;
    padding: 14px 28px;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
}

.ai-search textarea {
    flex: 1;
    min-height: 110px;
    border: none;
    outline: none;
    padding: 14px;
    font: inherit;
    color: #111827;
    background: transparent;
    resize: vertical;
}

.search-clear {
    display: none;
    border: none;
    background: #f3f4f6;
    color: #6b7280;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    line-height: 1;
}

.search-clear.is-visible {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}



.ai-examples {
    margin-top: 24px;
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}



.ai-examples span,
.ai-example-btn {

    background: white;
    border: 1px solid #d1fae5;
    padding: 10px 14px;
    border-radius: 999px;
    color: #15803d;
    font-size: 14px;
}

.ai-example-btn {
    cursor: pointer;
    font-weight: 600;
}

.ai-example-btn:hover {
    border-color: #86efac;
}

.tag {
    display: inline-block;
    background: #dcfce7;
    color: #15803d;
    padding: 8px 14px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 600;
}

.questions-section {
    max-width: 1180px;
    margin: 0 auto;
    padding: 64px 24px 28px;
    text-align: center;
}



.questions-section h2 {
    font-size: 32px;
    color: #111827;
    margin-bottom: 16px;
    font-weight: 800;
}



.questions-section>p {
    font-size: 18px;
    color: #6b7280;
    margin-bottom: 40px;
}



.questions-grid {
    max-width: 900px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.question-card {
    border: 1px solid #e5e7eb;
    border-radius: 18px;
    padding: 22px;
    font-size: 16px;
    font-weight: 600;
    color: #111827;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.03);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.question-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.06);
}

.question-card.is-hovered {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.06);
}

.sumbit-opportunity {
    max-width: 1180px;
    margin: 0 auto;
    padding: 64px 24px 24px;
}

.sumbit-container {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid #e5e7eb;
    border-radius: 28px;
    padding: 38px 24px;
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.05);
}

.sumbit-container h2 {
    font-size: 28px;
    margin-bottom: 8px;
}

.sumbit-container p {
    color: #6b7280;
    margin-bottom: 18px;
}

footer {
    padding: 28px 8px 36px;
    margin-top: 24px;
    border-top: 1px solid #e5e7eb;
}

.footer-container {
    max-width: 1100px;
    margin: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

.footer-links {
    display: flex;
    gap: 22px;
    flex-wrap: wrap;
}

.footer-links a {
    text-decoration: none;
    color: #4b5563;
    font-size: 15px;
    font-weight: 500;
}

.footer-links a:hover {
    color: #16a34a;
}



.page-hero {
    padding: 56px 80px;
    text-align: center;
}

.page-hero h1 {
    font-size: 52px;
    margin-bottom: 16px;
    line-height: 1.1;
    max-width: 800px;
    margin: 0 auto 20px;
}

.page-hero p {
    font-size: 20px;
    color: #6b7280;
}



.filter {
    padding: 20px 80px 60px;

}

.filters-container {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

input {
    width: 100%;
    max-width: 600px;
    padding: 18px 24px;
    border: 1px solid black;
    border-radius: 16px;
    font-size: 16px;
    margin-bottom: 24px;

}


.filters-buttons {
    display: flex;
    justify-content: center;
    gap: 10px 12px;
    flex-wrap: wrap;
    padding: 8px 10px;
    border-radius: 16px;
    font-weight: 600;
    width: 100%;
    max-width: 100%;
}

.filters-buttons :hover {
    border-color: #16a34a;
    color: inherit;

}

.filter-btn.active {

    background: #15803d;

    color: white;

}

.filter-btn {

    cursor: pointer;

    transition: 0.3s ease;
    white-space: normal;
    text-align: center;
    line-height: 1.3;
    min-height: 44px;

}

.filter-btn[aria-pressed="true"] {
    box-shadow: 0 10px 24px rgba(22, 163, 74, 0.18);
}

.filter-btn:hover {

    background: #16a34a;
    color: #ffffff;

}

.filter-btn:focus-visible,
.filter-btn:active,
.filter-btn[aria-pressed="true"] {
    color: #ffffff;
}

.filter-btn:focus-visible {
    background: #15803d;
}

body.has-floating-ai {
    padding-bottom: calc(132px + env(safe-area-inset-bottom));
}

.opportunity-list {
    padding: 24px 80px 56px;
}

.opportunity-list-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 380px));
    gap: 24px;
    width: 100%;
    justify-content: center;
    align-items: start;
}


.opportunity-list-card {
    max-width: 380px;
    width: 100%;
    min-width: 0;
    height: auto;
    align-self: start;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 18px;
    padding: 24px;
    box-shadow: 0 4px 18px rgba(15, 23, 42, 0.08);
    transition: 0.3s ease;
}

.opportunity-list-card:hover {
    transform: translateY(-5px);
    border-color: #16a34a;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
}

.opportunity-list-card h3 {
    margin: 14px 0;
    font-size: 1.3rem;
    line-height: 1.35;
    font-weight: 700;
}

.opportunity-list-card p {
    color: #6b7280;
    margin-bottom: 16px;
    line-height: 1.55;
}

.opportunity-list-card a {
    display: inline-block;
    margin-top: 12px;
    background: #16a34a;
    color: white;
    font-weight: 600;
    text-decoration: none;
    padding: 10px 18px;
    border-radius: 10px;
}

.journey-details {
    margin-top: 10px;
    border-top: 1px solid #e5e7eb;
    padding-top: 10px;
}

.journey-details summary {
    cursor: pointer;
    color: #166534;
    font-weight: 700;
    list-style: none;
}

.journey-details summary::-webkit-details-marker {
    display: none;
}

.journey-details summary::after {
    content: "+";
    float: right;
    color: #16a34a;
}

.journey-details[open] summary::after {
    content: "-";
}

.journey-details-body {
    padding-top: 10px;
}

body[data-content-category="fursado"] .journey-details-body .opportunity-detail-section+.opportunity-detail-section,
body[data-content-category="waxbarasho"] .journey-details-body .opportunity-detail-section+.opportunity-detail-section {
    margin-top: 14px;
}

body[data-content-category="fursado"] .journey-details-body .opportunity-detail-section h4,
body[data-content-category="waxbarasho"] .journey-details-body .opportunity-detail-section h4 {
    margin: 0 0 7px;
}

body[data-content-category="fursado"] .journey-details-body .opportunity-detail-section p,
body[data-content-category="waxbarasho"] .journey-details-body .opportunity-detail-section p {
    margin: 0 0 7px;
}

.journey-details .database-detail-link {
    margin-top: 10px;
}

.database-detail-link.is-disabled {
    background: #9ca3af;
    color: #ffffff;
    pointer-events: none;
}

.featured-list-opportunity {
    max-width: 1100px;
    margin: 40px auto;
    padding: 0 20px;
}

.featured-list-card {
    background: #f0fdf4;
    border: 2px solid #bbf7d0;
    border-radius: 24px;
    padding: 28px;
    max-width: 1100px;
    margin: 0 auto;
    min-height: auto;
}

.card-meta {
    display: flex;
    gap: 8px;
    align-items: center;
    color: #6b7280;
    margin-bottom: 12px;
    font-size: 15px;
}

body[data-content-category="fursado"] .fursado-card-meta {
    min-width: 0;
    overflow-wrap: anywhere;
}

body[data-content-category="fursado"] .opportunity-list-card:has(> .journey-details[open]) .fursado-closed-meta {
    display: none;
}

body[data-content-category="waxbarasho"] .waxbarasho-closed-deadline {
    min-width: 0;
    overflow-wrap: anywhere;
}

body[data-content-category="waxbarasho"] .opportunity-list-card:has(> .journey-details[open]) .waxbarasho-closed-deadline {
    display: none;
}

.card-meta svg {
    width: 18px;
    height: 18px;
    color: #16a34a;
    flex-shrink: 0;

}

.featured-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #dcfce7;
    color: #166534;
    padding: 6px 14px;
    border-radius: 999px;
    margin-bottom: 20px;
    font-weight: 600;
}

.opportunity-list-card .featured-badge {
    padding: 4px 10px;
    margin-bottom: 8px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.01em;
}

.featured-list-card p {
    color: #6b7280;
    margin-bottom: 12px;

}

.featured-list-card a {
    display: inline-block;
    margin-top: 16px;
    background: #16a34a;
    color: white;
    text-decoration: none;
    padding: 12px 20px;
    border-radius: 10px;
    font-weight: 600;


}



.section-heading {
    text-align: center;
    margin-bottom: 48px;
}

.section-heading h2 {
    font-size: 42px;
    color: #111827;
}

.section-heading p {
    font-size: 18px;
    color: #6b7280;
}

.filter-empty-message {
    max-width: 1100px;
    margin: 20px auto 0;
    padding: 14px 16px;
    border-radius: 16px;
    background: #f9fafb;
    border: 1px dashed #bbf7d0;
    color: #166534;
    font-weight: 600;
    text-align: center;
}

.content-state {
    max-width: 1100px;
    margin: 0 auto;
    padding: 18px 20px;
    border-radius: 16px;
    border: 1px solid #d1fae5;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(240, 253, 244, 0.92));
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
    text-align: center;
    color: #166534;
    font-weight: 600;
}

.content-state.is-error {
    border-color: #fecaca;
    background: #fff1f2;
    color: #b91c1c;
}

.content-state.is-loading {
    color: #475569;
}

.ai-box {

    max-width: 800px;

    margin: 0 auto;

}

.ai-box h2 {

    font-size: 42px;

    color: #111827;

    margin: 16px 0;

}

.ai-box p {

    font-size: 18px;

    line-height: 1.7;

    color: #6b7280;

    margin-bottom: 32px;

}

.footer-container p {
    color: #6b7280;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 24px;
}

.step-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.97), rgba(247, 254, 249, 0.95));
    border: 1px solid rgba(187, 247, 208, 0.95);
    border-radius: 24px;
    padding: 24px;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.06);
}

.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 999px;
    background: #dcfce7;
    color: #166534;
    font-weight: 700;
    margin-bottom: 14px;
}

.step-card h3 {
    font-size: 20px;
    margin-bottom: 10px;
    color: #111827;
}

.step-card p {
    color: #4b5563;
    line-height: 1.7;
}

.trust-card {
    min-height: 100%;
}

.faq-list {
    max-width: 900px;
    margin: 0 auto;
    display: grid;
    gap: 14px;
}

.faq-item {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 18px;
    padding: 18px 20px;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.04);
}

.faq-item summary {
    cursor: pointer;
    font-weight: 700;
    color: #111827;
    list-style: none;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item p {
    margin-top: 10px;
    color: #4b5563;
    line-height: 1.7;
}

.contact-section {
    padding: 32px;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 28px;
    align-items: start;
}

body.site-dark .submission-form-section .contact-form {
    width: 100%;
    max-width: 820px;
    margin: 0 auto;
}

body.site-dark .submission-form-section .submission-form-heading {
    margin: 0 0 24px;
    color: #f8fafc;
    text-align: center;
}

.contact-info {
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(187, 247, 208, 0.95);
    border-radius: 24px;
    padding: 28px;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.06);
}

.contact-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-top: 16px;
    color: #4b5563;
}

.contact-item strong {
    color: #111827;
    font-size: 15px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 24px;
    padding: 28px;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.06);
}

.contact-form label {
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-weight: 600;
    color: #374151;
}

.contact-form input,
.contact-form textarea,
.contact-form select {
    border: 1px solid #d1d5db;
    border-radius: 14px;
    padding: 14px 16px;
    font: inherit;
    color: #111827;
    background: #f9fafb;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    width: 100%;
    max-width: none;
    margin-bottom: 0;
}

.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
    outline: none;
    border-color: #22c55e;
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.16);
}

.contact-form input.is-invalid,
.contact-form textarea.is-invalid,
.contact-form select.is-invalid {
    border-color: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.12);
}

.contact-form textarea {
    min-height: 140px;
    resize: vertical;
}

.form-message {
    display: none;
    margin-top: 14px;
    border-radius: 12px;
    padding: 12px 14px;
    font-size: 0.95rem;
    font-weight: 600;
}

.form-message.is-visible {
    display: block;
}

.form-message.error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #b91c1c;
}

.form-message.info {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    color: #1d4ed8;
}

.field-error {
    margin-top: -2px;
    color: #b91c1c;
    font-size: 0.9rem;
    font-weight: 600;
}

.contact-card p {
    margin-bottom: 8px;
}

.contact-card-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    margin-bottom: 14px;
    border-radius: 16px;
    background: #f0fdf4;
    color: #16a34a;
}

.contact-card-icon svg {
    width: 24px;
    height: 24px;
}

.contact-link {
    display: inline-block;
    margin-top: 6px;
    color: #16a34a;
    font-weight: 600;
}

.site-notice {
    position: fixed;
    left: 20px;
    bottom: 20px;
    max-width: min(420px, calc(100vw - 40px));
    padding: 14px 16px;
    border-radius: 16px;
    background: rgba(17, 24, 39, 0.95);
    color: #fff;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.22);
    opacity: 0;
    transform: translateY(10px);
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
    z-index: 260;
}

.site-notice.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.ai-assistant-form {
    flex-direction: column;
    align-items: stretch;
}

.ai-assistant-form button[type="submit"] {
    width: auto;
    align-self: flex-end;
}

.ai-assistant-feedback {
    max-width: 700px;
    margin: 16px auto 0;
}

.ai-response-panel {
    width: min(100%, 760px);
    margin: 20px auto 0;
    padding: 20px;
    border: 1px solid #d1fae5;
    border-radius: 24px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(240, 253, 244, 0.92));
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
    text-align: left;
}

.ai-chat-section .ai-chat-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
    height: clamp(680px, calc(100dvh - 60px), 760px);
    min-width: 0;
    width: 100%;
    max-width: 100%;
    max-width: 900px;
    box-sizing: border-box;
    text-align: left;
}

@media (min-width: 769px) and (max-width: 1024px) {
    .ai-chat-section .ai-chat-container {
        height: clamp(620px, calc(100dvh - 200px), 700px);
    }
}

.ai-chat-section .ai-response-panel {
    display: flex;
    flex: 1 1 0;
    flex-direction: column;
    min-height: 0;
    min-width: 0;
    width: 100%;
    max-width: 100%;
    margin: 0;
    overflow: hidden;
    box-sizing: border-box;
}

.ai-chat-section .ai-response-status {
    flex: 0 0 auto;
}

.ai-chat-section .ai-response-stream {
    flex: 1 1 auto;
    min-height: 0;
    min-width: 0;
    max-width: 100%;
    grid-template-columns: minmax(0, 1fr);
    overflow-y: auto;
    overflow-x: hidden;
    overscroll-behavior: contain;
    padding-right: 4px;
    box-sizing: border-box;
}

.ai-chat-section .ai-response-message,
.ai-chat-section .ai-markdown-body,
.ai-chat-section .ai-markdown-body :is(p, h1, h2, h3, h4, li, a, strong, code, pre) {
    min-width: 0;
    max-width: 100%;
    overflow-wrap: anywhere;
    box-sizing: border-box;
}

.ai-chat-section .ai-markdown-body pre {
    white-space: pre-wrap;
    word-break: normal;
}

.ai-chat-section .filters-buttons {
    flex: 0 0 auto;
    flex-flow: row wrap;
    justify-content: center;
    gap: 8px;
    min-width: 0;
    max-width: 100%;
    margin: 0;
    padding: 0;
}

.ai-chat-section .ai-suggestion {
    min-width: 0;
    max-width: 100%;
    white-space: normal;
    overflow-wrap: anywhere;
    box-sizing: border-box;
}

.ai-chat-section .ai-assistant-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    align-items: end;
    gap: 12px;
    flex: 0 0 auto;
    min-width: 0;
    width: 100%;
    max-width: none;
    margin: 0;
    box-sizing: border-box;
}

.ai-chat-section .ai-assistant-form textarea {
    grid-column: 1;
    width: auto;
    max-width: 100%;
    min-width: 0;
    margin: 0;
    box-sizing: border-box;
}

.ai-chat-section .ai-assistant-form .search-clear {
    grid-column: 2;
    width: 36px;
    padding: 0;
}

.ai-chat-section .ai-assistant-form button[type="submit"] {
    grid-column: 3;
}

.ai-chat-section .ai-assistant-feedback {
    grid-column: 1 / -1;
    width: 100%;
    max-width: none;
    margin: 0;
}

@media (max-width: 768px) {
    .ai-chat-section {
        padding: 12px 16px 24px;
    }

    .ai-chat-section .ai-chat-container {
        height: min(660px, max(460px, calc(100dvh - 300px)));
        gap: 10px;
    }

    .ai-chat-section .ai-response-panel {
        padding: 14px;
        border-radius: 16px;
    }

    .ai-chat-section .ai-assistant-form {
        grid-template-columns: minmax(0, 1fr) 36px 52px;
        gap: 8px;
        padding: 8px;
    }

    body.site-dark .ai-chat-section .ai-assistant-form textarea {
        min-height: 72px;
        max-height: 14dvh;
        margin-bottom: 0;
    }

    body.site-dark .ai-chat-section .ai-assistant-form .search-clear {
        flex: 0 0 36px;
        width: 36px;
        padding: 0;
    }

    body.site-dark .ai-chat-section .ai-assistant-form button[type="submit"] {
        flex: 0 0 52px;
        width: 52px;
        min-width: 52px;
    }

    .ai-chat-section .filters-buttons {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        align-items: stretch;
        justify-content: stretch;
        overflow: visible;
    }

    .ai-chat-section .ai-suggestion {
        width: 100%;
    }

    body.site-dark .ai-chat-section .filters-buttons {
        flex-direction: row;
    }
}

@media (max-width: 600px) {
    .ai-chat-section .ai-chat-container {
        height: clamp(660px, calc(42dvh + 483px), 940px);
    }

    body.site-dark .ai-chat-section .ai-response-panel .ai-response-message.is-assistant .ai-markdown-body ol {
        min-width: 0;
        max-width: 100%;
        margin-left: 0;
        padding-left: 2.5em;
        box-sizing: border-box;
    }
}

.ai-response-status {
    font-weight: 600;
    color: #166534;
    margin-bottom: 12px;
}

.ai-response-stream {
    display: grid;
    gap: 14px;
}

.ai-response-message {
    padding: 14px 18px;
    border-radius: 18px;
    border: 1px solid #e5e7eb;
    background: #ffffff;
    color: #111827;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.05);
    white-space: pre-wrap;
    line-height: 1.72;
    overflow-wrap: anywhere;
    word-break: break-word;
    text-align: left;
}

.ai-response-message.is-user {
    justify-self: end;
    max-width: min(88%, 620px);
    background: #dcfce7;
    border-color: #bbf7d0;
}

.ai-response-message.is-assistant {
    justify-self: start;
    max-width: min(88%, 640px);
}

.ai-response-message.is-assistant .ai-markdown-body {
    white-space: normal;
    line-height: 1.72;
    overflow-wrap: anywhere;
    word-break: break-word;
    text-align: left;
}

.ai-response-message.is-assistant .ai-markdown-body h1,
.ai-response-message.is-assistant .ai-markdown-body h2,
.ai-response-message.is-assistant .ai-markdown-body h3,
.ai-response-message.is-assistant .ai-markdown-body h4 {
    margin: 0 0 12px;
    line-height: 1.35;
    color: #0f172a;
}

.ai-response-panel .ai-response-message.is-assistant .ai-markdown-body p {
    margin: 0 0 16px;
}

.ai-response-panel .ai-response-message.is-assistant .ai-markdown-body p:last-child {
    margin-bottom: 0;
}

.ai-response-panel .ai-response-message.is-assistant .ai-markdown-body ul,
.ai-response-panel .ai-response-message.is-assistant .ai-markdown-body ol {
    margin: 0 0 18px 22px;
    padding-left: 0;
    list-style-position: outside;
}

.ai-response-panel .ai-response-message.is-assistant .ai-markdown-body li {
    margin-bottom: 10px;
    display: list-item;
}

.ai-response-panel .ai-response-message.is-assistant .ai-markdown-body li::marker {
    color: #166534;
    font-weight: 700;
}

body.site-dark .ai-response-panel .ai-response-message.is-assistant .ai-markdown-body strong {
    color: #f8fafc;
    font-weight: 700;
}

.ai-response-message.is-assistant .ai-markdown-body code {
    font-family: "Consolas", "Courier New", monospace;
    font-size: 0.94em;
    background: #f1f5f9;
    padding: 1px 4px;
    border-radius: 5px;
}

.ai-response-message.is-assistant .ai-markdown-body pre {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 10px;
    overflow-x: auto;
    margin: 0 0 10px;
    max-width: 100%;
}

.ai-response-message.is-assistant .ai-markdown-body pre code {
    background: transparent;
    padding: 0;
}

.ai-response-empty,
.ai-response-loading {
    margin: 0;
    color: #475569;
    text-align: left;
}

button:disabled,
.button[aria-disabled="true"] {
    opacity: 0.6;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}

@media (max-width: 1100px) {
    nav {
        padding: 16px 28px;
    }

    .page-hero,
    .filter,
    .opportunity-list {
        padding-left: 28px;
        padding-right: 28px;
    }
}

@media (max-width: 900px) {
    nav {
        flex-direction: row;
        align-items: center;
        padding: 16px 20px;
        min-height: auto;
        flex-wrap: wrap;
        gap: 12px;
    }

    nav>.button {
        order: 2;
        margin-left: 0;
        padding: 10px 16px;
        font-size: 14px;
    }

    .nav-toggle {
        display: inline-flex;
        margin-left: auto;
        order: 1;
    }

    .nav {
        display: grid;
        grid-template-columns: 1fr;
        width: 100%;
        align-items: start;
        gap: 10px;
        padding: 0 0 8px;
        max-height: 0;
        opacity: 0;
        overflow: hidden;
        pointer-events: none;
        transition: max-height 0.3s ease, opacity 0.3s ease, padding 0.3s ease;
        order: 3;
    }

    nav .nav li {
        width: 100%;
        min-width: 0;
    }

    .nav.open {
        max-height: min(70dvh, 560px);
        opacity: 1;
        pointer-events: auto;
        overflow-x: hidden;
        overflow-y: auto;
        overscroll-behavior: contain;
        padding-top: 10px;
    }

    .nav a {
        width: 100%;
        padding: 10px 12px;
    }

    ul {
        gap: 12px 16px;
        flex-wrap: wrap;
    }

    .hero-container,
    .ai-container-box,
    .sumbit-container {
        padding: 28px 20px;
    }

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


.opportunities-container {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    width: 100%;
}


@media (max-width: 900px) {

    .opportunities-container {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}


@media (max-width: 600px) {

    .opportunities-container {
        grid-template-columns: 1fr;
        gap: 18px;
    }
}

.news-container {
    grid-template-columns: 1fr 1fr;
}

.news-container .featured-news {
    grid-column: 1 / -1;
}

@media (max-width: 900px) {
    .questions-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .features,
    .opportunities,
    .news,
    .ai-preview,
    .questions-section,
    .sumbit-opportunity {
        padding-left: 20px;
        padding-right: 20px;
    }

    .footer-container {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 768px) {
    .floating-ai {
        right: max(12px, env(safe-area-inset-right));
        bottom: max(12px, env(safe-area-inset-bottom));
        padding: 8px 12px;
        max-width: calc(100vw - 16px);
    }

    .floating-ai-text {
        font-size: 13px;
    }

    .floating-ai-icon {
        font-size: 18px;
    }

    .ai-drawer {
        right: max(10px, env(safe-area-inset-right));
        left: max(10px, env(safe-area-inset-left));
        bottom: calc(max(10px, env(safe-area-inset-bottom)) + 58px);
        width: auto;
        max-height: min(70vh, 620px);
    }

    .ai-drawer-transcript {
        max-height: min(36vh, 260px);
    }

    .ai-drawer-form textarea {
        max-height: 22vh;
    }

    .ai-drawer-welcome {
        font-size: 0.82rem;
        line-height: 1.35;
    }

    .ai-drawer-response .ai-response-status {
        margin-bottom: 6px;
        font-size: 0.82rem;
        line-height: 1.35;
    }

    .ai-drawer-form .ai-assistant-feedback {
        padding: 5px 8px;
        font-size: 0.85rem;
        line-height: 1.25;
    }

    .hero {
        padding: 20px 16px 0;
    }

    .hero h1 {
        font-size: clamp(2rem, 7vw, 2.8rem);
    }

    .hero-copy {
        font-size: 1rem;
    }

    .container-grid,
    .opportunities-container,
    .news-container,
    .questions-grid,
    .steps-grid {
        grid-template-columns: 1fr;
    }

    .hero-buttons,
    .ai-search {
        flex-direction: column;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .hero-tags {
        justify-content: flex-start;
    }

    .button,
    .ai-search button {
        width: 100%;
    }

    .page-hero {
        padding: 40px 20px;
    }

    .page-hero h1 {
        font-size: 2.2rem;
    }

    .filter,
    .opportunity-list {
        padding-left: 20px;
        padding-right: 20px;
    }

    .footer-links {
        gap: 12px 16px;
    }

    .site-notice {
        left: 16px;
        right: 16px;
        bottom: 16px;
        max-width: none;
    }
}

@media (max-width: 480px) {
    nav {
        padding: 14px 16px;
    }

    body.has-floating-ai {
        padding-bottom: calc(150px + env(safe-area-inset-bottom));
    }

    .logo a {
        font-size: 24px;
    }

    .hero-container,
    .page-hero-container,
    .ai-container-box,
    .sumbit-container {
        padding: 24px 16px;
        border-radius: 24px;
    }

    .feature-card,
    .opportunity-card,
    .news-card {
        padding: 20px;
    }

    .hero-tags span {
        width: 100%;
        justify-content: center;
        text-align: center;
    }

    .hero-buttons .button {
        min-width: unset;
    }
}

body.site-dark {
    font-family: 'Inter', 'Segoe UI', Arial, sans-serif;
    background:
        radial-gradient(circle at top left, rgba(56, 189, 248, 0.12), transparent 28%),
        radial-gradient(circle at top right, rgba(16, 185, 129, 0.08), transparent 22%),
        linear-gradient(180deg, #09090b 0%, #0a0a0f 46%, #09090b 100%);
    color: #e4e4e7;
    line-height: 1.75;
    letter-spacing: 0.01em;
}

body.site-dark::before,
body.site-dark::after {
    opacity: 0.2;
    filter: blur(90px);
}

body.site-dark::before {
    background: rgba(56, 189, 248, 0.16);
}

body.site-dark::after {
    background: rgba(16, 185, 129, 0.1);
}

body.site-dark a {
    color: #d4d4d8;
}

body.site-dark a:hover {
    color: #38bdf8;
}

body.site-dark header {
    position: sticky;
    top: 0;
    z-index: 50;
    width: 100%;
    border-bottom: 1px solid rgba(39, 39, 42, 0.92);
    background: rgba(9, 9, 11, 0.7);
    backdrop-filter: blur(18px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.28);
}

body.site-dark nav {
    max-width: 1280px;
    gap: 20px;
}

body.site-dark .logo a {
    color: #f8fafc;
    letter-spacing: 0.18em;
}

body.site-dark .nav a {
    color: #a1a1aa;
    border-radius: 999px;
    padding: 10px 12px;
    transition: color 0.2s ease, background-color 0.2s ease, transform 0.2s ease;
    text-transform: capitalize;
}

body.site-dark .nav a:hover,
body.site-dark .nav a:focus-visible,
body.site-dark .nav a.active {
    background: rgba(14, 165, 233, 0.12);
    color: #7dd3fc;
}

body.site-dark .nav-toggle {
    background: #18181b;
    border-color: #27272a;
    color: #f8fafc;
    box-shadow: none;
}

body.site-dark .nav-toggle span,
body.site-dark .nav-toggle span::before,
body.site-dark .nav-toggle span::after {
    background: currentColor;
}

body.site-dark .button,
body.site-dark button:not(.nav-toggle):not(.ai-submit-icon),
body.site-dark .ai-example-btn,
body.site-dark .apply-btn,
body.site-dark .opportunity-list-card a,
body.site-dark .featured-list-card a,
body.site-dark .contact-link,
body.site-dark .database-detail-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: 14px;
    border: 1px solid #27272a;
    background: #18181b;
    color: #e4e4e7;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.24);
    transition: all 0.2s ease;
    text-transform: capitalize;
    letter-spacing: 0.02em;
}

body.site-dark .button:hover,
body.site-dark button:not(.nav-toggle):not(.ai-submit-icon):hover,
body.site-dark .ai-example-btn:hover,
body.site-dark .apply-btn:hover,
body.site-dark .opportunity-list-card a:hover,
body.site-dark .featured-list-card a:hover,
body.site-dark .contact-link:hover,
body.site-dark .database-detail-link:hover {
    transform: translateY(-1px);
    border-color: rgba(56, 189, 248, 0.45);
    background: #0284c7;
    color: #ffffff;
}

body.site-dark .button,
body.site-dark .apply-btn,
body.site-dark .featured-list-card a,
body.site-dark .opportunity-list-card a,
body.site-dark .contact-link,
body.site-dark .database-detail-link {
    background: #18181b;
    color: #7dd3fc;
}

body.site-dark .button,
body.site-dark .apply-btn,
body.site-dark .featured-list-card a,
body.site-dark .opportunity-list-card a,
body.site-dark .database-detail-link {
    border-color: #27272a;
}

body.site-dark .button:hover,
body.site-dark .apply-btn:hover,
body.site-dark .featured-list-card a:hover,
body.site-dark .opportunity-list-card a:hover,
body.site-dark .database-detail-link:hover {
    color: #ffffff;
}

body.site-dark button:focus-visible,
body.site-dark .button:focus-visible,
body.site-dark input:focus-visible,
body.site-dark textarea:focus-visible,
body.site-dark select:focus-visible,
body.site-dark a:focus-visible {
    outline: 2px solid #38bdf8;
    outline-offset: 2px;
}

body.site-dark h1,
body.site-dark h2,
body.site-dark h3,
body.site-dark h4,
body.site-dark .nav a,
body.site-dark .button,
body.site-dark .tag,
body.site-dark .featured-badge,
body.site-dark .filter-btn,
body.site-dark .step-number {
    text-transform: capitalize;
    letter-spacing: 0.02em;
}

body.site-dark h1,
body.site-dark h2,
body.site-dark h3,
body.site-dark h4,
body.site-dark p,
body.site-dark li,
body.site-dark label,
body.site-dark input,
body.site-dark textarea,
body.site-dark select {
    line-height: 1.75;
}

body.site-dark .hero,
body.site-dark .page-hero,
body.site-dark .features,
body.site-dark .opportunities,
body.site-dark .news,
body.site-dark .ai-preview,
body.site-dark .questions-section,
body.site-dark .sumbit-opportunity,
body.site-dark .opportunity-list,
body.site-dark .featured-list-opportunity {
    position: relative;
}

body.site-dark .hero-container,
body.site-dark .page-hero-container,
body.site-dark .ai-container-box,
body.site-dark .sumbit-container,
body.site-dark .mission-card,
body.site-dark .feature-card,
body.site-dark .opportunity-card,
body.site-dark .news-card,
body.site-dark .step-card,
body.site-dark .faq-item,
body.site-dark .contact-info,
body.site-dark .contact-form,
body.site-dark .opportunity-list-card,
body.site-dark .featured-list-card,
body.site-dark .ai-response-panel,
body.site-dark .ai-drawer,
body.site-dark .site-notice,
body.site-dark .filters-container {
    background: #18181b;
    border: 1px solid #27272a;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.24);
}

body.site-dark .hero-container,
body.site-dark .page-hero-container,
body.site-dark .ai-container-box,
body.site-dark .sumbit-container,
body.site-dark .mission-card {
    background: linear-gradient(180deg, rgba(24, 24, 27, 0.98), rgba(17, 17, 21, 0.98));
    border-color: #27272a;
}

body.site-dark .hero,
body.site-dark .page-hero,
body.site-dark .features,
body.site-dark .opportunities,
body.site-dark .news,
body.site-dark .ai-preview,
body.site-dark .questions-section,
body.site-dark .sumbit-opportunity,
body.site-dark .opportunity-list,
body.site-dark .featured-list-opportunity {
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
}

body.site-dark .hero h1,
body.site-dark .page-hero h1,
body.site-dark .features h2,
body.site-dark .opportunities h2,
body.site-dark .news h2,
body.site-dark .questions-section h2,
body.site-dark .section-heading h2,
body.site-dark .ai-box h2,
body.site-dark .mission-card h2,
body.site-dark .featured-list-card h2,
body.site-dark .contact-info h2,
body.site-dark .sumbit-container h2 {
    color: #f8fafc;
}

body.site-dark:has(#contact-form[data-form-kind="contact"]) .contact-card h3,
body.site-dark:has(#contact-form[data-form-kind="contact"]) .contact-info h2 {
    color: #f1dfa6;
}

body.site-dark .hero-copy,
body.site-dark .page-hero p,
body.site-dark .section-heading p,
body.site-dark .section-subtitle,
body.site-dark .feature-card p,
body.site-dark .opportunity-card p,
body.site-dark .news-card p,
body.site-dark .step-card p,
body.site-dark .faq-item p,
body.site-dark .contact-info p,
body.site-dark .contact-item,
body.site-dark .contact-form label,
body.site-dark .mission-card p,
body.site-dark .ai-box p,
body.site-dark .featured-list-card p,
body.site-dark .sumbit-container p {
    color: #d4d4d8;
}

body.site-dark .hero-tags span,
body.site-dark .hero-tags a,
body.site-dark .tag,
body.site-dark .featured-badge,
body.site-dark .filter-btn,
body.site-dark .card-meta,
body.site-dark .contact-link,
body.site-dark .step-number {
    background: #111827;
    border-color: #27272a;
    color: #7dd3fc;
}

body.site-dark .hero-tags a:hover,
body.site-dark .tag,
body.site-dark .featured-badge,
body.site-dark .step-number {
    background: rgba(2, 132, 199, 0.12);
    color: #7dd3fc;
}

body.site-dark .hero-tags,
body.site-dark .filters-buttons,
body.site-dark .ai-examples,
body.site-dark .footer-links {
    color: #d4d4d8;
}

body.site-dark .container-grid,
body.site-dark .opportunities-container,
body.site-dark .news-container,
body.site-dark .questions-grid,
body.site-dark .steps-grid,
body.site-dark .opportunity-list-container,
body.site-dark .contact-grid {
    gap: 24px;
}

body.site-dark .container-grid {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

body.site-dark .opportunities-container,
body.site-dark .news-container,
body.site-dark .questions-grid,
body.site-dark .steps-grid {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

@media (min-width: 769px) and (max-width: 1024px) {

    body.site-dark:has(> .hero) section.features:has(> h2)>.container-grid,
    body.site-dark:has(> .hero) section.features:has(.steps-grid)>.steps-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1025px) {

    body.site-dark:has(> .hero) section.features:has(> h2)>.container-grid,
    body.site-dark:has(> .hero) section.features:has(.steps-grid)>.steps-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

body.site-dark .opportunity-list-container {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

body.site-dark[data-content-category] .opportunity-list-container {
    align-items: stretch;
    grid-auto-rows: 1fr;
}

body.site-dark[data-content-category] .opportunity-list-card {
    display: flex;
    flex-direction: column;
    align-self: stretch;
    height: 100%;
}

body.site-dark[data-content-category] .opportunity-list-card>.journey-details,
body.site-dark[data-content-category] .opportunity-list-card>.database-detail-link {
    margin-top: auto;
}

body.site-dark[data-content-category] .opportunity-list-container:has(.journey-details[open]) {
    align-items: start;
    grid-auto-rows: auto;
}

body.site-dark[data-content-category] .opportunity-list-container:has(.journey-details[open]) .opportunity-list-card {
    align-self: start;
    height: auto;
}

@media (min-width: 901px) {
    body.site-dark[data-content-category="fursado"] .opportunity-list-card {
        min-height: 420px;
    }

    body.site-dark[data-content-category="waxbarasho"] .opportunity-list-card {
        min-height: 448px;
    }

    body.site-dark[data-content-category="maqaalo"] .opportunity-list-card {
        min-height: 579px;
    }

    body.site-dark[data-content-category="magaalo"] .opportunity-list-card {
        min-height: 239px;
    }

    body.site-dark[data-content-category="khayraad"] .opportunity-list-card {
        min-height: 342px;
    }

    body.site-dark[data-content-category="adeegyo"] .opportunity-list-card {
        min-height: 310px;
    }
}

@media (max-width: 900px) {
    body.site-dark[data-content-category] .opportunity-list-container {
        align-items: start;
        grid-auto-rows: auto;
    }

    body.site-dark[data-content-category] .opportunity-list-card {
        align-self: start;
        height: auto;
    }
}

body.site-dark .feature-card,
body.site-dark .opportunity-card,
body.site-dark .news-card,
body.site-dark .question-card,
body.site-dark .opportunity-list-card,
body.site-dark .step-card,
body.site-dark .faq-item,
body.site-dark .contact-card,
body.site-dark .featured-list-card {
    transition: all 0.2s ease;
}

body.site-dark .feature-card:hover,
body.site-dark .feature-card.is-hovered,
body.site-dark .opportunity-card:hover,
body.site-dark .opportunity-card.is-hovered,
body.site-dark .news-card:hover,
body.site-dark .news-card.is-hovered,
body.site-dark .question-card:hover,
body.site-dark .question-card.is-hovered,
body.site-dark .opportunity-list-card:hover {
    transform: translateY(-4px);
    border-color: rgba(56, 189, 248, 0.55);
    box-shadow: 0 22px 40px rgba(0, 0, 0, 0.32);
}

body.site-dark .feature-card::before {
    background: linear-gradient(90deg, #0284c7, #14b8a6);
}

body.site-dark .feature-card svg,
body.site-dark .contact-card-icon,
body.site-dark .card-meta svg {
    color: #7dd3fc;
}

body.site-dark .opportunity-card a,
body.site-dark .news-card a,
body.site-dark .contact-link,
body.site-dark .database-detail-link,
body.site-dark .featured-list-card a,
body.site-dark .opportunity-list-card a {
    background: transparent;
    border: 1px solid #303036;
    color: #7dd3fc;
    box-shadow: none;
}

body.site-dark .opportunity-card a:hover,
body.site-dark .news-card a:hover,
body.site-dark .contact-link:hover,
body.site-dark .database-detail-link:hover,
body.site-dark .featured-list-card a:hover,
body.site-dark .opportunity-list-card a:hover {
    background: #0284c7;
    color: #ffffff;
}

body.site-dark .apply-btn,
body.site-dark .button,
body.site-dark .featured-list-card a,
body.site-dark .opportunity-list-card a {
    background: #18181b;
    color: #7dd3fc;
}

body.site-dark .ai-search,
body.site-dark .contact-form,
body.site-dark .filters-container,
body.site-dark .ai-response-panel,
body.site-dark .ai-drawer-response {
    background: #111827;
    border-color: #27272a;
}

body.site-dark .ai-search,
body.site-dark .filters-container {
    padding: 14px;
    border-radius: 28px;
}

body.site-dark .ai-search input,
body.site-dark .ai-search textarea,
body.site-dark .filters-container input,
body.site-dark .contact-form input,
body.site-dark .contact-form textarea,
body.site-dark .contact-form select,
body.site-dark .ai-drawer-form textarea,
body.site-dark .ai-drawer-form .ai-drawer-input {
    width: 100%;
    max-width: none;
    border: 1px solid #27272a;
    background: #18181b;
    color: #e4e4e7;
    border-radius: 14px;
    padding: 14px 16px;
    margin-bottom: 0;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

body.site-dark .ai-search input::placeholder,
body.site-dark .ai-search textarea::placeholder,
body.site-dark .filters-container input::placeholder,
body.site-dark .contact-form input::placeholder,
body.site-dark .contact-form textarea::placeholder {
    color: #71717a;
}

body.site-dark .ai-search button[type="submit"],
body.site-dark .ai-submit-icon {
    flex-shrink: 0;
    width: 52px;
    height: 52px;
    padding: 0;
    border-radius: 999px;
    background: #0284c7;
    border: 1px solid #38bdf8;
    color: #ffffff;
    box-shadow: 0 16px 30px rgba(2, 132, 199, 0.28);
}

body.site-dark .ai-submit-icon svg {
    width: 22px;
    height: 22px;
}

body.site-dark .ai-assistant-form .ai-submit-icon {
    min-width: 52px;
    min-height: 52px;
    border-color: #7dd3fc;
    color: #ffffff;
    transition: background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

body.site-dark .ai-assistant-form .ai-submit-icon:hover {
    background: #0369a1;
    border-color: #bae6fd;
    box-shadow: 0 12px 26px rgba(2, 132, 199, 0.36);
}

body.site-dark .ai-assistant-form .ai-submit-icon:focus-visible {
    outline: 3px solid #bae6fd;
    outline-offset: 3px;
}

body.site-dark .ai-assistant-form .ai-submit-icon:active {
    background: #075985;
    transform: scale(0.98);
}

body.site-dark .ai-assistant-form .ai-submit-icon:disabled {
    background: #164e63;
    border-color: #155e75;
    color: #cbd5e1;
    opacity: 1;
    box-shadow: none;
    transform: none;
    cursor: not-allowed;
}

body.site-dark .ai-search[data-form-kind="newsletter"] button[type="submit"] {
    width: auto;
    height: auto;
    border-radius: 14px;
    padding: 14px 22px;
}

body.site-dark .filters-container input,
body.site-dark .contact-form input,
body.site-dark .contact-form textarea,
body.site-dark .contact-form select {
    border-radius: 12px;
}

body.site-dark .filter-btn {
    background: #18181b;
    color: #a1a1aa;
    border: 1px solid #27272a;
    padding: 10px 14px;
    min-height: 42px;
}

body.site-dark .filter-btn.active,
body.site-dark .filter-btn[aria-pressed="true"],
body.site-dark .filter-btn:hover,
body.site-dark .filter-btn:focus-visible {
    background: #0284c7;
    border-color: #38bdf8;
    color: #ffffff;
}

body.site-dark .hero-buttons,
body.site-dark .hero-tags,
body.site-dark .ai-examples,
body.site-dark .footer-links,
body.site-dark .filters-buttons {
    gap: 12px;
}

body.site-dark .ai-response-panel {
    background: transparent;
    border-color: transparent;
    box-shadow: none;
    padding: 0;
}

body.site-dark .ai-response-stream {
    gap: 14px;
}

body.site-dark .ai-response-message {
    background: transparent;
    border: 0;
    box-shadow: none;
    padding: 0;
    color: #e4e4e7;
}

body.site-dark .ai-response-message.is-user {
    justify-self: end;
    max-width: min(80%, 680px);
    background: #27272a;
    border: 1px solid #3f3f46;
    border-radius: 1rem 1rem 0.25rem 1rem;
    padding: 12px 16px;
}

body.site-dark .ai-response-message.is-assistant {
    justify-self: start;
    max-width: min(100%, 760px);
    padding: 0;
}

body.site-dark .ai-response-message.is-assistant .ai-markdown-body {
    color: #e4e4e7;
}

body.site-dark .ai-response-message.is-assistant .ai-markdown-body h1,
body.site-dark .ai-response-message.is-assistant .ai-markdown-body h2,
body.site-dark .ai-response-message.is-assistant .ai-markdown-body h3,
body.site-dark .ai-response-message.is-assistant .ai-markdown-body h4 {
    color: #f8fafc;
}

body.site-dark .ai-response-panel .ai-response-message.is-assistant .ai-markdown-body h1,
body.site-dark .ai-response-panel .ai-response-message.is-assistant .ai-markdown-body h2,
body.site-dark .ai-response-panel .ai-response-message.is-assistant .ai-markdown-body h3,
body.site-dark .ai-response-panel .ai-response-message.is-assistant .ai-markdown-body h4,
body.site-dark .ai-response-panel .ai-response-message.is-assistant .ai-markdown-body strong {
    color: #f1dfa6;
}

body.site-dark .ai-response-panel .ai-response-message.is-assistant .ai-markdown-body li::marker {
    color: #f1dfa6;
    font-weight: 700;
}

body.site-dark .ai-response-message.is-assistant .ai-markdown-body code {
    background: #18181b;
    color: #e4e4e7;
}

body.site-dark .ai-response-message.is-assistant .ai-markdown-body pre {
    background: #111827;
    border-color: #27272a;
}

body.site-dark .ai-response-status {
    color: #7dd3fc;
}

body.site-dark .contact-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

body.site-dark .contact-card {
    min-height: 100%;
}

body.site-dark .contact-card-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid #34343a;
    color: #94a3b8;
}

body.site-dark .contact-item {
    padding: 14px 0 0;
    border-top: 1px solid #27272a;
}

body.site-dark footer {
    border-top: 1px solid #27272a;
    background: rgba(9, 9, 11, 0.92);
}

body.site-dark .footer-container p {
    color: #a1a1aa;
}

body.site-dark .footer-links a {
    color: #d4d4d8;
}

body.site-dark .footer-links a:hover {
    color: #7dd3fc;
}

body.site-dark .floating-ai {
    background: #0284c7;
    color: #ffffff;
    box-shadow: 0 16px 34px rgba(2, 132, 199, 0.32);
}

body.site-dark .floating-ai:hover,
body.site-dark .floating-ai.is-open {
    background: #0ea5e9;
    color: #ffffff;
}

body.site-dark .ai-drawer {
    background: rgba(17, 24, 39, 0.96);
    border-color: #27272a;
}

body.site-dark .ai-drawer-header,
body.site-dark .ai-drawer-welcome,
body.site-dark .ai-drawer-label,
body.site-dark .ai-drawer-link {
    color: #e4e4e7;
}

body.site-dark .ai-drawer-close {
    color: #a1a1aa;
}

body.site-dark .ai-drawer-close:hover,
body.site-dark .ai-drawer-close:focus-visible {
    background: #27272a;
    color: #f8fafc;
}

body.site-dark .ai-drawer-response {
    background: #111827;
    border-color: #27272a;
}

body.site-dark .ai-drawer-form textarea {
    background: #18181b;
    border-color: #27272a;
    color: #e4e4e7;
}

body.site-dark .ai-drawer .ai-drawer-form textarea {
    min-height: 84px;
}

body.site-dark .site-notice {
    background: rgba(17, 24, 39, 0.96);
    border: 1px solid #27272a;
    color: #f8fafc;
}

body.site-dark .filter-empty-message,
body.site-dark .content-state {
    background: #111827;
    border-color: #27272a;
    color: #d4d4d8;
}

body.site-dark .content-state.is-error {
    background: rgba(127, 29, 29, 0.2);
    border-color: rgba(248, 113, 113, 0.35);
    color: #fca5a5;
}

body.site-dark .content-state.is-loading {
    color: #cbd5e1;
}

body.site-dark .journey-details {
    border-top-color: #27272a;
}

body.site-dark .journey-details summary {
    color: #7dd3fc;
}

body.site-dark .journey-details summary::after {
    color: #7dd3fc;
}

body.site-dark .database-detail-link.is-disabled {
    background: #3f3f46;
    color: #a1a1aa;
    border-color: #52525b;
}

body.site-dark .mission-points p {
    background: rgba(2, 132, 199, 0.1);
    border-color: rgba(56, 189, 248, 0.18);
    color: #7dd3fc;
}

body.site-dark .featured-list-card {
    background: linear-gradient(180deg, rgba(14, 165, 233, 0.08), rgba(24, 24, 27, 0.98));
    border-color: rgba(56, 189, 248, 0.18);
}

body.site-dark .card-meta {
    gap: 10px;
    flex-wrap: wrap;
    padding: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
    color: #a1a1aa;
}

body.site-dark .featured-badge,
body.site-dark .tag {
    border: 1px solid rgba(56, 189, 248, 0.2);
}

body.site-dark .contact-form button[type="submit"],
body.site-dark .ai-assistant-form button[type="submit"] {
    min-width: 180px;
}

body.site-dark .contact-form button[type="submit"] {
    width: 100%;
}

body.site-dark .ai-assistant-form {
    align-items: stretch;
}

body.site-dark .ai-assistant-form button[type="submit"] {
    align-self: flex-end;
}

body.site-dark .ai-assistant-form textarea {
    min-height: 120px;
    resize: vertical;
}

body.site-dark .ai-assistant-feedback {
    margin-top: 16px;
}

body.site-dark .form-message {
    background: #111827;
    border: 1px solid #27272a;
    color: #d4d4d8;
}

body.site-dark .form-message.error {
    background: rgba(127, 29, 29, 0.2);
    border-color: rgba(248, 113, 113, 0.35);
    color: #fca5a5;
}

body.site-dark .form-message.info {
    background: rgba(30, 64, 175, 0.16);
    border-color: rgba(96, 165, 250, 0.34);
    color: #bfdbfe;
}

body.site-dark .field-error {
    color: #fca5a5;
}

body.site-dark .hero-tags svg,
body.site-dark .card-meta svg,
body.site-dark .contact-card-icon svg {
    color: currentColor;
}

body.site-dark .ai-search[data-form-kind="ai-teaser"],
body.site-dark .ai-search[data-form-kind="ai-assistant"] {
    gap: 12px;
}

body.site-dark .ai-search[data-form-kind="ai-teaser"] input,
body.site-dark .ai-search[data-form-kind="ai-assistant"] textarea {
    background: transparent;
    border: 0;
    box-shadow: none;
    padding-left: 6px;
}

body.site-dark .ai-search[data-form-kind="ai-teaser"] button[type="submit"],
body.site-dark .ai-search[data-form-kind="ai-assistant"] button[type="submit"] {
    margin-left: auto;
}

body.site-dark .ai-search[data-form-kind="newsletter"] {
    border-radius: 24px;
}

body.site-dark .ai-search[data-form-kind="newsletter"] input {
    flex: 1;
}

body.site-dark .ai-search[data-form-kind="newsletter"] button[type="submit"] {
    background: #0284c7;
    color: #ffffff;
    border-color: #38bdf8;
}

body.site-dark .hero-buttons .button,
body.site-dark .ai-example-btn,
body.site-dark .filters-buttons .filter-btn {
    min-height: 44px;
}

body.site-dark .sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

@media (max-width: 900px) {
    body.site-dark nav {
        padding: 16px 20px;
    }

    body.site-dark .hero,
    body.site-dark .page-hero,
    body.site-dark .features,
    body.site-dark .opportunities,
    body.site-dark .news,
    body.site-dark .ai-preview,
    body.site-dark .questions-section,
    body.site-dark .sumbit-opportunity,
    body.site-dark .opportunity-list,
    body.site-dark .featured-list-opportunity {
        padding-left: 20px;
        padding-right: 20px;
    }

    body.site-dark .container-grid,
    body.site-dark .opportunities-container,
    body.site-dark .news-container,
    body.site-dark .questions-grid,
    body.site-dark .steps-grid,
    body.site-dark .contact-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {

    body.site-dark .hero-buttons,
    body.site-dark .ai-search,
    body.site-dark .filters-buttons,
    body.site-dark .hero-tags,
    body.site-dark .ai-examples {
        flex-direction: column;
    }

    body.site-dark .button,
    body.site-dark .ai-search button,
    body.site-dark .ai-submit-icon {
        width: 100%;
    }

    body.site-dark .ai-submit-icon {
        width: 52px;
    }

    body.site-dark .contact-form button[type="submit"],
    body.site-dark .ai-assistant-form button[type="submit"] {
        width: 100%;
        min-width: 0;
    }
}

/* Final pre-content UI refinement */
body.site-dark .logo a {
    position: relative;
    padding-bottom: 4px;
}

body.site-dark .logo a::before {
    content: '';
    position: absolute;
    right: -8px;
    top: 3px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #fbbf24;
    box-shadow: 0 0 10px rgba(251, 191, 36, 0.45);
}

body.site-dark .logo a::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: -3px;
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(248, 250, 252, 0.22) 0%, rgba(248, 250, 252, 0.22) 62%, #facc15 82%, #f59e0b 100%);
}

body.site-dark .hero h1 {
    font-size: clamp(2.625rem, 6.8vw, 4rem);
    line-height: 1.08;
    max-width: 19ch;
    text-wrap: balance;
    overflow-wrap: anywhere;
}

body.site-dark .page-hero h1 {
    font-size: clamp(2.35rem, 6vw, 3.35rem);
    line-height: 1.1;
    max-width: 18ch;
    text-wrap: balance;
    overflow-wrap: anywhere;
}

body.site-dark .features h2,
body.site-dark .opportunities h2,
body.site-dark .news h2,
body.site-dark .questions-section h2,
body.site-dark .section-heading h2,
body.site-dark .ai-box h2,
body.site-dark .mission-card h2,
body.site-dark .featured-list-card h2,
body.site-dark .contact-info h2,
body.site-dark .sumbit-container h2 {
    font-size: clamp(2rem, 4.5vw, 2.35rem);
    line-height: 1.16;
    text-wrap: balance;
    overflow-wrap: anywhere;
}

body.site-dark .feature-card h3,
body.site-dark .news-card h3,
body.site-dark .opportunity-card h3,
body.site-dark .opportunity-list-card h3,
body.site-dark .step-card h3 {
    font-size: clamp(1.5rem, 3.2vw, 1.75rem);
    line-height: 1.28;
    text-wrap: balance;
    overflow-wrap: anywhere;
}

body.site-dark .hero-copy,
body.site-dark .page-hero p,
body.site-dark .section-subtitle,
body.site-dark .feature-card p,
body.site-dark .opportunity-card p,
body.site-dark .news-card p,
body.site-dark .step-card p,
body.site-dark .faq-item p,
body.site-dark .contact-info p,
body.site-dark .contact-item,
body.site-dark .contact-form label,
body.site-dark .mission-card p,
body.site-dark .ai-box p,
body.site-dark .featured-list-card p,
body.site-dark .sumbit-container p {
    font-size: clamp(1.04rem, 2.6vw, 1.16rem);
    line-height: 1.68;
}

body.site-dark .tag,
body.site-dark .card-meta,
body.site-dark .floating-ai-text,
body.site-dark .footer-links a,
body.site-dark .hero-tags span,
body.site-dark .hero-tags a {
    font-size: clamp(0.88rem, 2.2vw, 1rem);
}

body.site-dark .features,
body.site-dark .opportunities,
body.site-dark .news,
body.site-dark .ai-preview,
body.site-dark .questions-section,
body.site-dark .sumbit-opportunity,
body.site-dark .opportunity-list,
body.site-dark .featured-list-opportunity,
body.site-dark .page-hero {
    padding-top: 56px;
    padding-bottom: 22px;
}

body.site-dark .section-heading {
    margin-bottom: 30px;
}

body.site-dark .container-grid,
body.site-dark .opportunity-list-container,
body.site-dark .opportunities-container,
body.site-dark .news-container,
body.site-dark .questions-grid,
body.site-dark .steps-grid,
body.site-dark .faq-list {
    gap: 20px;
}

body.site-dark .feature-card,
body.site-dark .opportunity-card,
body.site-dark .news-card,
body.site-dark .question-card,
body.site-dark .opportunity-list-card,
body.site-dark .step-card,
body.site-dark .faq-item,
body.site-dark .contact-info,
body.site-dark .contact-form,
body.site-dark .featured-list-card,
body.site-dark .sumbit-container,
body.site-dark .hero-container,
body.site-dark .page-hero-container,
body.site-dark .ai-container-box,
body.site-dark .mission-card {
    border-radius: 20px;
    padding: 24px;
}

body.site-dark .button,
body.site-dark .apply-btn,
body.site-dark .database-detail-link,
body.site-dark .opportunity-list-card a,
body.site-dark .featured-list-card a,
body.site-dark .contact-form button[type="submit"],
body.site-dark .hero-buttons .button {
    min-height: 44px;
    padding: 11px 18px;
    border-radius: 12px;
    font-weight: 700;
    line-height: 1.2;
}

.featured-badge,
body.site-dark .featured-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    width: auto;
    height: auto;
    margin-bottom: 10px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: #fbbf24;
    font-size: 14px;
    line-height: 1;
    letter-spacing: 0;
    text-transform: none;
    box-shadow: none;
}

.opportunity-list-card .featured-badge,
body.site-dark .opportunity-list-card .featured-badge {
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 700;
}

body.site-dark .faq-item {
    background: #111827;
    border-color: #334155;
}

body.site-dark .faq-item summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    color: #f8fafc;
}

body.site-dark .faq-item summary::after {
    content: '+';
    color: #38bdf8;
    font-size: 1.15rem;
    font-weight: 800;
    line-height: 1;
    flex-shrink: 0;
}

body.site-dark .faq-item[open] summary::after {
    content: '-';
}

body.site-dark .faq-item summary:hover,
body.site-dark .faq-item summary:focus-visible,
body.site-dark .faq-item[open] summary {
    color: #ffffff;
}

body.site-dark .faq-item p,
body.site-dark .faq-item[open] p {
    color: #cbd5e1;
}

body.site-dark input::placeholder,
body.site-dark textarea::placeholder,
body.site-dark select::placeholder {
    color: #9ca3af;
}

.floating-ai {
    right: max(14px, env(safe-area-inset-right));
    bottom: max(16px, env(safe-area-inset-bottom));
    gap: 7px;
    padding: 8px 12px;
    min-height: 44px;
    max-width: calc(100vw - 24px);
}

.floating-ai-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 17px;
    height: 17px;
    font-size: 0;
    flex-shrink: 0;
}

.floating-ai-icon svg {
    width: 100%;
    height: 100%;
}

.floating-ai-text {
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
}

body.site-dark .floating-ai {
    background: #0284c7;
    border: 1px solid #38bdf8;
    color: #ffffff;
}

.nav.open {
    max-height: 360px;
}

body.site-dark .page-hero-container,
body.site-dark .hero-container,
body.site-dark .opportunity-list-card,
body.site-dark .news-card,
body.site-dark .feature-card {
    overflow: hidden;
}

@media (max-width: 768px) {

    body.site-dark .features,
    body.site-dark .opportunities,
    body.site-dark .news,
    body.site-dark .ai-preview,
    body.site-dark .questions-section,
    body.site-dark .sumbit-opportunity,
    body.site-dark .opportunity-list,
    body.site-dark .featured-list-opportunity,
    body.site-dark .page-hero {
        padding-top: 44px;
        padding-bottom: 18px;
    }

    body.site-dark .hero h1 {
        font-size: clamp(2.375rem, 10vw, 2.85rem);
    }

    body.site-dark .page-hero h1 {
        font-size: clamp(2.1rem, 8.6vw, 2.45rem);
    }

    body.site-dark .features h2,
    body.site-dark .opportunities h2,
    body.site-dark .news h2,
    body.site-dark .questions-section h2,
    body.site-dark .section-heading h2,
    body.site-dark .ai-box h2,
    body.site-dark .mission-card h2,
    body.site-dark .featured-list-card h2,
    body.site-dark .contact-info h2,
    body.site-dark .sumbit-container h2 {
        font-size: clamp(2.05rem, 9vw, 2.35rem);
    }

    body.site-dark .feature-card h3,
    body.site-dark .news-card h3,
    body.site-dark .opportunity-card h3,
    body.site-dark .opportunity-list-card h3,
    body.site-dark .step-card h3 {
        font-size: clamp(1.5rem, 6.5vw, 1.75rem);
    }

    body.site-dark .feature-card,
    body.site-dark .opportunity-card,
    body.site-dark .news-card,
    body.site-dark .question-card,
    body.site-dark .opportunity-list-card,
    body.site-dark .step-card,
    body.site-dark .faq-item,
    body.site-dark .contact-info,
    body.site-dark .contact-form,
    body.site-dark .featured-list-card,
    body.site-dark .sumbit-container,
    body.site-dark .hero-container,
    body.site-dark .page-hero-container,
    body.site-dark .ai-container-box,
    body.site-dark .mission-card {
        padding: 20px;
        border-radius: 18px;
    }

    .floating-ai {
        right: max(10px, env(safe-area-inset-right));
        bottom: max(10px, env(safe-area-inset-bottom));
        gap: 6px;
        padding: 7px 10px;
    }

    .floating-ai-icon {
        width: 16px;
        height: 16px;
    }

    .floating-ai-text {
        font-size: 12.5px;
    }

    body.has-floating-ai {
        padding-bottom: calc(126px + env(safe-area-inset-bottom));
    }
}

@media (max-width: 480px) {
    .floating-ai {
        right: max(20px, env(safe-area-inset-right));
        bottom: max(20px, env(safe-area-inset-bottom));
        gap: 6px;
        padding: 6px 9px;
        min-height: 42px;
    }

    body.has-floating-ai {
        padding-bottom: calc(180px + env(safe-area-inset-bottom));
    }

    .floating-ai {
        max-width: calc(100vw - 20px);
    }
}

.featured-badge-icon {
    width: 14px;
    height: 14px;
    fill: currentColor;
}

body.site-dark .features>h2,
body.site-dark .section-heading h2,
body.site-dark .opportunities>h2,
body.site-dark .news>h2,
body.site-dark .questions-section>h2,
body.site-dark .ai-container-box>h2,
body.site-dark .ai-box>h2,
body.site-dark .sumbit-container>h2 {
    color: #f1dfa6;
}

@media (max-width: 480px) {
    .ai-drawer {
        top: auto;
        right: max(12px, env(safe-area-inset-right));
        bottom: calc(100vh - (var(--ai-visual-viewport-top, 0px) + var(--ai-visual-viewport-height, 100dvh)) + max(12px, env(safe-area-inset-bottom)));
        left: max(12px, env(safe-area-inset-left));
        width: auto;
        height: min(calc(var(--ai-visual-viewport-height, 100dvh) * 0.75), 620px);
        max-height: calc(var(--ai-visual-viewport-height, 100dvh) - max(12px, env(safe-area-inset-top)) - max(12px, env(safe-area-inset-bottom)) - 24px);
        padding: 10px;
        border-radius: 16px;
        gap: 6px;
        overflow: hidden;
        overscroll-behavior: contain;
    }

    .ai-drawer-header {
        position: sticky;
        top: 0;
        min-height: 40px;
    }

    .ai-drawer-close {
        width: 40px;
        height: 40px;
        flex: 0 0 40px;
    }

    .ai-drawer-welcome,
    .ai-drawer-form .ai-drawer-label {
        display: none;
    }

    .ai-drawer-response {
        flex: 1 1 auto;
        min-height: 0;
        display: flex;
        flex-direction: column;
        height: auto;
        max-height: none;
        overflow: visible;
        border: 0;
        border-radius: 0;
        padding: 4px 2px;
        background: transparent;
    }

    .ai-drawer-response .ai-response-status {
        flex: 0 0 auto;
    }

    .ai-drawer-response .ai-response-status[data-state="success"],
    .ai-drawer-form .ai-assistant-feedback.success {
        display: none;
    }

    .ai-drawer-transcript {
        flex: 1 1 auto;
        min-height: 0;
        max-height: none;
        overflow-x: hidden;
        overflow-y: auto;
        overscroll-behavior: contain;
        -webkit-overflow-scrolling: touch;
        padding-right: 0;
    }

    .ai-drawer-form {
        gap: 6px;
        padding-top: 6px;
        border-top: 1px solid rgba(127, 127, 127, 0.24);
    }

    body.site-dark .ai-drawer .ai-drawer-form textarea {
        height: 56px;
        min-height: 56px;
        max-height: 112px;
        resize: none;
        overflow-y: auto;
        border-radius: 14px;
        padding: 10px 12px;
        font-size: 16px;
    }

    .ai-drawer-form button[type="submit"] {
        width: 100%;
        min-height: 44px;
        justify-self: stretch;
    }

    body.site-dark .ai-drawer .ai-drawer-link {
        width: auto;
        align-self: flex-start;
        padding: 2px 0;
        border: 0;
        background: transparent;
        box-shadow: none;
        color: #7dd3fc;
        font-size: 0.75rem;
    }

    body.ai-drawer-open {
        overscroll-behavior: none;
    }

    body.ai-drawer-open .floating-ai {
        visibility: hidden;
        pointer-events: none;
    }
}

@media (max-width: 430px) {
    body.site-dark:is([data-content-category="fursado"], [data-content-category="waxbarasho"], [data-content-category="maqaalo"], [data-content-category="magaalo"], [data-content-category="khayraad"], [data-content-category="adeegyo"]) .filters-buttons {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        align-items: stretch;
        box-sizing: border-box;
    }

    body.site-dark:is([data-content-category="fursado"], [data-content-category="waxbarasho"], [data-content-category="maqaalo"], [data-content-category="magaalo"], [data-content-category="khayraad"], [data-content-category="adeegyo"]) .filters-buttons>.filter-btn {
        width: 100%;
        min-width: 0;
        min-height: 44px;
    }

    body.site-dark:is([data-content-category="fursado"], [data-content-category="waxbarasho"], [data-content-category="maqaalo"], [data-content-category="magaalo"], [data-content-category="khayraad"], [data-content-category="adeegyo"]) .filters-buttons>.filter-btn:last-child:nth-child(odd) {
        grid-column: 1 / -1;
        justify-self: center;
        width: calc(50% - 6px);
    }
}