:root {
    --ink: #162622;
    --muted: #5b6b66;
    --paper: #f5f8f6;
    --surface: #e8f0ec;
    --white: #ffffff;
    --forest: #0d6654;
    --forest-deep: #073c32;
    --teal: #1b9d87;
    --gold: #f0b44c;
    --coral: #dd5c49;
    --line: #d4e1db;
    --success: #18724d;
    --max-width: 1180px;
    --radius: 14px;
    --shadow: 0 16px 40px rgba(7, 60, 50, 0.08);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: "Trebuchet MS", "Segoe UI", sans-serif; font-size: 16px; line-height: 1.6; }
a { color: var(--forest); }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
.skip-link { position: absolute; left: -9999px; top: 0; z-index: 3000; padding: .75rem 1rem; background: var(--gold); color: var(--ink); }
.skip-link:focus { left: 1rem; }

header { position: sticky; top: 0; z-index: 1000; background: rgba(7, 60, 50, .97); color: var(--white); border-bottom: 3px solid var(--gold); }
.header-container { width: min(var(--max-width), 92%); min-height: 76px; margin: auto; display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.site-brand { display: inline-flex; align-items: center; gap: .8rem; color: var(--white); text-decoration: none; min-width: 0; }
.site-logo { width: 46px; height: 46px; object-fit: contain; border-radius: 50%; background: var(--white); padding: 2px; flex: 0 0 auto; }
.site-brand-text strong, .site-brand-text span { display: block; }
.site-brand-text strong { font-size: 1rem; letter-spacing: .01em; }
.site-brand-text span { color: #c8e5dc; font-size: .72rem; }
.site-nav { display: flex; align-items: center; }
.nav-list { display: flex; align-items: center; gap: 1.25rem; list-style: none; margin: 0; padding: 0; }
.nav-list > li { position: relative; }
.nav-list a, .submenu-toggle { color: var(--white); background: transparent; border: 0; text-decoration: none; cursor: pointer; font-weight: 700; font-size: .9rem; padding: .4rem 0; }
.nav-list a:hover, .nav-list a[aria-current="page"], .submenu-toggle:hover { color: var(--gold); }
.submenu { position: absolute; top: calc(100% + .45rem); right: 0; display: none; min-width: 210px; margin: 0; padding: .6rem; list-style: none; background: var(--white); border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow); }
.submenu.is-open { display: grid; gap: .25rem; }
.submenu a { display: block; padding: .65rem .75rem; color: var(--forest-deep); border-radius: 7px; white-space: nowrap; }
.submenu a:hover, .submenu a[aria-current="page"] { background: var(--surface); color: var(--forest-deep); }
.menu-toggle { display: none; border: 1px solid rgba(255,255,255,.35); border-radius: 8px; background: transparent; color: var(--white); padding: .5rem .7rem; cursor: pointer; }

.hero { background: linear-gradient(120deg, var(--forest-deep), var(--forest)); color: var(--white); padding: 5rem 0 6rem; }
.hero-inner { width: min(820px, 92%); margin: auto; text-align: center; }
.hero h1 { max-width: 780px; margin: 0 auto 1rem; font-size: clamp(2.15rem, 5vw, 4rem); line-height: 1.08; letter-spacing: -.02em; }
.hero h2 { margin-top: 0; }
.hero p { max-width: 700px; margin: auto; color: #e1f0ea; font-size: 1.08rem; }
.eyebrow { margin-bottom: 1rem !important; color: var(--gold) !important; font-size: .78rem !important; font-weight: 900; letter-spacing: .13em; }
.hero-search { display: flex; max-width: 720px; margin: 2rem auto 1rem; padding: .35rem; gap: .35rem; background: var(--white); border-radius: 10px; }
.hero-search input { min-width: 0; flex: 1; border: 0; outline: 0; padding: .8rem; color: var(--ink); }
.hero-actions { display: flex; justify-content: center; gap: .75rem; margin-top: 1rem; }
.btn-ghost { background: transparent; border-color: rgba(255,255,255,.45); color: var(--white); }
.section-action { margin-top: 2rem !important; }
.cta-panel { background: var(--forest-deep); color: var(--white); }
.cta-panel h2 { color: var(--white); }
.cta-panel p { color: #d8ebe4; }
.scholarship-eyebrow { margin-bottom: .7rem !important; color: var(--teal) !important; }
.opportunity-card { max-width: 860px; padding: 1.5rem; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); transition: transform .2s ease, box-shadow .2s ease; }
.opportunity-card:hover { transform: translateY(-3px); box-shadow: 0 20px 44px rgba(7, 60, 50, .12); }
.opportunity-card-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; }
.opportunity-country { margin: 0 0 .35rem !important; color: var(--forest); font-size: .78rem !important; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.opportunity-card h3 { margin: 0; color: var(--forest-deep); font-size: clamp(1.35rem, 3vw, 1.9rem); line-height: 1.15; }
.opportunity-status { flex: 0 0 auto; padding: .35rem .65rem; border-radius: 999px; background: var(--surface); color: var(--forest-deep); font-size: .75rem; font-weight: 900; }
.opportunity-description { max-width: 720px; margin: 1rem 0 1.25rem !important; }
.opportunity-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .7rem; margin: 0; }
.opportunity-facts div { padding: .75rem; background: var(--paper); border: 1px solid var(--line); border-radius: 9px; }
.opportunity-facts dt { color: var(--forest-deep); font-size: .78rem; font-weight: 900; }
.opportunity-facts dd { margin: .2rem 0 0; color: var(--muted); font-size: .88rem; line-height: 1.4; }
.opportunity-card-actions { display: flex; flex-wrap: wrap; gap: .65rem; margin-top: 1.25rem; }
.opportunity-support { margin-top: 1.35rem; padding: 1rem; background: #fff8e5; border: 1px solid #eed28a; border-radius: 10px; }
.opportunity-support h4 { margin: 0 0 .25rem; color: var(--forest-deep); }
.opportunity-support p { margin: 0 0 .75rem; color: var(--muted); font-size: .9rem; }
.opportunity-contact-actions { display: flex; flex-wrap: wrap; gap: .6rem; }
.opportunity-contact-actions a { display: inline-flex; align-items: center; min-height: 42px; padding: .55rem .8rem; border-radius: 8px; background: var(--forest); color: var(--white); font-size: .86rem; font-weight: 800; text-decoration: none; }
.opportunity-contact-actions a:hover { background: var(--forest-deep); }
.scholarships-page-intro { padding-bottom: 1rem; }
.scholarship-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.scholarship-card { display: flex; min-width: 0; flex-direction: column; overflow: hidden; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 8px 24px rgba(7,60,50,.05); transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.scholarship-card:hover { transform: translateY(-3px); border-color: var(--teal); box-shadow: var(--shadow); }
.scholarship-card-image-wrap { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: var(--surface); }
.scholarship-card-image { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.scholarship-card:hover .scholarship-card-image { transform: scale(1.03); }
.scholarship-image-country { position: absolute; top: .6rem; right: .65rem; display: inline-flex; align-items: center; justify-content: center; width: 2.25rem; height: 2.25rem; border: 2px solid var(--white); border-radius: 50%; background: rgba(7,60,50,.82); font-size: 1.2rem; box-shadow: 0 4px 12px rgba(0,0,0,.18); }
.scholarship-card-header { position: static; z-index: auto; display: flex; align-items: flex-start; justify-content: space-between; gap: .75rem; padding: 1.1rem 1.15rem .9rem; background: var(--white); color: var(--ink); border-bottom: 1px solid var(--line); }
.scholarship-country { display: inline-flex; align-items: center; gap: .55rem; margin: 0 0 .7rem; color: var(--forest-deep); font-size: .82rem; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.scholarship-flag { display: inline-flex; align-items: center; justify-content: center; width: 2rem; height: 2rem; border: 1px solid #e6c6c6; border-radius: 50%; background: #fff5f5; font-size: 1.15rem; }
.scholarship-card h2 { display: -webkit-box; overflow: hidden; margin: 0; color: var(--forest-deep); font-size: 1.08rem; line-height: 1.3; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.scholarship-year { flex: 0 0 auto; padding: .3rem .5rem; border-radius: 999px; background: var(--surface); color: var(--forest-deep); font-size: .7rem; font-weight: 900; }
.scholarship-card-summary { min-height: 2.8em; margin: 0 1.15rem 1rem; color: var(--muted); font-size: .82rem; line-height: 1.45; }
.scholarship-card-facts { display: grid; gap: .45rem; margin: 0 1.15rem; }
.scholarship-card-facts div { display: grid; grid-template-columns: 1fr 1.2fr; gap: .5rem; padding: .5rem .6rem; background: var(--paper); border: 1px solid var(--line); border-radius: 8px; }
.scholarship-card-facts dt { color: var(--forest-deep); font-size: .74rem; font-weight: 900; }
.scholarship-card-facts dd { margin: 0; color: var(--muted); font-size: .74rem; line-height: 1.35; text-align: right; }
.scholarship-card-action { width: calc(100% - 2.3rem); margin: 1rem 1.15rem 0; }
.scholarship-card-support { margin: 1rem 1.15rem 1.15rem; padding-top: .8rem; border-top: 1px solid var(--line); color: var(--muted); font-size: .74rem; }
.scholarship-card-support p { margin: 0 0 .55rem; }
.scholarship-card-contact { display: flex; flex-wrap: wrap; gap: .45rem; }
.scholarship-card-contact a { padding: .35rem .5rem; border-radius: 6px; background: var(--surface); color: var(--forest-deep); font-size: .75rem; font-weight: 800; text-decoration: none; }
.scholarship-card-contact a:hover { background: var(--teal); color: var(--white); }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.hero-button, .btn, .btn-apply, .btn-details { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: .65rem 1rem; border-radius: 8px; border: 1px solid transparent; text-align: center; text-decoration: none; font-weight: 800; cursor: pointer; }
.hero-button { background: var(--gold); color: var(--ink); }
.hero-button:hover, .btn-apply:hover { background: #ffd27b; }
.btn { background: var(--forest); color: var(--white); }
.btn:hover { background: var(--forest-deep); }
.center { text-align: center; }

.section { width: min(var(--max-width), 92%); margin: 0 auto; padding: 5.5rem 0; }
.section > h2, .section > p { max-width: 760px; }
.section > h2 { margin: 0 0 .7rem; color: var(--forest-deep); font-size: clamp(1.7rem, 3vw, 2.4rem); line-height: 1.15; }
.section > p { margin: 0 0 2rem; color: var(--muted); }
.categories { background: transparent; }
.category-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.category { display: block; padding: 1.55rem; background: var(--white); color: inherit; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 8px 24px rgba(7,60,50,.04); text-decoration: none; }
.category:hover { border-color: var(--teal); transform: translateY(-2px); }
.category h3 { margin: 0 0 .45rem; color: var(--forest-deep); font-size: 1.05rem; }
.category p { margin: 0; color: var(--muted); font-size: .94rem; }

.search-box { max-width: 760px; }
.search-box input, .search-box textarea { width: 100%; border: 1px solid var(--line); border-radius: 8px; padding: .7rem .8rem; background: var(--paper); color: var(--ink); }
.search-box form { display: grid; gap: 1.15rem; padding: 1.75rem; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.search-box label { display: block; margin-bottom: .35rem; color: var(--forest-deep); font-weight: 800; }
.form-field { display: grid; gap: .35rem; }
.team-activity-grid { margin-top: 2rem; }
.image-category { padding: 0; overflow: hidden; }
.category-image { height: 220px; background: var(--surface); }
.category-image img { width: 100%; height: 100%; object-fit: cover; }
.category-copy { padding: 1.35rem; }
.team-introduction-inner { width: min(var(--max-width), 92%); margin: 2rem auto 1rem; }
.team-introduction-inner h2 { margin-bottom: .5rem; color: var(--forest-deep); font-size: 1.8rem; }
.team-section { width: min(1440px, 96%); margin: 0 auto; padding: 1rem 0 4rem; }
.team-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 2px; background: var(--white); }
.team-member { position: relative; aspect-ratio: 1 / 1.08; overflow: hidden; background: #dfe5e2; }
.member-photo { width: 100%; height: 100%; object-fit: cover; object-position: center; display: block; }
.member-overlay { position: absolute; right: 0; bottom: 0; left: 0; padding: 4.5rem .7rem .65rem; color: var(--white); background: linear-gradient(transparent, rgba(0, 0, 0, .88)); }
.member-overlay h3 { margin: 0; color: var(--white); font-size: clamp(.78rem, 1.15vw, 1.05rem); line-height: 1.2; }
.member-overlay p, .member-overlay span { display: block; margin: .22rem 0 0; color: var(--white); font-size: clamp(.62rem, .85vw, .8rem); line-height: 1.25; }
.member-overlay span { opacity: .9; }
.linkedin-link { position: absolute; top: .55rem; right: .6rem; z-index: 1; display: inline-flex; align-items: center; justify-content: center; width: 1.45rem; height: 1.45rem; color: var(--white); font-size: .95rem; font-weight: 900; text-decoration: none; }
.linkedin-link:hover, .linkedin-link:focus-visible { color: var(--gold); }
.team-member:hover .member-photo { transform: scale(1.03); transition: transform .35s ease; }
footer { margin-top: 3rem; padding: 3.5rem 0 1.2rem; background: var(--forest-deep); color: #d8ebe4; border-top: 4px solid var(--gold); }
.footer-container { width: min(var(--max-width), 92%); margin: auto; display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 2rem; }
.footer-column h3 { margin: 0 0 .7rem; color: var(--white); }
.footer-column a { display: block; width: fit-content; margin: .3rem 0; color: #d8ebe4; text-decoration: none; }
.footer-column a:hover { color: var(--gold); }
.footer-logo { width: 54px; height: 54px; margin-bottom: .8rem; padding: 2px; border-radius: 50%; background: var(--white); }
.footer-bottom { width: min(var(--max-width), 92%); margin: 2rem auto 0; padding-top: 1rem; border-top: 1px solid rgba(255,255,255,.15); color: #a9c8bd; font-size: .84rem; }

@media (max-width: 900px) {
    .menu-toggle { display: inline-flex; }
    .site-nav { position: absolute; left: 4%; right: 4%; top: 76px; display: none; padding: .8rem; background: var(--forest-deep); border: 1px solid rgba(255,255,255,.18); border-radius: 0 0 12px 12px; }
    .site-nav.is-open { display: block; }
    .nav-list { display: grid; gap: .2rem; }
    .nav-list a, .submenu-toggle { display: block; width: 100%; padding: .7rem; text-align: left; }
    .submenu { position: static; min-width: 0; margin: .15rem 0 0; border: 0; box-shadow: none; background: rgba(255,255,255,.06); transform: none; }
    .submenu a { color: var(--white); }
    .team-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .scholarship-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
    .header-container { min-height: 68px; }
    .site-brand-text span { display: none; }
    .hero { padding: 3.8rem 0 4.7rem; }
    .hero h1 { font-size: 2.25rem; }
    .hero-search, .hero-actions { flex-direction: column; }
    .hero-search button, .hero-actions a { width: 100%; }
    .section { padding: 4rem 0; }
    .category-list, .footer-container { grid-template-columns: 1fr; }
    .opportunity-card-header { flex-direction: column; }
    .opportunity-facts { grid-template-columns: 1fr; }
    .opportunity-card-actions, .opportunity-contact-actions { flex-direction: column; }
    .opportunity-card-actions a, .opportunity-contact-actions a { width: 100%; }
    .scholarship-grid { grid-template-columns: 1fr; }
    .team-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .team-section { width: 100%; }
}
