/* ══════════════════════════════════════════════════════════════
   SARGEM CyberSense Lab — Ana Stil Dosyası
   ══════════════════════════════════════════════════════════════ */

/* ── VARIABLES ────────────────────────────────── */
:root {
  --navy:       #0a1628;
  --navy-mid:   #0f2040;
  --navy-light: #1a3358;
  --cyan:       #00c8e8;
  --cyan-dim:   #0097b2;
  --white:      #ffffff;
  --gray-light: #f4f7fc;
  --gray-mid:   #8899aa;
  --border:     rgba(0,200,232,0.15);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: 'Inter', sans-serif; background: #fff; color: #1a1a2e; margin: 0; }

/* ── TOP BAR ──────────────────────────────────── */
.top-bar { background: var(--navy); padding: 6px 0; font-size: 12px; }
.top-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.top-bar-links,
.top-bar-contact {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}
.top-bar-contact { margin-left: auto; }
.top-bar a {
  color: rgba(255,255,255,.55);
  text-decoration: none;
  margin: 0;
  transition: color .2s, background .2s;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}
.top-bar a:hover { color: var(--cyan); }
.top-bar i { margin-right: 0; }
.top-bar-mail-label { display: inline; }

/* ── HEADER ───────────────────────────────────── */
.site-header { background: var(--navy-mid); padding: 16px 0; border-bottom: 1px solid var(--border); }
.hdr-logo-wrap { display: flex; align-items: center; gap: 14px; }
.hdr-monogram {
  width: 58px; height: 58px; border-radius: 50%;
  background: var(--cyan); display: flex; align-items: center; justify-content: center;
  font-size: 22px; font-weight: 800; color: var(--navy); flex-shrink: 0;
  box-shadow: 0 0 0 3px rgba(0,200,232,.2);
}
.hdr-text-uni   { font-size: 19px; font-weight: 800; color: #fff; letter-spacing: .3px; line-height: 1.2; }
.hdr-text-fac   { font-size: 12px; color: rgba(255,255,255,.55); line-height: 1.4; }
.hdr-text-lab   { display: flex; align-items: center; gap: 7px; margin-top: 3px; color: var(--cyan); font-size: 14px; font-weight: 600; }
.lab-badge      { background: var(--cyan); color: var(--navy); font-size: 9px; font-weight: 800; padding: 2px 8px; border-radius: 10px; letter-spacing: .5px; }
.hdr-actions    { display: flex; align-items: center; gap: 10px; }
.btn-lang { background: var(--cyan); color: var(--navy); border: none; padding: 7px 15px; border-radius: 7px; font-weight: 800; font-size: 13px; cursor: pointer; text-decoration: none; }

/* ── NAVBAR ───────────────────────────────────── */
.main-navbar { background: var(--navy); position: sticky; top: 0; z-index: 1000; border-bottom: 2px solid var(--cyan); }
.main-navbar .navbar-brand { color: var(--cyan) !important; font-weight: 700; font-size: 15px; display: none; }
.main-navbar .nav-link {
  color: rgba(255,255,255,.82) !important; font-size: 13.5px; font-weight: 500;
  padding: 14px 15px !important; position: relative; transition: color .2s, background .2s;
}
.main-navbar .nav-link:hover,
.main-navbar .nav-link.active { color: var(--cyan) !important; background: rgba(0,200,232,.07); }
.main-navbar .nav-link::after {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 2px;
  background: var(--cyan); transform: scaleX(0); transition: transform .2s;
}
.main-navbar .nav-link:hover::after,
.main-navbar .nav-link.active::after { transform: scaleX(1); }
.main-navbar .dropdown-menu { background: var(--navy-mid); border: 1px solid var(--border); border-radius: 8px; min-width: 190px; padding: 4px 0; }
.main-navbar .dropdown-item { color: rgba(255,255,255,.78); font-size: 13px; padding: 9px 16px; }
.main-navbar .dropdown-item:hover { background: rgba(0,200,232,.1); color: var(--cyan); }
.navbar-toggler { border-color: var(--border); }
.navbar-toggler-icon { background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(255,255,255,0.8)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e"); }
.nav-highlight { color: var(--cyan) !important; font-weight: 600 !important; }
.nav-auth-wrap { flex-shrink: 0; }
.nav-login-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 13px;
  border-radius: 999px;
  border: 1px solid rgba(0,200,232,.28);
  background: rgba(0,200,232,.12);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  transition: background .2s, color .2s, border-color .2s, transform .2s;
  white-space: nowrap;
}
.nav-login-btn i {
  color: var(--cyan);
  font-size: 11px;
}
.nav-login-btn:hover {
  background: var(--cyan);
  border-color: var(--cyan);
  color: var(--navy);
  transform: translateY(-1px);
}
.nav-login-btn:hover i {
  color: var(--navy);
}

/* ── HERO ─────────────────────────────────────── */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, #0a2340 55%, #0d2d52 100%);
  position: relative; overflow: hidden; padding: 80px 0 65px; min-height: 430px; display: flex; align-items: center;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%2300c8e8' fill-opacity='0.035'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.hero-particles { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.hero-particle {
  position: absolute; background: var(--cyan); border-radius: 50%;
  animation: float-p linear infinite; opacity: 0;
  box-shadow: 0 0 8px 2px rgba(0,200,232,.6);
}
@keyframes float-p {
  0%   { transform: translateY(110%) scale(0);    opacity: 0; }
  6%   { opacity: .75; }
  92%  { opacity: .75; }
  100% { transform: translateY(-30px) scale(1.3); opacity: 0; }
}
.hero-content { position: relative; z-index: 1; }
.hero-live-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(0,200,232,.1); border: 1px solid rgba(0,200,232,.28);
  padding: 6px 14px; border-radius: 20px;
  color: var(--cyan); font-size: 12px; font-weight: 600; letter-spacing: .4px; margin-bottom: 22px;
}
.hero-live-dot { width: 7px; height: 7px; background: var(--cyan); border-radius: 50%; animation: blink-dot 1.5s ease-in-out infinite; }
@keyframes blink-dot { 0%,100%{ opacity:1; transform:scale(1); } 50%{ opacity:.2; transform:scale(.7); } }
.hero-title { font-size: clamp(28px,4.5vw,52px); font-weight: 800; color: #fff; line-height: 1.12; margin-bottom: 14px; }
.hero-title span { color: var(--cyan); }
.hero-sub { color: rgba(255,255,255,.64); font-size: 15.5px; line-height: 1.7; margin-bottom: 34px; max-width: 500px; min-height: 0; }
.hero-sub-text { white-space: normal; }
.hero-sub-cursor {
  display: inline-block;
  width: 2px;
  height: 1.1em;
  background: var(--cyan);
  margin-left: 2px;
  vertical-align: text-bottom;
  animation: blink-cursor .75s step-end infinite;
}
.hero-btns { display: flex; gap: 12px; flex-wrap: wrap; }
.btn-cyber {
  background: linear-gradient(135deg, #1ed7f2 0%, #00bede 100%); color: var(--navy); border: none; padding: 12px 28px;
  border-radius: 14px; font-weight: 700; font-size: 14px; text-decoration: none;
  display: inline-flex; align-items: center; gap: 8px; transition: transform .2s, box-shadow .2s, filter .2s; cursor: pointer;
  box-shadow: 0 12px 30px rgba(0,200,232,.2);
}
.btn-cyber:hover { transform: translateY(-3px); box-shadow: 0 16px 36px rgba(0,200,232,.3); color: var(--navy); filter: saturate(1.08); }
.btn-outline-cyber {
  background: rgba(255,255,255,.02); border: 1.5px solid rgba(0,200,232,.72); color: var(--cyan);
  padding: 12px 28px; border-radius: 14px; font-weight: 600; font-size: 14px;
  text-decoration: none; display: inline-flex; align-items: center; gap: 8px; transition: background .2s, transform .2s, box-shadow .2s;
}
.btn-outline-cyber:hover { background: rgba(0,200,232,.1); color: var(--cyan); transform: translateY(-3px); box-shadow: 0 12px 28px rgba(0,200,232,.16); }
.hero-visual { position: relative; z-index: 1; display: flex; justify-content: center; align-items: center; }
.shield-wrap { width: 210px; height: 210px; position: relative; display: flex; align-items: center; justify-content: center; }
.shield-ring {
  position: absolute; border: 1.5px solid rgba(0,200,232,.38); border-radius: 50%;
  animation: spin-ring linear infinite;
}
.shield-ring:nth-child(1) { width: 210px; height: 210px; animation-duration: 7s; }
.shield-ring:nth-child(2) { width: 165px; height: 165px; animation-duration: 4.5s; animation-direction: reverse; border-color: rgba(0,200,232,.28); }
.shield-ring:nth-child(3) { width: 120px; height: 120px; animation-duration: 3s; border-color: rgba(0,200,232,.22); }
.shield-ring::before { content: ''; position: absolute; top: -5px; left: 50%; transform: translateX(-50%); width: 9px; height: 9px; background: var(--cyan); border-radius: 50%; box-shadow: 0 0 8px 2px rgba(0,200,232,.7); }
@keyframes spin-ring { from{ transform: rotate(0deg); } to{ transform: rotate(360deg); } }
.shield-icon { font-size: 68px; color: var(--cyan); animation: glow-pulse 2.2s ease-in-out infinite; filter: drop-shadow(0 0 18px rgba(0,200,232,.55)); }
@keyframes glow-pulse {
  0%,100% { filter: drop-shadow(0 0 10px rgba(0,200,232,.4)) brightness(1);   }
  50%     { filter: drop-shadow(0 0 42px rgba(0,200,232,1))   brightness(1.3); }
}

/* ── HERO ENTRANCE ANIMATIONS ─────────────────── */
@keyframes hero-in-left {
  from { opacity: 0; transform: translateX(-34px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes hero-in-up {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes hero-in-right {
  from { opacity: 0; transform: translateX(34px) scale(0.9); }
  to   { opacity: 1; transform: translateX(0) scale(1); }
}
.hero-live-badge { animation: hero-in-up    .55s ease both .10s; }
.hero-title      { animation: hero-in-left  .65s ease both .28s; }
.hero-sub        { animation: hero-in-up    .65s ease both .48s; }
.hero-btns       { animation: hero-in-up    .65s ease both .68s; }
.hero-visual     { animation: hero-in-right .70s ease both .38s; }

/* ── HERO SCAN LINE ────────────────────────────── */
.hero::after {
  content: '';
  position: absolute;
  left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, rgba(0,200,232,.7) 25%, rgba(200,240,255,.9) 50%, rgba(0,200,232,.7) 75%, transparent 100%);
  box-shadow: 0 0 14px 4px rgba(0,200,232,.45);
  animation: hero-scan 7s linear infinite 1.5s;
  pointer-events: none;
  z-index: 2;
}
@keyframes hero-scan {
  0%   { top: 0%;   opacity: 0; }
  4%   { opacity: 1; }
  96%  { opacity: 1; }
  100% { top: 100%; opacity: 0; }
}

/* ── STATS BAR ────────────────────────────────── */
.stats-bar { background: var(--navy-mid); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 22px 0; }
.stat-num { font-size: 30px; font-weight: 800; color: var(--cyan); line-height: 1; display: block; }
.stat-lbl { font-size: 11px; color: rgba(255,255,255,.5); margin-top: 4px; display: block; font-weight: 500; letter-spacing: .3px; }
.stat-div { border-left: 1px solid var(--border); height: 38px; }

/* ── SECTIONS ─────────────────────────────────── */
section { padding: 60px 0; }
.sec-tag {
  display: inline-block;
  color: var(--cyan-dim);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  margin-bottom: 10px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(0,200,232,.07);
  border: 1px solid rgba(0,200,232,.12);
}
.sec-title { font-size: clamp(21px,3vw,30px); font-weight: 800; color: var(--navy); line-height: 1.2; margin: 0; }
.sec-line { width: 58px; height: 4px; background: linear-gradient(90deg, var(--cyan), #7aefff); border-radius: 999px; margin-top: 12px; box-shadow: 0 6px 16px rgba(0,200,232,.18); }

/* ── WIDGET ───────────────────────────────────── */
.widget { background: #fff; border-radius: 18px; border: 1px solid #e6edf5; overflow: hidden; margin-bottom: 22px; box-shadow: 0 18px 44px rgba(10,22,40,.08); }
.widget-hdr { background: linear-gradient(135deg, #13274a 0%, #183463 100%); padding: 14px 18px; display: flex; align-items: center; justify-content: space-between; }
.widget-hdr-title { color: #fff; font-size: 13.5px; font-weight: 700; margin: 0; display: flex; align-items: center; gap: 8px; }
.widget-hdr-title i { color: var(--cyan); }
.widget-all { color: var(--cyan); font-size: 11px; font-weight: 600; text-decoration: none; text-transform: uppercase; letter-spacing: .4px; }
.widget-all:hover { text-decoration: underline; color: var(--cyan); }
.w-item { display: flex; gap: 12px; align-items: flex-start; padding: 12px 18px; border-bottom: 1px solid #f0f4f9; transition: background .18s, transform .18s; }
.w-item:last-child { border-bottom: none; }
.w-item:hover { background: #f8fbff; transform: translateX(2px); }
.w-date { background: var(--navy-mid); color: var(--cyan); padding: 5px 8px; border-radius: 8px; font-size: 10.5px; font-weight: 700; text-align: center; min-width: 42px; flex-shrink: 0; line-height: 1.3; }
.w-title { font-size: 12.5px; font-weight: 600; color: var(--navy); margin: 0 0 3px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; line-height: 1.4; }
.w-title a { color: inherit; text-decoration: none; }
.w-title a:hover { color: var(--cyan-dim); }
.w-text { font-size: 11px; color: #888; margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* ── RESEARCH CARDS ───────────────────────────── */
.research-card { background: var(--gray-light); border: 1.5px solid transparent; border-radius: 16px; padding: 30px 22px; text-align: center; transition: all .28s; height: 100%; }
.research-card:hover { border-color: var(--cyan); background: #fff; transform: translateY(-4px); box-shadow: 0 14px 42px rgba(0,200,232,.1); }
.rc-icon { width: 70px; height: 70px; background: linear-gradient(135deg, var(--navy-mid), var(--navy-light)); border-radius: 18px; display: flex; align-items: center; justify-content: center; margin: 0 auto 18px; font-size: 28px; color: var(--cyan); transition: all .28s; }
.research-card:hover .rc-icon { background: var(--cyan); color: var(--navy); }
.research-card h5 { font-size: 14.5px; font-weight: 700; color: var(--navy); margin-bottom: 10px; }
.research-card p { font-size: 12.5px; color: #666; line-height: 1.65; margin: 0; }

/* ── TEAM ─────────────────────────────────────── */
.team-bg { background: var(--gray-light); }
.team-card { background: #fff; border-radius: 18px; overflow: hidden; border: 1px solid #e6edf5; transition: all .28s; text-align: center; height: 100%; box-shadow: 0 14px 36px rgba(10,22,40,.06); }
.team-card:hover { transform: translateY(-5px); box-shadow: 0 18px 42px rgba(10,22,40,.12); }
.tc-avatar { width: 100%; height: 195px; background: linear-gradient(155deg, var(--navy-mid), var(--navy-light)); display: flex; align-items: center; justify-content: center; position: relative; }
.tc-avatar-icon { width: 78px; height: 78px; border-radius: 50%; background: rgba(0,200,232,.13); border: 2px solid rgba(0,200,232,.3); display: flex; align-items: center; justify-content: center; font-size: 30px; color: var(--cyan); }
.tc-role { position: absolute; bottom: 12px; left: 50%; transform: translateX(-50%); background: var(--cyan); color: var(--navy); padding: 3px 12px; border-radius: 10px; font-size: 9.5px; font-weight: 700; white-space: nowrap; }
.tc-body { padding: 18px; }
.tc-name { font-size: 14px; font-weight: 700; color: var(--navy); margin-bottom: 4px; }
.tc-exp { font-size: 11.5px; color: #888; margin-bottom: 12px; }
.tc-links { display: flex; justify-content: center; gap: 8px; }
.tc-link { width: 32px; height: 32px; border-radius: 8px; background: var(--gray-light); display: flex; align-items: center; justify-content: center; color: var(--navy-mid); font-size: 13px; text-decoration: none; transition: all .2s; }
.tc-link:hover { background: var(--navy-mid); color: var(--cyan); }

/* ── PUBLICATIONS ─────────────────────────────── */
.pub-item { padding: 18px 22px; border: 1px solid #e6edf5; border-radius: 12px; margin-bottom: 12px; background: #fff; transition: all .2s; display: flex; gap: 14px; align-items: flex-start; }
.pub-item:hover { border-color: var(--cyan); box-shadow: 0 4px 18px rgba(0,200,232,.08); }
.pub-ico { width: 42px; height: 42px; flex-shrink: 0; background: linear-gradient(135deg, var(--navy-mid), var(--navy-light)); border-radius: 10px; display: flex; align-items: center; justify-content: center; color: var(--cyan); font-size: 17px; }
.pub-title { font-size: 13.5px; font-weight: 700; color: var(--navy); margin-bottom: 3px; }
.pub-authors { font-size: 11.5px; color: #888; margin-bottom: 6px; }
.pub-meta { display: flex; gap: 8px; flex-wrap: wrap; }
.pub-badge { font-size: 10.5px; padding: 2px 9px; border-radius: 5px; font-weight: 600; }
.badge-j { background: #e8f5e9; color: #2e7d32; }
.badge-c { background: #e3f2fd; color: #1565c0; }
.badge-y { background: #fff3e0; color: #e65100; }

/* ── NEWS SECTION ─────────────────────────────── */
.news-bg { background: var(--gray-light); }
.news-card { background: #fff; border-radius: 18px; overflow: hidden; border: 1px solid #e6edf5; transition: transform .22s, box-shadow .22s, border-color .22s; height: 100%; position: relative; box-shadow: 0 14px 36px rgba(10,22,40,.06); }
.news-card:hover { transform: translateY(-5px); box-shadow: 0 18px 44px rgba(10,22,40,.12); border-color: rgba(0,200,232,.18); }
.news-card-img { height: 175px; display: flex; align-items: center; justify-content: center; position: relative; overflow: hidden; }
/* icon styling delegated to .media-placeholder i */
.news-date { position: absolute; top: 139px; left: 12px; background: var(--cyan); color: var(--navy); padding: 3px 10px; border-radius: 6px; font-size: 11px; font-weight: 700; z-index: 2; }
.nc-body { padding: 18px; }
.nc-tag { font-size: 10.5px; font-weight: 700; color: var(--cyan-dim); text-transform: uppercase; letter-spacing: .5px; margin-bottom: 6px; }
.nc-title { font-size: 14px; font-weight: 700; color: var(--navy); line-height: 1.45; margin-bottom: 8px; }
.nc-text { font-size: 12.5px; color: #666; line-height: 1.55; margin: 0; }
.news-overview-card {
  position: relative;
  overflow: hidden;
  margin-bottom: 28px;
  padding: 28px 30px;
  border-radius: 24px;
  border: 1px solid rgba(0,200,232,.16);
  background:
    radial-gradient(circle at 86% 18%, rgba(0,200,232,.18) 0%, transparent 24%),
    radial-gradient(circle at 12% 88%, rgba(12,84,138,.16) 0%, transparent 28%),
    linear-gradient(140deg, #081422 0%, #0b223d 56%, #0d3153 100%);
  box-shadow: 0 18px 46px rgba(10,22,40,.14);
}
.news-overview-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 30px 30px;
  opacity: .26;
  pointer-events: none;
}
.news-overview-card > * {
  position: relative;
  z-index: 1;
}
.news-overview-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(0,200,232,.12);
  border: 1px solid rgba(0,200,232,.18);
  color: rgba(170,236,255,.92);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.1px;
  text-transform: uppercase;
}
.news-overview-card h2 {
  max-width: 780px;
  margin: 0 0 10px;
  color: #fff;
  font-size: clamp(24px, 3.2vw, 34px);
  font-weight: 800;
  line-height: 1.18;
}
.news-overview-card p {
  max-width: 700px;
  margin: 0;
  color: rgba(226,244,255,.72);
  font-size: 14px;
  line-height: 1.75;
}
.news-page-featured {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  min-height: 320px;
}
.news-page-featured .news-card-img {
  height: 100%;
  min-height: 100%;
}
.news-page-featured .nc-body {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 28px;
}
.news-page-featured .nc-title {
  margin-top: 14px;
  margin-bottom: 14px;
  font-size: clamp(22px, 2.2vw, 30px);
  line-height: 1.2;
}
.news-page-featured .nc-text {
  font-size: 14px;
  line-height: 1.72;
}
.news-page-card .news-card-img {
  height: 190px;
}
.news-page-card .news-date {
  top: 154px;
}
.news-page-card .nc-body {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 218px;
}
.news-page-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 12px;
  color: #6b7a8a;
}
.news-page-meta i {
  color: var(--cyan-dim);
  margin-right: 5px;
}
.news-page-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 18px;
}
.news-page-actions .btn {
  background: var(--navy);
  color: var(--cyan);
  font-weight: 700;
  border-radius: 10px;
  padding: 7px 16px;
  font-size: 12px;
  border: none;
}
.news-page-actions .btn:hover {
  background: var(--navy-mid);
  color: #fff;
}
.news-page-summary {
  color: #7b8896;
  font-size: 12px;
  line-height: 1.6;
}

/* ── CAROUSEL ─────────────────────────────────── */
/* Base slide — CSS classes replace all inline styles */
.carousel-slide {
  height: 300px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  cursor: pointer;
}
/* TÜBİTAK / AI theme */
.slide-tubitak {
  background:
    radial-gradient(ellipse 55% 80% at 15% 44%, rgba(0,200,232,.18) 0%, transparent 54%),
    radial-gradient(circle at 88% 10%, rgba(0,130,200,.14) 0%, transparent 36%),
    linear-gradient(145deg, #071525 0%, #0b2542 55%, #0d3060 100%);
}
/* IEEE / Publication theme */
.slide-ieee {
  background:
    radial-gradient(ellipse 50% 70% at 78% 55%, rgba(110,50,220,.18) 0%, transparent 48%),
    radial-gradient(circle at 12% 82%, rgba(0,200,232,.1) 0%, transparent 33%),
    linear-gradient(145deg, #0c0c24 0%, #14083c 55%, #0f1b58 100%);
}
/* Summit / Security theme */
.slide-summit {
  background:
    radial-gradient(ellipse 55% 72% at 22% 50%, rgba(200,110,0,.14) 0%, transparent 48%),
    radial-gradient(circle at 83% 18%, rgba(0,200,232,.12) 0%, transparent 33%),
    linear-gradient(145deg, #0d0e1e 0%, #161030 55%, #0f1a3a 100%);
}
/* Dot matrix overlay — fades toward center */
.carousel-slide::before {
  content: '';
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(0,200,232,.16) 1px, transparent 1px);
  background-size: 26px 26px;
  -webkit-mask-image: radial-gradient(ellipse 80% 80% at 30% 50%, transparent 20%, rgba(0,0,0,.5) 100%);
          mask-image: radial-gradient(ellipse 80% 80% at 30% 50%, transparent 20%, rgba(0,0,0,.5) 100%);
  z-index: 0;
  pointer-events: none;
}
/* Large watermark icon (right side) */
.slide-deco-icon {
  position: absolute;
  right: 4%;
  top: 50%;
  transform: translateY(-50%);
  font-size: 170px;
  line-height: 1;
  color: var(--cyan);
  opacity: .055;
  z-index: 0;
  pointer-events: none;
  user-select: none;
}
.carousel-slide-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .28;
  z-index: 0;
}
/* Featured icon badge */
.slide-center-badge {
  position: absolute;
  left: 50%;
  top: 38%;
  transform: translate(-50%, -50%);
  width: 70px; height: 70px;
  background: rgba(0,200,232,.1);
  border: 1.5px solid rgba(0,200,232,.32);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 0 13px rgba(0,200,232,.05), 0 0 42px rgba(0,200,232,.14);
  z-index: 1;
}
.slide-center-badge i { color: var(--cyan); font-size: 29px; }
/* Caption — enough bottom padding so indicators don't overlap text */
.carousel-caption-over {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 44px 18px 40px;
  background: linear-gradient(transparent, rgba(7,18,38,.94));
  border-radius: 0 0 12px 12px;
  z-index: 2;
}
.carousel-caption-over h5 { font-size: 15px; font-weight: 700; color: #fff; margin-bottom: 5px; }
.carousel-caption-over p  { font-size: 12px; color: rgba(255,255,255,.72); margin: 0; }
/* Indicator pills */
.main-carousel .carousel-indicators {
  bottom: 13px;
  margin-bottom: 0;
  z-index: 3;
  gap: 4px;
}
.main-carousel .carousel-indicators button {
  width: 8px; height: 8px;
  background: rgba(255,255,255,.38);
  border: none;
  border-top: none;
  border-bottom: none;
  border-radius: 50%;
  opacity: 1;
  padding: 0;
  transition: width .25s, border-radius .25s, background .25s;
}
.main-carousel .carousel-indicators button.active {
  width: 22px;
  border-radius: 4px;
  background: var(--cyan);
}
/* Nav buttons — fixed above caption zone */
.carousel-control-prev, .carousel-control-next {
  width: 34px; height: 34px;
  background: rgba(0,200,232,.82);
  border-radius: 50%;
  top: 40%;
  transform: translateY(-50%);
  opacity: 1;
}
.carousel-control-prev { left: 10px; }
.carousel-control-next { right: 10px; }

/* ── PROJECTS ─────────────────────────────────── */
.proj-bg { background: var(--gray-light); }
.proj-card { background: #fff; border-radius: 18px; border: 1px solid #e6edf5; padding: 22px; height: 100%; transition: all .2s; box-shadow: 0 12px 32px rgba(10,22,40,.06); }
.proj-card:hover { border-color: var(--cyan); box-shadow: 0 18px 40px rgba(0,200,232,.12); transform: translateY(-4px); }
.proj-status { font-size: 11px; font-weight: 700; padding: 3px 10px; border-radius: 6px; display: inline-block; margin-bottom: 12px; }
.s-active    { background: #e8f5e9; color: #2e7d32; }
.s-done      { background: #f3e5f5; color: #6a1b9a; }
.s-plan      { background: #e3f2fd; color: #1565c0; }
.proj-title  { font-size: 14.5px; font-weight: 700; color: var(--navy); margin-bottom: 8px; }
.proj-desc   { font-size: 12.5px; color: #666; line-height: 1.6; margin-bottom: 14px; }
.proj-meta   { display: flex; gap: 16px; font-size: 11.5px; color: #888; flex-wrap: wrap; }
.proj-meta i { color: var(--cyan-dim); margin-right: 3px; }
.proj-meta a { color: var(--cyan-dim); text-decoration: none; }
.proj-meta a:hover { color: var(--cyan); }
.proj-prog-lbl { font-size: 11px; color: #888; margin-bottom: 4px; display: flex; justify-content: space-between; margin-top: 12px; }
.progress { height: 6px; border-radius: 3px; background: #edf2f7; }
.progress-bar { background: linear-gradient(90deg, var(--cyan-dim), var(--cyan)); border-radius: 3px; }
.progress-bar-done   { background: linear-gradient(90deg, #2e7d32, #43a047); }
.progress-bar-plan   { background: linear-gradient(90deg, #1565c0, #1976d2); }
.proj-img    { border-radius: 8px; overflow: hidden; margin-bottom: 14px; }
.proj-img.content-cover { height: 160px; display: flex; align-items: center; justify-content: center; }
.proj-img img { width: 100%; height: 160px; object-fit: cover; }

.content-cover {
  position: relative;
  overflow: hidden;
  background: #eef5fb;
}
.content-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.media-placeholder {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  padding: 18px;
  background: linear-gradient(145deg, #081423 0%, #0b223f 58%, #0d3153 100%);
}
.media-placeholder--news {
  background:
    radial-gradient(circle at 82% 14%, rgba(31,196,240,.18) 0%, transparent 28%),
    radial-gradient(circle at 14% 86%, rgba(7,111,170,.16) 0%, transparent 26%),
    linear-gradient(145deg, #071424 0%, #0b223d 55%, #0d3354 100%);
}
.media-placeholder--project {
  background:
    radial-gradient(circle at 80% 16%, rgba(0,200,232,.14) 0%, transparent 26%),
    radial-gradient(circle at 22% 76%, rgba(91,78,255,.12) 0%, transparent 24%),
    linear-gradient(145deg, #081220 0%, #102447 60%, #102f61 100%);
}
.media-placeholder::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,.02), rgba(0,0,0,.16));
  z-index: 0;
  pointer-events: none;
}
.media-grid {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(112,209,255,.18) 1px, transparent 1px);
  background-size: 24px 24px;
  opacity: .7;
  z-index: 0;
  -webkit-mask-image: radial-gradient(ellipse 90% 80% at 50% 50%, transparent 20%, rgba(0,0,0,.65) 100%);
          mask-image: radial-gradient(ellipse 90% 80% at 50% 50%, transparent 20%, rgba(0,0,0,.65) 100%);
}
.media-orbit,
.media-node,
.media-panel,
.media-beam {
  transition: transform .28s ease, opacity .28s ease, box-shadow .28s ease;
}
.media-orbit {
  position: absolute;
  border: 1px solid rgba(84,214,255,.22);
  border-radius: 50%;
  z-index: 1;
}
.media-orbit-a {
  width: 190px;
  height: 190px;
  right: -28px;
  top: -12px;
}
.media-orbit-b {
  width: 110px;
  height: 110px;
  left: 22px;
  bottom: 18px;
  opacity: .42;
}
.media-node {
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #73ecff;
  box-shadow: 0 0 0 5px rgba(0,200,232,.08), 0 0 18px rgba(0,200,232,.45);
  z-index: 1;
}
.media-node-a { right: 48px; top: 36px; }
.media-node-b { right: 78px; bottom: 38px; width: 8px; height: 8px; }
.media-node-c { left: 48px; bottom: 46px; width: 9px; height: 9px; }
.media-panel {
  position: relative;
  z-index: 2;
  width: min(186px, 78%);
  padding: 14px 15px 13px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(10,24,44,.84) 0%, rgba(11,28,54,.64) 100%);
  border: 1px solid rgba(111,227,255,.18);
  box-shadow: 0 18px 40px rgba(4,12,24,.22);
  backdrop-filter: blur(10px);
}
.media-panel-icon {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(30,224,255,.22) 0%, rgba(0,133,185,.18) 100%);
  border: 1px solid rgba(119,225,255,.22);
  margin-bottom: 12px;
}
.media-panel-icon i {
  color: #78efff !important;
  font-size: 20px !important;
  display: block !important;
  width: auto;
  height: auto;
  background: none;
  border: none;
  box-shadow: none;
  opacity: 1 !important;
}
.media-panel-kicker {
  display: block;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: rgba(134,230,255,.8);
  margin-bottom: 6px;
}
.media-panel-title {
  display: block;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 5px;
}
.media-panel-meta {
  display: block;
  color: rgba(215,240,255,.68);
  font-size: 11px;
  line-height: 1.3;
}
.media-beam {
  position: absolute;
  right: 7%;
  bottom: 22%;
  width: 48%;
  height: 2px;
  background: linear-gradient(90deg, rgba(0,200,232,0), rgba(0,200,232,.58), rgba(255,255,255,.12));
  box-shadow: 0 0 16px rgba(0,200,232,.28);
  transform: rotate(-16deg);
  transform-origin: right center;
  z-index: 1;
  opacity: .85;
}
.media-placeholder--project .media-beam {
  width: 42%;
  right: 10%;
  bottom: 18%;
  transform: rotate(-10deg);
}
.media-placeholder--project .media-panel-icon {
  background: linear-gradient(135deg, rgba(132,122,255,.16) 0%, rgba(0,200,232,.18) 100%);
}
.news-card:hover .media-panel,
.proj-card:hover .media-panel {
  transform: translateY(-4px);
  box-shadow: 0 24px 48px rgba(4,12,24,.28);
}
.news-card:hover .media-beam,
.proj-card:hover .media-beam {
  transform: rotate(-12deg) scaleX(1.06);
}
.proj-card:hover .media-placeholder--project .media-beam {
  transform: rotate(-7deg) scaleX(1.06);
}
.news-card:hover .media-orbit-a,
.proj-card:hover .media-orbit-a {
  transform: scale(1.04);
}
.content-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(118px, 1fr));
  gap: 8px;
  margin-bottom: 14px;
}
.content-gallery a {
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: 8px;
  border: 1px solid #e6edf5;
  background: #eef5fb;
}
.content-gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .2s;
}
.content-gallery a:hover img {
  transform: scale(1.035);
}
.content-gallery-wide {
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}
.event-gallery {
  margin-bottom: 16px;
}

/* ── ANNOUNCEMENTS PAGE ──────────────────────── */
.announcement-card {
  background: #fff; border: 1px solid #e6edf5; border-radius: 12px;
  padding: 24px; margin-bottom: 16px; transition: all .2s;
}
.announcement-card:hover { border-color: var(--cyan); box-shadow: 0 4px 18px rgba(0,200,232,.08); }
.ann-date { font-size: 12px; color: var(--cyan-dim); font-weight: 600; margin-bottom: 8px; }
.ann-title { font-size: 17px; font-weight: 700; color: var(--navy); margin-bottom: 10px; }
.ann-content { font-size: 14px; color: #555; line-height: 1.7; margin: 0; }

/* ── CONTACT ──────────────────────────────────── */
.contact-bg { background: var(--gray-light); }

/* ── PARTNERS ─────────────────────────────────── */
.partner-pill {
  display: inline-flex; align-items: center; gap: 7px;
  height: 48px; padding: 0 18px; border-radius: 8px;
  background: var(--gray-light); border: 1px solid #e6edf5;
  font-size: 13px; font-weight: 600; color: var(--navy-mid);
  filter: grayscale(.8); opacity: .55; transition: all .3s;
  text-decoration: none;
}
.partner-pill:hover { filter: none; opacity: 1; border-color: var(--cyan); color: var(--navy); }
.partner-pill i { color: var(--cyan-dim); font-size: 15px; }

/* ── FOOTER ───────────────────────────────────── */
.site-footer { background: var(--navy); color: rgba(255,255,255,.58); padding: 50px 0 0; }
.ft-brand-name { font-size: 18px; font-weight: 800; color: #fff; }
.ft-brand-sub  { font-size: 11.5px; color: rgba(255,255,255,.45); }
.ft-about { font-size: 13px; line-height: 1.75; max-width: 300px; color: rgba(255,255,255,.55); margin-top: 12px; }
.ft-section-title { font-size: 12.5px; font-weight: 700; color: #fff; margin-bottom: 14px; padding-bottom: 8px; border-bottom: 1px solid var(--border); }
.ft-links { list-style: none; padding: 0; margin: 0; }
.ft-links li { margin-bottom: 8px; }
.ft-links a { color: rgba(255,255,255,.52); font-size: 13px; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; transition: color .2s; }
.ft-links a i { color: var(--cyan); font-size: 10px; }
.ft-links a:hover { color: var(--cyan); }
.widget .ft-links a,
#lab-info .ft-links a {
  color: var(--navy-mid);
}
.widget .ft-links a:hover,
#lab-info .ft-links a:hover {
  color: var(--cyan-dim);
}
#lab-info .ft-contact-row {
  color: var(--navy-mid);
}
#lab-info .ft-contact-row a {
  color: var(--cyan-dim);
  font-weight: 700;
}
#lab-info .lab-links {
  margin-top: 14px;
}
#lab-info .lab-map-card {
  margin-top: 18px;
  border: 1px solid #e6edf5;
  border-radius: 14px;
  overflow: hidden;
  background: #f7fbff;
  box-shadow: 0 10px 24px rgba(10,22,40,.06);
}
#lab-info .lab-map-frame {
  width: 100%;
  height: 220px;
  border: 0;
  display: block;
}
#lab-info .lab-map-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 14px;
  color: var(--navy-mid);
  font-weight: 700;
  text-decoration: none;
  background: #fff;
  border-top: 1px solid #e6edf5;
}
#lab-info .lab-map-link:hover {
  color: var(--cyan-dim);
  background: #f9fcff;
}
.ft-contact-row { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 10px; font-size: 13px; color: rgba(255,255,255,.58); }
.ft-contact-row i { color: var(--cyan); flex-shrink: 0; margin-top: 2px; }
.ft-contact-row a { color: inherit; text-decoration: none; }
.ft-bottom { margin-top: 38px; border-top: 1px solid var(--border); padding: 16px 0; font-size: 12px; }
.ft-cyan { color: var(--cyan); }
.social-row { display: flex; gap: 8px; margin-top: 14px; }
.soc-ico { width: 36px; height: 36px; border-radius: 8px; background: rgba(255,255,255,.07); border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,.6); font-size: 14px; text-decoration: none; transition: all .2s; }
.soc-ico:hover { background: var(--cyan); color: var(--navy); border-color: var(--cyan); }

/* ── SCROLL ANIMATIONS ────────────────────────── */
.fade-up { opacity: 0; transform: translateY(22px); transition: opacity .55s ease, transform .55s ease; }
.fade-up.visible { opacity: 1; transform: translateY(0); }
.fade-up:nth-child(2) { transition-delay: .08s; }
.fade-up:nth-child(3) { transition-delay: .16s; }
.fade-up:nth-child(4) { transition-delay: .24s; }
.fade-up:nth-child(5) { transition-delay: .32s; }
.fade-up:nth-child(6) { transition-delay: .40s; }
/* Fade variants */
.fade-left  { opacity: 0; transform: translateX(-22px); transition: opacity .55s ease, transform .55s ease; }
.fade-left.visible  { opacity: 1; transform: translateX(0); }
.fade-right { opacity: 0; transform: translateX(22px);  transition: opacity .55s ease, transform .55s ease; }
.fade-right.visible { opacity: 1; transform: translateX(0); }
.zoom-in    { opacity: 0; transform: scale(0.88);        transition: opacity .55s ease, transform .55s ease; }
.zoom-in.visible    { opacity: 1; transform: scale(1); }
@keyframes blink-cursor { 50% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .fade-up, .fade-left, .fade-right, .zoom-in { transition-duration: .32s; }
  .hero-live-dot { animation-duration: 2.2s; }
  .hero-live-badge, .hero-title, .hero-sub, .hero-btns, .hero-visual { animation-duration: .45s; }
  .shield-ring:nth-child(1) { animation-duration: 10s; }
  .shield-ring:nth-child(2) { animation-duration: 7s; }
  .shield-ring:nth-child(3) { animation-duration: 5s; }
  .hero::after { opacity: .75; }
}

/* ── BACK TO TOP ──────────────────────────────── */
#btt { position: fixed; bottom: 24px; right: 24px; width: 44px; height: 44px; background: var(--cyan); color: var(--navy); border: none; border-radius: 12px; font-size: 17px; cursor: pointer; z-index: 999; display: none; align-items: center; justify-content: center; box-shadow: 0 4px 18px rgba(0,200,232,.4); transition: transform .2s; }
#btt:hover { transform: translateY(-2px); }
#btt.show { display: flex; }

/* ── PAGE HEADER ──────────────────────────────── */
.page-header {
  background: linear-gradient(135deg, var(--navy) 0%, #0d2d52 100%);
  padding: 50px 0 40px; text-align: center;
}
.page-header h1 { color: #fff; font-size: 28px; font-weight: 800; margin-bottom: 8px; }
.page-header p { color: rgba(255,255,255,.55); font-size: 14px; margin: 0; }

/* ── RESPONSIVE ───────────────────────────────── */

/* ≤ 991 px — Tablet */
@media (max-width: 991px) {
  .main-navbar .navbar-brand { display: block; }
  .main-navbar .navbar-collapse {
    margin-top: 10px;
    padding: 8px 0 12px;
    border-top: 1px solid var(--border);
    border-radius: 0 0 14px 14px;
    background: linear-gradient(180deg, rgba(10,22,40,.96) 0%, rgba(10,22,40,.985) 100%);
  }
  .main-navbar .nav-link { padding: 11px 15px !important; }
  .nav-auth-wrap { padding: 8px 15px 14px; }
  .nav-login-btn { justify-content: center; }
  .shield-wrap { width: 170px; height: 170px; }
  .shield-ring:nth-child(1) { width: 170px; height: 170px; }
  .shield-ring:nth-child(2) { width: 136px; height: 136px; }
  .shield-ring:nth-child(3) { width: 102px; height: 102px; }
  .shield-icon { font-size: 56px; }
  .news-page-featured { grid-template-columns: 1fr; }
  .news-page-featured .news-card-img { min-height: 240px; }
}

/* ≤ 767 px — Mobile */
@media (max-width: 767px) {
  .top-bar { padding: 4px 0; font-size: 11px; }
  .top-bar-inner { gap: 8px; }
  .top-bar-links { gap: 5px; }
  .top-bar-links a,
  .top-bar-contact a {
    padding: 4px 8px;
    border-radius: 999px;
    background: rgba(255,255,255,.06);
  }
  .top-bar-mail-label { display: none; }
  .top-bar-contact a {
    width: 30px;
    height: 30px;
    justify-content: center;
    padding: 0;
  }
  .main-navbar .container { padding-left: 14px; padding-right: 14px; }
  .main-navbar .nav-link { padding: 10px 15px !important; font-size: 13px; }
  .nav-login-btn { padding: 8px 12px; font-size: 11.5px; }
  /* Hero */
  .hero { padding: 40px 0 32px; }
  .hero-title { font-size: clamp(24px, 7vw, 38px); }
  .hero-sub { font-size: 13.5px; }
  .hero-visual { margin-top: 28px; }
  .hero-btns .btn-cyber,
  .hero-btns .btn-outline-cyber { padding: 10px 18px; font-size: 13px; }
  .shield-wrap { width: 136px; height: 136px; }
  .shield-ring:nth-child(1) { width: 136px; height: 136px; }
  .shield-ring:nth-child(2) { width: 110px; height: 110px; }
  .shield-ring:nth-child(3) { width: 84px; height: 84px; }
  .shield-icon { font-size: 44px; }
  /* Stats */
  .stats-bar .row { overflow-x: auto; flex-wrap: nowrap; gap: 0; }
  .stats-bar .col { min-width: 80px; }
  .stat-div { display: none; }
  .stat-num { font-size: 24px; }
  /* Carousel */
  .carousel-slide,
  .main-carousel .carousel-item > div { height: 230px; }
  .slide-deco-icon { font-size: 120px; }
  .slide-center-badge { width: 56px; height: 56px; }
  .slide-center-badge i { font-size: 22px; }
  .carousel-caption-over { padding: 36px 14px 36px; }
  .carousel-caption-over h5 { font-size: 13.5px; }
  .carousel-caption-over p { font-size: 11.5px; }
  /* Sections */
  section { padding: 42px 0; }
  .sec-title { font-size: clamp(18px, 5.5vw, 26px); }
  .page-header { padding: 36px 0 28px; }
  .page-header h1 { font-size: 22px; }
  /* News */
  .news-card-img { height: 145px; }
  .news-date { top: 109px; }
  .news-overview-card { padding: 22px 20px; }
  .news-page-featured .nc-body { padding: 22px 20px; }
  .news-page-card .news-card-img { height: 172px; }
  .news-page-card .news-date { top: 136px; }
  .proj-card { padding: 18px; }
  .proj-meta { gap: 10px; }
  .announcement-card { padding: 18px; }
  .pub-item { padding: 16px 18px; }
  .content-gallery,
  .content-gallery-wide { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  /* Team */
  .tc-avatar { height: 155px; }
  .tc-avatar-icon { width: 62px; height: 62px; font-size: 24px; }
  /* Publications */
  .pub-item { flex-direction: column; gap: 10px; }
  /* Footer */
  .site-footer { padding: 36px 0 0; }
  .ft-about { max-width: 100%; }
  /* Back to top */
  #btt { bottom: 16px; right: 14px; width: 40px; height: 40px; font-size: 15px; }
}

/* ≤ 575 px — Small mobile */
@media (max-width: 575px) {
  .top-bar-inner { gap: 6px; }
  .top-bar-links a { padding: 4px 7px; font-size: 10.5px; }
  .top-bar-contact a { width: 28px; height: 28px; }
  .nav-login-btn { width: 100%; }
  .hero-btns { flex-direction: column; gap: 10px; }
  .hero-btns .btn-cyber,
  .hero-btns .btn-outline-cyber { width: 100%; justify-content: center; }
  .hero-live-badge { font-size: 11px; padding: 5px 11px; }
  .carousel-slide,
  .main-carousel .carousel-item > div { height: 200px; }
  .slide-center-badge { display: none; }
  .slide-deco-icon { font-size: 95px; opacity: .05; }
  .news-card-img { height: 125px; }
  .news-date { top: 89px; }
  .news-overview-card h2 { font-size: 22px; }
  .news-page-actions .btn { width: 100%; }
  .news-page-card .news-card-img { height: 150px; }
  .news-page-card .news-date { top: 114px; }
  .content-gallery,
  .content-gallery-wide { gap: 6px; }
  .tc-avatar { height: 130px; }
  .media-panel { width: min(154px, 76%); padding: 12px 13px 11px; }
  .media-panel-icon { width: 40px; height: 40px; border-radius: 12px; margin-bottom: 10px; }
  .media-panel-icon i { font-size: 17px !important; }
  .media-panel-title { font-size: 13px; }
  .media-panel-meta { font-size: 10px; }
  .media-orbit-a { width: 150px; height: 150px; right: -18px; top: -8px; }
  .media-orbit-b { width: 90px; height: 90px; left: 18px; bottom: 14px; }
  #lab-info .lab-map-frame { height: 190px; }
  /* Admin */
  .admin-form-grid { grid-template-columns: 1fr; }
  .admin-tabs { grid-template-columns: repeat(2, 1fr); }
}

/* --- ADMIN / LOGIN ------------------------------------------------------ */
.login-page {
  min-height: 100vh;
  background: linear-gradient(135deg, var(--navy) 0%, #0d2d52 100%);
}
.login-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}
.login-panel {
  width: min(100%, 420px);
  background: #fff;
  border: 1px solid rgba(0,200,232,.22);
  border-radius: 8px;
  padding: 28px;
  box-shadow: 0 24px 80px rgba(0,0,0,.28);
}
.login-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--navy);
  text-decoration: none;
  margin-bottom: 28px;
}
.login-brand span {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: var(--cyan);
  color: var(--navy);
  display: grid;
  place-items: center;
  font-weight: 800;
}
.login-copy p {
  color: var(--cyan-dim);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  margin: 0 0 6px;
}
.login-copy h1 {
  color: var(--navy);
  font-size: 24px;
  font-weight: 800;
  margin: 0 0 24px;
}
.login-form {
  display: grid;
  gap: 14px;
}
.login-form label,
.admin-field {
  display: grid;
  gap: 6px;
}
.login-form label span,
.admin-field span,
.admin-check span {
  color: var(--navy);
  font-size: 12px;
  font-weight: 700;
}
.login-form input,
.admin-field input,
.admin-field textarea,
.admin-field select {
  width: 100%;
  border: 1.5px solid #e0e8f1;
  border-radius: 8px;
  padding: 10px 12px;
  font: inherit;
  font-size: 13px;
  outline: none;
}
.login-form input:focus,
.admin-field input:focus,
.admin-field textarea:focus,
.admin-field select:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(0,200,232,.12);
}
.login-message,
.admin-feedback {
  min-height: 20px;
  color: #c62828;
  font-size: 12.5px;
  font-weight: 600;
}
.login-message.success,
.admin-feedback.success {
  color: #2e7d32;
}
.admin-feedback.info {
  color: var(--cyan);
}

/* ── IMAGE UPLOAD ZONE ──────────────────────────── */
.img-upload-zone {
  border: 1.5px dashed rgba(0,200,232,.32);
  border-radius: 10px;
  padding: 12px 14px;
  background: rgba(0,200,232,.03);
}
.img-upload-zone small {
  display: block;
  margin-top: 9px;
  color: var(--gray-mid);
  font-size: 11px;
}
.img-previews {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
  min-height: 0;
}
.img-preview-item {
  position: relative;
  width: 82px;
  height: 62px;
  border-radius: 7px;
  overflow: hidden;
  border: 1.5px solid rgba(0,200,232,.2);
  background: #0a1628;
}
.img-preview-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.img-preview-remove {
  position: absolute;
  top: 3px; right: 3px;
  width: 18px; height: 18px;
  background: rgba(0,0,0,.68);
  color: #fff;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  font-size: 13px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: background .15s;
}
.img-preview-remove:hover { background: rgba(220,53,69,.85); }
.img-pick-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 14px;
  background: rgba(0,200,232,.1);
  border: 1px solid rgba(0,200,232,.3);
  border-radius: 7px;
  color: var(--cyan);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: background .15s;
}
.img-pick-btn:hover { background: rgba(0,200,232,.18); }
.img-pick-btn input[type="file"] { display: none; }
.admin-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.admin-session {
  display: flex;
  align-items: center;
  gap: 12px;
  color: rgba(255,255,255,.75);
  font-size: 13px;
  font-weight: 700;
}
.admin-layout {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 0;
  min-height: 640px;
  background: var(--gray-light);
}
.admin-sidebar {
  background: #fff;
  border-right: 1px solid #e6edf5;
  padding: 18px 14px;
}
.admin-tabs {
  display: grid;
  gap: 6px;
  position: sticky;
  top: 78px;
}
.admin-tab {
  width: 100%;
  border: 0;
  background: transparent;
  color: var(--navy-mid);
  border-radius: 8px;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 700;
  text-align: left;
}
.admin-tab i {
  color: var(--cyan-dim);
  width: 18px;
  text-align: center;
}
.admin-tab:hover,
.admin-tab.active {
  background: var(--navy-mid);
  color: #fff;
}
.admin-tab:hover i,
.admin-tab.active i {
  color: var(--cyan);
}
.admin-content {
  min-width: 0;
  padding: 24px;
}
.admin-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}
.admin-toolbar h2 {
  color: var(--navy);
  font-size: 22px;
  font-weight: 800;
  margin: 0;
}
.admin-toolbar p {
  color: #66788a;
  font-size: 12.5px;
  margin: 3px 0 0;
}
.admin-toolbar-actions,
.admin-record-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.icon-btn {
  width: 38px;
  height: 38px;
  border: 1px solid #dce6f0;
  background: #fff;
  color: var(--navy-mid);
  border-radius: 8px;
  display: inline-grid;
  place-items: center;
  cursor: pointer;
}
.icon-btn:hover {
  border-color: var(--cyan);
  color: var(--cyan-dim);
}
.icon-btn.danger:hover {
  border-color: #ffcdd2;
  background: #ffebee;
  color: #c62828;
}
.admin-list {
  display: grid;
  gap: 10px;
}
.admin-record {
  background: #fff;
  border: 1px solid #e6edf5;
  border-radius: 8px;
  padding: 16px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: start;
}
.admin-record-top {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}
.admin-record h3 {
  color: var(--navy);
  font-size: 14.5px;
  font-weight: 800;
  line-height: 1.35;
  margin: 0;
}
.admin-record p {
  color: #5c6f82;
  font-size: 12.5px;
  line-height: 1.55;
  margin: 0 0 8px;
}
.admin-record-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  color: #7d8c9b;
  font-size: 11.5px;
}
.admin-record-meta i {
  color: var(--cyan-dim);
  margin-right: 5px;
}
.admin-pill {
  flex-shrink: 0;
  border-radius: 6px;
  padding: 2px 8px;
  font-size: 10.5px;
  font-weight: 800;
}
.admin-pill.ok {
  background: #e8f5e9;
  color: #2e7d32;
}
.admin-pill.muted {
  background: #eef2f6;
  color: #6f7f90;
}
.admin-state {
  min-height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: #66788a;
  font-size: 13px;
  font-weight: 700;
  background: #fff;
  border: 1px solid #e6edf5;
  border-radius: 8px;
}
.admin-state.error {
  color: #c62828;
}
.admin-modal {
  border: 0;
  border-radius: 8px;
  overflow: hidden;
}
.admin-modal .modal-header {
  background: var(--navy);
  color: #fff;
  border-bottom: 2px solid var(--cyan);
}
.admin-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.admin-field.full,
.admin-field:has(textarea),
.admin-check {
  grid-column: 1 / -1;
}
.admin-field small {
  color: #778899;
  font-size: 11px;
}
.admin-check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
}
.admin-check input {
  width: 18px;
  height: 18px;
  accent-color: var(--cyan-dim);
}

@media (max-width: 991px) {
  .admin-layout {
    grid-template-columns: 1fr;
  }
  .admin-sidebar {
    border-right: 0;
    border-bottom: 1px solid #e6edf5;
  }
  .admin-tabs {
    position: static;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 767px) {
  .admin-header .container,
  .admin-toolbar,
  .admin-record {
    align-items: stretch;
    flex-direction: column;
    grid-template-columns: 1fr;
  }
  .admin-session,
  .admin-toolbar-actions {
    justify-content: flex-start;
  }
  .admin-content {
    padding: 16px;
  }
  .admin-tabs,
  .admin-form-grid {
    grid-template-columns: 1fr;
  }
}
