/* ═══════════════════════════════════════════════════════════
   BİLİŞİMCİ HOCAM — BH-HUB.CSS  v1.0
   Ana Hub Sayfaları Ortak Stilleri
   (Yapay_Zeka.html, Robotik_Kodlama.html, Mobil_Programlama.html)

   Prefix'siz — data-module ile ayrım yapılır.
   Eski: .yz-tl-card / .rk-tl-card / .mp-tl-card → .tl-card
   ═══════════════════════════════════════════════════════════ */


/* ══════════════════════════════════════════
   HERO
   ══════════════════════════════════════════ */
.hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
  min-height: auto !important;
  padding-top: clamp(5px, 1vh, 10px) !important;
  padding-bottom: 0 !important;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  background: linear-gradient(160deg, var(--bg1) 0%, var(--bg2) 60%, var(--bg1) 100%);
}

.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
}
.orb1 {
  width: min(480px,45vw); height: min(480px,45vw);
  top: -120px; right: -80px;
  animation: float1 8s ease-in-out infinite;
}
.orb2 {
  width: min(360px,35vw); height: min(360px,35vw);
  bottom: -60px; left: -60px;
  animation: float2 10s ease-in-out infinite;
}

.hero-inner {
  width: min(94vw, 1800px);
  margin-inline: auto;
  position: relative; z-index: 2;
  padding: clamp(0.2rem, 1vw, 0.5rem) clamp(1rem, 2vw, 2rem) clamp(24px, 3.5vh, 48px) !important;
  display: flex;
  flex-direction: row;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: flex-start;
  height: calc(100vh - clamp(64px, 6vw, 90px) - clamp(36px, 3vw, 48px));
}

/* Sol sütun */
.hero-left {
  flex: 1.4;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  padding-bottom: clamp(24px, 3.5vh, 48px);
}

/* Üst grup */
.hero-top {
  display: flex;
  flex-direction: column;
  gap: clamp(0.4rem, 0.8vh, 0.8rem);
  flex: 1;
  min-height: 0;
  justify-content: center;
}

/* Logo + Başlık yan yana */
.hero-header-group {
  display: flex;
  align-items: center;
  gap: clamp(1.5rem, 3vw, 3rem);
  margin-bottom: clamp(0.2rem, 0.4vw, 0.3rem);
  flex-wrap: wrap;
  flex-shrink: 0;
}

.hero-logo { flex-shrink: 0; display: flex; align-items: center; line-height: 0; }
.hero-logo-img {
  width: clamp(140px, 16vw, 200px) !important;
  height: auto !important;
  display: block !important;
  object-fit: contain !important;
}

.hero-title-group {
  flex: 1;
  min-width: 200px;
  display: flex;
  align-items: center;
}

.hero-h1 {
  font-size: clamp(1.8rem, 3.5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.2 !important;
  letter-spacing: -.04em;
  margin-bottom: 0 !important;
}
.h1-plain { display: block; color: var(--text1); }

/* Çizgi */
.hero-underline {
  width: 100%; height: 3px;
  border-radius: 3px;
  margin: 0 0 clamp(0.2rem, 0.4vw, 0.3rem) 0;
  flex-shrink: 0;
}

/* Badge */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'JetBrains Mono', monospace;
  font-size: clamp(11px, 0.9vw, 14px);
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: clamp(8px, 0.8vw, 12px) clamp(16px, 1.6vw, 24px);
  border-radius: 30px;
  box-shadow: 0 0 24px rgba(var(--primary-rgb), .15);
  align-self: flex-start;
  flex-shrink: 0;
}
.badge-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  animation: blink 2s ease-in-out infinite;
}

/* Hero Açıklama */
.hero-desc {
  flex: 0 1 auto;
  overflow: visible;
  color: var(--text2);
  font-size: clamp(1rem, 1.15vw, 1.2rem);
  line-height: 1.85;
  margin-bottom: clamp(0.5rem, 0.8vw, 0.8rem);
  white-space: pre-line;
  background: rgba(var(--primary-rgb), 0.03);
  padding: 0.9rem 1.2rem;
  border-radius: 12px;
  border-left: 3px solid var(--primary);
  font-family: 'Sora', sans-serif;
  min-height: clamp(200px, 24vh, 320px);
}

#heroDesc {
  border-right: 2px solid var(--primary);
  padding-right: 4px;
  animation: descBlink .8s step-end infinite;
  transition: border-color .3s;
}
#heroDesc.bitti { border-color: transparent; animation: none; }

/* Butonlar - altta sabit */
.hero-btns {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  flex-shrink: 0;
  padding-top: clamp(0.5rem, 1vh, 1rem);
  margin-top: 0;
  margin-bottom: 0;
}

.btn-primary {
  padding: clamp(0.4rem, 0.7vw, 0.6rem) clamp(0.8rem, 1.2vw, 1.2rem) !important;
  border-radius: 10px;
  font-weight: 700;
  font-size: clamp(0.7rem, 0.8vw, 0.85rem) !important;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: all .3s;
  font-family: 'Sora', sans-serif;
  display: inline-flex;
  align-items: center;
  gap: .5rem;
}

.btn-secondary {
  background: transparent;
  color: var(--text1);
  padding: clamp(0.4rem, 0.7vw, 0.6rem) clamp(0.8rem, 1.2vw, 1.2rem) !important;
  border-radius: 10px;
  font-weight: 600;
  font-size: clamp(0.7rem, 0.8vw, 0.85rem) !important;
  cursor: pointer;
  border: 1px solid var(--border);
  transition: all .3s;
  text-decoration: none;
  font-family: 'Sora', sans-serif;
  display: inline-flex;
  align-items: center;
  gap: .5rem;
}

.mobile-return-link {
  display: none !important;
}


/* ══════════════════════════════════════════
   MÜFREDAT PANELİ
   ══════════════════════════════════════════ */
.main-wrap {
  position: fixed;
  top: clamp(64px, 6vw, 90px) !important;
  left: 0; right: 0; bottom: 0;
  height: calc(100dvh - clamp(64px, 6vw, 90px));
  max-height: calc(100dvh - clamp(64px, 6vw, 90px));
  display: none;
  flex-direction: column;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .4s ease, transform .4s ease;
  overflow: hidden;
  z-index: 10000;
  background: var(--bg1);
}
.main-wrap.goster {
  display: flex;
  opacity: 1;
  transform: translateY(0);
}

body.mufredat-panel-acik {
  overflow: hidden !important;
  padding-bottom: 0 !important;
}

body.mufredat-panel-acik .ticker-wrap {
  display: none !important;
  visibility: hidden !important;
}

/* Panel bar (prefix-agnostik) */
.panel-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: clamp(0.5rem, 0.8vw, 1rem) clamp(1rem, 2vw, 2.5rem);
  border-bottom: 2px solid var(--border);
  background: var(--bg2);
  flex-shrink: 0;
  min-height: 52px;
}
.panel-baslik {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(1rem, 1.4vw, 1.6rem) !important;
  font-weight: 800 !important;
  color: var(--text1);
  letter-spacing: 0.08em;
  display: flex;
  align-items: center;
  gap: 12px;
}
.panel-baslik i {
  font-size: clamp(1.1rem, 1.5vw, 1.7rem);
  color: var(--primary);
}

.panel-aksiyonlar {
  display: flex;
  align-items: center;
  gap: .75rem;
}
.sifirla-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: .35rem .9rem;
  background: rgba(239,68,68,.1);
  border: 1px solid rgba(239,68,68,.3);
  border-radius: 8px;
  color: #ef4444;
  font: 600 .7rem/1 'JetBrains Mono', monospace;
  cursor: pointer;
  transition: all .18s;
}
.sifirla-btn:hover {
  background: rgba(239,68,68,.18);
  border-color: rgba(239,68,68,.5);
}
.kapat-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: .35rem .9rem;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text2);
  font: 600 .7rem/1 'JetBrains Mono', monospace;
  cursor: pointer;
  transition: all .18s;
}
.kapat-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
}


/* ══════════════════════════════════════════
   KART GRİD (4×2 Timeline)
   ══════════════════════════════════════════ */
.timeline-wrap {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(2, 1fr);
  gap: clamp(.6rem,.9vw,1.2rem);
  padding: clamp(.6rem,.9vw,1.2rem) clamp(.8rem,1.5vw,2rem);
  flex: 1;
  min-height: 0;
  overflow: hidden;
}

.tl-col {
  width: 100%; height: 100%;
  min-height: 0;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  opacity: 0;
  animation: fadeUp 0.5s ease forwards;
}
.tl-col:nth-child(1) { animation-delay: 0s; }
.tl-col:nth-child(2) { animation-delay: 0.08s; }
.tl-col:nth-child(3) { animation-delay: 0.16s; }
.tl-col:nth-child(4) { animation-delay: 0.24s; }
.tl-col:nth-child(5) { animation-delay: 0.32s; }
.tl-col:nth-child(6) { animation-delay: 0.40s; }
.tl-col:nth-child(7) { animation-delay: 0.48s; }
.tl-col:nth-child(8) { animation-delay: 0.56s; }
.tl-col:hover {
  transform: translateY(-6px) scale(1.02);
  z-index: 10;
}

/* Kartlar (prefix-agnostik) */
.tl-card {
  background: linear-gradient(145deg, var(--bg3), var(--bg2));
  border: 1px solid rgba(255,255,255,.08);
  border-radius: clamp(16px,1.8vw,28px);
  padding: clamp(.8rem,1.1vw,1.5rem) clamp(.75rem,1vw,1.4rem);
  width: 100%; height: 100%;
  min-height: 0;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 20px 35px -15px rgba(0,0,0,.55), inset 0 0 0 1px rgba(255,255,255,.05);
}
.card-glow {
  position: absolute;
  top: -50%; left: -50%;
  width: 200%; height: 200%;
  background: radial-gradient(circle at 70% 30%, var(--cc, var(--primary)), transparent 65%);
  opacity: .12;
  pointer-events: none;
  transition: opacity .4s ease;
}
.tl-card:hover .card-glow { opacity: .22; }
.tl-card:hover {
  box-shadow: 0 30px 50px -12px rgba(0,0,0,.75), 0 0 0 1.5px var(--cc, var(--primary));
}

.card-number {
  position: absolute;
  top: .5rem; right: .9rem;
  font: 900 clamp(2.5rem,4vw,5rem)/1 'Montserrat', sans-serif;
  color: var(--cc, var(--primary));
  opacity: .12;
  pointer-events: none;
}
.card-icon {
  width: clamp(36px,4vw,58px);
  height: clamp(36px,4vw,58px);
  border-radius: clamp(10px,1.2vw,18px);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: clamp(.9rem,1.3vw,1.7rem);
  margin-bottom: clamp(.4rem,.6vw,.9rem);
  color: #fff;
  box-shadow: 0 8px 18px rgba(0,0,0,.35);
  transition: transform .3s ease;
}
.tl-card:hover .card-icon {
  transform: scale(1.08) rotate(-3deg);
}
.card-step {
  font: 600 clamp(.55rem,.65vw,.72rem)/1 'JetBrains Mono', monospace;
  letter-spacing: .14em;
  color: var(--cc, var(--primary));
  margin-bottom: clamp(.2rem,.3vw,.4rem);
}
.card-title {
  font: 800 clamp(.85rem,1vw,1.25rem)/1.25 'Montserrat', sans-serif;
  color: #fff;
  margin-bottom: clamp(.25rem,.4vw,.6rem);
}
.card-desc {
  font-size: clamp(.68rem,.78vw,.85rem);
  color: var(--text2);
  line-height: 1.55;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card-konu-list {
  display: flex;
  flex-wrap: wrap;
  gap: .3rem;
  margin-bottom: clamp(.3rem,.5vw,.7rem);
}
.card-konu-list span {
  font: 600 clamp(.55rem,.62vw,.68rem)/1 'Inter', sans-serif;
  padding: .22rem .6rem;
  border-radius: 20px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.13);
  color: rgba(255,255,255,.85);
}
.progress-bar {
  height: 5px;
  background: rgba(0,0,0,.3);
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: clamp(.3rem,.4vw,.6rem);
  border: 1px solid rgba(255,255,255,.08);
}
.progress-fill {
  height: 100%;
  border-radius: 3px;
  transition: width .6s cubic-bezier(.4,0,.2,1);
}
.card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: clamp(.3rem,.4vw,.55rem);
  border-top: 1px solid rgba(255,255,255,.08);
}
.durum {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .35rem .9rem;
  border-radius: 20px;
  font: 800 clamp(.65rem,.75vw,.82rem)/1 'JetBrains Mono', monospace;
  letter-spacing: .02em;
  border: 1px solid transparent;
}
.durum-kilitli {
  background: rgba(251,146,60,.15);
  color: #fb923c;
  border-color: rgba(251,146,60,.3);
}

.durum-yakinda {
  background: rgba(250, 204, 21, .15);
  color: #fbbf24;
  border: 1px solid rgba(250,204,21,.3);
}

.durum-yapim {
  background: rgba(103,232,249,.1);
  color: #67e8f9;
  border: 1px solid rgba(103,232,249,.2);
}
.konu-sayi {
  font: 500 clamp(.55rem,.6vw,.65rem)/1 'JetBrains Mono', monospace;
  color: var(--text3);
  padding: .2rem .6rem;
  background: rgba(0,0,0,.2);
  border-radius: 12px;
}
/* ── Kilitli Kart ──────────────────────────── */
/* Görsel olarak aktif gibi — tıklayınca toast mesajı çıkar */
.locked {
  cursor: pointer;
}

/* ── Yakında Kartı ─────────────────────────── */
.tl-card.yakinda {
  cursor: pointer;
}

/* ── Hazırlanıyor (Yapım) Kartı ────────────── */
.tl-card.yapim {
  cursor: pointer;
}

/* ── Kart Badge (Yakında / Hazırlanıyor) ───── */
.card-badge {
  position: absolute;
  top: clamp(.5rem, .8vw, .8rem);
  left: clamp(.6rem, .9vw, 1rem);
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .28rem .65rem;
  border-radius: 20px;
  font: 700 clamp(.52rem, .58vw, .62rem)/1 'JetBrains Mono', monospace;
  letter-spacing: .06em;
  text-transform: uppercase;
  z-index: 2;
}

.yakinda-badge {
  background: rgba(250, 204, 21, .15);
  color: #fbbf24;
  border: 1px solid rgba(250, 204, 21, .35);
  animation: badgePulse 2.5s ease-in-out infinite;
}

.yapim-badge {
  background: rgba(var(--cc-rgb, var(--primary-rgb)), .1);
  color: var(--cc, var(--primary));
  border: 1px solid rgba(var(--cc-rgb, var(--primary-rgb)), .2);
}

@keyframes badgePulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(250, 204, 21, .15); }
  50%      { opacity: .85; box-shadow: 0 0 12px 4px rgba(250, 204, 21, .08); }
}

/* Panel Footer */
.panel-footer {
  flex-shrink: 0;
  padding: .5rem clamp(1rem,2vw,2.5rem);
  border-top: 1px solid var(--border);
  background: var(--bg2);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.panel-footer-logo {
  display: flex;
  align-items: center;
  gap: 6px;
  font: 700 .72rem/1 'Montserrat', sans-serif;
  color: var(--text3);
}
.panel-footer-logo i {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.panel-footer-logo span { color: var(--primary); }
.panel-footer-copy {
  font: 400 .68rem/1 'JetBrains Mono', monospace;
  color: var(--text3);
}
.panel-footer-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: .18rem .6rem;
  border-radius: 20px;
  font: 600 .6rem/1 'JetBrains Mono', monospace;
  background: rgba(var(--primary-rgb), .08);
  border: 1px solid rgba(var(--primary-rgb), .18);
  color: var(--primary);
}


/* ══════════════════════════════════════════
   SUBNAV (Modül Alt Navigasyonu)
   ══════════════════════════════════════════ */
.mod-subnav {
  flex-shrink: 0;
  padding: 10px 0;
  min-height: 56px;
}

.mod-subnav-inner {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  padding: 0 32px;
  overflow-x: auto;
  flex-wrap: wrap;
  scrollbar-width: thin;
}

.mod-subnav-inner .subnav-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  font-size: .88rem;
  font-weight: 600;
  color: var(--text2);
  border-radius: 40px;
  transition: all .2s ease;
  white-space: nowrap;
  background: transparent;
  border: 1px solid transparent;
  text-decoration: none;
}

.mod-subnav-inner .subnav-link:hover {
  color: var(--primary);
  background: rgba(var(--primary-rgb), .08);
  border-color: rgba(var(--primary-rgb), .2);
  transform: translateY(-1px);
}

.mod-subnav-inner .subnav-link.sn-act {
  color: var(--primary);
  background: rgba(var(--primary-rgb), .12);
  border-color: rgba(var(--primary-rgb), .35);
}

.mod-subnav-inner .subnav-link i {
  font-size: .82rem;
  opacity: 0.8;
}


/* ══════════════════════════════════════════
   AÇIK TEMA KART DÜZELTMELERİ
   ══════════════════════════════════════════ */
[data-theme="cream"] .tl-card,
[data-theme="corporate"] .tl-card {
  background: linear-gradient(145deg, #f2ede4, #e8e1d4);
  border-color: rgba(0,0,0,.1);
}
[data-theme="cream"] .card-title,
[data-theme="corporate"] .card-title { color: #111; }
[data-theme="cream"] .card-desc,
[data-theme="corporate"] .card-desc { color: #444; }
[data-theme="cream"] .card-konu-list span,
[data-theme="corporate"] .card-konu-list span {
  background: rgba(0,0,0,.07);
  color: #222;
}

/* Krem/Corporate panel bar */
[data-theme="cream"] .panel-bar,
[data-theme="cream"] .panel-footer,
[data-theme="corporate"] .panel-bar,
[data-theme="corporate"] .panel-footer {
  background: var(--bg2);
  border-color: var(--border);
  color: var(--text1);
}


/* ══════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════ */
@media (max-width: 1100px) {
  .timeline-wrap {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(4, 1fr);
  }
}
@media (max-width: 768px) {
  html, body {
    height: 100%;
    overflow-x: hidden;
  }
  body:not(.mufredat-panel-acik) {
    overflow-y: hidden;
  }
  .mobile-return-link {
    display: flex !important;
  }
  .back-btn {
    display: none !important;
  }
  .hero {
    min-height: calc(100svh - 44px) !important;
    padding-top: 0 !important;
  }
  .hero-inner {
    flex-direction: column;
    align-items: stretch;
    height: calc(100svh - clamp(64px, 6vw, 90px) - 44px);
    width: min(100vw, 100%);
    gap: .25rem;
    padding: .25rem 1rem 3.7rem !important;
  }
  .hero-top {
    flex: 0 0 auto;
    justify-content: flex-start;
    gap: .45rem;
  }
  .hero-h1 {
    font-size: clamp(1.65rem, 8vw, 2.35rem);
    line-height: 1.05 !important;
  }
  .hero-badge {
    max-width: 100%;
    letter-spacing: .08em;
    font-size: .62rem;
    padding: .45rem .65rem;
  }
  .hero-desc {
    min-height: 112px;
    max-height: 148px;
    overflow: hidden;
    font-size: .8rem;
    line-height: 1.55;
    padding: .7rem .8rem;
    margin-bottom: 0;
  }
  .hero-btns {
    gap: .55rem;
    padding-top: .2rem;
    margin-top: .15rem;
  }
  .btn-primary,
  .btn-secondary {
    flex: 1 1 100%;
    justify-content: center;
  }
  .hero-terminal {
    width: 100%;
    margin-top: .55rem;
    min-height: 0;
    height: 390px;
    max-height: 390px;
    overflow: hidden !important;
  }
  .terminal-body {
    height: 342px;
    min-height: 342px;
    max-height: 342px;
    overflow: hidden !important;
    scrollbar-width: none;
  }
  .terminal-body::-webkit-scrollbar { display: none; }
  .hero-left {
    min-height: auto;
    height: auto;
    justify-content: flex-start;
    padding-bottom: 0;
  }
  .timeline-wrap {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    overflow-y: auto;
    overflow-x: hidden;
  }
  .panel-bar {
    align-items: stretch;
    flex-direction: column;
    gap: .65rem;
  }
  .panel-aksiyonlar {
    width: 100%;
    justify-content: stretch;
  }
  .panel-aksiyonlar button {
    flex: 1 1 0;
    justify-content: center;
  }
  .mod-subnav-inner {
    padding: 0 16px;
    gap: 8px;
  }
  .mod-subnav-inner .subnav-link {
    padding: 6px 14px;
    font-size: .78rem;
  }
}
@media (max-width: 480px) {
  .timeline-wrap { grid-template-columns: 1fr; }
  .hero-desc {
    min-height: 98px;
    max-height: 128px;
  }
  .hero-terminal {
    height: 370px;
    max-height: 370px;
    margin-top: .45rem;
  }
  .terminal-body {
    height: 322px;
    min-height: 322px;
    max-height: 322px;
    overflow: hidden !important;
  }
}

/* RESPONSIVE ARCHITECTURE V2 - hub pages: YZ/RK/MP */
@media (min-width: 1200px) {
  html,
  body {
    height: 100%;
  }

  body:not(.mufredat-panel-acik) {
    overflow: hidden !important;
  }

  body:not(.mufredat-panel-acik) .hero {
    min-height: calc(100dvh - clamp(64px, 6vw, 90px) - 44px) !important;
    height: calc(100dvh - clamp(64px, 6vw, 90px) - 44px) !important;
    padding: 0 !important;
    overflow: hidden !important;
  }

  body:not(.mufredat-panel-acik) .hero-inner {
    width: min(100%, 1740px) !important;
    height: 100% !important;
    display: grid !important;
    grid-template-columns: minmax(340px, .95fr) minmax(460px, 1.05fr) !important;
    align-items: center !important;
    gap: clamp(1.4rem, 3vw, 4rem) !important;
    padding: clamp(.8rem, 2vh, 1.6rem) clamp(1rem, 4vw, 5rem) clamp(1.1rem, 3vh, 2.4rem) !important;
    min-height: 0 !important;
  }

  body:not(.mufredat-panel-acik) .hero-left {
    height: auto !important;
    min-height: 0 !important;
    padding-bottom: 0 !important;
  }

  body:not(.mufredat-panel-acik) .hero-top {
    justify-content: center !important;
    min-height: 0 !important;
  }

  body:not(.mufredat-panel-acik) .hero-h1 {
    font-size: clamp(2.4rem, 4.5vw, 4.6rem) !important;
    line-height: 1.04 !important;
  }

  body:not(.mufredat-panel-acik) .hero-desc {
    min-height: clamp(145px, 20dvh, 260px) !important;
    max-height: none !important;
    overflow: hidden !important;
    font-size: clamp(.9rem, 1.1vw, 1.12rem) !important;
    line-height: 1.65 !important;
  }

  body:not(.mufredat-panel-acik) .hero-terminal {
    width: min(100%, 700px) !important;
    height: clamp(360px, 54dvh, 560px) !important;
    max-height: none !important;
    overflow: hidden !important;
    align-self: center !important;
  }

  body:not(.mufredat-panel-acik) .terminal-body {
    height: calc(100% - 46px) !important;
    min-height: 0 !important;
    overflow: hidden !important;
    font-size: clamp(.64rem, .82vw, .88rem) !important;
    line-height: 1.48 !important;
  }
}

@media (min-width: 768px) and (max-width: 1199px) {
  html,
  body,
  body:not(.mufredat-panel-acik) {
    height: auto !important;
    min-height: 100% !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
  }

  body:not(.mufredat-panel-acik) .hero {
    min-height: auto !important;
    height: auto !important;
    padding: clamp(1rem, 2vh, 1.8rem) 0 clamp(1.4rem, 3vh, 2.4rem) !important;
    overflow: visible !important;
  }

  body:not(.mufredat-panel-acik) .hero-inner {
    width: min(100%, 1120px) !important;
    height: auto !important;
    min-height: 0 !important;
    display: grid !important;
    grid-template-columns: minmax(280px, .9fr) minmax(360px, 1.1fr) !important;
    align-items: center !important;
    gap: clamp(1rem, 2.6vw, 2rem) !important;
    padding: .8rem clamp(1rem, 3vw, 2rem) !important;
  }

  body:not(.mufredat-panel-acik) .hero-left {
    height: auto !important;
    padding-bottom: 0 !important;
  }

  body:not(.mufredat-panel-acik) .hero-h1 {
    font-size: clamp(2rem, 5vw, 3.35rem) !important;
    line-height: 1.05 !important;
  }

  body:not(.mufredat-panel-acik) .hero-badge {
    max-width: 100% !important;
    font-size: clamp(.58rem, 1.05vw, .76rem) !important;
    letter-spacing: .08em !important;
  }

  body:not(.mufredat-panel-acik) .hero-desc {
    min-height: clamp(132px, 18vw, 210px) !important;
    max-height: none !important;
    overflow: hidden !important;
    font-size: clamp(.82rem, 1.45vw, .98rem) !important;
    line-height: 1.58 !important;
  }

  body:not(.mufredat-panel-acik) .hero-terminal {
    width: min(100%, 560px) !important;
    height: clamp(340px, 42vw, 455px) !important;
    max-height: none !important;
    overflow: hidden !important;
  }

  body:not(.mufredat-panel-acik) .terminal-body {
    height: calc(100% - 46px) !important;
    min-height: 0 !important;
    overflow: hidden !important;
    font-size: clamp(.58rem, 1.05vw, .76rem) !important;
    line-height: 1.45 !important;
  }

  body:not(.mufredat-panel-acik) .ticker-wrap {
    display: none !important;
  }

  .main-wrap.goster,
  body.mufredat-panel-acik .main-wrap {
    overflow-y: auto !important;
  }

  .timeline-wrap {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    grid-template-rows: none !important;
    overflow: visible !important;
  }
}

@media (max-width: 767px) {
  html,
  body,
  body:not(.mufredat-panel-acik) {
    height: auto !important;
    min-height: 100% !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
  }

  .mobile-return-link {
    display: flex !important;
  }

  .back-btn {
    display: none !important;
  }

  body:not(.mufredat-panel-acik) .hero {
    min-height: auto !important;
    height: auto !important;
    padding: .6rem 0 1rem !important;
    overflow: visible !important;
  }

  body:not(.mufredat-panel-acik) .hero-inner {
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: .85rem !important;
    padding: .65rem clamp(.85rem, 4vw, 1.1rem) !important;
  }

  body:not(.mufredat-panel-acik) .hero-left {
    height: auto !important;
    min-height: 0 !important;
    padding-bottom: 0 !important;
  }

  body:not(.mufredat-panel-acik) .hero-top {
    gap: .55rem !important;
    justify-content: flex-start !important;
  }

  body:not(.mufredat-panel-acik) .hero-h1 {
    font-size: clamp(1.55rem, 7.2vw, 2rem) !important;
    line-height: 1.04 !important;
    letter-spacing: 0 !important;
    max-width: 100% !important;
    overflow-wrap: anywhere !important;
    word-break: break-word !important;
  }

  body:not(.mufredat-panel-acik) .hero-h1 span {
    max-width: 100% !important;
    white-space: normal !important;
    overflow-wrap: anywhere !important;
  }

  body:not(.mufredat-panel-acik) .hero-badge {
    max-width: 100% !important;
    font-size: .62rem !important;
    letter-spacing: .06em !important;
    padding: .45rem .65rem !important;
  }

  body:not(.mufredat-panel-acik) .hero-desc {
    width: calc(100vw - 32px) !important;
    max-width: calc(100vw - 32px) !important;
    min-height: 0 !important;
    max-height: none !important;
    overflow: visible !important;
    font-size: clamp(.82rem, 3.6vw, .96rem) !important;
    line-height: 1.52 !important;
    padding: .7rem .8rem !important;
    margin-bottom: 0 !important;
  }

  body:not(.mufredat-panel-acik) .hero-btns {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: .55rem !important;
    padding-top: 0 !important;
  }

  body:not(.mufredat-panel-acik) .btn-primary,
  body:not(.mufredat-panel-acik) .btn-secondary {
    width: 100% !important;
    justify-content: center !important;
  }

  body:not(.mufredat-panel-acik) .hero-terminal {
    width: 100% !important;
    height: auto !important;
    min-height: clamp(340px, 88vw, 430px) !important;
    max-height: none !important;
    margin: 0 auto !important;
    overflow: hidden !important;
  }

  body:not(.mufredat-panel-acik) .terminal-body {
    height: auto !important;
    min-height: clamp(292px, 76vw, 380px) !important;
    max-height: none !important;
    overflow: hidden !important;
    font-size: clamp(.54rem, 2.4vw, .68rem) !important;
    line-height: 1.45 !important;
  }

  body:not(.mufredat-panel-acik) .ticker-wrap {
    display: none !important;
  }

  .main-wrap {
    top: clamp(64px, 6vw, 90px) !important;
    height: calc(100dvh - clamp(64px, 6vw, 90px)) !important;
    max-height: calc(100dvh - clamp(64px, 6vw, 90px)) !important;
    overflow-y: auto !important;
  }

  .timeline-wrap {
    grid-template-columns: 1fr !important;
    grid-template-rows: none !important;
    overflow: visible !important;
    padding: .85rem !important;
  }

  .panel-bar {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: .65rem !important;
  }
}
