/* =========================================================
   OHB Public Site — Complete Responsive Stylesheet
   ========================================================= */

:root{
  --orange:#F5A623;
  --blue:#00A0DC;
  --cyan:#0DA8E8;
  --slate:#2E3A46;
  --footer-blue:#5A6DB5;
  --footer-yellow:#FFDD00;
  --white:#fff;
  --light:#f7f9fc;
  --border:#e5e9ef;
}

*{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth;-webkit-text-size-adjust:100%}
body{
  font-family:'Inter','Noto Sans Ethiopic',system-ui,-apple-system,sans-serif;
  color:#1c2430;
  line-height:1.6;
  background:#fff;
  overflow-x:hidden;
}
img{max-width:100%;height:auto;display:block}
a{color:inherit;text-decoration:none}
button{font:inherit;cursor:pointer}

.container{
  width:100%;
  max-width:1280px;
  margin:0 auto;
  padding:0 16px;
}
@media(min-width:640px){ .container{padding:0 24px} }

/* =========================================================
   TOP BAR — contact info (left) + socials & language (right)
   ========================================================= */
.topbar{
  background:var(--cyan);
  color:#fff;
  font-size:13px;
  padding:8px 0;
}
.topbar-inner{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:16px;
  flex-wrap:wrap;
}
.topbar-left{
  display:flex;
  gap:20px;
  align-items:center;
  flex-wrap:wrap;
  font-size:12px;
}
.topbar-left span{white-space:nowrap}
@media(min-width:768px){ .topbar-left{font-size:13px} }

.topbar-right{
  display:flex;
  gap:16px;
  align-items:center;
}
.topbar-right .socials{display:flex;gap:8px}
.topbar-right .socials a{
  width:26px;height:26px;
  display:flex;align-items:center;justify-content:center;
  border-radius:50%;
  background:rgba(255,255,255,.15);
  color:#fff;font-size:14px;
}
.topbar-right .lang-switch{display:flex;gap:5px}
.topbar-right .lang-switch a{
  padding:3px 8px;
  border:1px solid rgba(255,255,255,.4);
  border-radius:4px;
  font-size:11px;
  font-weight:700;
  color:#fff;
}
.topbar-right .lang-switch a.active{
  background:#fff;
  color:var(--cyan);
  border-color:#fff;
}
@media(max-width:640px){
  .topbar-inner{flex-direction:column;gap:6px;align-items:flex-start}
  .topbar-left{flex-direction:column;gap:3px;font-size:11px}
  .topbar-right{width:100%;justify-content:space-between}
}

/* =========================================================
   HEADER — logo + menu aligned left, hamburger for mobile
   ========================================================= */
.site-header{
  background:#fff;
  box-shadow:0 2px 8px rgba(0,0,0,.05);
  position:sticky;
  top:0;
  z-index:100;
}

.header-inner{
  display:flex;
  align-items:center;
  gap:16px;
  padding:10px 16px;
  max-width:1280px;
  margin:0 auto;
  flex-wrap:wrap;
}
@media(min-width:640px){ .header-inner{padding:14px 24px} }
@media(min-width:960px){
  .header-inner{justify-content:flex-start;gap:0}
  .main-nav{margin-left:28px}
}

.logo{display:flex;align-items:center;gap:10px;flex-shrink:0}
.logo img{height:44px}
@media(min-width:640px){ .logo img{height:52px} }
@media(min-width:960px){ .logo img{height:56px} }

/* Hamburger */
.menu-toggle{
  display:flex;
  align-items:center;
  justify-content:center;
  width:42px;height:42px;
  background:transparent;
  border:1px solid var(--border);
  border-radius:8px;
  color:var(--orange);
  font-size:22px;
  font-weight:700;
  margin-left:auto;
}
@media(min-width:960px){ .menu-toggle{display:none} }

/* ---------------- MAIN NAV ---------------- */
.main-nav{
  flex-basis:100%;
  max-height:0;
  overflow:hidden;
  transition:max-height .35s ease;
  order:3;
}
.main-nav.open{max-height:2000px;overflow-y:auto}

@media(min-width:960px){
  .main-nav{
    order:0;
    flex-basis:auto;
    max-height:none;
    overflow:visible;
    flex:0 1 auto;
    display:flex;
    justify-content:flex-start;
  }
}

.main-nav > ul{
  display:flex;
  flex-direction:column;
  list-style:none;
  gap:0;
  padding:12px 0 4px;
  margin:0;
}
@media(min-width:960px){
  .main-nav > ul{
    flex-direction:row;
    gap:32px;
    padding:0;
    align-items:center;
  }
}

.main-nav > ul > li{
  position:relative;
  border-bottom:1px solid #f0f3f7;
}
@media(min-width:960px){
  .main-nav > ul > li{border-bottom:none;padding:8px 0}
}

.main-nav a{
  color:var(--orange);
  font-weight:600;
  font-size:15px;
  letter-spacing:.3px;
  text-transform:uppercase;
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:12px 8px;
  white-space:nowrap;
  transition:color .2s;
}
@media(min-width:960px){
  .main-nav a{display:inline-flex;padding:0;font-size:16px}
}
@media(min-width:1200px){
  .main-nav a{font-size:17px}
}
.main-nav a:hover{color:#d68a0e}

/* Chevron */
.main-nav .has-kids > a::after{
  content:'⌄';
  margin-left:8px;
  font-size:14px;
  font-weight:700;
  transition:transform .25s;
}
@media(max-width:959px){
  .main-nav li.open > a::after{transform:rotate(180deg)}
}

/* Submenu — accordion on mobile, dropdown on desktop */
.main-nav .submenu{
  list-style:none;
  margin:0;padding:0;
  max-height:0;
  overflow:hidden;
  transition:max-height .3s ease;
  background:#fafbfd;
  border-radius:6px;
}
.main-nav li.open > .submenu{max-height:600px}

@media(min-width:960px){
  .main-nav .submenu{
    position:absolute;
    top:100%;
    left:0;
    min-width:240px;
    background:#fff;
    padding:12px 0;
    max-height:none;
    overflow:visible;
    border-radius:6px;
    box-shadow:0 6px 24px rgba(0,0,0,.10);
    display:none;
    opacity:0;
    visibility:hidden;
    transform:translateY(6px);
    transition:opacity .18s ease, transform .18s ease, visibility 0s linear .18s;
  }
  .main-nav li.has-kids:hover > .submenu,
  .main-nav li.open > .submenu{
    display:block;opacity:1;visibility:visible;transform:translateY(0);
    transition:opacity .18s ease, transform .18s ease, visibility 0s;
  }
}

.main-nav .submenu li a{
  display:block;
  padding:10px 18px;
  color:var(--orange);
  text-transform:none;
  font-weight:500;
  font-size:15px;
  letter-spacing:0;
  white-space:normal;
  text-align:left;
}
.main-nav .submenu li a:hover{
  background:#fff8ed;
  color:#d68a0e;
  font-weight:700;
}
@media(min-width:960px){
  .main-nav .submenu li a{padding:9px 20px}
}

/* =========================================================
   HERO SLIDER — fixed aspect ratio + object-fit cover
   Guarantees full bleed on every device, every image size
   ========================================================= */
.hero-slider{
  position:relative;
  width:100%;
  aspect-ratio: 16 / 9;
  max-height:620px;
  min-height:220px;
  overflow:hidden;
  background:#000;
}
@media(max-width:768px){
  .hero-slider{ aspect-ratio: 16 / 10; }    /* slightly taller on phones */
}
@media(max-width:480px){
  .hero-slider{ aspect-ratio: 4 / 3; }      /* taller still on small phones */
}

.hero-slide{
  position:absolute;
  inset:0;
  opacity:0;
  visibility:hidden;
  transition:opacity .8s ease;
  z-index:1;
}
.hero-slide.active{
  opacity:1;
  visibility:visible;
  z-index:2;
}

.hero-media{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
}

/* ---- IMAGE: fills edge-to-edge ---- */
.hero-image-wrap{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  overflow:hidden;
  background:#000;
}
.hero-image{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:center center;      /* keep centered; adjust to 'center 30%' to favor top */
  display:block;
  user-select:none;
  pointer-events:none;
}

/* ---- VIDEO UPLOAD: fills edge-to-edge, same as image ---- */
.hero-video-wrap{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  overflow:hidden;
  background:#000;
}

.hero-video{
  position:absolute;
  inset:0;
  object-fit: contain;
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:center center;
  display:block;
  pointer-events:none;
}

/* ---- YOUTUBE: fills edge-to-edge ---- */
.hero-youtube-wrap{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  overflow:hidden;
  background:#000;
}
.hero-youtube{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  overflow:hidden;
}
.hero-youtube iframe{
  position:absolute;
  top:50%;
  left:50%;
  width:max(100%, 177.78vh);
  height:max(100%, 56.25vw);
  transform:translate(-50%, -50%);
  border:0;
  pointer-events:none;
}

/* ---- Caption ---- */
.hero-slider .caption{
  position:absolute;
  bottom:16px;left:16px;right:16px;
  background:rgba(0,0,0,.65);
  color:#fff;
  padding:12px 16px;
  border-radius:6px;
  font-size:14px;
  font-weight:600;
  text-align:center;
  z-index:4;
  pointer-events:none;
}
@media(min-width:768px){
  .hero-slider .caption{
    left:40px;right:auto;bottom:40px;
    max-width:60%;
    font-size:20px;
    padding:14px 22px;
    text-align:left;
  }
}

/* Bottom gradient */
.hero-slide::after{
  content:'';
  position:absolute;
  left:0; right:0; bottom:0;
  height:35%;
  background:linear-gradient(to top, rgba(0,0,0,.55), transparent);
  z-index:2;
  pointer-events:none;
}

.hero-link{
  position:absolute;
  inset:0;
  z-index:3;
  display:block;
}

/* Nav buttons */
.slide-prev,.slide-next{
  position:absolute;top:50%;transform:translateY(-50%);
  background:rgba(255,255,255,.85);border:none;
  width:36px;height:36px;border-radius:50%;
  font-size:18px;z-index:5;
  display:flex;align-items:center;justify-content:center;
  cursor:pointer;
}
@media(min-width:768px){
  .slide-prev,.slide-next{width:44px;height:44px;font-size:22px}
}
.slide-prev{left:10px}
.slide-next{right:10px}
@media(min-width:768px){
  .slide-prev{left:24px}
  .slide-next{right:24px}
}

/* =========================================================
   SECTIONS
   ========================================================= */
.section{padding:40px 0}
@media(min-width:768px){ .section{padding:55px 0} }
@media(min-width:960px){ .section{padding:70px 0} }

.section-title{
  text-align:center;
  font-size:24px;
  font-weight:800;
  letter-spacing:-.3px;
  margin-bottom:28px;
  display:flex;
  justify-content:center;
  align-items:center;
  gap:10px;
  flex-wrap:wrap;
  padding:0 8px;
}
@media(min-width:640px){ .section-title{font-size:32px;margin-bottom:36px;gap:12px} }
@media(min-width:960px){ .section-title{font-size:44px;margin-bottom:44px} }
@media(min-width:1200px){ .section-title{font-size:52px} }

.section-title .dark{color:var(--slate)}
.section-title .blue{color:var(--blue)}
.section-title .divider{
  display:inline-block;width:2px;height:26px;
  background:#cbd5e1;margin-left:4px;
}
@media(min-width:960px){
  .section-title .divider{height:38px;margin-left:6px}
}

/* =========================================================
   GRIDS & CARDS
   ========================================================= */
.grid{display:grid;gap:20px}
.grid-3{grid-template-columns:1fr}
@media(min-width:640px){ .grid-3{grid-template-columns:repeat(2,1fr);gap:22px} }
@media(min-width:960px){ .grid-3{grid-template-columns:repeat(3,1fr);gap:24px} }

.news-card .card-img{
  height:220px;
  background-size:cover;background-position:center;
  position:relative;border-radius:6px;overflow:hidden;
  transition:transform .3s;
}
@media(min-width:768px){ .news-card .card-img{height:260px} }
@media(min-width:960px){ .news-card .card-img{height:280px} }
.news-card:hover .card-img{transform:translateY(-4px)}
.caption-box{
  position:absolute;bottom:0;left:0;right:0;
  background:rgba(20,20,20,.78);color:#fff;
  padding:12px 14px;font-size:14px;line-height:1.35;
}
@media(min-width:768px){ .caption-box{padding:16px 18px;font-size:15px} }
@media(min-width:960px){ .caption-box{font-size:16px} }

/* Video cards */
.video-card{
  display:block;border-radius:6px;overflow:hidden;
  background:#000;color:#fff;transition:transform .3s;
}
.video-card:hover{transform:translateY(-4px)}
.video-card .thumb{
  height:170px;
  background-size:cover;background-position:center;
  position:relative;background-color:#1a1a1a;
}
@media(min-width:768px){ .video-card .thumb{height:190px} }
@media(min-width:960px){ .video-card .thumb{height:210px} }

.video-card .play{
  position:absolute;top:50%;left:50%;
  transform:translate(-50%,-50%);
  width:52px;height:36px;background:#e11d2f;
  border-radius:8px;display:flex;align-items:center;justify-content:center;
  color:#fff;font-size:18px;font-weight:700;
}
@media(min-width:768px){
  .video-card .play{width:60px;height:42px;font-size:20px}
}
.vc-title{
  padding:10px 12px 4px;font-weight:600;
  font-size:14px;color:#fff;line-height:1.35;
}
@media(min-width:960px){ .vc-title{font-size:15px;padding:12px 14px 4px} }
.vc-sub{padding:0 12px 12px;font-size:11px;opacity:.8;color:#fff}
@media(min-width:960px){ .vc-sub{font-size:12px;padding:0 14px 14px} }

/* =========================================================
   PARTNERS
   ========================================================= */
.partners-row{
  display:grid;
  grid-template-columns:repeat(2,1fr);
  gap:20px;
  align-items:center;
  padding:0 8px;
}
@media(min-width:640px){ .partners-row{grid-template-columns:repeat(3,1fr);gap:28px} }
@media(min-width:960px){
  .partners-row{
    display:flex;justify-content:space-around;gap:32px;flex-wrap:wrap;
  }
}
.partners-row img{
  max-height:60px;max-width:120px;
  margin:0 auto;filter:grayscale(.15);transition:.3s;
}
@media(min-width:768px){ .partners-row img{max-height:70px;max-width:140px} }
@media(min-width:960px){ .partners-row img{max-height:80px;max-width:160px} }
.partners-row img:hover{filter:none}

/* =========================================================
   STATS
   ========================================================= */
.stats{
  display:grid;
  grid-template-columns:repeat(2,1fr);
  gap:24px;
  text-align:center;
  max-width:1000px;
  margin:0 auto;
}
@media(min-width:640px){ .stats{gap:32px} }
@media(min-width:960px){ .stats{grid-template-columns:repeat(4,1fr);gap:40px} }

.stat .num{
  font-size:36px;font-weight:800;
  color:var(--blue);line-height:1;
}
@media(min-width:640px){ .stat .num{font-size:44px} }
@media(min-width:960px){ .stat .num{font-size:56px} }
.stat .lbl{
  margin-top:8px;color:var(--orange);
  font-weight:700;font-size:13px;
}
@media(min-width:960px){ .stat .lbl{font-size:15px;margin-top:10px} }

/* =========================================================
   LOGO DIVIDER
   ========================================================= */
.logo-divider{
  display:flex;align-items:center;justify-content:center;
  gap:12px;padding:20px 16px;
}
.logo-divider .line{
  flex:0 1 100px;height:2px;
  background:linear-gradient(90deg,transparent,var(--blue));
}
.logo-divider .line:last-child{
  background:linear-gradient(90deg,var(--blue),transparent);
}
@media(min-width:768px){
  .logo-divider .line{flex:0 0 200px}
  .logo-divider{gap:16px}
}
.logo-divider img{height:36px}
@media(min-width:768px){ .logo-divider img{height:44px} }

/* =========================================================
   TIMELINE
   ========================================================= */
.timeline{
  display:flex;flex-direction:column;align-items:center;
  gap:16px;padding:0 16px;
}
@media(min-width:768px){
  .timeline{flex-direction:row;gap:24px;padding:0}
}
.tl-track{
  display:flex;flex-direction:column;gap:30px;
  position:relative;padding:20px 0;
  width:100%;max-width:420px;
}
@media(min-width:768px){
  .tl-track{
    flex-direction:row;gap:60px;justify-content:center;
    padding:40px 0;max-width:none;
  }
  .tl-track:before{
    content:'';position:absolute;top:50%;left:0;right:0;
    height:2px;background:var(--blue);
  }
}
.tl-item{
  position:relative;text-align:center;background:#fff;
  padding:0 12px;z-index:2;
  display:flex;align-items:center;gap:12px;
}
@media(min-width:768px){
  .tl-item{flex-direction:column;gap:0;padding:0 16px}
}
.tl-item .dot{
  display:block;width:20px;height:20px;
  border:3px solid var(--orange);background:#fff;
  border-radius:50%;flex-shrink:0;
}
@media(min-width:768px){ .tl-item .dot{margin:0 auto 8px} }
.tl-item .year{
  color:var(--blue);font-weight:600;font-size:13px;display:block;
}
.tl-item .val{
  color:var(--blue);font-size:22px;font-weight:800;
  margin-top:0;display:block;
}
@media(min-width:768px){ .tl-item .val{font-size:28px;margin-top:4px} }

.tl-prev,.tl-next{
  background:#fff;border:1px solid var(--border);
  width:40px;height:40px;border-radius:50%;
  font-size:18px;
  display:flex;align-items:center;justify-content:center;
  flex-shrink:0;
}
@media(max-width:767px){ .tl-prev,.tl-next{display:none} }

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer{
  background:var(--footer-blue);color:#fff;
  padding:40px 0 0;margin-top:40px;
}
@media(min-width:768px){
  .site-footer{padding:60px 0 0;margin-top:60px}
}
.footer-grid{
  display:grid;grid-template-columns:1fr;
  gap:32px;padding-bottom:32px;
}
@media(min-width:640px){
  .footer-grid{grid-template-columns:1fr 1fr;gap:36px}
}
@media(min-width:960px){
  .footer-grid{grid-template-columns:1fr 1.4fr 1fr;gap:40px;padding-bottom:40px}
}
.site-footer h4{
  color:var(--footer-yellow);font-size:17px;
  margin-bottom:14px;font-weight:700;
}
@media(min-width:768px){
  .site-footer h4{font-size:20px;margin-bottom:18px}
}
.site-footer ul{list-style:none}
.site-footer li{margin-bottom:9px}
.site-footer a{color:#fff;opacity:.9;font-size:14px}
.site-footer a:hover{opacity:1;text-decoration:underline}
.apps-cols{display:grid;grid-template-columns:1fr 1fr;gap:16px}
.socials-lg{display:flex;gap:14px;flex-wrap:wrap}
.socials-lg a{
  width:38px;height:38px;border-radius:50%;
  background:rgba(255,255,255,.1);
  display:flex;align-items:center;justify-content:center;
  color:#fff;font-size:16px;transition:.25s;
}
.socials-lg a:hover{background:var(--footer-yellow);color:var(--footer-blue)}
.copyright{
  text-align:center;
  border-top:1px solid rgba(255,255,255,.15);
  padding:18px 16px;font-size:12px;opacity:.85;
}
@media(min-width:768px){
  .copyright{font-size:14px;padding:20px 0}
}

/* =========================================================
   BACK TO TOP
   ========================================================= */
.back-to-top{
  position:fixed;right:16px;bottom:16px;
  width:44px;height:44px;background:var(--orange);
  color:#fff;display:flex;align-items:center;justify-content:center;
  font-size:20px;border-radius:6px;
  box-shadow:0 4px 12px rgba(0,0,0,.2);z-index:999;
  transition:transform .2s;
}
.back-to-top:hover{transform:translateY(-3px)}
@media(min-width:768px){
  .back-to-top{right:24px;bottom:24px;width:52px;height:52px;font-size:22px}
}

/* =========================================================
   INNER PAGE (CMS pages like About, Pillars)
   ========================================================= */
.page-layout{
  display:grid;grid-template-columns:1fr;
  gap:24px;padding:32px 0;
}
@media(min-width:768px){
  .page-layout{grid-template-columns:220px 1fr;gap:32px;padding:50px 0}
}
@media(min-width:960px){
  .page-layout{grid-template-columns:240px 1fr;gap:40px;padding:60px 0}
}
.page-sidebar{display:flex;flex-direction:column;gap:6px}
.page-sidebar a{
  padding:10px 14px;color:var(--orange);font-size:14px;
  border-left:3px solid transparent;background:#fff;border-radius:4px;
}
.page-sidebar a.active{
  border-left-color:var(--orange);
  font-weight:700;background:#fff8ed;
}
.page-body h1{
  font-size:26px;margin-bottom:18px;color:var(--slate);
  font-weight:800;line-height:1.25;
}
@media(min-width:768px){ .page-body h1{font-size:32px} }
@media(min-width:960px){ .page-body h1{font-size:38px;margin-bottom:24px} }
.page-body .page-hero{
  width:100%;max-height:280px;object-fit:cover;
  border-radius:8px;margin-bottom:20px;
}
@media(min-width:960px){
  .page-body .page-hero{max-height:380px;margin-bottom:24px}
}
.page-body .rich{font-size:15px;line-height:1.7;color:#333}
@media(min-width:768px){
  .page-body .rich{font-size:16px;line-height:1.75}
}
.page-body .rich p{margin-bottom:16px}
.page-body .rich img{max-width:100%;height:auto;border-radius:8px;margin:12px 0}
.page-body .rich h2{font-size:22px;margin:24px 0 12px;color:var(--slate)}
.page-body .rich h3{font-size:18px;margin:20px 0 10px;color:var(--slate)}
.page-body .rich ul,.page-body .rich ol{margin:0 0 16px 22px}
.page-body .rich table{
  width:100%;border-collapse:collapse;margin:12px 0;font-size:14px;
}
.page-body .rich table th,
.page-body .rich table td{
  padding:8px 10px;border:1px solid var(--border);text-align:left;
}

/* =========================================================
   UTILITY
   ========================================================= */
.hide-mobile{display:none}
@media(min-width:768px){ .hide-mobile{display:initial} }
.hide-desktop{display:initial}
@media(min-width:960px){ .hide-desktop{display:none} }