@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Roboto+Slab:wght@100..900&display=swap');

:root {
    --mesap-teal: #255a72;
    --mesap-teal-light: #6aa3c2;
    --mesap-cream: #ebe2d3;
    --mesap-cream-soft: #f9ecdc;
    --mesap-cream-warm: #f5ebd8;
    --mesap-ink: #08090d;
    --mesap-on-teal: #ffffff;
    --mesap-error: #e57a7a;
    --mesap-error-fg: #ffbdbd;
    --font-display: "Montserrat", sans-serif;
    --font-serif: "Roboto Slab", serif;
    --shadow-card: 0 16px 40px -28px rgba(8, 9, 13, 0.5);
    --shadow-title: 0 2px 12px rgba(0, 0, 0, 0.45);
    --radius-card: 36px;
    --touch-min: 44px;
}

body {
    font-family: var(--font-display) !important;
    background-color: var(--mesap-cream) !important;
    color: var(--mesap-ink) !important;
    background-size: contain !important;
}

.img-map {
    position: fixed;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: .15;
    z-index: 1;
    top: 0;
    bottom: 0;
}

body a:hover,
body a:focus,
body a {
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

body p a:hover {
    color: var(--mesap-teal);
}
body h6 {
    font-weight: 400;
}

/* All H1/H2 headings default to Montserrat (the project's display font).
   Use .font-robotoSlab utility class to opt-in to the serif. */
body h1, body h2 {
    font-family: var(--font-display) !important;
}
.font-robotoSlab {
    font-family: var(--font-serif) !important;
}

/* Hero H1 — bump Bootstrap's display-4 (56 px) to the project's 60 px scale.
   Higher specificity than .display-4 so no !important needed. */
h1.display-4 {
    font-size: 60px;
}
@media (max-width: 767.98px) {
    h1.display-4 { font-size: 40px; }
}
@media (max-width: 479.98px) {
    h1.display-4 { font-size: 32px; }
}

/* Journey-box body description: ensure Roboto Slab (body font) instead of
   inheriting Montserrat from the parent. */
.journey-box .dec p,
.journey-box h5 {
    font-family: var(--font-serif);
}

.link:hover {
    color: #000;
}

body p {
    line-height: 1.75;
}

.text-main {
    color: var(--mesap-teal) !important;
}

/* Sub-section / activity titles (Our Journey years, Projects activity titles,
   Publications sub-headings) — Montserrat bold 40 teal blue (per Yara spec). */
h2.display-5.text-main,
.journey-box h2 {
    font-family: var(--font-display) !important;
    font-size: 40px !important;
    font-weight: 700 !important;
    line-height: 1.05;
    color: var(--mesap-teal) !important;
    letter-spacing: 0.2px;
}
@media (max-width: 767.98px) {
    h2.display-5.text-main,
    .journey-box h2 { font-size: 30px !important; }
}
.fs-18{
    font-size: 1.125rem !important;
}

.fs-14{
    font-size: .875rem !important;
}
.fs-12{
    font-size: .75rem !important;
}
.fs-11 {
    font-size: .6875rem !important;
}
.fs-10 {
    font-size: .625rem !important;
}
.fw-500 {
    font-weight: 500 !important;
}
.fw-600 {
    font-weight: 600 !important;
}
hr.hr1 {
    height: 2px !important;
    background: rgb(37 90 114 / 50%);
    opacity: 1;
}

.btn.btn1 {
    background: var(--mesap-teal);
    border: 1px solid #255a72;
    color: #fff;
    box-shadow: none !important;
    outline: none !important;
    border-radius: 0px;
    width: auto;
    min-width: 160px;
    padding: 14px 24px;
    font-size: 1rem;
    font-weight: 500;
    transition: all .4s ease;
}

.btn.btn1:hover {
    background: #000;
    border-color: #000;
    color: #fff;
}
.btn.btn1:hover i {
    transition: all .5s ease;
}

.btn.btn1:hover i {
    transform: translateX(8px);
}

.bg1 {
    background-color: var(--mesap-cream-soft) !important;
}

.padding {
    padding: 80px 8px 100px 8px;
}

/* Unified section title — Montserrat Bold 60 white with drop shadow.
   Applied to: Our Journey, Our Team, Institutional Endorsements, Projects, Publications. */
.title {
    color: #fff;
    font-family: var(--font-display);
    font-size: 60px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.5px;
    text-shadow: var(--shadow-title);
}
@media (max-width: 767.98px) {
    .title { font-size: 40px; }
}
@media (max-width: 479.98px) {
    .title { font-size: 32px; }
}

.header-top {
    padding: 16px 28px;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 99;
    width: 100%;
}
.main-wrapper {
    position: relative;
    z-index: 2;
}

.logo1 {
    width: 120px;
}
.logo2 {
    width: 75px;
}

nav.navbar {
    padding: 0;
}
nav.navbar .navbar-toggler {
    padding: 6px 8px;
    border: 0;
    box-shadow: none !important;
    outline: none !important;
    background: var(--mesap-teal);
}
nav.navbar .navbar-toggler .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 100%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}
nav.navbar .navbar-nav .nav-item {
    padding: 10px 20px;
    text-align: center;
}

nav.navbar .navbar-nav .nav-link {
    color: rgb(255 255 255 / 80%);
    font-size: 1rem;
    padding: 0;
    text-align: center;
    text-transform: uppercase;
    font-family: "Roboto Slab", serif;
    border-bottom: 1px solid transparent;
    line-height: 18px;
    display: inline-block;
}
nav.navbar .navbar-nav .nav-link:hover {
    color: #fff;
    border-color: #fff;
}

nav.navbar .navbar-nav .nav-link.active {
    color: #fff;
    border-color: #fff;
}




.header-top .btn.btn1 {
    padding: 15px 24px;
}

.banner .overlay-inner{
    background: rgb(0 0 0 / 40%);
}

/* Slideshow slide backgrounds (moved out of inline style attrs for caching/perf) */
.swiper-slide.slide-bg-1 { background: url(../images/slideshow-1.webp) center/cover no-repeat; }
.swiper-slide.slide-bg-2 { background: url(../images/slideshow-2.webp) center/cover no-repeat; }
.swiper-slide.slide-bg-3 { background: url(../images/slideshow-3.webp) center/cover no-repeat; }

/* Hero title overlay (single H1, not duplicated per slide) */
.banner {
    position: relative;
}
.banner .banner-title {
    position: absolute;
    inset: 0;
    z-index: 5;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 120px 8px 80px 8px;
    pointer-events: none;
}

.swiper1 .swiper-slide {
    height: 100vh;
    min-height: 450px;
}
.swiper1 .swiper-pagination {
    bottom: 30px !important;
}

.swiper1 .swiper-pagination .swiper-pagination-bullet {
    background: #fff;
    width: 15px;
    height: 15px;
    border-radius: 50px;
    margin: 0 2px;
}


.section1 .overlay {
    background: rgb(177 91 62 / 8%);
    min-height: 400px;
}
.section1 .reveil {
    position: absolute;
    right: 20px;
    bottom: 20px;
    background: rgb(177 91 62 / 75%);
    color: #fff;
    padding: 15px 24px;
    border-radius: 5px;
}

.list1 {
    list-style: circle;
    padding-left: 16px;
}

.list1 li {
    margin-bottom: 10px;
}

.list1 li::marker {
    color: var(--mesap-teal);
}


/*player*/
:root {
    --plyr-color-main: #255a72 !important;
    --plyr-control-icon-size: 20px !important;
    --plyr-font-size-time: 16px !important;
    --plyr-range-track-height: 10px !important;
    --plyr-range-thumb-height: 18px !important;
}
.plyr__controls__item.plyr__progress__container {
    position: absolute;
    width: calc(100% - 20px);
    top: 0;
    left: 0;
    margin-left: 10px !important;
}

button.plyr__controls__item.plyr__control {
    margin-right: 0 !important;
}

.plyr__controls__item.plyr__time--current.plyr__time {
    margin-left: auto;
}

.player {
    max-height: calc(100vh - 75px - 105px);
}

.plyr .player-full{
    width: 100%;
    height: 100vh;
}


.radio-bottom {
    background: #111;
    color: #fff;
    position: fixed;
    width: 100%;
    left: 0;
    bottom: 0;
    padding: 20px 20px 8px 0;
    z-index: 99;
    --plyr-color-main: #255a72 !important;
}

.radio-bottom .radio-box .img {
    width: 52px;
    min-width: 52px;
    height: 52px;
}

.radio-bottom .plyr--audio .plyr__controls {
    background: transparent;
    color: #fff;
    padding: 0;
}

.radio-bottom .plyr--audio {
    position: unset;
}

.radio-bottom .plyr__controls__item.plyr__progress__container {
    top: -7px;
}

.radio-bottom .plyr__controls__item.plyr__time--duration.plyr__time {
    margin-right: auto;
}

.radio-bottom .plyr__controls__item.plyr__time--current.plyr__time {
    margin-left: 0;
}

.radio-bottom .like {
    position: absolute;
    right: 12px;
    top: 32px;
    font-size: 18px;
}
.radio-bottom .song-img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 4px;
}


.about-banner {
    background-color: var(--mesap-cream-soft);
    min-height: 250px;
}

.journey-col1 {
    margin-top: 20rem !important;
}

.journey-box {
    margin-bottom: 100px;
}
.journey-box .dec {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--mesap-teal);
    color: #fff;
    padding: 24px;
    text-align: center;
    transition: all .4s ease;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.journey-box .img:hover .dec,
.journey-box .img:focus-within .dec,
.journey-box .img.is-revealed .dec {
    top: 0;
}

@media (hover: none) {
    .journey-box .img::after {
        content: "tap for details";
    }
}
.journey-box .img img {
    min-width: 540px;
    object-fit: cover;
}
.journey-box .img:hover .dec p {
    line-height: 1.5;
}

.team-trigger {
    background: transparent;
    border: 0;
    padding: 0;
    margin: 0;
    width: 100%;
    cursor: pointer;
    color: inherit;
    font: inherit;
    text-align: center;
    border-radius: 12px;
    transition: transform 0.25s ease;
}

.team-trigger:focus-visible {
    outline: 3px solid #255a72;
    outline-offset: 6px;
}

.team-trigger:hover {
    transform: translateY(-2px);
}

.team-box {
    text-align: center;
}

.team-box img {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 24px;
}

.team-box .team-role {
    color: rgba(8, 9, 13, 0.7);
    font-size: 0.95rem;
}

.logo-banner .img1 {
    width: 200px;
    margin-bottom: 24px;
}

.space-top {
    padding-top: 100px;
}


.form.form1 .form-label {
    font-family: "Roboto Slab", serif !important;
    font-size: 1.375rem;
}

.form.form1 .form-control {
    height: 45px;
    background: #fff;
    color: #000;
    font-weight: 500;
    border-radius: 0;
    border: 1px solid #255a72;
    box-shadow: none !important;
    outline: none !important;
}

/* Publications page "Our Mentions" + "Scientific Publications" entries:
   blue and bold by default (Yara feedback) — they read like links, not as
   pale ghosts that only awaken on hover. */
.mentions {
    color: var(--mesap-teal);
}
.mentions h4 {
    color: var(--mesap-teal);
    font-weight: 600 !important;
}
.mentions:hover h4 {
    font-weight: 700 !important;
    text-decoration: underline;
    text-underline-offset: 4px;
}
.mentions i {
    font-size: 24px;
    color: var(--mesap-teal);
}

.mentions:hover i {
    font-size: 30px;
}

.link:hover {
    color: var(--mesap-teal);
}


.modal.modal1 .modal-dialog {
    max-width: 900px;
}

.modal.modal1 .modal-content {
    border: 0;
    border-radius: 40px;
    background: var(--mesap-teal);
    color: #fff;
}

.modal.modal1 button.btn-close {
    position: absolute;
    top: 15px;
    right: 15px;
    opacity: 1;
    box-shadow: none !important;
    outline: none !important;
}

.team-details .row {
    min-height: 350px;
}
.team-details .img1 {
    width: 220px;
    height: 220px;
    border-radius: 50%;
    object-fit: cover;
}








/* footer-section — plain white strip per the Figma mock (Rectangle 48):
   no teal borders, solid white so the cream/map texture doesn't bleed
   through ("footer bianco, non marrone"). */
.footer-section {
    background: #ffffff;
    padding: 24px 28px;
}

.footer-section .img-footerlogos {
    height: 50px;
}

/* Full-width footer logo strip — proportions from the design mockup */
.footer-section .footer-logos { width: 100%; row-gap: 24px; }
.footer-section .footer-logo { width: auto; object-fit: contain; }
.footer-section .footer-logo-mesap { height: 112px; }
.footer-section .footer-logo-ministry { height: 96px; }
.footer-section .footer-logo-square { height: 60px; }
.footer-section .footer-logo-wide { height: 49px; }
@media (max-width: 991px) {
    .footer-section .footer-logo-mesap { height: 88px; }
    .footer-section .footer-logo-ministry { height: 76px; }
    .footer-section .footer-logo-square { height: 48px; }
    .footer-section .footer-logo-wide { height: 40px; }
}

.social a {
    margin-right: 8px;
    color: #fff;
    background: var(--mesap-teal);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    line-height: 42px;
    display: inline-block;
    text-align: center;
    transition: all .4s ease;
    font-size: .875rem;
}

.social a:hover {
    background: #fff;
    color: black;
}

.footer-copy {
    padding: 24px 8px;
    background: var(--mesap-ink);
    color: var(--mesap-cream-soft);
}


/* ============================================================================
   Additions for 20260220 brief: snap scrolling, drop shadows, Giovanna crop
   fix, timeline hover hint, "At the heart" + "Institutional Recognition".
   ============================================================================ */

/* Drop shadow on white titles (slideshow and section headings) */
.title,
.text-white {
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.45);
}

/* Smooth scrolling for in-page anchor links; snap removed because the page has
   long-form text sections (Our Journey, Our Team, endorsement cards) where
   forced snapping interrupts reading. The hero + map sections still align
   nicely at viewport heights by virtue of their min-height: 100vh.
   Respects prefers-reduced-motion. */
html {
    scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Fix the crop on Giovanna's portrait — her face is in the upper third of the
   source image, so shift the focal point up within the circular crop. */
.team-box img[src*="Giovanna-Verde"] {
    object-position: center 20%;
}

/* Timeline image: subtle "hover for details" affordance, hidden on hover so
   the overlay description can take over. */
.journey-box .img {
    position: relative;
}
.journey-box .img::after {
    content: "hover for details";
    position: absolute;
    bottom: 10px;
    right: 12px;
    font-size: 0.7rem;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: #fff;
    background: rgba(0, 0, 0, 0.45);
    padding: 4px 10px;
    border-radius: 16px;
    pointer-events: none;
    opacity: 0.85;
    transition: opacity 0.3s ease;
    z-index: 2;
}
.journey-box .img:hover::after {
    opacity: 0;
}

/* "At the heart of Maasser el Chouf" — simplified: teal section with the Lebanon
   map PNG aligned to the right edge, filling the section height (text removed). */
.heart-section {
    position: relative;
    background: var(--mesap-teal);
    color: #fff;
    overflow: hidden;
    min-height: 100vh;
    padding: 0;
    display: flex;
    align-items: stretch;
    justify-content: flex-end;
}
.heart-section .heart-text {
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    padding: 0 32px 0 80px;
    width: 50%;
    max-width: 720px;
    z-index: 2;
}
/* Use balance wrap so "At the heart of" stays on one line and only
   "Maasser el Chouf" breaks onto the second (the <br/> in HTML enforces it). */
.heart-section .heart-title {
    text-wrap: balance;
}

/* Keep the description copy narrower than the title — it reads as a body
   paragraph and shouldn't bleed across the section. */
.heart-section .heart-text p {
    max-width: 460px;
}
.heart-section .heart-title {
    font-family: var(--font-display);
    font-size: 60px;
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: 0.5px;
    text-shadow: var(--shadow-title);
}
@media (max-width: 767.98px) {
    .heart-section .heart-title { font-size: 40px; }
}
@media (max-width: 479.98px) {
    .heart-section .heart-title { font-size: 32px; }
}
.heart-section .lebanon-map {
    position: absolute;
    inset: 0 0 0 45%;
    width: 55%;
    height: 100%;
    object-fit: cover;
    object-position: right center;
    pointer-events: none;
}

@media (max-width: 767.98px) {
    .heart-section {
        flex-direction: column;
        align-items: stretch;
        min-height: auto;
    }
    .heart-section .heart-text {
        position: static;
        transform: none;
        top: auto;
        padding: 100px 24px 32px;
        width: 100%;
        max-width: 100%;
    }
    .heart-section .lebanon-map {
        position: static;
        width: 100%;
        height: auto;
        aspect-ratio: 10 / 11;
        object-fit: cover;
        object-position: right center;
    }
}

/* "Institutional Recognition" section. Centered logo grid + supporting copy. */
.institutional {
    background: rgba(37, 90, 114, 0.05);
}
.institutional .institutional-logo {
    max-height: 90px;
    width: auto;
    filter: grayscale(20%);
    transition: filter 0.3s ease, transform 0.3s ease;
}
.institutional .institutional-logo:hover {
    filter: grayscale(0%);
    transform: translateY(-2px);
}

/* Reduce the .title font-size on small screens so the longer "Institutional
   Recognition" / "At the heart of Maasser el Chouf" headings stay legible. */
@media (max-width: 575.98px) {
    .heart-section .title,
    .institutional .title {
        font-size: 12vw;
    }
}

/* ============================================================================
   Figma redesign — "Exploring the Project Timeline" section.
   Featured aerial photo with horizontal year-bar navigator below.
   ============================================================================ */

.explore-section {
    background-color: #ffffff;
}

.explore-title {
    font-family: var(--font-display);
    font-size: 60px;
    color: var(--mesap-teal);
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: 0.5px;
}
@media (max-width: 767.98px) {
    .explore-title { font-size: 40px; }
}
@media (max-width: 479.98px) {
    .explore-title { font-size: 32px; }
}

.explore-section .explore-featured {
    max-width: 466px;
    width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
    transition: opacity 0.25s ease;
}

.explore-year-bar {
    position: relative;
    padding: 8px 0 0;
}

.explore-year-bar::before {
    content: '';
    position: absolute;
    top: 18px;
    left: calc(100% / 14);
    right: calc(100% / 14);
    height: 1px;
    background: var(--mesap-teal);
    z-index: 0;
}

.explore-year-bar li {
    position: relative;
    z-index: 1;
    cursor: pointer;
    text-align: center;
    flex: 1;
    user-select: none;
    min-height: 44px;
    padding: 12px 0;
    margin-top: -12px;
}

.explore-year-bar li:focus-visible {
    outline: 2px solid #255a72;
    outline-offset: 4px;
    border-radius: 8px;
}

.explore-year-bar li::before {
    content: '';
    display: block;
    width: 21px;
    height: 21px;
    border-radius: 50%;
    background: var(--mesap-teal);
    margin: 0 auto 14px;
    transition: transform 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}

.explore-year-bar li:hover::before {
    transform: scale(1.1);
}

.explore-year-bar li .year-label {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 40px;
    line-height: 1;
    color: var(--mesap-teal);
    transition: font-size 0.25s ease;
    display: inline-block;
}

.explore-year-bar li.active .year-label {
    font-size: 60px;
    line-height: 1;
}

@media (max-width: 991.98px) {
    .explore-year-bar li .year-label { font-size: 24px; }
    .explore-year-bar li.active .year-label { font-size: 40px; }
}
@media (max-width: 575.98px) {
    .explore-year-bar li .year-label { font-size: 14px; }
    .explore-year-bar li.active .year-label { font-size: 22px; }
}

@media (max-width: 575.98px) {
    .explore-title {
        font-size: 2rem;
    }
    .explore-year-bar li .year-label {
        font-size: 0.7rem;
    }
}

/* ============================================================================
   Figma redesign — "Institutional Endorsements".
   Teal section background with 3 light cards (name + flag + role + bio).
   ============================================================================ */

.institutional {
    background: var(--mesap-teal);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.institutional .title {
    color: #fff;
}

.team-section {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.explore-section {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.padding.pb-md-0.snap-section {
    min-height: 100vh;
}

.endorsement-card {
    background: #ffffff;
    border-radius: var(--radius-card);
    padding: 24px 22px 22px;
    height: 100%;
    box-shadow: var(--shadow-card);
}

.endorsement-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding-bottom: 14px;
    margin-bottom: 14px;
}

.endorsement-name {
    color: var(--mesap-teal);
    font-family: var(--font-display);
    font-weight: 900;
    font-size: 40px;
    line-height: 1.05;
    letter-spacing: 0.2px;
}
@media (max-width: 991.98px) {
    .endorsement-name { font-size: 32px; }
}
@media (max-width: 575.98px) {
    .endorsement-name { font-size: 26px; }
}

.endorsement-role {
    color: var(--mesap-teal);
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.0625rem; /* 17 px (matches Figma role size) */
    line-height: 1.2;
}

.endorsement-flag {
    display: inline-block;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    box-shadow: 0 0 0 1px rgba(8, 9, 13, 0.08);
}

.endorsement-flag svg,
.endorsement-flag img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.endorsement-text {
    color: var(--mesap-teal);
    font-family: var(--font-serif);
    font-size: 0.75rem; /* 12 px (Yara request) */
    font-weight: 400;
    line-height: 1.55;
}

/* ============================================================================
   Figma redesign — "Let's chat!" contact section above footer.
   Teal panel with form on the left and Lebanon map on the right.
   ============================================================================ */

.chat-section {
    position: relative;
    background: var(--mesap-teal);
    overflow: hidden;
    padding: 0;
    display: flex;
    align-items: stretch;
    justify-content: flex-end;
    min-height: 100vh;
}

/* Standalone contact page variant of the chat-section: sized to fit the form
   + navbar comfortably, no excess empty teal below the Send button. */
.chat-section-page {
    min-height: auto;
    padding-top: 120px;
    padding-bottom: 30px;
}
/* NOTE: .chat-section.chat-section-page (double class) so this beats the
   later `.chat-section .chat-text` absolute rule in the cascade.
   margin-right:auto keeps the in-flow form on the PHYSICAL left (over the
   teal area, away from the map) despite the section's justify-content:
   flex-end — auto margins win over justify-content in both LTR and RTL. */
.chat-section.chat-section-page .chat-text {
    position: relative;
    transform: none;
    top: auto;
    left: auto;
    margin-right: auto;
}

/* On the standalone contact page the navbar overlays the top of the
   section: start the map below the navbar zone (same 120px the page
   reserves as padding-top) so the white land never sits behind the
   white nav labels. top+bottom insets with height:auto stretch the
   image box to the section bottom. */
.chat-section.chat-section-page .lebanon-map {
    inset: 120px 0 0 45%;
    /* replaced elements ignore the bottom inset when height is auto,
       so size the box explicitly to reach the section bottom */
    height: calc(100% - 120px);
}

.chat-section .chat-text {
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    padding: 56px 32px 56px 80px;
    max-width: 620px;
    z-index: 2;
    width: 100%;
}

.chat-section .lebanon-map {
    position: absolute;
    inset: 0 0 0 45%;
    width: 55%;
    height: 100%;
    object-fit: cover;
    object-position: right center;
    pointer-events: none;
}

.chat-title {
    font-family: var(--font-display);
    font-size: 60px;
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: 0.5px;
    text-shadow: var(--shadow-title);
}
@media (max-width: 767.98px) {
    .chat-title { font-size: 40px; }
}
@media (max-width: 479.98px) {
    .chat-title { font-size: 32px; }
}

@media (max-width: 767.98px) {
    .chat-section .chat-text {
        padding: 24px;
        max-width: 100%;
        position: static;
        transform: none;
    }
    /* Hide Lebanon map on mobile to keep the form full-width and readable. */
    .chat-section .lebanon-map {
        display: none;
    }
    /* When used as the standalone contact page on mobile, reduce navbar padding too */
    .chat-section-page {
        padding-top: 100px;
    }
}

.contact-form .form-control {
    border-radius: 4px;
    border: 0;
    background: #fff;
    color: var(--mesap-ink);
    box-shadow: none;
}

.contact-form .form-control:focus,
.contact-form .form-control:focus-visible {
    box-shadow: 0 0 0 3px #f5ebd8;
    outline: 2px solid transparent;
    outline-offset: 2px;
}

.contact-form .form-control:invalid:not(:placeholder-shown) {
    box-shadow: 0 0 0 2px #e57a7a;
}

.contact-form .form-status {
    font-size: 0.875rem;
    min-height: 1.25rem;
}
.contact-form .form-status.is-error {
    color: #ffbdbd;
}
.contact-form .form-status.is-success {
    color: #c8f5d4;
}

.contact-form .form-label {
    font-family: "Roboto Slab", serif;
    font-weight: 500;
    margin-bottom: 6px;
}

.btn.btn-chat {
    background: #fff;
    color: var(--mesap-teal);
    border: 0;
    border-radius: 4px;
    padding: 12px 30px;
    font-family: "Roboto Slab", serif;
    font-weight: 600;
    font-size: 0.95rem;
    transition: background 0.25s ease, transform 0.2s ease;
}

.btn.btn-chat:hover {
    background: var(--mesap-cream-warm);
    transform: translateY(-1px);
}

/* (Hero: design kept original positioning — Figma reference matches existing layout.) */

/* ============================================================================
   Uniform project-card cover images.
   Every cover is forced to the same 3:2 box and cropped to fill (centered),
   so the project/research grids line up regardless of each photo's native
   aspect ratio. object-fit:cover crops the overflow edges without distorting.
   ============================================================================ */
.projects-box img {
    width: 100%;
    aspect-ratio: 3 / 2;
    object-fit: cover;
    object-position: center;
    display: block;
}

/* ============================================================================
   Pottery Activities (Beiteddine) modal — balanced image grid (#project9).
   The two top images are tall portraits that dominate the layout: crop them to
   landscape (3:2). The three below sit in narrower columns, so give them a
   slightly taller box (4:3) to enlarge them and converge the two rows' heights.
   object-fit:cover crops to fill (centered) without distorting; source files
   are untouched. Scoped to #project9 so other modals are unaffected.
   ============================================================================ */
#project9 .team-details .row img {
    width: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}
#project9 .team-details .row .col-lg-6 img {
    aspect-ratio: 3 / 2;
}
#project9 .team-details .row .col-lg-4 img {
    aspect-ratio: 4 / 3;
}

/* Language switcher flag in the navbar (EN ⇄ AR) */
.lang-switch { display: flex; align-items: center; }
.lang-switch .lang-flag {
    width: 22px;
    height: auto;
    border-radius: 2px;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.35);
    display: block;
}

/* Two-flag language switcher group (each flag links the current page in that language).
   translateY centers the flags on the optical middle of the uppercase nav
   labels (cap-height band), measured against the display serif at 16px. */
.lang-switch-group {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 8px;
    transform: translateY(-4px);
}
.lang-switch-group .lang-switch {
    display: flex;
    align-items: center;
    opacity: 0.85;
    transition: opacity 0.2s ease;
}
.lang-switch-group .lang-switch:hover { opacity: 1; }

/* Sticky header (Figma note: "menu burger following the screen scrolling").
   Transparent over the hero; solid teal bar once the page is scrolled. */
.header-top {
    transition: background-color .25s ease, padding .25s ease, box-shadow .25s ease;
}
.header-top.is-stuck {
    position: fixed;
    background-color: rgba(37, 90, 114, 0.94);
    padding: 8px 28px;
    box-shadow: 0 2px 14px rgba(8, 9, 13, 0.3);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

/* When the sticky bar is stuck its background turns teal — the secondary
   pages' teal nav links (nav.navbar.other-pages, responisve.css) would
   vanish into it. Force white links while stuck; extra .navbar class keeps
   specificity above the other-pages media-query rule. */
.header-top.is-stuck .navbar.other-pages .navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.85);
}
.header-top.is-stuck .navbar.other-pages .navbar-nav .nav-link:hover,
.header-top.is-stuck .navbar.other-pages .navbar-nav .nav-link.active {
    color: #ffffff;
    border-color: #ffffff;
}
