/* ========================================================================== /
/ === 0) GENEL DEĞİŞKENLER & GEÇİŞLER ===================================== /
/ ========================================================================== */

:root {
  /* Yeşil tonları - KOYU */
  --accent: #22c55e; /* koyu yeşil (eski: #4ade80) */
  --accent2: #16a34a; /* daha koyu yeşil (eski: #22c55e) */
  --accent3: #15803d; /* çok koyu yeşil (eski: #16a34a) */
  --accent-hover: #4ade80; /* açık yeşil hover (eski: #86efac) */
  --radius: 16px;
  --blur: 14px;

  --transition-fast: 0.3s ease;
  --transition-medium: 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);

  /* Tema renkleri - bu değerler colors.css.php tarafından override edilecek */
  --dark-bg: #0e201a;
  --dark-text: #e8f7ee;
  --dark-card: rgba(13, 26, 22, 0.55);
  --dark-line: #173e34;
  --dark-item-bg: rgba(11, 30, 25, 0.6);
  --dark-item-border: #14392f;

  --light-bg: #eefcf4;
  --light-text: #12231c;
  --light-card: rgba(255, 255, 255, 0.66);
  --light-line: #cfe8db;
  --light-item-bg: rgba(255, 255, 255, 0.74);
  --light-item-border: #cfe8db;
}

/* DARK TEMA (varsayılan görünüm için body.dark-mode sınıfı) */
body.dark-mode {
  --bg: linear-gradient(180deg, var(--dark-bg), #0b2b22);
  --text: var(--dark-text);
  --card: var(--dark-card);
  --line: var(--dark-line);
  --item-bg: var(--dark-item-bg);
  --item-border: var(--dark-item-border);
}

/* LIGHT TEMA */
body.light-mode {
  --bg: linear-gradient(180deg, var(--light-bg), #dff6ec);
  --text: var(--light-text);
  --card: var(--light-card);
  --line: var(--light-line);
  --item-bg: var(--light-item-bg);
  --item-border: var(--light-item-border);
}

/* ========================================================================== /
/ === 1) RESET & TEMEL ===================================================== /
/ ========================================================================== */

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* Global overflow prevention */
*,
*::before,
*::after {
  max-width: 100%;
}

html,
body {
  height: 100%;
  font: 16px/1.6 "Segoe UI", system-ui, -apple-system, Roboto;
}

/* Scrollbar Styling - Theme Aware */
/* Firefox */
* {
  scrollbar-width: thin;
  scrollbar-color: var(--scrollbar-thumb) var(--scrollbar-track);
}

/* Chrome, Edge, Safari */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: var(--scrollbar-track);
  border-radius: 10px;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--accent), var(--accent2));
  border-radius: 10px;
  border: 2px solid var(--scrollbar-track);
  transition: background 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, var(--accent-hover), var(--accent));
}

::-webkit-scrollbar-thumb:active {
  background: var(--accent2);
}

/* Dark mode scrollbar */
body.dark-mode::-webkit-scrollbar-track {
  background: rgba(13, 26, 22, 0.8);
}

body.dark-mode::-webkit-scrollbar-thumb {
  border-color: rgba(13, 26, 22, 0.8);
}

/* Light mode scrollbar */
body.light-mode::-webkit-scrollbar-track {
  background: rgba(239, 252, 244, 0.9);
}

body.light-mode::-webkit-scrollbar-thumb {
  border-color: rgba(239, 252, 244, 0.9);
}

html {
  overflow-x: hidden;
  width: 100%;
}

body {
  background: var(--bg);
  color: var(--text);
  transition: background var(--transition-fast), color var(--transition-fast);
  overflow-x: hidden;
  width: 100%;
  max-width: 100%;
  position: relative;
}

/* ========================================================================== /
/ === 2) ANA KAPSAYICI (Wrap) — Sağ rail kaldırıldı ======================= /
/ ========================================================================== */

.wrap-with-right-rail {
  position: relative;
  z-index: 1;
  max-width: 1100px;
  margin: 0 auto;
  padding: 70px 16px 105px;
  transition: background var(--transition-fast), color var(--transition-fast);
  overflow-x: hidden;
  width: 100%;
  box-sizing: border-box;
}

/* Ara ekran boyutları */
@media (max-width: 1200px) {
  .wrap-with-right-rail {
    padding: 65px 12px 100px;
    margin: 0 auto;
  }
}

/* Tablet boyutları */
@media (max-width: 980px) {
  .wrap-with-right-rail {
    padding: 60px 10px 100px;
    margin: 0 auto;
  }
}

/* Mobilde padding azalt */
@media (max-width: 800px) {
  .wrap-with-right-rail {
    padding: 60px 0 105px;
    margin: 0;
  }
}

/* Masaüstü/Tablet farkı için ekstra margin gerekmez; sağ rail yok. */

/* ========================================================================== /
/ === 3) ÜSTTE TEK BUTONLU SIDER PANEL (checkbox hack) ===================== /
/ ========================================================================== /
/ Kullanım (HTML tarafı örnek iskelet):

<div class="sider-control"> <input type="checkbox" id="siderToggle" /> <label class="sider-button" for="siderToggle">Menü</label> <div class="sider-panel"> ... içerik ... </div> </div> */

.sider-control {
  position: fixed;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

/* input gizli */
.sider-control > input[type="checkbox"] {
  display: none;
}

/* Buton */
.sider-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 12px;
  border: 1px solid var(--line);
  color: #0d1a14;
  background: linear-gradient(180deg, var(--accent), var(--accent2));
  cursor: pointer;
  user-select: none;
  font-weight: 700;
  letter-spacing: 0.2px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  transition: transform 0.12s ease, box-shadow 0.25s ease;
}

.sider-button:active {
  transform: translateY(1px);
}

/* Panel (geniş açılan üst panel) */
.sider-panel {
  position: fixed;
  top: 56px;
  left: 50%;
  transform: translate(-50%, -8%) scale(0.98);
  width: min(1100px, 92vw);
  max-width: calc(100vw - 32px);
  max-height: 80vh;
  overflow: auto;
  padding: 22px;
  border-radius: var(--radius);
  background: var(--card);
  border: 1px solid var(--line);
  backdrop-filter: blur(var(--blur)) saturate(140%);
  -webkit-backdrop-filter: blur(var(--blur)) saturate(140%);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.4);
  opacity: 0;
  pointer-events: none;
  transition: transform var(--transition-medium),
    opacity var(--transition-medium);
  box-sizing: border-box;
}

/* Açık durum */
.sider-control > input[type="checkbox"]:checked ~ .sider-panel {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, 0) scale(1);
}

/* Mobilde panel yüksekliği biraz daha fazla olabilir */
@media (max-width: 600px) {
  .sider-panel {
    max-height: 86vh;
  }
}

/* ========================================================================== /
/ === 4) KARTLAR, METİN BLOKLARI, GRID ==================================== /
/ ========================================================================== */

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  backdrop-filter: blur(var(--blur));
  -webkit-backdrop-filter: blur(var(--blur));
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  margin: 22px auto;
  color: var(--text);
  transition: background 0.4s, box-shadow 0.4s, border-color 0.4s;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow-x: hidden;
}

/* Ara ekran boyutları için */
@media (max-width: 1200px) {
  .card {
    margin: 20px auto;
  }
}

/* Tablet boyutları */
@media (max-width: 900px) {
  .card {
    margin: 18px auto;
  }
}

/* Mobilde kartlar tam ekran */
@media (max-width: 800px) {
  .card {
    width: 100%;
    margin: 0;
    border-radius: 0;
    border-left: none;
    border-right: none;
  }

  .card .p24 {
    padding: 16px 12px;
  }

  .card .p16 {
    padding: 12px 10px;
  }

  .card h2,
  .card h3 {
    text-align: center;
    margin-bottom: 12px;
  }
}

/* Sayfa navigasyon butonları - footer üstü, içerik alanının sağ tarafında */
.mobile-nav {
  position: fixed;
  bottom: 100px;
  right: calc(
    50% - 550px + 270px
  ); /* İçerik alanı max-width 1100px, yarısı 550px, sidebar 280px'den biraz sağda */
  display: flex;
  gap: 10px;
  z-index: 999;
  background: transparent;
  pointer-events: none;
}

.mobile-nav .nav-btn {
  pointer-events: all;
}

/* Çok geniş ekranlar */
@media (min-width: 1600px) {
  .mobile-nav {
    right: calc(50% - 550px + 290px);
  }
}

/* Orta-büyük ekranlar */
@media (max-width: 1399px) and (min-width: 1200px) {
  .mobile-nav {
    right: calc(50% - 550px + 270px);
  }
}

/* Orta ekranlar */
@media (max-width: 1199px) and (min-width: 981px) {
  .mobile-nav {
    left: 270px;
    right: auto;
    bottom: 95px;
  }
}

/* Tablet */
@media (max-width: 980px) and (min-width: 801px) {
  .mobile-nav {
    left: 90px;
    right: auto;
    bottom: 95px;
    gap: 8px;
  }
}

/* Mobil */
@media (max-width: 800px) {
  .mobile-nav {
    bottom: 95px;
    left: auto;
    right: 16px;
    gap: 8px;
  }
}

.nav-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 2px solid var(--accent);
  background: linear-gradient(
    135deg,
    rgba(74, 222, 128, 0.95),
    rgba(34, 197, 94, 0.95)
  );
  color: #ffffff;
  font-size: 18px;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  backdrop-filter: blur(16px) saturate(200%);
  -webkit-backdrop-filter: blur(16px) saturate(200%);
  box-shadow: 0 8px 32px rgba(74, 222, 128, 0.4), 0 4px 12px rgba(0, 0, 0, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
  position: relative;
  overflow: hidden;
}

.nav-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.3), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
  border-radius: 50%;
}

.nav-btn::after {
  content: "";
  position: absolute;
  inset: -50%;
  background: linear-gradient(
    45deg,
    transparent,
    rgba(255, 255, 255, 0.4),
    transparent
  );
  transform: translateX(-100%) rotate(45deg);
  transition: transform 0.6s ease;
}

.nav-btn:hover {
  background: linear-gradient(
    135deg,
    rgba(134, 239, 172, 0.98),
    rgba(74, 222, 128, 0.98)
  );
  border-color: var(--accent-hover);
  transform: translateY(-4px) scale(1.08);
  box-shadow: 0 12px 40px rgba(74, 222, 128, 0.5), 0 6px 16px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.nav-btn:hover::before {
  opacity: 1;
}

.nav-btn:hover::after {
  transform: translateX(100%) rotate(45deg);
}

.nav-btn:active {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 6px 24px rgba(74, 222, 128, 0.4), 0 3px 8px rgba(0, 0, 0, 0.15);
}

.nav-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
  transform: none;
  background: linear-gradient(
    135deg,
    rgba(74, 222, 128, 0.3),
    rgba(34, 197, 94, 0.3)
  );
  border-color: rgba(74, 222, 128, 0.4);
  box-shadow: 0 4px 12px rgba(74, 222, 128, 0.15);
}

.nav-btn:disabled:hover {
  transform: none;
  box-shadow: 0 4px 12px rgba(74, 222, 128, 0.15);
}

.nav-btn:disabled::after {
  display: none;
}

.nav-btn i {
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
  font-weight: 900;
}

/* Tablet boyutları */
@media (max-width: 980px) {
  .nav-btn {
    width: 46px;
    height: 46px;
    font-size: 16px;
  }
}

/* Mobil boyutları */
@media (max-width: 800px) {
  .nav-btn {
    width: 44px;
    height: 44px;
    font-size: 15px;
    border-width: 1.5px;
  }
}

/* Grid Layout for Info Cards */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
  margin: 20px 0;
  width: 100%;
}

@media (max-width: 800px) {
  .cards-grid {
    grid-template-columns: 1fr;
    gap: 16px;
    margin: 16px 0;
  }
}

.info-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  backdrop-filter: blur(var(--blur));
  -webkit-backdrop-filter: blur(var(--blur));
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
  opacity: 1;
  transform: scale(1);
}

.info-card.hidden {
  display: none;
}

.info-card:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  transform: translateY(-4px);
}

.info-card .card-icon {
  font-size: 48px;
  text-align: center;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.info-card .card-icon .material-symbols-outlined {
  font-size: 56px;
  font-weight: 300;
  color: var(--text);
  opacity: 0.7;
  transition: all 0.3s ease;
}

body.dark-mode .info-card .card-icon .material-symbols-outlined {
  color: #e8f7ee;
  opacity: 0.6;
}

body.light-mode .info-card .card-icon .material-symbols-outlined {
  color: #12231c;
  opacity: 0.5;
}

.info-card:hover .card-icon .material-symbols-outlined {
  opacity: 0.85;
  transform: scale(1.08);
}

.info-card h3 {
  font-size: 20px;
  color: var(--accent);
  margin-bottom: 12px;
  font-weight: 600;
}

.info-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.info-card li {
  margin-bottom: 8px;
  line-height: 1.6;
  color: var(--text);
  opacity: 0.92;
  padding-left: 18px;
  position: relative;
}

.info-card li:before {
  content: "•";
  color: var(--accent);
  font-weight: bold;
  position: absolute;
  left: 0;
}

.info-card li strong {
  color: var(--accent2);
  font-weight: 600;
}

/* Pagination Controls */
.pagination-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  margin: 24px 0;
  padding: 16px;
}

.pagination-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 12px;
  border: 2px solid var(--accent);
  background: linear-gradient(
    135deg,
    rgba(74, 222, 128, 0.1),
    rgba(34, 197, 94, 0.05)
  );
  color: var(--accent);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.pagination-btn:hover:not(:disabled) {
  background: linear-gradient(
    135deg,
    rgba(74, 222, 128, 0.2),
    rgba(34, 197, 94, 0.1)
  );
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(74, 222, 128, 0.3);
}

.pagination-btn:active:not(:disabled) {
  transform: translateY(0);
}

.pagination-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  border-color: rgba(74, 222, 128, 0.3);
}

.page-info {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  padding: 8px 16px;
  background: rgba(74, 222, 128, 0.08);
  border-radius: 8px;
  min-width: 80px;
  text-align: center;
}

@media (max-width: 800px) {
  .pagination-controls {
    gap: 12px;
    margin: 20px 0;
    padding: 12px;
  }

  .pagination-btn {
    padding: 8px 16px;
    font-size: 13px;
    gap: 6px;
  }

  .page-info {
    font-size: 13px;
    padding: 6px 12px;
    min-width: 70px;
  }
}

/* About kartları carousel */
.about-carousel {
  position: relative;
  min-height: 400px;
  margin: 20px auto;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

/* Ara ekran boyutları */
@media (max-width: 1200px) {
  .about-carousel {
    margin: 18px auto;
  }
}

@media (max-width: 900px) {
  .about-carousel {
    margin: 16px auto;
    min-height: 350px;
  }
}

/* Mobilde about kartları tam ekran */
@media (max-width: 800px) {
  .about-carousel {
    margin: 0;
    min-height: 300px;
  }

  .about-card {
    padding: 12px;
    border-radius: 0;
  }

  .about-card h3 {
    font-size: 19px;
    line-height: 1.3;
    margin-bottom: 10px;
  }

  .about-card li {
    font-size: 14px;
    line-height: 1.4;
    margin-bottom: 6px;
  }

  .card-icon {
    font-size: 36px;
    margin-bottom: 10px;
  }
}

.about-card {
  position: absolute;
  inset: 0;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  backdrop-filter: blur(var(--blur));
  -webkit-backdrop-filter: blur(var(--blur));
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  opacity: 0;
  transform: translateX(100%) rotateY(90deg);
  transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  transform-style: preserve-3d;
  transform-origin: left center;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow-x: hidden;
}

.about-card.active {
  opacity: 1;
  transform: translateX(0) rotateY(0deg);
  position: relative;
  z-index: 2;
}

.about-card.prev {
  transform: translateX(-50%) rotateY(-90deg);
  opacity: 0.3;
  z-index: 1;
}

.card-icon {
  font-size: 48px;
  text-align: center;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-icon .material-symbols-outlined {
  font-size: 56px;
  font-weight: 300;
  color: var(--text);
  opacity: 0.7;
  transition: all 0.3s ease;
}

/* Dark mode - daha parlak gri */
body.dark-mode .card-icon .material-symbols-outlined {
  color: #e8f7ee;
  opacity: 0.6;
}

/* Light mode - daha koyu gri */
body.light-mode .card-icon .material-symbols-outlined {
  color: #12231c;
  opacity: 0.5;
}

/* Hover effect on cards */
.about-card:hover .card-icon .material-symbols-outlined {
  opacity: 0.85;
  transform: scale(1.08);
}

.about-card h3 {
  font-size: 24px;
  color: var(--accent);
  margin-bottom: 12px;
  text-align: center;
  font-weight: 600;
}

.about-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.about-card li {
  margin-bottom: 8px;
  line-height: 1.6;
  color: var(--text);
  opacity: 0.92;
  padding-left: 18px;
  position: relative;
}

.about-card li:before {
  content: "•";
  color: var(--accent);
  font-weight: bold;
  position: absolute;
  left: 0;
}

.about-card li strong {
  color: var(--accent2);
  font-weight: 600;
}

/* About navigasyon butonları */
.about-nav {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin: 20px 0;
  padding: 0 20px;
}
.card:hover {
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.45);
}

.p24 {
  padding: 24px;
}
.p16 {
  padding: 16px;
}

/* Mobilde p24 padding azalt */
@media (max-width: 800px) {
  .p24 {
    padding: 16px 12px !important;
  }
  .p16 {
    padding: 12px 10px !important;
  }
}

.title {
  font-size: 28px;
  margin-bottom: 4px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.2px;
}

/* Mobilde title küçült */
@media (max-width: 800px) {
  .title {
    font-size: 24px;
    margin-bottom: 4px;
  }
}

.subtitle {
  margin-bottom: 14px;
  opacity: 0.9;
  color: var(--text);
  line-height: 1.75;
  text-align: justify;
}

.muted {
  opacity: 0.75;
}
.tac {
  text-align: center;
}

.row,
.grid-2,
.row-3 {
  display: grid;
  gap: 16px;
}
.row,
.grid-2 {
  grid-template-columns: 1fr 1fr;
}
.row-3 {
  grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 900px) {
  .row,
  .grid-2,
  .row-3 {
    grid-template-columns: 1fr;
  }
}

/* Liste ve öğe kartları */
.list {
  display: grid;
  gap: 12px;
  width: 100%;
  max-width: 100%;
}

.item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 12px;
  border-radius: 12px;
  background: var(--item-bg);
  border: 1px solid var(--item-border);
  backdrop-filter: blur(var(--blur));
  -webkit-backdrop-filter: blur(var(--blur));
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}
.item:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.cover {
  width: 72px;
  height: 90px;
  border-radius: 8px;
  object-fit: cover;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* ========================================================================== /
/ === 5) SAYFA GEÇİŞİ (SAĞDAN KAYMA — Ghost yok) ========================== /
/ ========================================================================== */

.page-host {
  position: relative;
  min-height: 40vh;
  perspective: 1000px; /* 3D efekt için perspektif */
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

.page {
  position: absolute;
  inset: 0;
  border-radius: 16px;
  overflow: hidden;
  padding: 28px;
  z-index: 1;
  background: var(--bg);
  transition: transform 0.9s cubic-bezier(0.25, 0.46, 0.45, 0.94),
    opacity 0.9s ease-out;
  will-change: transform, opacity;
  transform-style: preserve-3d;
  transform-origin: center;
}
.page.slide-enter {
  transform: translateX(100%) rotateY(90deg);
  opacity: 0.3;
  z-index: 2;
}

.page.slide-enter-from-left {
  transform: translateX(-100%) rotateY(-90deg);
  opacity: 0.3;
  z-index: 2;
}
.page.slide-enter.slide-active {
  transform: translateX(0) rotateY(0deg);
  opacity: 1;
}
.page.slide-enter-from-left.slide-active {
  transform: translateX(0) rotateY(0deg);
  opacity: 1;
}
.page.slide-exit {
  transform: translateX(0) rotateY(0deg);
  opacity: 1;
  z-index: 1;
}
.page.slide-exit.slide-active {
  transform: translateX(-100%) rotateY(-90deg);
  opacity: 0.3;
}

.page.slide-exit.slide-active-from-left {
  transform: translateX(100%) rotateY(90deg);
  opacity: 0.3;
}
.page.current {
  position: relative;
  z-index: 3;
}

/* ========================================================================== /
/ === 6) FOOTER ============================================================ /
/ ========================================================================== */

.site-footer {
  text-align: center;
  padding: 20px 12px;
  font-size: 14px;
  background: transparent;
  border-top: 1px solid var(--line);
  opacity: 0.9;
  transition: background var(--transition-fast);
}
.site-footer a {
  color: var(--accent);
  text-decoration: none;
}
.site-footer a:hover {
  text-decoration: underline;
}

/* ========================================================================== /
/ === 7) PROFİL BLOĞU (iki varyant birleştirildi) ========================= /
/ ========================================================================== */

.profile-row {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 24px;
  align-items: center;
  margin: 24px auto;
  background: var(--card);
  border-radius: 32px;
  border: 1px solid var(--line);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(var(--blur));
  -webkit-backdrop-filter: blur(var(--blur));
  padding: 20px;
  transition: background 0.4s, border-color 0.4s, box-shadow 0.4s;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
  position: relative;
}

/* Dekoratif desen - sağ üst köşe */
.profile-row::before {
  content: "";
  position: absolute;
  top: -30px;
  right: -30px;
  width: 160px;
  height: 160px;
  background: radial-gradient(
      circle at center,
      transparent 25%,
      var(--accent) 25%,
      var(--accent) 28%,
      transparent 28%
    ),
    radial-gradient(
      circle at center,
      transparent 40%,
      var(--accent) 40%,
      var(--accent) 43%,
      transparent 43%
    ),
    radial-gradient(
      circle at center,
      transparent 55%,
      var(--accent) 55%,
      var(--accent) 58%,
      transparent 58%
    ),
    radial-gradient(
      circle at center,
      transparent 70%,
      var(--accent) 70%,
      var(--accent) 73%,
      transparent 73%
    );
  opacity: 0.15;
  border-radius: 50%;
  pointer-events: none;
  animation: pulsePattern 8s ease-in-out infinite;
}

/* Dekoratif desen - sol alt köşe */
.profile-row::after {
  content: "";
  position: absolute;
  bottom: -20px;
  left: -20px;
  width: 140px;
  height: 140px;
  background: linear-gradient(
      45deg,
      transparent 47%,
      var(--accent) 47%,
      var(--accent) 53%,
      transparent 53%
    ),
    linear-gradient(
      -45deg,
      transparent 47%,
      var(--accent) 47%,
      var(--accent) 53%,
      transparent 53%
    ),
    repeating-conic-gradient(
      from 0deg at 50% 50%,
      var(--accent) 0deg 2deg,
      transparent 2deg 45deg
    );
  opacity: 0.12;
  pointer-events: none;
  animation: rotatePattern 20s linear infinite;
}

@keyframes pulsePattern {
  0%,
  100% {
    opacity: 0.15;
    transform: scale(1);
  }
  50% {
    opacity: 0.2;
    transform: scale(1.05);
  }
}

@keyframes rotatePattern {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.profile-text {
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 1;
  position: relative;
}

.profile-name {
  font-size: 32px;
  font-weight: 700;
  color: var(--accent);
  margin: 0;
  letter-spacing: -0.3px;
  line-height: 1.2;
}

.profile-role {
  font-size: 16px;
  color: var(--text);
  opacity: 0.85;
  font-weight: 500;
  letter-spacing: 0.3px;
}

.profile-photo {
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1;
  position: relative;
}

.profile-photo img {
  width: 100%;
  max-width: 280px;
  height: 280px;
  object-fit: cover;
  border-radius: 25%;
  border: 4px solid var(--accent);
  box-shadow: 0 8px 24px rgba(74, 222, 128, 0.25),
    inset 0 0 0 8px rgba(255, 255, 255, 0.1);
  transition: all 0.4s ease;
}

.profile-photo img:hover {
  transform: scale(1.03);
  box-shadow: 0 12px 32px rgba(74, 222, 128, 0.35),
    inset 0 0 0 8px rgba(255, 255, 255, 0.15);
}

@media (max-width: 1200px) {
  .profile-row {
    margin: 20px auto;
    padding: 16px;
    gap: 20px;
  }
}

@media (max-width: 900px) {
  .profile-row {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 20px 16px;
    margin: 16px auto;
    border-radius: 28px;
  }

  .profile-row::before {
    width: 130px;
    height: 130px;
    top: -25px;
    right: -25px;
  }

  .profile-row::after {
    width: 110px;
    height: 110px;
    bottom: -18px;
    left: -18px;
  }

  .profile-text {
    align-items: center;
    order: 2;
  }

  .profile-photo {
    justify-content: center;
    order: 1;
    margin-bottom: 16px;
  }

  .profile-photo img {
    max-width: 220px;
    height: 220px;
  }

  .profile-name {
    font-size: 28px;
  }

  .profile-role {
    font-size: 15px;
  }
}

@media (max-width: 800px) {
  .profile-row {
    margin: 12px 0;
    border-radius: 24px;
    border-left: 1px solid var(--line);
    border-right: 1px solid var(--line);
    padding: 20px 12px;
  }

  .profile-photo img {
    max-width: 200px;
    height: 200px;
    border-width: 3px;
  }

  .profile-name {
    font-size: 26px;
  }

  .profile-role {
    font-size: 14px;
  }
}

/* ========================================================================== /
/ === 8) ZARİF ZAMAN ÇİZGİSİ (Timeline) =================================== /
/ ========================================================================== */

.timeline {
  position: relative;
  margin: 40px auto;
  padding-left: 28px;
  border-left: 2px solid var(--line);
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

@media (max-width: 1200px) {
  .timeline {
    margin: 32px auto;
  }
}

@media (max-width: 900px) {
  .timeline {
    margin: 28px auto;
  }
}

@media (max-width: 700px) {
  .timeline {
    border-left: none;
    padding-left: 0;
    margin: 24px 0;
  }
  .timeline-dot {
    display: none;
  }
  .timeline-content {
    padding: 18px;
  }
  .timeline-content h3 {
    font-size: 17px;
  }
}

/* ========================================================================== /
/ === 9) MAKALE / ARTICLE BLOKLARI (tekleştirilmiş) ======================= /
/ ========================================================================== */

.article-section {
  display: flex;
  justify-content: center;
  padding: 40px 20px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

@media (max-width: 1200px) {
  .article-section {
    padding: 32px 16px;
  }
}

@media (max-width: 900px) {
  .article-section {
    padding: 24px 12px;
  }
}

@media (max-width: 800px) {
  .article-section {
    padding: 16px 0;
  }
}

.article-container {
  max-width: 900px;
  width: 100%;
  margin: 0 auto;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 36px;
  backdrop-filter: blur(var(--blur)) saturate(140%);
  -webkit-backdrop-filter: blur(var(--blur)) saturate(140%);
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.35);
  color: var(--text);
  line-height: 1.8;
  transition: box-shadow 0.3s ease, transform 0.3s ease, opacity 0.3s ease,
    transform 0.3s ease;
  box-sizing: border-box;
  overflow-x: hidden;
}

@media (max-width: 1200px) {
  .article-container {
    margin: 0 auto;
    padding: 28px;
  }
}

@media (max-width: 900px) {
  .article-container {
    margin: 0 auto;
    padding: 24px;
  }
}

@media (max-width: 800px) {
  .article-container {
    padding: 12px;
    margin: 0;
    border-radius: 0;
    border-left: none;
    border-right: none;
  }
  .article-title {
    font-size: 19px;
    text-align: center;
    line-height: 1.3;
    margin-bottom: 10px;
  }
  .article-subtitle,
  .article-body {
    font-size: 14px;
    text-align: left;
    line-height: 1.5;
  }
  .article-nav {
    flex-direction: column;
    gap: 8px;
  }
}

.article-container:hover {
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
  transform: translateY(-3px);
}

.article-title {
  font-size: 28px;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 12px;
  letter-spacing: -0.2px;
}

.article-subtitle {
  font-size: 16.5px;
  opacity: 0.9;
  margin-bottom: 20px;
  color: var(--text);
  text-align: justify;
}

.article-body {
  font-size: 15.5px;
  color: var(--text);
  text-align: justify;
  opacity: 0.92;
}

/* “Read more” davranışı için genişleyebilir gövde */
.article-item {
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 20px 24px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(var(--blur));
  -webkit-backdrop-filter: blur(var(--blur));
  transition: all 0.4s ease;
  overflow: hidden;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}
.article-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.35);
}

.article-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 10px;
}
.article-date {
  font-size: 14px;
  color: var(--accent2);
  opacity: 0.85;
}

.read-more {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
  font-size: 14.5px;
  transition: color 0.25s ease;
}
.read-more:hover {
  color: var(--accent2);
  text-decoration: underline;
}

.article-body.full {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.7s ease, opacity 0.6s ease;
}
.article-item.expanded .article-body.full {
  display: block;
  max-height: 1000px;
  opacity: 1;
  margin-top: 10px;
}

/* Carousel (isteğe bağlı) */
.article-carousel {
  position: relative;
  max-width: 900px;
  margin: 40px auto 80px;
  overflow: hidden;
}
.article-container.active {
  opacity: 1;
  transform: translateX(0);
}
.article-nav {
  display: flex;
  justify-content: space-between;
  margin-top: 20px;
}
.article-btn {
  background: linear-gradient(180deg, var(--accent), var(--accent2));
  border: none;
  border-radius: 10px;
  padding: 10px 18px;
  color: #0e1a14;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.25s ease;
}
.article-btn:hover {
  transform: translateY(-1px);
}

/* Mobil düzen */
@media (max-width: 800px) {
  .article-container {
    padding: 16px;
    width: 100%;
    margin-left: 0;
    margin-right: 0;
    border-radius: 0;
    max-width: 100%;
    overflow-x: hidden;
    box-sizing: border-box;
  }
  .article-title {
    font-size: 20px;
    text-align: center;
    line-height: 1.3;
  }
  .article-subtitle,
  .article-body {
    font-size: 14px;
    text-align: left;
    line-height: 1.5;
  }
  .article-nav {
    flex-direction: column;
    gap: 10px;
  }
}

/* ========================================================================== /
/ === 10) İLETİŞİM GRID ==================================================== /
/ ========================================================================== */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  margin-top: 24px;
  align-items: start;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

@media (max-width: 1200px) {
  .contact-grid {
    gap: 20px;
    margin: 24px auto 0;
  }
}

@media (max-width: 900px) {
  .contact-grid {
    grid-template-columns: 1fr;
    padding: 0;
    margin: 24px auto 0;
    box-sizing: border-box;
  }
}

@media (max-width: 800px) {
  .contact-grid {
    padding: 0;
    margin-top: 12px;
  }

  .contact-info,
  .contact-form {
    border-radius: 12px;
  }

  .contact-info {
    padding: 16px 12px;
  }

  .contact-form {
    padding: 16px 12px;
  }

  .contact-item {
    margin-bottom: 10px;
    font-size: 14px;
  }

  .contact-form-header {
    margin-bottom: 8px;
  }
}

.contact-info,
.contact-form {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(var(--blur));
  -webkit-backdrop-filter: blur(var(--blur));
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

@media (max-width: 800px) {
  .contact-info,
  .contact-form {
    border-radius: 16px;
  }
}

.contact-info {
  padding: 20px 24px;
}
.contact-item {
  margin-bottom: 12px;
  font-size: 15.5px;
  color: var(--text);
  line-height: 1.6;
}
.contact-item a {
  color: var(--accent);
  text-decoration: none;
}
.contact-item a:hover {
  text-decoration: underline;
}

.contact-form {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.contact-form-header {
  font-size: 16px;
  margin-bottom: 4px;
}
.contact-fields {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.contact-input {
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  font-size: 15px;
  width: 100%;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.contact-input:focus {
  border-color: var(--accent);
  outline: none;
  box-shadow: 0 0 0 3px rgba(74, 222, 128, 0.15);
}

.contact-btn {
  padding: 10px 0;
  border: none;
  border-radius: 10px;
  background: linear-gradient(180deg, var(--accent), var(--accent2));
  color: #0d1a14;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.2s ease;
}
.contact-btn:hover {
  transform: translateY(-1px);
}

/* Genişletilebilir İletişim Kartları */
.contact-expandable-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 800px;
  margin: 0 auto;
}

.contact-expand-item {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  transition: all 0.3s ease;
  backdrop-filter: blur(var(--blur));
  -webkit-backdrop-filter: blur(var(--blur));
}

.contact-expand-item:hover {
  border-color: var(--accent);
  box-shadow: 0 4px 16px rgba(74, 222, 128, 0.2);
}

.contact-expand-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  cursor: pointer;
  user-select: none;
  transition: background 0.2s ease;
}

.contact-expand-header:hover {
  background: rgba(74, 222, 128, 0.05);
}

.contact-expand-icon {
  font-size: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-expand-btn {
  background: none;
  border: none;
  color: var(--accent);
  font-size: 18px;
  cursor: pointer;
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
}

.contact-expand-btn i {
  transition: transform 0.3s ease;
}

.contact-expand-item.open .contact-expand-btn i {
  transform: rotate(180deg);
}

.contact-expand-body {
  max-height: 0;
  overflow: hidden;
  padding: 0 20px;
  transition: max-height 0.4s ease, padding 0.4s ease;
}

.contact-expand-item.open .contact-expand-body {
  max-height: 300px;
  padding: 0 20px 20px;
}

@media (max-width: 800px) {
  .contact-expandable-list {
    padding: 0 12px;
  }

  .contact-expand-header {
    padding: 14px 16px;
  }

  .contact-expand-icon {
    font-size: 20px;
  }
}

/* ========================================================================== /
/ === 11) YARDIMCI SINIFLAR =============================================== /
/ ========================================================================== */

.hr {
  height: 1px;
  background: var(--line);
  margin: 12px 0;
  border: 0;
}
.btn {
  display: inline-block;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 14px;
  cursor: pointer;
  background: transparent;
  color: var(--text);
  transition: transform 0.08s ease-in-out, box-shadow 0.2s ease;
}
.btn:active {
  transform: translateY(1px);
}
.btn.accent {
  border-color: transparent;
  background: linear-gradient(180deg, var(--accent), var(--accent2));
  color: #0d1a14;
  font-weight: 700;
}

/* ========================================================================== /
/ === SON: Bu dosya tekilleştirilmiş, yineleyen selectorlar birleştirildi === /
/ ========================================================================== */
/* ==========================================================================
   THEME: yeşil / koyu-yeşil gradyan + genel değişkenler
   ========================================================================== */
:root {
  --accent: #22c55e;
  --accent2: #16a34a;
  --accent3: #15803d;
  --accent-hover: #4ade80;
  --radius: 16px;
  --blur: 14px;
  --transition-fast: 0.3s ease;
  --transition-medium: 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
}

body.dark-mode {
  --bg: linear-gradient(180deg, #0e201a, #0b2b22);
  --text: #e8f7ee;
  --card: rgba(13, 26, 22, 0.55);
  --line: #173e34;
  --item-bg: rgba(11, 30, 25, 0.6);
  --item-border: #14392f;
}

body.light-mode {
  --bg: linear-gradient(180deg, #eefcf4, #dff6ec);
  --text: #12231c;
  --card: rgba(255, 255, 255, 0.66);
  --line: #cfe8db;
  --item-bg: rgba(255, 255, 255, 0.74);
  --item-border: #cfe8db;
}

/* ==========================================================================
   DESKTOP (>=981px): mevcut davranış – sağ sabit menü
   BURAYA dokunmuyoruz; sadece örnek genişlik ve konum.
   ========================================================================== */
@media (min-width: 981px) {
  .sider {
    position: fixed;
    top: 80px; /* header yüksekliğine göre ayarla */
    right: 24px;
    width: 320px;
    max-height: calc(100vh - 120px);
    overflow: auto;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    backdrop-filter: blur(var(--blur));
    -webkit-backdrop-filter: blur(var(--blur));
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
    padding: 16px;
    z-index: 700;
  }

  .wrap-with-right-rail {
    max-width: 1100px;
    margin: 0 auto;
    padding-right: calc(320px + 70px);
  }

  .sider-fab {
    display: none; /* masaüstünde buton görünmesin */
  }
}

/* ==========================================================================
   MOBILE/TABLET (<=980px): sider üstten çıkan tam genişlik panel
   ========================================================================== */
@media (max-width: 980px) {
  /* fab: ekranın sağ üstü */
  .sider-fab {
    position: fixed;
    top: 14px;
    right: 14px;
    z-index: 1001;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    border: 2px solid var(--accent);
    background: linear-gradient(135deg, var(--accent), var(--accent2));
    color: #0d1a14;
    font-weight: 700;
    cursor: pointer;
    user-select: none;
    box-shadow: 0 8px 24px rgba(74, 222, 128, 0.4),
      0 4px 12px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
  }

  .sider-fab i {
    font-size: 20px;
    font-weight: 900;
    color: #0d1a14;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.3);
  }

  .sider-fab:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 12px 32px rgba(74, 222, 128, 0.5),
      0 6px 16px rgba(0, 0, 0, 0.4);
    border-color: var(--accent-hover);
  }

  .sider-fab:active {
    transform: translateY(0) scale(0.98);
  }

  /* üst panel olarak sider */
  .sider {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    transform: translateY(-100%); /* kapalıyken tamamen yukarıda */
    width: 100%; /* tam genişlik */
    max-width: 100%;
    max-height: 86vh;
    overflow: auto;
    padding: 18px;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 0 0 var(--radius) var(--radius);
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.4);
    /* Mobilde menü içerikleri net görünsün diye blur kapatıldı */
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    opacity: 0;
    pointer-events: none;
    transition: transform var(--transition-medium),
      opacity var(--transition-medium);
    z-index: 1000;
    box-sizing: border-box;
  }

  /* açık durum */
  .sider.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
    z-index: 1002; /* backdrop'tan yüksek olmalı */
    /* Açıkken de blur kullanma */
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  /* içerik sağ margin'i mobilde olmasın */
  .wrap,
  .wrap-with-right-rail {
    margin: 0 auto !important;
    padding-top: 72px; /* fab ve header için nefes */
  }

  /* opsiyonel: arka plan karartması */
  .sider-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition-fast);
    z-index: 999;
  }
  .sider-backdrop.is-on {
    opacity: 1;
    pointer-events: auto;
  }

  /* sider içerik alt stilleri (varsa) mobilde tam görünsün */
  .sider-brand img {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: 2px solid var(--line);
    object-fit: cover;
  }
  .sider-nav .sider-link {
    display: block;
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: 10px;
    color: var(--text);
    text-decoration: none;
    margin-bottom: 8px;
    background: var(--item-bg);
  }
  .sider-sep {
    height: 1px;
    background: var(--line);
    margin: 12px 0;
  }
  .chip {
    display: inline-block;
    padding: 6px 10px;
    border-radius: 999px;
    border: 1px solid var(--line);
    color: var(--text);
    text-decoration: none;
    margin: 4px 4px 0 0;
  }
  /* Linklerde metinleri göster, sola hizala */
  .sider-nav .sider-link {
    display: flex;
    align-items: center;
    gap: 10px;
  }
  .sider-nav .sider-link span {
    display: inline;
  }
}
/* ======================================================================
   SIDER: Masaüstü (>=981px) — sağ sabit
   ====================================================================== */
@media (min-width: 981px) {
  .sider {
    position: fixed;
    top: 80px; /* header yüksekliğine göre ayarla */
    right: 24px;
    width: 320px;
    max-height: calc(100vh - 120px);
    overflow: auto;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    backdrop-filter: blur(var(--blur));
    -webkit-backdrop-filter: blur(var(--blur));
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
    padding: 16px;
    z-index: 700;
    display: block; /* olası display:none ezmelerine karşı */
    transform: none !important;
    opacity: 1 !important;
    pointer-events: auto !important;
  }
  .sider-fab {
    display: none;
  } /* masaüstünde buton görünmesin */
  .wrap-with-right-rail {
    max-width: 1100px;
    margin: 0 auto;
    padding-right: calc(320px + 70px);
  }
}

/* ======================================================================
   SIDER: Mobil/Tablet (<=980px) — üstten tam geniş panel
   ====================================================================== */
@media (max-width: 980px) {
  /* FAB: sağ üstte görünür */
  .sider-fab {
    position: fixed;
    top: 14px;
    right: 14px;
    z-index: 1001;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    border: 2px solid var(--accent);
    background: linear-gradient(135deg, var(--accent), var(--accent2));
    color: #0d1a14;
    font-weight: 700;
    cursor: pointer;
    user-select: none;
    box-shadow: 0 8px 24px rgba(74, 222, 128, 0.4),
      0 4px 12px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
  }

  .sider-fab i {
    font-size: 20px;
    font-weight: 900;
    color: #0d1a14;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.3);
  }

  .sider-fab:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 12px 32px rgba(74, 222, 128, 0.5),
      0 6px 16px rgba(0, 0, 0, 0.4);
    border-color: var(--accent-hover);
  }

  .sider-fab:active {
    transform: translateY(0) scale(0.98);
  }

  /* Sider: üst panelin kendisi (KAPALI hali) */
  .sider {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    transform: translateY(-100%); /* kapalıyken ekran dışında */
    width: 100%;
    max-width: 100%;
    max-height: 86vh;
    overflow: auto;
    padding: 18px;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 0 0 var(--radius) var(--radius);
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.4);
    /* Mobilde menü içerikleri net görünsün diye blur kapatıldı */
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    opacity: 0;
    pointer-events: none;
    transition: transform var(--transition-medium),
      opacity var(--transition-medium);
    z-index: 1000;
    display: block !important; /* "kaybolma"yı kesinlikle engelle */
    box-sizing: border-box;
  }

  /* Sider: AÇIK hali (JS: .is-open sınıfını ekliyor) */
  .sider.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
    /* Açıkken de blur kullanma */
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  /* İçerik sağ boşluk olmasın */
  .wrap,
  .wrap-with-right-rail {
    margin-right: 0 !important;
    padding-top: 72px; /* fab ve header alanı */
  }

  /* Opsiyonel arka plan karartması (JS .sider-backdrop ekliyor) */
  .sider-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition-fast);
    z-index: 999;
  }
  .sider-backdrop.is-on {
    opacity: 1;
    pointer-events: auto;
  }

  /* Linklerde metinleri göster, sola hizala */
  .sider-nav .sider-link {
    display: flex;
    align-items: center;
    gap: 10px;
  }
  .sider-nav .sider-link span {
    display: inline;
  }
}

/* ========================================================================== /
/ === YOUTUBE VİDEO POPUP & BUTTON ======================================= /
/ ========================================================================== */

/* Video Play Button - Theme Adaptive Glassmorphism */
.video-play-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  padding: 10px 20px;
  background: rgba(74, 222, 128, 0.15);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: var(--accent);
  border: 2px solid var(--accent);
  border-radius: 50px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(74, 222, 128, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  position: relative;
  overflow: hidden;
}

.video-play-btn i {
  font-size: 18px;
  transition: transform 0.3s ease;
}

.video-play-btn:hover {
  transform: translateY(-2px);
  background: rgba(74, 222, 128, 0.25);
  box-shadow: 0 6px 20px rgba(74, 222, 128, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
  border-color: var(--accent-hover);
}

.video-play-btn:hover i {
  transform: scale(1.1);
}

.video-play-btn:active {
  transform: translateY(0) scale(0.98);
}

/* Shimmer effect */
.video-play-btn::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    45deg,
    transparent 30%,
    rgba(255, 255, 255, 0.1) 50%,
    transparent 70%
  );
  transform: translateX(-100%);
  transition: transform 0.6s ease;
}

.video-play-btn:hover::before {
  transform: translateX(100%);
}

/* Video Popup Overlay */
.video-popup {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.92);
  backdrop-filter: blur(8px);
  z-index: 10000;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Video Popup Content */
.video-popup-content {
  position: relative;
  width: 90%;
  max-width: 1000px;
  animation: slideUp 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

@keyframes slideUp {
  from {
    transform: translateY(50px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* Video Container - 16:9 Aspect Ratio */
.video-container {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 */
  background: #000;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.1);
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* Close Button */
.video-close-btn {
  position: absolute;
  top: -50px;
  right: 0;
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  color: #ffffff;
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  z-index: 10001;
}

.video-close-btn:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: rotate(90deg) scale(1.1);
  border-color: rgba(255, 255, 255, 0.5);
}

.video-close-btn:active {
  transform: rotate(90deg) scale(0.95);
}

/* Responsive adjustments */
@media (max-width: 900px) {
  .video-play-btn {
    font-size: 15px;
    padding: 10px 20px;
    margin-top: 12px;
  }

  .video-play-btn i {
    font-size: 18px;
  }

  .video-popup-content {
    width: 95%;
  }

  .video-close-btn {
    top: -45px;
    width: 40px;
    height: 40px;
    font-size: 18px;
  }

  .video-container {
    border-radius: 12px;
  }
}

@media (max-width: 600px) {
  .video-play-btn {
    font-size: 14px;
    padding: 9px 18px;
    margin-top: 10px;
    gap: 8px;
  }

  .video-play-btn i {
    font-size: 16px;
  }

  .video-close-btn {
    top: -40px;
    width: 36px;
    height: 36px;
    font-size: 16px;
  }

  .video-container {
    border-radius: 10px;
  }
}
