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

:root {
    /* IBS core */
    --ibs-navy-950: #1a242f;
    --ibs-navy-900: #24303d;
    --ibs-navy-700: #324252;
    --ibs-navy-500: #455667;
    --ibs-navy-300: #5d6d7e;

    /* Neutrals */
    --paper: #F6F7F9;
    --white: #FFFFFF;
    --gray-100: #ECEFF3;
    --gray-200: #DDE3EA;
    --gray-600: #5B6775;

    /* Accent */
    --accent: #927341;
    --accent-light: #b3935d;
    --sage: #2F6F5E;
    --secondary-color: var(--ibs-navy-700);
    --accent-color: var(--accent);
    --light-bg: var(--paper);

    /* Typography */
    --font-head: "Merriweather", Georgia, "Times New Roman", serif;
    --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

    /* Layout */
    --max: 1350px;
    --max-hero: 1200px;
    --radius: 14px;
    --radius-sm: 10px;

    /* Shadows */
    --shadow: 0 14px 40px rgba(15, 26, 38, .16);
    --shadow-soft: 0 10px 26px rgba(15, 26, 38, .12);
    --shadow-hover: 0 18px 54px rgba(15, 26, 38, .18);

    /* Text */
    --text: #162434;
    --muted: #4a5561;
}

html, body {
    overflow-x: hidden;
    width: 100%;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    line-height: 1.65;
    color: var(--text);
    background: var(--paper);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: #927341;
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color 0.3s ease, text-decoration-color 0.3s ease;
}

a:hover {
    color: var(--accent-light);
    text-decoration-color: var(--accent-light);
}

.nav-links a, .cta-button, .logo a {
    text-decoration: none;
}

/* Header */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(36, 48, 61, .92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, .08);
    box-shadow: var(--shadow-soft);
}

nav {
    max-width: var(--max);
    margin: 0 auto;
    padding: 14px 5%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

/* Brand logo */
.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-head);
    font-weight: 700;
    color: var(--white);
    line-height: 1.1;
}

.logo .logo-mark {
    height: 40px;
    width: auto;
    flex-shrink: 0;
    filter: brightness(0) invert(1);
}

.logo .logo-text {
    font-size: 1.05rem;
    letter-spacing: .2px;
    white-space: nowrap;
    color: rgba(255, 255, 255, .98);
    flex-shrink: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 1.8rem;
    align-items: center;
}

.lang-switcher {
    display: flex;
    gap: 0.8rem;
    list-style: none;
    align-items: center;
    margin-left: 0.5rem;
}

.lang-switcher a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.85rem;
    transition: color 0.2s ease;
    padding: 4px 6px;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    line-height: 1;
}

.lang-switcher a:hover {
    color: var(--white);
    border-color: var(--accent);
}

.lang-switcher a.active {
    color: var(--white);
    border-color: var(--accent);
    background: rgba(169, 139, 90, 0.2);
}

.nav-links a {
    color: rgba(255, 255, 255, .92);
    font-weight: 600;
    font-size: .95rem;
    position: relative;
    padding: 6px 0;
    transition: color .2s ease;
    white-space: nowrap;
}

.nav-links a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -6px;
    height: 2px;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .2s ease;
    border-radius: 2px;
    opacity: .95;
}

.nav-links a:hover {
    color: var(--accent);
}

.nav-links a:hover::after {
    transform: scaleX(1);
}

/* Mobile toggle */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--white);
    font-size: 1.8rem;
    cursor: pointer;
    padding: 6px 10px;
}

/* Hero */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    background: radial-gradient(circle at 18% 30%, rgba(169, 139, 90, .20) 0%, transparent 56%),
    radial-gradient(circle at 82% 70%, rgba(74, 95, 115, .22) 0%, transparent 55%),
    linear-gradient(135deg, var(--ibs-navy-950) 0%, var(--ibs-navy-900) 38%, var(--ibs-navy-700) 100%);
    overflow: hidden;
    position: relative;
    padding: 80px 5% 40px;
}

.hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: var(--max-hero);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3rem;
}

.hero-brand-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(1rem, 5vw, 3rem);
    width: 100%;
    max-width: 100%;
}

.hero-logo {
    flex: 0 1 300px;
    max-width: 100%;
}

.hero-logo img {
    width: 100%;
    height: auto;
    filter: brightness(0) invert(1) drop-shadow(0 10px 20px rgba(0, 0, 0, 0.3));
}

.hero-text-side {
    flex: 1;
    text-align: left;
    display: flex;
    flex-direction: column;
    justify-content: center;
    max-width: 100%;
    overflow: hidden;
}

.hero-title {
    font-family: var(--font-head);
    font-weight: 700;
    font-size: clamp(1.8rem, 4.5vw, 3.1rem);
    margin-bottom: 0.5rem;
    line-height: 1.2;
    white-space: nowrap;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.hero-divider {
    height: 1.5px;
    background: var(--white);
    width: 100%;
    margin: 1rem 0;
    opacity: 0.8;
}

.hero-tags {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-family: var(--font-head);
    font-size: clamp(1.1rem, 1.8vw, 1.8rem);
    font-weight: 600;
    max-width: 100%;
}

.hero-tags .dot {
    width: 8px;
    height: 8px;
    background: var(--white);
    border-radius: 50%;
    display: inline-block;
}

.hero .hero-meta {
    margin-top: 14px;
    font-size: .95rem;
    color: rgba(255, 255, 255, .86);
}

.cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 18px;
    padding: 14px 34px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--accent), var(--accent-light));
    color: var(--ibs-navy-950);
    font-weight: 800;
    letter-spacing: .9px;
    text-transform: uppercase;
    font-size: .92rem;
    border: 1px solid rgba(255, 255, 255, .18);
    box-shadow: 0 18px 44px rgba(169, 139, 90, .22);
    transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
    position: relative;
    z-index: 1;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 24px 62px rgba(169, 139, 90, .26);
    filter: saturate(1.03);
}

/* Sections */
section:not(.hero) {
    padding: 92px 5%;
}

section:not(.hero) > * {
    max-width: var(--max);
    margin-left: auto;
    margin-right: auto;
}

.section-title {
    font-family: var(--font-head);
    font-weight: 700;
    letter-spacing: -.4px;
    text-align: center;
    margin-bottom: 12px;
    font-size: clamp(1.85rem, 3vw, 2.6rem);
    color: var(--ibs-navy-900);
}

.section-title::after {
    content: "";
    display: block;
    width: 72px;
    height: 4px;
    background: var(--accent);
    border-radius: 2px;
    margin: 16px auto 0;
}

.section-subtitle {
    text-align: center;
    color: var(--muted);
    margin-bottom: 44px;
    font-size: 1.1rem;
}

/* About */
.about-content {
    display: grid;
    grid-template-columns:1.15fr .85fr;
    gap: 44px;
    align-items: start;
}

.about-text h3, 
.box-title {
    font-family: var(--font-head);
    color: var(--ibs-navy-700);
    margin-bottom: 14px;
    font-size: 1.5rem;
    font-weight: 700;
}

.box-title.secondary {
    color: var(--secondary-color);
    font-weight: 800;
    font-size: 1.3rem;
}

.box-title.accent {
    color: var(--accent-color);
}

.about-text p,
.box-text {
    margin-bottom: 14px;
    line-height: 1.9;
    color: var(--text);
    font-size: 1.02rem;
}

.box-text.highlight {
    color: #2b3e50;
    font-weight: 500;
}

.content-box {
    background: var(--white);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.content-box:hover, .team-member:hover, .contact-info:hover, .pillar-card:hover, .manifest-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.content-list {
    line-height: 2;
    color: #2b3e50;
    list-style-position: inside;
    font-weight: 500;
}

.pillar-card ul.list-styled {
    text-align: left;
    color: #2b3e50;
    font-weight: 500;
    line-height: 1.8;
}

.footer-nav {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.footer-divider {
    color: var(--accent);
    opacity: 0.5;
}

.footer-bottom {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255,255,255,0.2);
}

.footer-info {
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.footer-description {
    margin-bottom: 1.5rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.narrow-container {
    max-width: 1000px;
    margin: 2rem auto 0;
}

.mb-1 { margin-bottom: 1rem; }
.mb-05 { margin-bottom: 0.5rem; }

.lh-18 { line-height: 1.8; }

.footer-inner {
    max-width: var(--max);
    margin: 0 auto;
    padding-bottom: 1rem;
}

.bg-paper { background: var(--paper); }

.about-image {
    width: 100%;
    height: 440px;
    border-radius: var(--radius);
    background: linear-gradient(135deg, var(--ibs-navy-700) 0%, var(--ibs-navy-900) 100%);
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.about-image span {
    font-size: 4.2rem;
    color: rgba(255, 255, 255, .92);
    z-index: 1;
    filter: drop-shadow(0 10px 16px rgba(0, 0, 0, .25));
}

.about-image img {
    max-width: 80%;
    max-height: 80%;
    filter: brightness(0) invert(1) drop-shadow(0 10px 16px rgba(0, 0, 0, .25));
}

.about-image::after {
    content: "";
    position: absolute;
    inset: 0;
    background: url('IBS3.webp') center/72% no-repeat;
    opacity: .08;
    filter: brightness(0) invert(1) grayscale(1) contrast(1.05);
    pointer-events: none;
}

/* Grids */
.pillars-grid {
    display: grid;
    grid-template-columns:repeat(auto-fit, minmax(300px, 1fr));
    gap: 22px;
    margin-top: 8px;
}

.manifest-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 30px;
    margin-top: 20px;
}


.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

/* Cards */
.pillar-card, .manifest-item, .team-member, .contact-info {
    background: var(--white);
    border: 1px solid var(--gray-100);
    border-radius: var(--radius);
    box-shadow: var(--shadow-soft);
}

.pillar-card {
    padding: 26px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    position: relative;
}

.pillar-icon {
    position: absolute;
    top: 26px;
    right: 26px;
    margin-bottom: 0;
    font-size: 1.8rem;
    opacity: 1;
    color: #000;
    transition: color 0.3s ease;
}

.pillar-card h3 {
    font-family: var(--font-head);
    color: var(--ibs-navy-900);
    margin-bottom: 10px;
    font-size: 1.4rem;
    font-weight: 700;
    padding-right: 40px; /* Space for the icon */
}

.pillar-card p {
    color: var(--text);
    line-height: 1.8;
    font-size: 1rem;
}

.pillar-card ul {
    padding-left: 1.1rem;
    margin-top: 10px;
}


/* Activity */
.manifest-item {
    padding: 30px;
    border-top: 4px solid var(--accent);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.manifest-item:hover .manifest-number {
    color: var(--accent);
    opacity: 0.6;
}

.manifest-number {
    font-family: var(--font-head);
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--accent);
    opacity: 0.2;
    position: absolute;
    top: 10px;
    right: 20px;
    line-height: 1;
    user-select: none;
    transition: all 0.3s ease;
}

.manifest-item h4 {
    color: var(--ibs-navy-900);
    margin-bottom: 15px;
    font-size: 1.3rem;
    font-weight: 700;
    position: relative;
    z-index: 1;
}

.manifest-item p {
    color: var(--text);
    line-height: 1.75;
    font-size: 1rem;
    margin-bottom: 15px;
}

.manifest-item p:last-child {
    margin-bottom: 0;
}


/* Team */
.team-member {
    padding: 30px;
    text-align: left;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}


.team-member-header {
    margin-bottom: 15px;
}

.team-member-info {
    flex: 1;
}


.team-member h4 {
    font-family: var(--font-head);
    color: var(--ibs-navy-900);
    margin-bottom: 4px;
    font-size: 1.35rem;
    font-weight: 700;
    line-height: 1.2;
}

.team-member .role {
    color: var(--accent);
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0;
    font-family: var(--font-body);
}

.team-member .bio {
    color: var(--text);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* Expert Network */
.expert-network-content {
    max-width: 900px !important;
    margin: 0 auto;
    text-align: center;
}

.expert-network-content p {
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.expert-network-content p:last-child {
    margin-bottom: 0;
}

/* Contact */
.contact-content {
    display: flex;
    justify-content: center;
    margin-top: 10px;
}

.contact-info {
    width: 100%;
    max-width: 820px;
    padding: 26px;
    border-left: 4px solid var(--accent);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-info h3 {
    font-family: var(--font-head);
    color: var(--ibs-navy-900);
    margin-bottom: 16px;
    font-size: 1.45rem;
    font-weight: 700;
}

.contact-item {
    margin-bottom: 18px;
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.contact-item strong {
    min-width: 112px;
    color: var(--ibs-navy-700);
    font-weight: 700;
}

.contact-item i {
    transition: color 0.3s ease;
}

.contact-item span {
    color: var(--text);
    word-break: break-all;
}

.contact-item a {
    color: var(--accent);
    transition: color 0.2s ease;
    font-weight: 600;
}

.contact-item a:hover {
    color: var(--accent-light);
}

/* Footer */
footer {
    background: linear-gradient(135deg, var(--ibs-navy-950), var(--ibs-navy-900) 45%, var(--ibs-navy-700));
    color: var(--white);
    text-align: center;
    padding: 54px 5%;
    border-top: 1px solid rgba(255, 255, 255, .08);
    position: relative;
    overflow: hidden;
}

footer::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 18% 70%, rgba(169, 139, 90, .16), transparent 55%),
    radial-gradient(circle at 78% 30%, rgba(255, 255, 255, .08), transparent 60%);
    pointer-events: none;
    opacity: .55;
}

footer h3, footer p, footer a {
    position: relative;
    z-index: 1;
}

footer p {
    color: rgba(255, 255, 255, .92);
    line-height: 1.8;
}

footer a {
    color: var(--accent);
}

footer a:hover {
    color: var(--accent-light);
}

/* Responsive */
/* Medium screens: prevent header overlap */
@media (max-width: 1400px) {
    .logo .logo-text {
        font-size: 1rem;
        max-width: 420px;
    }
    .nav-links { gap: 1.4rem; }
}

@media (max-width: 1250px) {
    .logo .logo-text {
        font-size: 0.95rem;
        max-width: 320px;
    }
    .nav-links { gap: 1.1rem; }
    .nav-links a { font-size: 0.9rem; }
    .lang-switcher { gap: 0.5rem; }
    .lang-switcher a { font-size: 0.8rem; padding: 3px 5px; }
}

@media (max-width: 1100px) {
    .logo .logo-text {
        font-size: 0.9rem;
        max-width: 240px;
    }
    .nav-links { gap: 0.7rem; }
}

@media (max-width: 950px) {
    .logo .logo-text {
        display: none;
    }
    .nav-links { gap: 1.2rem; }
}
@media (max-width: 980px) {
    .hero-brand-container {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }

    .hero-text-side {
        text-align: center;
        align-items: center;
    }

    .hero-title {
        white-space: normal;
    }

    .hero-logo {
        flex: 0 0 auto;
        max-width: 220px;
    }

    .hero-tags {
        gap: 1.5rem;
    }

    .about-content {
        grid-template-columns:1fr;
        gap: 26px;
    }

    .about-image {
        height: 380px;
    }
}

@media (max-width: 768px) {
    .manifest-list {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    nav {
        padding: 12px 5%;
    }

    .logo .logo-text {
        display: none;
    }

    .logo .logo-mark {
        height: 38px;
    }

    .menu-toggle {
        display: block;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(36, 48, 61, .98);
        padding: 16px 5% 24px;
        flex-direction: column;
        gap: 12px;
        border-bottom: 2px solid rgba(169, 139, 90, .65);
    }

    .lang-switcher {
        margin-left: auto;
        margin-top: 0;
        justify-content: flex-end;
        width: auto;
        padding-top: 0;
        border-top: none;
        gap: 0.5rem;
    }

    .nav-links.active {
        display: flex;
    }

    section:not(.hero) {
        padding: 60px 5%;
    }

    .section-subtitle {
        margin-bottom: 34px;
    }

    .team-member-header {
        text-align: left;
    }

    .team-member-info h4 {
        margin-bottom: 6px;
    }
}

@media (max-width: 480px) {
    .manifest-number {
        font-size: 2rem;
        top: 5px;
        right: 15px;
    }

    .logo-mark {
        height: 32px;
    }

    .hero-content {
        gap: 2rem;
    }

    .hero-logo {
        max-width: 180px;
    }

    .hero-tags {
        font-size: 0.9rem;
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.5rem 0.8rem;
        width: 100%;
        max-width: 100%;
    }

    .hero-tags span {
        white-space: nowrap;
    }

    .hero-tags .dot {
        display: none;
    }

    .hero-title {
        font-size: 1.8rem;
        width: 100%;
        max-width: 100%;
    }

    .contact-item {
        flex-direction: column;
        gap: 4px;
    }

    .contact-item strong {
        min-width: auto;
    }
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: -100%;
    left: 0;
    right: 0;
    background: var(--ibs-navy-900);
    color: var(--white);
    padding: 24px 5%;
    z-index: 2000;
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.3);
    transition: bottom 0.4s ease-in-out;
    border-top: 2px solid var(--accent);
}

.cookie-banner.active {
    bottom: 0;
}

.cookie-content {
    max-width: var(--max);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.cookie-content p {
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 0;
    color: rgba(255, 255, 255, 0.9);
}

.cookie-buttons {
    display: flex;
    gap: 12px;
    flex-shrink: 0;
}

.cookie-btn {
    padding: 10px 24px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid transparent;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cookie-btn.primary {
    background: var(--accent);
    color: var(--ibs-navy-950);
}

.cookie-btn.primary:hover {
    background: var(--accent-light);
    transform: translateY(-2px);
}

.cookie-btn.secondary {
    background: transparent;
    border-color: rgba(255, 255, 255, 0.3);
    color: var(--white);
}

.cookie-btn.secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--white);
}

@media (max-width: 768px) {
    .cookie-content {
        flex-direction: column;
        text-align: center;
        gap: 18px;
    }
    
    .cookie-buttons {
        width: 100%;
        justify-content: center;
    }
    
    .cookie-btn {
        flex: 1;
        max-width: 160px;
    }
}