/* ============================================
   DR. AISSA — Global Design System
   Colors: Green · Brown · Orange · White
   ============================================ */

/* ---------- CSS Custom Properties ---------- */
:root {
    /* Brand Colors */
    --green-deep: #1B3A12;
    --green-primary: #2D5016;
    --green-light: #4A7A2E;
    --green-pale: #E8F0E3;
    --brown-dark: #5C4A0E;
    --brown-primary: #8B6914;
    --brown-light: #B8922E;
    --brown-pale: #F5EDD8;
    --orange-primary: #D4760A;
    --orange-light: #E8952E;
    --orange-pale: #FDF0E0;
    --white: #FFFFFF;
    --off-white: #FAFAF7;
    --cream: #F7F5F0;
    --text-dark: #1A1A1A;
    --text-body: #3D3D3D;
    --text-muted: #7A7A7A;
    --border-light: #E5E0D5;

    /* Typography */
    --font-heading: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    /* Sizing */
    --nav-height: 80px;
    --section-padding: 100px;
    --container-max: 1200px;

    /* Transitions */
    --ease-smooth: cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ---------- Reset & Base ---------- */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-body);
    color: var(--text-body);
    background-color: var(--off-white);
    line-height: 1.7;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s var(--ease-smooth);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul {
    list-style: none;
}

.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
}

/* ---------- Language Content System ---------- */
.lang-content {
    display: none;
}

.lang-content.active {
    display: block;
}

/* ---------- Scroll Animations ---------- */
[data-animate] {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s var(--ease-smooth), transform 0.8s var(--ease-smooth);
}

[data-animate].in-view {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   NAVIGATION
   ============================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--nav-height);
    z-index: 1000;
    background: rgba(250, 250, 247, 0.88);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid transparent;
    transition: all 0.4s var(--ease-smooth);
}

.navbar.scrolled {
    background: rgba(250, 250, 247, 0.96);
    border-bottom-color: var(--border-light);
    box-shadow: 0 2px 24px rgba(0, 0, 0, 0.04);
}

.nav-inner {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo img {
    height: 50px;
    width: auto;
}

.nav-links {
    display: flex;
    gap: 32px;
}

.nav-links a {
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-body);
    position: relative;
    padding: 4px 0;
    transition: color 0.3s var(--ease-smooth);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--green-primary);
    transition: width 0.3s var(--ease-smooth);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--green-primary);
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

/* Language Switcher with Flags */
.lang-switch {
    display: flex;
    gap: 6px;
    align-items: center;
}

.lang-btn {
    display: flex;
    align-items: center;
    gap: 5px;
    font-family: var(--font-body);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    padding: 6px 10px;
    border: 1px solid transparent;
    border-radius: 6px;
    cursor: pointer;
    background: transparent;
    color: var(--text-muted);
    transition: all 0.3s var(--ease-smooth);
}

.lang-btn:hover {
    color: var(--text-dark);
    background: var(--cream);
}

.lang-btn.active {
    background: var(--green-primary);
    color: var(--white);
    border-color: var(--green-primary);
    box-shadow: 0 2px 8px rgba(45, 80, 22, 0.25);
}

.lang-btn .flag-icon {
    width: 18px;
    height: 13px;
    border-radius: 2px;
    object-fit: cover;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.08);
}

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    z-index: 1001;
}

.hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-dark);
    border-radius: 2px;
    transition: all 0.3s var(--ease-smooth);
}

.hamburger.open span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.open span:nth-child(2) {
    opacity: 0;
}

.hamburger.open span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ============================================
   PAGE HEADER (inner pages)
   ============================================ */
.page-header {
    padding: 140px 0 60px;
    background: linear-gradient(160deg, var(--off-white) 0%, var(--green-pale) 50%, var(--brown-pale) 100%);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-light), transparent);
}

.page-header .section-label {
    margin-bottom: 12px;
}

.page-header .section-title {
    margin-bottom: 0;
}

/* ============================================
   HERO SECTION (Home)
   ============================================ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: var(--nav-height) 24px 60px;
    overflow: hidden;
    background: linear-gradient(160deg, var(--off-white) 0%, var(--green-pale) 40%, var(--brown-pale) 70%, var(--orange-pale) 100%);
}

.hero-bg-decoration {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.hero-africa-map {
    width: 60%;
    max-width: 600px;
    opacity: 0.08;
    animation: floatSlow 20s ease-in-out infinite;
}

@keyframes floatSlow {

    0%,
    100% {
        transform: translateY(0) scale(1);
    }

    50% {
        transform: translateY(-20px) scale(1.02);
    }
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-logo-wrap {
    margin-bottom: 24px;
}

.hero-logo {
    max-width: 275px;
    margin: 0 auto;
    filter: drop-shadow(0 4px 20px rgba(0, 0, 0, 0.08));
    animation: fadeInScale 1.2s var(--ease-bounce) forwards;
    opacity: 0;
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.85) translateY(20px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.hero-tagline {
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--orange-primary);
    margin-bottom: 20px;
    opacity: 0;
    animation: fadeUp 0.8s var(--ease-smooth) 0.4s forwards;
}

.hero-headline {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 600;
    color: var(--green-deep);
    line-height: 1.1;
    margin-bottom: 16px;
    opacity: 0;
    animation: fadeUp 0.8s var(--ease-smooth) 0.6s forwards;
}

.hero-subheadline {
    font-family: var(--font-body);
    font-size: clamp(1rem, 2vw, 1.15rem);
    font-weight: 300;
    color: var(--text-muted);
    letter-spacing: 0.03em;
    margin-bottom: 40px;
    opacity: 0;
    animation: fadeUp 0.8s var(--ease-smooth) 0.8s forwards;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    opacity: 0;
    animation: fadeUp 0.8s var(--ease-smooth) 1s forwards;
}

/* Primary Button */
.btn-primary {
    display: inline-block;
    font-family: var(--font-body);
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 15px 36px;
    background: var(--green-primary);
    color: var(--white);
    border: 2px solid var(--green-primary);
    border-radius: 50px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.4s var(--ease-smooth);
    box-shadow: 0 4px 16px rgba(45, 80, 22, 0.2);
}

.btn-primary:hover {
    background: var(--green-deep);
    border-color: var(--green-deep);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(45, 80, 22, 0.3);
}

/* Secondary Button (outline) */
.btn-secondary {
    display: inline-block;
    font-family: var(--font-body);
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 15px 36px;
    background: transparent;
    color: var(--green-primary);
    border: 2px solid var(--green-primary);
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.4s var(--ease-smooth);
}

.btn-secondary:hover {
    background: var(--green-primary);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(45, 80, 22, 0.25);
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
}

.scroll-line {
    width: 1px;
    height: 48px;
    background: linear-gradient(to bottom, var(--brown-light), transparent);
    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {

    0%,
    100% {
        opacity: 0.3;
        transform: scaleY(0.6);
    }

    50% {
        opacity: 1;
        transform: scaleY(1);
    }
}

/* ============================================
   SECTION SHARED STYLES
   ============================================ */
.section {
    padding: var(--section-padding) 0;
    position: relative;
}

.section-label {
    font-family: var(--font-body);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--orange-primary);
    margin-bottom: 16px;
    text-align: center;
}

.section-title {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 600;
    color: var(--green-deep);
    line-height: 1.2;
    margin-bottom: 32px;
    text-align: center;
}

.section-title.centered {
    text-align: center;
}

/* ============================================
   CV / ABOUT SECTION (Homepage)
   ============================================ */
.cv-section {
    background: linear-gradient(165deg, var(--cream) 0%, var(--green-pale) 40%, #d8e8cf 100%);
}

.cv-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 80px;
    align-items: start;
}

.cv-visual {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cv-decorative-circle {
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--green-pale) 0%, var(--brown-pale) 100%);
    opacity: 0.5;
}

.cv-logo-large {
    position: relative;
    z-index: 1;
    max-width: 280px;
    filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.08));
}

.cv-text p {
    font-size: 1.05rem;
    line-height: 1.85;
    color: var(--text-body);
    margin-bottom: 16px;
}

.cv-text p.lead {
    font-size: 1.15rem;
    font-weight: 400;
    color: var(--text-dark);
}

.cv-highlights {
    margin-top: 32px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.cv-highlight-item {
    padding: 20px 24px;
    background: var(--cream);
    border-radius: 12px;
    border-left: 3px solid var(--green-primary);
}

.cv-highlight-item h4 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--green-deep);
    margin-bottom: 6px;
}

.cv-highlight-item p {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: 0;
}

/* --- Accordion for expertise highlights --- */
.cv-accordion-header {
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    user-select: none;
    transition: color 0.3s var(--ease-smooth);
}

.cv-accordion-header:hover {
    color: var(--orange-primary);
}

.cv-accordion-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    position: relative;
    margin-left: 12px;
}

.cv-accordion-icon::before,
.cv-accordion-icon::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 12px;
    height: 2px;
    background: currentColor;
    border-radius: 1px;
    transition: transform 0.35s var(--ease-smooth);
}

.cv-accordion-icon::before {
    transform: translate(-50%, -50%);
}

.cv-accordion-icon::after {
    transform: translate(-50%, -50%) rotate(90deg);
}

.cv-accordion-item.open .cv-accordion-icon::after {
    transform: translate(-50%, -50%) rotate(0deg);
}

.cv-accordion-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s var(--ease-smooth), padding 0.4s var(--ease-smooth);
    padding-top: 0;
}

.cv-accordion-item.open .cv-accordion-body {
    max-height: 200px;
    padding-top: 10px;
}

/* ============================================
   ABOUT PAGE
   ============================================ */
.about-content {
    background: linear-gradient(165deg, var(--cream) 0%, var(--green-pale) 100%);
}

.academic-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.academic-text p {
    font-size: 1.05rem;
    line-height: 1.85;
    color: var(--text-body);
    margin-bottom: 16px;
}

.academic-text p.lead {
    font-size: 1.15rem;
    font-weight: 400;
    color: var(--text-dark);
}

.academic-visual {
    display: flex;
    align-items: center;
    justify-content: center;
}

.institutional-logo-large {
    max-width: 300px;
    opacity: 0.85;
    filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.06));
}

/* ============================================
   EXPERTISE CARDS
   ============================================ */
.expertise-section {
    background: linear-gradient(165deg, var(--cream) 0%, var(--green-pale) 40%, #d8e8cf 100%);
}

.institutional-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 48px;
}

.inst-card {
    background: var(--white);
    border-radius: 16px;
    padding: 40px 32px;
    border: 1px solid var(--border-light);
    transition: all 0.4s var(--ease-smooth);
    position: relative;
    overflow: hidden;
}

.inst-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--green-primary), var(--orange-primary));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s var(--ease-smooth);
}

.inst-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.06);
    border-color: transparent;
}

.inst-card:hover::before {
    transform: scaleX(1);
}

.inst-card-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 24px;
    color: var(--green-primary);
}

.inst-card-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--green-deep);
    margin-bottom: 20px;
}

.inst-card-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.inst-card-list li {
    position: relative;
    padding-left: 18px;
    font-size: 0.9rem;
    color: var(--text-body);
    line-height: 1.6;
}

.inst-card-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 9px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--orange-primary);
}

/* ============================================
   SERVICES SECTION
   ============================================ */
.services-section {
    background: var(--green-deep);
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.services-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(212, 118, 10, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

.services-section .section-label {
    color: var(--orange-light);
}

.services-section .section-title {
    color: var(--white);
}

.service-strip {
    display: flex;
    align-items: flex-start;
    gap: 32px;
    padding: 40px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.4s var(--ease-smooth);
}

.service-strip:last-child {
    border-bottom: none;
}

.service-strip:hover {
    padding-left: 16px;
}

.service-number {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.12);
    line-height: 1;
    min-width: 80px;
    transition: color 0.4s var(--ease-smooth);
}

.service-strip:hover .service-number {
    color: var(--orange-primary);
}

.service-content h3 {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 500;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 8px;
}

.service-content p {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.6;
}

.service-strip:hover .service-content h3 {
    color: var(--white);
}

/* ============================================
   CONTACT SECTION
   ============================================ */
.contact-section {
    background: linear-gradient(165deg, var(--cream) 0%, var(--brown-pale) 40%, #ecdfc5 100%);
}

.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 80px;
    align-items: start;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-top: 8px;
}

.contact-detail-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.contact-icon {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
    color: var(--green-primary);
    margin-top: 2px;
}

.contact-detail-item div {
    font-size: 0.925rem;
    line-height: 1.7;
    color: var(--text-body);
}

.contact-detail-item a {
    color: var(--green-primary);
    font-weight: 500;
}

.contact-detail-item a:hover {
    color: var(--orange-primary);
}

.contact-institutional-info {
    text-align: center;
    padding: 48px 0 0;
    margin-top: 48px;
    border-top: 1px solid var(--border-light);
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.8;
}

/* Contact Form */
.contact-form-wrap {
    background: var(--cream);
    border-radius: 20px;
    padding: 48px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group-full {
    grid-column: span 2;
}

.form-group label {
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.form-group input,
.form-group select,
.form-group textarea {
    font-family: var(--font-body);
    font-size: 1rem;
    padding: 14px 18px;
    border: 1px solid var(--border-light);
    border-radius: 10px;
    background: var(--white);
    color: var(--text-dark);
    transition: all 0.3s var(--ease-smooth);
    outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--green-primary);
    box-shadow: 0 0 0 3px rgba(45, 80, 22, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.contact-form .btn-primary {
    align-self: flex-start;
    margin-top: 8px;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background: var(--green-deep);
    padding: 60px 0;
}

.footer-grid {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 40px;
}

.footer-logo {
    height: 55px;
    width: auto;
    margin-bottom: 16px;
}

.footer-tagline {
    font-family: var(--font-body);
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
    letter-spacing: 0.08em;
}

.footer-links {
    display: flex;
    gap: 28px;
}

.footer-links a {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--white);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 24px;
    text-align: center;
}

.footer-copy {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.35);
}

/* ============================================
   CONTACT COUNTRY BLOCKS
   ============================================ */
.contact-country-block {
    padding: 24px;
    background: var(--off-white);
    border-radius: 16px;
    border: 1px solid var(--border-light);
}

.country-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-light);
}

.country-flag {
    width: 28px;
    height: 20px;
    border-radius: 3px;
    object-fit: cover;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
}

.country-header h3 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--green-deep);
}

/* ============================================
   CV EMBEDDED CARD (About Page)
   ============================================ */
.cv-embed-section {
    background: linear-gradient(165deg, var(--cream) 0%, var(--green-pale) 40%, #d8e8cf 100%);
}

.cv-card {
    max-width: 800px;
    margin: 0 auto;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 16px 60px rgba(0, 0, 0, 0.1);
    background: var(--white);
}

/* --- CV Header: Green/Orange diagonal background + name + photo --- */
.cv-card-header {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 48px 48px 48px 48px;
    min-height: 220px;
    overflow: hidden;
}

.cv-card-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 65%;
    height: 100%;
    background: linear-gradient(135deg, var(--green-deep) 0%, var(--green-primary) 100%);
    clip-path: polygon(0 0, 100% 0, 80% 100%, 0 100%);
    z-index: 1;
}

.cv-card-header::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 55%;
    height: 100%;
    background: linear-gradient(135deg, var(--orange-primary) 0%, #d4782e 100%);
    clip-path: polygon(30% 0, 100% 0, 100% 100%, 10% 100%);
    z-index: 0;
}

.cv-card-name {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.cv-first-name,
.cv-last-name {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--white);
    line-height: 1.05;
    letter-spacing: 2px;
}

.cv-first-name {
    font-size: clamp(2.8rem, 7vw, 4.5rem);
}

.cv-last-name {
    font-size: clamp(2.8rem, 7vw, 4.5rem);
}

.cv-card-photo {
    position: relative;
    z-index: 3;
    width: 160px;
    height: 160px;
    border-radius: 50%;
    overflow: hidden;
    border: 5px solid var(--white);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    flex-shrink: 0;
}

.cv-card-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    display: block;
}

/* --- CV Body: Career highlights --- */
.cv-card-body {
    padding: 48px;
}

.cv-career-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.cv-career-list li {
    position: relative;
    padding-left: 28px;
    font-family: var(--font-body);
    font-size: 1.05rem;
    font-weight: 500;
    line-height: 1.65;
    color: var(--brown-dark);
}

.cv-bullet {
    position: absolute;
    left: 0;
    top: 10px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--orange-primary);
    flex-shrink: 0;
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .cv-card-header {
        flex-direction: column;
        padding: 32px 24px;
        text-align: center;
        min-height: auto;
    }

    .cv-card-header::before {
        width: 100%;
        clip-path: polygon(0 0, 100% 0, 100% 60%, 0 100%);
    }

    .cv-card-header::after {
        width: 100%;
        height: 60%;
        top: auto;
        bottom: 0;
        clip-path: polygon(0 40%, 100% 0, 100% 100%, 0 100%);
    }

    .cv-card-name {
        margin-bottom: 24px;
    }

    .cv-first-name,
    .cv-last-name {
        font-size: 2.4rem;
    }

    .cv-card-photo {
        width: 120px;
        height: 120px;
    }

    .cv-card-body {
        padding: 32px 24px;
    }

    .cv-career-list li {
        font-size: 0.95rem;
    }
}

/* ============================================
   EXPERTISE HERO IMAGE
   ============================================ */
.expertise-hero-image,
.services-hero-image {
    position: relative;
    height: 400px;
    overflow: hidden;
}

.expertise-wide-img,
.services-wide-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.expertise-hero-overlay,
.services-hero-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 60px 0 40px;
    background: linear-gradient(to top, rgba(27, 58, 18, 0.85) 0%, transparent 100%);
}

.expertise-hero-quote,
.services-hero-quote {
    font-family: var(--font-heading);
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    font-weight: 500;
    font-style: italic;
    color: var(--white);
    max-width: 700px;
    line-height: 1.5;
}

/* ============================================
   EXPERTISE CARDS — WITH IMAGES
   ============================================ */
.inst-card-image {
    margin: -40px -32px 24px -32px;
    height: 220px;
    overflow: hidden;
}

.inst-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s var(--ease-smooth);
}

.inst-card:hover .inst-card-image img {
    transform: scale(1.05);
}

.inst-card-body {
    padding: 0;
}

/* ============================================
   SERVICES — ENHANCED STRIPS WITH IMAGES
   ============================================ */
.services-intro-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 60px;
    align-items: center;
}

.services-intro-text p {
    font-size: 1.05rem;
    line-height: 1.85;
    color: var(--text-body);
    margin-bottom: 16px;
}

.services-intro-text p.lead {
    font-size: 1.15rem;
    font-weight: 400;
    color: var(--text-dark);
}

.services-intro-image {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
}

.services-intro-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.service-strip-enhanced {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 48px;
    align-items: center;
    padding: 60px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.service-strip-enhanced.reverse {
    grid-template-columns: 1.5fr 1fr;
}

.service-strip-enhanced.reverse .service-strip-image {
    order: 2;
}

.service-strip-enhanced.reverse .service-strip-content {
    order: 1;
}

.service-strip-image {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.service-strip-image img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    display: block;
    transition: transform 0.6s var(--ease-smooth);
}

.service-strip-enhanced:hover .service-strip-image img {
    transform: scale(1.04);
}

.service-strip-content .service-number {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.1);
    line-height: 1;
    margin-bottom: 12px;
}

.service-strip-content h3 {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 500;
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 12px;
}

.service-strip-content p {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.55);
    line-height: 1.7;
    margin-bottom: 16px;
}

.service-detail-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-left: 0;
}

.service-detail-list li {
    position: relative;
    padding-left: 18px;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.6;
}

.service-detail-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--orange-primary);
}

.service-strip-enhanced:hover .service-strip-content .service-number {
    color: var(--orange-primary);
}

.service-strip-enhanced:hover .service-strip-content h3 {
    color: var(--white);
}

/* ============================================
   SERVICES CTA
   ============================================ */
.services-cta {
    background: linear-gradient(135deg, var(--green-deep) 0%, var(--green-primary) 60%, var(--brown-dark) 100%);
    padding: 100px 0;
}

/* ============================================
   MOBILE RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
    :root {
        --section-padding: 80px;
    }

    .cv-grid,
    .academic-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .cv-visual,
    .academic-visual {
        order: -1;
    }

    .institutional-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .contact-layout {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .cv-highlights {
        grid-template-columns: 1fr;
    }

    .services-intro-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .service-strip-enhanced,
    .service-strip-enhanced.reverse {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .service-strip-enhanced.reverse .service-strip-image,
    .service-strip-enhanced.reverse .service-strip-content {
        order: unset;
    }

    .expertise-hero-image,
    .services-hero-image {
        height: 300px;
    }
}

@media (max-width: 768px) {
    :root {
        --nav-height: 64px;
        --section-padding: 64px;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 320px;
        height: 100vh;
        background: var(--white);
        flex-direction: column;
        justify-content: center;
        align-items: flex-start;
        padding: 48px;
        gap: 24px;
        box-shadow: -8px 0 32px rgba(0, 0, 0, 0.1);
        transition: right 0.4s var(--ease-smooth);
        z-index: 999;
    }

    .nav-links.open {
        right: 0;
    }

    .nav-links a {
        font-size: 1rem;
    }

    .hamburger {
        display: flex;
    }

    .hero-logo {
        max-width: 160px;
    }

    .hero-headline {
        font-size: clamp(2rem, 8vw, 3rem);
    }

    .hero-africa-map {
        width: 90%;
    }

    .hero-actions {
        flex-direction: column;
        align-items: center;
    }

    .service-strip {
        flex-direction: column;
        gap: 12px;
        padding: 28px 0;
    }

    .service-number {
        font-size: 2rem;
    }

    .service-strip-image img {
        height: 200px;
    }

    .service-strip-content .service-number {
        font-size: 2.5rem;
    }

    .contact-form-wrap {
        padding: 32px 24px;
    }

    .expertise-hero-image,
    .services-hero-image {
        height: 220px;
    }

    .section-title {
        font-size: clamp(1.75rem, 5vw, 2.5rem);
    }

    .footer-grid {
        flex-direction: column;
        gap: 32px;
    }

    .footer-links {
        flex-direction: column;
        gap: 12px;
    }

    .page-header {
        padding: 110px 0 50px;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .form-group-full {
        grid-column: span 1;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

    .lang-btn span:not(.flag-icon) {
        display: none;
    }

    .lang-btn {
        padding: 6px 8px;
    }

    .cv-decorative-circle {
        width: 200px;
        height: 200px;
    }
}

/* ---------- Overlay for mobile nav ---------- */
.nav-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 998;
    opacity: 0;
    transition: opacity 0.3s var(--ease-smooth);
}

.nav-overlay.active {
    display: block;
    opacity: 1;
}

/* ---------- Form Success State ---------- */
.form-success {
    text-align: center;
    padding: 60px 20px;
}

.form-success svg {
    width: 64px;
    height: 64px;
    color: var(--green-primary);
    margin-bottom: 20px;
}

.form-success h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--green-deep);
    margin-bottom: 8px;
}

.form-success p {
    color: var(--text-muted);
    font-size: 0.925rem;
}

/* ---------- Preloader ---------- */
.preloader {
    position: fixed;
    inset: 0;
    background: var(--off-white);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s var(--ease-smooth), visibility 0.5s;
}

.preloader.hidden {
    opacity: 0;
    visibility: hidden;
}

.preloader-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--green-primary);
    margin: 0 6px;
    animation: preloaderPulse 1.4s ease-in-out infinite;
}

.preloader-dot:nth-child(2) {
    animation-delay: 0.2s;
    background: var(--brown-primary);
}

.preloader-dot:nth-child(3) {
    animation-delay: 0.4s;
    background: var(--orange-primary);
}

@keyframes preloaderPulse {

    0%,
    80%,
    100% {
        transform: scale(0.4);
        opacity: 0.4;
    }

    40% {
        transform: scale(1);
        opacity: 1;
    }
}
