/* WordPress integration without disturbing the approved BeeSAP 2027 layout. */
.admin-bar .site-header{top:32px}
@media(max-width:782px){.admin-bar .site-header{top:46px}}
.wp-content{line-height:1.75;max-width:910px;overflow-wrap:anywhere}
.wp-content p,.wp-content li{color:#244038}
.wp-content a{color:#155d50;text-decoration:underline}
.wp-content h2,.wp-content h3,.wp-content h4{color:#113e35}
.wp-content img{max-width:100%;height:auto}
.beesap-official-cta{padding:28px 0 0;text-align:center}
.beesap-wp-extra{border-top:1px solid #e6e6df}

/* BeeSAP WP 1.1.0: explicit readable foregrounds on all section backgrounds.
   Styles are scoped to the theme markup to avoid altering the WP admin/editor. */
body[class*="page-"] #content .section:not(.section-dark):not(.section-cream),
body[class*="page-"] #content .section-cream,
body[class*="page-"] #content .metrics-wrap {color:#17382f;}
body[class*="page-"] #content .section:not(.section-dark) h2,
body[class*="page-"] #content .section:not(.section-dark) h3,
body[class*="page-"] #content .section:not(.section-dark) .section-head h2,
body[class*="page-"] #content .quick-card strong,
body[class*="page-"] #content .photo-card strong {color:#15392e;opacity:1;}
body[class*="page-"] #content .section:not(.section-dark) p,
body[class*="page-"] #content .section:not(.section-dark) .section-head p,
body[class*="page-"] #content .quick-card small {color:#3d544a;opacity:1;}
body[class*="page-"] #content .section-dark h2,
body[class*="page-"] #content .section-dark h3 {color:#fff;}
body[class*="page-"] #content .section-dark p {color:#e3f1e9;}
body[class*="page-"] #content .pagehero h1,
body[class*="page-"] #content .pagehero p,
body[class*="page-"] #content .splash h1 {color:#fff;}
body[class*="page-"] #content .splash h1 em {color:#ffd269;}
body[class*="page-"] #content img {visibility:visible;opacity:1;}
/* Room for all desktop links + explicit EN/TR switch; mobile menu before overlap. */
.site-header .head-inner {width:min(calc(100% - 42px),1460px);gap:12px;}
.site-header .primary-nav {gap:clamp(6px,.78vw,13px);}
.site-header .primary-nav>a,.site-header .menu-more {font-size:10.5px;}
.site-header .head-actions {flex-shrink:0;}
.site-header .lang-btn {display:inline-flex;align-items:center;justify-content:center;min-width:25px;min-height:30px;color:#536b60;}
.site-header .lang-btn.active {color:#0c3529;}
.page-welcome .site-header .lang-btn {color:#e3ece6;}
.page-welcome .site-header .lang-btn.active {color:#ffd269;}
@media(max-width:1380px){
 .site-header .primary-nav{display:none;position:absolute;left:0;right:0;top:100%;background:white;z-index:90;padding:20px 25px;box-shadow:0 18px 24px #0002;flex-direction:column;align-items:stretch;gap:7px;white-space:normal;}
 .site-header .primary-nav.is-open{display:flex;}
 .site-header .primary-nav>a,.site-header .menu-more{font-size:14px;padding:11px 10px;display:block;color:#193d33;}
 .site-header .dropdown{width:100%;}
 .site-header .more-pages{position:static;width:auto;box-shadow:none;border:0;padding-left:20px;}
 .site-header .mobile-toggle{display:block;}
 .page-welcome .site-header .primary-nav{background:#fdfdf9;}
 .site-header .head-actions{margin-left:auto;}
}

.page-welcome .site-header .container{max-width:1460px;}
@media(max-width:1380px){.page-welcome .site-header .primary-nav>a,.page-welcome .site-header .menu-more{color:#153a2f;font-size:14px;} .page-welcome .site-header .more-pages a{color:#153a2f;} .page-welcome .site-header .mobile-toggle span{background:#f6cc6e;}}

/* BeeSAP 2027 v1.2 — final audited background / foreground pairings.
   The welcome body itself is dark; sections explicitly set their own background.
   This avoids dark text on transparent green after migrating the PHP layout to WP. */
body.page-welcome #content > .section:not(.section-dark):not(.section-cream):not(.photo-experience) {
 background-color:#fff;
 color:#17372e;
}
body.page-welcome #content > .section.section-cream {background-color:#f8f6ef;color:#17372e;}
body.page-welcome #content > .section.section-dark {background-color:#0b2d27;color:#fff;}
body.page-welcome #content > .section.section-dark h2,
body.page-welcome #content > .section.section-dark h3,
body.page-welcome #content > .section.section-dark .section-head h2,
body.page-welcome #content > .section.section-dark .dark-head h2 {color:#fff;opacity:1;}
body.page-welcome #content > .section.section-dark p,
body.page-welcome #content > .section.section-dark .section-head p,
body.page-welcome #content > .section.section-dark .split-grid p {color:#e0f0e6;opacity:1;}
body.page-welcome #content > .section.section-dark .eyebrow {color:#f3c969;}
body.page-welcome #content > .section.section-dark .photo-card strong {color:#16382e;}
body.page-welcome #content > .section.section-dark .photo-card span {color:#476155;}
body.page-welcome #content > .section.section-dark .btn-outline-dark {border-color:#d7be78;color:#fff;}
body.page-welcome #content > .section.section-dark .btn-outline-dark:hover {background:#ffffff23;}
body.page-welcome #content > .section.photo-experience {background:linear-gradient(145deg,#f8eed2,#fffcf4 68%);color:#17372e;}
body.page-welcome #content > .section.photo-experience h2,
body.page-welcome #content > .section.photo-experience p {color:#17372e;opacity:1;}
body.page-welcome #content > .section.welcome-promo {background:#fff;color:#17372e;}
body.page-welcome #content > .section.welcome-promo h2 {color:#17372e;opacity:1;}
body.page-welcome #content > .section.welcome-promo p {color:#40564b;opacity:1;}
/* Consistent contrast on non-home templates and dense cards. */
body:not(.page-welcome) #content > .section:not(.section-dark):not(.section-cream) {background:#fff;color:#17372e;}
body:not(.page-welcome) #content > .section.section-cream {background:#f8f6ef;color:#17372e;}
body:not(.page-welcome) #content > .section.section-dark {background:#0b2d27;color:#fff;}
#content .section-head h2,#content .split-grid h2,#content .promo-grid h2 {opacity:1;}
#content .photo-card img {display:block;visibility:visible;opacity:1;width:100%;height:100%;object-fit:cover;}
#content .split-photo img,#content .promo-image img {display:block;opacity:1;visibility:visible;width:100%;height:100%;object-fit:cover;}
/* Keep focus rings legible for keyboard use. */
#content a:focus-visible,.primary-nav a:focus-visible {outline:3px solid #eebc43;outline-offset:3px;}


/* BeeSAP WordPress v1.3 — desktop navigation always visible.
   Users with Windows/browser zoom can have a 1100px CSS viewport on a large
   physical monitor; switch to two desktop rows instead of a hamburger. */
@media (min-width:961px) {
  .site-header .mobile-toggle {display:none !important;}
  .site-header .primary-nav,
  .page-welcome .site-header .primary-nav {
    display:flex !important; position:static !important;
    inset:auto !important; width:auto; height:auto; max-height:none;
    margin:0; padding:0; overflow:visible;
    box-shadow:none !important; background:transparent !important;
    border:none; flex-direction:row !important;
    align-items:center; justify-content:center;
    flex-wrap:nowrap; white-space:nowrap;
    gap:clamp(7px,.75vw,14px);
  }
  .site-header .primary-nav>a,
  .site-header .primary-nav .menu-more {
    display:inline-flex; align-items:center;
    flex-shrink:0; padding:9px 0; border:0;
    width:auto; background:transparent;
    font-size:clamp(10px,.8vw,12px);line-height:1.3;
    text-align:center;
  }
  .site-header .primary-nav .dropdown {width:auto;flex-shrink:0;}
  .site-header .primary-nav .more-pages {
    display:none; position:absolute; top:100%;right:0;
    padding:9px; width:220px; background:#fff !important;
    border:1px solid #e6e6df; border-radius:8px;
    box-shadow:0 18px 34px #0a2c2530 !important;
  }
  .site-header .primary-nav .dropdown:hover .more-pages,
  .site-header .primary-nav .dropdown:focus-within .more-pages,
  .site-header .primary-nav .dropdown.is-open .more-pages {display:block;}
  .site-header .primary-nav .more-pages a {display:block;white-space:normal;padding:9px 10px;}
  .page-welcome .site-header .primary-nav>a,
  .page-welcome .site-header .primary-nav .menu-more {color:#f2f5ef;}
  .page-welcome .site-header .primary-nav>a:hover,
  .page-welcome .site-header .primary-nav .menu-more:hover,
  .page-welcome .site-header .primary-nav>a[aria-current] {color:#fbd46e;}
  .page-welcome .site-header .primary-nav .more-pages a {color:#173c30;}
  .site-header .head-actions {margin-left:0;}
}
/* Tablet-size desktops and zoomed monitors: clear horizontal nav on its own row. */
@media (min-width:961px) and (max-width:1490px) {
  .site-header .head-inner,
  .page-welcome .site-header .head-inner {
    height:auto !important; min-height:125px !important;
    padding:11px 0 8px !important;
    display:flex;flex-wrap:wrap;align-content:center;align-items:center;
    justify-content:space-between;column-gap:14px;row-gap:0;
  }
  .site-header .brand {order:1;}
  .site-header .header-university {order:2;margin-left:auto;}
  .site-header .head-actions {order:3;margin-left:0;}
  .site-header .primary-nav,
  .page-welcome .site-header .primary-nav {
    order:4;flex:0 0 100%;width:100%;
    min-width:0; justify-content:space-between;
    gap:clamp(4px,.85vw,12px);
    border-top:1px solid rgba(100,125,110,.18) !important;
    padding-top:4px;
  }
  .site-header .primary-nav>a,
  .site-header .primary-nav .menu-more {font-size:clamp(10px,.88vw,12px);padding:8px 0;}
  .page-welcome .site-header .primary-nav,
  .page-welcome .site-header .primary-nav>a,
  .page-welcome .site-header .primary-nav .menu-more{white-space:nowrap;}
  .page-welcome .site-header .primary-nav {border-top-color:rgba(240,213,154,.22) !important;}
  /* Header is an absolute overlay on the welcome artwork. Shift live bar and
     hero text below the two-row navigation so none of them overlap. */
  .page-welcome .livebar {top:125px;}
  .page-welcome .splash .splash-content {padding-top:232px;}
}
/* True mobile viewports still use the hamburger and accessible expandable menu. */
@media (max-width:960px) {
  .site-header .primary-nav{display:none;}
  .site-header .primary-nav.is-open{display:flex;}
  .site-header .mobile-toggle{display:block;}
  .page-welcome .site-header .mobile-toggle span {background:#f4d078;}
}


/* BeeSAP WP v1.4 — mobile drawer (corrects the 40px blank white strip).
 * v1.3's <=1380px absolute-position rule combined with the original
 * bottom:0 rule and collapsed the menu to a tiny white rectangle on iOS.
 * Fixed viewport positioning and an explicit height eliminate that collision.
 */
@media (max-width:960px) {
  .site-header .primary-nav,
  .page-welcome .site-header .primary-nav {
    position:fixed !important;
    top:var(--beesap-mobile-nav-top,77px) !important;
    bottom:0 !important;
    left:0 !important; right:auto !important;
    width:min(380px,100vw) !important;
    max-width:100vw !important;
    height:calc(100dvh - var(--beesap-mobile-nav-top,77px)) !important;
    max-height:calc(100dvh - var(--beesap-mobile-nav-top,77px)) !important;
    min-height:0 !important; box-sizing:border-box !important;
    margin:0 !important;
    padding:14px 20px max(28px,env(safe-area-inset-bottom)) !important;
    flex-direction:column !important;
    flex-wrap:nowrap !important;
    align-items:stretch !important; justify-content:flex-start !important;
    gap:0 !important; white-space:normal !important;
    overflow-x:hidden !important;overflow-y:auto !important;
    overscroll-behavior:contain; -webkit-overflow-scrolling:touch;
    background:#fffefa !important; color:#163a30 !important;
    box-shadow:0 18px 45px rgba(0,0,0,.25) !important;
    border:0 !important; border-top:1px solid #e0c47c !important;
    z-index:999 !important;
    visibility:visible !important; opacity:1 !important;
  }
  .site-header .primary-nav:not(.is-open){display:none !important;}
  .site-header .primary-nav.is-open{display:flex !important;}
  .site-header .primary-nav>a,
  .page-welcome .site-header .primary-nav>a,
  .site-header .primary-nav .menu-more,
  .page-welcome .site-header .primary-nav .menu-more {
    color:#153a2f !important; opacity:1 !important; visibility:visible !important;
    font-size:14px !important; font-weight:750 !important;
    display:flex !important; align-items:center !important;
    justify-content:space-between !important;
    width:100% !important; min-height:46px !important;
    flex:0 0 auto !important; padding:11px 8px !important;
    text-align:left !important; border:0 !important;
    border-bottom:1px solid #e5e9e3 !important;
    background:transparent !important; white-space:normal !important;
  }
  .page-welcome .site-header .primary-nav>a[aria-current],
  .site-header .primary-nav>a[aria-current] {color:#9b6e0d !important;}
  .site-header .primary-nav .dropdown{width:100% !important;flex:0 0 auto !important;}
  .site-header .primary-nav .menu-more{cursor:pointer;}
  .site-header .primary-nav .more-pages{
    display:none !important;position:static !important;
    width:100% !important;padding:5px 0 9px 14px !important;
    border:0 !important; box-shadow:none !important; background:#fffefa !important;
  }
  .site-header .primary-nav .dropdown.is-open .more-pages{display:block !important;}
  .site-header .primary-nav .more-pages a{
    display:block !important; padding:12px 7px !important;
    font-size:13px !important; color:#244739 !important;
    border-bottom:1px solid #e8ece6 !important;
  }
  .site-header .mobile-toggle{display:block !important;}
  .site-header .mobile-toggle[aria-expanded="true"]{outline:2px solid #f0c65b;outline-offset:4px;}
  body.menu-open{overflow:hidden;}
  body.menu-open:before {
    content:""; position:fixed; inset:0; z-index:19;
    background:rgba(0,18,14,.50);
  }
  .site-header{z-index:50;}
}
@media (max-width:600px){
  .site-header .primary-nav,.page-welcome .site-header .primary-nav{width:100vw !important;}
}

/* BeeSAP v1.8: supplementary official form links (no global style changes). */
.beesap-official-forms{background:#f7f4e9}
.beesap-official-form-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;margin:22px 0 8px}
.beesap-official-form-card{display:flex;flex-direction:column;align-items:flex-start;min-height:190px;padding:26px;border:1px solid #decda4;border-radius:12px;background:#fff;text-decoration:none!important;color:#102f26!important;box-shadow:0 10px 30px rgba(7,37,25,.06);transition:transform .18s ease,border-color .18s ease}
.beesap-official-form-card:hover,.beesap-official-form-card:focus-visible{transform:translateY(-3px);border-color:#ba8d21;outline-offset:3px}
.beesap-official-form-card .beesap-form-number{font-size:.75rem;letter-spacing:.17em;font-weight:700;color:#b68515}
.beesap-official-form-card strong{font-size:1.2rem;line-height:1.45;margin:18px 0 14px;color:#102f26}
.beesap-official-form-card .beesap-form-go{color:#876418;font-size:.86rem;font-weight:700;margin-top:auto}
@media(max-width:800px){.beesap-official-form-grid{grid-template-columns:1fr}.beesap-official-form-card{min-height:148px}}
