/* ----------------------------------------------------
   Planur ile Etkinlik - Visual Identity & Stylesheet
   Matching exact Purple-Magenta Gradient & Dark Footer
---------------------------------------------------- */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
  /* Signature Brand Gradient & Colors */
  --gradient-hero: linear-gradient(135deg, #7e22ce 0%, #a855f7 35%, #c026d3 70%, #e11d48 100%);
  --brand-primary: #9333ea;
  --brand-primary-hover: #7e22ce;
  --brand-accent: #c026d3;
  --brand-green: #22c55e;
  --brand-green-hover: #16a34a;

  --bg-primary: #f8fafc;
  --bg-surface: #ffffff;
  --bg-dark: #0b1329;
  --bg-dark-card: #151f38;
  
  --border-color: #e2e8f0;
  --border-hover: #cbd5e1;
  
  --text-main: #0f172a;
  --text-muted: #64748b;
  --text-light: #94a3b8;

  --badge-pdf: #ef4444;
  --badge-docx: #2563eb;
  --badge-pptx: #ea580c;
  --star-color: #f59e0b;

  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 14px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.15);

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;

  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="dark"] {
  --bg-primary: #090d16;
  --bg-surface: #111827;
  --border-color: #1f2937;
  --text-main: #f9fafb;
  --text-muted: #9ca3af;
}

/* Base Reset */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ----------------------------------------------------
   HERO WRAPPER WITH GRADIENT BACKGROUND & NAVBAR
---------------------------------------------------- */
.hero-wrapper {
  background: url('../img/hero-bg-custom.svg?v=1') center bottom / cover no-repeat;
  color: #ffffff;
  padding-bottom: 4rem;
  position: relative;
}

.hero-wrapper::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(to bottom, rgba(139, 92, 246, 0.6) 0%, rgba(236, 72, 153, 0.2) 100%);
  z-index: 0;
  pointer-events: none;
}

.hero-wrapper > * {
  position: relative;
  z-index: 1;
}

/* Navbar - Sticky Top Bar */
.top-navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(115, 27, 192, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 0.85rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.18);
  transition: all var(--transition-fast);
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-logo-group {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.books-icon {
  font-size: 2.2rem;
  line-height: 1;
}

.brand-titles h1 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.4rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.1;
}

.brand-titles p {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.85);
  font-weight: 500;
}

.top-nav-links {
  display: flex;
  align-items: center;
  gap: 1.8rem;
  list-style: none;
}

.top-nav-link {
  font-size: 0.95rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  padding: 0.4rem 0;
  position: relative;
  transition: color var(--transition-fast);
}

.top-nav-link:hover, .top-nav-link.active {
  color: #ffffff;
  font-weight: 800;
}

.top-nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 3px;
  background-color: #ffffff;
  border-radius: 9999px;
  box-shadow: 0 2px 8px rgba(255, 255, 255, 0.5);
}

.nav-social-icons {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  white-space: nowrap;
}

.nav-social-icons .top-nav-link {
  font-size: 0.75rem;
  padding: 0.25rem 0.4rem;
  white-space: nowrap;
  border: none;
  background: transparent;
  cursor: pointer;
}

.btn-kayit {
  background-color: rgba(255, 255, 255, 0.25);
  color: #ffffff;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 0.75rem;
  white-space: nowrap;
  border: none;
  cursor: pointer;
  backdrop-filter: blur(4px);
  transition: background-color var(--transition-fast);
}

.btn-kayit:hover {
  background-color: rgba(255, 255, 255, 0.35);
}

.social-circle-btn {
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.2);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  transition: all var(--transition-fast);
}

.social-circle-btn:hover {
  background-color: #ffffff;
  color: var(--brand-primary);
}

/* Hero Content */
.hero-content {
  text-align: center;
  padding-top: 3.5rem;
  max-width: 840px;
  margin: 0 auto;
}

.hero-main-heading {
  font-family: 'Outfit', sans-serif;
  font-size: 3.2rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 0.8rem;
  letter-spacing: -0.02em;
}

.hero-sub-text {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 2.2rem;
}

/* Action Buttons */
.hero-action-buttons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.2rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.btn-hero-white {
  background-color: #ffffff;
  color: var(--brand-primary);
  font-weight: 800;
  font-size: 1rem;
  padding: 0.85rem 2rem;
  border-radius: var(--radius-full);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  transition: all var(--transition-fast);
}

.btn-hero-white:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.25);
  background-color: #fcfcfc;
}

.btn-hero-whatsapp {
  background-color: var(--brand-green);
  color: #ffffff !important;
  font-weight: 800;
  font-size: 1rem;
  padding: 0.85rem 2rem;
  border-radius: var(--radius-full);
  box-shadow: 0 8px 20px rgba(34, 197, 94, 0.3);
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  transition: all var(--transition-fast);
  cursor: pointer;
  position: relative;
  z-index: 10;
  text-decoration: none;
}

.btn-hero-whatsapp:hover {
  background-color: var(--brand-green-hover);
  transform: translateY(-2px);
  box-shadow: 0 12px 25px rgba(34, 197, 94, 0.45);
}

/* Hero Translucent Stats Cards */
.hero-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  max-width: 820px;
  margin: 0 auto;
}

.hero-stat-card {
  background: #a855f7; /* Light purple */
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  padding: 1.5rem;
  border-radius: var(--radius-md);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

.hero-stat-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.25);
  background: #9333ea; /* Slightly darker purple on hover */
}

.hero-stat-card h3 {
  font-size: 2.2rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.1;
}

.hero-stat-card p {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.95);
  font-weight: 700;
  margin-top: 0.2rem;
}

/* Search Bar floating over materials section */
.search-floating-container {
  max-width: 760px;
  margin: -1.8rem auto 2.5rem;
  position: relative;
  z-index: 10;
}

.search-box {
  display: flex;
  align-items: center;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  padding: 0.6rem 0.8rem 0.6rem 1.4rem;
  box-shadow: var(--shadow-lg);
}

.search-box i.search-icon {
  font-size: 1.4rem;
  color: var(--brand-primary);
  margin-right: 0.8rem;
}

.search-box input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  font-size: 1.05rem;
  color: var(--text-main);
}

/* ----------------------------------------------------
   MATERIALS & FILTERS SECTION
---------------------------------------------------- */
.main-content {
  padding: 2rem 0 4rem;
  position: relative;
}

.main-content::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-image: url('../img/toys-pattern.svg');
  background-size: 500px;
  background-repeat: repeat;
  z-index: 0;
  pointer-events: none;
}

.main-content > * {
  position: relative;
  z-index: 1;
}

.grade-scroll-wrapper {
  display: flex;
  gap: 0.6rem;
  overflow-x: auto;
  padding-bottom: 0.75rem;
}

.grade-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1.3rem;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-muted);
  white-space: nowrap;
  transition: all var(--transition-fast);
}

.grade-chip:hover {
  border-color: var(--brand-primary);
  color: var(--brand-primary);
}

.grade-chip.active {
  background-color: var(--brand-primary);
  border-color: var(--brand-primary);
  color: #ffffff;
  box-shadow: var(--shadow-sm);
}

.category-tabs {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 1rem;
  padding: 0.5rem;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
}

.category-btn {
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.category-btn:hover {
  background-color: var(--bg-primary);
  color: var(--text-main);
}

.category-btn.active {
  background-color: #f3e8ff;
  color: var(--brand-primary);
}

/* Material Cards */
.materials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.material-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
}

.material-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--brand-primary);
}

.card-banner {
  height: 145px;
  background: linear-gradient(135deg, #f3e8ff, #fce7f3);
  padding: 1rem;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  position: relative;
  border-bottom: 1px solid var(--border-color);
}

.file-badge {
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-sm);
  color: #fff;
}

.file-badge.pdf { background-color: var(--badge-pdf); }
.file-badge.docx { background-color: var(--badge-docx); }
.file-badge.pptx { background-color: var(--badge-pptx); }

.card-body {
  padding: 1.2rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card-meta-tags {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: var(--brand-primary);
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.card-title {
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.4;
  color: var(--text-main);
  margin-bottom: 0.75rem;
}

.card-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1.2rem;
}

.card-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
  padding: 0.8rem 1.2rem 1.2rem;
}

.btn-primary {
  background-color: var(--brand-primary);
  color: #ffffff;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 0.65rem 1.2rem;
  border-radius: var(--radius-md);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  transition: all var(--transition-fast);
}

.btn-primary:hover {
  background-color: var(--brand-primary-hover);
}

.btn-outline {
  border: 1px solid var(--border-color);
  background-color: var(--bg-surface);
  color: var(--text-main);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.65rem 1.2rem;
  border-radius: var(--radius-md);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  transition: all var(--transition-fast);
}

.btn-outline:hover {
  border-color: var(--brand-primary);
  color: var(--brand-primary);
}

/* ----------------------------------------------------
   COMMUNITY BANNER SECTION (TOPLULUĞUMUZA KATILIN)
---------------------------------------------------- */
.community-banner {
  background: var(--gradient-hero);
  color: #ffffff;
  padding: 4rem 0;
  text-align: center;
}

.community-banner h2 {
  font-family: 'Outfit', sans-serif;
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 0.8rem;
}

.community-banner p {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.9);
  max-width: 640px;
  margin: 0 auto 2rem;
}

.community-buttons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn-social-pill {
  background-color: #ffffff;
  color: var(--text-main);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.75rem 1.6rem;
  border-radius: var(--radius-full);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  transition: all var(--transition-fast);
}

.btn-social-pill:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

/* ----------------------------------------------------
   INTERACTIVE TOOLS SECTION
---------------------------------------------------- */
.tools-section {
  padding: 4rem 0;
  background-color: var(--bg-surface);
  border-top: 1px solid var(--border-color);
}

.tools-nav {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.tool-nav-btn {
  padding: 0.8rem 1.6rem;
  background-color: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  font-weight: 700;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.tool-nav-btn.active {
  background-color: var(--brand-primary);
  color: #ffffff;
  border-color: var(--brand-primary);
}

.tool-card-box {
  background-color: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2rem;
}

.tool-responsive-grid {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 2rem;
  align-items: center;
  width: 100%;
}

.tool-responsive-grid-top {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 2rem;
  align-items: flex-start;
  width: 100%;
}

#wheelCanvas {
  max-width: 100%;
  max-height: 380px;
  height: auto;
  display: block;
  margin: 0 auto;
}

@media (max-width: 768px) {
  .tool-responsive-grid {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    align-items: center;
  }
  .tool-responsive-grid-top {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    align-items: stretch;
  }
}

.exam-generator-layout {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 2rem;
}

.exam-controls {
  background-color: var(--bg-surface);
  padding: 1.5rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
}

.form-group { margin-bottom: 1rem; }
.form-label { display: block; font-size: 0.85rem; font-weight: 700; margin-bottom: 0.4rem; }
.form-input { width: 100%; padding: 0.65rem 0.9rem; border: 1px solid var(--border-color); border-radius: var(--radius-sm); outline: none; }

.question-select-list {
  max-height: 250px;
  overflow-y: auto;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 0.5rem;
}

.question-select-item {
  display: flex;
  gap: 0.6rem;
  padding: 0.5rem;
  border-bottom: 1px solid var(--border-color);
  font-size: 0.85rem;
}

.exam-paper-preview {
  background-color: #ffffff;
  color: #111827;
  padding: 2.5rem;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  min-height: 500px;
  border: 1px solid #d1d5db;
  font-family: 'Times New Roman', serif;
}

.paper-header {
  border-bottom: 2px solid #000;
  padding-bottom: 1rem;
  margin-bottom: 1.5rem;
  text-align: center;
}

.paper-student-info {
  display: flex;
  justify-content: space-between;
  font-size: 0.95rem;
  font-family: sans-serif;
  font-weight: bold;
  border: 1px solid #000;
  padding: 0.5rem 1rem;
  margin-top: 1rem;
}

.paper-questions-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.wheel-tool-wrapper {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 2rem;
  align-items: center;
}

.wheel-canvas-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

.wheel-pointer {
  width: 0; height: 0;
  border-left: 16px solid transparent;
  border-right: 16px solid transparent;
  border-top: 28px solid #ef4444;
  position: absolute;
  top: 5px; z-index: 10;
}

/* ----------------------------------------------------
   DARK NAVY FOOTER
---------------------------------------------------- */
.footer-dark {
  background-color: var(--bg-dark);
  color: #94a3b8;
  padding: 4rem 0 2rem;
  font-size: 0.9rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 2.5rem;
  margin-bottom: 3rem;
}

.footer-brand h3 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.3rem;
  color: #ffffff;
  margin-bottom: 0.6rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.footer-brand p {
  font-size: 0.85rem;
  line-height: 1.6;
}

.footer-col h4 {
  font-size: 1rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 1.2rem;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer-col ul a:hover {
  color: #ffffff;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-bottom: 1.2rem;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: #cbd5e1;
}

.contact-item i {
  color: #ec4899;
}

.footer-social-squircles {
  display: flex;
  gap: 0.5rem;
}

.squircle-btn {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  transition: all var(--transition-fast);
}

.squircle-btn:hover {
  transform: translateY(-2px) scale(1.08);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}

.squircle-btn.green { background-color: #22c55e; }
.squircle-btn.pink { background-color: #d946ef; }
.squircle-btn.blue { background-color: #3b82f6; }
.squircle-btn.red { background-color: #ef4444; }

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 1.5rem;
  text-align: center;
  font-size: 0.8rem;
  color: #64748b;
}

/* Modals & Toasts */
.modal-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(0,0,0,0.65);
  backdrop-filter: blur(6px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-normal);
}

.modal-overlay.active { opacity: 1; visibility: visible; }

.modal-container {
  background-color: var(--bg-surface);
  border-radius: var(--radius-lg);
  max-width: 800px;
  width: 90%;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.modal-header {
  padding: 1.2rem 1.5rem;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-body { padding: 1.5rem; overflow-y: auto; flex: 1; }
.modal-footer { padding: 1rem 1.5rem; border-top: 1px solid var(--border-color); display: flex; justify-content: space-between; }

.toast-container {
  position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; background-color: rgba(0, 0, 0, 0.5); z-index: 100000; display: flex; align-items: center; justify-content: center;
}

.toast {
  background-color: var(--bg-surface);
  padding: 2rem 2.5rem;
  border-radius: 16px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.2);
  display: flex; flex-direction: column; align-items: center; gap: 1rem; text-align: center; max-width: 400px; width: 90%; font-weight: 700; font-size: 1.15rem; color: var(--text-main); transform: scale(1); animation: popupIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes popupIn {
  from { opacity: 0; transform: scale(0.8) translateY(20px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

/* Print Styles */
@media print {
  body * { visibility: hidden; }
  #printablePaper, #printablePaper * { visibility: visible; }
  #printablePaper { position: absolute; left: 0; top: 0; width: 100%; margin: 0; padding: 0; box-shadow: none; border: none; }
}

/* Mobile Responsive Enhancements */
.mobile-menu-toggle {
  display: none;
  background: transparent;
  border: none;
  color: #ffffff;
  cursor: pointer;
  padding: 0.4rem;
}

@media (max-width: 900px) {
  .hero-main-heading { font-size: 2.2rem; }
  .hero-stats-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .mobile-menu-toggle, .mobile-sidebar-toggle {
      display: flex;
      align-items: center;
      justify-content: center;
      order: 3 !important;
      margin-left: auto;
    }
  
    .top-navbar .navbar-inner {
      position: relative;
      display: flex;
      align-items: center;
      justify-content: space-between;
    }
    
    .brand-logo-group {
      order: 1 !important;
    }

    .nav-buttons, .nav-social-icons {
      order: 2 !important;
      flex: 1 !important;
      display: flex !important;
      justify-content: center !important;
      margin-left: 0 !important;
    }

  .top-nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(109, 23, 185, 0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 1.2rem;
    gap: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
  }

  .top-nav-links.active {
    display: flex;
  }

  .hero-wrapper {
    padding-bottom: 3rem;
  }

  .hero-main-heading {
    font-size: 1.75rem;
  }

  .hero-sub-text {
    font-size: 0.92rem;
  }

  .hero-action-buttons {
    flex-direction: column;
    width: 100%;
  }

  .btn-hero-white, .btn-hero-whatsapp {
    width: 100%;
    justify-content: center;
  }

  .search-floating-container {
    margin-top: -1.8rem;
    padding: 0.4rem;
  }

  .search-box {
    padding: 0.4rem 0.8rem;
    flex-direction: column;
    gap: 0.5rem;
  }

  .search-box input {
    font-size: 0.88rem;
    width: 100%;
  }

  .search-box button {
    width: 100%;
  }

  .materials-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  /* Detail & Contact Pages Mobile */
  #detailPage div[style*="grid-template-columns"],
  #contactPage div[style*="grid-template-columns"] {
    grid-template-columns: 1fr !important;
  }

  /* Exam Generator Mobile */
  .exam-generator-layout {
    grid-template-columns: 1fr;
  }

  .community-buttons {
    flex-direction: column;
  }

  .btn-social-pill {
    width: 100%;
    justify-content: center;
  }

  .grade-scroll-wrapper, .category-tabs {
    padding-bottom: 0.5rem;
  }

  /* Nasıl Çalışır Section Buttons */
  .how-it-works-section .btn-primary {
    display: flex !important;
    width: 100%;
    justify-content: center;
    margin-top: 1.5rem !important;
  }
}

@media (max-width: 768px) {
  .brand-titles h1 { font-size: 1rem !important; }
  .brand-titles p { display: none !important; }
  .brand-logo-group { gap: 0.4rem !important; }
  .books-icon { font-size: 1.8rem !important; }
}


.hero-stat-card { position: relative; overflow: hidden; }
.stat-bg-pattern {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.25;
}
.stat-bg-pattern i {
  position: absolute;
  color: #ffffff;
}
.hero-stat-card h3, .hero-stat-card p {
  position: relative;
  z-index: 1;
}

