/* ==========================================================
   ÖğrenciHaber V2 arayüzü — izole haber teması
   Yalnız .oh-* sınıflarını ve .oh-scope içindeki öğeleri etkiler.
   Site başlığı, haber tabelası, telefon reklamı ve footer mevcut
   style.css / news-board.css kurallarıyla çalışmaya devam eder.
   ========================================================== */
:root{--oh-green:#0aa45b;--oh-green-dark:#078247;--oh-navy:#0b1630;--oh-text:#111827;--oh-muted:#667085;--oh-line:#e8edf2;--oh-soft:#f6f8fa;--oh-radius:18px}

.oh-scope{color:var(--oh-text)}
.oh-scope img{display:block;max-width:100%}
.oh-scope a{text-decoration:none;color:inherit}
.oh-scope button,.oh-scope input{font:inherit}
.oh-scope button{cursor:pointer}
.oh-scope [hidden]{display:none!important}
.oh-sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.oh-skip{position:fixed;left:16px;top:-60px;z-index:9999;background:#111;color:#fff;padding:10px 14px;border-radius:8px;text-decoration:none}
.oh-skip:focus{top:16px}

/* Üst bar: ÖğrenciHaber logosu + bölüm geçişi + arama (tek satır).
   Logo dosyasının zemini opak beyazdır; bar beyaz tutulur ki kutu görünmesin. */
/* Üst bar ile kategori çubuğu tek beyaz parça gibi durur: aralarında çizgi
   yoktur, tek ince çizgi kategori çubuğunun altındadır. Sayfa kaydırılıp bar
   üstte tek başına kalınca (main.js `scrolled`) yalnız hafif bir gölge alır. */
.oh-header{position:sticky;top:0;z-index:100;background:#fff;transition:box-shadow .2s}
.oh-header.scrolled{box-shadow:0 1px 0 var(--oh-line),0 6px 18px rgba(15,23,42,.06)}
/* "Öğrenci Haber | Öğrenci Kart" kutusu ana sayfadaki (index.html, .nav) ile
   AYNI koordinatta durur; sayfa değişince zıplamaz. Ana sayfada kutunun
   konteyner soluna uzaklığı konteyner genişliğinin (C) parçalı doğrusal
   fonksiyonudur; aynı ölçü burada ilk kolonun genişliği olarak kurulur:
     >1120px : C/3 − 120.72px   (C=1200 iken 279.28px)
     ≤1120px : C/3 − 108.73px   (ana sayfada .nav gap 16px)
     ≤1016px : 0.2975·C − 73.62px (ana sayfa logosu daralır)
     ≤980px  : kutu sağa yaslı, sağ boşluk 9px (≤680px: 10px)
   Logo bu sabit kolonun İÇİNDE küçülür; kutunun yerini etkilemez. Arama esnek
   son kolondadır. Ana sayfa header'ı değişirse bu ölçüler yeniden alınmalıdır. */
.oh-header__bar{--oh-switch-x:calc(100% / 3 - 120.72px);display:grid;grid-template-columns:var(--oh-switch-x) auto minmax(0,1fr);grid-template-rows:92px;align-items:center;column-gap:0}
/* style.css dar ekranda kutuya order verir; burada yer açıkça sabitlenir. */
.oh-header .oh-wordmark{grid-area:1/1}
.oh-header .portal-switch{grid-area:1/2;order:0;justify-self:start;margin:0}
.oh-header .oh-search{grid-area:1/3}
.oh-wordmark{display:block;min-width:0;padding-right:8px;line-height:0}
.oh-wordmark img{display:block;width:auto;height:auto;max-height:56px;max-width:100%}
.oh-header .oh-search{justify-self:end;width:min(360px,calc(100% - 28px))}
.oh-search{height:46px;border:1px solid #e3e7ed;border-radius:14px;display:flex;align-items:center;overflow:hidden;background:#fff}
.oh-search:focus-within{border-color:var(--oh-green)}
.oh-search input{flex:1;border:0;outline:0;padding:0 16px;color:var(--oh-text);min-width:0;background:transparent}
.oh-search button{height:36px;width:36px;margin-right:5px;border:0;border-radius:50%;background:#f1f4f6;color:var(--oh-navy);font-weight:900}

/* Kategori çubuğu — backend kategorileri */
.oh-categorybar{position:relative;z-index:2;border-bottom:1px solid var(--oh-line);background:#fff}
.oh-categorybar__scroll{height:54px;display:flex;align-items:stretch;gap:26px;overflow-x:auto;scrollbar-width:none}
.oh-categorybar__scroll::-webkit-scrollbar{display:none}
.oh-categorybar button{border:0;border-bottom:3px solid transparent;background:transparent;white-space:nowrap;padding:0 4px;color:#233047;font-size:14px;font-weight:800}
.oh-categorybar button:hover,.oh-categorybar button.is-active{color:var(--oh-green-dark);border-bottom-color:var(--oh-green)}
.oh-categorybar button.is-empty{color:#a3acba;font-weight:700}

/* Durum kutuları */
.oh-state,.oh-empty{border:1px solid var(--oh-line);border-radius:var(--oh-radius);min-height:220px;padding:36px;display:flex;align-items:center;justify-content:center;text-align:center;background:#fff}
.oh-state{gap:12px;flex-direction:column;color:var(--oh-muted)}
.oh-state p{margin:0}
.oh-spinner{width:30px;height:30px;border:3px solid #e5e7eb;border-top-color:var(--oh-green);border-radius:50%;animation:oh-spin .8s linear infinite}
@keyframes oh-spin{to{transform:rotate(360deg)}}
.oh-empty{text-align:left;justify-content:flex-start;background:linear-gradient(135deg,#f8fffb,#fff)}
.oh-empty strong{display:block;font-size:clamp(24px,3vw,36px);line-height:1.1;margin:7px 0 10px;color:var(--oh-navy)}
.oh-empty p{max-width:680px;margin:0;color:var(--oh-muted);line-height:1.6}
.oh-empty__eyebrow{color:var(--oh-green-dark);font-weight:900;text-transform:uppercase;letter-spacing:.08em;font-size:12px}
.oh-note{margin:14px 0 0;color:var(--oh-muted);font-size:14px}
.oh-cta{display:inline-flex;align-items:center;justify-content:center;border:0;background:var(--oh-green);color:#fff;padding:12px 17px;border-radius:11px;font-weight:900;white-space:nowrap}
.oh-cta:hover{background:var(--oh-green-dark)}

/* Manşet */
.oh-hero{display:grid;grid-template-columns:minmax(0,2fr) minmax(300px,1fr);gap:14px;margin-bottom:26px}
.oh-hero--single{grid-template-columns:1fr}
.oh-hero-main{min-height:410px;display:grid}
.oh-hero-side{display:grid;grid-template-rows:1fr 1fr;gap:14px}
.oh-hero-side:empty{display:none}
.oh-card{position:relative;border-radius:var(--oh-radius);overflow:hidden;background:#0b1630;border:1px solid var(--oh-line)}
.oh-media-card{min-height:190px;isolation:isolate;color:#fff}
.oh-media-card::before{content:"";position:absolute;inset:0;z-index:-1;background:linear-gradient(180deg,rgba(4,16,30,.05) 20%,rgba(4,16,30,.9) 100%)}
.oh-media-card__image{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;z-index:-2}
.oh-media-card__body{position:absolute;inset:auto 0 0;padding:22px}
.oh-hero-main .oh-media-card__body{padding:30px}
.oh-kicker{display:inline-flex;background:var(--oh-green);color:#fff;border-radius:8px;padding:6px 10px;font-size:11px;line-height:1;font-weight:900;text-transform:uppercase;margin-bottom:10px}
.oh-media-card h1,.oh-media-card h3{margin:0;letter-spacing:-.03em;color:#fff}
.oh-hero-main h1{font-size:clamp(28px,2.8vw,44px);line-height:1.05;max-width:820px}
.oh-hero-side h3{font-size:20px;line-height:1.12}
.oh-summary{max-width:800px;margin:10px 0 0;color:rgba(255,255,255,.9);font-size:14px;line-height:1.5}
.oh-meta{display:flex;flex-wrap:wrap;align-items:center;gap:4px 9px;margin-top:12px;font-size:12px;line-height:1.35;color:rgba(255,255,255,.86)}
.oh-meta--dark{color:#6b7689}
.oh-meta span+span::before{content:"•";margin-right:9px}
.oh-meta--dark{flex-direction:column;align-items:flex-start;gap:2px}
.oh-meta--dark span+span::before{content:none}
.oh-media-card__link{position:absolute;inset:0;z-index:3}
.oh-media-card__link:focus-visible{outline:3px solid #fff;outline-offset:-5px}

/* Bölümler */
.oh-section{margin-bottom:26px}
.oh-section-head{display:flex;align-items:center;justify-content:space-between;gap:18px;margin-bottom:12px}
.oh-section-head h2{display:flex;align-items:center;gap:10px;margin:0;color:var(--oh-navy);font-size:22px;line-height:1.2;letter-spacing:-.025em}
.oh-section-head h2::before{content:"";flex:none;width:4px;height:23px;border-radius:999px;background:var(--oh-green)}
.oh-section-head button{border:0;background:transparent;color:var(--oh-green-dark);font-weight:900;font-size:12px;white-space:nowrap}
.oh-section-head--compact h2{font-size:18px}
.oh-section-head--compact h2::before{height:20px}
.oh-featured-grid,.oh-result-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:13px}
.oh-story-card{display:flex;flex-direction:column;overflow:hidden;border:1px solid var(--oh-line);border-radius:14px;background:#fff;min-width:0;scroll-margin-top:120px}
.oh-story-card__image{aspect-ratio:16/9;width:100%;object-fit:cover;background:#edf1f4}
.oh-story-card__body{padding:12px;display:flex;flex-direction:column;flex:1}
.oh-story-card .oh-kicker{align-self:flex-start;margin-top:-25px;position:relative;box-shadow:0 2px 8px rgba(0,0,0,.08)}
.oh-story-card h3{font-size:16px;line-height:1.22;margin:3px 0 4px;letter-spacing:-.015em;color:var(--oh-navy)}
.oh-story-card h3 a:hover,.oh-list-item h3 a:hover{color:var(--oh-green-dark)}
.oh-story-card__summary{margin:2px 0 0;font-size:13px;line-height:1.45;color:#4b5565}
.oh-story-card .oh-meta{margin-top:auto;padding-top:10px}
.oh-columns{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:22px 26px;margin-bottom:26px}
.oh-columns:empty{display:none}
.oh-mini-section{min-width:0}
.oh-list{display:flex;flex-direction:column}
.oh-list-item{display:grid;grid-template-columns:88px minmax(0,1fr);gap:11px;padding:10px 0;border-bottom:1px solid var(--oh-line);align-items:center;scroll-margin-top:120px}
.oh-list-item img{width:88px;height:58px;object-fit:cover;border-radius:9px;background:#edf1f4}
.oh-list-item h3{font-size:14px;line-height:1.25;margin:0;color:var(--oh-navy)}
.oh-list-item .oh-meta{margin-top:5px;font-size:11px}
.oh-target{outline:3px solid var(--oh-green);outline-offset:3px;border-radius:14px}

/* Arşiv */
.oh-archive-card{border:1px solid #d9f1e4;border-radius:var(--oh-radius);padding:20px;background:linear-gradient(140deg,#e5f9ee,#f6fff9);scroll-margin-top:110px}
.oh-archive-card>span{font-size:12px;font-weight:900;color:var(--oh-green-dark)}
.oh-archive-card h2{font-size:26px;line-height:1.05;letter-spacing:-.035em;color:var(--oh-navy);margin:8px 0}
.oh-archive-card>p{font-size:13px;line-height:1.5;color:#5f6e7c;margin:0 0 14px}
.oh-archive-card .oh-result-grid{margin-top:16px}

/* Masaüstü haber listesi V2 öncesindeki .news-card düzenidir; kart, ızgara ve
   %60 / %40 telefon yerleşimi style.css'teki özgün kurallarla çizilir. Burada
   yalnız karta eklenen kategori + tarih satırı ve liste başlığındaki "geri"
   düğmesi tanımlanır. */
.news-page.oh-page .news-area{padding-top:22px}
.news-card-kicker{display:block;margin-bottom:5px;color:var(--oh-green-dark);font-size:10.5px;line-height:1.3;font-weight:800;letter-spacing:.04em;text-transform:uppercase}
.news-section-head [data-list-back]{border:0;background:transparent;color:var(--oh-green-dark);font-weight:900;font-size:12px;white-space:nowrap}
.oh-archive-card .news-grid{margin-top:16px}

/* Reklam ses modu 'muted' iken ses düğmesi gösterilmez (bkz. news-ad.js). */
.news-page .news-ad-sound-toggle[hidden]{display:none!important}

/* Mobil bülten satırı (yalnız ≤820px akışında üretilir) */
.oh-brief{display:grid;grid-template-columns:minmax(0,1fr) 76px;gap:12px;align-items:center;padding:11px 0;border-bottom:1px solid var(--oh-line);scroll-margin-top:90px}
.oh-brief__category{display:block;margin-bottom:3px;color:var(--oh-green-dark);font-size:10.5px;line-height:1.2;font-weight:900;letter-spacing:.04em;text-transform:uppercase}
.oh-brief h3{margin:0;color:var(--oh-navy);font-size:15px;line-height:1.26;letter-spacing:-.01em;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;overflow:hidden}
.oh-brief .oh-meta{margin-top:5px;font-size:11px;gap:1px}
.oh-brief__media img{width:76px;height:76px;object-fit:cover;border-radius:12px;background:#edf1f4}

.oh-mobile-tabs{display:none}

@media (max-width:1120px){.oh-header__bar{--oh-switch-x:calc(100% / 3 - 108.73px)}}
@media (max-width:1016px){.oh-header__bar{--oh-switch-x:calc(29.75% - 73.62px)}}
@media (max-width:980px){
  .oh-header__bar{grid-template-columns:auto minmax(0,1fr) auto}
  .oh-header .portal-switch{grid-area:1/3;justify-self:end;margin-right:9px}
  .oh-header .oh-search{grid-area:1/2;justify-self:center;width:min(360px,calc(100% - 32px))}
}
@media (max-width:1100px){
  .oh-featured-grid,.oh-result-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .oh-columns{grid-template-columns:1fr}
}
@media (max-width:980px){
  .oh-featured-grid,.oh-result-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
  .oh-columns{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media (max-width:820px){
  /* MOBİL: masaüstünün küçültülmüş hali değil; başlık odaklı, hızlı taranan bülten. */
  .news-page.oh-page .news-area{padding:10px 0 28px}
  .oh-header{position:relative}
  .oh-header__bar{grid-template-columns:minmax(0,1fr) auto}
  .oh-header .portal-switch{grid-area:1/2}
  .oh-wordmark{padding-right:10px}
  .oh-wordmark img{max-height:40px}
  /* 08.11.2026: mobil alt sekme kaldırıldı → arama kutusu mobilde hep görünür. */
  .oh-header .oh-search{display:flex;grid-area:2/1/3/-1;justify-self:stretch;width:100%;height:44px;margin-bottom:10px}
  .oh-header.is-search-open .oh-search{display:flex}
  .oh-categorybar__scroll{height:44px;gap:18px}
  .oh-categorybar button{font-size:13px}

  .oh-hero{grid-template-columns:1fr;margin-bottom:6px}
  .oh-hero-side{display:none}
  .oh-hero-main{min-height:0;height:clamp(240px,40vh,360px);height:clamp(240px,40svh,360px)}
  .oh-hero-main .oh-media-card__body{padding:16px}
  .oh-hero-main .oh-kicker{margin-bottom:7px}
  .oh-hero-main h1{font-size:22px;line-height:1.14;letter-spacing:-.02em;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;overflow:hidden}
  .oh-summary{margin-top:6px;font-size:13px;line-height:1.4;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}
  .oh-hero-main .oh-meta{margin-top:8px;font-size:11px}

  .oh-section{margin-bottom:18px}
  .oh-section-head{margin:12px 0 2px}
  .oh-section-head h2{font-size:17px}
  .oh-section-head h2::before{height:18px}
  .oh-featured-grid,.oh-result-grid{display:block}
  .oh-columns{display:none}
  .oh-archive-card{padding:16px;border-radius:14px}
  .oh-archive-card h2{font-size:20px}
  .oh-archive-card .oh-result-grid{margin-top:8px}
  .oh-state,.oh-empty{padding:22px;min-height:160px}
  .oh-brief{scroll-margin-top:84px}

  /* Kapanış kartı mobilde kısa kalır; haber akışını gölgelemez. */
  .news-page.oh-page .cta-section{padding:4px 0 26px}
  .news-page.oh-page .cta-network{display:none}
  .news-page.oh-page .cta-card{min-height:0;padding:22px 20px;border-radius:22px;gap:14px}
  .news-page.oh-page .cta-card h2{font-size:22px;line-height:1.15;margin:8px 0 6px}
  .news-page.oh-page .cta-card p{font-size:13px;line-height:1.45;margin:0}

  /* Alt gezinme: sabit, safe-area uyumlu; gövde alt boşluğu aynı yükseklikte. */
  .oh-mobile-tabs{position:fixed;left:0;right:0;bottom:0;z-index:90;display:flex;box-sizing:border-box;height:calc(62px + env(safe-area-inset-bottom,0px));padding-bottom:env(safe-area-inset-bottom,0px);background:#fff;border-top:1px solid var(--oh-line);box-shadow:0 -8px 22px rgba(15,23,42,.07)}
  .oh-mobile-tabs button{position:relative;flex:1;min-width:0;border:0;background:transparent;color:#667085;font-size:10.5px;font-weight:700;display:flex;align-items:center;justify-content:center;gap:3px;flex-direction:column}
  .oh-mobile-tabs span{font-size:18px;line-height:1}
  .oh-mobile-tabs button.is-active{color:var(--oh-green-dark);font-weight:900}
  .oh-mobile-tabs button.is-active::before{content:"";position:absolute;top:0;left:22%;right:22%;height:3px;border-radius:0 0 4px 4px;background:var(--oh-green)}
}
@media (max-width:680px){
  .oh-header__bar{grid-template-rows:80px}
  .oh-header .portal-switch{margin-right:10px}
}
@media (max-width:380px){
  .oh-hero-main h1{font-size:20px}
  .oh-brief{grid-template-columns:minmax(0,1fr) 68px;gap:10px}
  .oh-brief__media img{width:68px;height:68px}
  .oh-brief h3{font-size:14.5px}
}
@media (prefers-reduced-motion:reduce){.oh-spinner{animation:none}}

/* 07.11.2026: Bilgisayarda kategori yazıları mobildeki gibi sade — kalın değil, seçili olan hafif vurgulu. */
@media (min-width:821px){
  .oh-categorybar__scroll{height:48px;gap:22px}
  .oh-categorybar button{font-size:14px;font-weight:600;color:#4a5568}
  .oh-categorybar button.is-active{font-weight:700}
  .oh-categorybar button.is-empty{font-weight:500}
}
