@charset "UTF-8";
/* ==========================================================================
   MARCH Lebanon — main stylesheet
   Static HTML template, rebuilt from the original marchlebanon.org design
   with no Elementor, no page-builder and no plugin CSS.

   When converting to a WordPress theme this file becomes the theme's
   style.css (or is enqueued from it). Nothing here depends on Bootstrap,
   jQuery or any plugin.

   Contents
     1.  Fonts & design tokens
     2.  Reset & base elements
     3.  Layout helpers
     4.  Buttons
     5.  Site header & navigation
     6.  Site footer
     7.  Section separator & page titles
     8.  Home — hero slider
     9.  Home — skewed split panels ("What We Do")
     10. Home — Lebanon map & cultural cafés
     11. About — definition rows, goals, SDG, carousels
     12. Post cards (.post-module)
     13. Filter chips & media grids
     14. Get Involved
     15. Contact
     16. Single post / project
     17. Kanyamakan sub-brand
     18. Bedco sub-brand
     19. Utilities
     20. Responsive
   ========================================================================== */


/* 1. Fonts & design tokens
   ========================================================================== */

/* Same three families the original site used:
   News Cycle -> headings, Rubik -> body copy, Didact Gothic -> nav & buttons */
@import url("https://fonts.googleapis.com/css2?family=News+Cycle:wght@400;700&family=Rubik:wght@300;400;500;700&family=Didact+Gothic&display=swap");

:root {
    /* Brand */
    --march-yellow: #fecb2f;   /* buttons, active nav, footer rule */
    --march-yellow-bright: #ffde16; /* separators, panel labels */
    --march-yellow-hover: #d9ca00;
    --march-black: #111;
    --march-body: #222;
    --march-muted: #999;
    --march-line: #efefef;
    --march-grey: #f5f5f5;

    /* Sub-brands */
    --kanyamakan: #8d5c7e;
    --bedco: #4ea3d8;

    /* Type */
    --font-heading: "News Cycle", "Arial Narrow Bold", sans-serif;
    --font-body: "Rubik", sans-serif;
    --font-ui: "Didact Gothic", sans-serif;

    /* Metrics */
    --header-height: 104px;
    --container: 1140px;
}


/* 2. Reset & base elements
   ========================================================================== */

*,
*::before,
*::after { box-sizing: border-box; }

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    color: var(--march-body);
    text-align: left;
    background-color: #fff;
    /* The original fixed backdrop: big MARCH star + repeating light tile */
    background-image: url("../images/bg-splash.png"), url("../images/bg-light.png");
    background-repeat: no-repeat, repeat;
    background-attachment: fixed, fixed;
    background-position: -200px -255px, 0 0;
    /* Offset for the fixed header */
    padding-top: var(--header-height);
}

img {
    max-width: 100%;
    height: auto;
    vertical-align: middle;
    border-style: none;
}

a {
    color: var(--march-black);
    text-decoration: none;
    background-color: transparent;
}

a:hover,
a:focus,
a:active { color: var(--march-black); text-decoration: underline; }

h1, h2, h3, h4, h5, h6 {
    margin-top: 0;
    margin-bottom: .5rem;
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.1;
    color: inherit;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 54px; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

p { margin-top: 0; margin-bottom: 1rem; }

ul, ol { margin-top: 0; margin-bottom: 1rem; }

blockquote { margin: 0 0 1rem; }

hr {
    box-sizing: content-box;
    height: 0;
    overflow: visible;
    border: 0;
    border-top: 1px solid rgba(0, 0, 0, .1);
    margin: 1rem 0;
}

figure { margin: 0 0 1rem; }

table { border-collapse: collapse; }

/* Accessible skip link */
.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    z-index: 100000;
    padding: 12px 20px;
    background: var(--march-yellow);
    color: #000;
    font-family: var(--font-ui);
}
.skip-link:focus { left: 6px; top: 6px; }

:focus-visible {
    outline: 3px solid var(--march-yellow);
    outline-offset: 2px;
}


/* 3. Layout helpers
   ========================================================================== */

.container {
    width: 100%;
    max-width: var(--container);
    margin-right: auto;
    margin-left: auto;
    padding-right: 15px;
    padding-left: 15px;
}

/* Full-bleed container — the original site widened content at >=1200px */
.container-wide {
    width: 100%;
    margin-right: auto;
    margin-left: auto;
    padding-right: 15px;
    padding-left: 15px;
}

.container-narrow {
    width: 100%;
    max-width: 860px;
    margin-right: auto;
    margin-left: auto;
    padding-right: 15px;
    padding-left: 15px;
}

.site-content {
    padding-top: 2.125rem;
    padding-bottom: 4.75rem;
}

.site-content--flush { padding-top: 0; }

/* Simple, dependency-free grid */
.row {
    display: flex;
    flex-wrap: wrap;
    margin-right: -15px;
    margin-left: -15px;
}

.col { flex: 1 0 0%; padding-right: 15px; padding-left: 15px; }
.col-12 { flex: 0 0 100%; max-width: 100%; padding-right: 15px; padding-left: 15px; }
.col-6  { flex: 0 0 50%;  max-width: 50%;  padding-right: 15px; padding-left: 15px; }
.col-4  { flex: 0 0 33.3333%; max-width: 33.3333%; padding-right: 15px; padding-left: 15px; }
.col-3  { flex: 0 0 25%;  max-width: 25%;  padding-right: 15px; padding-left: 15px; }

.grid {
    display: grid;
    gap: 30px;
}
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }


/* 4. Buttons
   ========================================================================== */

.btn {
    display: inline-block;
    font-family: var(--font-ui);
    font-weight: 400;
    text-align: center;
    vertical-align: middle;
    cursor: pointer;
    user-select: none;
    background-color: transparent;
    border: 1px solid transparent;
    padding: .375rem .75rem;
    font-size: 1rem;
    line-height: 1.5;
    border-radius: .25rem;
    transition: color .15s ease-in-out, background-color .15s ease-in-out,
                border-color .15s ease-in-out;
}

.btn:hover { text-decoration: none; }

/* The site's signature yellow button */
.btn-march {
    background-color: var(--march-yellow);
    color: #000;
    border: 0 none;
    border-bottom: 3px solid rgba(0, 0, 0, .15);
    border-radius: 3px;
}

.btn-march:hover,
.btn-march:focus {
    background-color: var(--march-yellow-hover);
    color: #000;
    border-bottom: 3px solid rgba(0, 0, 0, .15);
}

/* Wide "Show All" / pagination style button */
.btn-block-yellow {
    display: inline-block;
    border: none;
    outline: none;
    padding: 15px 45px;
    margin: 0 auto;
    background: var(--march-yellow);
    color: #000;
    font-family: var(--font-ui);
    border-radius: 0;
    cursor: pointer;
    transition: 300ms all ease-in-out;
}

.btn-block-yellow:hover {
    background: #000;
    color: var(--march-yellow);
    text-decoration: none;
}

/* Subtle "Load more" used on the portfolio grids */
.btn-load-more {
    display: inline-block;
    border: 0;
    background: #f3f3f3;
    color: #444;
    font-family: var(--font-body);
    font-size: .75rem;
    letter-spacing: .04em;
    text-transform: uppercase;
    padding: 10px 22px;
    cursor: pointer;
    transition: 200ms all ease-in-out;
}

.btn-load-more:hover { background: var(--march-yellow); color: #000; }

.list-end-note {
    color: #b5b5b5;
    font-size: .75rem;
    letter-spacing: .06em;
    text-transform: uppercase;
    text-align: center;
    padding: 20px 0;
}


/* 5. Site header & navigation
   ========================================================================== */

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 9999;
    background-color: #fff;
    background-image: url("../images/bg-light.png");
    background-repeat: repeat;
    box-shadow: 0 .5rem 1rem rgba(0, 0, 0, .05);
}

.site-header__inner {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
    padding: 0 15px;
    min-height: var(--header-height);
}

.site-branding { flex: 0 0 auto; padding: 8px 0; }

.site-branding img {
    display: block;
    width: auto;
    height: 74px;
}

/* Social icons pinned to the top-right, as on the original */
.header-social {
    position: absolute;
    right: 15px;
    top: 8px;
    z-index: 10;
    display: flex;
    gap: 10px;
    align-items: center;
}

.header-social a {
    font-size: 15px;
    line-height: 1;
    color: #333;
    display: inline-flex;
}

.header-social a:hover { color: #000; }

.header-social svg { width: 15px; height: 15px; fill: currentColor; }

/* Primary menu */
.main-navigation { flex: 1 1 auto; }

.main-navigation .menu {
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    width: 100%;
    padding-left: 80px;
    margin: 0;
    list-style: none;
}

.main-navigation .menu-item { text-align: center; display: flex; }

/* Weight and colours come from the original theme: the Journal preset sets
   .navbar { font-weight: 700 } and the custom CSS only swapped the family to
   Didact Gothic, so the live nav is bold at rgba(0,0,0,.7). */
.main-navigation .nav-link,
.main-navigation .menu-item > a {
    display: flex;
    align-items: center;
    text-align: center;
    font-family: var(--font-ui);
    font-size: 18px;
    font-weight: 700;
    line-height: 1.2;
    color: rgba(0, 0, 0, .7);
    padding: 12px 1rem;
    transition: color .15s ease-in-out, background-color .15s ease-in-out;
}

.main-navigation .nav-link:hover,
.main-navigation .nav-link:focus,
.main-navigation .menu-item > a:hover,
.main-navigation .menu-item > a:focus { text-decoration: none; color: #000; }

/* Current page — solid yellow block, exactly like the original */
.main-navigation .current-menu-item .nav-link,
.main-navigation .current-menu-item > a,
.main-navigation .current_page_item > a,
.main-navigation .nav-link[aria-current="page"] {
    background-color: var(--march-yellow);
    color: #000;
}

/* Search toggle at the end of the menu */
.nav-search {
    display: inline-flex;
    align-items: center;
    padding: 12px 8px;
    background: none;
    border: 0;
    cursor: pointer;
    color: #333;
}

.nav-search svg { width: 17px; height: 17px; fill: currentColor; }

.search-panel {
    display: none;
    border-top: 1px solid var(--march-line);
    background: #fff;
    padding: 14px 15px;
}

.search-panel.is-open { display: block; }

.search-panel form {
    display: flex;
    max-width: 560px;
    margin: 0 auto;
    gap: 8px;
}

.search-panel input[type="search"] {
    flex: 1 1 auto;
    font-family: var(--font-body);
    font-size: 1rem;
    padding: 8px 12px;
    border: 1px solid #ced4da;
    border-radius: 3px;
    background: #fff;
}

.search-panel input[type="search"]:focus {
    outline: 0;
    border-color: var(--march-yellow);
}

/* Mobile toggle — hidden on desktop */
.menu-toggle {
    display: none;
    margin-left: auto;
    padding: 10px;
    background: none;
    border: 1px solid #ddd;
    border-radius: 3px;
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: #111;
    margin: 4px 0;
    transition: transform .2s ease, opacity .2s ease;
}

.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }


/* 6. Site footer
   ========================================================================== */

.site-footer {
    background-color: var(--march-black);
    border-top: 5px solid var(--march-yellow);
    color: #aaa;
    padding-top: 30px;
}

.site-footer a { color: #aaa; }
.site-footer a:hover { color: var(--march-yellow); }

.site-footer .widget-title {
    color: #aaa;
    font-family: var(--font-heading);
    font-size: 1.1rem;
    letter-spacing: .04em;
    margin-bottom: .75rem;
}

.footer-widgets {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: space-between;
    align-items: flex-start;
    padding-bottom: 20px;
}

.footer-about { max-width: 420px; }

.footer-about p {
    font-size: .875rem;
    line-height: 1.7;
    text-align: justify;
    color: #aaa;
}

.footer-social {
    display: flex;
    gap: 6px;
    align-items: center;
}

.footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    padding: 2px;
    border-radius: 50%;
    background-color: transparent;
    color: #aaa;
    transition: background-color .2s ease, color .2s ease;
}

.footer-social a:hover { background-color: var(--march-yellow); color: var(--march-black); }

.footer-social svg { width: 26px; height: 26px; fill: currentColor; }

.site-info {
    color: #555;
    font-size: .8125rem;
    padding: 10px 0 26px;
}

.site-info a { color: #555; }


/* 7. Section separator & page titles
   ========================================================================== */

/* The thin yellow rule the original used between homepage sections */
.section-separator {
    position: relative;
    padding: 45px 0 15px;
    margin: 60px 0;
    text-align: center;
}

.section-separator::after {
    content: "";
    position: absolute;
    bottom: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 420px;
    max-width: 80%;
    border-bottom: 5px solid var(--march-yellow-bright);
}

.page-title {
    text-align: center;
    margin: 60px 0;
}

.section-title { text-align: center; margin-bottom: 40px; }

.lead-text {
    max-width: 1100px;
    margin: 0 auto 30px;
    text-align: center;
    font-style: italic;
    line-height: 1.7;
}


/* 8. Home — hero slider
   ========================================================================== */

.hero-slider {
    position: relative;
    width: 100%;
    overflow: hidden;
    background: #000;
}

.hero-slider__viewport { position: relative; width: 100%; }

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity .6s ease-in-out;
}

.hero-slide.is-active { position: relative; opacity: 1; visibility: visible; }

.hero-slide > a,
.hero-slide > .hero-slide__media { display: block; }

.hero-slide img {
    display: block;
    width: 100%;
    height: auto;
}

/* Prev / next arrows */
.hero-slider__arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    background: rgba(0, 0, 0, .35);
    color: #fff;
    cursor: pointer;
    transition: background-color .2s ease;
}

.hero-slider__arrow:hover { background: rgba(0, 0, 0, .6); }
.hero-slider__arrow--prev { left: 18px; }
.hero-slider__arrow--next { right: 18px; }
.hero-slider__arrow svg { width: 14px; height: 14px; fill: currentColor; }

/* Bullet dots below the slider */
.hero-slider__dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    padding: 26px 0;
}

.hero-slider__dot {
    width: 9px;
    height: 9px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #cfcfcf;
    cursor: pointer;
    transition: background-color .2s ease;
}

.hero-slider__dot.is-active { background: var(--march-yellow-bright); }


/* 9. Home — skewed split panels ("What We Do")
   ========================================================================== */

.image-container {
    position: relative;
    width: 100%;
    height: 400px;
    overflow: hidden;
    background: lightgrey;
}

.image-left,
.image-right {
    position: absolute;
    top: 0;
    height: 100%;
    width: 60%;
    min-width: 500px;
    transform: skewX(-25deg);
    background: #fff;
    overflow: hidden;
    border-top: 0;
    border-bottom: 0;
}

.image-left  { right: 50%; }
.image-right { left: 49.5%; } /* slight overlap so the seam never shows */

/* Counter-skewed photo layer */
.image-left::after,
.image-right::after {
    content: "";
    position: absolute;
    top: 0;
    display: block;
    width: 120%;
    height: 100%;
    transform: skewX(25deg);
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
}

.image-left::after  { right: -93px; background-image: var(--panel-image, url("../images/civil-rights.jpg")); }
.image-right::after { left: -93px;  background-image: var(--panel-image, url("../images/conflict-resolution.png")); }

/* Yellow wash that clears on hover */
.image-filter {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 3;
    background: rgba(255, 222, 22, .3);
    transition: 300ms all ease-in-out;
    pointer-events: none;
}

.image-left:hover .image-filter,
.image-right:hover .image-filter { background: transparent; }

/* Yellow caption plate */
.image-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) skewX(25deg);
    z-index: 5;
    font-size: 24px;
    font-weight: 700;
    line-height: 1.25;
    background: rgba(255, 222, 22, .75);
    color: #000;
    padding: 15px 30px;
    text-align: center;
}

a.image-left,
a.image-right { text-decoration: none; }


/* 10. Home — Lebanon map & cultural cafés
   ========================================================================== */

.where-it-happens { align-items: center; }

.where-it-happens__text { text-align: center; }

.where-it-happens__text p {
    max-width: 420px;
    margin: 0 auto 1rem;
}

/* Inline SVG replacement for the old HTML5-Maps plugin */
.lebanon-map { width: 100%; max-width: 320px; margin: 0 auto; display: block; }

.lebanon-map .region {
    fill: #eaeaea;
    stroke: #fff;
    stroke-width: 1;
    stroke-linejoin: round;
    transition: fill .2s ease-in-out;
}

.lebanon-map .region.is-active { fill: #ffff00; cursor: pointer; }
.lebanon-map .region.is-active:hover { fill: var(--march-yellow); }

.lebanon-map .marker { fill: var(--march-yellow-bright); stroke: #fff; stroke-width: 1; }

/* Tooltip that replaces the plugin's popup */
.map-tooltip {
    position: absolute;
    z-index: 20;
    max-width: 320px;
    padding: 14px 16px;
    background: #fff;
    border: 1px solid #e2e2e2;
    box-shadow: 0 6px 24px rgba(0, 0, 0, .12);
    font-size: .8125rem;
    line-height: 1.6;
    display: none;
}

.map-tooltip.is-open { display: block; }
.map-tooltip h4 { font-size: 1rem; margin-bottom: .25rem; }
.map-tooltip p { margin-bottom: .75rem; }
.map-tooltip p:last-child { margin-bottom: 0; }

.map-wrap { position: relative; }

/* Cultural café logos */
.cafes-title {
    text-align: center;
    color: var(--march-muted);
    font-family: var(--font-heading);
    font-size: 1.5rem;
    margin: 30px 0 20px;
}

.cafe-logos {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 50px;
}

.cafe-logos img { max-height: 120px; width: auto; }


/* 11. About — definition rows, goals, SDG, carousels
   ========================================================================== */

/* "Who We Are / Our Story / ..." — label left, yellow-ruled copy right */
.def-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    margin-bottom: 34px;
}

.def-row__label {
    flex: 0 0 33.3333%;
    max-width: 33.3333%;
    padding: 0 15px;
    text-align: center;
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
}

.def-row__body {
    flex: 0 0 66.6667%;
    max-width: 66.6667%;
    padding: 0 15px;
}

.def-row__body p {
    border-left: 3px solid var(--march-yellow);
    padding-left: 16px;
    margin-bottom: 0;
    text-align: justify;
    font-size: .875rem;
    line-height: 1.7;
}

/* UN Sustainable Development Goal icons */
.sdg-icons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 0;
    margin: 40px 0;
}

/* Alternating top margin gives the row the original's zig-zag rhythm */
.sdg-icons img { max-height: 140px; max-width: 150px; margin: 10px; }
.sdg-icons img:nth-child(even) { margin-top: 30px; margin-bottom: 30px; }
.sdg-icons img:nth-child(odd)  { margin-top: 0; margin-bottom: 30px; }

/* Goal chips painted on the yellow brush stroke */
.goals-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px 40px;
    margin-top: 30px;
}

.block-strip {
    font-weight: 700;
    padding: 15px 30px;
    margin: 0;
    text-align: center;
    background-image: url("../images/goals-bg.png");
    background-size: 100% 100%;
    background-repeat: no-repeat;
    background-position: center center;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 76px;
    font-size: .9375rem;
    line-height: 1.35;
}

/* Generic image/logo carousel (awards, team, partners) */
.carousel { position: relative; }

.carousel__viewport { overflow: hidden; }

.carousel__track {
    display: flex;
    transition: transform .45s ease;
}

.carousel__slide {
    flex: 0 0 100%;
    max-width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 10px;
}

.carousel__slide img {
    max-height: 320px;
    width: auto;
    object-fit: contain;
}

.carousel__slide figcaption {
    text-align: center;
    font-size: .875rem;
    color: #666;
    margin-top: 10px;
}

.carousel__arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    background: transparent;
    color: #777;
    cursor: pointer;
    z-index: 3;
}

.carousel__arrow:hover { color: #111; }
.carousel__arrow--prev { left: -6px; }
.carousel__arrow--next { right: -6px; }
.carousel__arrow svg { width: 16px; height: 16px; fill: currentColor; }

.carousel__dots {
    display: flex;
    justify-content: center;
    gap: 7px;
    padding-top: 16px;
}

.carousel__dot {
    width: 8px;
    height: 8px;
    border: 0;
    border-radius: 50%;
    background: #d2d2d2;
    padding: 0;
    cursor: pointer;
}

.carousel__dot.is-active { background: var(--march-yellow); }

.about-block { align-items: center; }
.about-block__text { text-align: center; }
.about-block__text p { font-size: .875rem; line-height: 1.7; }


/* 12. Post cards (.post-module)
   ========================================================================== */

.post-module {
    position: relative;
    z-index: 1;
    display: block;
    background: #fff;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, .15);
    transition: all .3s linear 0s;
    margin-bottom: 45px;
}

.post-module:hover { box-shadow: 0 1px 35px 0 rgba(0, 0, 0, .3); }

.post-module .thumbnail {
    position: relative;
    background: #000;
    height: 220px;
    overflow: hidden;
}

.post-module .thumbnail img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all .3s linear 0s;
}

.post-module:hover .thumbnail img { transform: scale(1.1); opacity: .6; }

.post-module .post-content { background: #fff; width: 100%; padding: 30px; }

.post-module .post-content .title {
    margin: 0;
    padding: 0 0 10px;
    color: #333;
    font-family: var(--font-body);
    font-size: 20px;
    font-weight: 700;
    line-height: 1.3;
}

.post-module .post-content .title a { color: #333; }

.post-module .post-content .title a:hover {
    color: var(--march-black);
    text-shadow: 1px 1px 0 var(--march-yellow);
    text-decoration: none;
}

.post-module .post-content .post-meta {
    margin: 20px 0 16px;
    color: #999;
    font-size: .875rem;
}

.post-module .post-content .post-meta a { color: #999; text-decoration: none; }

.post-module .post-content .description {
    color: #666;
    font-size: 14px;
    line-height: 1.8em;
}

/* Small share row on the cards */
.share-row { display: flex; gap: 8px; align-items: center; }

.share-row a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: #4a4a4a;
    color: #fff;
    transition: background-color .2s ease;
}

.share-row a:hover { background: var(--march-black); }
.share-row svg { width: 13px; height: 13px; fill: currentColor; }

/* Cards hidden behind the "Show All" toggle */
.article-w.hidden { display: none; }


/* 13. Filter chips & media grids
   ========================================================================== */

.filter-bar {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin: 0 auto 30px;
    padding: 0;
    list-style: none;
    max-width: 1200px;
}

.filter-chip {
    font-family: var(--font-body);
    font-size: .7rem;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: #555;
    background: #f3f3f3;
    border: 1px solid #f3f3f3;
    border-radius: 3px;
    padding: 7px 14px;
    cursor: pointer;
    transition: 200ms all ease-in-out;
}

.filter-chip:hover { border-color: #ddd; background: #ececec; }

.filter-chip.is-active {
    color: #000;
    background-color: var(--march-yellow);
    border: 1px solid var(--march-yellow);
    font-weight: 700;
}

/* ------------------------------------------------------------------
   Portfolio grid — ONE component shared by Projects & Activities, Press
   and Research. The original site ran the same Visual Portfolio layout on
   all three (tiles "3|1,1|", 15px gap, "emerge" item style). Those pages
   look different only because the featured images differ: the press images
   are newsroom composites and the research images are pre-styled posters.
   ------------------------------------------------------------------ */

.vp-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.vp-item {
    position: relative;
    display: block;
    overflow: hidden;
    background: #111;
    color: #fff;
    z-index: 0;
}

.vp-item:hover { text-decoration: none; }

.vp-item__img {
    display: block;
    position: relative;
    overflow: hidden;
    aspect-ratio: 1 / 1;
}

.vp-item__img img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform .3s cubic-bezier(.25, .46, .45, .94);
}

/* "emerge": the image lifts on hover — it does not zoom */
.vp-item:hover .vp-item__img img,
.vp-item:focus-visible .vp-item__img img { transform: translateY(-10px); }

.vp-item__overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    background: rgba(0, 0, 0, .2);
    opacity: 0;
    transition: opacity .3s ease;
    pointer-events: none;
}

.vp-item:hover .vp-item__overlay,
.vp-item:focus-visible .vp-item__overlay { opacity: 1; }

/* Black caption panel rising from the bottom with a slanted top edge */
.vp-item__caption {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    max-height: 100%;
    overflow: hidden;
    z-index: 3;
    background: #000;
    color: #fff;
    text-align: center;
    padding: calc(1.5em + 20px) 2em 1.5em;
    transform: translateY(100%);
    clip-path: polygon(0 20px, 100% 20px, 100% 100%, 0 100%);
    transition: transform .3s cubic-bezier(.25, .46, .45, .94),
                clip-path .3s cubic-bezier(.25, .46, .45, .94);
}

.vp-item:hover .vp-item__caption,
.vp-item:focus-visible .vp-item__caption {
    transform: translateY(0);
    clip-path: polygon(0 0, 100% 20px, 100% 100%, 0 100%);
}

/* Caption lines stagger in one after another */
.vp-item__caption > * {
    display: block;
    margin: 0 0 1.5em;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity .25s cubic-bezier(.25, .46, .45, .94),
                transform .25s cubic-bezier(.25, .46, .45, .94);
    transition-delay: calc(.07s * var(--stagger, 1));
}

.vp-item__caption > :last-child { margin-bottom: 0; }

.vp-item:hover .vp-item__caption > *,
.vp-item:focus-visible .vp-item__caption > * { opacity: 1; transform: translateY(0); }

.vp-item__cats {
    --stagger: 1;
    font-size: .82em;
    font-weight: 500;
    letter-spacing: .02em;
    text-transform: uppercase;
    opacity: .8;
}

.vp-item__title {
    --stagger: 2;
    font-family: var(--font-body);
    font-size: 1.2em;
    font-weight: 700;
    line-height: 1.35;
}

.vp-item__date { --stagger: 3; font-size: .85em; opacity: .8; }

.vp-item.is-hidden { display: none; }

.grid-actions { text-align: center; padding: 26px 0 10px; }


/* 14. Get Involved
   ========================================================================== */

.block-getinvolved {
    padding: 15px;
    margin: 5px 0;
    border: 1px solid var(--march-line);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background: #fff;
    height: 100%;
}

.block-getinvolved img { max-height: 96px; width: auto; margin: 18px 0 6px; }

.block-getinvolved h4 {
    padding: 10px 0;
    font-size: 1.5rem;
}

.block-getinvolved p.text {
    min-height: 240px;
    font-size: .875rem;
    line-height: 1.7;
    text-align: justify;
}

.block-getinvolved .btn { margin-top: auto; }


/* 15. Contact
   ========================================================================== */

.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.contact-form { text-align: center; }

.contact-form label {
    display: block;
    width: 80%;
    margin: 0 auto 6px;
    font-size: 1rem;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="tel"],
.contact-form input[type="file"],
.contact-form select,
.contact-form textarea {
    display: block;
    width: 80%;
    margin: 0 auto 18px;
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.5;
    color: #495057;
    background-color: #fff;
    border: 1px solid #ced4da;
    border-radius: .25rem;
    padding: .375rem .75rem;
}

.contact-form input[type="file"] { border: 0; padding-left: 0; }

.contact-form textarea { min-height: 240px; resize: vertical; }

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    outline: 0;
    border-color: var(--march-yellow);
    box-shadow: 0 0 0 .15rem rgba(254, 203, 47, .35);
}

.contact-details img { max-width: 110px; margin-bottom: 20px; }
.contact-details h4 { font-size: 1.1rem; margin-bottom: .1rem; }
.contact-details p { margin-bottom: 1.2rem; }


/* 16. Single post / project
   ========================================================================== */

.single-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 40px;
    align-items: start;
}

.single-sidebar img { width: 100%; height: auto; margin-bottom: 18px; }

.entry-title { font-size: 1.75rem; margin-bottom: .75rem; }

.entry-meta {
    font-size: .8em;
    color: #777;
    margin-bottom: 24px;
    line-height: 1.7;
}

.entry-meta a { color: #6b6b3a; }

.entry-content { font-size: 1rem; line-height: 1.75; }

.entry-content > * { margin-bottom: 1.35rem; }

.entry-content h2 { font-size: 1.9rem; margin-top: 2rem; }
.entry-content h3 { font-size: 1.5rem; margin-top: 1.75rem; }

/* Editorial media is centred and capped so a tall logo or poster can't
   dominate the column the way a full-bleed image would. */
.entry-content img,
.entry-content video {
    display: block;
    max-width: 100%;
    max-height: 560px;
    width: auto;
    height: auto;
    margin: 0 auto;
}

.entry-content figure { text-align: center; }

/* Responsive video embeds (replaces WordPress oEmbed markup) */
.video-embed {
    position: relative;
    width: 100%;
    margin: 0 auto 1.35rem;
    aspect-ratio: 16 / 9;
    background: #000;
}

.video-embed iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.entry-content figcaption {
    font-size: .8rem;
    color: #777;
    text-align: center;
    margin-top: 8px;
}


/* 17. Kanyamakan sub-brand
   ========================================================================== */

.kym-logo { display: block; margin: 0 auto 24px; max-height: 120px; width: auto; }

.kym-banner { width: 100%; display: block; }

.kym-block { display: grid; grid-template-columns: 1fr 1fr; gap: 46px; align-items: center; }

.kym-block h2 {
    font-family: var(--font-body);
    font-size: 2.6rem;
    font-weight: 500;
    line-height: 1.2;
    color: #3c3c3c;
    margin-bottom: 1.2rem;
}

.kym-block p { font-size: .95rem; line-height: 1.75; color: #5d5d6e; }

.kym-block img { width: 100%; height: auto; }

.kym-filter {
    display: flex;
    justify-content: center;
    gap: 26px;
    padding: 26px 0;
    list-style: none;
    margin: 0;
}

.kym-filter button {
    background: none;
    border: 0;
    font-family: var(--font-body);
    font-size: .82rem;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: #3f6fb5;
    cursor: pointer;
    padding: 4px 2px;
}

.kym-filter button.is-active { color: var(--kanyamakan); font-weight: 700; }


/* 18. Bedco sub-brand
   ========================================================================== */

.bedco-logo { display: block; margin: 0 auto 20px; max-height: 90px; width: auto; }

.bedco-hero {
    position: relative;
    min-height: 620px;
    display: flex;
    align-items: center;
    background-size: cover;
    background-position: center;
    color: #fff;
}

.bedco-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(78, 163, 216, .55);
}

.bedco-hero__inner { position: relative; z-index: 2; max-width: 560px; }

.bedco-hero__kicker {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: .85rem;
    margin-bottom: 18px;
}

.bedco-hero__kicker::before {
    content: "";
    width: 120px;
    height: 2px;
    background: var(--march-yellow);
}

.bedco-hero h1 {
    font-family: var(--font-heading);
    font-size: 3.4rem;
    line-height: 1.08;
    margin-bottom: 1.1rem;
}

.bedco-hero p { font-size: .95rem; line-height: 1.7; margin-bottom: 1.6rem; }

.bedco-section-kicker {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: .9rem;
    color: #333;
    margin-bottom: 14px;
}

.bedco-section-kicker::before {
    content: "";
    width: 70px;
    height: 1px;
    background: #333;
}

.bedco-heading {
    font-family: var(--font-body);
    font-size: 1.6rem;
    font-weight: 500;
    line-height: 1.3;
    color: var(--bedco);
    margin-bottom: 1.2rem;
}

.bedco-body p { font-size: .9rem; line-height: 1.7; color: #4a4a55; margin-bottom: .8rem; }

.bedco-stat {
    background: #111;
    color: #fff;
    text-align: center;
    padding: 26px 20px;
    margin-bottom: 16px;
}

.bedco-stat strong {
    display: block;
    font-family: var(--font-heading);
    font-size: 3rem;
    line-height: 1;
    color: var(--bedco);
}

.bedco-stat span { font-size: .85rem; }

.bedco-person { display: flex; align-items: center; gap: 14px; }
.bedco-person img { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; }
.bedco-person strong { display: block; color: var(--bedco); font-size: 1.1rem; font-weight: 500; }
.bedco-person span { font-size: .85rem; color: #666; }

.bedco-tag {
    display: inline-block;
    background: var(--march-yellow);
    color: #000;
    font-size: .8rem;
    padding: 6px 18px;
}


/* 18b. Bedco — full page sections
   ========================================================================== */

/* Section kicker: a short rule followed by a small label */
.bd-kicker {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: .85rem;
    letter-spacing: .06em;
    color: #333;
    margin-bottom: 12px;
}

.bd-kicker::before {
    content: "";
    width: 70px;
    height: 1px;
    background: currentColor;
    flex: 0 0 70px;
}

.bd-kicker--center { justify-content: center; }
.bd-kicker--light { color: #fff; }

.bd-heading {
    font-family: var(--font-body);
    font-size: 1.7rem;
    font-weight: 500;
    line-height: 1.3;
    color: var(--bedco);
    margin-bottom: 1.1rem;
}

.bd-body p { font-size: .9rem; line-height: 1.75; color: #4a4a55; margin-bottom: .9rem; }

.bd-section { padding: 70px 0; }

/* A section laid over a photograph, with a blue wash and white text */
.bd-photo-section {
    position: relative;
    padding: 90px 0;
    background-size: cover;
    background-position: center;
    color: #fff;
    text-align: center;
}

.bd-photo-section::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(20, 45, 65, .72);
}

.bd-photo-section > * { position: relative; z-index: 2; }

.bd-photo-section h2 {
    font-family: var(--font-body);
    font-size: 2.1rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 1.2rem;
}

.bd-photo-section p {
    max-width: 640px;
    margin: 0 auto .9rem;
    font-size: .9rem;
    line-height: 1.8;
}

/* Video poster with a play badge */
.bd-video {
    position: relative;
    display: block;
    max-width: 720px;
    margin: 0 auto 40px;
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

.bd-video img { width: 100%; height: 100%; object-fit: cover; }

.bd-video::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 76px;
    height: 76px;
    transform: translate(-50%, -50%);
    border: 3px solid rgba(255, 255, 255, .9);
    border-radius: 50%;
    background: rgba(255, 255, 255, .12);
}

.bd-video__tri {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 2;
    transform: translate(-40%, -50%);
    border-left: 20px solid #fff;
    border-top: 13px solid transparent;
    border-bottom: 13px solid transparent;
}

/* Vision & Mission cards */
.bd-vm-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.bd-vm-card { margin-bottom: 28px; }
.bd-vm-card h4 { font-size: 1.15rem; color: var(--bedco); margin-bottom: .5rem; }
.bd-vm-card p { font-size: .9rem; line-height: 1.75; color: #4a4a55; margin: 0; }

/* Social impact list */
.bd-impact-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 12px;
}

.bd-impact-list li {
    display: flex;
    align-items: baseline;
    gap: 10px;
    font-size: .95rem;
    line-height: 1.6;
}

.bd-impact-list strong {
    color: var(--bedco);
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: .03em;
}

/* Services */
.bd-services {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 26px;
}

.bd-service {
    text-align: center;
    padding: 26px 18px;
    border: 1px solid var(--march-line);
    background: #fff;
}

.bd-service img { height: 64px; width: auto; margin-bottom: 14px; }
.bd-service h4 { font-size: 1.05rem; color: var(--bedco); margin-bottom: .5rem; }
.bd-service p { font-size: .82rem; line-height: 1.65; color: #5b5b66; margin: 0; }

/* Before / after project pairs */
.bd-projects {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.bd-project__pair { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; }

.bd-project__shot { position: relative; }

.bd-project__shot img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    display: block;
}

.bd-project__shot span {
    position: absolute;
    left: 0;
    bottom: 0;
    padding: 4px 10px;
    font-size: .68rem;
    letter-spacing: .08em;
    text-transform: uppercase;
    background: rgba(0, 0, 0, .65);
    color: #fff;
}

.bd-project h5 {
    margin: 12px 0 0;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    color: #333;
    text-align: center;
}

/* Counter strip */
.bd-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    text-align: center;
}

.bd-stat strong {
    display: block;
    font-family: var(--font-heading);
    font-size: 3rem;
    line-height: 1;
    color: var(--bedco);
}

.bd-stat span { font-size: .85rem; color: #555; }

/* Testimonials */
.bd-quotes {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 26px;
}

.bd-quote {
    background: #fff;
    border: 1px solid var(--march-line);
    border-left: 4px solid var(--bedco);
    padding: 26px 28px;
}

.bd-quote p {
    font-size: .9rem;
    line-height: 1.8;
    color: #4a4a55;
    font-style: italic;
    margin-bottom: 14px;
}

.bd-quote footer { font-size: .8rem; color: #777; }
.bd-quote footer strong { display: block; color: #222; font-style: normal; font-size: .95rem; }

/* Partner logos */
.bd-partners {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 50px;
}

.bd-partners img { max-height: 90px; width: auto; }

/* Contact cards */
.bd-contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 26px;
}

.bd-contact-card {
    border: 1px solid var(--march-line);
    background: #fff;
    padding: 26px 28px;
}

.bd-contact-card h4 { font-size: 1.05rem; color: var(--bedco); margin-bottom: .5rem; }
.bd-contact-card p { font-size: .85rem; line-height: 1.7; color: #5b5b66; }
.bd-contact-card a { font-size: 1.15rem; font-weight: 700; color: #222; }


/* 17b. Kanyamakan — extra pieces
   ========================================================================== */

.kym-banner-wrap { margin-bottom: 10px; }

/* "minimal" filter style used on the Kanyamakan gallery */
.kym-filter {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 28px;
    padding: 30px 0;
    margin: 0;
    list-style: none;
}

.kym-filter .filter-chip {
    background: none;
    border: 0;
    border-radius: 0;
    padding: 4px 2px;
    font-size: .82rem;
    letter-spacing: .05em;
    text-transform: uppercase;
    color: #3f6fb5;
    font-weight: 400;
}

.kym-filter .filter-chip:hover { background: none; color: var(--kanyamakan); }

.kym-filter .filter-chip.is-active {
    background: none;
    border: 0;
    color: var(--kanyamakan);
    font-weight: 700;
    border-bottom: 2px solid var(--kanyamakan);
}

.kym-section { padding: 60px 0; }

@media (max-width: 991px) {
    .bd-vm-grid,
    .bd-quotes,
    .bd-contact-grid { grid-template-columns: 1fr; }
    .bd-services { grid-template-columns: repeat(2, 1fr); }
    .bd-projects { grid-template-columns: repeat(2, 1fr); }
    .bd-stats { grid-template-columns: repeat(2, 1fr); }
    .bd-photo-section h2 { font-size: 1.6rem; }
}

@media (max-width: 767px) {
    .bd-services,
    .bd-projects { grid-template-columns: 1fr; }
    .bd-section { padding: 46px 0; }
    .bd-kicker::before { width: 40px; flex-basis: 40px; }
}


/* 19. Utilities
   ========================================================================== */

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.mt-30 { margin-top: 30px; }
.mb-30 { margin-bottom: 30px; }
.mt-60 { margin-top: 60px; }
.mb-60 { margin-bottom: 60px; }
.py-40 { padding-top: 40px; padding-bottom: 40px; }

.screen-reader-text {
    position: absolute !important;
    width: 1px; height: 1px;
    margin: -1px; padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

.is-hidden { display: none !important; }


/* 20. Responsive
   ========================================================================== */

@media (max-width: 1199px) {
    :root { --header-height: 88px; }

    .main-navigation .menu { padding-left: 20px; }
    .main-navigation .nav-link { font-size: 16px; padding: 10px .6rem; }
    .site-branding img { height: 62px; }
}

@media (max-width: 991px) {
    :root { --header-height: 78px; }

    h2 { font-size: 38px; }

    /* Nav collapses to a panel */
    .menu-toggle { display: block; }

    .main-navigation {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: #fff;
        border-top: 1px solid var(--march-line);
        box-shadow: 0 12px 20px rgba(0, 0, 0, .08);
        max-height: calc(100vh - var(--header-height));
        overflow-y: auto;
    }

    .main-navigation.is-open { display: block; }

    .main-navigation .menu {
        flex-direction: column;
        padding: 8px 0;
    }

    .main-navigation .menu-item { display: block; text-align: left; }

    /* Full-width rows with a comfortable tap target */
    .main-navigation .nav-link,
    .main-navigation .menu-item > a {
        display: flex;
        align-items: center;
        min-height: 52px;
        width: 100%;
        text-align: left;
        padding: 14px 22px;
        font-size: 17px;
        color: rgba(0, 0, 0, .75);
        border-bottom: 1px solid var(--march-line);
        -webkit-tap-highlight-color: rgba(254, 203, 47, .35);
    }

    .main-navigation .menu-item:last-child > a,
    .main-navigation .menu-item:last-child .nav-link { border-bottom: 0; }

    .main-navigation .nav-link:hover,
    .main-navigation .nav-link:active,
    .main-navigation .menu-item > a:hover,
    .main-navigation .menu-item > a:active { background: var(--march-grey); color: #000; }

    /* Current page keeps the yellow marker, as a left bar so long labels stay readable */
    .main-navigation .current-menu-item > a,
    .main-navigation .current_page_item > a,
    .main-navigation .current-menu-item .nav-link {
        background: var(--march-yellow);
        color: #000;
        box-shadow: inset 4px 0 0 var(--march-black);
    }

    /* The search toggle sits in the list, so make it look like a row */
    .main-navigation .nav-search {
        display: flex;
        align-items: center;
        gap: 12px;
        width: 100%;
        min-height: 52px;
        padding: 14px 22px;
        font-family: var(--font-ui);
        font-size: 17px;
        font-weight: 700;
        color: rgba(0, 0, 0, .75);
        background: var(--march-grey);
    }

    .main-navigation .nav-search::after {
        content: "Search";
        font: inherit;
    }

    .main-navigation .nav-search svg { width: 18px; height: 18px; }

    .header-social { position: static; margin-left: auto; margin-right: 12px; }

    /* Split panels stack and un-skew, exactly as the original did */
    .image-container { height: auto; }

    .image-left,
    .image-right {
        position: relative;
        width: 100%;
        min-width: auto;
        left: 0;
        right: 0;
        transform: skew(0deg);
        overflow: visible;
    }

    .image-left::after,
    .image-right::after {
        position: relative;
        transform: skewX(0deg);
        width: 100%;
        height: 240px;
        left: 0;
        right: 0;
    }

    .image-text {
        transform: translate(-50%, -50%) skewX(0deg);
        font-size: 20px;
        padding: 7px 15px;
    }

    .image-filter { background: none; }

    /* Layout stacks */
    .grid--4 { grid-template-columns: repeat(2, 1fr); }
    .contact-layout { grid-template-columns: 1fr; gap: 40px; }
    .single-layout { grid-template-columns: 1fr; }
    .kym-block { grid-template-columns: 1fr; gap: 26px; }
    .goals-grid { grid-template-columns: repeat(2, 1fr); }
    .col-4, .col-3, .col-6 { flex: 0 0 100%; max-width: 100%; }

    .def-row__label,
    .def-row__body { flex: 0 0 100%; max-width: 100%; }

    .def-row__label { text-align: left; margin-bottom: 10px; }

    .bedco-hero { min-height: 440px; }
    .bedco-hero h1 { font-size: 2.4rem; }
}

@media (max-width: 767px) {
    h2 { font-size: 30px; }

    .site-content { padding-bottom: 3rem; }

    .grid--3, .grid--4 { grid-template-columns: 1fr; }
    .vp-grid { grid-template-columns: repeat(2, 1fr); }
    .vp-item__caption { padding: calc(1.2em + 20px) 1.2em 1.2em; }
    .vp-item__title { font-size: 1em; }
    .goals-grid { grid-template-columns: 1fr; }
    .contact-form label,
    .contact-form input,
    .contact-form select,
    .contact-form textarea { width: 100%; }

    .block-getinvolved p.text { min-height: 0; }

    .footer-widgets { flex-direction: column; }

    .cafe-logos { gap: 30px; }
    .cafe-logos img { max-height: 90px; }

}

@media (max-width: 575px) {
    .vp-grid { grid-template-columns: 1fr; }
    .section-separator { margin: 36px 0; }
    .page-title { margin: 36px 0; }
    .sdg-icons img { max-height: 110px; margin: 10px; }
}


/* Print & reduced motion
   ========================================================================== */

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


/* 18c. Bedco — before/after comparison & icon boxes
   ==========================================================================
   Replaces the Royal Addons "wpr-before-after" widget. Image 2 is revealed
   from the left up to --pos using clip-path, so neither image is squashed. */

.wpr-ba-image-container {
    --pos: 50%;
    position: relative;
    overflow: hidden;
    user-select: none;
    touch-action: pan-y;
    cursor: ew-resize;
    background: #eee;
}

.wpr-ba-image-1 img,
.wpr-ba-image-2 img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    pointer-events: none;
}

.wpr-ba-image-2 {
    position: absolute;
    inset: 0;
    clip-path: inset(0 calc(100% - var(--pos)) 0 0);
}

.wpr-ba-divider {
    position: absolute;
    top: 0;
    bottom: 0;
    left: var(--pos);
    width: 2px;
    margin-left: -1px;
    background: #fff;
    box-shadow: 0 0 6px rgba(0, 0, 0, .35);
    pointer-events: none;
}

.wpr-ba-handle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #fff;
    border: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .3);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2px;
    color: var(--bedco);
    cursor: ew-resize;
    pointer-events: auto;
}

.wpr-ba-handle svg { width: 11px; height: 11px; fill: currentColor; }

/* Before / after captions */
.wpr-ba-label {
    position: absolute;
    bottom: 10px;
    z-index: 3;
    padding: 4px 10px;
    font-size: .68rem;
    letter-spacing: .08em;
    text-transform: uppercase;
    background: rgba(0, 0, 0, .6);
    color: #fff;
    pointer-events: none;
}

.wpr-ba-label--before { left: 10px; }
.wpr-ba-label--after { right: 10px; }

/* Icon boxes (Our Vision / Our Mission) */
.bd-icon-box { display: flex; gap: 16px; margin-bottom: 30px; }

.bd-icon-box__icon {
    flex: 0 0 auto;
    color: var(--bedco);
    line-height: 1;
}

.bd-icon-box__icon svg { width: 30px; height: 30px; fill: currentColor; }

.bd-icon-box h4 { font-size: 1.15rem; color: var(--bedco); margin-bottom: .45rem; }
.bd-icon-box p { font-size: .9rem; line-height: 1.75; color: #4a4a55; margin: 0; }

/* Social impact list — verb in brand blue, rest in plain text */
.bd-impact h3 {
    font-family: var(--font-body);
    font-size: 2rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: .9rem;
}

.bd-impact h5 {
    font-family: var(--font-body);
    font-size: .95rem;
    font-weight: 400;
    line-height: 1.7;
    color: #fff;
    max-width: 620px;
    margin: 0 auto 22px;
}


/* 18d. Bedco — "Your social impact" + testimonial carousel
   ==========================================================================
   One section, two columns: the impact list on the left and the testimonial
   carousel on the right, both on the plain page background. */

.bd-impact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

/* Override the earlier photo-section treatment — this block sits on paper */
.bd-impact { text-align: left; }

.bd-impact h3 {
    font-family: var(--font-body);
    font-size: 1.9rem;
    font-weight: 600;
    color: #6ab7e4;
    margin-bottom: 1rem;
}

.bd-impact h5 {
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.6;
    color: #444;
    max-width: none;
    margin: 0 0 1.4rem;
}

.bd-impact ul {
    list-style: disc;
    padding-left: 20px;
    margin: 0 0 1.8rem;
}

.bd-impact li {
    margin-bottom: 1.05rem;
    font-size: .98rem;
    color: #8a8272;
}

.bd-impact li::marker { color: #b9b3a6; }
.bd-impact li strong { color: #3f3f3f; font-weight: 700; text-transform: uppercase; }

/* Green call-to-action used only in this block */
.btn-green {
    display: inline-block;
    background: #5cb85c;
    color: #fff;
    font-family: var(--font-body);
    font-size: .9rem;
    font-weight: 500;
    padding: 13px 30px;
    border: 0;
    border-radius: 3px;
    transition: background-color .2s ease;
}

.btn-green:hover,
.btn-green:focus { background: #4aa34a; color: #fff; text-decoration: none; }

/* Testimonial card */
.bd-testimonials { position: relative; }

.bd-testimonial {
    background: #8f959b;
    color: #fff;
    text-align: center;
    padding: 34px 40px;
    margin: 0;
}

.bd-testimonial p {
    font-style: italic;
    font-size: 1.02rem;
    line-height: 1.55;
    margin-bottom: 1.6rem;
}

.bd-testimonial footer { font-size: .9rem; line-height: 1.5; }
.bd-testimonial footer strong { display: block; font-style: normal; font-weight: 700; }

/* Oversized quote glyph tucked under the card's bottom-right corner */
.bd-quote-mark {
    position: absolute;
    right: -14px;
    bottom: -34px;
    font-family: var(--font-body);
    font-size: 6.5rem;
    font-weight: 700;
    line-height: 1;
    color: #4ea3d8;
    pointer-events: none;
    user-select: none;
}

@media (max-width: 991px) {
    .bd-impact-grid { grid-template-columns: 1fr; gap: 46px; }
    .bd-quote-mark { font-size: 4.5rem; right: 0; bottom: -24px; }
}


/* 18e. Bedco — services grid (overrides the earlier draft)
   ==========================================================================
   Three columns, thin dark outline, and left-aligned content: the circled
   icon, a blue title and the description all hang off the left edge. */

.bd-services-head {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: start;
    margin-bottom: 42px;
}

.bd-services-head .bd-heading { margin-bottom: 0; font-size: 1.9rem; }
.bd-services-head p { font-size: .95rem; line-height: 1.6; color: #4a4a55; margin: 0; }

.bd-services { grid-template-columns: repeat(3, 1fr); gap: 32px; }

.bd-service {
    text-align: left;
    padding: 34px 32px 38px;
    border: 1px solid #16384a;
    background: #fff;
}

.bd-service img { height: 78px; width: auto; margin: 0 0 20px; }

.bd-service h4 {
    font-family: var(--font-body);
    font-size: 1.32rem;
    font-weight: 500;
    line-height: 1.25;
    color: var(--bedco);
    margin-bottom: .6rem;
}

.bd-service p { font-size: .95rem; line-height: 1.6; color: #8a8272; }

@media (max-width: 991px) {
    .bd-services-head { grid-template-columns: 1fr; gap: 18px; }
    .bd-services { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 767px) {
    .bd-services { grid-template-columns: 1fr; }
}


/* 18f. Bedco — projects section
   ==========================================================================
   Sits on a blue-washed photograph with a centred header. The comparison
   sliders use the page's indigo for their divider, handle and labels, and
   each project is captioned by a yellow bar. */

.bd-projects-section {
    position: relative;
    padding: 80px 0;
    background-size: cover;
    background-position: center;
    background-attachment: scroll;
    color: #fff;
}

.bd-projects-section::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(74, 132, 173, .82);
}

.bd-projects-section > * { position: relative; z-index: 2; }

.bd-projects-section .bd-kicker { color: #fff; justify-content: center; }
.bd-projects-section .bd-kicker::before { background: var(--march-yellow); height: 2px; }

.bd-projects-section .bd-heading {
    text-align: center;
    color: #7ec8f0;
    font-size: 2rem;
    margin-bottom: 1.1rem;
}

.bd-projects-section .bd-intro {
    max-width: 900px;
    margin: 0 auto 30px;
    text-align: center;
    font-size: .95rem;
    line-height: 1.6;
    color: #fff;
}

.bd-projects-section hr {
    border-top: 1px solid rgba(0, 0, 0, .35);
    margin: 30px 0 40px;
}

/* Indigo slider chrome inside this section */
.bd-projects-section .wpr-ba-divider { background: #5b4fd6; width: 3px; margin-left: -1.5px; }

.bd-projects-section .wpr-ba-handle {
    background: #5b4fd6;
    color: #fff;
    width: 44px;
    height: 44px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, .35);
}

.bd-projects-section .wpr-ba-label {
    background: #5b4fd6;
    border-radius: 3px;
    font-size: .8rem;
    letter-spacing: 0;
    text-transform: none;
    padding: 6px 14px;
}

/* Yellow caption bar under each comparison */
.bd-projects-section .bd-project h5 {
    margin: 8px 0 0;
    background: var(--march-yellow);
    color: #fff;
    font-family: var(--font-body);
    font-size: 1.05rem;
    font-weight: 700;
    text-align: center;
    padding: 7px 10px;
}

.bd-projects-section .bd-stat strong { color: #fff; }
.bd-projects-section .bd-stat span { color: rgba(255, 255, 255, .85); }


/* 18g. Bedco — partners & contact
   ========================================================================== */

/* Partners continue the blue-washed photo band from the projects section */
.bd-partners-section {
    position: relative;
    padding: 70px 0 90px;
    background-size: cover;
    background-position: center;
    color: #fff;
}

.bd-partners-section::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(74, 132, 173, .82);
}

.bd-partners-section > * { position: relative; z-index: 2; }

.bd-partners-head {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
    margin-bottom: 46px;
}

.bd-partners-head .bd-kicker { color: #fff; }
.bd-partners-head .bd-kicker::before { background: #fff; }
.bd-partners-head .bd-heading { color: #7ec8f0; font-size: 1.9rem; margin: 0; }
.bd-partners-head p { color: #fff; font-size: .95rem; line-height: 1.6; margin: 0; }

/* Logos live inside a thin white frame */
.bd-partners-box {
    border: 1px solid rgba(255, 255, 255, .9);
    padding: 46px 60px 34px;
}

.bd-partners-box .carousel__slide { padding: 0 12px; }

.bd-partner-card {
    background: #fff;
    width: 100%;
    min-height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.bd-partner-card img { max-height: 100px; width: auto; }

.bd-partners-box .carousel__arrow { color: #fff; }
.bd-partners-box .carousel__arrow--prev { left: -34px; }
.bd-partners-box .carousel__arrow--next { right: -34px; }
.bd-partners-box .carousel__dot { background: rgba(255, 255, 255, .55); }
.bd-partners-box .carousel__dot.is-active { background: #17394a; }

/* Contact — booking card on the left, details on the right */
.bd-contact-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 70px;
    align-items: start;
}

.bd-booking-card {
    background: #fff;
    box-shadow: 0 2px 26px rgba(0, 0, 0, .09);
    padding: 42px 40px;
}

.bd-booking-card h4 {
    font-family: var(--font-body);
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--bedco);
    text-align: center;
    margin-bottom: .6rem;
}

.bd-booking-card > p {
    text-align: center;
    font-size: .92rem;
    color: #666;
    margin-bottom: 1.6rem;
}

.bd-booking-card label {
    display: block;
    margin-bottom: 7px;
    font-size: .95rem;
    color: #555;
}

.bd-booking-card input,
.bd-booking-card textarea {
    width: 100%;
    margin-bottom: 20px;
    padding: 12px 14px;
    font-family: var(--font-body);
    font-size: .95rem;
    color: #444;
    border: 1px solid #ddd;
    border-radius: 0;
    background: #fff;
}

.bd-booking-card textarea { min-height: 120px; resize: vertical; }

.bd-booking-card input:focus,
.bd-booking-card textarea:focus { outline: 0; border-color: var(--bedco); }

.bd-booking-card button {
    display: block;
    width: 100%;
    padding: 14px;
    border: 0;
    background: #5cb85c;
    color: #fff;
    font-family: var(--font-body);
    font-size: 1rem;
    cursor: pointer;
    transition: background-color .2s ease;
}

.bd-booking-card button:hover { background: #4aa34a; }

.bd-contact-info .bd-heading { font-size: 1.85rem; }

.bd-contact-info h4 {
    font-family: var(--font-body);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--bedco);
    margin: 1.8rem 0 .6rem;
}

.bd-contact-info p { font-size: .95rem; line-height: 1.6; color: #4a4a55; }

.bd-contact-line {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 18px 0 26px;
}

.bd-contact-line svg { width: 34px; height: 34px; fill: var(--bedco); flex: 0 0 34px; }

.bd-contact-line a {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--bedco);
}

.bd-contact-info hr { border-top: 1px solid #ddd; margin: 26px 0; }

@media (max-width: 991px) {
    .bd-partners-head,
    .bd-contact-layout { grid-template-columns: 1fr; gap: 30px; }
    .bd-partners-box { padding: 34px 26px 26px; }
    .bd-partners-box .carousel__arrow--prev { left: -6px; }
    .bd-partners-box .carousel__arrow--next { right: -6px; }
}


/* Grid children default to min-width:auto, so a flex carousel track (which is
   as wide as all its slides) would otherwise refuse to shrink and squeeze the
   column beside it. */
.bd-impact-grid > *,
.bd-vm-grid > *,
.bd-partners-head > *,
.bd-contact-layout > *,
.kym-block > * { min-width: 0; }

.carousel,
.carousel__viewport { min-width: 0; }


/* 17c. Kanyamakan — mission / vision blocks and the catalogue banner
   ========================================================================== */

.kym-prose { max-width: 900px; }

.kym-prose h2 {
    font-family: var(--font-body);
    font-size: 2.1rem;
    font-weight: 500;
    line-height: 1.25;
    color: #3c3c3c;
    margin-bottom: 1.3rem;
}

.kym-prose p { font-size: .95rem; line-height: 1.75; color: #5d5d6e; margin-bottom: 1rem; }
.kym-prose em { font-style: italic; color: #7a6a86; }

/* Catalogue download band — mauve plate with the kufic border artwork */
.kym-catalogue {
    background-size: cover;
    background-position: center;
    padding: 70px 0 60px;
    text-align: center;
}

.kym-catalogue h2 {
    font-family: var(--font-body);
    font-size: 2.1rem;
    font-weight: 700;
    letter-spacing: .01em;
    text-transform: uppercase;
    color: #3c3340;
    margin-bottom: 30px;
}

.kym-catalogue__buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 26px;
    margin-bottom: 26px;
}

.kym-catalogue__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-width: 330px;
    padding: 13px 26px;
    background: rgba(90, 58, 82, .75);
    color: #fff;
    font-size: .82rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    transition: background-color .2s ease;
}

.kym-catalogue__btn:hover,
.kym-catalogue__btn:focus { background: var(--kanyamakan); color: #fff; text-decoration: none; }
.kym-catalogue__btn svg { width: 12px; height: 12px; fill: currentColor; }

.kym-catalogue__social { display: flex; justify-content: center; gap: 10px; }

.kym-catalogue__social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 4px;
    color: #fff;
}

.kym-catalogue__social svg { width: 18px; height: 18px; fill: currentColor; }
.kym-catalogue__social .is-wa { background: #25d366; }
.kym-catalogue__social .is-ig { background: #2b2b2b; }
.kym-catalogue__social a:hover { opacity: .85; }

@media (max-width: 767px) {
    .kym-prose h2 { font-size: 1.6rem; }
    .kym-catalogue h2 { font-size: 1.5rem; }
    .kym-catalogue__btn { min-width: 0; width: 100%; }
}
