/* ================================================
   Orjin Yayınları – Yeni Tasarım (BBC Bitesize Tarzı)
   ================================================ */
/* ======================== GRADE PAGE PREMIUM RE-DESIGN ======================== */
.grade-page {
  background: #fff;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

/* Sidebar Grade Navigation */
.grade-sidebar {
  position: fixed;
  left: 20px;
  top: 100px;
  width: 65px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(15px);
  border-radius: 35px;
  padding: 15px 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 1400; /* Above header */
  box-shadow: 0 10px 40px rgba(0,0,0,0.06);
  border: 1px solid rgba(255,255,255,0.4);
}

.sidebar-circles {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.s-circle {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: none;
  font-size: 15px;
  font-weight: 850;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  opacity: 0.25;
}

.s-circle:hover { opacity: 0.7; transform: scale(1.1); }
.s-circle.active { 
  opacity: 1 !important; 
  transform: scale(1.15);
  box-shadow: 0 8px 25px currentColor;
}

/* Combined Premium Header - Specific to Grade Page */
.premium-grade-header {
  height: 75px;
  background: var(--active-color);
  display: flex;
  align-items: center;
  padding: 0 40px;
  color: #fff;
  position: relative;
  z-index: 1100;
  box-shadow: 0 4px 18px rgba(0,0,0,0.12);
}

.grade-header-left { 
  display: flex; 
  align-items: center; 
  gap: 20px; 
  flex-shrink: 0; 
  margin-right: 30px; 
}

.header-back-btn {
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
  font-size: 24px;
  transition: var(--t);
  display: flex;
  align-items: center;
  opacity: 1;
}
.header-back-btn:hover { transform: translateX(-4px); opacity: 0.85; }
.grade-header-left h2 { 
  font-size: 22px; 
  font-weight: 800; 
  white-space: nowrap; 
  margin: 0;
}

.grade-header-center { 
  flex: 1; 
  display: flex; 
  justify-content: center; 
  gap: 8px;
}

.header-nav-pills { 
  display: flex; 
  gap: 7px;
}

.h-pill {
  border: none;
  background: rgba(255,255,255,0.98);
  backdrop-filter: blur(8px);
  color: #64748b;
  padding: 11px 24px;
  border-radius: 22px;
  font-weight: 700;
  font-size: 13.5px;
  display: flex;
  align-items: center;
  gap: 9px;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.h-pill i { 
  font-size: 16px; 
  color: var(--active-color);
  opacity: 0.8;
}

.h-pill:hover { 
  background: rgba(255,255,255,1); 
  transform: translateY(-2px); 
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  color: var(--active-color);
}

.h-pill.active { 
  background: var(--active-color) !important; 
  color: #fff !important; 
  box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

.h-pill.active i { 
  color: #fff; 
  opacity: 1; 
}

.grade-header-right { 
  display: flex; 
  align-items: center; 
  gap: 10px; 
}

.header-tool-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.98);
  backdrop-filter: blur(8px);
  font-size: 17px;
  cursor: pointer;
  transition: var(--t);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.header-tool-btn:nth-child(1) { color: #ec4899; }
.header-tool-btn:nth-child(2) { color: #8b5cf6; }
.header-tool-btn:nth-child(3) { color: #06b6d4; }

.header-tool-btn:hover { 
  background: #fff; 
  transform: scale(1.08);
  box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}

/* Sidebar Grade Navigation - Floating Capsule */
.grade-sidebar {
  position: fixed;
  left: 20px;
  top: 160px;
  width: 60px;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  border-radius: 35px;
  padding: 18px 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 2600; 
  box-shadow: 0 12px 45px rgba(0,0,0,0.08);
  border: 1px solid rgba(0,0,0,0.04);
}

.sidebar-circles {
  display: flex;
  flex-direction: column;
  gap: 13px;
}

.s-circle {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: none;
  font-size: 15px;
  font-weight: 900;
  cursor: pointer;
  transition: all 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  opacity: 0.35;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.s-circle:hover { 
  opacity: 0.85; 
  transform: scale(1.12); 
  box-shadow: 0 6px 18px rgba(0,0,0,0.15);
}

.s-circle.active { 
  opacity: 1 !important; 
  transform: scale(1.18);
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}

.s-c-5 { background: #8b5cf6 !important; }
.s-c-6 { background: #f472b6 !important; }
.s-c-7 { background: #10b981 !important; }
.s-c-8 { background: #fb923c !important; }

/* Grade Landing Hero Area - Full Width */
.grade-landing-hero {
  position: relative;
  min-height: calc(100vh - 146px);
  background: var(--active-color);
  width: 100%;
  padding: 60px 5% 100px 120px;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow: hidden;
}

.grade-landing-hero::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 70%;
  background: linear-gradient(to bottom, transparent 0%, rgba(255,255,255,0.15) 30%, rgba(255,255,255,0.35) 100%);
  z-index: 0;
}

/* Avatar Position & Layering (Stay in Background) */
.landing-avatar-container {
  position: absolute;
  right: -1%;
  bottom: 0;
  height: 98%;
  width: 50%;
  z-index: 1;
  pointer-events: none;
  display: flex !important;
  align-items: flex-end;
  justify-content: flex-end;
  opacity: 1;
}

.landing-avatar-container::before {
  content: '';
  position: absolute;
  right: 15%;
  bottom: 8%;
  width: 70%;
  height: 70%;
  background: radial-gradient(circle, rgba(255,255,255,0.45) 0%, transparent 70%);
  border-radius: 50%;
  filter: blur(80px);
  z-index: -1;
}

.grade-hero-avatar {
  height: 96%;
  width: auto;
  max-width: 50vw;
  object-fit: contain;
  opacity: 0.18 !important;
  filter: drop-shadow(0 20px 45px rgba(0,0,0,0.08)) brightness(1.1);
}

.hero-ogrenme .grade-hero-avatar,
.hero-meb .grade-hero-avatar,
.hero-yayinlar .grade-hero-avatar {
  height: 120%;
  max-width: 60vw;
}

.landing-text, .landing-cards, .ders-pills-wrapper, .kazanim-accordion-container,
.meb-sub-tabs, .meb-cards-container,
.yayin-featured-container, .book-carousel-section {
  position: relative;
  z-index: 10; /* Above Avatar */
}

.landing-text { 
  text-align: center; 
  margin-bottom: 45px; 
  color: #fff; 
  width: 100%; 
  position: relative;
  z-index: 10;
}

.landing-text h1 { 
  font-size: 56px; 
  font-weight: 900; 
  margin-bottom: 10px; 
  text-shadow: 0 4px 18px rgba(0,0,0,0.15);
  letter-spacing: -1.2px;
}

.landing-text p { 
  font-size: 17px; 
  font-weight: 600; 
  opacity: 0.94;
  text-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* Landing Mega Cards - Orjin Açık Kaynak Style */
.landing-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 35px;
  width: 100%;
  max-width: 720px;
}

.landing-card-large {
  background: var(--active-color);
  backdrop-filter: blur(12px);
  padding: 50px 38px;
  border-radius: 40px;
  border: none;
  text-align: center;
  color: #fff;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 8px 30px rgba(0,0,0,0.08);
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 320px;
  justify-content: space-between;
}

.landing-card-large:hover { 
  transform: translateY(-6px); 
  box-shadow: 0 14px 45px rgba(0,0,0,0.12);
}

.lc-icon-box {
  width: 95px;
  height: 95px;
  background: rgba(255,255,255,0.18);
  backdrop-filter: blur(10px);
  border-radius: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 42px;
  margin-bottom: 22px;
  color: #fff;
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
}

.landing-card-large h3 { 
  font-size: 22px; 
  font-weight: 900; 
  margin-bottom: 12px; 
  line-height: 1.25;
  color: #fff;
}

.landing-card-large p { 
  font-size: 14px; 
  color: rgba(255,255,255,0.9); 
  line-height: 1.6; 
  margin-bottom: 28px;
  font-weight: 500;
}

.lc-footer {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.lc-download-btn {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  border: 2.5px solid rgba(255,255,255,0.35);
  background: transparent;
  color: #fff;
  font-size: 21px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: none;
}
.lc-download-btn:hover { 
  background: #fff;
  color: var(--active-color);
  transform: scale(1.12);
  border-color: #fff;
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

/* Search Results Dropdown */
.search-results {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.12);
  max-height: 400px;
  overflow-y: auto;
  opacity: 0;
  transform: translateY(-10px);
  pointer-events: none;
  transition: all 0.3s ease;
  z-index: 1000;
}

.search-results.active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: all;
}

.search-result-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  cursor: pointer;
  transition: background 0.2s ease;
  border-bottom: 1px solid #f1f5f9;
}

.search-result-item:last-child {
  border-bottom: none;
}

.search-result-item:hover {
  background: #f8fafc;
}

.search-result-item i {
  font-size: 16px;
  color: var(--active-color);
  width: 20px;
  text-align: center;
}

.search-result-item span {
  flex: 1;
  font-size: 13px;
  color: var(--text);
}

/* Tablet / Mobile Cleanups */
@media (max-width: 1024px) {
  .landing-cards { max-width: 680px; }
  .landing-avatar-container { right: -6%; width: 44%; }
  .grade-landing-hero { padding: 55px 4% 80px 100px; }
  .hero-ogrenme { padding: 55px 4% 180px !important; }
  .hero-meb { padding: 55px 4% 180px !important; }
  .hero-yayinlar { padding: 55px 4% 180px !important; }
  .kazanim-accordion-container { max-width: 700px; gap: 22px; }
  .ders-pills-wrapper { max-width: 700px; }
  .meb-cards-container { max-width: 700px; }
  .meb-resource-grid { grid-template-columns: repeat(2, 1fr); max-width: 500px; margin: 0 auto; }
  .yayin-promo-card { min-width: 360px; }
  .yayin-featured-container { max-width: 700px; }
  .book-carousel-section { max-width: 700px; }
}

@media (max-width: 768px) {
  .grade-landing-hero { padding: 40px 25px 80px; }
  .hero-ogrenme { padding: 40px 25px 180px !important; }
  .hero-meb { padding: 40px 25px 180px !important; }
  .hero-yayinlar { padding: 40px 25px 180px !important; }
  .landing-avatar-container { display: none !important; }
  .landing-text { margin-bottom: 45px; }
  .landing-text h1 { font-size: 38px; }
  .landing-text p { font-size: 15px; }
  .landing-cards { grid-template-columns: 1fr; max-width: 100%; gap: 20px; }
  .landing-card-large { min-height: 260px; padding: 40px 30px; }
  .h-pill { padding: 9px 18px; font-size: 12px; gap: 7px; }
  .h-pill i { font-size: 14px; }
  .premium-grade-header { height: 65px; padding: 0 20px; top: 64px; margin-top: -64px; }
  .grade-header-left { gap: 12px; }
  .grade-header-left h2 { font-size: 18px; }
  .grade-sidebar { left: 12px; width: 52px; top: 140px; }
  .s-circle { width: 36px; height: 36px; font-size: 13px; }
  .sidebar-circles { gap: 11px; }
  .kazanim-accordion-container { gap: 18px; }
  .kazanim-track { width: 12px; }
  .ders-pills-wrapper { gap: 8px; }
  .ders-pill { padding: 7px 14px; font-size: 12px; }
  .meb-sub-tabs { padding: 7px; gap: 5px; }
  .meb-tab { padding: 10px 22px; font-size: 12.5px; }
  .meb-tab i { font-size: 15px; }
  .yayin-featured-container { gap: 18px; }
  .yayin-promo-card { min-width: 100%; }
  .ypc-main { height: 220px; }
  .book-carousel-section { padding: 28px 22px; }
  .book-thumbs-grid { grid-template-columns: repeat(3, 1fr); gap: 12px; }
  .grade-avatar-box {
    height: 170px;
  }
  .grade-avatar-box img {
    top: -50px;
    width: 95%;
    height: 240px;
  }
  .grade-card-info {
    padding: 14px 20px 14px;
    margin-top: -45px;
  }
  .grade-num {
    font-size: 60px;
  }
  .grade-name {
    font-size: 26px;
  }
}


/* ============================================================================== */

:root {
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --primary-light: #dbeafe;
  --primary-xlight: #eff6ff;
  --secondary: #7c3aed;
  --accent: #f59e0b;
  --success: #10b981;

  --grade5: #2563eb;
  --grade5-light: #dbeafe;
  --grade5-dark: #1e3a8a;
  --grade6: #059669;
  --grade6-light: #d1fae5;
  --grade6-dark: #065f46;
  --grade7: #d97706;
  --grade7-light: #fef3c7;
  --grade7-dark: #78350f;
  --grade8: #7c3aed;
  --grade8-light: #ede9fe;
  --grade8-dark: #4c1d95;
  --teacher: #475569;
  --teacher-light: #f1f5f9;
  --teacher-dark: #1e293b;

  --text: #0f172a;
  --text-mid: #334155;
  --text-muted: #64748b;
  --bg: #f1f5f9;
  --bg-white: #ffffff;
  --border: #e2e8f0;

  --shadow-sm: 0 1px 4px rgba(0, 0, 0, 0.06);
  --shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 10px 36px rgba(0, 0, 0, 0.12);
  --shadow-xl: 0 20px 60px rgba(0, 0, 0, 0.16);

  --radius-xs: 6px;
  --radius-sm: 10px;
  --radius: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 9999px;

  --t: 0.22s cubic-bezier(0.4, 0, 0.2, 1);
  --grade5: #8b5cf6;
  --grade6: #f472b6;
  --grade7: #10b981;
  --grade8: #fb923c;

  --radius: 24px;
  --radius-sm: 12px;
  --shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.1);
  --t: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);

  --active-color: var(--grade5);
}

/* Reset */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
body {
  font-family: "Inter", system-ui, sans-serif;
  color: var(--text);
  background: #f8fafc;
  line-height: 1.5;
  overflow-x: hidden;
}
.container {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 36px;
}

/* =================== HEADER =================== */
.site-header {
  background: #ffffff;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  position: sticky;
  top: 0;
  z-index: 2500;
  box-shadow: 0 2px 12px rgba(0,0,0,0.03);
  height: 71px;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0;
  gap: 28px;
  height: 100%;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  transition: transform 0.3s ease;
}
.logo:hover {
  transform: scale(1.02);
}
.logo-wrapper {
  display: flex;
  flex-direction: column;
  line-height: 1;
}
.logo-text-main {
  font-size: 34px;
  font-weight: 900;
  color: #059669;
  letter-spacing: -1.8px;
}
.logo-text-sub {
  font-size: 14px;
  font-weight: 900;
  color: #fb923c;
  letter-spacing: 2.2px;
  margin-top: -5px;
  text-transform: uppercase;
}

/* Search */
.header-search {
  flex: 1;
  max-width: 340px;
  position: relative;
}
.search-form {
  display: flex;
  background: #f1f5f9;
  border-radius: 99px;
  padding: 5px 5px 5px 22px;
  transition: var(--t);
}
.search-form:focus-within {
  background: #fff;
  box-shadow: 0 0 0 2px var(--active-color);
}
.search-form input {
  border: none;
  background: transparent;
  outline: none;
  flex: 1;
  font-size: 14px;
  color: var(--text);
  font-weight: 500;
}
.search-form input::placeholder {
  color: #94a3b8;
  font-weight: 500;
}
.search-form button {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: none;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s;
  font-size: 14px;
}
.search-form button:hover {
  color: var(--active-color);
  transform: scale(1.05);
}

/* Header Right */
.header-right {
  display: flex;
  align-items: center;
  gap: 36px;
}
.header-tagline {
  font-size: 13px;
  color: #64748b;
  font-weight: 600;
  letter-spacing: 0.2px;
}
/* Bilgi Link */
.bilgi-link {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  padding: 8px 16px;
  border-radius: 99px;
  transition: var(--t);
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  border: none;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
}
.bilgi-link:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(245,158,11,0.4);
}
.bilgi-link i {
  font-size: 15px;
}

.teacher-link {
  display: flex;
  align-items: center;
  gap: 14px;
  cursor: pointer;
  padding: 6px 8px 6px 6px;
  border-radius: 99px;
  transition: var(--t);
  background: transparent;
  border: 1.5px solid transparent;
}
.teacher-link:hover {
  background: #f8fafc;
  border-color: #e2e8f0;
  transform: scale(1.02);
}
.teacher-link span {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
}
.teacher-link i {
  font-size: 13px;
  color: #10b981;
}
.teacher-avatar-small {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #f1f5f9;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

/* =================== HOME HERO =================== */
.home-section {
  padding-bottom: 60px;
  background: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 86c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zm66-3c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM39 52c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zm44 1c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 40c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zm18 10c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z' fill='%23e2e8f0' fill-opacity='0.4' fill-rule='evenodd'/%3E%3C/svg%3E");
}
.home-hero {
  padding: 40px 0;
  text-align: center;
}
.hero-title {
  font-size: 84px;
  font-weight: 900;
  color: #a78bfa;
  letter-spacing: -2px;
  margin: 0;
  opacity: 0.8;
}

/* Grade Cards Grid */
.grade-cards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 0 100px; /* Extra bottom padding for glow & text */
}

.grade-card-item {
  background: transparent;
  cursor: pointer;
  transition: var(--t);
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 6px 6px 0px 6px;
  border-radius: 44px;
}

/* Hover Glow Effect */
.grade-card-item::after {
  content: '';
  position: absolute;
  top: 60%;
  bottom: -120px;
  left: 0;
  right: 0;
  background: linear-gradient(to bottom, var(--glow-color), transparent);
  opacity: 0;
  transition: var(--t);
  z-index: 0;
  filter: blur(40px);
  border-radius: 40px;
}

.grade-5 { --glow-color: rgba(139, 92, 246, 0.4); }
.grade-6 { --glow-color: rgba(244, 114, 182, 0.4); }
.grade-7 { --glow-color: rgba(16, 185, 129, 0.4); }
.grade-8 { --glow-color: rgba(251, 146, 60, 0.4); }

.grade-card-item:hover::after { opacity: 1; }

/* The Colored Backplate */
.grade-avatar-box {
  width: 100%;
  height: 220px; 
  border-radius: 40px 40px 0 0;
  position: relative;
  display: flex;
  justify-content: center;
  transition: var(--t);
  z-index: 1;
  border-left: 3px solid transparent;
  border-right: 3px solid transparent;
  border-top: 3px solid transparent;
  border-bottom: none;
}

.grade-5 .grade-avatar-box { 
  background: linear-gradient(180deg, #c4b5fd 0%, #a78bfa 50%, #8b5cf6 100%); 
  border-color: #8b5cf6;
}
.grade-6 .grade-avatar-box { 
  background: linear-gradient(180deg, #fbcfe8 0%, #f9a8d4 50%, #f472b6 100%); 
  border-color: #f472b6;
}
.grade-7 .grade-avatar-box { 
  background: linear-gradient(180deg, #a7f3d0 0%, #6ee7b7 50%, #10b981 100%); 
  border-color: #10b981;
}
.grade-8 .grade-avatar-box { 
  background: linear-gradient(180deg, #fed7aa 0%, #fdba74 50%, #fb923c 100%); 
  border-color: #fb923c;
}

/* The Avatar - Popping Out */
.grade-avatar-box img { 
  position: absolute;
  top: -80px;
  width: 110%;
  height: 320px;
  object-fit: contain;
  z-index: 2;
  transition: var(--t);
  filter: drop-shadow(0 20px 30px rgba(0,0,0,0.15));
}

.grade-card-item:hover .grade-avatar-box img { transform: scale(1.05) translateY(-10px); }

/* The Info Box - Overlapping at the bottom */
.grade-card-info { 
  background: #fff;
  width: 100%;
  border-radius: 0 0 40px 40px;
  padding: 18px 24px 18px;
  margin-top: -65px; 
  position: relative;
  z-index: 3;
  box-shadow: 0 15px 45px rgba(0,0,0,0.1);
  border-left: 3px solid transparent;
  border-right: 3px solid transparent;
  border-bottom: 3px solid transparent;
  border-top: none;
  text-align: left;
  transition: var(--t);
}

/* Theme Borders & Hover Effects for Info Box */
.grade-5 .grade-card-info { border-color: #8b5cf6; }
.grade-6 .grade-card-info { border-color: #f472b6; }
.grade-7 .grade-card-info { border-color: #10b981; }
.grade-8 .grade-card-info { border-color: #fb923c; }

.grade-label { 
  display: flex;
  align-items: center;
  gap: 12px;
}

.grade-num { 
  font-size: 82px; 
  font-weight: 1000; 
  line-height: 1;
  letter-spacing: -4px;
  margin-right: 4px;
}

/* Color Synchronization for Number & Text */
.grade-5 .grade-num, .grade-5 .grade-name { color: #8b5cf6; }
.grade-6 .grade-num, .grade-6 .grade-name { color: #f472b6; }
.grade-7 .grade-num, .grade-7 .grade-name { color: #10b981; }
.grade-8 .grade-num, .grade-8 .grade-name { color: #fb923c; }

.grade-text-box { display: flex; flex-direction: column; }
.grade-lang { font-size: 14px; font-weight: 700; color: #94a3b8; margin-bottom: -4px; }
.grade-name { font-size: 32px; font-weight: 900; }

/* Description in the glow area */
.grade-desc { 
  font-size: 16px; 
  font-weight: 700; 
  color: #fff; /* White as requested */
  line-height: 1.4;
  margin-top: 25px;
  text-align: center;
  position: relative;
  z-index: 4;
  transition: all 0.4s ease;
  max-width: 200px;
  opacity: 0; /* Hidden by default */
  transform: translateY(10px);
}

.grade-card-item:hover .grade-desc { 
  opacity: 1; /* Visible on hover */
  transform: translateY(0);
}

/* Pagination Dots Alignment & Colors */
.home-pagination {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  max-width: 1200px;
  margin: 60px auto 0;
  position: relative;
  z-index: 5;
}

.home-pagination .dot {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  cursor: pointer;
  transition: var(--t);
  justify-self: center;
  border: none; /* Removed border */
  outline: none; /* Remove focus outline */
}

/* Specific Pagination Colors */
.home-pagination .dot:nth-child(1) { background-color: #8b5cf6; } /* 5. Sınıf */
.home-pagination .dot:nth-child(2) { background-color: #f472b6; } /* 6. Sınıf */
.home-pagination .dot:nth-child(3) { background-color: #10b981; } /* 7. Sınıf */
.home-pagination .dot:nth-child(4) { background-color: #fb923c; } /* 8. Sınıf */

.home-pagination .dot.active { 
  opacity: 1;
}

/* Linked Hover Effect: Scale dot when card is hovered */
#homeSection:has(.grade-5:hover) .dot:nth-child(1),
#homeSection:has(.grade-6:hover) .dot:nth-child(2),
#homeSection:has(.grade-7:hover) .dot:nth-child(3),
#homeSection:has(.grade-8:hover) .dot:nth-child(4) {
  transform: scale(1.6);
  opacity: 1;
  filter: brightness(1.1);
}

/* Sınav Metre - Premium Leaf Overhaul */
.sinav-metre-panel {
  position: fixed;
  bottom: 30px; 
  right: 40px;
  width: 380px;
  z-index: 2000;
  transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.sinav-metre-panel.collapsed {
  width: 100px;
  height: 100px;
}

.sinav-metre-panel.collapsed .sm-panel-content {
  border-radius: 40px 10px 40px 10px; /* TL and BR rounded */
  padding: 10px;
  height: 100px;
  cursor: pointer;
}

.sinav-metre-panel.collapsed .sm-panel-header,
.sinav-metre-panel.collapsed .sm-card,
.sinav-metre-panel.collapsed .sm-action-btn {
  display: none;
}

.sinav-metre-panel.collapsed .sm-collapsed-trigger {
  display: flex;
}

.sm-panel-content {
  background: linear-gradient(135deg, #fb9c4d, #f97316);
  border-radius: 120px 30px 120px 30px; /* TL and BR rounded leaf shape */
  padding: 40px 25px;
  color: #fff;
  box-shadow: 0 20px 60px rgba(249, 115, 22, 0.3);
  position: relative;
  border: 5px solid #fff;
  transition: all 0.5s ease;
  overflow: hidden;
}

.sm-collapsed-trigger {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: #fff;
}
.sm-collapsed-trigger i { font-size: 18px; margin-bottom: 2px; }
.sm-collapsed-trigger span { 
  font-size: 11px; 
  font-weight: 900; 
  text-align: center; 
  line-height: 1.1; 
  text-transform: uppercase;
}

.sm-panel-header {
  text-align: center;
  margin-bottom: 25px;
  position: relative;
}

.sm-close-trigger {
  position: absolute;
  top: -25px;
  left: 50%;
  transform: translateX(-50%);
  cursor: pointer;
  font-size: 22px;
  opacity: 0.8;
  padding: 10px;
}

.sm-brand-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  font-size: 42px;
  font-weight: 900;
  letter-spacing: -2px;
  font-style: italic;
  margin-top: 10px;
}
.sm-clock-icon { font-size: 38px; animation: smRotate 6s linear infinite; }

.sm-card {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  border-radius: 30px;
  padding: 15px 12px;
  margin-bottom: 15px;
  border: 1px solid rgba(255,255,255,0.2);
}

.sm-card-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  padding-left: 5px;
}
.sm-card-header i { font-size: 20px; opacity: 0.9; }
.sm-card-info strong { font-size: 19px; font-weight: 900; }
.sm-card-info span { font-size: 10px; opacity: 0.7; font-weight: 700; display: block; }

.sm-timer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 5px;
}

.sm-time-unit {
  flex: 1;
  background: rgba(255, 255, 255, 0.2);
  height: 60px;
  border-radius: 18px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  box-shadow: inset 0 0 10px rgba(255,255,255,0.1);
}

.sm-time-unit span { font-size: 24px; font-weight: 950; line-height: 1; }
.sm-time-unit label { font-size: 9px; font-weight: 800; text-transform: uppercase; opacity: 0.85; margin-top: 3px; }

.sm-sep { font-size: 22px; font-weight: 900; opacity: 0.3; }

.sm-action-btn {
  width: 100%;
  background: #fff;
  color: #f97316;
  border: none;
  padding: 18px;
  border-radius: 25px;
  font-size: 17px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  cursor: pointer;
  margin-top: 10px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
  transition: var(--t);
}
.sm-action-btn:hover { transform: translateY(-3px); box-shadow: 0 15px 40px rgba(0,0,0,0.2); }

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

@media (max-width: 1400px) {
  .sinav-metre-panel { width: 340px; right: 20px; }
  .sm-brand-title { font-size: 36px; }
}

/* Responsive adjustments */
@media (max-width: 1300px) {
  .sinav-metre-panel { right: 20px; width: 340px; }
  .sinav-metre-panel.collapsed { width: 80px; height: 80px; }
}

/* =================== FEEDBACK PANEL (Bottom-Left) =================== */
.fb-panel {
  position: fixed;
  bottom: 30px;
  left: 40px;
  width: 360px;
  z-index: 2000;
  transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.fb-panel.collapsed {
  width: 100px;
  height: 100px;
}

.fb-panel.collapsed .fb-panel-content {
  border-radius: 10px 40px 10px 40px;
  padding: 10px;
  height: 100px;
  cursor: pointer;
  overflow: hidden;
}

.fb-panel.collapsed .fb-panel-header,
.fb-panel.collapsed .fb-form {
  display: none;
}

.fb-panel.collapsed .fb-collapsed-trigger {
  display: flex;
}

.fb-panel-content {
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  border-radius: 30px 120px 30px 120px;
  padding: 30px 22px 22px;
  color: #fff;
  box-shadow: 0 20px 60px rgba(99, 102, 241, 0.3);
  position: relative;
  border: 5px solid #fff;
  transition: all 0.5s ease;
  overflow: hidden;
  max-height: 85vh;
  overflow-y: auto;
}

.fb-collapsed-trigger {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: #fff;
}
.fb-collapsed-trigger i { font-size: 18px; margin-bottom: 2px; }
.fb-collapsed-trigger span {
  font-size: 11px;
  font-weight: 900;
  text-align: center;
  line-height: 1.1;
  text-transform: uppercase;
}

.fb-panel-header {
  text-align: center;
  margin-bottom: 16px;
  position: relative;
}

.fb-close-trigger {
  position: absolute;
  top: -8px;
  right: -8px;
  cursor: pointer;
  font-size: 14px;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 50%;
  color: #fff;
  opacity: 0.9;
  transition: all 0.2s ease;
  z-index: 10;
}
.fb-close-trigger:hover {
  opacity: 1;
  background: rgba(255,80,80,0.7);
  border-color: rgba(255,80,80,0.9);
  transform: scale(1.1);
}

.fb-brand-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 22px;
  font-weight: 900;
}
.fb-brand-title i { font-size: 24px; }

.fb-subtitle {
  font-size: 11.5px;
  opacity: 0.8;
  margin-top: 4px;
}

.fb-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.fb-field input,
.fb-field select,
.fb-field textarea {
  width: 100%;
  border: none;
  border-radius: 12px;
  padding: 10px 14px;
  font-size: 13px;
  font-family: inherit;
  background: rgba(255,255,255,0.2);
  color: #fff;
  outline: none;
  transition: background 0.3s;
  box-sizing: border-box;
}

.fb-field input::placeholder,
.fb-field textarea::placeholder {
  color: rgba(255,255,255,0.6);
}

.fb-field select {
  color: #fff;
  cursor: pointer;
}
.fb-field select option {
  color: #1e293b;
  background: #fff;
}

.fb-field input:focus,
.fb-field select:focus,
.fb-field textarea:focus {
  background: rgba(255,255,255,0.3);
}

.fb-photo-area {
  background: rgba(255,255,255,0.15);
  border: 2px dashed rgba(255,255,255,0.4);
  border-radius: 12px;
  padding: 12px;
  text-align: center;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  transition: background 0.3s;
}
.fb-photo-area:hover {
  background: rgba(255,255,255,0.25);
}
.fb-photo-area i {
  margin-right: 6px;
}

.fb-submit-btn {
  width: 100%;
  border: none;
  background: #fff;
  color: #6366f1;
  padding: 12px;
  border-radius: 14px;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.fb-submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

@media (max-width: 1400px) {
  .fb-panel { width: 320px; left: 20px; }
}
@media (max-width: 1300px) {
  .fb-panel { left: 20px; width: 320px; }
  .fb-panel.collapsed { width: 80px; height: 80px; }
}
@media (max-width: 700px) {
  .fb-panel { left: 10px; bottom: 15px; width: 300px; }
  .fb-panel.collapsed { width: 70px; height: 70px; }
  .fb-panel-content { padding: 24px 16px 16px; }
}

/* =================== SUB PAGES =================== */
.grade-header-bar {
  background: var(--active-color);
  color: #fff;
  padding: 12px 0;
}
.sub-nav-bar {
  background: #fff;
  border-bottom: 1px solid var(--border);
  padding: 10px 0;
}

.content-block {
  background: #fff;
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  margin-bottom: 24px;
}

/* Responsive */
@media (max-width: 1024px) {
  .grade-cards-grid {
    grid-template-columns: repeat(2, 1fr);
    padding: 0 40px;
  }
  .hero-title {
    font-size: 64px;
  }
  .grade-avatar-box {
    height: 180px;
  }
  .grade-avatar-box img {
    top: -60px;
    width: 100%;
    height: 260px;
  }
  .grade-card-info {
    padding: 14px 20px 14px;
    margin-top: -50px;
  }
  .grade-num {
    font-size: 68px;
  }
  .grade-name {
    font-size: 28px;
  }
}
@media (max-width: 640px) {
  .grade-cards-grid {
    grid-template-columns: 1fr;
  }
  .header-tagline,
  .header-search {
    display: none;
  }
  .grade-avatar-box {
    height: 160px;
  }
  .grade-avatar-box img {
    top: -50px;
    width: 95%;
    height: 230px;
  }
  .grade-card-info {
    padding: 12px 18px 12px;
    margin-top: -40px;
  }
  .grade-num {
    font-size: 56px;
  }
  .grade-name {
    font-size: 24px;
  }
  .grade-lang {
    font-size: 12px;
  }
}
.resource-card:hover {
  border-color: var(--active-color);
  background: var(--active-light);
}
.rc-icon {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  color: #fff;
  background: linear-gradient(135deg, var(--active-color), var(--active-dark));
  flex-shrink: 0;
  transition: background 0.4s;
}
.rc-icon.lgs-c {
  background: linear-gradient(135deg, #4c1d95, #8b5cf6) !important;
}
.rc-body {
  flex: 1;
  min-width: 0;
}
.rc-body strong {
  display: block;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.1px;
}
.rc-body span {
  font-size: 12px;
  color: var(--text-muted);
  display: block;
  margin-top: 2px;
}
.rc-action {
  color: var(--text-muted);
  font-size: 14px;
  transition: color var(--t);
}
.resource-card:hover .rc-action {
  color: var(--active-color);
}

/* Hover Lift */
.hover-lift {
  transition:
    transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1),
    box-shadow 0.3s;
}
.hover-lift:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

/* Book Promo Card */
.book-promo-card {
  display: flex;
  gap: 16px;
  padding: 20px;
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  align-items: center;
}
.book-cover {
  width: 60px;
  height: 80px;
  border-radius: var(--radius-xs);
  background: linear-gradient(135deg, var(--active-color), var(--active-dark));
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.8);
  font-size: 24px;
  flex-shrink: 0;
  transition: background 0.4s;
}
.book-cover.kkd {
  background: linear-gradient(135deg, #d97706, #f59e0b);
}
.book-info {
  flex: 1;
}
.book-info strong {
  display: block;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 3px;
}
.book-info span {
  font-size: 12px;
  color: var(--text-muted);
  display: block;
  margin-bottom: 10px;
}

.note-text {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 16px;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Optik Promo */
.optik-promo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  padding: 24px;
  background: linear-gradient(135deg, #f5f3ff, #eef2ff);
  border: 1.5px solid #e0e7ff;
  border-radius: var(--radius);
}
.coming-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: linear-gradient(135deg, var(--secondary), #a78bfa);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  margin-bottom: 12px;
}
.optik-left h4 {
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 8px;
}
.optik-left > p {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 16px;
}
.optik-features {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.optik-features li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-mid);
}
.optik-features li i {
  color: var(--secondary);
  font-size: 14px;
  width: 18px;
  text-align: center;
}

.optik-right {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.optik-step {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.optik-step span {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--secondary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 800;
  flex-shrink: 0;
}
.optik-step strong {
  font-size: 14px;
  font-weight: 700;
  display: block;
  margin-bottom: 3px;
}
.optik-step p {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Kazanım Accordion Style - Premium Overhaul */
.hero-ogrenme {
  background: var(--active-color) !important;
  position: relative;
  overflow: hidden;
  padding: 60px 40px 200px !important;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-ogrenme::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 75%;
  background: linear-gradient(to bottom, transparent 0%, rgba(255,255,255,0.2) 25%, rgba(255,255,255,0.45) 100%);
  z-index: 0;
}

.kazanim-accordion-container {
  width: 100%;
  max-width: 850px;
  background: transparent;
  padding: 0;
  border-radius: 0;
  box-shadow: none;
  display: flex;
  gap: 25px;
  position: relative;
  z-index: 10;
}

/* Custom Scroll Track on Left */
.kazanim-track {
  width: 14px;
  background: rgba(255,255,255,0.3);
  border-radius: 10px;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px 0;
  flex-shrink: 0;
}

.kazanim-track .track-thumb {
  position: absolute;
  top: 15px;
  width: 100%;
  height: 55px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

.kazanim-accordion {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.kazanim-item {
  background: rgba(255,255,255,0.98);
  backdrop-filter: blur(10px);
  border-radius: 50px;
  border: none;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
  transition: all 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  overflow: hidden;
}

.kazanim-item:hover { 
  transform: translateY(-4px); 
  box-shadow: 0 15px 40px rgba(0,0,0,0.12);
}

.kazanim-trigger {
  width: 100%;
  padding: 18px 32px;
  background: transparent;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 16px;
  font-weight: 700;
  color: #334155;
  transition: all 0.3s ease;
  text-align: left;
}

.kazanim-trigger .unit-num {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--active-color);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  font-weight: 900;
  flex-shrink: 0;
  box-shadow: 0 5px 15px rgba(0,0,0,0.12);
}

.kazanim-trigger i.chevron {
  margin-left: auto;
  font-size: 20px;
  color: #94a3b8;
  opacity: 0.7;
  transition: transform 0.3s ease;
}

.kazanim-item.open .kazanim-trigger i.chevron {
  transform: rotate(180deg);
}

.kazanim-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}

.kazanim-item.open .kazanim-body {
  max-height: 5000px;
}

.kazanim-body-inner {
  padding: 0 32px 28px 82px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  list-style: none;
}

.kazanim-body-inner li {
  padding: 12px 0;
  font-size: 14px;
  color: #64748b;
  border-bottom: 1px solid rgba(0,0,0,0.05);
  position: relative;
  display: flex;
  gap: 10px;
  font-weight: 500;
}

.kazanim-body-inner li:last-child {
  border-bottom: none;
}

.kazanim-body-inner li::before {
  content: '→';
  color: var(--active-color);
  font-weight: 900;
  font-size: 16px;
}

/* Ders Pills (Course Selector) */
.ders-pills-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  width: 100%;
  max-width: 850px;
  position: relative;
  z-index: 10;
  margin-bottom: 8px;
}

.ders-pill {
  padding: 9px 18px;
  border-radius: 50px;
  border: 2px solid rgba(255,255,255,0.4);
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(8px);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.25s ease;
  white-space: nowrap;
}

.ders-pill:hover {
  background: rgba(255,255,255,0.3);
  transform: translateY(-2px);
}

.ders-pill.active {
  background: #fff;
  color: var(--active-color);
  border-color: #fff;
  box-shadow: 0 6px 20px rgba(0,0,0,0.15);
  font-weight: 700;
}

.ders-pill i {
  font-size: 14px;
}

/* Kazanım Loading State */
.kazanim-loading {
  text-align: center;
  padding: 32px 20px;
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  opacity: 0.9;
}
.kazanim-loading i { margin-right: 8px; }

/* Kazanım Kodu Badge */
.kazanim-kodu {
  display: inline-block;
  background: var(--active-color);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 20px;
  white-space: nowrap;
  flex-shrink: 0;
}

/* Tema Level (inside kazanim-body) */
.kazanim-tema {
  border-bottom: 1px solid rgba(0,0,0,0.06);
}
.kazanim-tema:last-child { border-bottom: none; }

.kazanim-tema-trigger {
  width: 100%;
  padding: 14px 28px 14px 32px;
  background: transparent;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  font-weight: 700;
  color: #475569;
  text-align: left;
  transition: background 0.2s;
}
.kazanim-tema-trigger:hover { background: rgba(0,0,0,0.02); }
.kazanim-tema-trigger i.fa-bookmark { color: var(--active-color); font-size: 13px; }
.kazanim-tema-trigger i.chevron {
  margin-left: auto;
  font-size: 14px;
  color: #94a3b8;
  transition: transform 0.3s ease;
}
.kazanim-tema.open > .kazanim-tema-trigger i.chevron {
  transform: rotate(180deg);
}

.kazanim-tema-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}
.kazanim-tema.open > .kazanim-tema-body {
  max-height: 3000px;
}

/* Bölüm Level (inside tema-body) */
.kazanim-bolum {
  border-top: 1px solid rgba(0,0,0,0.04);
}
.kazanim-bolum-trigger {
  width: 100%;
  padding: 10px 28px 10px 52px;
  background: transparent;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 600;
  color: #64748b;
  text-align: left;
  transition: background 0.2s;
}
.kazanim-bolum-trigger:hover { background: rgba(0,0,0,0.02); }
.kazanim-bolum-trigger i.fa-folder { color: var(--active-color); opacity: 0.7; font-size: 12px; }
.kazanim-bolum-trigger i.chevron {
  margin-left: auto;
  font-size: 12px;
  color: #94a3b8;
  transition: transform 0.3s ease;
}
.kazanim-bolum.open > .kazanim-bolum-trigger i.chevron {
  transform: rotate(180deg);
}

.kazanim-bolum-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}
.kazanim-bolum.open > .kazanim-bolum-body {
  max-height: 2000px;
}

/* Nested body-inner inside tema/bolum */
.kazanim-tema-body > .kazanim-body-inner {
  padding: 0 28px 16px 52px;
}
.kazanim-bolum-body > .kazanim-body-inner {
  padding: 0 28px 12px 72px;
}

/* LGS Calculator */
.lgs-calculator {
  margin-top: 24px;
  background: linear-gradient(135deg, #f5f3ff, #eef2ff);
  border: 1.5px solid #e0e7ff;
  border-radius: var(--radius);
  padding: 24px;
}
.lgs-calculator h4 {
  font-size: 16px;
  font-weight: 800;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.calc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}
.calc-field label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 5px;
}
.calc-field input {
  width: 100%;
  padding: 9px 12px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 14px;
  outline: none;
  transition: border-color var(--t);
}
.calc-field input:focus {
  border-color: var(--secondary);
}
.calc-result {
  margin-top: 16px;
  text-align: center;
  padding: 20px;
  background: #fff;
  border-radius: var(--radius);
  border: 2px solid var(--secondary);
}
.result-score span {
  font-size: 42px;
  font-weight: 900;
  color: var(--secondary);
  display: block;
}
.result-score label {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 600;
}

/* Teacher Calendar */
.teacher-calendar {
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
}
.cal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.cal-header h4 {
  font-size: 16px;
  font-weight: 700;
}
.cal-header button {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  background: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--t);
}
.cal-header button:hover {
  border-color: var(--active-color);
  color: var(--active-color);
}
.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}
.cal-day {
  padding: 8px 4px;
  text-align: center;
  border-radius: var(--radius-xs);
  font-size: 12px;
  font-weight: 500;
  color: var(--text-mid);
}
.cal-day.head {
  font-weight: 700;
  color: var(--text-muted);
  font-size: 11px;
  text-transform: uppercase;
}
.cal-day.today {
  background: var(--active-color);
  color: #fff;
  font-weight: 700;
  border-radius: 50%;
  aspect-ratio: 1;
}
.cal-day.has-event {
  position: relative;
}
.cal-day.has-event::after {
  content: "";
  position: absolute;
  bottom: 2px;
  left: 50%;
  transform: translateX(-50%);
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--active-color);
}
.cal-legend {
  display: flex;
  gap: 16px;
  margin-top: 14px;
  flex-wrap: wrap;
}
.cal-legend span {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 500;
}
.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}
.math-dot {
  background: #2563eb;
}
.fen-dot {
  background: #059669;
}
.turkce-dot {
  background: #dc2626;
}

/* =================== YILLIK PLAN (Yearly Plan) =================== */
.yp-selectors {
  margin-bottom: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.yp-grade-pills {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.yp-grade-pill {
  border: 2px solid #e2e8f0;
  background: #fff;
  color: #64748b;
  padding: 9px 22px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 13.5px;
  cursor: pointer;
  transition: all 0.3s;
}

.yp-grade-pill:hover {
  border-color: var(--active-color);
  color: var(--active-color);
}

.yp-grade-pill.active {
  background: var(--active-color);
  border-color: var(--active-color);
  color: #fff;
  box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}

.yp-ders-pills {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.yp-ders-pill {
  border: 1.5px solid #e2e8f0;
  background: #f8fafc;
  color: #475569;
  padding: 8px 18px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 12.5px;
  cursor: pointer;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  gap: 7px;
}

.yp-ders-pill:hover {
  border-color: var(--active-color);
  color: var(--active-color);
  background: #fff;
}

.yp-ders-pill.active {
  background: #1e293b;
  border-color: #1e293b;
  color: #fff;
}

.yp-month-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-bottom: 20px;
}

.yp-month-nav h4 {
  font-size: 18px;
  font-weight: 800;
  color: #1e293b;
  min-width: 120px;
  text-align: center;
  letter-spacing: 1px;
}

.yp-month-nav button {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 2px solid #e2e8f0;
  background: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
  color: #64748b;
  font-size: 14px;
}

.yp-month-nav button:hover {
  border-color: var(--active-color);
  color: var(--active-color);
  background: #f8fafc;
}

.yp-weeks-container {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.yp-week-card {
  background: #fff;
  border: 1.5px solid #e2e8f0;
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.3s;
  cursor: pointer;
}

.yp-week-card:hover {
  border-color: var(--active-color);
  box-shadow: 0 4px 16px rgba(0,0,0,0.06);
}

.yp-week-card.open {
  border-color: var(--active-color);
  box-shadow: 0 6px 24px rgba(0,0,0,0.08);
}

.yp-week-header {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 20px;
}

.yp-week-num {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: var(--active-color);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 15px;
  flex-shrink: 0;
}

.yp-week-info {
  flex: 1;
  min-width: 0;
}

.yp-week-title {
  font-size: 13px;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 4px;
}

.yp-week-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 4px;
}

.yp-unite {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--active-color);
  background: rgba(139, 92, 246, 0.08);
  padding: 3px 10px;
  border-radius: 8px;
  display: inline-block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.yp-ds {
  font-size: 11px;
  font-weight: 600;
  color: #64748b;
  display: flex;
  align-items: center;
  gap: 4px;
}

.yp-konu {
  font-size: 12.5px;
  color: #475569;
  font-weight: 500;
  line-height: 1.4;
}

.yp-chevron {
  color: #94a3b8;
  font-size: 13px;
  transition: transform 0.3s;
  flex-shrink: 0;
  margin-top: 12px;
}

.yp-week-card.open .yp-chevron {
  transform: rotate(180deg);
  color: var(--active-color);
}

.yp-week-body {
  display: none;
  padding: 0 20px 18px 72px;
  border-top: 1px solid #f1f5f9;
}

.yp-week-card.open .yp-week-body {
  display: block;
  animation: fadeIn 0.3s ease;
}

.yp-detail {
  margin-top: 12px;
}

.yp-detail-label {
  font-size: 10.5px;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--active-color);
  letter-spacing: 0.5px;
  display: block;
  margin-bottom: 4px;
}

.yp-detail p {
  font-size: 12.5px;
  color: #334155;
  line-height: 1.6;
  margin: 0;
  white-space: pre-line;
}

.yp-kzn-item {
  font-size: 12.5px;
  color: #334155;
  line-height: 1.6;
  margin-top: 4px;
}

.yp-kzn-item strong {
  color: #1e293b;
}

/* Tatil Kartı */
.yp-tatil {
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  border-color: #f59e0b;
  cursor: default;
}

.yp-tatil .yp-week-header.tatil-header {
  gap: 12px;
  align-items: center;
  color: #92400e;
  font-weight: 700;
  font-size: 14px;
}

.yp-tatil .tatil-header i {
  font-size: 20px;
  color: #f59e0b;
}

.yp-empty {
  text-align: center;
  padding: 40px 20px;
  color: #94a3b8;
  font-size: 14px;
  font-weight: 500;
}

@media (max-width: 700px) {
  .yp-week-body {
    padding-left: 20px;
  }
  .yp-grade-pill {
    padding: 7px 16px;
    font-size: 12.5px;
  }
  .yp-ders-pill {
    padding: 6px 14px;
    font-size: 11.5px;
  }
  .yp-unite {
    white-space: normal;
  }
}

/* ============ ORJİN BİLGİ PAGE ============ */
.bilgi-header-bar {
  background: linear-gradient(135deg, #f59e0b, #d97706);
}
.bilgi-header-bar h2 {
  color: #fff;
}

.bilgi-layout {
  display: flex;
  gap: 24px;
  padding: 24px 0;
  min-height: 60vh;
}

.bilgi-sidebar {
  width: 240px;
  flex-shrink: 0;
  background: #fff;
  border: 1.5px solid #e2e8f0;
  border-radius: 16px;
  padding: 20px;
  height: fit-content;
  position: sticky;
  top: 80px;
}

.bilgi-filter-group {
  margin-bottom: 20px;
}
.bilgi-filter-group:last-child {
  margin-bottom: 0;
}

.bilgi-filter-group h4 {
  font-size: 13px;
  font-weight: 800;
  color: #1e293b;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 10px;
  padding-bottom: 6px;
  border-bottom: 2px solid #f1f5f9;
}

.bilgi-filter-group label {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 0;
  font-size: 14px;
  font-weight: 500;
  color: #475569;
  cursor: pointer;
}

.bilgi-filter-group label:hover {
  color: #1e293b;
}

.bilgi-filter-group input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: #f59e0b;
  cursor: pointer;
}

.bilgi-content {
  flex: 1;
  min-width: 0;
}

.bilgi-count {
  font-size: 13px;
  font-weight: 600;
  color: #94a3b8;
  margin-bottom: 16px;
}

.bilgi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

.bilgi-card {
  background: #fff;
  border: 1.5px solid #e2e8f0;
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.2s;
}
.bilgi-card:hover {
  border-color: #f59e0b;
  box-shadow: 0 4px 16px rgba(245,158,11,0.12);
  transform: translateY(-2px);
}

.bilgi-card-cover {
  width: 100%;
  height: 160px;
  overflow: hidden;
  background: #f1f5f9;
}
.bilgi-card-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.bilgi-cover-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #e2e8f0, #cbd5e1);
  color: #fff;
  font-size: 36px;
}

.bilgi-card-body {
  padding: 16px;
}

.bilgi-card-badges {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.bilgi-sinif-badge {
  font-size: 11px;
  font-weight: 700;
  color: #64748b;
  background: #f1f5f9;
  padding: 2px 8px;
  border-radius: 99px;
}

.bilgi-ders-badge {
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  padding: 2px 10px;
  border-radius: 99px;
}

.bilgi-card-title {
  font-size: 15px;
  font-weight: 800;
  color: #1e293b;
  margin-bottom: 8px;
}

.bilgi-card-action {
  margin-top: 10px;
  font-size: 13px;
  font-weight: 600;
  color: #e74c3c;
  display: flex;
  align-items: center;
  gap: 6px;
}

.bilgi-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.bilgi-tag {
  font-size: 11px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 99px;
  background: #f8fafc;
  color: #64748b;
  border: 1px solid #e2e8f0;
}

.bilgi-empty {
  text-align: center;
  padding: 60px 20px;
  color: #94a3b8;
}
.bilgi-empty i {
  font-size: 40px;
  margin-bottom: 12px;
  display: block;
}
.bilgi-empty p {
  font-size: 15px;
  font-weight: 500;
}

@media (max-width: 768px) {
  .bilgi-layout {
    flex-direction: column;
  }
  .bilgi-sidebar {
    width: 100%;
    position: static;
  }
  .bilgi-filter-group {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 12px;
    align-items: center;
  }
  .bilgi-filter-group h4 {
    width: 100%;
    border-bottom: none;
    margin-bottom: 4px;
    padding-bottom: 0;
  }
  .bilgi-grid {
    grid-template-columns: 1fr;
  }
  .bilgi-link span { display: none; }
}

/* ============ DİJİTAL ARAÇLAR PREVIEW + FULLSCREEN ============ */
.da-preview-card {
  background: #fff;
  border: 1.5px solid #e2e8f0;
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.2s;
}
.da-preview-card:hover {
  border-color: var(--active-color);
  box-shadow: 0 6px 20px rgba(0,0,0,0.08);
  transform: translateY(-3px);
}

.da-preview-frame {
  width: 100%;
  height: 180px;
  overflow: hidden;
  position: relative;
  background: #f1f5f9;
}

.da-preview-loading {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: #94a3b8;
  z-index: 1;
}

.da-preview-iframe {
  width: 200%;
  height: 200%;
  border: none;
  transform: scale(0.5);
  transform-origin: top left;
  pointer-events: none;
  filter: blur(2px);
  opacity: 0;
  transition: opacity 0.4s;
}

.da-preview-frame.loaded .da-preview-iframe {
  opacity: 1;
}
.da-preview-frame.loaded .da-preview-loading {
  display: none;
}

.da-preview-info {
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.da-preview-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 15px;
  flex-shrink: 0;
}
.da-preview-info strong {
  font-size: 14px;
  color: #1e293b;
  display: block;
}
.da-preview-info span {
  font-size: 12px;
  color: #64748b;
}

/* Fullscreen overlay */
.da-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: #0f172a;
  display: flex;
}
.da-sidebar {
  width: 48px;
  background: #1e293b;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 12px 0;
  gap: 8px;
  flex-shrink: 0;
}
.da-sidebar-btn {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: none;
  background: #334155;
  color: #e2e8f0;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
}
.da-sidebar-btn:hover {
  background: #475569;
}
.da-close-btn:hover {
  background: #ef4444;
  color: #fff;
}
.da-iframe {
  flex: 1;
  border: none;
  background: #fff;
}

@media (max-width: 700px) {
  .da-preview-frame { height: 140px; }
  .da-sidebar { width: 40px; }
  .da-sidebar-btn { width: 32px; height: 32px; font-size: 12px; }
}

/* MEB Subcategory Pills */
.meb-subcat-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 12px 0 16px;
}

.meb-subcat-pill {
  padding: 6px 16px;
  border-radius: 20px;
  border: 1.5px solid #e2e8f0;
  background: #f8fafc;
  color: #475569;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}

.meb-subcat-pill:hover {
  border-color: var(--active-color);
  color: var(--active-color);
}

.meb-subcat-pill.active {
  background: var(--active-color);
  border-color: var(--active-color);
  color: #fff;
}

.meb-subcat-pill.mebi-pill {
  border-color: #10b981;
  color: #059669;
  background: #ecfdf5;
}
.meb-subcat-pill.mebi-pill:hover {
  background: #d1fae5;
  border-color: #059669;
  color: #047857;
}
.meb-subcat-pill.mebi-pill.active {
  background: #10b981;
  border-color: #10b981;
  color: #fff;
}

.meb-group-header {
  font-size: 13px;
  font-weight: 700;
  color: #64748b;
  padding: 10px 4px 6px;
  border-bottom: 1px solid #f1f5f9;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* ============ YP PHONE-STYLE CALENDAR ============ */
.yp-calendar-wrap {
  background: #fff;
  border: 1.5px solid #e2e8f0;
  border-radius: 20px;
  overflow: hidden;
  margin-bottom: 16px;
}

.yp-cal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  border-bottom: 1px solid #f1f5f9;
  background: #f8fafc;
}

.yp-cal-header span {
  font-size: 16px;
  font-weight: 800;
  color: #1e293b;
  letter-spacing: 0.5px;
}

.yp-cal-header button {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1.5px solid #e2e8f0;
  background: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  color: #64748b;
  transition: all 0.2s;
}

.yp-cal-header button:hover {
  border-color: var(--active-color);
  color: var(--active-color);
}

.yp-cal-grid {
  padding: 8px 12px 12px;
}

.ypc-day-headers {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  margin-bottom: 4px;
}

.ypc-day-hdr {
  text-align: center;
  font-size: 11px;
  font-weight: 700;
  color: #94a3b8;
  padding: 4px 0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.ypc-week-row {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  border-radius: 10px;
  margin-bottom: 2px;
  transition: background 0.15s;
}

.ypc-week-row.today-week {
  background: #f0f9ff;
  outline: 1.5px solid #bae6fd;
  outline-offset: -1px;
}

.ypc-week-row.selected {
  background: #ede9fe;
  outline: 2px solid var(--active-color);
  outline-offset: -1px;
}

.ypc-week-row:hover:not(.selected) {
  background: #f8fafc;
}

.ypc-day {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 5px 2px;
  min-height: 44px;
  gap: 3px;
}

.ypc-day-num {
  font-size: 13px;
  font-weight: 600;
  color: #334155;
  line-height: 1;
}

.ypc-other-month .ypc-day-num {
  color: #cbd5e1;
}

.ypc-today .ypc-day-num {
  background: var(--active-color);
  color: #fff;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
}

.ypc-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  display: block;
}

.yp-week-detail {
  margin-top: 8px;
}

.yp-detail-card {
  background: #fff;
  border: 1.5px solid #e2e8f0;
  border-radius: 16px;
  padding: 20px;
  animation: fadeIn 0.2s ease;
}

.yp-detail-card.yp-tatil-detail {
  background: #fef9c3;
  border-color: #fde047;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
  font-weight: 600;
  color: #92400e;
}

.yp-detail-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.yp-detail-week-num {
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: 20px;
  white-space: nowrap;
}

.yp-detail-week-title {
  font-size: 14px;
  font-weight: 700;
  color: #1e293b;
}

.yp-detail-meta {
  margin-bottom: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

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

@media (max-width: 700px) {
  .ypc-day { min-height: 36px; padding: 3px 1px; }
  .ypc-day-num { font-size: 11px; }
  .ypc-today .ypc-day-num { width: 22px; height: 22px; font-size: 11px; }
  .ypc-day-hdr { font-size: 9px; }
  .yp-cal-header span { font-size: 14px; }
}

/* Tool Card */
.tool-card {
  padding: 22px;
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  text-align: center;
  cursor: pointer;
}
.tool-ico {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--active-light);
  color: var(--active-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  margin: 0 auto 12px;
  transition: all 0.4s;
}
.tool-card:hover .tool-ico {
  background: var(--active-color);
  color: #fff;
}
.tool-card strong {
  display: block;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 4px;
}
.tool-card span {
  font-size: 12px;
  color: var(--text-muted);
}

/* Feedback Form */
.feedback-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.form-field label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 5px;
}
.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 14px;
  outline: none;
  transition: border-color var(--t);
  background: #fff;
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: var(--active-color);
}
.form-field textarea {
  resize: vertical;
}

/* About */
.about-content p {
  font-size: 14px;
  color: var(--text-mid);
  line-height: 1.8;
  margin-bottom: 24px;
  max-width: 720px;
}
.about-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.about-stats > div {
  text-align: center;
  padding: 18px;
  background: var(--active-light);
  border-radius: var(--radius);
  transition: background 0.4s;
}
.about-stats strong {
  display: block;
  font-size: 24px;
  font-weight: 800;
  color: var(--active-color);
  transition: color 0.4s;
}
.about-stats span {
  font-size: 12px;
  color: var(--text-muted);
}

/* =================== FOOTER =================== */
.site-footer {
  background: linear-gradient(160deg, #0f172a, #1e1b4b);
  color: rgba(255, 255, 255, 0.7);
}
.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding: 52px 24px 44px;
}
.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  margin-bottom: 14px;
}
.footer-logo .logo-main {
  color: #fff;
  font-size: 15px;
}
.footer-logo .logo-main strong {
  color: var(--accent);
}
.footer-logo-img {
  height: 32px;
  border-radius: 7px;
  border: 1px solid rgba(255, 255, 255, 0.15);
}
.footer-brand p {
  font-size: 13px;
  line-height: 1.75;
  max-width: 280px;
}
.footer-links h5 {
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 14px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}
.footer-links ul {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.footer-links li a {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
  transition: color var(--t);
}
.footer-links li a:hover {
  color: #fff;
}
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 16px 24px;
  text-align: center;
}
.footer-bottom p {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.35);
}

/* Toast */
.toast {
  position: fixed;
  bottom: 80px;
  right: 24px;
  background: var(--text);
  color: #fff;
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  box-shadow: var(--shadow-xl);
  transform: translateY(80px);
  opacity: 0;
  transition: all 0.3s;
  z-index: 9999;
  display: flex;
  align-items: center;
  gap: 8px;
}
.toast.show {
  transform: translateY(0);
  opacity: 1;
}
.toast.success {
  background: var(--success);
}

/* Back to Top */
.back-to-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 44px;
  height: 44px;
  background: var(--active-color);
  color: #fff;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  font-size: 17px;
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translateY(12px);
  transition: all var(--t);
  z-index: 998;
}
.back-to-top.visible {
  opacity: 1;
  transform: none;
}
.back-to-top:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

/* Plan Icon */
.plan-icon {
  background: linear-gradient(135deg, #0ea5e9, #38bdf8) !important;
}

/* =================== KUNYE HELP =================== */
.kunye-help-btn {
  background: none;
  border: none;
  color: var(--active-color);
  cursor: pointer;
  font-size: 14px;
  margin-left: 4px;
  transition: color var(--t);
}
.kunye-help-btn:hover {
  color: var(--active-dark);
}
.kunye-help-box {
  margin-top: 8px;
  background: linear-gradient(135deg, #eff6ff, #f0fdf4);
  border: 1.5px solid #bfdbfe;
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  animation: fadeIn 0.3s ease;
}
.kunye-help-inner {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.kunye-help-inner > i {
  color: var(--primary);
  font-size: 18px;
  margin-top: 2px;
  flex-shrink: 0;
}
.kunye-help-inner strong {
  display: block;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 4px;
}
.kunye-help-inner p {
  font-size: 12.5px;
  color: var(--text-mid);
  line-height: 1.6;
}

/* =================== PHOTO UPLOAD =================== */
.photo-upload-area {
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  padding: 20px;
  cursor: pointer;
  transition: all var(--t);
  text-align: center;
  min-height: 100px;
  position: relative;
}
.photo-upload-area:hover,
.photo-upload-area.dragover {
  border-color: var(--active-color);
  background: var(--active-light);
}
.photo-upload-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: var(--text-muted);
}
.photo-upload-placeholder i {
  font-size: 32px;
  color: var(--active-color);
  opacity: 0.6;
}
.photo-upload-placeholder p {
  font-size: 13px;
  font-weight: 600;
}
.photo-upload-placeholder span {
  font-size: 11px;
}
.photo-preview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
  gap: 10px;
}
.photo-preview-item {
  position: relative;
  border-radius: var(--radius-xs);
  overflow: hidden;
  aspect-ratio: 1;
  border: 2px solid var(--border);
}
.photo-preview-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.photo-preview-remove {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.65);
  color: #fff;
  border: none;
  cursor: pointer;
  font-size: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--t);
}
.photo-preview-remove:hover {
  background: #dc2626;
}

/* =================== NAV SPECIAL BUTTONS =================== */
.gnav-dijital {
  background: linear-gradient(135deg, #6d28d9, #a78bfa) !important;
  color: #fff !important;
  width: auto !important;
  padding: 0 10px !important;
  border-radius: var(--radius-full) !important;
  font-size: 12px !important;
}
.gnav-dijital:hover {
  opacity: 0.9;
  transform: scale(1.05);
}
.gnav-bireysel {
  background: linear-gradient(135deg, #0ea5e9, #38bdf8) !important;
  color: #fff !important;
  width: auto !important;
  padding: 0 10px !important;
  border-radius: var(--radius-full) !important;
  font-size: 12px !important;
}
.gnav-bireysel:hover {
  opacity: 0.9;
  transform: scale(1.05);
}

/* =================== SUB-NAVIGATION BAR =================== */
.sub-nav-bar {
  background: #fff;
  border-bottom: 1.5px solid var(--border);
  padding: 10px 0;
  position: sticky;
  top: 60px;
  z-index: 800;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}
.sub-nav-pills {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 2px;
  -webkit-overflow-scrolling: touch;
}
.snav {
  padding: 8px 16px;
  border-radius: var(--radius-full);
  border: 1.5px solid var(--border);
  background: #fff;
  cursor: pointer;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-mid);
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  transition: all var(--t);
}
.snav:hover {
  border-color: var(--active-color);
  color: var(--active-color);
  background: var(--active-light);
}
.snav.active {
  background: var(--active-color);
  color: #fff;
  border-color: var(--active-color);
}
.snav i {
  font-size: 11px;
}
.lgs-only-tab {
  background: linear-gradient(135deg, #7c3aed, #a78bfa) !important;
  color: #fff !important;
  border-color: #7c3aed !important;
}

/* Sub-tab content */
.sub-tab-content {
  display: none;
}
.sub-tab-content.active {
  display: block;
  animation: fadeIn 0.3s ease;
}

/* MEB SECTION - Premium Overhaul */
.hero-meb {
  background: var(--active-color) !important;
  position: relative;
  overflow: hidden;
  padding: 60px 40px 200px !important;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-meb::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 72%;
  background: linear-gradient(to bottom, transparent 0%, rgba(255,255,255,0.2) 25%, rgba(255,255,255,0.4) 100%);
  z-index: 0;
}

.meb-sub-tabs {
  background: rgba(255,255,255,0.98);
  backdrop-filter: blur(10px);
  padding: 8px;
  border-radius: 20px;
  display: inline-flex;
  flex-wrap: wrap;
  gap: 6px;
  box-shadow: 0 10px 35px rgba(0,0,0,0.1);
  z-index: 10;
  margin-bottom: 45px;
  border: 1px solid rgba(0,0,0,0.04);
  justify-content: center;
}

.meb-tab {
  border: none;
  background: transparent;
  color: #64748b;
  padding: 11px 26px;
  border-radius: 45px;
  font-weight: 700;
  font-size: 13.5px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 9px;
  white-space: nowrap;
}

.meb-tab i { 
  font-size: 16px; 
  transition: all 0.3s; 
  opacity: 0.75; 
}

.meb-tab:hover { 
  background: rgba(0,0,0,0.03); 
  color: var(--active-color); 
  transform: translateY(-1px);
}

.meb-tab.active {
  background: var(--active-color) !important;
  color: #fff !important;
  box-shadow: 0 5px 15px rgba(0,0,0,0.14);
}

.meb-tab.active i { 
  opacity: 1; 
}

.meb-cards-container { 
  width: 100%; 
  max-width: 850px;
  z-index: 10;
  margin: 0 auto;
}

.meb-resource-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

/* Specific Resource Card for MEB - Premium Overhaul */
.meb-resource-card {
  background: rgba(255,255,255,0.98);
  backdrop-filter: blur(10px);
  border-radius: 24px;
  display: flex;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  min-height: 200px;
  border: 1px solid rgba(0, 0, 0, 0.02);
  position: relative;
}

.meb-resource-card:hover { 
  transform: translateY(-3px); 
  box-shadow: 0 12px 35px rgba(0,0,0,0.1);
}

.mrc-main {
  flex: 1;
  padding: 26px 28px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  justify-content: flex-start;
  gap: 14px;
  padding-right: 80px;
}

.mrc-icon-box {
  width: 56px;
  height: 56px;
  background: var(--active-color);
  color: #fff;
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.mrc-info {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
}

.mrc-info h4 {
  font-size: 15px;
  font-weight: 800;
  color: #1e293b;
  margin: 0;
  line-height: 1.4;
}

.mrc-info p {
  font-size: 11.5px;
  color: #94a3b8;
  line-height: 1.6;
  font-weight: 500;
  margin: 0;
}

.mrc-right-bar {
  position: absolute;
  top: 0;
  right: 5px;
  bottom: 0;
  width: 65px;
  background: linear-gradient(to bottom, var(--active-color) 0%, rgba(255,255,255,0.4) 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
  color: var(--active-color);
  border-radius: 0;
}

.mrc-grade {
  font-size: 12.5px;
  font-weight: 800;
  text-align: center;
  line-height: 1.3;
  white-space: nowrap;
  color: #fff;
}

.mrc-dl-icon {
  font-size: 24px;
  color: var(--active-color);
  opacity: 0.85;
}

.meb-sub-content { display: none; }
.meb-sub-content.active { display: block; animation: fadeIn 0.4s ease; }

/* =================== MEB FILE CARDS =================== */
.meb-file-card {
  background: rgba(255,255,255,0.98);
  backdrop-filter: blur(10px);
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  border: 1px solid rgba(0,0,0,0.04);
  box-shadow: 0 4px 14px rgba(0,0,0,0.05);
}

.meb-file-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.1);
  border-color: var(--active-color);
}

.mfc-thumb {
  width: 100%;
  aspect-ratio: 3/4;
  overflow: hidden;
  background: #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.mfc-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}

.mfc-thumb-placeholder {
  font-size: 40px;
  color: #cbd5e1;
}

.mfc-cevap-btn {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: linear-gradient(135deg, #10b981, #059669);
  color: #fff;
  font-size: 10.5px;
  font-weight: 700;
  padding: 5px 10px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 5px;
  z-index: 2;
  box-shadow: 0 2px 8px rgba(0,0,0,0.25);
  transition: transform 0.2s, box-shadow 0.2s;
  text-decoration: none;
  cursor: pointer;
  line-height: 1.2;
}
.mfc-cevap-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 14px rgba(16,185,129,0.45);
}
.mfc-cevap-btn i {
  font-size: 11px;
}
.mfc-video-btn {
  position: absolute;
  bottom: 8px;
  left: 8px;
  background: linear-gradient(135deg, #f97316, #ea580c);
  color: #fff;
  font-size: 10.5px;
  font-weight: 700;
  padding: 5px 10px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 5px;
  box-shadow: 0 2px 8px rgba(249,115,22,0.35);
  z-index: 2;
  pointer-events: none;
}
.mfc-video-btn i {
  font-size: 11px;
}

.video-soru-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 4px 0 12px;
}

/* =================== PDF PREVIEW MODAL =================== */
.pdf-preview-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(6px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.25s ease;
}
.pdf-preview-modal {
  background: #fff;
  border-radius: 20px;
  max-width: 420px;
  width: 90%;
  max-height: 90vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
  position: relative;
  animation: slideUp 0.3s ease;
}
@keyframes slideUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
.pdf-preview-close {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(0,0,0,0.5);
  color: #fff;
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 16px;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}
.pdf-preview-close:hover { background: rgba(0,0,0,0.7); }
.pdf-preview-image-wrap {
  width: 100%;
  aspect-ratio: 3/4;
  background: #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}
.pdf-preview-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.pdf-preview-placeholder {
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: #94a3b8;
  font-size: 14px;
}
.pdf-preview-placeholder i { font-size: 48px; }
.pdf-preview-placeholder.active {
  display: flex;
}
.pdf-preview-title {
  padding: 14px 18px 4px;
  font-size: 14px;
  font-weight: 700;
  color: #1e293b;
  line-height: 1.4;
  text-align: center;
}
.pdf-preview-actions {
  padding: 12px 18px 18px;
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}
.pdf-preview-download {
  flex: 1;
  min-width: 140px;
  padding: 12px 18px;
  border: none;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: transform 0.2s, box-shadow 0.2s;
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  color: #fff;
}
.pdf-preview-download:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(59,130,246,0.4);
}
.pdf-preview-cevap {
  flex: 1;
  min-width: 140px;
  padding: 12px 18px;
  border: none;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: transform 0.2s, box-shadow 0.2s;
  background: linear-gradient(135deg, #10b981, #059669);
  color: #fff;
}
.pdf-preview-cevap:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(16,185,129,0.4);
}
.pdf-preview-video {
  flex: 1;
  min-width: 140px;
  padding: 12px 18px;
  border: none;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: transform 0.2s, box-shadow 0.2s;
  background: linear-gradient(135deg, #f97316, #ea580c);
  color: #fff;
}
.pdf-preview-video:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(249,115,22,0.4);
}

/* =================== VIDEO MODAL =================== */
.video-modal-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(6px);
  z-index: 10000;
  display: flex; align-items: center; justify-content: center;
  animation: fadeIn 0.25s ease;
}
.video-modal {
  background: #fff;
  border-radius: 20px;
  max-width: 500px; width: 92%;
  max-height: 85vh;
  display: flex; flex-direction: column;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
  position: relative;
  animation: slideUp 0.3s ease;
  overflow: hidden;
}
.video-modal-close {
  position: absolute; top: 12px; right: 12px;
  background: rgba(0,0,0,0.5); color: #fff;
  border: none; width: 36px; height: 36px; border-radius: 50%;
  font-size: 16px; cursor: pointer; z-index: 10;
  display: flex; align-items: center; justify-content: center;
}
.video-modal-close:hover { background: rgba(0,0,0,0.7); }
.video-modal-header {
  padding: 20px 20px 12px;
  font-size: 16px; font-weight: 800; color: #1e293b;
}
.video-modal-list {
  padding: 0 12px 16px;
  overflow-y: auto;
  display: flex; flex-direction: column; gap: 6px;
}
.video-sayfa-group {
  margin-bottom: 4px;
}
.video-sayfa-title {
  font-size: 12px; font-weight: 700; color: #64748b;
  padding: 6px 8px; text-transform: uppercase; letter-spacing: 0.5px;
}
.video-soru-btn {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px;
  background: #f8fafc; border: 1px solid #e2e8f0;
  border-radius: 12px; cursor: pointer;
  transition: all 0.2s; width: 100%;
  font-size: 13px; font-weight: 600; color: #334155;
}
.video-soru-btn:hover {
  background: #fff7ed; border-color: #f97316;
  transform: translateX(4px);
}
.video-soru-btn i {
  color: #f97316; font-size: 18px;
}

/* =================== VIDEO PLAYER =================== */
.video-player-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.85);
  z-index: 10001;
  display: flex; align-items: center; justify-content: center;
  animation: fadeIn 0.2s ease;
}
.video-player-modal {
  max-width: 720px; width: 95%;
  position: relative;
}
.video-player-title {
  color: #fff; font-size: 14px; font-weight: 700;
  padding: 0 0 10px; text-align: center;
}
.video-player-modal video {
  width: 100%; border-radius: 12px;
  background: #000; max-height: 80vh;
}

.mfc-info {
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.mfc-title {
  font-size: 12.5px;
  font-weight: 700;
  color: #1e293b;
  margin: 0;
  line-height: 1.35;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.mfc-badge {
  display: inline-block;
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
  background: #f1f5f9;
  color: #64748b;
  padding: 2px 8px;
  border-radius: 6px;
  width: fit-content;
  letter-spacing: 0.5px;
}

.meb-empty {
  text-align: center;
  padding: 40px 20px;
  color: #94a3b8;
  font-size: 14px;
  font-weight: 500;
}

.orjin-acik-container {
  width: 100%;
  max-width: 850px;
  z-index: 10;
  position: relative;
}

.orjin-acik-group {
  margin-bottom: 24px;
}

.orjin-acik-group-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 700;
  color: #e2e8f0;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid rgba(255,255,255,0.1);
}

.orjin-acik-group-title i {
  font-size: 16px;
}

/* =================== YAYINLAR (Publications) SECTION =================== */
.hero-yayinlar {
  background: var(--active-color) !important;
  position: relative;
  overflow: hidden;
  padding: 60px 40px 200px !important;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-yayinlar::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 70%;
  background: linear-gradient(to bottom, transparent 0%, rgba(255,255,255,0.18) 22%, rgba(255,255,255,0.38) 100%);
  z-index: 0;
}

.yayin-featured-container {
  display: flex;
  gap: 26px;
  width: 100%;
  max-width: 850px;
  z-index: 10;
  margin-top: 0;
  flex-wrap: wrap;
  justify-content: center;
}

.yayin-promo-card {
  flex: 1;
  min-width: 400px;
  background: rgba(255,255,255,0.98);
  backdrop-filter: blur(10px);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0,0,0,0.06);
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  border: 1px solid rgba(0,0,0,0.02);
  position: relative;
  min-height: 200px;
}

.yayin-promo-card:hover { 
  transform: translateY(-3px); 
  box-shadow: 0 12px 35px rgba(0,0,0,0.1);
}

.ypc-main { 
  display: flex; 
  height: 100%;
  min-height: 200px;
}

.ypc-info {
  flex: 1;
  padding: 26px 28px;
  padding-right: 90px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 14px;
}

.ypc-info-top {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ypc-info-top h3 { 
  font-size: 15px; 
  font-weight: 800; 
  color: #1e293b; 
  margin: 0;
  line-height: 1.4; 
}

.ypc-info-top p { 
  font-size: 11.5px; 
  color: #94a3b8; 
  line-height: 1.6; 
  font-weight: 500;
  margin: 0;
}

.ypc-cta-btn {
  align-self: flex-start;
  padding: 10px 32px;
  background: var(--active-color);
  color: #fff;
  border: none;
  border-radius: 45px;
  font-weight: 800;
  font-size: 12.5px;
  cursor: pointer;
  transition: all 0.3s;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  text-transform: capitalize;
  margin-top: auto;
}

.ypc-cta-btn:hover { 
  transform: scale(1.05); 
  box-shadow: 0 6px 18px rgba(0,0,0,0.12);
}

.ypc-side {
  position: absolute;
  top: 0;
  right: 15px;
  bottom: 0;
  width: 65px;
  background: linear-gradient(to bottom, var(--active-color) 0%, rgba(255,255,255,0.4) 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
  border-radius: 0;
}

.ypc-icon-badge {
  width: 48px;
  height: 48px;
  background: rgba(255,255,255,0.25);
  backdrop-filter: blur(6px);
  color: #fff;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
}

.ypc-back-icon { 
  font-size: 24px; 
  color: var(--active-color); 
  opacity: 0.85; 
}


/* Book Cards Section */
.book-carousel-section {
  width: 100%;
  max-width: 850px;
  background: rgba(255,255,255,0.98);
  backdrop-filter: blur(10px);
  margin-top: 40px;
  border-radius: 28px;
  border: 1px solid rgba(0,0,0,0.05);
  padding: 40px 35px;
  z-index: 10;
  box-shadow: 0 12px 40px rgba(0,0,0,0.1);
}

.book-thumbs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 20px;
}

.book-thumb-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  cursor: default;
  transition: transform 0.3s;
}

.book-thumb-card:hover {
  transform: translateY(-6px);
}

.book-thumb-card img {
  width: 100%;
  aspect-ratio: 0.78;
  object-fit: contain;
  border-radius: 10px;
  filter: drop-shadow(0 4px 12px rgba(0,0,0,0.15));
  transition: filter 0.3s;
}

.book-thumb-card:hover img {
  filter: drop-shadow(0 8px 20px rgba(0,0,0,0.25));
}

.book-thumb-title {
  margin-top: 10px;
  font-size: 11px;
  font-weight: 600;
  color: #475569;
  line-height: 1.3;
}

/* =================== DIJITAL TOOLS GRID =================== */
.dijital-tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
}
.dijital-tool-box {
  background: #fff;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 20px;
  text-align: center;
  cursor: pointer;
  transition: all var(--t);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.dijital-tool-box:hover {
  border-color: var(--active-color);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.dtb-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, #6d28d9, #a78bfa);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
}
.dijital-tool-box strong {
  font-size: 14px;
  font-weight: 800;
}
.dijital-tool-box span {
  font-size: 11px;
  color: var(--text-muted);
}

/* Bireysel / Dijital / Hakkimizda header bars */
.bireysel-header-bar {
  background: linear-gradient(135deg, #0ea5e9, #38bdf8) !important;
}
.dijital-header-bar {
  background: linear-gradient(135deg, #6d28d9, #a78bfa) !important;
}
.hakkimizda-header-bar {
  background: linear-gradient(135deg, #475569, #64748b) !important;
}
.bireysel-sub-nav .snav.active {
  background: #0ea5e9;
  border-color: #0ea5e9;
}
.bireysel-sub-nav .snav:hover {
  border-color: #0ea5e9;
  color: #0ea5e9;
}
.bireysel-tab-content {
  display: none;
}
.bireysel-tab-content.active {
  display: block;
  animation: fadeIn 0.3s ease;
}

/* Grade Countdown Section Styles (specifically for 8th grade) */
.grade-countdown {
  margin-bottom: 25px;
  width: 100%;
}

.countdown-cards {
  display: flex;
  gap: 20px;
  width: 100%;
}

.countdown-card {
  flex: 1;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  padding: 15px 20px;
  border: 1px solid rgba(0, 0, 0, 0.05);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
}

/* Modifier: compact-countdown used in grade page */
.compact-countdown .countdown-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.compact-countdown .countdown-header i {
  font-size: 16px;
  color: var(--active-color);
}

.compact-countdown .countdown-header h3 {
  font-size: 14px;
  font-weight: 800;
  color: #1e293b;
  margin: 0;
}

.compact-countdown .countdown-timer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.compact-countdown .time-block {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: #f8fafc;
  border-radius: 12px;
  padding: 6px 0;
}

.compact-countdown .time-block span {
  font-size: 20px;
  font-weight: 900;
  color: #1e293b;
  line-height: 1;
}

.compact-countdown .time-block label {
  font-size: 9px;
  font-weight: 700;
  color: #94a3b8;
  text-transform: uppercase;
  margin-top: 2px;
}

.compact-countdown .time-sep {
  font-size: 18px;
  font-weight: 900;
  color: #cbd5e1;
  padding-bottom: 15px; /* Offset for labels */
}

/* Grade specific background for lgs/burs cards in 8th grade */
.lgs-card { border-left: 4px solid #8b5cf6; }
.burs-card { border-left: 4px solid #fb923c; }

@media (max-width: 768px) {
  .countdown-cards {
    flex-direction: column;
    gap: 10px;
  }
}

/* Optik tool box badge */
.coming-badge-sm {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, #7c3aed, #a78bfa);
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  margin-top: 4px;
}
.dtb-optik {
  background: linear-gradient(135deg, #7c3aed, #a78bfa) !important;
}

/* =================== SORU TAKİP (QUESTION TRACKER) =================== */
.soru-takip-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.soru-takip-date {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}
.soru-takip-date h4 {
  font-size: 16px;
  font-weight: 700;
  min-width: 160px;
  text-align: center;
}
.soru-takip-date button {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  background: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--t);
}
.soru-takip-date button:hover {
  border-color: var(--active-color);
  color: var(--active-color);
}

.soru-takip-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 12px;
}
.soru-takip-field {
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px;
}
.soru-takip-field label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-mid);
  margin-bottom: 6px;
}
.soru-takip-field input {
  width: 100%;
  padding: 9px 12px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-xs);
  font-size: 16px;
  font-weight: 700;
  outline: none;
  text-align: center;
  transition: border-color var(--t);
}
.soru-takip-field input:focus {
  border-color: var(--active-color);
}

.st-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}
.turkce-bg {
  background: #dc2626;
}
.mat-bg {
  background: #2563eb;
}
.fen-bg {
  background: #059669;
}
.ink-bg {
  background: #d97706;
}
.din-bg {
  background: #8b5cf6;
}
.ing-bg {
  background: #0ea5e9;
}

.soru-takip-summary {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.st-total {
  text-align: center;
  padding: 16px;
  background: linear-gradient(135deg, var(--active-light), #fff);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
}
.st-total span {
  display: block;
  font-size: 28px;
  font-weight: 900;
  color: var(--active-color);
}
.st-total label {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 600;
  margin-top: 4px;
  display: block;
}

.soru-takip-chart {
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 20px;
}
.soru-takip-chart h5 {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-mid);
}
.st-bars {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  height: 140px;
}
.st-bar-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  height: 100%;
}
.st-bar-wrapper {
  flex: 1;
  width: 100%;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.st-bar {
  width: 100%;
  max-width: 40px;
  border-radius: var(--radius-xs) var(--radius-xs) 0 0;
  background: linear-gradient(180deg, var(--active-color), var(--active-dark));
  min-height: 4px;
  transition: height 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.st-bar-label {
  font-size: 10px;
  color: var(--text-muted);
  font-weight: 600;
  white-space: nowrap;
}
.st-bar-value {
  font-size: 11px;
  font-weight: 700;
  color: var(--text);
}

/* =================== STUDY PLANNER =================== */
.study-planner {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.sp-date-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}
.sp-date-nav h4 {
  font-size: 16px;
  font-weight: 700;
  min-width: 240px;
  text-align: center;
}
.sp-date-nav button {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  background: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--t);
}
.sp-date-nav button:hover {
  border-color: var(--active-color);
  color: var(--active-color);
}
.sp-week-btn {
  width: auto !important;
  padding: 7px 14px !important;
  border-radius: var(--radius-full) !important;
  font-size: 12px;
  font-weight: 600;
  gap: 6px;
  display: flex !important;
  align-items: center;
}
.sp-week-btn.active {
  background: var(--active-color) !important;
  color: #fff !important;
  border-color: var(--active-color) !important;
}

.sp-period {
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 8px;
}
.sp-period-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}
.sp-period-header i {
  font-size: 18px;
  color: var(--active-color);
}
.sp-period-header h5 {
  font-size: 15px;
  font-weight: 700;
  flex: 1;
}
.sp-add-btn {
  background: var(--active-light);
  color: var(--active-color);
  border: 1.5px solid transparent;
  padding: 5px 12px;
  border-radius: var(--radius-full);
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: all var(--t);
}
.sp-add-btn:hover {
  background: var(--active-color);
  color: #fff;
}

.sp-task-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-height: 24px;
}

.sp-task {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  transition: all var(--t);
  animation: fadeIn 0.3s ease;
}
.sp-task.completed {
  opacity: 0.5;
  text-decoration: line-through;
}
.sp-task-check {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid var(--border);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--t);
  flex-shrink: 0;
  font-size: 10px;
  color: transparent;
}
.sp-task-check:hover {
  border-color: var(--active-color);
}
.sp-task.completed .sp-task-check {
  background: var(--success);
  border-color: var(--success);
  color: #fff;
}
.sp-task-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.sp-task-subject {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
}
.sp-task-type {
  font-size: 11px;
  color: var(--text-muted);
}
.sp-task-duration {
  font-size: 11px;
  color: var(--active-color);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 4px;
}
.sp-task-actions {
  display: flex;
  gap: 4px;
}
.sp-task-actions button {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: none;
  background: var(--bg);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: var(--text-muted);
  transition: all var(--t);
}
.sp-task-actions button:hover {
  background: var(--active-light);
  color: var(--active-color);
}
.sp-task-actions button.delete-btn:hover {
  background: #fef2f2;
  color: #dc2626;
}
.sp-task-actions button.tomorrow-btn:hover {
  background: #eff6ff;
  color: #2563eb;
}

/* Task add modal */
.sp-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.2s ease;
}
.sp-modal {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 28px;
  width: 90%;
  max-width: 400px;
  box-shadow: var(--shadow-xl);
  animation: slideUp 0.3s ease;
}
.sp-modal h4 {
  font-size: 17px;
  font-weight: 800;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.sp-modal .form-field {
  margin-bottom: 12px;
}
.sp-modal-actions {
  display: flex;
  gap: 10px;
  margin-top: 18px;
}
.sp-modal-actions .btn {
  flex: 1;
}
.btn-secondary {
  background: var(--bg);
  color: var(--text);
  border: 1.5px solid var(--border);
}
.btn-secondary:hover {
  background: var(--border);
}

/* Catchup box */
.sp-catchup {
  background: linear-gradient(135deg, #fef3c7, #fff7ed);
  border: 1.5px dashed #f59e0b;
  border-radius: var(--radius);
  padding: 16px;
}
.catchup-header i {
  color: #d97706 !important;
}

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

/* Week View */
.sp-week-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px;
}
.sp-week-day {
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px;
  min-height: 120px;
}
.sp-week-day.today {
  border-color: var(--active-color);
  background: var(--active-light);
}
.sp-week-day-header {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-mid);
  margin-bottom: 8px;
  text-align: center;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--border);
}
.sp-week-day-header span {
  display: block;
  font-size: 18px;
  font-weight: 800;
  color: var(--text);
  margin-top: 2px;
}
.sp-week-task {
  font-size: 10px;
  padding: 4px 6px;
  background: #fff;
  border-radius: 4px;
  margin-bottom: 3px;
  border-left: 3px solid var(--active-color);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* =================== DİJİTAL İÇERİKLER =================== */

/* Yüzlük Tablo */
.yuzluk-controls {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}
.yuzluk-grid {
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  gap: 3px;
}
.yuzluk-cell {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s;
  background: #fff;
  border: 1.5px solid var(--border);
  color: var(--text);
  user-select: none;
}
.yuzluk-cell:hover {
  border-color: var(--active-color);
  transform: scale(1.08);
}
.yuzluk-cell.selected {
  background: var(--active-color);
  color: #fff;
  border-color: var(--active-color);
}

/* Net Hesaplama */
.net-calc-row {
  display: flex;
  align-items: flex-end;
  gap: 14px;
}
.net-calc-row .form-field {
  flex: 1;
}
.net-result {
  text-align: center;
  min-width: 90px;
  padding: 8px;
  background: #fff;
  border: 2px solid var(--active-color);
  border-radius: var(--radius-sm);
}
.net-result span {
  display: block;
  font-size: 24px;
  font-weight: 900;
  color: var(--active-color);
}
.net-result label {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 600;
}

/* Rastgele Öğrenci */
.random-student {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.random-student textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 13px;
  resize: vertical;
  outline: none;
  transition: border-color var(--t);
}
.random-student textarea:focus {
  border-color: var(--active-color);
}
.random-result {
  text-align: center;
  padding: 20px;
  background: linear-gradient(135deg, var(--active-light), #fff);
  border: 2px solid var(--active-color);
  border-radius: var(--radius);
  animation: slideUp 0.4s ease;
}
.random-result i {
  font-size: 28px;
  color: var(--active-color);
  margin-bottom: 8px;
  display: block;
}
.random-result span {
  font-size: 22px;
  font-weight: 900;
  color: var(--text);
}

/* =================== BUTTONS & UTILITIES =================== */
.btn {
  padding: 12px 24px;
  border-radius: 24px;
  border: none;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s ease;
  text-decoration: none;
}

.btn-primary {
  background: var(--active-color);
  color: #fff;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.15);
}

.btn-sm {
  padding: 8px 16px;
  font-size: 13px;
  border-radius: 18px;
}

.card-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.card-grid.three-col {
  grid-template-columns: repeat(3, 1fr);
}

.block-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}

.block-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: #fff;
  flex-shrink: 0;
}

.lgs-icon {
  background: linear-gradient(135deg, #8b5cf6, #a78bfa);
}

.teacher-icon {
  background: linear-gradient(135deg, #64748b, #94a3b8);
}

.tool-icon {
  background: linear-gradient(135deg, #6d28d9, #a78bfa);
}

.feedback-icon {
  background: linear-gradient(135deg, #10b981, #34d399);
}

.dijital-icon {
  background: linear-gradient(135deg, #6d28d9, #a78bfa);
}

.hakkimizda-icon {
  background: linear-gradient(135deg, #64748b, #94a3b8);
}

.block-header h3 {
  font-size: 20px;
  font-weight: 800;
  color: var(--text);
  margin: 0;
}

.block-header p {
  font-size: 13px;
  color: var(--text-muted);
  margin: 2px 0 0 0;
}

.grade-header-inner {
  display: flex;
  align-items: center;
  gap: 16px;
}

.back-home-btn {
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
  font-size: 16px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: var(--t);
  padding: 8px 16px;
  border-radius: 20px;
}

.back-home-btn:hover {
  background: rgba(255,255,255,0.15);
}

.grade-header-inner h2 {
  font-size: 22px;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
}

.grade-main-wrapper {
  width: 100%;
}

.grade-content {
  padding: 0;
  background: transparent;
}

/* Mobile Menu Button */
.mobile-menu-btn {
  display: none;
  width: 40px;
  height: 40px;
  border: none;
  background: transparent;
  color: var(--text);
  font-size: 20px;
  cursor: pointer;
}

/* =================== RESPONSIVE =================== */
@media (max-width: 960px) {
  .grade-cards {
    grid-template-columns: repeat(3, 1fr);
  }
  .footer-inner {
    grid-template-columns: 1fr 1fr;
  }
  .optik-promo {
    grid-template-columns: 1fr;
  }
  .about-stats {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 700px) {
  .grade-cards {
    grid-template-columns: repeat(2, 1fr);
  }
  .grade-card:last-child {
    grid-column: span 2;
  }
  .home-hero {
    padding: 40px 0 36px;
  }
  .home-hero h1 {
    font-size: 28px;
  }
  .grade-card {
    padding: 20px 14px;
  }
  .grade-card-visual {
    width: 64px;
    height: 64px;
  }
  .footer-inner {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .mobile-menu-btn {
    display: block;
  }
  .form-row {
    grid-template-columns: 1fr;
  }
  .calc-grid {
    grid-template-columns: 1fr 1fr;
  }
  .grade-nav-pills {
    gap: 2px;
  }
  .gnav {
    width: 32px;
    height: 32px;
    font-size: 12px;
  }
  .card-grid,
  .card-grid.three-col {
    grid-template-columns: 1fr;
  }
  .soru-takip-summary {
    grid-template-columns: repeat(2, 1fr);
  }
  .soru-takip-grid {
    grid-template-columns: 1fr 1fr;
  }
  .sp-week-grid {
    grid-template-columns: 1fr;
    gap: 6px;
  }
  .sp-week-day {
    min-height: auto;
  }
  .net-calc-row {
    flex-direction: column;
  }
  .yuzluk-cell {
    font-size: 11px;
  }
  .sub-nav-pills {
    gap: 4px;
  }
  .snav {
    padding: 6px 10px;
    font-size: 11px;
  }
  .meb-sub-tabs {
    gap: 4px;
  }
  .dijital-tools-grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 480px) {
  .grade-cards {
    grid-template-columns: 1fr;
  }
  .grade-card:last-child {
    grid-column: auto;
  }
  .countdown-cards {
    grid-template-columns: 1fr;
  }
  .about-stats {
    grid-template-columns: 1fr 1fr;
  }
}

/* ============================================================
   PDF Viewer (full-screen)
   ============================================================ */
.pv-overlay {
  position: fixed;
  inset: 0;
  z-index: 10001;
  background: #111;
  display: flex;
  flex-direction: column;
  font-family: 'Inter', 'Segoe UI', sans-serif;
}

/* --- toolbar --- */
.pv-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #1e293b;
  padding: 6px 12px;
  gap: 8px;
  flex-shrink: 0;
  z-index: 2;
  flex-wrap: wrap;
}
.pv-toolbar-left,
.pv-toolbar-center,
.pv-toolbar-right {
  display: flex;
  align-items: center;
  gap: 6px;
}
.pv-toolbar-left { flex-shrink: 1; min-width: 0; }
.pv-toolbar-center { flex-wrap: wrap; justify-content: center; }
.pv-toolbar-right { flex-shrink: 0; }

.pv-title {
  color: #e2e8f0;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 200px;
}

.pv-close-btn {
  background: rgba(239,68,68,0.15);
  color: #f87171;
  border: none;
  border-radius: 8px;
  width: 34px;
  height: 34px;
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
}
.pv-close-btn:hover { background: rgba(239,68,68,0.35); }

.pv-tool-btn {
  background: rgba(255,255,255,0.08);
  color: #94a3b8;
  border: 1.5px solid transparent;
  border-radius: 8px;
  width: 34px;
  height: 34px;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
}
.pv-tool-btn:hover { background: rgba(255,255,255,0.15); color: #e2e8f0; }
.pv-tool-btn.pv-tool-active {
  background: rgba(59,130,246,0.2);
  color: #60a5fa;
  border-color: #3b82f6;
}

.pv-tool-sep {
  width: 1px;
  height: 22px;
  background: rgba(255,255,255,0.12);
  margin: 0 2px;
}

.pv-color-picker {
  width: 30px;
  height: 30px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  padding: 0;
  background: transparent;
}
.pv-color-picker::-webkit-color-swatch-wrapper { padding: 2px; }
.pv-color-picker::-webkit-color-swatch { border-radius: 4px; border: 1px solid rgba(255,255,255,0.2); }

.pv-size-slider {
  width: 60px;
  height: 4px;
  -webkit-appearance: none;
  appearance: none;
  background: rgba(255,255,255,0.2);
  border-radius: 2px;
  outline: none;
}
.pv-size-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #60a5fa;
  cursor: pointer;
}

.pv-zoom-btn {
  background: rgba(255,255,255,0.08);
  color: #94a3b8;
  border: none;
  border-radius: 8px;
  width: 30px;
  height: 30px;
  font-size: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
}
.pv-zoom-btn:hover { background: rgba(255,255,255,0.15); color: #e2e8f0; }

.pv-zoom-level {
  color: #94a3b8;
  font-size: 11px;
  font-weight: 600;
  min-width: 38px;
  text-align: center;
}

.pv-cevap-btn {
  background: linear-gradient(135deg, #22c55e, #16a34a);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 5px 12px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: all 0.15s;
}
.pv-cevap-btn:hover { filter: brightness(1.1); }
.pv-cevap-btn.pv-cevap-active {
  background: linear-gradient(135deg, #3b82f6, #2563eb);
}

.pv-page-info {
  color: #cbd5e1;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  background: rgba(255,255,255,0.08);
  padding: 4px 10px;
  border-radius: 6px;
}

/* --- page container --- */
.pv-container {
  flex: 1;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.pv-page-wrap {
  position: relative;
  max-width: 100%;
  max-height: 100%;
  transform-origin: center center;
  transition: transform 0.1s ease-out;
}

.pv-page-img {
  display: block;
  max-width: 100%;
  max-height: calc(100vh - 52px);
  object-fit: contain;
  user-select: none;
  -webkit-user-drag: none;
}

.pv-draw-canvas,
.pv-shape-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  cursor: crosshair;
  touch-action: none;
}
.pv-shape-overlay {
  pointer-events: none;
}

/* --- navigation arrows --- */
.pv-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.5);
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
  transition: all 0.15s;
  backdrop-filter: blur(4px);
}
.pv-nav-btn:hover { background: rgba(59,130,246,0.6); }
.pv-nav-btn:disabled { opacity: 0.3; cursor: default; }
.pv-nav-btn:disabled:hover { background: rgba(0,0,0,0.5); }
.pv-nav-prev { left: 12px; }
.pv-nav-next { right: 12px; }

/* --- mobile responsive --- */
@media (max-width: 768px) {
  .pv-toolbar {
    padding: 4px 6px;
    gap: 4px;
  }
  .pv-toolbar-left { order: 1; }
  .pv-toolbar-right { order: 2; }
  .pv-toolbar-center { order: 3; width: 100%; justify-content: center; }
  .pv-title { max-width: 120px; font-size: 11px; }
  .pv-tool-btn { width: 30px; height: 30px; font-size: 12px; }
  .pv-close-btn { width: 30px; height: 30px; font-size: 14px; }
  .pv-size-slider { width: 40px; }
  .pv-nav-btn { width: 38px; height: 38px; font-size: 16px; }
  .pv-nav-prev { left: 6px; }
  .pv-nav-next { right: 6px; }
  .pv-page-info { font-size: 11px; padding: 3px 7px; }
  .pv-zoom-level { font-size: 10px; }
  .pv-zoom-btn { width: 26px; height: 26px; font-size: 11px; }
  .pv-cevap-btn { padding: 4px 8px; font-size: 11px; }
}

/* --- PDF preview modal: add "Görüntüle" button --- */
.pdf-preview-view {
  background: linear-gradient(135deg, #8b5cf6, #7c3aed);
  color: #fff;
  border: none;
  border-radius: 12px;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s;
  box-shadow: 0 4px 14px rgba(139,92,246,0.35);
}
.pdf-preview-view:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(139,92,246,0.45);
}
