:root {
    --c-eco-50: #e6f2ff;
    --c-eco-100: #cce5ff;
    --c-eco-500: #0077D4;
    --c-eco-600: #0066b8;
    --c-eco-700: #005599;
    --c-eco-800: #004780;
    --c-eco-900: #0077D4;
    --c-eco-dark: #004780;
    --c-eco-950: #001328;
    --c-sand: #f8f7f4;
    --c-white: #ffffff;
    --c-slate-50: #f8fafc;
    --c-slate-100: #f1f5f9;
    --c-slate-200: #e2e8f0;
    --c-slate-400: #94a3b8;
    --c-slate-500: #64748b;
    --c-slate-600: #475569;
    --c-slate-700: #334155;
    --c-slate-800: #1e293b;
    --c-slate-900: #0f172a;

    --font-sans: 'Inter', sans-serif;
    --font-serif: 'Playfair Display', serif;

    --spacing-py-24: 6rem;
    --spacing-px-6: 1.5rem;
}

*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-sans);
    color: var(--c-slate-800);
    background-color: var(--c-sand);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

::selection {
    background-color: var(--c-eco-500);
    color: white;
}

a { text-decoration: none; color: inherit; }
button { background: none; border: none; cursor: pointer; font-family: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

.container {
    width: 100%;
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--spacing-px-6);
    padding-right: var(--spacing-px-6);
}

.py-6 { padding-top: 1.5rem; padding-bottom: 1.5rem; }
.translate-x-full { transform: translateX(100%); }
.visible { opacity: 1 !important; transform: translateY(0) !important; }

.grid { display: grid; gap: 2rem; }
.grid-cols-1 { grid-template-columns: 1fr; }

@media (min-width: 768px) {
    .md\:grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
    .md\:flex-row { flex-direction: row !important; }
}
@media (min-width: 1024px) {
    .lg\:grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
    .lg\:grid-cols-12 { grid-template-columns: repeat(12, 1fr); }
    .lg\:col-span-6 { grid-column: span 6; }
    .lg\:flex { display: flex !important; }
    .lg\:hidden { display: none !important; }
    .lg\:text-right { text-align: right; }
}

#navbar {
    position: fixed;
    width: 100%;
    z-index: 50;
    top: 0;
    color: white;
    transition: all 0.3s ease;
}

.scrolled-nav {
    background-color: var(--c-eco-500);
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    padding-top: 1rem !important;
    padding-bottom: 1rem !important;
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 50;
}

.nav-logo-img {
    height: 3.5rem;
    width: auto;
    transition: transform 0.3s;
}
@media (min-width: 768px) { .nav-logo-img { height: 5rem; } }
.nav-logo-link:hover .nav-logo-img { transform: scale(1.05); }

.nav-links-desktop {
  display: none;
  align-items: center;
  gap: 1.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.025em;
  margin: 0;
  padding: 0;
}

.nav-link {
    position: relative;
    cursor: pointer;
    transition: color 0.3s ease;
}
.nav-link:hover { color: var(--c-eco-50); }
.nav-link::after {
    content: ''; position: absolute; width: 0; height: 2px;
    background-color: var(--c-eco-500);
    left: 0; bottom: -4px; transition: width 0.3s ease;
}
.nav-link:hover::after { width: 100%; }

.dropdown-group { position: relative; padding: 1rem 0; cursor: pointer; }
.dropdown-menu {
    position: absolute;
    display: none;
    left: 0; top: 100%;
    width: 15rem;
    background: white;
    color: var(--c-slate-800);
    box-shadow: 0 20px 25px -5px rgba(0,0,0,0.1);
    border-radius: 0.5rem;
    border-top: 4px solid var(--c-eco-500);
    padding: 0.5rem 0;
    margin-top: 0;
}
.dropdown-group:hover .dropdown-menu { display: block; animation: fadeIn 0.2s ease-out; }

.dropdown-item {
    display: block; width: 100%; text-align: left;
    padding: 0.5rem 1rem;
    font-size: 0.95rem;
    transition: all 0.2s;
}
.dropdown-item:hover { background-color: var(--c-eco-50); color: var(--c-eco-600); }

.btn-apply {
    padding: 0.625rem 1.5rem;
    background-color: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.3);
    backdrop-filter: blur(4px);
    color: white;
    border-radius: 9999px;
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1);
    display: flex; align-items: center; gap: 0.25rem;
    transition: all 0.3s;
}
.btn-apply:hover { background-color: white; color: var(--c-eco-900); }

#mobile-menu-btn {
    display: block;
    font-size: 1.875rem;
    color: white;
    z-index: 50;
}
@media (min-width: 1024px) { #mobile-menu-btn { display: none; } }

#mobile-menu {
    position: fixed;
    inset: 0;
    background-color: #0066B8;
    backdrop-filter: blur(22px);
    z-index: 40;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);

    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    padding-top: 6.75rem;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

#mobile-menu::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background:
      radial-gradient(800px 500px at 20% 10%, rgba(255,255,255,0.08), transparent 60%),
      radial-gradient(900px 600px at 80% 30%, rgba(0,119,212,0.18), transparent 55%),
      radial-gradient(700px 500px at 50% 85%, rgba(255,255,255,0.06), transparent 60%);
    opacity: 1;
}

.mobile-content {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 520px;
    gap: 1.25rem;
    text-align: center;
    font-family: var(--font-serif);
    color: white;
    padding: 0 1.25rem 2.75rem;
}

.mobile-link {
    font-size: 1.25rem;
    font-weight: 600;
    color: rgba(255,255,255,0.92);
    transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
    display: block;
    padding: 0.95rem 1rem;
    border-radius: 1rem;
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.12);
    box-shadow: 0 12px 24px -18px rgba(0,0,0,0.65);
}

.mobile-link:hover {
    color: white;
    background: rgba(255,255,255,0.10);
    border-color: rgba(255,255,255,0.18);
    transform: translateY(-1px);
}

.mobile-link:focus-visible {
    outline: 2px solid rgba(0,119,212,0.9);
    outline-offset: 3px;
}

.mobile-sub-btn {
    color: var(--c-eco-100);
    font-size: 1rem;
    margin-top: -0.75rem;
    font-family: var(--font-sans);
    opacity: 0.9;
}

.mobile-divider {
    height: 1px;
    width: 6rem;
    background-color: rgba(255,255,255,0.14);
    margin: 0.25rem auto;
}

.mobile-apply-btn {
    padding: 0.95rem 2.5rem;
    background: white;
    color: var(--c-eco-dark);
    border-radius: 9999px;
    font-weight: 800;
    margin-top: 0.75rem;
    display: inline-block;
    font-family: var(--font-sans);
    box-shadow: 0 18px 36px -22px rgba(0,0,0,0.7);
    transition: transform 0.2s ease, background 0.2s ease;
}
.mobile-apply-btn:hover {
    transform: translateY(-2px);
    background-color: var(--c-eco-50);
}

header {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-image:
        linear-gradient(to right bottom, rgba(0, 19, 40, 0.95), rgba(0, 119, 212, 0.5)),
        url('/wp-content/themes/pxs_unesco/assets/img/rain.webp');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
    overflow: hidden;
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    color: white;
    margin-top: 5rem;
}

.ihp-badge {
    display: inline-block;
    padding: 0.25rem 1rem;
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 9999px;
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    margin-bottom: 2rem;
    background-color: rgba(0,0,0,0.2);
    backdrop-filter: blur(12px);
}

.hero-title {
    font-family: var(--font-serif);
    font-size: 3rem;
    line-height: 1.1;
    margin-bottom: 2rem;
    font-weight: 500;
    text-shadow: 0 10px 15px -3px rgba(0,0,0,0.1);
}
@media (min-width: 768px) { .hero-title { font-size: 4.5rem; } }
@media (min-width: 1024px) { .hero-title { font-size: 6rem; } }

.hero-subtitle { font-style: italic; color: var(--c-eco-100); font-weight: 300; }

.hero-desc {
    max-width: 48rem;
    margin-left: auto; margin-right: auto;
    font-size: 1.125rem;
    color: var(--c-slate-100);
    font-weight: 300;
    margin-bottom: 3rem;
    line-height: 1.625;
    text-shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
}
@media (min-width: 768px) { .hero-desc { font-size: 1.25rem; } }

.hero-btns {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    justify-content: center;
}
@media (min-width: 768px) { .hero-btns { flex-direction: row; } }

.btn-white {
    padding: 1rem 2rem;
    background: white;
    color: var(--c-eco-900);
    border-radius: 9999px;
    font-weight: 700;
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 20px 25px -5px rgba(0,0,0,0.1);
}
.btn-white:hover { background-color: var(--c-eco-50); transform: translateY(-4px); }

.btn-transparent {
    padding: 1rem 2rem;
    border: 1px solid rgba(255,255,255,0.6);
    background-color: rgba(0,0,0,0.1);
    backdrop-filter: blur(4px);
    color: white;
    border-radius: 9999px;
    font-weight: 500;
    transition: background-color 0.3s;
}
.btn-transparent:hover { background-color: rgba(255,255,255,0.2); }

.scroll-indicator {
    position: absolute;
    bottom: 2.5rem;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 1s infinite;
    color: rgba(255,255,255,0.7);
    z-index: 10;
    font-size: 1.875rem;
}

.section { padding-top: var(--spacing-py-24); padding-bottom: var(--spacing-py-24); position: relative; z-index: 10; }
.bg-slate-50 { background-color: var(--c-slate-50); }
.bg-white { background-color: white; }
.bg-sand { background-color: var(--c-sand); }
.bg-eco-900 { background-color: var(--c-eco-900); }

.section-header { margin-bottom: 3rem; padding-left: 1rem; border-left: 4px solid var(--c-eco-500); }
.section-tag { color: var(--c-eco-600); font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; font-size: 0.875rem; display: block; margin-bottom: 0.5rem; }
.section-h { font-family: var(--font-serif); font-size: 2.25rem; color: var(--c-eco-dark); }

.card {
    background: white;
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: 0 1px 2px 0 rgba(0,0,0,0.05);
    transition: all 0.3s;
}
.card:hover { box-shadow: 0 20px 25px -5px rgba(0,0,0,0.1); }
.card-img-wrap { height: 12rem; overflow: hidden; background-color: var(--c-slate-200); }
.card-img { width: 100%; height: 100%; object-fit: cover; transition: duration 0.5s; transition: transform 0.5s; }
.card:hover .card-img { transform: scale(1.1); }
.card-content { padding: 1.5rem; }
.date { font-size: 0.75rem; font-weight: 700; color: var(--c-eco-600); text-transform: uppercase; margin-bottom: 0.5rem; display: block; }
.card-title { font-family: var(--font-serif); font-size: 1.25rem; font-weight: 700; color: var(--c-slate-900); margin-bottom: 0.75rem; transition: color 0.3s; }
.card:hover .card-title { color: var(--c-eco-600); }
.card-text { color: var(--c-slate-600); font-size: 0.875rem; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

.btn-more {
    display: inline-flex; align-items: center; gap: 0.5rem;
    padding: 0.75rem 2rem;
    border: 1px solid var(--c-eco-900);
    color: var(--c-eco-900);
    border-radius: 9999px;
    font-weight: 700;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: all 0.3s;
}
.btn-more:hover { background-color: var(--c-eco-900); color: white; }

.text-justify { text-align: justify; }
.text-lead { font-size: 1.125rem; color: var(--c-slate-700); line-height: 1.75; font-weight: 300; }
@media(min-width: 768px) { .text-lead { font-size: 1.25rem; } }

.h-underline { font-family: var(--font-serif); font-size: 1.5rem; color: var(--c-eco-dark); border-bottom: 1px solid var(--c-slate-200); padding-bottom: 0.5rem; margin-bottom: 1rem; }

.step-list { display: flex; flex-direction: column; gap: 1.5rem; }
.step-item { display: flex; gap: 1rem; }
.step-num {
    flex-shrink: 0; width: 2rem; height: 2rem;
    background-color: var(--c-eco-100); color: var(--c-eco-800);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 0.875rem;
}
.step-content { font-size: 0.875rem; color: var(--c-slate-600); }
.step-content strong { display: block; color: var(--c-eco-900); margin-bottom: 0.25rem; font-size: 1rem; }

.quote-box {
    display: inline-block;
    background-color: var(--c-sand);
    padding: 1.5rem;
    border-radius: 0.5rem;
    max-width: 56rem;
    margin-top: 3rem;
}

.img-card {
    position: relative;
    height: 100%; min-height: 400px;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25);
}
.bg-map {
    position: absolute; inset: 0;
    background-image: url('https://images.unsplash.com/photo-1524661135-423995f22d0b?ixlib=rb-4.0.3&auto=format&fit=crop&w=1600&q=80');
    background-size: cover; background-position: center;
    transition: transform 1s;
}
.img-card:hover .bg-map { transform: scale(1.05); }
.overlay-grad { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,0.8), rgba(0,0,0,0.2) 50%, transparent); }
.img-text { position: absolute; bottom: 0; padding: 2rem; color: white; }

.flex-gap { display: flex; flex-direction: column; gap: 1rem; }
@media(min-width: 640px) { .flex-gap { flex-direction: row; } }
.btn-primary { background-color: var(--c-eco-900); color: white; padding: 0.75rem 1.5rem; border-radius: 0.5rem; display: flex; align-items: center; gap: 0.5rem; transition: background 0.3s; justify-content: center; }
.btn-primary:hover { background-color: var(--c-eco-800); }
.btn-secondary { background-color: white; border: 1px solid var(--c-slate-200); color: var(--c-eco-900); padding: 0.75rem 1.5rem; border-radius: 0.5rem; display: flex; align-items: center; gap: 0.5rem; transition: background 0.3s; justify-content: center; }
.btn-secondary:hover { background-color: var(--c-eco-50); }

.event-card {
    background: white; padding: 1.5rem;
    border-radius: 0.75rem; border: 1px solid var(--c-slate-100);
    box-shadow: 0 1px 2px 0 rgba(0,0,0,0.05);
    display: flex; flex-direction: column; height: 100%;
    transition: box-shadow 0.3s;
}
.event-card:hover { box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1); }
.event-tag { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.05em; color: var(--c-eco-600); text-transform: uppercase; display: block; margin-bottom: 1rem; }
.event-footer { margin-top: auto; padding-top: 1rem; border-top: 1px solid var(--c-slate-100); font-size: 0.875rem; color: var(--c-slate-500); }
.event-link { color: var(--c-eco-600); font-weight: 700; display: block; margin-top: 0.5rem; }
.event-link:hover { text-decoration: underline; }

.funding-section { overflow: hidden; position: relative; color: white; }
.blob { position: absolute; border-radius: 50%; mix-blend-mode: overlay; opacity: 0.1; filter: blur(64px); }
.blob-1 { top: 0; right: 0; width: 24rem; height: 24rem; background-color: var(--c-eco-500); }
.blob-2 { bottom: 0; left: 0; width: 16rem; height: 16rem; background-color: #eab308; }
.funding-icon { font-size: 15rem; color: var(--c-eco-700); opacity: 0.5; }

.process-list { position: relative; margin-top: 2rem; padding-left: 1rem; border-left: 2px solid var(--c-slate-200); }
.process-item { position: relative; padding-left: 2rem; margin-bottom: 2rem; }
.process-num {
    position: absolute; left: -1.7rem; top: 0;
    width: 2rem; height: 2rem;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 0.875rem; z-index: 10;
}
.num-1 { background: white; border: 2px solid var(--c-eco-500); color: var(--c-eco-900); }
.num-2 { background: var(--c-eco-500); color: white; }
.btn-full { display: block; width: 100%; text-align: center; padding: 0.75rem; background-color: var(--c-eco-600); color: white; border-radius: 0.5rem; font-weight: 700; transition: background 0.3s; margin-top: 2rem; box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1); }
.btn-full:hover { background-color: var(--c-eco-700); }

.logo-circle {
    width: 4rem; height: 4rem;
    background: white; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 1px 2px 0 rgba(0,0,0,0.05);
    margin-bottom: 1rem;
}
.about-box {
    background: white;
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: 0 1px 2px 0 rgba(0,0,0,0.05);
    border: 1px solid var(--c-slate-100);
}
@media (min-width: 768px) { .about-box { padding: 3rem; } }

footer {
    background-color: var(--c-eco-950);
    color: var(--c-slate-400);
    padding-top: 4rem; padding-bottom: 4rem;
    font-size: 0.875rem;
    border-top: 1px solid rgba(255,255,255,0.05);
}
.social-icon { width: 2.5rem; height: 2.5rem; border-radius: 50%; background: rgba(255,255,255,0.05); display: flex; align-items: center; justify-content: center; transition: all 0.3s; }
.social-icon:hover { background-color: var(--c-eco-500); color: white; }

.footer-bottom-row {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    width: 100%;
}

@media (min-width: 768px) {
    .footer-bottom-row {
        flex-direction: row;
        justify-content: space-between;
    }
}

dialog {
    padding: 0; border: none; border-radius: 1rem;
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25);
    width: 91.666667%;
    max-width: 56rem;
    margin: auto;
}
@media (min-width: 768px) { dialog { width: 66.666667%; } }
dialog::backdrop { background: rgba(0,0,0,0.6); backdrop-filter: blur(4px); }
.dialog-content { background: white; padding: 2rem; }
.dialog-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.5rem; }
.close-btn { padding: 0.5rem; border-radius: 9999px; }
.close-btn:hover { background-color: var(--c-slate-100); }

@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
@keyframes heroFadeInUp { from { opacity: 0; transform: translateY(40px); } to { opacity: 1; transform: translateY(0); } }
@keyframes softPulse {
    0% { box-shadow: 0 0 0 0 rgba(0, 119, 212, 0.7); transform: scale(1); }
    70% { box-shadow: 0 0 0 15px rgba(0, 119, 212, 0); transform: scale(1.02); }
    100% { box-shadow: 0 0 0 0 rgba(0, 119, 212, 0); transform: scale(1); }
}
@keyframes bounce { 0%, 100% { transform: translate(-50%, -25%); animation-timing-function: cubic-bezier(0.8,0,1,1); } 50% { transform: translate(-50%, 0); animation-timing-function: cubic-bezier(0,0,0.2,1); } }
@keyframes fall { to { transform: translateY(110vh); } }

.hero-animate { opacity: 0; animation: heroFadeInUp 1s ease-out forwards; }
.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.3s; }
.delay-3 { animation-delay: 0.5s; }
.delay-4 { animation-delay: 0.7s; }
.delay-5 { animation-delay: 1.0s; }

.btn-pulse { animation: softPulse 2.5s infinite; }

.fade-up { opacity: 0; transform: translateY(30px); transition: opacity 0.8s ease-out, transform 0.8s ease-out; }
.fade-up.visible { opacity: 1 !important; transform: translateY(0) !important; }

.rain-container { position: absolute; top: 0; left: 0; width: 100%; height: 100%; overflow: hidden; pointer-events: none; z-index: 1; }
.raindrop { position: absolute; background-color: rgba(255, 255, 255, 0.15); width: 1px; height: 60px; top: -60px; animation: fall linear infinite; }

.blog .card,
.archive .card {
  display: flex;
  flex-direction: column;
}

.blog .card-img-wrap,
.archive .card-img-wrap {
  position: relative;
}

.blog .card-content,
.archive .card-content {
  position: static !important;
  opacity: 1 !important;
  transform: none !important;
  pointer-events: auto !important;
  background: #fff !important;
  padding: 1.25rem 1.25rem 1.5rem !important;
}

.blog .card-title,
.archive .card-title {
  margin-top: .35rem;
  margin-bottom: .5rem;
}

.blog .card-title a,
.archive .card-title a {
  color: var(--c-slate-900) !important;
}

.blog .card-text,
.archive .card-text {
  color: var(--c-slate-600) !important;
  font-size: .95rem;
  line-height: 1.55;
}

.blog .date,
.archive .date {
  display: block;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--c-slate-500);
}

#mobile-menu .mobile-menu-list,
#mobile-menu .menu {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  width: 100%;
  padding: 0 1.25rem;
  margin: 0;
}

#mobile-menu .menu-item {
  width: 100%;
}

#mobile-menu .menu-item > a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  width: 100%;
  padding: 1rem 1.1rem;
  border-radius: 1.1rem;
  color: rgba(255,255,255,0.94);
  font-size: clamp(1.15rem, 3.7vw, 1.45rem);
  line-height: 1.15;
  font-weight: 650;
  letter-spacing: 0.01em;

}

#mobile-menu .menu-item > a:hover {
  background: rgba(255,255,255,0.11);
  border-color: rgba(255,255,255,0.2);
  transform: translateY(-1px);
}

#mobile-menu .menu-item > a:focus-visible {
  outline: 2px solid rgba(0,119,212,0.95);
  outline-offset: 3px;
}

#mobile-menu .menu-item-has-children > a::after {
  content: "▾";
  display: inline-block;
  font-size: 0.95rem;
  opacity: 0.9;
  transform: translateY(1px);
  transition: transform 0.2s ease;
  margin-left: 0.1rem;
}

#mobile-menu .menu-item-has-children.open > a {
  background: rgba(0,119,212,0.20);
  border-color: rgba(0,119,212,0.42);
}

#mobile-menu .menu-item-has-children.open > a::after {
  transform: rotate(180deg) translateY(-1px);
}

#mobile-menu .sub-menu {
  display: none;
  flex-direction: column;
  gap: 0.6rem;
  margin-top: 0.75rem;
  padding: 0.9rem 0.9rem 1rem;
  border-radius: 1.1rem;
  width: 100%;
}

#mobile-menu .menu-item-has-children.open > .sub-menu {
  display: flex;
}

#mobile-menu .sub-menu .menu-item > a {
  justify-content: center;
  font-size: clamp(1.02rem, 3.2vw, 1.15rem);
  padding: 0.85rem 1rem;
  border-radius: 0.95rem;
  font-weight: 600;
}

#mobile-menu .sub-menu .menu-item > a:hover {
  background: rgba(0,119,212,0.22);
  border-color: rgba(0,119,212,0.45);
}

#mobile-menu .current-menu-item > a,
#mobile-menu .current_page_item > a,
#mobile-menu .current-menu-ancestor > a,
#mobile-menu .current_page_ancestor > a {
  border-color: rgba(0,119,212,0.55);
  color: #fff;
}

#mobile-menu .sub-menu .current-menu-item > a,
#mobile-menu .sub-menu .current_page_item > a {
  background: rgba(0,119,212,0.26);
  border-color: rgba(0,119,212,0.55);
  color: #fff;
}

@media (max-width: 380px) {
  #mobile-menu {
    padding-top: 6.25rem;
  }
  #mobile-menu .menu-item > a {
    padding: 0.9rem 0.95rem;
    border-radius: 1rem;
  }
  #mobile-menu .sub-menu {
    padding: 0.8rem 0.8rem 0.9rem;
    border-radius: 1rem;
  }
}
/* --- HERO iOS FIX: rozmazane/rozciągnięte tło --- */
@supports (-webkit-touch-callout: none) {
  header {
    background-attachment: scroll !important;
    background-position: center center !important;
    background-size: cover !important;
  }
}

/* Dodatkowo: stabilniejsze vh na mobile */
header {
  min-height: 100svh;
  height: 100vh;
}
/* --- MOBILE MENU: LEFT ALIGN + CLEAN SUBMENUS (WKLEJ NA KONIEC) --- */

#mobile-menu .mobile-content{
  text-align: left !important;
  font-family: var(--font-sans) !important;
}

/* lista bez centrowania */
#mobile-menu .menu,
#mobile-menu .mobile-menu-list{
  padding: 0 !important;
}

/* linki: od lewej, równa kolumna, bez centrowania */
#mobile-menu .menu-item > a{
  justify-content: space-between !important;
  text-align: left !important;
  padding-left: 0.75rem !important;
  padding-right: 0.75rem !important;
}

/* jeśli w środku linka jest span/label – też od lewej */
#mobile-menu .menu-item > a *{
  text-align: left !important;
}

/* strzałki: zawsze po prawej, równe */
#mobile-menu .menu-item-has-children > a::after{
  margin-left: 0.75rem !important;
}

/* SUBMENU: wyraźne wcięcie i mniejszy font, żeby “nie mieszało się” */
#mobile-menu .sub-menu{
  margin: 0.25rem 0 0.8rem 0 !important;
  padding: 0.25rem 0 0.25rem 1.15rem !important;
  border-left: 2px solid rgba(0,119,212,0.55) !important;
}

/* elementy submenu – bardziej “secondary”, bez krzyczenia */
#mobile-menu .sub-menu .menu-item > a{
  padding-left: 0.55rem !important;
  padding-right: 0.75rem !important;
  font-size: 0.95rem !important;
  font-weight: 500 !important;
  opacity: 0.92 !important;
}

/* główne pozycje: mniej “serifowego” vibe i mniej wielkości */
#mobile-menu .menu-item > a{
  font-size: 1.05rem !important;
  font-weight: 650 !important;
  letter-spacing: 0.005em !important;
}

/* oddziel APPLY od listy (żeby nie wyglądało jak “jeszcze jeden link”) */
#mobile-menu .btn-apply,
#mobile-menu a.btn-apply,
#mobile-menu .mobile-apply-btn{
  margin-top: 1.25rem !important;
}

/* jeśli wciąż widzisz “panele/belki” na pozycjach – wyłącz tło na li i submenu */
#mobile-menu .menu-item,
#mobile-menu .sub-menu .menu-item{
  background: transparent !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}
.footer-top {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-bottom: 3rem;
  align-items: start;
}

@media (min-width: 768px) {
  .footer-top {
    grid-template-columns: 1.25fr 0.9fr 0.9fr 1.25fr;
    gap: 2.25rem;
  }
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
  text-align: center;
}

@media (min-width: 768px) {
  .footer-col {
    align-items: flex-start;
    text-align: left;
  }
  .footer-col.right {
    align-items: flex-end;
    text-align: right;
  }
}

.footer-partner-card {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  padding: 1.1rem 1.1rem;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.03);
  border-radius: 1rem;
  width: 100%;
}

.footer-partner-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--c-slate-400);
}

.footer-partner-logo{
  display: block;
  width: auto !important;
  height: auto !important;
  max-height: 120px;
  max-width: 220px;
  object-fit: contain;
  object-position: left center;
  opacity: 0.95;
  filter: drop-shadow(0 6px 16px rgba(0,0,0,0.25));
}
