@charset "UTF-8";
@import url('https://fonts.googleapis.com/css2?family=Lora:ital,wght@0,400;0,600;1,400;1,600&family=Montserrat:ital,wght@0,400;0,600;0,700;0,800;0,900;1,700&family=Roboto+Slab:wght@300;400;600;700&display=swap');

/* ==========================================================================
   UĞUR OKULLARI VİRANŞEHİR KAMPÜSÜ - GOLDEN ONEPAGE & GLASSMORPHISM DESIGN SYSTEM
   ========================================================================== */

:root {
  --primary-brand: #8F489C;
  --primary-brand-hover: #A455B3;
  --primary-brand-dark: #743480;
  --primary-brand-glow: rgba(143, 72, 156, 0.45);
  --primary-brand-subtle: rgba(143, 72, 156, 0.12);
  --ugur-purple: #8F489C;
  --primary-gold: #8F489C; /* Corporate Uğur Purple #8F489C */
  --primary-gold-hover: #A455B3;
  --ugur-red: #E30613;
  --ugur-navy: #0B132B;
  --font-heading: 'Montserrat', sans-serif;
  --font-serif: 'Lora', serif;
  --font-body: 'Roboto Slab', serif;

  /* Theme Tokens - Default Dark Mode (Kapalı) */
  --bg-dark: #080C16;
  --bg-card: rgba(16, 24, 42, 0.85);
  --bg-section-alt: #0D1424;
  --text-main: #FFFFFF;
  --text-heading: #FFFFFF;
  --text-muted: #9BA4B5;
  --text-body: rgba(255, 255, 255, 0.9);
  --border-gold: rgba(143, 72, 156, 0.5);
  --border-glass: rgba(255, 255, 255, 0.12);
  --border-card: rgba(143, 72, 156, 0.25);
  --gold-subtitle: #C084FC;
  --card-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  --input-bg: rgba(16, 24, 42, 0.9);
  --footer-bg: #05080E;
  --timeline-circle-bg: #111827;
  color-scheme: dark;
}

[data-theme="light"] {
  /* Theme Tokens - Light Mode (Açık) */
  --bg-dark: #F8FAFC;
  --bg-card: #FFFFFF;
  --bg-section-alt: #F1F5F9;
  --text-main: #1E293B;
  --text-heading: #0F172A;
  --text-muted: #64748B;
  --text-body: #334155;
  --border-gold: rgba(143, 72, 156, 0.45);
  --border-glass: rgba(0, 0, 0, 0.08);
  --border-card: rgba(0, 0, 0, 0.08);
  --gold-subtitle: #8F489C;
  --card-shadow: 0 8px 24px rgba(15, 23, 42, 0.07);
  --input-bg: #FFFFFF;
  --footer-bg: #E2E8F0;
  --timeline-circle-bg: #FFFFFF;
  color-scheme: light;
}

*, *::before, *::after {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  min-height: 100%;
  background-color: var(--bg-dark);
  color: var(--text-main);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  scroll-behavior: smooth;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Scroll Progress Track */
.scroll-progress-track {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: transparent;
  z-index: 2000;
  pointer-events: none;
}

.scroll-progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--ugur-red), var(--primary-gold));
  box-shadow: 0 0 10px var(--primary-gold);
  transition: width 0.1s ease-out;
}

/* ==========================================================================
   NAVIGATION BAR (GOLDEN FIXED-TOP & STICKY GLASS)
   ========================================================================== */

.fixed-top {
  position: fixed;
  top: 0;
  left: 20px;
  right: 20px;
  z-index: 1060;
  max-width: 1260px;
  margin: 16px auto 0;
  padding: 8px 28px;
  background: rgba(8, 12, 22, 0.65);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(143, 72, 156, 0.4);
  border-radius: 50px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.fixed-top .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100% !important;
  max-width: 100% !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

.change-fixed-top {
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  margin: 0 auto !important;
  max-width: 100% !important;
  border-radius: 0px !important;
  background: rgba(7, 10, 18, 0.96) !important;
  backdrop-filter: blur(24px) !important;
  -webkit-backdrop-filter: blur(24px) !important;
  border-top: none !important;
  border-left: none !important;
  border-right: none !important;
  border-bottom: 2px solid var(--primary-gold) !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.65) !important;
  padding: 8px 28px !important;
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none !important;
  color: var(--primary-gold) !important;
  margin-right: 16px;
  padding: 0;
}

.navbar-brand:hover {
  text-decoration: none !important;
}

.brand-campus-logo-img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--primary-gold);
  box-shadow: 0 0 12px rgba(143, 72, 156, 0.45);
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

.navbar-brand:hover .brand-campus-logo-img {
  transform: scale(1.08) rotate(3deg);
}

.brand-text-col {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-family: var(--font-heading);
  font-size: 1.12rem;
  font-weight: 900;
  letter-spacing: 1.1px;
  color: var(--primary-gold);
  line-height: 1.1;
}

.brand-campus-sub {
  font-family: var(--font-heading);
  font-size: 0.70rem;
  font-weight: 700;
  letter-spacing: 0.8px;
  color: #FFFFFF;
  opacity: 0.9;
  text-transform: uppercase;
}

.navbar-nav .nav-link {
  font-family: var(--font-heading) !important;
  font-size: 13.5px !important;
  font-weight: 700 !important;
  letter-spacing: 0.8px !important;
  color: #FFFFFF !important;
  padding: 8px 12px !important;
  transition: color 0.25s ease, transform 0.2s ease !important;
  position: relative;
  white-space: nowrap;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  color: var(--primary-gold) !important;
  transform: translateY(-1px);
}

/* Fluid, wrap-proof title bar container (Sticky Scrolled State) */
#main-nav.change-fixed-top .container {
  max-width: 1600px !important;
  width: 100% !important;
  padding-left: clamp(14px, 2.2vw, 32px) !important;
  padding-right: clamp(14px, 2.2vw, 32px) !important;
}

@media (min-width: 1200px) {
  #main-nav .navbar-collapse {
    display: flex !important;
    align-items: center !important;
    flex-wrap: nowrap !important;
  }

  #main-nav .navbar-nav {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    margin-left: auto;
    margin-bottom: 0 !important;
  }

  #main-nav .navbar-nav > .nav-item {
    flex-shrink: 0 !important;
  }
}

.nav-actions-group {
  display: flex !important;
  align-items: center !important;
  flex-shrink: 0 !important;
  white-space: nowrap !important;
  gap: 8px;
  margin-left: 8px;
}

.nav-icon-action {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #FFFFFF;
  border-radius: 50%;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.25s ease;
  padding: 0;
  font-size: 14px;
}

.nav-icon-action:hover,
.nav-icon-action[aria-expanded="true"] {
  background: var(--primary-gold);
  color: #FFFFFF !important;
  border-color: var(--primary-gold);
  transform: scale(1.06);
  box-shadow: 0 4px 14px rgba(143, 72, 156, 0.45);
}

/* ====================================================================
   COMPACT THEME DROPDOWN (Icon-Only on Bar, Glassmorphic Dropdown)
==================================================================== */
.theme-dropdown-wrapper {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.theme-dropdown-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 154px;
  background: rgba(14, 20, 36, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1.5px solid rgba(143, 72, 156, 0.45);
  border-radius: 14px;
  padding: 6px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.65), 0 0 20px rgba(143, 72, 156, 0.25);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px) scale(0.95);
  transform-origin: top right;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 1060;
  pointer-events: none;
}

.theme-dropdown-menu.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.theme-dropdown-header {
  font-family: var(--font-heading);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1px;
  color: #94A3B8;
  padding: 6px 10px 4px;
  text-transform: uppercase;
}

.theme-dropdown-item {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 10px;
  background: transparent;
  border: none;
  border-radius: 8px;
  color: #E2E8F0;
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.18s ease;
  text-align: left;
}

.theme-dropdown-item:hover {
  background: rgba(143, 72, 156, 0.22);
  color: #FFFFFF;
}

.theme-dropdown-item.active {
  background: var(--primary-gold) !important;
  color: #FFFFFF !important;
  box-shadow: 0 4px 12px rgba(143, 72, 156, 0.4);
}

.theme-item-left {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.theme-item-left i {
  font-size: 13px;
  width: 16px;
  text-align: center;
}

.theme-icon-sun {
  color: #FBBF24;
}

.theme-icon-moon {
  color: #93C5FD;
}

.theme-icon-system {
  color: #A78BFA;
}

.theme-dropdown-item.active .theme-icon-sun,
.theme-dropdown-item.active .theme-icon-moon,
.theme-dropdown-item.active .theme-icon-system {
  color: #FFFFFF !important;
}

.theme-check-icon {
  font-size: 11px;
  opacity: 0;
  transition: opacity 0.18s ease;
}

.theme-dropdown-item.active .theme-check-icon {
  opacity: 1;
}

/* Mobile Segmented Theme Control */
.mobile-theme-bar {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-theme-label {
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 700;
  color: var(--primary-gold);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.theme-segmented-control {
  display: flex;
  background: rgba(14, 20, 36, 0.85);
  border: 1px solid rgba(143, 72, 156, 0.4);
  border-radius: 12px;
  padding: 3px;
  gap: 3px;
  width: 100%;
}

.theme-segment-btn {
  flex: 1;
  border: none;
  background: transparent;
  color: #94A3B8;
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 700;
  padding: 8px 6px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.theme-segment-btn:hover {
  color: #FFFFFF;
}

.theme-segment-btn.active {
  background: var(--primary-gold);
  color: #FFFFFF !important;
  box-shadow: 0 2px 10px rgba(143, 72, 156, 0.45);
}

/* ====================================================================
   LIGHT THEME STYLING OVERRIDES ([data-theme="light"])
==================================================================== */
[data-theme="light"] body {
  background-color: var(--bg-dark);
  color: var(--text-main);
}

/* Scrolled Navbar in Light Mode */
[data-theme="light"] .fixed-top.change-fixed-top {
  background: rgba(255, 255, 255, 0.98) !important;
  border-color: rgba(143, 72, 156, 0.25) !important;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08) !important;
}

[data-theme="light"] .fixed-top.change-fixed-top .nav-link {
  color: #1E293B !important;
}

[data-theme="light"] .fixed-top.change-fixed-top .nav-link:hover,
[data-theme="light"] .fixed-top.change-fixed-top .nav-link.active {
  color: #8F489C !important;
}

[data-theme="light"] .fixed-top.change-fixed-top .brand-name {
  color: #8F489C !important;
}

[data-theme="light"] .fixed-top.change-fixed-top .brand-campus-sub {
  color: #8F489C !important;
}

[data-theme="light"] .fixed-top.change-fixed-top .nav-icon-action {
  background: #F1F5F9 !important;
  color: #1E293B !important;
  border-color: rgba(143, 72, 156, 0.2) !important;
}

[data-theme="light"] .fixed-top.change-fixed-top .nav-icon-action:hover {
  background: var(--primary-gold) !important;
  color: #FFFFFF !important;
}

[data-theme="light"] .navbar-toggler,
[data-theme="light"] .fixed-top.change-fixed-top .navbar-toggler {
  border: 1.5px solid rgba(143, 72, 156, 0.35) !important;
  background: #FFFFFF !important;
  color: #0F172A !important;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08) !important;
}

[data-theme="light"] .navbar-toggler:hover,
[data-theme="light"] .navbar-toggler:focus {
  background: #F8FAFC !important;
  border-color: var(--ugur-purple) !important;
  outline: none !important;
  box-shadow: 0 0 0 3px rgba(143, 72, 156, 0.18) !important;
}

/* Light mode crisp navy hamburger icon (sharp, visible, no invert) */
[data-theme="light"] .navbar-toggler-icon,
[data-theme="light"] .navbar-dark .navbar-toggler-icon,
[data-theme="light"] .fixed-top .navbar-toggler-icon,
[data-theme="light"] .fixed-top.change-fixed-top .navbar-toggler-icon {
  filter: none !important;
  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='%230F172A' stroke-width='2.6' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E") !important;
}

/* Light mode 'X' close icon when menu is expanded */
[data-theme="light"] .navbar-toggler[aria-expanded="true"] .navbar-toggler-icon,
[data-theme="light"] .navbar-dark .navbar-toggler[aria-expanded="true"] .navbar-toggler-icon,
[data-theme="light"] .fixed-top .navbar-toggler[aria-expanded="true"] .navbar-toggler-icon,
[data-theme="light"] .fixed-top.change-fixed-top .navbar-toggler[aria-expanded="true"] .navbar-toggler-icon {
  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='%230F172A' stroke-width='2.6' stroke-linecap='round' d='M6 6L24 24M6 24L24 6'/%3E%3C/svg%3E") !important;
}

@media (min-width: 992px) {
  .navbar-collapse,
  [data-theme="light"] .navbar-collapse {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin: 0 !important;
  }
}

/* Theme Dropdown in Light Mode */
[data-theme="light"] .theme-dropdown-menu {
  background: rgba(255, 255, 255, 0.98) !important;
  border: 1px solid rgba(143, 72, 156, 0.35) !important;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.15), 0 0 16px rgba(143, 72, 156, 0.15) !important;
}

[data-theme="light"] .theme-dropdown-header {
  color: #64748B !important;
}

[data-theme="light"] .theme-dropdown-item {
  color: #1E293B !important;
}

[data-theme="light"] .theme-dropdown-item:hover {
  background: rgba(143, 72, 156, 0.12) !important;
  color: #8F489C !important;
}

[data-theme="light"] .theme-dropdown-item.active {
  background: #8F489C !important;
  color: #FFFFFF !important;
}

/* Unscrolled Floating Navbar in Light Mode */
[data-theme="light"] .fixed-top:not(.change-fixed-top) {
  background: rgba(255, 255, 255, 0.88) !important;
  border-color: rgba(143, 72, 156, 0.35) !important;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.15) !important;
}

[data-theme="light"] .fixed-top:not(.change-fixed-top) .nav-link {
  color: #1E293B !important;
}

[data-theme="light"] .fixed-top:not(.change-fixed-top) .nav-link:hover,
[data-theme="light"] .fixed-top:not(.change-fixed-top) .nav-link.active {
  color: #8F489C !important;
}

[data-theme="light"] .fixed-top:not(.change-fixed-top) .brand-campus-sub {
  color: #64748B !important;
}

[data-theme="light"] .fixed-top:not(.change-fixed-top) .nav-icon-action {
  background: #F1F5F9 !important;
  color: #1E293B !important;
  border-color: rgba(143, 72, 156, 0.25) !important;
}

[data-theme="light"] .fixed-top:not(.change-fixed-top) .nav-icon-action:hover,
[data-theme="light"] .fixed-top:not(.change-fixed-top) .nav-icon-action[aria-expanded="true"] {
  background: #8F489C !important;
  color: #FFFFFF !important;
}


[data-theme="light"] .theme-segmented-control {
  background: #E2E8F0;
  border-color: rgba(143, 72, 156, 0.25);
}

[data-theme="light"] .theme-segment-btn {
  color: #475569;
}

[data-theme="light"] .theme-segment-btn:hover {
  color: #0F172A;
}

[data-theme="light"] .theme-segment-btn.active {
  background: var(--primary-brand) !important;
  color: #FFFFFF !important;
  box-shadow: 0 2px 8px var(--primary-brand-glow);
}

/* Headings in Light Mode */
[data-theme="light"] .services-top h3,
[data-theme="light"] .portfolio-top h3,
[data-theme="light"] .aboutUs-top h3,
[data-theme="light"] .team-top h3,
[data-theme="light"] .contact-top h3,
[data-theme="light"] .location-top h3 {
  color: #0F172A !important;
}

[data-theme="light"] .services-top p,
[data-theme="light"] .portfolio-top p,
[data-theme="light"] .aboutUs-top p,
[data-theme="light"] .team-top p,
[data-theme="light"] .contact-top p,
[data-theme="light"] .location-top p {
  color: var(--gold-subtitle) !important;
}

/* Services Section in Light Mode */
[data-theme="light"] #services {
  background: var(--bg-dark);
}

[data-theme="light"] .services-content h4 {
  color: #0F172A !important;
}

[data-theme="light"] .services-content p {
  color: #475569 !important;
}

[data-theme="light"] .item-circle {
  background: rgba(143, 72, 156, 0.08);
  border-color: #8F489C;
}

[data-theme="light"] .item-circle i {
  color: #8F489C;
}

[data-theme="light"] .item-circle:hover {
  background: #8F489C;
  border-color: #8F489C;
}

[data-theme="light"] .item-circle:hover i {
  color: #FFFFFF !important;
}

/* Robotics Showcase Section in Light Mode */
[data-theme="light"] #robotics-showcase {
  background: linear-gradient(135deg, #F8FAFC 0%, #EDF2F7 100%) !important;
  border-top-color: rgba(143, 72, 156, 0.18) !important;
  border-bottom-color: rgba(143, 72, 156, 0.18) !important;
}

[data-theme="light"] .showcase-main-heading {
  color: #0F172A !important;
}

[data-theme="light"] .showcase-main-desc {
  color: #475569 !important;
}

[data-theme="light"] .showcase-feature-item {
  background: #FFFFFF !important;
  border-color: rgba(143, 72, 156, 0.15) !important;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.06) !important;
}

[data-theme="light"] .showcase-feature-item:hover {
  border-color: #8F489C !important;
  box-shadow: 0 8px 24px rgba(143, 72, 156, 0.14) !important;
}

[data-theme="light"] .feature-item-body h5 {
  color: #0F172A !important;
}

[data-theme="light"] .feature-item-body p {
  color: #64748B !important;
}

[data-theme="light"] .spec-pill {
  background: rgba(143, 72, 156, 0.08) !important;
  border-color: rgba(143, 72, 156, 0.25) !important;
  color: #334155 !important;
}

[data-theme="light"] .floating-tech-chip {
  background: rgba(255, 255, 255, 0.94) !important;
  border-color: rgba(143, 72, 156, 0.3) !important;
  color: #0F172A !important;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.12) !important;
}

[data-theme="light"] .showcase-status-pill {
  background: rgba(143, 72, 156, 0.08) !important;
  border-color: rgba(143, 72, 156, 0.25) !important;
  color: #8F489C !important;
}

[data-theme="light"] .video-device-frame {
  border-color: #8F489C !important;
  box-shadow: 0 25px 60px -10px rgba(15, 23, 42, 0.25), 0 0 30px rgba(143, 72, 156, 0.2) !important;
}

/* Curriculum Section in Light Mode */
[data-theme="light"] #portfolio {
  background: var(--bg-section-alt);
}

[data-theme="light"] #curriculum-search {
  background: #FFFFFF !important;
  border-color: #CBD5E1 !important;
  color: #0F172A !important;
}

[data-theme="light"] #curriculum-search::placeholder {
  color: #94A3B8;
}

[data-theme="light"] .filter-pill-btn {
  background: #FFFFFF;
  color: #334155;
  border-color: #E2E8F0;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

[data-theme="light"] .filter-pill-btn:hover {
  background: #F1F5F9;
  color: #0F172A;
}

[data-theme="light"] .filter-pill-btn.active {
  background: var(--primary-gold);
  color: #FFFFFF !important;
  border-color: var(--primary-gold);
  box-shadow: 0 2px 10px rgba(143, 72, 156, 0.35);
}

[data-theme="light"] .curriculum-card {
  background: #FFFFFF !important;
  border: 1px solid rgba(0, 0, 0, 0.08) !important;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06) !important;
}

[data-theme="light"] .curriculum-card:hover {
  border-color: #8F489C !important;
  box-shadow: 0 16px 36px rgba(143, 72, 156, 0.2) !important;
}

[data-theme="light"] .card-grade-badge {
  background: rgba(143, 72, 156, 0.12) !important;
  border-color: #8F489C !important;
  color: #8F489C !important;
  font-weight: 700 !important;
}

[data-theme="light"] .portfolio-content .card-title {
  color: #0F172A !important;
}

[data-theme="light"] .portfolio-content .card-subtitle {
  color: #8F489C !important;
}

[data-theme="light"] .competency-tag {
  background: #F1F5F9 !important;
  border-color: #E2E8F0 !important;
  color: #334155 !important;
}

[data-theme="light"] .card-btn-action {
  background: rgba(143, 72, 156, 0.08) !important;
  border-color: #8F489C !important;
  color: #8F489C !important;
}

[data-theme="light"] .card-btn-action:hover {
  background: var(--primary-gold) !important;
  color: #FFFFFF !important;
}

[data-theme="light"] .results-count-bar {
  color: #64748B;
}

/* AboutUs / Timeline in Light Mode */
[data-theme="light"] #aboutUs {
  background: var(--bg-dark);
}

[data-theme="light"] .aboutUs-content h4 {
  color: #0F172A !important;
}

[data-theme="light"] .aboutUs-content h4.subheading {
  color: #8F489C !important;
}

[data-theme="light"] .aboutUs-content p {
  color: #475569 !important;
}

[data-theme="light"] .timeline-image-circle {
  border-color: #8F489C !important;
  background: #FFFFFF !important;
  color: #8F489C !important;
  box-shadow: 0 0 20px rgba(143, 72, 156, 0.25) !important;
}

[data-theme="light"] .about-circle:before {
  border-color: #E2E8F0 !important;
}

[data-theme="light"] .aboutUs-content:before {
  background: #CBD5E1 !important;
  box-shadow: none !important;
}

/* Team in Light Mode */
[data-theme="light"] #team {
  background: var(--bg-section-alt);
}

[data-theme="light"] .team-circle {
  background: #FFFFFF !important;
  border-color: #8F489C !important;
  color: #8F489C !important;
  box-shadow: 0 0 20px rgba(143, 72, 156, 0.25) !important;
}

[data-theme="light"] .team-content h4 {
  color: #0F172A !important;
}

[data-theme="light"] .team-content h5 {
  color: #8F489C !important;
}

[data-theme="light"] .team-content p {
  color: #475569 !important;
}

[data-theme="light"] .team-summary-text {
  color: #64748B !important;
}

[data-theme="light"] .social-icon a {
  border-color: #8F489C !important;
  color: #8F489C !important;
}

[data-theme="light"] .social-icon a:hover {
  background: var(--primary-gold) !important;
  color: #FFFFFF !important;
}

/* Vision Card in Light Mode */
[data-theme="light"] .vision-card {
  background: #FFFFFF;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .vision-content h3 {
  color: #0F172A !important;
}

[data-theme="light"] .vision-content p {
  color: #475569 !important;
}

[data-theme="light"] .code-box-header {
  background: #F1F5F9;
  border-bottom-color: rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .code-box-header span {
  color: #334155;
}

/* Contact in Light Mode */
[data-theme="light"] #contact {
  background: linear-gradient(rgba(248, 250, 252, 0.94), rgba(241, 245, 249, 0.97)),
              url("https://www.uniguard.com.au/wp-content/uploads/2017/05/world-map-dark.jpg") no-repeat center center fixed;
}

[data-theme="light"] .contact-info-card {
  background: #FFFFFF;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .contact-info-card h4,
[data-theme="light"] .contact-info-card h5 {
  color: #0F172A !important;
}

[data-theme="light"] .contact-info-card p {
  color: #475569 !important;
}

[data-theme="light"] .contact-info-card a.phone-link,
[data-theme="light"] .contact-info-card a.location-link {
  color: var(--primary-gold) !important;
}

[data-theme="light"] .contact-info-card a.email-link {
  color: #1E293B !important;
}

[data-theme="light"] .golden-form-element {
  background: #FFFFFF !important;
  border-color: #CBD5E1 !important;
  color: #0F172A !important;
}

[data-theme="light"] .golden-form-element::placeholder {
  color: #94A3B8 !important;
}

[data-theme="light"] .golden-form-element:focus {
  background: #FFFFFF !important;
  border-color: #8F489C !important;
  color: #0F172A !important;
  box-shadow: 0 0 15px rgba(143, 72, 156, 0.35) !important;
}

/* Footer in Light Mode */
[data-theme="light"] #footer {
  background: #F8FAFC !important;
  border-top: 1px solid rgba(143, 72, 156, 0.18) !important;
}

[data-theme="light"] #footer p {
  color: #334155 !important;
  font-weight: 700;
}

[data-theme="light"] .footer-stages-row {
  color: #8F489C !important;
  font-weight: 800;
}

[data-theme="light"] .footer-contact-details a {
  color: #334155 !important;
  font-weight: 600;
  transition: color 0.2s ease;
}

[data-theme="light"] .footer-contact-details a:hover {
  color: #8F489C !important;
  text-decoration: none;
}

/* Social icons situated between 2026 Uğur Okulları Viranşehir Kampüsü and Bilişim Teknolojileri ve İnovasyon */
[data-theme="light"] .company-social-icon a {
  background: #FFFFFF !important;
  border: 1.5px solid rgba(143, 72, 156, 0.35) !important;
  color: #8F489C !important;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08) !important;
}

[data-theme="light"] .company-social-icon a:hover {
  background: var(--primary-gold) !important;
  border-color: var(--primary-gold) !important;
  color: #FFFFFF !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(143, 72, 156, 0.35) !important;
}

/* Modals & Campus Photo Lightbox in Light Mode */
[data-theme="light"] .modal-backdrop-custom {
  background: rgba(15, 23, 42, 0.65) !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
}

[data-theme="light"] .modal-card-custom {
  background: rgba(255, 255, 255, 0.98) !important;
  border: 1.5px solid rgba(143, 72, 156, 0.35) !important;
  box-shadow: 0 25px 60px rgba(15, 23, 42, 0.18), 0 0 40px rgba(143, 72, 156, 0.12) !important;
  color: #1E293B !important;
}

[data-theme="light"] #campus-modal-title,
[data-theme="light"] #modal-title {
  color: #0F172A !important;
}

[data-theme="light"] #campus-modal p,
[data-theme="light"] #curriculum-modal #modal-age {
  color: #8F489C !important;
}

[data-theme="light"] #campus-modal .modal-card-custom span {
  color: #64748B !important;
}

[data-theme="light"] .modal-close-btn {
  background: #F1F5F9 !important;
  color: #1E293B !important;
  border: 1px solid rgba(143, 72, 156, 0.25) !important;
}

[data-theme="light"] .modal-close-btn:hover {
  background: var(--ugur-red) !important;
  border-color: var(--ugur-red) !important;
  color: #FFFFFF !important;
}

[data-theme="light"] #modal-desc {
  color: #475569 !important;
}

[data-theme="light"] .modal-stage-dot-btn {
  background: #F1F5F9 !important;
  border: 1px solid rgba(143, 72, 156, 0.2) !important;
  color: #475569 !important;
}

[data-theme="light"] .modal-stage-dot-btn.active {
  background: #8F489C !important;
  border-color: #8F489C !important;
  color: #FFFFFF !important;
}

[data-theme="light"] .modal-grade-tabs .grade-tab-btn {
  background: #F1F5F9 !important;
  border: 1px solid rgba(143, 72, 156, 0.2) !important;
  color: #475569 !important;
}

[data-theme="light"] .modal-grade-tabs .grade-tab-btn.active {
  background: #8F489C !important;
  border-color: #8F489C !important;
  color: #FFFFFF !important;
}

[data-theme="light"] .outcome-item-card {
  background: #F8FAFC !important;
  border-left: 3px solid #8F489C !important;
  color: #1E293B !important;
}

[data-theme="light"] .tool-tag {
  background: rgba(143, 72, 156, 0.1) !important;
  border: 1px solid rgba(143, 72, 156, 0.3) !important;
  color: #8F489C !important;
}

/* ==========================================================================
   HERO / COVER SECTION (#cover)
   Matches Golden template cover, but explicitly keeps bottom of schoolfullimage 100% visible!
   ========================================================================== */

#cover {
  position: relative;
  min-height: 100vh;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background-image: linear-gradient(180deg, rgba(8, 12, 22, 0.55) 0%, rgba(8, 12, 22, 0.25) 45%, rgba(8, 12, 22, 0.82) 100%), url("../assets/schoolfullimage.webp");
  background-repeat: no-repeat;
  background-size: cover !important;
  background-position: center bottom !important;
  -webkit-background-size: cover !important;
  -moz-background-size: cover !important;
  -o-background-size: cover !important;
  padding: 130px 20px 70px;
  overflow: hidden;
}

.cover-container {
  position: relative;
  z-index: 2;
  max-width: 1100px;
  margin: 0 auto;
}

#cover h1 {
  font-family: var(--font-serif) !important;
  color: #FFFFFF !important;
  font-size: 42px !important;
  font-style: italic !important;
  font-weight: 600 !important;
  margin-bottom: 20px !important;
  text-shadow: 0 4px 18px rgba(0, 0, 0, 0.9);
  letter-spacing: 0.5px;
}

/* ====================================================================
   TYPEWRITER HEADLINE SYSTEM (Fluid 1-or-2 Line Dynamic Typography)
==================================================================== */
.typewriter-headline-wrapper {
  margin: 12px auto 26px;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  max-width: 1300px;
  padding: 0 10px;
}

.typewriter-headline-card {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  max-width: 100%;
  background: rgba(8, 12, 24, 0.76);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1.5px solid rgba(143, 72, 156, 0.5);
  border-radius: 46px;
  padding: 10px 24px;
  box-shadow: none !important;
  transition: border-color 0.3s ease;
}

.typewriter-headline-card:hover {
  border-color: rgba(143, 72, 156, 0.85);
  box-shadow: none !important;
}

[data-theme="light"] .typewriter-headline-card {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1.5px solid rgba(143, 72, 156, 0.4);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.1), 0 2px 10px rgba(143, 72, 156, 0.12) !important;
}

[data-theme="light"] .typewriter-headline-card:hover {
  border-color: rgba(143, 72, 156, 0.75);
  box-shadow: 0 14px 35px rgba(15, 23, 42, 0.14), 0 4px 15px rgba(143, 72, 156, 0.22) !important;
}

[data-theme="light"] .typewriter-badge {
  background: #FFFFFF !important;
  border-color: #8F489C !important;
  color: #8F489C !important;
  box-shadow: 0 4px 14px rgba(143, 72, 156, 0.18) !important;
}

[data-theme="light"] .typewriter-badge:hover {
  background: #8F489C !important;
  color: #FFFFFF !important;
  border-color: #8F489C !important;
}

[data-theme="light"] .typewriter-badge:hover .cute-robot-icon rect[fill="#111827"],
[data-theme="light"] .typewriter-badge:hover .cute-bot-inner rect:first-of-type {
  fill: #8F489C;
}

[data-theme="light"] .cute-bot-inner rect[fill="#111827"] {
  fill: #F5EEF8;
}

[data-theme="light"] .cute-bot-inner rect[fill="#030712"] {
  fill: #1E1B4B;
}

[data-theme="light"] .typewriter-text-wrapper {
  color: #1E1B4B !important;
}

[data-theme="light"] .typewriter-text {
  color: #1E1B4B !important;
  background: linear-gradient(135deg, #1E1B4B 0%, #8F489C 100%) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
}

[data-theme="light"] .typewriter-cursor {
  color: #8F489C !important;
  -webkit-text-fill-color: #8F489C !important;
}

/* Iconic Circle Badges */
.typewriter-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  min-width: 52px;
  border-radius: 50%;
  background: rgba(14, 20, 36, 0.92);
  border: 2px solid var(--primary-gold);
  color: var(--primary-gold);
  font-size: 22px;
  box-shadow: none !important;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  flex-shrink: 0;
  position: relative;
  overflow: visible;
}

.typewriter-badge.badge-pop {
  animation: badgePopAnim 0.45s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes badgePopAnim {
  0% { transform: scale(0.8); opacity: 0.7; }
  50% { transform: scale(1.15); opacity: 1; }
  100% { transform: scale(1); opacity: 1; }
}

/* Cute Robot SVG Styling */
.cute-robot-icon {
  width: 32px;
  height: 32px;
  display: block;
  overflow: visible;
  filter: none !important;
  transition: transform 0.3s ease;
}

.typewriter-badge:hover .cute-robot-icon {
  transform: rotate(-6deg) scale(1.1);
}

/* Fluid 1-to-2 Line Text Wrapper */
.typewriter-text-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  margin: 0;
  padding: 2px 4px;
  font-family: var(--font-heading) !important;
  font-weight: 900 !important;
  font-size: clamp(19px, 2.4vw, 34px) !important;
  color: #FFFFFF !important;
  text-transform: uppercase !important;
  letter-spacing: 0.8px !important;
  text-shadow: none !important;
  line-height: 1.32 !important;
  min-height: 2.7em; /* Guarantees fixed height for both 1-line and 2-line states */
  max-width: 100%;
}

.typewriter-content-inner {
  display: inline-block;
  text-align: center;
  white-space: normal;
  word-break: normal;
  overflow-wrap: break-word;
  max-width: 100%;
  line-height: inherit;
}

.typewriter-text {
  display: inline;
  color: #FFFFFF;
  background: linear-gradient(180deg, #FFFFFF 20%, #F5E8FF 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Glowing Typewriter Cursor - Inline with text, stays strictly next to the last character */
.typewriter-cursor {
  display: inline;
  color: var(--primary-gold);
  -webkit-text-fill-color: var(--primary-gold);
  font-weight: 400;
  font-size: 1.05em;
  line-height: inherit;
  padding-left: 2px;
  text-shadow: none !important;
  animation: typewriterCursorBlink 0.85s infinite;
  user-select: none;
  white-space: nowrap;
}

.typewriter-cursor.paused {
  animation-duration: 1.1s;
}

@keyframes typewriterCursorBlink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

.cover-subtitle {
  font-family: var(--font-body);
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.92);
  max-width: 820px;
  margin: 0 auto 36px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
  font-weight: 400;
}

/* Golden Buttons with Uğur Okulları Purple #8F489C */
.btn-primary {
  font-family: var(--font-heading) !important;
  background-color: var(--primary-gold) !important;
  border: none !important;
  font-size: 16px !important;
  padding: 18px 44px !important;
  font-weight: 800 !important;
  letter-spacing: 1px !important;
  color: #FFFFFF !important;
  border-radius: 6px !important;
  transition: all 0.3s ease !important;
  box-shadow: 0 6px 20px rgba(143, 72, 156, 0.45) !important;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.btn-primary:hover {
  background-color: var(--primary-gold-hover) !important;
  color: #FFFFFF !important;
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(143, 72, 156, 0.6) !important;
}

.btn-outline-golden {
  font-family: var(--font-heading) !important;
  background: rgba(8, 12, 22, 0.6) !important;
  border: 2px solid var(--primary-gold) !important;
  color: #FFFFFF !important;
  font-size: 16px !important;
  padding: 16px 36px !important;
  font-weight: 800 !important;
  letter-spacing: 1px !important;
  border-radius: 6px !important;
  transition: all 0.3s ease !important;
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.btn-outline-golden:hover {
  background: var(--primary-gold) !important;
  color: #FFFFFF !important;
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(143, 72, 156, 0.5) !important;
  text-decoration: none !important;
}

[data-theme="light"] .btn-outline-golden {
  background: rgba(255, 255, 255, 0.92) !important;
  border: 2px solid #8F489C !important;
  color: #8F489C !important;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.1) !important;
}

[data-theme="light"] .btn-outline-golden:hover {
  background: #8F489C !important;
  border-color: #8F489C !important;
  color: #FFFFFF !important;
  box-shadow: 0 8px 25px rgba(143, 72, 156, 0.4) !important;
}

/* Floating Campus Tag at bottom-right of cover without obstructing image */
.campus-scenic-pill {
  position: absolute;
  bottom: 24px;
  right: 28px;
  z-index: 3;
  background: rgba(8, 12, 22, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(143, 72, 156, 0.45);
  border-radius: 30px;
  padding: 8px 18px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 700;
  color: #FFFFFF;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5), 0 0 15px rgba(143, 72, 156, 0.2);
  cursor: pointer;
  transition: all 0.3s ease;
}

.campus-scenic-pill:hover {
  background: var(--primary-gold);
  color: #FFFFFF;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(143, 72, 156, 0.5);
}

[data-theme="light"] .campus-scenic-pill {
  background: rgba(255, 255, 255, 0.92) !important;
  border: 1.5px solid rgba(143, 72, 156, 0.35) !important;
  color: #1E293B !important;
  box-shadow: 0 6px 20px rgba(15, 23, 42, 0.12), 0 0 15px rgba(143, 72, 156, 0.15) !important;
}

[data-theme="light"] .campus-scenic-pill:hover {
  background: #8F489C !important;
  border-color: #8F489C !important;
  color: #FFFFFF !important;
  box-shadow: 0 8px 25px rgba(143, 72, 156, 0.4) !important;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background: #00e676;
  border-radius: 50%;
  box-shadow: 0 0 8px #00e676;
  animation: pulseAnimation 2s infinite;
}

@keyframes pulseAnimation {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(0, 230, 118, 0.7); }
  70% { transform: scale(1.15); box-shadow: 0 0 0 8px rgba(0, 230, 118, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(0, 230, 118, 0); }
}

/* ==========================================================================
   SERVICES SECTION (#services)
   Golden style: 3 circular items with hover purple border
   ========================================================================== */

#services {
  padding: 120px 0;
  background: var(--bg-dark);
  position: relative;
}

.services-top h3, 
.portfolio-top h3, 
.aboutUs-top h3, 
.team-top h3, 
.contact-top h3,
.location-top h3 {
  font-family: var(--font-heading);
  font-size: 42px;
  font-weight: 800;
  letter-spacing: 1.5px;
  color: #FFFFFF;
  margin-bottom: 12px;
  text-transform: uppercase;
}

.services-top p, 
.portfolio-top p, 
.aboutUs-top p, 
.team-top p, 
.contact-top p,
.location-top p {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 18px;
  color: var(--primary-gold);
  margin-bottom: 70px;
}

.location-top p {
  margin-bottom: 45px;
}

.item-circle {
  border: 3px solid var(--primary-gold);
  width: 110px;
  height: 110px;
  margin: 0 auto;
  border-radius: 50%;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(143, 72, 156, 0.08);
}

.item-circle i {
  color: var(--primary-gold);
  transition: all 0.4s ease;
}

.item-circle:hover {
  background: var(--primary-gold);
  border-color: #262626;
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 0 30px rgba(143, 72, 156, 0.5);
}

.item-circle:hover i {
  color: #FFFFFF !important;
}

.services-content h4 {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 700;
  color: #FFFFFF;
  margin-top: 28px;
  margin-bottom: 14px;
}

.services-content p, 
.aboutUs-content p {
  font-family: var(--font-body);
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.7;
}

/* Pillar 2 Video Showcase Link Badge in Services */
.pillar-showcase-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border-radius: 24px;
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 700;
  color: var(--primary-gold);
  background: rgba(143, 72, 156, 0.12);
  border: 1px solid var(--border-gold);
  text-decoration: none !important;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 15px rgba(143, 72, 156, 0.15);
}

.pillar-showcase-badge:hover {
  background: var(--primary-gold);
  color: #FFFFFF !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(143, 72, 156, 0.45);
}

/* ==========================================================================
   ROBOTICS & PHYSICAL COMPUTING SHOWCASE SECTION (#robotics-showcase)
   Futuristic 9:16 Video Totem Showcase with Glassmorphism Controls
   ========================================================================== */

#robotics-showcase {
  padding: 110px 0;
  position: relative;
  background: radial-gradient(circle at 85% 25%, rgba(143, 72, 156, 0.16) 0%, transparent 45%),
              radial-gradient(circle at 15% 75%, rgba(0, 229, 255, 0.09) 0%, transparent 40%),
              var(--bg-dark);
  border-top: 1px solid var(--border-glass);
  border-bottom: 1px solid var(--border-glass);
  overflow: hidden;
}

.showcase-top {
  margin-bottom: 60px;
}

.showcase-eyebrow-wrapper {
  margin-bottom: 16px;
}

.showcase-eyebrow-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 18px;
  border-radius: 30px;
  background: rgba(143, 72, 156, 0.15);
  border: 1px solid var(--border-gold);
  color: var(--primary-gold);
  font-family: var(--font-heading);
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  box-shadow: 0 4px 18px rgba(143, 72, 156, 0.2);
}

.pulse-dot-cyan {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #00E5FF;
  box-shadow: 0 0 10px #00E5FF;
  animation: pulseCyan 1.8s infinite;
}

@keyframes pulseCyan {
  0% { transform: scale(0.9); box-shadow: 0 0 0 0 rgba(0, 229, 255, 0.7); }
  70% { transform: scale(1.15); box-shadow: 0 0 0 8px rgba(0, 229, 255, 0); }
  100% { transform: scale(0.9); box-shadow: 0 0 0 0 rgba(0, 229, 255, 0); }
}

.showcase-top h3 {
  font-family: var(--font-heading);
  font-size: 38px;
  font-weight: 800;
  letter-spacing: 1.2px;
  color: var(--text-heading);
  text-transform: uppercase;
  margin-bottom: 12px;
}

.showcase-top p {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 18px;
  color: var(--primary-gold);
  margin-bottom: 0;
}

/* Left Content Column */
.showcase-content-box {
  padding-right: 20px;
}

[dir="rtl"] .showcase-content-box {
  padding-right: 0;
  padding-left: 20px;
}

.showcase-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 14px;
  border-radius: 20px;
  background: rgba(143, 72, 156, 0.12);
  border: 1px solid rgba(143, 72, 156, 0.35);
  color: var(--primary-gold);
  font-family: var(--font-heading);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.8px;
}

.status-indicator-live {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #00E676;
  box-shadow: 0 0 8px #00E676;
  animation: pulseGreen 1.8s infinite;
}

@keyframes pulseGreen {
  0% { transform: scale(0.9); box-shadow: 0 0 0 0 rgba(0, 230, 118, 0.7); }
  70% { transform: scale(1.2); box-shadow: 0 0 0 8px rgba(0, 230, 118, 0); }
  100% { transform: scale(0.9); box-shadow: 0 0 0 0 rgba(0, 230, 118, 0); }
}

.showcase-main-heading {
  font-family: var(--font-heading);
  font-size: 28px;
  font-weight: 800;
  line-height: 1.35;
  color: var(--text-heading);
  margin-bottom: 18px;
}

.showcase-main-desc {
  font-family: var(--font-body);
  font-size: 15.5px;
  line-height: 1.75;
  color: var(--text-muted);
  margin-bottom: 28px;
}

/* Feature Highlight Cards */
.showcase-features-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 24px;
}

.showcase-feature-item {
  display: flex;
  align-items: flex-start;
  padding: 16px 20px;
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-card);
  border-radius: 16px;
  box-shadow: var(--card-shadow);
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.showcase-feature-item:hover {
  transform: translateX(6px);
  border-color: var(--primary-gold);
  box-shadow: 0 12px 30px rgba(143, 72, 156, 0.22);
}

[dir="rtl"] .showcase-feature-item:hover {
  transform: translateX(-6px);
}

.feature-item-icon {
  width: 44px;
  height: 44px;
  min-width: 44px;
  border-radius: 12px;
  background: rgba(143, 72, 156, 0.16);
  border: 1px solid rgba(143, 72, 156, 0.35);
  color: var(--primary-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 19px;
  margin-right: 18px;
  transition: transform 0.3s ease;
}

[dir="rtl"] .feature-item-icon {
  margin-right: 0;
  margin-left: 18px;
}

.showcase-feature-item:hover .feature-item-icon {
  transform: scale(1.1) rotate(5deg);
  background: var(--primary-gold);
  color: #FFFFFF;
}

.feature-item-body h5 {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 700;
  color: var(--text-heading);
  margin-bottom: 5px;
}

.feature-item-body p {
  font-family: var(--font-body);
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--text-muted);
  margin-bottom: 0;
}

/* Specification / Status Pills */
.showcase-spec-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.spec-pill {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  border-radius: 20px;
  background: rgba(143, 72, 156, 0.1);
  border: 1px solid rgba(143, 72, 156, 0.3);
  color: var(--text-body);
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.3px;
}

.spec-pill i {
  color: var(--primary-gold);
}

/* Action Buttons */
.showcase-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}

/* Right Column: 9:16 Video Totem Showcase Device */
.video-showcase-device-wrapper {
  position: relative;
  max-width: 350px;
  width: 100%;
  margin: 0 auto;
}

.device-ambient-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 112%;
  height: 108%;
  border-radius: 48px;
  background: radial-gradient(circle, rgba(143, 72, 156, 0.38) 0%, rgba(0, 229, 255, 0.18) 45%, transparent 70%);
  filter: blur(40px);
  z-index: 1;
  pointer-events: none;
  animation: glowBreathe 6s ease-in-out infinite alternate;
}

@keyframes glowBreathe {
  0% { opacity: 0.7; transform: translate(-50%, -50%) scale(0.96); }
  100% { opacity: 1; transform: translate(-50%, -50%) scale(1.04); }
}

.video-device-frame {
  position: relative;
  z-index: 2;
  width: 100%;
  aspect-ratio: 9 / 16;
  border-radius: 36px;
  background: #020617;
  border: 3.5px solid rgba(143, 72, 156, 0.65);
  box-shadow: 0 30px 70px -15px rgba(0, 0, 0, 0.85),
              0 0 45px rgba(143, 72, 156, 0.35);
  overflow: hidden;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease;
}

.video-device-frame:hover {
  transform: translateY(-4px);
  box-shadow: 0 35px 85px -10px rgba(0, 0, 0, 0.9),
              0 0 55px rgba(143, 72, 156, 0.45);
}

.ventuno-showcase-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 32px;
  background: #000;
  cursor: pointer;
}

/* Device Top Hardware Bar & Badges */
.device-hardware-bar {
  position: absolute;
  top: 14px;
  left: 16px;
  right: 16px;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  pointer-events: none;
}

.device-live-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  background: rgba(0, 0, 0, 0.68);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 14px;
  font-family: var(--font-heading);
  font-size: 10.5px;
  font-weight: 800;
  color: #FFFFFF;
  letter-spacing: 0.6px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.device-hardware-speaker {
  width: 48px;
  height: 4.5px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.28);
}

.device-model-badge {
  padding: 5px 12px;
  background: rgba(143, 72, 156, 0.65);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 14px;
  font-family: var(--font-heading);
  font-size: 10.5px;
  font-weight: 800;
  color: #FFFFFF;
  letter-spacing: 0.8px;
  border: 1px solid rgba(255, 255, 255, 0.22);
}

/* Video Glass Controller (Bottom Overlay) */
.video-glass-controller {
  position: absolute;
  bottom: 14px;
  left: 12px;
  right: 12px;
  z-index: 5;
  background: rgba(8, 14, 28, 0.82);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 22px;
  padding: 8px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.55);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.video-ctrl-btn {
  width: 34px;
  height: 34px;
  min-width: 34px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.1);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.25s ease;
  padding: 0;
}

.video-ctrl-btn:hover {
  background: var(--primary-gold);
  border-color: var(--primary-gold);
  transform: scale(1.1);
  box-shadow: 0 0 14px rgba(143, 72, 156, 0.6);
}

.video-progress-container {
  flex: 1;
  height: 6px;
  background: rgba(255, 255, 255, 0.22);
  border-radius: 4px;
  position: relative;
  cursor: pointer;
  overflow: hidden;
}

.video-progress-bar {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, #00E5FF, var(--primary-gold));
  border-radius: 4px;
  box-shadow: 0 0 8px #00E5FF;
  transition: width 0.1s linear;
}

.video-time-display {
  font-family: monospace;
  font-size: 11px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.9);
  white-space: nowrap;
}

/* Floating Accent Tech Chips */
.floating-tech-chip {
  position: absolute;
  z-index: 6;
  padding: 8px 16px;
  background: rgba(16, 24, 42, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(143, 72, 156, 0.45);
  border-radius: 18px;
  color: #FFFFFF;
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 700;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  pointer-events: none;
  animation: floatChip 4.5s ease-in-out infinite alternate;
}

.chip-top-left {
  top: -18px;
  left: -22px;
  animation-delay: 0s;
}

.chip-bottom-right {
  bottom: -18px;
  right: -22px;
  animation-delay: 2.2s;
}

.chip-pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #00E5FF;
  box-shadow: 0 0 8px #00E5FF;
}

@keyframes floatChip {
  0% { transform: translateY(0px); }
  100% { transform: translateY(-8px); }
}

/* Video Lightbox Modal (#video-modal) */
.video-modal-card {
  max-width: 520px;
  padding: 32px 28px;
  border-radius: 28px;
  background: var(--bg-card);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--border-gold);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.7);
}

.video-modal-title {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 800;
  color: var(--text-heading);
  margin-bottom: 6px;
}

.video-modal-subtitle {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 14px;
  color: var(--primary-gold);
  margin-bottom: 0;
}

.video-modal-player-wrapper {
  position: relative;
  width: 100%;
  max-width: 350px;
  margin: 0 auto;
  aspect-ratio: 9 / 16;
  border-radius: 28px;
  overflow: hidden;
  background: #000;
  border: 2px solid rgba(143, 72, 156, 0.45);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7);
}

.modal-ventuno-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Responsive adjustments for Robotics Showcase */
@media (max-width: 991.98px) {
  #robotics-showcase {
    padding: 80px 0;
  }
  
  .showcase-content-box {
    padding-right: 0;
    text-align: center;
  }
  
  .showcase-main-heading {
    font-size: 24px;
  }
  
  .showcase-feature-item {
    text-align: left;
  }
  
  [dir="rtl"] .showcase-feature-item {
    text-align: right;
  }
  
  .showcase-spec-pills {
    justify-content: center;
  }
  
  .showcase-actions {
    justify-content: center;
  }
  
  .video-showcase-device-wrapper {
    max-width: 320px;
  }
  
  .chip-top-left {
    left: -10px;
  }
  
  .chip-bottom-right {
    right: -10px;
  }
}

@media (max-width: 575.98px) {
  .showcase-top h3 {
    font-size: 28px;
  }
  
  .video-showcase-device-wrapper {
    max-width: 290px;
  }
  
  .chip-top-left,
  .chip-bottom-right {
    display: none;
  }
  
  .showcase-actions .btn {
    width: 100%;
    margin-right: 0 !important;
  }
}

/* ==========================================================================
   PORTFOLIO SECTION (#portfolio)
   K12 Curriculum with 6 Stages, responsive video embeds, filters, and modal triggers
   ========================================================================== */

#portfolio {
  background: var(--bg-section-alt);
  padding: 120px 0;
  position: relative;
  border-top: 1px solid var(--border-glass);
  border-bottom: 1px solid var(--border-glass);
}

/* Portfolio Filters */
.portfolio-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-bottom: 50px;
}

.filter-btn {
  background: rgba(16, 24, 42, 0.85);
  color: #FFFFFF;
  border: 1px solid var(--border-glass);
  padding: 10px 22px;
  border-radius: 30px;
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--primary-gold);
  color: #FFFFFF !important;
  border-color: var(--primary-gold);
  box-shadow: 0 4px 15px rgba(143, 72, 156, 0.45);
  transform: translateY(-2px);
}

/* Portfolio Card */
.curriculum-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 30px;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.curriculum-card:hover {
  transform: translateY(-6px);
  border-color: var(--primary-gold);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.55), 0 0 25px rgba(143, 72, 156, 0.25);
}

.card-video-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000000;
  overflow: hidden;
}

.card-video-iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

.card-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.card-grade-badge {
  display: inline-block;
  align-self: flex-start;
  background: rgba(143, 72, 156, 0.15);
  border: 1px solid var(--primary-gold);
  color: var(--primary-gold);
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 12px;
  text-transform: uppercase;
}

.portfolio-content .card-title {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 800;
  color: #FFFFFF;
  margin-bottom: 8px;
  line-height: 1.3;
}

.portfolio-content .card-subtitle {
  font-family: var(--font-serif);
  font-size: 14px;
  font-style: italic;
  color: var(--primary-gold);
  margin-bottom: 14px;
}

.card-competencies-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 20px;
}

.competency-tag {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #D1D5DB;
  font-size: 11.5px;
  font-family: var(--font-heading);
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 6px;
}

.card-btn-action {
  margin-top: auto;
  width: 100%;
  background: rgba(143, 72, 156, 0.12);
  border: 1px solid var(--primary-gold);
  color: var(--primary-gold);
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 700;
  padding: 12px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.card-btn-action:hover {
  background: var(--primary-gold);
  color: #FFFFFF !important;
  box-shadow: 0 4px 15px rgba(143, 72, 156, 0.45);
}

/* ==========================================================================
   ABOUT US / TIMELINE SECTION (#aboutUs)
   The iconic Golden alternating timeline with center yellow circle
   ========================================================================== */

#aboutUs {
  padding: 120px 0;
  background: var(--bg-dark);
  position: relative;
}

.aboutUs-content {
  position: relative;
  text-align: center;
}

.aboutUs-content:before {
  content: "";
  top: 0;
  bottom: 0;
  left: 50%;
  position: absolute;
  width: 4px;
  background: var(--primary-gold);
  margin-left: -2px;
  box-shadow: 0 0 15px rgba(143, 72, 156, 0.5);
}

.aboutUs-content .row {
  margin-bottom: 90px;
  align-items: center;
}

.aboutUs-content h4 {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 800;
  color: #FFFFFF;
  margin-bottom: 6px;
}

.aboutUs-content h4.subheading {
  font-family: var(--font-serif);
  font-size: 16px;
  font-style: italic;
  color: var(--primary-gold);
  margin-bottom: 14px;
}

.timeline-image-circle {
  width: 160px;
  height: 160px;
  background: #111827;
  border: 6px solid var(--primary-gold);
  border-radius: 50%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-gold);
  box-shadow: 0 0 25px rgba(143, 72, 156, 0.35);
  transition: all 0.4s ease;
}

.timeline-image-circle:hover {
  transform: scale(1.08);
  background: var(--primary-gold);
  color: #FFFFFF !important;
}

.about-circle {
  position: relative;
  width: 170px;
  height: 170px;
  margin: 0 auto;
}

.about-circle:before {
  top: 0;
  bottom: 0;
  position: absolute;
  content: "";
  width: 170px;
  height: 170px;
  background: var(--primary-gold);
  border-radius: 50%;
  border: 6px solid #262626;
  left: 50%;
  margin-left: -85px;
  box-shadow: 0 0 35px rgba(143, 72, 156, 0.6);
}

.yellow-text {
  position: relative;
  top: 36px;
  left: 0;
  font-family: var(--font-heading) !important;
  font-size: 17px !important;
  font-weight: 900 !important;
  color: #FFFFFF !important;
  line-height: 1.35;
  margin: 0 auto;
}

/* ==========================================================================
   TEAM SECTION (#team)
   ========================================================================== */

#team {
  padding-top: 120px;
  padding-bottom: 70px;
  background: var(--bg-section-alt);
  border-top: 1px solid var(--border-glass);
}

.team-circle {
  width: 180px;
  height: 180px;
  background: #111827;
  border-radius: 50%;
  margin: 0 auto 20px;
  border: 5px solid var(--primary-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-gold);
  box-shadow: 0 0 25px rgba(143, 72, 156, 0.3);
  transition: all 0.4s ease;
}

.team-circle:hover {
  transform: scale(1.06);
  background: var(--primary-gold);
  color: #FFFFFF !important;
}

.team-content h4 {
  font-family: var(--font-heading);
  font-size: 19px;
  font-weight: 800;
  color: #FFFFFF;
  margin-bottom: 4px;
}

.team-content h5 {
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--primary-gold);
  font-size: 14px;
  margin-bottom: 16px;
}

.social-icons {
  list-style: none;
  padding: 0;
  margin: 0;
}

.social-icon {
  display: inline-block;
  padding: 0 4px;
}

.social-icon a {
  border: 2px solid var(--primary-gold);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-gold);
  text-decoration: none;
  transition: all 0.3s ease;
}

.social-icon a:hover {
  background: var(--primary-gold);
  color: #FFFFFF !important;
  transform: translateY(-2px);
}

.team-summary-text {
  width: 80%;
  max-width: 800px;
  margin: 40px auto 0;
  font-family: var(--font-body);
  color: var(--text-muted);
  font-size: 16px;
}

/* ==========================================================================
   PARTNER SECTION (#partner)
   ========================================================================== */

#partner {
  padding: 40px 0;
  background: var(--bg-dark);
  border-top: 1px solid var(--border-glass);
  border-bottom: 1px solid var(--border-glass);
}

.partner-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 700;
  color: #9CA3AF;
  padding: 8px 16px;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.partner-badge:hover {
  color: var(--primary-gold);
  transform: translateY(-2px);
}

/* ==========================================================================
   CONTACT SECTION (#contact)
   ========================================================================== */

#contact {
  background: linear-gradient(rgba(8, 12, 22, 0.88), rgba(8, 12, 22, 0.94)), url("https://www.uniguard.com.au/wp-content/uploads/2017/05/world-map-dark.jpg") no-repeat center center fixed;
  background-size: cover;
  -webkit-background-size: cover;
  -moz-background-size: cover;
  -o-background-size: cover;
  padding: 120px 0;
  position: relative;
}

.golden-form-element {
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 700;
  width: 100%;
  height: 52px;
  padding: 0 16px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 6px;
  background: rgba(16, 24, 42, 0.9);
  color: #FFFFFF;
  transition: all 0.3s ease;
}

.golden-form-element::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.golden-form-element:focus {
  outline: none;
  border-color: var(--primary-gold);
  box-shadow: 0 0 15px rgba(143, 72, 156, 0.35);
}

textarea.golden-form-element {
  height: 184px;
  padding-top: 14px;
}

.contact-info-card {
  background: rgba(16, 24, 42, 0.75);
  border: 1px solid var(--border-glass);
  border-radius: 18px;
  padding: 26px 18px;
  height: 100%;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.contact-info-card:hover {
  border-color: var(--primary-gold);
  transform: translateY(-5px);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.35), 0 0 20px rgba(200, 155, 60, 0.15);
}

.contact-info-icon-box {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: rgba(200, 155, 60, 0.12);
  border: 1px solid rgba(200, 155, 60, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-gold);
  font-size: 22px;
  margin-bottom: 16px;
  flex-shrink: 0;
  transition: all 0.3s ease;
}

.contact-info-card:hover .contact-info-icon-box {
  background: var(--primary-gold);
  color: #FFFFFF;
  transform: scale(1.08) rotate(3deg);
  border-color: var(--primary-gold);
  box-shadow: 0 6px 20px rgba(200, 155, 60, 0.35);
}

.contact-info-card h5 {
  font-family: var(--font-heading);
  font-size: 15.5px;
  font-weight: 800;
  color: #FFFFFF;
  margin-bottom: 12px;
  line-height: 1.3;
  min-height: 22px;
}

.contact-card-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex-grow: 1;
  width: 100%;
}

.contact-card-link {
  color: var(--primary-gold);
  font-weight: 700;
  text-decoration: none;
  transition: color 0.2s ease, opacity 0.2s ease;
  display: inline-block;
  max-width: 100%;
}

.contact-card-link:hover {
  color: #FFFFFF;
  text-decoration: underline;
}

.contact-card-link.email-link {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: -0.2px;
  word-break: break-all;
  overflow-wrap: break-word;
  line-height: 1.5;
  color: #E2E8F0;
  padding: 0 4px;
}

.contact-card-link.phone-link {
  font-size: 15.5px;
  font-weight: 800;
  color: var(--primary-gold);
  letter-spacing: 0.5px;
}

.contact-card-link.location-link {
  font-size: 13.5px;
  font-weight: 800;
  color: var(--primary-gold);
  line-height: 1.4;
}

.contact-stages-text {
  font-size: 13px;
  font-weight: 500;
  line-height: 1.65;
  color: #E2E8F0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.contact-card-hint {
  display: inline-block;
  margin-top: 10px;
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 600;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-glass);
  padding: 3px 10px;
  border-radius: 20px;
}

[data-theme="light"] .contact-info-card {
  background: rgba(255, 255, 255, 0.95);
  border-color: rgba(15, 23, 42, 0.08);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .contact-info-card:hover {
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.12);
}

[data-theme="light"] .contact-info-card h5 {
  color: #0F172A;
}

[data-theme="light"] .contact-card-link.email-link {
  color: #334155;
}

[data-theme="light"] .contact-card-hint {
  background: rgba(15, 23, 42, 0.05);
  border-color: rgba(15, 23, 42, 0.08);
}

/* ==========================================================================
   FOOTER SECTION (#footer)
   ========================================================================== */

#footer {
  padding: 25px 0;
  background: #05080E;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

#footer p {
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 700;
  color: #777777;
  margin: 0;
}

.company-social-icons {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
  gap: 12px;
}

.company-social-icon a {
  background: #111827;
  border: 1px solid var(--primary-gold);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-gold);
  transition: all 0.3s ease;
  text-decoration: none;
}

.company-social-icon a:hover {
  background: var(--primary-gold);
  color: #FFFFFF !important;
  transform: translateY(-2px);
  box-shadow: 0 0 15px rgba(143, 72, 156, 0.5);
}

/* ==========================================================================
   MODAL DIALOG (K12 DETAILS & CAMPUS HIGH-RES LIGHTBOX)
   ========================================================================== */

.modal-backdrop-custom {
  position: fixed;
  inset: 0;
  background: rgba(5, 8, 14, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 3000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-backdrop-custom.open {
  display: flex;
}

.modal-card-custom {
  background: rgba(13, 20, 36, 0.98);
  border: 1px solid var(--primary-gold);
  border-radius: 20px;
  width: 100%;
  max-width: 800px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8), 0 0 40px rgba(143, 72, 156, 0.25);
  padding: 32px;
  position: relative;
  animation: modalIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalIn {
  from { opacity: 0; transform: scale(0.95) translateY(15px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.modal-close-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid var(--border-glass);
  color: #FFFFFF;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.modal-close-btn:hover {
  background: var(--ugur-red);
  color: #FFFFFF;
  border-color: var(--ugur-red);
}

.tool-tag {
  display: inline-block;
  background: rgba(143, 72, 156, 0.15);
  border: 1px solid var(--primary-gold);
  color: var(--primary-gold);
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 20px;
  margin: 4px;
}

.outcome-item-card {
  background: rgba(255, 255, 255, 0.04);
  border-left: 3px solid var(--primary-gold);
  padding: 12px 16px;
  border-radius: 0 8px 8px 0;
  margin-bottom: 8px;
  font-size: 14px;
}

[dir="rtl"] .outcome-item-card {
  border-left: none;
  border-right: 3px solid var(--primary-gold);
  border-radius: 8px 0 0 8px;
}

/* Modal Grade Navigation Tabs */
.modal-grade-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 20px;
  background: rgba(255, 255, 255, 0.03);
  padding: 6px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.modal-grade-tab-btn {
  flex: 1;
  min-width: 110px;
  padding: 10px 14px;
  background: transparent;
  border: 1.5px solid transparent;
  border-radius: 8px;
  color: var(--text-muted);
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.modal-grade-tab-btn:hover {
  color: #FFFFFF;
  background: rgba(143, 72, 156, 0.15);
  border-color: rgba(143, 72, 156, 0.35);
}

.modal-grade-tab-btn.active {
  background: var(--primary-gold);
  color: #FFFFFF;
  border-color: var(--primary-gold);
  box-shadow: 0 4px 14px rgba(143, 72, 156, 0.45);
}

/* Modal Terms Grid (1. Dönem & 2. Dönem Üniteleri) */
.modal-terms-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.modal-term-box {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(143, 72, 156, 0.3);
  border-radius: 12px;
  padding: 18px;
  transition: border-color 0.2s ease;
}

.modal-term-box:hover {
  border-color: var(--primary-gold);
}

.modal-term-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 800;
  color: var(--primary-gold);
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  letter-spacing: 0.5px;
}

.modal-unit-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.modal-unit-item {
  font-size: 13px;
  line-height: 1.55;
  color: #E2E8F0;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

[data-theme="light"] .modal-unit-item {
  color: #334155;
}

.modal-unit-bullet {
  color: var(--primary-gold);
  font-weight: bold;
  font-size: 12px;
  margin-top: 2px;
  flex-shrink: 0;
}

/* Quick Stage Nav Inside Modal */
.modal-stage-nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.modal-stage-indicators {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.modal-stage-dot-btn {
  padding: 5px 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  color: var(--text-muted);
  font-family: var(--font-heading);
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.modal-stage-dot-btn:hover {
  border-color: var(--primary-gold);
  color: #FFFFFF;
}

.modal-stage-dot-btn.active {
  background: var(--primary-gold);
  color: #FFFFFF;
  border-color: var(--primary-gold);
}

/* High-Tech Card Preview Cover */
.card-preview-cover {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #111827 0%, #1e1b4b 50%, #311042 100%);
  border-bottom: 1px solid var(--border-glass);
}

.card-preview-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.curriculum-card:hover .card-preview-img {
  transform: scale(1.06);
}

.card-preview-icon-floating {
  position: absolute;
  bottom: 12px;
  right: 14px;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
  font-size: 15px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
  z-index: 2;
  border: 1px solid rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.card-project-badge {
  background: rgba(200, 155, 60, 0.1);
  border: 1px solid rgba(200, 155, 60, 0.3);
  color: var(--primary-gold);
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 6px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

[data-theme="light"] .card-project-badge {
  background: rgba(143, 72, 156, 0.08);
  border-color: rgba(143, 72, 156, 0.25);
  color: var(--accent-purple);
}

.card-preview-icon-wrapper {
  position: relative;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: rgba(143, 72, 156, 0.15);
  border: 2px solid rgba(143, 72, 156, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-gold);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 0 25px rgba(143, 72, 156, 0.3);
}

.curriculum-card:hover .card-preview-icon-wrapper {
  transform: scale(1.1) rotate(5deg);
  border-color: var(--primary-gold);
  background: rgba(143, 72, 156, 0.3);
  box-shadow: 0 0 35px rgba(143, 72, 156, 0.6);
}

.card-preview-overlay {
  position: absolute;
  inset: 0;
  background: rgba(5, 8, 14, 0.7);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.curriculum-card:hover .card-preview-overlay {
  opacity: 1;
}

.card-preview-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--primary-gold);
  color: #FFFFFF;
  padding: 10px 18px;
  border-radius: 30px;
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 800;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
  transform: translateY(8px);
  transition: transform 0.3s ease;
}

.curriculum-card:hover .card-preview-cta {
  transform: translateY(0);
}

.card-preview-grade-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #E2E8F0;
  font-family: var(--font-heading);
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
  z-index: 2;
}

[dir="rtl"] .card-preview-grade-badge {
  left: auto;
  right: 14px;
}

.curriculum-card {
  cursor: pointer;
}

/* ==========================================================================
   HIGH-RES CAMPUS IMAGE LIGHTBOX MODAL (schoolfullimagehd.jpg)
   ========================================================================== */
.campus-modal-card {
  max-width: 1080px;
  width: 100%;
  padding: 28px 32px 24px;
  position: relative;
}

.campus-modal-header {
  padding-right: 48px; /* Safe space to prevent overlap with modal-close-btn */
  margin-bottom: 14px;
}

[dir="rtl"] .campus-modal-header {
  padding-right: 0;
  padding-left: 48px;
}

.campus-modal-title {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: clamp(18px, 2.5vw, 24px);
  line-height: 1.3;
  margin-bottom: 5px;
  color: #FFFFFF;
}

.campus-modal-subtitle {
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--primary-gold);
  font-size: clamp(12.5px, 1.8vw, 14.5px);
  line-height: 1.4;
  margin-bottom: 0;
}

/* ==========================================================================
   CAMPUS VIEWPAGER & INSTAGRAM-STYLE DYNAMIC DOTS (dotexampel.gif referansı)
   "görseli üstünde ama altta ve ortada olsun"
   ========================================================================== */
.campus-viewpager {
  position: relative;
  width: 100%;
  border-radius: 14px;
  overflow: hidden;
  background: #070A11;
  border: 1px solid rgba(143, 72, 156, 0.45);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6);
  user-select: none;
  -webkit-user-select: none;
  touch-action: pan-y;
}

.campus-vp-track-container {
  overflow: hidden;
  width: 100%;
  position: relative;
  cursor: grab;
}

.campus-vp-track-container.is-dragging {
  cursor: grabbing;
}

.campus-vp-track {
  display: flex;
  width: 100%;
  will-change: transform;
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.campus-vp-track.no-transition {
  transition: none !important;
}

.campus-vp-slide {
  min-width: 100%;
  width: 100%;
  flex-shrink: 0;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #070A11;
  aspect-ratio: 16 / 9;
  max-height: 65vh;
  overflow: hidden;
}

.campus-vp-img {
  width: 100%;
  height: 100%;
  aspect-ratio: 16 / 9;
  object-fit: contain;
  display: block;
  pointer-events: none;
}

/* Glassmorphism Header Tag Overlay (Top-Left of Image) */
.campus-vp-badge-tag {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(15, 23, 42, 0.78);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 30px;
  padding: 5px 14px;
  color: #FFFFFF;
  font-family: var(--font-heading);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.3px;
  display: flex;
  align-items: center;
  gap: 7px;
  z-index: 12;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.45);
  pointer-events: none;
  transition: all 0.3s ease;
}

[dir="rtl"] .campus-vp-badge-tag {
  left: auto;
  right: 14px;
}

.vp-tag-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #F23A7A;
  box-shadow: 0 0 8px #F23A7A;
  display: inline-block;
  flex-shrink: 0;
}

/* Slide Counter Overlay (Top-Right of Image) */
.campus-vp-counter {
  position: absolute;
  top: 14px;
  right: 14px;
  background: rgba(15, 23, 42, 0.78);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 30px;
  padding: 5px 13px;
  color: rgba(255, 255, 255, 0.9);
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 700;
  z-index: 12;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.45);
  pointer-events: none;
}

[dir="rtl"] .campus-vp-counter {
  right: auto;
  left: 14px;
}

.campus-vp-counter strong {
  color: #F23A7A;
  font-weight: 800;
}

/* Navigation Arrow Buttons */
.campus-vp-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.68);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #FFFFFF;
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 15;
  transition: all 0.25s cubic-bezier(0.22, 1, 0.36, 1);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.4);
  padding: 0;
  outline: none;
}

.campus-vp-prev-btn {
  left: 14px;
}

.campus-vp-next-btn {
  right: 14px;
}

[dir="rtl"] .campus-vp-prev-btn {
  left: auto;
  right: 14px;
  transform: translateY(-50%) rotate(180deg);
}

[dir="rtl"] .campus-vp-next-btn {
  right: auto;
  left: 14px;
  transform: translateY(-50%) rotate(180deg);
}

.campus-vp-nav-btn:hover {
  background: #F23A7A;
  color: #FFFFFF;
  border-color: #F23A7A;
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 8px 24px rgba(242, 58, 122, 0.55);
}

[dir="rtl"] .campus-vp-nav-btn:hover {
  transform: translateY(-50%) rotate(180deg) scale(1.1);
}

.campus-vp-nav-btn:active {
  transform: translateY(-50%) scale(0.96);
}

.campus-vp-nav-btn:disabled,
.campus-vp-nav-btn.is-disabled {
  opacity: 0.22;
  cursor: not-allowed;
  pointer-events: none;
  transform: translateY(-50%) scale(0.95);
}

/* ==========================================================================
   DYNAMIC SLIDING DOTS OVERLAY (dotexampel.gif REFERANSI)
   "ama görseli üstünde ama altta ve ortada olsun"
   ========================================================================== */
.campus-vp-dots-container {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 18;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  padding: 6px 16px;
  box-shadow: 0 6px 22px rgba(0, 0, 0, 0.5), 0 1px 3px rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: auto;
}

.campus-vp-dots-window {
  width: 95px; /* Exactly 5 visible slots * 19px pitch */
  height: 20px;
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
}

.campus-vp-dots-track {
  display: flex;
  align-items: center;
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  will-change: transform;
  transition: transform 0.35s cubic-bezier(0.25, 1, 0.5, 1);
}

.campus-vp-dot-slot {
  width: 19px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.campus-vp-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background-color: #717BC6;
  border: none;
  padding: 0;
  margin: 0;
  cursor: pointer;
  outline: none;
  display: block;
  transform: scale(0.62);
  opacity: 0.8;
  transition: transform 0.35s cubic-bezier(0.25, 1, 0.5, 1),
              background-color 0.3s ease,
              box-shadow 0.3s ease,
              opacity 0.3s ease;
}

.campus-vp-dot:focus-visible {
  outline: 2px solid #F23A7A;
  outline-offset: 2px;
}

/* Active Dot: Large Pink (#F23A7A / rgb(242,58,122)), Scale 1 (~14px diameter), Glowing */
.campus-vp-dot.is-active {
  background-color: #F23A7A;
  transform: scale(1);
  opacity: 1;
  box-shadow: 0 0 10px rgba(242, 58, 122, 0.85);
}

/* Medium Dot: Lavender-purple (#717BC6), Scale ~0.62 (~8.5px diameter) */
.campus-vp-dot.is-medium {
  background-color: #717BC6;
  transform: scale(0.62);
  opacity: 0.85;
}

/* Tiny Dot (Edge of window): Scale ~0.32 (~4.5px diameter) */
.campus-vp-dot.is-tiny {
  background-color: #717BC6;
  transform: scale(0.32);
  opacity: 0.55;
}

/* Hidden Dot (Beyond window): Scale 0 */
.campus-vp-dot.is-hidden {
  transform: scale(0);
  opacity: 0;
  pointer-events: none;
}

/* Footer Section */
.campus-modal-footer {
  margin-top: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.campus-modal-curriculum-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 12.5px;
  font-family: var(--font-heading);
  font-weight: 700;
  color: #FFFFFF;
  background: linear-gradient(135deg, #8F489C 0%, #EC4899 100%);
  text-decoration: none;
  transition: all 0.25s ease;
  box-shadow: 0 4px 14px rgba(143, 72, 156, 0.4);
}

.campus-modal-curriculum-btn:hover {
  color: #FFFFFF;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(236, 72, 153, 0.5);
  text-decoration: none;
}

.campus-modal-location-badge {
  font-size: 13px;
  color: var(--text-muted);
  font-family: var(--font-heading);
}

/* Light mode overrides for campus modal */
[data-theme="light"] .campus-modal-title {
  color: #0F172A !important;
}

[data-theme="light"] .campus-modal-subtitle {
  color: #8F489C !important;
}

[data-theme="light"] .campus-viewpager {
  background: #F8FAFC;
  border-color: rgba(143, 72, 156, 0.35);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.12);
}

[data-theme="light"] .campus-vp-slide {
  background: #F1F5F9;
}

[data-theme="light"] .campus-vp-dots-container {
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(143, 72, 156, 0.25);
  box-shadow: 0 6px 20px rgba(15, 23, 42, 0.15);
}

[data-theme="light"] .campus-vp-dot.is-medium,
[data-theme="light"] .campus-vp-dot.is-tiny {
  background-color: #6366F1;
}

[data-theme="light"] .campus-vp-badge-tag,
[data-theme="light"] .campus-vp-counter {
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(143, 72, 156, 0.25);
  color: #0F172A;
  box-shadow: 0 4px 15px rgba(15, 23, 42, 0.12);
}

[data-theme="light"] .campus-vp-nav-btn {
  background: rgba(255, 255, 255, 0.88);
  border-color: rgba(143, 72, 156, 0.25);
  color: #0F172A;
  box-shadow: 0 4px 15px rgba(15, 23, 42, 0.12);
}

[data-theme="light"] .campus-vp-nav-btn:hover {
  background: #F23A7A;
  color: #FFFFFF;
  border-color: #F23A7A;
}

[data-theme="light"] .campus-modal-location-badge {
  color: #475569 !important;
}

/* ==========================================================================
   RESPONSIVE DESIGN (MEDIA QUERIES)
   ========================================================================== */

@media (max-width: 1199px) and (min-width: 992px) {
  .theme-nav-btn {
    padding: 6px 9px;
  }
  .theme-nav-btn .theme-btn-text {
    display: none;
  }
  .navbar-nav .nav-link {
    padding: 8px 10px !important;
    font-size: 13px !important;
  }
}

@media (max-width: 991px) {
  #cover h1 {
    font-size: 34px !important;
  }
  .typewriter-headline-card {
    gap: 12px;
    padding: 8px 18px;
    border-radius: 36px;
  }
  .typewriter-badge {
    width: 44px;
    height: 44px;
    min-width: 44px;
    font-size: 18px;
  }
  .cute-robot-icon {
    width: 26px;
    height: 26px;
  }
  .typewriter-text-wrapper {
    font-size: clamp(17px, 2.3vw, 26px) !important;
    min-height: 2.8em;
    max-width: 620px;
  }
  .aboutUs-content:before {
    left: 40px;
  }
  .aboutUs-content .row {
    text-align: left !important;
  }
  .aboutUs-content .text-right {
    text-align: left !important;
  }
  .timeline-image-circle {
    margin: 0 0 20px 0;
  }
  .about-circle {
    margin: 0 0 0 0;
  }
  .about-circle:before {
    left: 40px;
    margin-left: -85px;
  }
  /* Mobile-Only Toolbar / Menubar Navbar (Full-Width Edge-to-Edge) */
  .fixed-top,
  .fixed-top.change-fixed-top {
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    margin: 0 !important;
    max-width: 100% !important;
    width: 100% !important;
    border-radius: 0px !important;
    border-top: none !important;
    border-left: none !important;
    border-right: none !important;
    border-bottom: 2px solid var(--primary-gold) !important;
    background: rgba(7, 10, 18, 0.96) !important;
    backdrop-filter: blur(24px) !important;
    -webkit-backdrop-filter: blur(24px) !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6) !important;
    padding: 10px 16px !important;
  }

  [data-theme="light"] .fixed-top,
  [data-theme="light"] .fixed-top.change-fixed-top {
    background: rgba(255, 255, 255, 0.97) !important;
    border-bottom: 2px solid var(--ugur-red) !important;
    box-shadow: 0 4px 18px rgba(15, 23, 42, 0.08) !important;
  }

  .fixed-top .container {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  .navbar-brand {
    display: inline-flex !important;
    align-items: center !important;
    gap: 10px !important;
    margin-right: 0 !important;
    min-width: 0 !important;
    flex-shrink: 1 !important;
    order: 1 !important;
  }

  .brand-campus-logo-img {
    width: 38px !important;
    height: 38px !important;
    min-width: 38px !important;
    flex-shrink: 0 !important;
  }

  .brand-text-col {
    display: flex !important;
    flex-direction: column !important;
    min-width: 0 !important;
  }

  .brand-name {
    font-size: clamp(0.92rem, 3.8vw, 1.05rem) !important;
    letter-spacing: 0.8px !important;
    white-space: nowrap !important;
    color: var(--primary-gold) !important;
  }

  .brand-campus-sub {
    font-size: clamp(0.58rem, 2.2vw, 0.65rem) !important;
    letter-spacing: 0.6px !important;
    white-space: nowrap !important;
    color: #FFFFFF !important;
    opacity: 0.9 !important;
  }

  .navbar-toggler {
    padding: 6px 10px !important;
    font-size: 1.1rem !important;
    flex-shrink: 0 !important;
    border-radius: 8px !important;
    border: 1.5px solid rgba(212, 160, 23, 0.45) !important;
    background: rgba(15, 23, 42, 0.85) !important;
    color: #FFFFFF !important;
    margin-left: 8px !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3) !important;
    order: 2 !important;
    transition: all 0.2s ease !important;
  }

  .navbar-toggler:hover,
  .navbar-toggler:focus {
    background: rgba(26, 38, 66, 0.95) !important;
    border-color: var(--primary-gold) !important;
    outline: none !important;
    box-shadow: 0 0 0 3px rgba(212, 160, 23, 0.25) !important;
  }

  [dir="rtl"] .navbar-brand {
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  [dir="rtl"] .navbar-toggler {
    margin-left: 0 !important;
    margin-right: 6px !important;
  }

  /* Hamburger icon in dark mode (crisp off-white 2.6px bars) */
  .navbar-toggler-icon,
  .navbar-dark .navbar-toggler-icon {
    filter: none !important;
    background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='%23F8FAFC' stroke-width='2.6' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E") !important;
  }

  /* When menu is OPEN in dark mode: turns to 'X' */
  .navbar-toggler[aria-expanded="true"] .navbar-toggler-icon,
  .navbar-dark .navbar-toggler[aria-expanded="true"] .navbar-toggler-icon {
    background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='%23F8FAFC' stroke-width='2.6' stroke-linecap='round' d='M6 6L24 24M6 24L24 6'/%3E%3C/svg%3E") !important;
  }

  [data-theme="light"] .brand-name {
    color: var(--ugur-red) !important;
  }

  [data-theme="light"] .brand-campus-sub {
    color: #475569 !important;
  }

  [data-theme="light"] .navbar-toggler {
    border: 1.5px solid rgba(143, 72, 156, 0.35) !important;
    background: #FFFFFF !important;
    color: #0F172A !important;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08) !important;
  }

  [data-theme="light"] .navbar-toggler:hover,
  [data-theme="light"] .navbar-toggler:focus {
    background: #F8FAFC !important;
    border-color: var(--ugur-purple) !important;
    outline: none !important;
    box-shadow: 0 0 0 3px rgba(143, 72, 156, 0.18) !important;
  }

  /* Hamburger icon in light mode (deep navy #0F172A, completely crisp and visible) */
  [data-theme="light"] .navbar-toggler-icon,
  [data-theme="light"] .navbar-dark .navbar-toggler-icon {
    filter: none !important;
    background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='%230F172A' stroke-width='2.6' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E") !important;
  }

  /* When menu is OPEN in light mode: turns to 'X' */
  [data-theme="light"] .navbar-toggler[aria-expanded="true"] .navbar-toggler-icon,
  [data-theme="light"] .navbar-dark .navbar-toggler[aria-expanded="true"] .navbar-toggler-icon {
    background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='%230F172A' stroke-width='2.6' stroke-linecap='round' d='M6 6L24 24M6 24L24 6'/%3E%3C/svg%3E") !important;
  }

  /* Sleek, full-width Mobile Menu Drawer */
  .navbar-collapse {
    width: 100% !important;
    flex-basis: 100% !important;
    order: 3 !important;
    background: rgba(9, 13, 24, 0.96) !important;
    border: 1px solid rgba(212, 160, 23, 0.3) !important;
    border-radius: 16px !important;
    padding: 16px 14px 18px !important;
    margin-top: 12px !important;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.65), 0 0 20px rgba(212, 160, 23, 0.1) !important;
    backdrop-filter: blur(24px) !important;
    -webkit-backdrop-filter: blur(24px) !important;
    max-height: calc(100vh - 80px) !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
  }

  [data-theme="light"] .navbar-collapse {
    background: rgba(255, 255, 255, 0.98) !important;
    border: 1px solid rgba(143, 72, 156, 0.25) !important;
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.12), 0 0 16px rgba(143, 72, 156, 0.08) !important;
  }

  .navbar-nav {
    width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
  }

  .navbar-nav .nav-item {
    width: 100% !important;
    margin: 2px 0 !important;
  }

  .navbar-nav .nav-link {
    display: block !important;
    text-align: center !important;
    padding: 10px 14px !important;
    border-radius: 10px !important;
    font-size: 13.5px !important;
    font-weight: 600 !important;
    letter-spacing: 0.6px !important;
    color: #E2E8F0 !important;
    transition: all 0.2s ease !important;
  }

  .navbar-nav .nav-link:hover,
  .navbar-nav .nav-link.active {
    color: var(--primary-gold) !important;
    background: rgba(212, 160, 23, 0.12) !important;
    font-weight: 700 !important;
  }

  [data-theme="light"] .navbar-nav .nav-link {
    color: #1E293B !important;
  }

  [data-theme="light"] .navbar-nav .nav-link:hover,
  [data-theme="light"] .navbar-nav .nav-link.active {
    color: var(--ugur-purple) !important;
    background: rgba(143, 72, 156, 0.08) !important;
    font-weight: 700 !important;
  }

  .mobile-menu-divider {
    height: 1px !important;
    width: 100% !important;
    margin: 12px 0 14px !important;
    background: linear-gradient(90deg, transparent, rgba(212, 160, 23, 0.35), transparent) !important;
  }

  [data-theme="light"] .mobile-menu-divider {
    background: linear-gradient(90deg, transparent, rgba(143, 72, 156, 0.25), transparent) !important;
  }

  .mobile-theme-bar,
  .mobile-lang-bar {
    width: 100% !important;
    margin-top: 10px !important;
    padding: 0 !important;
    border: none !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 6px !important;
  }

  .mobile-theme-label,
  .mobile-lang-label {
    font-family: var(--font-heading) !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    letter-spacing: 0.8px !important;
    text-transform: uppercase !important;
    color: var(--primary-gold) !important;
    text-align: center !important;
    margin: 0 !important;
    display: block !important;
  }

  [data-theme="light"] .mobile-theme-label,
  [data-theme="light"] .mobile-lang-label {
    color: #475569 !important;
  }

  .theme-segmented-control,
  .lang-segmented-control {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 4px !important;
    padding: 4px !important;
    border-radius: 12px !important;
    background: rgba(14, 20, 36, 0.9) !important;
    border: 1px solid rgba(212, 160, 23, 0.3) !important;
    width: 100% !important;
  }

  [data-theme="light"] .theme-segmented-control,
  [data-theme="light"] .lang-segmented-control {
    background: #F1F5F9 !important;
    border: 1px solid rgba(143, 72, 156, 0.2) !important;
  }

  .theme-segment-btn,
  .lang-segment-btn {
    border: none !important;
    background: transparent !important;
    color: #94A3B8 !important;
    font-family: var(--font-heading) !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    padding: 8px 4px !important;
    min-height: 38px !important;
    border-radius: 8px !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 5px !important;
  }

  [data-theme="light"] .theme-segment-btn,
  [data-theme="light"] .lang-segment-btn {
    color: #475569 !important;
  }

  .theme-segment-btn:hover,
  .lang-segment-btn:hover {
    color: #FFFFFF !important;
  }

  [data-theme="light"] .theme-segment-btn:hover,
  [data-theme="light"] .lang-segment-btn:hover {
    color: #0F172A !important;
  }

  .theme-segment-btn.active,
  .lang-segment-btn.active {
    background: var(--primary-gold) !important;
    color: #080C16 !important;
    font-weight: 700 !important;
    box-shadow: 0 2px 10px rgba(212, 160, 23, 0.4) !important;
  }

  [data-theme="light"] .theme-segment-btn.active,
  [data-theme="light"] .lang-segment-btn.active {
    background: var(--ugur-purple) !important;
    color: #FFFFFF !important;
    font-weight: 700 !important;
    box-shadow: 0 2px 10px rgba(143, 72, 156, 0.3) !important;
  }

  .mobile-share-bar {
    width: 100% !important;
    margin-top: 10px !important;
    padding-top: 4px !important;
  }

  .mobile-share-btn {
    width: 100% !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 10px 14px !important;
    font-family: var(--font-heading) !important;
    font-size: 12.5px !important;
    font-weight: 700 !important;
    letter-spacing: 0.5px !important;
    border-radius: 10px !important;
    border: 1px solid rgba(212, 160, 23, 0.35) !important;
    background: rgba(255, 255, 255, 0.05) !important;
    color: var(--primary-gold) !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
  }

  .mobile-share-btn:hover,
  .mobile-share-btn:active {
    background: rgba(212, 160, 23, 0.15) !important;
    color: #FFFFFF !important;
    border-color: var(--primary-gold) !important;
  }

  [data-theme="light"] .mobile-share-btn {
    background: #F1F5F9 !important;
    border: 1px solid rgba(143, 72, 156, 0.25) !important;
    color: var(--ugur-purple) !important;
  }

  [data-theme="light"] .mobile-share-btn:hover,
  [data-theme="light"] .mobile-share-btn:active {
    background: rgba(143, 72, 156, 0.12) !important;
    color: var(--ugur-purple) !important;
    border-color: var(--ugur-purple) !important;
  }
}

@media (max-width: 767px) {
  #cover {
    padding: 110px 18px 50px;
    background-position: 28% bottom !important;
  }

  /* Mobile Campus Photo Lightbox Modal - UX/UI Optimized */
  .modal-backdrop-custom {
    padding: 12px 10px;
  }
  .campus-modal-card {
    padding: 16px 14px 14px;
    border-radius: 16px;
    max-height: 92vh;
  }
  .campus-modal-header {
    padding-right: 42px;
    margin-bottom: 10px;
  }
  [dir="rtl"] .campus-modal-header {
    padding-right: 0;
    padding-left: 42px;
  }
  .campus-modal-title {
    font-size: clamp(15.5px, 4.4vw, 18px);
    line-height: 1.25;
    margin-bottom: 3px;
  }
  .campus-modal-subtitle {
    font-size: 11.5px;
    line-height: 1.35;
  }
  .campus-modal-card .modal-close-btn {
    top: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
    font-size: 13px;
  }
  [dir="rtl"] .campus-modal-card .modal-close-btn {
    right: auto;
    left: 12px;
  }
  .campus-viewpager {
    border-radius: 10px;
  }
  .campus-vp-slide {
    aspect-ratio: 16 / 9;
    max-height: 52vh;
  }
  .campus-vp-nav-btn {
    width: 34px;
    height: 34px;
    font-size: 12px;
  }
  .campus-vp-prev-btn { left: 8px; }
  .campus-vp-next-btn { right: 8px; }
  [dir="rtl"] .campus-vp-prev-btn { right: 8px; left: auto; }
  [dir="rtl"] .campus-vp-next-btn { left: 8px; right: auto; }
  .campus-vp-dots-container {
    bottom: 10px;
    padding: 4px 12px;
  }
  .campus-vp-badge-tag {
    top: 8px;
    left: 8px;
    font-size: 10.5px;
    padding: 3px 9px;
  }
  [dir="rtl"] .campus-vp-badge-tag {
    right: 8px;
    left: auto;
  }
  .campus-vp-counter {
    top: 8px;
    right: 8px;
    font-size: 10.5px;
    padding: 3px 9px;
  }
  [dir="rtl"] .campus-vp-counter {
    left: 8px;
    right: auto;
  }
  .campus-modal-footer {
    margin-top: 10px;
    justify-content: space-between;
    align-items: center;
  }
  .campus-modal-curriculum-btn {
    font-size: 11px;
    padding: 5px 12px;
  }
  .campus-modal-location-badge {
    font-size: 11px;
    text-align: center;
    display: inline-block;
  }
  #cover h1 {
    font-size: 17px !important;
    margin-bottom: 8px !important;
    text-shadow: 0 3px 12px rgba(0, 0, 0, 0.95) !important;
    line-height: 1.3 !important;
  }
  .typewriter-headline-wrapper {
    margin: 8px auto 18px;
    padding: 0 4px;
  }
  .typewriter-headline-card {
    gap: 8px;
    padding: 6px 10px;
    border-radius: 26px;
    width: 100%;
  }
  .typewriter-badge {
    width: 35px;
    height: 35px;
    min-width: 35px;
    font-size: 14px;
    border-width: 1.5px;
  }
  .cute-robot-icon {
    width: 22px;
    height: 22px;
  }
  .typewriter-text-wrapper {
    font-size: clamp(14px, 4vw, 18px) !important;
    line-height: 1.3 !important;
    min-height: 3.1em;
    letter-spacing: 0.3px !important;
  }
  .typewriter-cursor {
    padding-left: 2px;
  }
  .cover-subtitle {
    font-size: 14px;
    margin-bottom: 22px;
    background: rgba(8, 12, 22, 0.6);
    padding: 10px 14px;
    border-radius: 10px;
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.1);
  }
  .btn-primary, .btn-outline-golden {
    font-size: 14px !important;
    padding: 14px 24px !important;
    width: 100%;
    margin-bottom: 10px;
    justify-content: center;
  }
  .campus-scenic-pill {
    display: none !important;
  }
  .aboutUs-content:before {
    display: none;
  }
  .timeline-image-circle {
    width: 100px;
    height: 100px;
  }
  .about-circle {
    display: none;
  }
  #services, #portfolio, #aboutUs, #contact {
    padding: 70px 0;
  }
}

/* ==========================================================================
   LANGUAGE SWITCHER DROPDOWN (Mirrors Theme Dropdown Design)
   ========================================================================== */

.lang-dropdown-wrapper {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.lang-menu-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.lang-flag-icon {
  font-size: 18px;
  line-height: 1;
}

.lang-dropdown-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 160px;
  background: rgba(14, 20, 36, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1.5px solid rgba(143, 72, 156, 0.45);
  border-radius: 14px;
  padding: 6px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.65), 0 0 20px rgba(143, 72, 156, 0.25);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px) scale(0.95);
  transform-origin: top right;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 1060;
  pointer-events: none;
}

[dir="rtl"] .lang-dropdown-menu {
  right: auto;
  left: 0;
  transform-origin: top left;
}

.lang-dropdown-menu.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.lang-dropdown-header {
  font-family: var(--font-heading);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1px;
  color: #94A3B8;
  padding: 6px 10px 4px;
  text-transform: uppercase;
}

.lang-dropdown-item {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 10px;
  background: transparent;
  border: none;
  border-radius: 8px;
  color: #E2E8F0;
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.18s ease;
  text-align: left;
}

[dir="rtl"] .lang-dropdown-item {
  text-align: right;
}

.lang-dropdown-item:hover {
  background: rgba(143, 72, 156, 0.22);
  color: #FFFFFF;
}

.lang-dropdown-item.active {
  background: var(--primary-gold) !important;
  color: #FFFFFF !important;
  box-shadow: 0 4px 12px rgba(143, 72, 156, 0.4);
}

.lang-item-left {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.lang-item-flag {
  font-size: 18px;
  line-height: 1;
}

.lang-check-icon {
  font-size: 11px;
  opacity: 0;
  transition: opacity 0.18s ease;
}

.lang-dropdown-item.active .lang-check-icon {
  opacity: 1;
}

/* Light Mode Language Dropdown */
[data-theme="light"] .lang-dropdown-menu {
  background: rgba(255, 255, 255, 0.97);
  border-color: rgba(143, 72, 156, 0.35);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12), 0 0 20px rgba(143, 72, 156, 0.12);
}

[data-theme="light"] .lang-dropdown-header {
  color: #64748B;
}

[data-theme="light"] .lang-dropdown-item {
  color: #334155;
}

[data-theme="light"] .lang-dropdown-item:hover {
  background: rgba(143, 72, 156, 0.12);
  color: #0F172A;
}

[data-theme="light"] .lang-dropdown-item.active {
  background: var(--primary-gold) !important;
  color: #FFFFFF !important;
}

/* Mobile Language Bar */
.mobile-lang-bar {
  margin-top: 12px;
  padding: 12px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.mobile-lang-label {
  font-family: var(--font-heading);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  margin-bottom: 8px;
  display: block;
}

.lang-segmented-control {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.lang-segment-btn {
  flex: 1;
  min-width: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 6px;
  background: rgba(255, 255, 255, 0.04);
  border: 1.5px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.18s ease;
}

.lang-segment-btn:hover {
  border-color: var(--primary-gold);
  color: var(--text-heading);
  background: rgba(143, 72, 156, 0.08);
}

.lang-segment-btn.active {
  background: var(--primary-gold);
  border-color: var(--primary-gold);
  color: #FFFFFF;
  box-shadow: 0 4px 10px rgba(143, 72, 156, 0.35);
}

.lang-segment-flag {
  font-size: 16px;
  line-height: 1;
}

/* ==========================================================================
   RTL (RIGHT-TO-LEFT) SUPPORT - Arabic Layout
   ========================================================================== */

[dir="rtl"] {
  text-align: right;
}

/* Bootstrap RTL overrides */
[dir="rtl"] .text-lg-right {
  text-align: left !important;
}

[dir="rtl"] .text-lg-left {
  text-align: right !important;
}

[dir="rtl"] .text-md-left {
  text-align: right !important;
}

[dir="rtl"] .text-md-right {
  text-align: left !important;
}

/* Navbar brand RTL */
[dir="rtl"] .navbar-brand {
  margin-right: 0;
  margin-left: 1rem;
}

[dir="rtl"] .brand-text-col {
  text-align: right;
}

/* RTL margin/padding helpers */
[dir="rtl"] .ml-1 { margin-left: 0 !important; margin-right: 0.25rem !important; }
[dir="rtl"] .ml-2 { margin-left: 0 !important; margin-right: 0.5rem !important; }
[dir="rtl"] .ml-3 { margin-left: 0 !important; margin-right: 1rem !important; }
[dir="rtl"] .mr-1 { margin-right: 0 !important; margin-left: 0.25rem !important; }
[dir="rtl"] .mr-2 { margin-right: 0 !important; margin-left: 0.5rem !important; }
[dir="rtl"] .mr-3 { margin-right: 0 !important; margin-left: 1rem !important; }
[dir="rtl"] .ml-lg-2 { margin-left: 0 !important; margin-right: 0.5rem !important; }
[dir="rtl"] .ml-md-3 { margin-left: 0 !important; margin-right: 1rem !important; }

/* RTL collapse & nav adjustments */
[dir="rtl"] .navbar-collapse.justify-content-end {
  justify-content: flex-start !important;
}

/* RTL card & tag styling */
[dir="rtl"] .card-competencies-list {
  direction: rtl;
}

/* RTL Timeline adjustments */
[dir="rtl"] .aboutUs-content:before {
  right: 50%;
  left: auto;
}

/* RTL Contact info */
[dir="rtl"] .contact-info-card {
  text-align: right;
}

/* RTL Footer */
[dir="rtl"] #footer .text-md-left {
  text-align: right !important;
}

[dir="rtl"] #footer .text-md-right {
  text-align: left !important;
}

/* RTL Nav Actions Group */
[dir="rtl"] .nav-actions-group {
  direction: rtl;
}

/* RTL Theme Dropdown */
[dir="rtl"] .theme-dropdown-menu {
  right: auto;
  left: 0;
  transform-origin: top left;
}

[dir="rtl"] .theme-dropdown-item {
  text-align: right;
}

/* RTL form inputs */
[dir="rtl"] .golden-form-element {
  text-align: right;
}

/* RTL Modal */
[dir="rtl"] .modal-close-btn {
  right: auto;
  left: 16px;
}

/* RTL typewriter badge */
[dir="rtl"] .typewriter-badge.badge-left {
  order: 2;
}

[dir="rtl"] .typewriter-badge.badge-right {
  order: 0;
}

[dir="rtl"] .typewriter-text-wrapper {
  order: 1;
  direction: rtl;
}

[dir="rtl"] .typewriter-cursor {
  padding-left: 0;
  padding-right: 2px;
}

/* RTL Scroll progress */
[dir="rtl"] .scroll-progress-bar {
  right: 0;
  left: auto;
}

/* RTL Filter buttons */
[dir="rtl"] .portfolio-filters {
  direction: rtl;
}

/* RTL Partner badges */
[dir="rtl"] .partner-badge i {
  margin-right: 0 !important;
  margin-left: 0.5rem;
}

/* Mobile RTL adjustments */
@media (max-width: 991.98px) {
  [dir="rtl"] .mobile-theme-bar,
  [dir="rtl"] .mobile-lang-bar {
    text-align: right;
  }
}

/* ====================================================================
   CAMPUS LEVELS BANNER & LOCATION SECTION STYLES
   ==================================================================== */
.campus-levels-banner {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 6px 12px;
  background: rgba(8, 12, 22, 0.88);
  border: 1.5px solid rgba(143, 72, 156, 0.55);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 9px 20px;
  border-radius: 30px;
  margin: 12px auto;
  max-width: 95%;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.65), 0 0 16px rgba(143, 72, 156, 0.25);
}

.campus-levels-banner .level-item {
  color: #FFFFFF;
  font-family: var(--font-heading);
  font-size: clamp(11.5px, 3.2vw, 13.5px);
  font-weight: 700;
  letter-spacing: 0.4px;
  line-height: 1.5;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.85);
}

[data-theme="light"] .campus-levels-banner {
  background: rgba(255, 255, 255, 0.96) !important;
  border: 1.5px solid rgba(143, 72, 156, 0.4) !important;
  box-shadow: 0 6px 20px rgba(15, 23, 42, 0.12), 0 0 12px rgba(143, 72, 156, 0.1) !important;
}

[data-theme="light"] .campus-levels-banner .level-item {
  color: #0F172A !important;
  font-weight: 800 !important;
  text-shadow: none !important;
}

.hero-phone-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #FFFFFF;
  padding: 6px 16px;
  border-radius: 20px;
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 700;
  transition: all 0.25s ease;
  text-decoration: none;
}

.hero-phone-badge:hover {
  background: var(--primary-gold);
  color: #FFFFFF;
  border-color: var(--primary-gold);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(143, 72, 156, 0.4);
}

[data-theme="light"] .hero-phone-badge {
  background: rgba(255, 255, 255, 0.92) !important;
  border: 1px solid rgba(143, 72, 156, 0.3) !important;
  color: #1E293B !important;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.08) !important;
}

[data-theme="light"] .hero-phone-badge:hover {
  background: #8F489C !important;
  border-color: #8F489C !important;
  color: #FFFFFF !important;
  box-shadow: 0 4px 15px rgba(143, 72, 156, 0.35) !important;
}

/* Location Section (#location) at page bottom */
#location {
  padding: 85px 0 65px 0;
  background: linear-gradient(180deg, var(--bg-dark) 0%, #0d111a 100%);
  border-top: 1px solid var(--border-glass);
  position: relative;
}

[data-theme="light"] #location {
  background: linear-gradient(180deg, var(--bg-light) 0%, #E2E8F0 100%);
}

.location-info-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(143, 72, 156, 0.3);
  border-radius: 16px;
  padding: 28px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.location-info-card:hover {
  border-color: var(--primary-gold);
  box-shadow: 0 10px 30px rgba(143, 72, 156, 0.15);
}

[data-theme="light"] .location-info-card {
  background: rgba(255, 255, 255, 0.85);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.location-name-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 800;
  color: #FFFFFF;
  text-decoration: none;
  margin-bottom: 8px;
  transition: color 0.2s ease;
}

[data-theme="light"] .location-name-link {
  color: #0F172A;
}

.location-name-link:hover {
  color: var(--primary-gold);
}

.location-address-sub {
  color: var(--text-muted);
  font-size: 14px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.location-stages-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 20px;
}

.location-stage-pill {
  background: rgba(143, 72, 156, 0.15);
  border: 1px solid rgba(143, 72, 156, 0.35);
  color: var(--primary-gold);
  font-family: var(--font-heading);
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
  letter-spacing: 0.3px;
}

.location-phone-box {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 14px 18px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

[data-theme="light"] .location-phone-box {
  background: rgba(143, 72, 156, 0.06);
  border-color: rgba(143, 72, 156, 0.15);
}

.location-phone-label {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 600;
}

.location-phone-link {
  color: var(--primary-gold);
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 17px;
  text-decoration: none;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.location-phone-link:hover {
  color: #FFFFFF;
  transform: scale(1.03);
}

[data-theme="light"] .location-phone-link:hover {
  color: #1E293B;
}

/* Map frame & container */
.location-map-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 380px;
  border-radius: 16px;
  overflow: hidden;
  border: 1.5px solid rgba(143, 72, 156, 0.35);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
}

.location-map-iframe {
  width: 100%;
  height: 100%;
  min-height: 380px;
  border: 0;
  display: block;
}

.location-map-floating-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  background: rgba(17, 24, 39, 0.9);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--border-gold);
  color: #FFFFFF;
  padding: 9px 18px;
  border-radius: 30px;
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  transition: all 0.25s ease;
  z-index: 5;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.35);
}

.location-map-floating-badge:hover {
  background: var(--primary-gold);
  color: #FFFFFF;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(143, 72, 156, 0.45);
}

[data-theme="light"] .location-map-floating-badge {
  background: rgba(255, 255, 255, 0.92);
  color: #0F172A;
  border-color: rgba(143, 72, 156, 0.35);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

[data-theme="light"] .location-map-floating-badge:hover {
  background: var(--primary-gold);
  color: #FFFFFF;
}

[dir="rtl"] .location-map-floating-badge {
  right: auto;
  left: 14px;
}

.footer-stages-row {
  margin-bottom: 10px;
  font-size: 13px;
  color: var(--primary-gold);
  font-weight: 700;
}

/* ==========================================================================
   DEDICATED FULL-PAGE K12 CURRICULUM STYLES (mufredat.html)
   ========================================================================== */

/* Navbar on curriculum page - permanent solid glassmorphism, no cover photo */
.mufredat-navbar {
  background-color: rgba(8, 12, 22, 0.95) !important;
  backdrop-filter: blur(24px) !important;
  -webkit-backdrop-filter: blur(24px) !important;
  border-bottom: 2px solid var(--primary-gold) !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.65) !important;
  padding: 8px 28px;
}

[data-theme="light"] .mufredat-navbar {
  background-color: rgba(255, 255, 255, 0.96) !important;
  backdrop-filter: blur(24px) !important;
  -webkit-backdrop-filter: blur(24px) !important;
  border-bottom: 2px solid var(--primary-gold) !important;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08) !important;
}

.mufredat-body {
  padding-top: 86px;
  background-color: var(--bg-dark);
  color: var(--text-main);
  min-height: 100vh;
}

/* Page Hero Header - Pure Glassmorphic, NO school photo */
.mufredat-hero-section {
  padding: 36px 0 24px 0;
  position: relative;
  background: linear-gradient(180deg, rgba(143, 72, 156, 0.08) 0%, transparent 100%);
  border-bottom: 1px solid var(--border-glass);
}

.mufredat-hero-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: 20px;
  padding: 32px 36px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: var(--card-shadow);
  position: relative;
  overflow: hidden;
}

.mufredat-hero-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #EC4899 0%, #8F489C 25%, #059669 50%, #3B82F6 75%, #8B5CF6 100%);
}

.mufredat-breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 14px;
  font-family: var(--font-heading);
}

.mufredat-breadcrumb a {
  color: var(--primary-gold);
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.mufredat-breadcrumb a:hover {
  text-decoration: underline;
  opacity: 0.9;
}

.mufredat-breadcrumb .separator {
  color: var(--text-muted);
  opacity: 0.6;
}

.mufredat-meb-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(227, 6, 19, 0.12);
  border: 1px solid rgba(227, 6, 19, 0.35);
  color: #FF5A65;
  padding: 5px 14px;
  border-radius: 30px;
  font-size: 12.5px;
  font-weight: 700;
  font-family: var(--font-heading);
  letter-spacing: 0.5px;
  margin-bottom: 16px;
  text-transform: uppercase;
}

[data-theme="light"] .mufredat-meb-badge {
  background: rgba(227, 6, 19, 0.08);
  color: #C00511;
  border-color: rgba(227, 6, 19, 0.3);
}

.mufredat-page-title {
  font-family: var(--font-heading);
  font-size: 2.1rem;
  font-weight: 800;
  color: var(--text-heading);
  margin-bottom: 10px;
  line-height: 1.25;
}

.mufredat-page-subtitle {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 820px;
  margin-bottom: 22px;
  line-height: 1.6;
}

.mufredat-stats-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 14px;
  border-top: 1px solid var(--border-glass);
}

.mufredat-stat-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-glass);
  padding: 7px 14px;
  border-radius: 10px;
  font-size: 13px;
  color: var(--text-body);
  font-family: var(--font-heading);
  font-weight: 600;
}

.mufredat-stat-pill i {
  color: var(--primary-gold);
}

[data-theme="light"] .mufredat-stat-pill {
  background: rgba(15, 23, 42, 0.03);
}

/* Stage Navigation Tabs (Okul Öncesi, İlkokul, Ortaokul, Lise) */
.mufredat-stages-nav {
  margin: 28px 0 16px 0;
}

.stage-tab-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.stage-tab-btn {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  color: var(--text-muted);
  padding: 10px 20px;
  border-radius: 40px;
  font-family: var(--font-heading);
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: 0.4px;
  cursor: pointer;
  transition: all 0.25s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.stage-tab-btn:hover {
  color: var(--text-heading);
  border-color: var(--primary-gold);
  transform: translateY(-1px);
}

.stage-tab-btn.active {
  background: var(--primary-brand);
  color: #FFFFFF !important;
  border-color: var(--primary-brand);
  box-shadow: 0 4px 16px var(--primary-brand-glow);
}

/* 13-Grade Pills Quick Selector Bar */
.grade-pills-container {
  margin-bottom: 30px;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: 16px;
  padding: 16px 20px;
  box-shadow: var(--card-shadow);
}

.grade-pills-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  font-family: var(--font-heading);
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.6px;
}

.grade-pills-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.grade-pill-item {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-glass);
  color: var(--text-main);
  padding: 8px 14px;
  border-radius: 12px;
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.22s ease;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  text-decoration: none !important;
  white-space: nowrap;
}

.grade-pill-item:hover {
  background: rgba(143, 72, 156, 0.15);
  border-color: var(--primary-gold);
  color: var(--text-heading);
  transform: translateY(-2px);
}

.grade-pill-item.active {
  background: var(--primary-brand) !important;
  color: #FFFFFF !important;
  border-color: var(--primary-brand) !important;
  box-shadow: 0 4px 14px var(--primary-brand-glow);
}

.grade-pill-age {
  font-size: 11px;
  font-weight: 500;
  opacity: 0.8;
  background: rgba(0, 0, 0, 0.25);
  padding: 2px 6px;
  border-radius: 6px;
}

.grade-pill-item.active .grade-pill-age {
  background: rgba(255, 255, 255, 0.25);
}

[data-theme="light"] .grade-pill-item {
  background: rgba(15, 23, 42, 0.04);
}

/* Active Grade Showcase Card */
.active-grade-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: 24px;
  box-shadow: var(--card-shadow);
  overflow: hidden;
  margin-bottom: 40px;
  position: relative;
  transition: border-color 0.3s ease;
}

.active-grade-header {
  padding: 32px 36px 26px 36px;
  position: relative;
  border-bottom: 1px solid var(--border-glass);
}

.active-grade-header-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 14px;
}

.active-grade-meta-badges {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.grade-badge-main {
  font-family: var(--font-heading);
  font-size: 12.5px;
  font-weight: 800;
  padding: 6px 14px;
  border-radius: 30px;
  color: #FFFFFF;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.grade-badge-outline {
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-glass);
  color: var(--text-muted);
}

.active-grade-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.grade-action-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-glass);
  color: var(--text-heading);
  padding: 7px 14px;
  border-radius: 10px;
  font-family: var(--font-heading);
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.grade-action-btn:hover {
  background: var(--primary-gold);
  color: #FFFFFF;
  border-color: var(--primary-gold);
}

[data-theme="light"] .grade-action-btn {
  background: rgba(15, 23, 42, 0.05);
}

/* Sınıf Seviyesi Proje / Müfredat Hero Görseli (Title ile aynı genişlikte ve orantılı) */
.active-grade-hero-banner-wrap {
  width: 100%;
  aspect-ratio: 16 / 7;
  max-height: 420px;
  min-height: 220px;
  border-radius: 18px;
  overflow: hidden;
  position: relative;
  margin-top: 18px;
  margin-bottom: 22px;
  border: 1px solid var(--border-glass);
  background: rgba(0, 0, 0, 0.25);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.22);
  cursor: pointer;
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

.active-grade-hero-banner-wrap:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.35);
  border-color: rgba(200, 155, 60, 0.5);
}

.active-grade-hero-banner-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.active-grade-hero-banner-wrap:hover .active-grade-hero-banner-img {
  transform: scale(1.03);
}

.active-grade-hero-banner-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 40%, rgba(0, 0, 0, 0.3) 70%, rgba(0, 0, 0, 0.8) 100%);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 22px;
  pointer-events: none;
}

.hero-banner-badge {
  background: rgba(15, 23, 42, 0.82);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #FFFFFF;
  padding: 8px 16px;
  border-radius: 30px;
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 700;
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: 80%;
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;
}

.hero-banner-badge strong {
  color: var(--primary-gold);
}

.hero-banner-zoom-pill {
  background: rgba(200, 155, 60, 0.95);
  color: #FFFFFF;
  padding: 8px 16px;
  border-radius: 30px;
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 800;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  opacity: 0;
  transform: translateY(6px);
  transition: all 0.3s ease;
}

.active-grade-hero-banner-wrap:hover .hero-banner-zoom-pill {
  opacity: 1;
  transform: translateY(0);
}

[data-theme="light"] .active-grade-hero-banner-wrap {
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.08);
  border-color: rgba(15, 23, 42, 0.1);
  background: rgba(0, 0, 0, 0.04);
}

[data-theme="light"] .active-grade-hero-banner-wrap:hover {
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.14);
}

@media (max-width: 768px) {
  .active-grade-hero-banner-wrap {
    aspect-ratio: 16 / 9;
    max-height: 260px;
    min-height: 180px;
    border-radius: 14px;
    margin-top: 14px;
    margin-bottom: 16px;
  }
  .active-grade-hero-banner-overlay {
    padding: 12px 14px;
  }
  .hero-banner-badge {
    font-size: 11.5px;
    padding: 6px 12px;
    max-width: 100%;
  }
  .hero-banner-zoom-pill {
    display: none;
  }
}

.active-grade-title {
  font-family: var(--font-heading);
  font-size: 1.85rem;
  font-weight: 800;
  color: var(--text-heading);
  margin-bottom: 8px;
  line-height: 1.3;
}

.active-grade-scope-line {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 14.5px;
  color: var(--gold-subtitle);
  margin-bottom: 18px;
}

.active-grade-desc {
  font-size: 15.5px;
  line-height: 1.75;
  color: var(--text-body);
  max-width: 960px;
  margin-bottom: 0;
}

/* Active Grade Content Body */
.active-grade-body {
  padding: 32px 36px;
}

.mufredat-section-heading {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-heading);
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.mufredat-section-heading i {
  color: var(--primary-gold);
}

/* 2-Column Term Grid (1. Dönem & 2. Dönem) */
.terms-plan-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 20px;
  margin-bottom: 32px;
}

.term-column-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-glass);
  border-radius: 16px;
  padding: 22px 24px;
  transition: all 0.25s ease;
}

.term-column-card:hover {
  border-color: var(--border-gold);
  background: rgba(255, 255, 255, 0.04);
}

[data-theme="light"] .term-column-card {
  background: rgba(15, 23, 42, 0.02);
}

.term-column-title {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--primary-gold);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-glass);
}

.term-unit-item {
  margin-bottom: 14px;
  padding-bottom: 14px;
  border-bottom: 1px dashed var(--border-glass);
}

.term-unit-item:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.unit-item-name {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 14px;
  color: var(--text-heading);
  margin-bottom: 4px;
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.unit-item-name i {
  color: var(--primary-gold);
  font-size: 11px;
}

.unit-item-topics {
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--text-muted);
  margin: 0;
  padding-left: 17px;
}

[dir="rtl"] .unit-item-topics {
  padding-left: 0;
  padding-right: 17px;
}

/* Learning Outcomes Cards Grid */
.outcomes-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 14px;
  margin-bottom: 32px;
}

.outcome-check-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-glass);
  border-radius: 14px;
  padding: 16px 18px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  transition: all 0.22s ease;
}

.outcome-check-card:hover {
  border-color: #10B981;
  background: rgba(16, 185, 129, 0.05);
}

.outcome-check-icon {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: #10B981;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  flex-shrink: 0;
  margin-top: 2px;
}

.outcome-check-text {
  font-size: 14px;
  line-height: 1.55;
  color: var(--text-body);
  margin: 0;
}

/* Tools & Hardware Ecosystem */
.tools-tags-container {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 32px;
}

.tool-tag-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(143, 72, 156, 0.1);
  border: 1px solid var(--border-gold);
  color: var(--text-heading);
  padding: 8px 16px;
  border-radius: 30px;
  font-family: var(--font-heading);
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: 0.3px;
  transition: all 0.2s ease;
}

.tool-tag-pill:hover {
  background: var(--primary-brand);
  color: #FFFFFF;
  transform: translateY(-2px);
}

.tool-tag-pill i {
  color: var(--primary-gold);
}

.tool-tag-pill:hover i {
  color: #FFFFFF;
}

/* Capstone Project Card */
.capstone-project-card {
  background: linear-gradient(135deg, rgba(143, 72, 156, 0.12) 0%, rgba(245, 158, 11, 0.08) 100%);
  border: 1px solid var(--border-gold);
  border-radius: 20px;
  padding: 28px 30px;
  margin-bottom: 32px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

.capstone-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #F59E0B;
  color: #0F172A;
  padding: 5px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 800;
  font-family: var(--font-heading);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
}

.capstone-title {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-heading);
  margin-bottom: 10px;
  line-height: 1.35;
}

.capstone-desc {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-body);
  margin-bottom: 14px;
}

.capstone-meta-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.capstone-tag {
  font-size: 12px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-glass);
  color: var(--text-muted);
  font-family: var(--font-heading);
  display: inline-flex;
  align-items: center;
}

[data-theme="light"] .capstone-tag {
  background: rgba(15, 23, 42, 0.05);
}

.capstone-image-wrapper {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  border: 2px solid var(--border-gold);
  aspect-ratio: 16 / 9;
  cursor: pointer;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
  background: #000;
}

.capstone-project-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
  display: block;
}

.capstone-image-wrapper:hover .capstone-project-img {
  transform: scale(1.05);
}

.capstone-img-overlay {
  position: absolute;
  inset: 0;
  background: rgba(8, 12, 22, 0.55);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  opacity: 0;
  transition: opacity 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.capstone-image-wrapper:hover .capstone-img-overlay {
  opacity: 1;
}

.capstone-img-zoom-btn {
  background: var(--primary-brand);
  color: #FFFFFF;
  padding: 9px 18px;
  border-radius: 30px;
  font-size: 13px;
  font-weight: 700;
  font-family: var(--font-heading);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5);
  transform: translateY(6px);
  transition: transform 0.25s ease;
}

.capstone-image-wrapper:hover .capstone-img-zoom-btn {
  transform: translateY(0);
}

/* Overview Mini Card Image Wrap */
.overview-mini-card-img-wrap {
  position: relative;
  width: 100%;
  height: 145px;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 12px;
  border: 1px solid var(--border-glass);
  background: #000;
}

.overview-mini-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
  display: block;
}

.overview-grade-mini-card:hover .overview-mini-card-img {
  transform: scale(1.06);
}

.overview-mini-card-badge-floating {
  position: absolute;
  top: 8px;
  left: 8px;
  background: rgba(8, 12, 22, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #FFFFFF;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 6px;
  font-family: var(--font-heading);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

[dir="rtl"] .overview-mini-card-badge-floating {
  left: auto;
  right: 8px;
}

/* Project Lightbox Modal */
.project-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(4, 7, 14, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  z-index: 1050;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.project-modal-backdrop.open {
  opacity: 1;
  visibility: visible;
}

.project-modal-card {
  background: var(--bg-card);
  border: 2px solid var(--border-gold);
  border-radius: 20px;
  max-width: 960px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
  padding: 26px;
  animation: modalFadeIn 0.3s ease;
}

.project-modal-img {
  width: 100%;
  border-radius: 14px;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  margin-bottom: 18px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.project-modal-title {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text-heading);
  margin-bottom: 8px;
}

.project-modal-desc {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-muted);
  margin-bottom: 0;
}

/* Video & Workshop Card */
.curriculum-video-box {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-glass);
  border-radius: 18px;
  padding: 24px 28px;
  margin-bottom: 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

.video-box-left {
  display: flex;
  align-items: center;
  gap: 18px;
}

.video-box-play-icon {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: #E30613;
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  box-shadow: 0 4px 16px rgba(227, 6, 19, 0.45);
  flex-shrink: 0;
}

.video-box-title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text-heading);
  margin-bottom: 4px;
}

.video-box-subtitle {
  font-size: 13.5px;
  color: var(--text-muted);
  margin: 0;
}

.video-box-btn {
  background: #E30613;
  color: #FFFFFF !important;
  border: none;
  padding: 10px 22px;
  border-radius: 30px;
  font-family: var(--font-heading);
  font-size: 13.5px;
  font-weight: 700;
  text-decoration: none !important;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.25s ease;
  box-shadow: 0 4px 14px rgba(227, 6, 19, 0.35);
}

.video-box-btn:hover {
  background: #B9050F;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(227, 6, 19, 0.55);
}

/* Interactive Mini Quiz Module */
.curriculum-quiz-card {
  background: var(--bg-card);
  border: 1px solid var(--border-gold);
  border-radius: 20px;
  padding: 28px 32px;
  margin-bottom: 32px;
  position: relative;
}

.quiz-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 22px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-glass);
}

.quiz-score-badge {
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 800;
  color: var(--primary-gold);
  background: rgba(143, 72, 156, 0.12);
  padding: 5px 14px;
  border-radius: 20px;
  border: 1px solid var(--border-gold);
}

.quiz-question-block {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-glass);
  border-radius: 14px;
  padding: 20px 22px;
  margin-bottom: 18px;
  transition: all 0.2s ease;
}

.quiz-question-title {
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 700;
  color: var(--text-heading);
  margin-bottom: 14px;
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.quiz-q-num {
  color: var(--primary-gold);
  font-weight: 900;
}

.quiz-options-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 10px;
}

.quiz-option-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-glass);
  color: var(--text-body);
  padding: 10px 14px;
  border-radius: 10px;
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
}

[dir="rtl"] .quiz-option-btn {
  text-align: right;
}

.quiz-option-btn:hover:not(:disabled) {
  background: rgba(143, 72, 156, 0.15);
  border-color: var(--primary-gold);
  color: var(--text-heading);
}

.quiz-option-btn.correct {
  background: rgba(16, 185, 129, 0.2) !important;
  border-color: #10B981 !important;
  color: #10B981 !important;
  font-weight: 800;
}

.quiz-option-btn.wrong {
  background: rgba(239, 68, 68, 0.2) !important;
  border-color: #EF4444 !important;
  color: #EF4444 !important;
}

.quiz-explanation-box {
  margin-top: 10px;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 13px;
  line-height: 1.5;
  background: rgba(143, 72, 156, 0.1);
  border-left: 3px solid var(--primary-gold);
  color: var(--text-body);
  display: none;
}

[dir="rtl"] .quiz-explanation-box {
  border-left: none;
  border-right: 3px solid var(--primary-gold);
}

.quiz-explanation-box.show {
  display: block;
}

.quiz-reset-btn {
  background: transparent;
  border: 1px solid var(--border-gold);
  color: var(--primary-gold);
  padding: 7px 16px;
  border-radius: 20px;
  font-family: var(--font-heading);
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.quiz-reset-btn:hover {
  background: var(--primary-gold);
  color: #FFFFFF;
}

/* Prev / Next Grade Nav Buttons */
.grade-nav-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  padding-top: 24px;
  border-top: 1px solid var(--border-glass);
}

.grade-nav-footer-btn {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  color: var(--text-heading);
  padding: 12px 22px;
  border-radius: 12px;
  font-family: var(--font-heading);
  font-size: 13.5px;
  font-weight: 700;
  text-decoration: none !important;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: all 0.25s ease;
  cursor: pointer;
}

.grade-nav-footer-btn:hover {
  background: var(--primary-brand);
  color: #FFFFFF !important;
  border-color: var(--primary-brand);
  transform: translateY(-2px);
  box-shadow: 0 4px 14px var(--primary-brand-glow);
}

.grade-nav-footer-btn.disabled {
  opacity: 0.4;
  pointer-events: none;
  cursor: default;
}

/* All 13 Grades Grid Overview */
.all-grades-overview-section {
  padding: 40px 0 60px 0;
  border-top: 1px solid var(--border-glass);
}

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

.overview-grade-mini-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: 16px;
  padding: 18px 20px;
  transition: all 0.25s ease;
  cursor: pointer;
  position: relative;
  text-decoration: none !important;
  display: flex;
  flex-direction: column;
}

.overview-grade-mini-card:hover {
  transform: translateY(-3px);
  border-color: var(--primary-gold);
  box-shadow: 0 8px 24px rgba(143, 72, 156, 0.25);
}

.overview-grade-mini-card.active {
  border-color: var(--primary-gold);
  background: rgba(143, 72, 156, 0.08);
}

.mini-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.mini-card-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
  font-size: 15px;
}

.mini-card-badge {
  font-size: 11px;
  font-weight: 700;
  font-family: var(--font-heading);
  padding: 3px 8px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
}

.mini-card-title {
  font-family: var(--font-heading);
  font-size: 14.5px;
  font-weight: 800;
  color: var(--text-heading);
  margin-bottom: 4px;
}

.mini-card-sub {
  font-size: 12.5px;
  color: var(--text-muted);
  line-height: 1.4;
  margin: 0;
  flex-grow: 1;
}

.mini-card-footer {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--border-glass);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  font-weight: 700;
  color: var(--primary-gold);
  font-family: var(--font-heading);
}

/* =========================================================================
   COMPREHENSIVE RESPONSIVE DESIGN & MOBILE OPTIMIZATIONS
   Ensures 100% flaw-free UI scaling across phones, tablets, and phablets:
   - Zero horizontal overflow / clipping
   - Touch-friendly tap targets (>= 44px)
   - Smooth horizontal scroll ribbons for tabs & pills on mobile
   - Single-column stacked layouts for multi-column grids on narrow viewports
   - Fluid typography (clamp) preventing text crushing or awkward wraps
   - 100% full RTL alignment for Arabic on all screen sizes
   ========================================================================= */

/* Global Typographic and Image Safety */
h1, h2, h3, h4, h5, h6,
.active-grade-title,
.mufredat-page-title,
.capstone-title,
.video-box-title,
.card-title,
.services-content h4,
.team-content h4 {
  overflow-wrap: break-word;
  word-break: break-word;
}

img {
  max-width: 100%;
  height: auto;
}

/* RTL Directional Icon & Button Adjustments */
[dir="rtl"] .quiz-option-btn .badge {
  margin-right: 0 !important;
  margin-left: 0.5rem !important;
}

[dir="rtl"] .modal-close-btn,
[dir="rtl"] .project-modal-card .modal-close-btn,
[dir="rtl"] .campus-modal-card .modal-close-btn {
  right: auto !important;
  left: 12px !important;
}

[dir="rtl"] .modal-term-header i,
[dir="rtl"] .term-column-title i,
[dir="rtl"] .mufredat-section-heading i {
  margin-right: 0 !important;
  margin-left: 8px !important;
}

[dir="rtl"] .grade-action-btn i,
[dir="rtl"] .video-box-btn i,
[dir="rtl"] .quiz-reset-btn i {
  margin-right: 0 !important;
  margin-left: 6px !important;
}

/* --- TABLETS & LANDSCAPE PHABLETS (<= 991.98px) --- */
@media (max-width: 991.98px) {
  .mufredat-body {
    padding-top: 74px !important;
  }

  .mufredat-hero-section {
    padding: 24px 0 18px 0;
  }

  .mufredat-hero-card {
    padding: 24px 22px;
  }

  .mufredat-page-title {
    font-size: clamp(1.4rem, 4.2vw, 1.85rem);
  }

  .mufredat-page-subtitle {
    font-size: 0.96rem;
  }

  .active-grade-card {
    border-radius: 20px;
    margin-bottom: 30px;
  }

  .active-grade-header {
    padding: 24px 22px 18px 22px;
  }

  .active-grade-body {
    padding: 24px 22px;
  }

  .active-grade-title {
    font-size: clamp(1.35rem, 3.8vw, 1.7rem);
  }

  .terms-plan-grid {
    grid-template-columns: 1fr;
    gap: 16px;
    margin-bottom: 26px;
  }

  .capstone-project-card {
    padding: 22px 20px;
  }

  .overview-grades-grid {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 14px;
  }
}

/* --- MOBILE DEVICES (<= 768px) --- */
@media (max-width: 768px) {
  /* Global Container & Layout Safety */
  body, .mufredat-body {
    overflow-x: hidden !important;
    width: 100% !important;
    max-width: 100vw !important;
  }

  .container {
    padding-left: 14px !important;
    padding-right: 14px !important;
  }

  /* Form Elements: Prevent iOS Auto-Zoom on Focus */
  input.golden-form-element,
  textarea.golden-form-element,
  select.golden-form-element {
    font-size: 16px !important;
  }

  /* Section Spacing Tuning */
  #services, #portfolio, #aboutUs, #team, #contact, #location {
    padding: 50px 0 !important;
  }

  /* Portfolio Filter Ribbon on Mobile */
  .portfolio-filters {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    justify-content: flex-start;
    gap: 8px;
    margin-bottom: 24px;
    padding-bottom: 6px;
    padding-left: 2px;
    padding-right: 2px;
  }

  .portfolio-filters::-webkit-scrollbar {
    display: none;
  }

  .filter-btn {
    flex-shrink: 0;
    padding: 8px 14px;
    font-size: 12.5px;
    white-space: nowrap;
  }

  /* Curriculum Cards on Index */
  .curriculum-card {
    margin-bottom: 20px;
    border-radius: 14px;
  }

  .curriculum-card .card-body {
    padding: 18px 16px;
  }

  .portfolio-content .card-title {
    font-size: 17px;
  }

  .portfolio-content .card-subtitle {
    font-size: 13px;
  }

  .card-project-badge {
    font-size: 12px;
    padding: 6px 10px;
  }

  /* Curriculum Detail Modal on Index */
  .modal-backdrop-custom {
    padding: 10px 8px;
  }

  .modal-card-custom {
    padding: 20px 16px;
    border-radius: 16px;
    max-height: 92vh;
  }

  .modal-close-btn {
    top: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
    font-size: 13px;
  }

  [dir="rtl"] .modal-close-btn {
    right: auto;
    left: 12px;
  }

  .modal-stage-nav-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding-bottom: 12px;
    margin-bottom: 14px;
  }

  .modal-stage-indicators {
    width: 100%;
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: 6px;
    padding-bottom: 4px;
  }

  .modal-stage-indicators::-webkit-scrollbar {
    display: none;
  }

  .modal-stage-dot-btn {
    flex-shrink: 0;
    padding: 6px 10px;
    font-size: 11px;
    white-space: nowrap;
  }

  .modal-grade-tabs {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: 6px;
    padding: 4px;
    margin-bottom: 16px;
  }

  .modal-grade-tabs::-webkit-scrollbar {
    display: none;
  }

  .modal-grade-tab-btn {
    flex-shrink: 0;
    min-width: auto;
    padding: 8px 12px;
    font-size: 12px;
    white-space: nowrap;
  }

  .modal-terms-grid {
    grid-template-columns: 1fr !important;
    gap: 12px;
    margin-bottom: 18px;
  }

  .modal-term-box {
    padding: 14px 12px;
    border-radius: 10px;
  }

  .modal-term-header {
    font-size: 13px;
    margin-bottom: 8px;
    padding-bottom: 6px;
  }

  .modal-unit-item {
    font-size: 12px;
    line-height: 1.45;
  }

  .outcome-item-card {
    padding: 10px 12px;
    font-size: 12.5px;
    margin-bottom: 6px;
  }

  .tool-tag {
    font-size: 11px;
    padding: 4px 10px;
    margin: 3px;
  }

  /* About Us Timeline Sizing */
  .aboutUs-content .row {
    margin-bottom: 40px !important;
  }

  .timeline-image-circle {
    width: 110px !important;
    height: 110px !important;
    margin: 12px auto !important;
  }

  .timeline-image-circle i {
    font-size: 2rem !important;
  }

  /* Team Circles */
  .team-circle {
    width: 130px;
    height: 130px;
    margin: 0 auto 14px;
  }

  .team-circle i {
    font-size: 2.5rem;
  }

  .team-content h4 {
    font-size: 17px;
  }

  .team-content h5 {
    font-size: 13px;
  }

  .team-summary-text {
    font-size: 13.5px;
    line-height: 1.6;
    padding: 0 10px;
  }

  /* Location Section */
  .location-map-wrapper {
    min-height: 280px;
    border-radius: 14px;
  }

  .location-map-iframe {
    min-height: 280px;
  }

  .location-map-floating-badge {
    top: 10px;
    right: 10px;
    padding: 6px 12px;
    font-size: 11.5px;
  }

  [dir="rtl"] .location-map-floating-badge {
    right: auto;
    left: 10px;
  }

  .location-info-card {
    padding: 20px 16px;
    border-radius: 14px;
  }

  .location-stages-pills {
    gap: 6px;
  }

  .location-stage-pill {
    font-size: 11.5px;
    padding: 4px 9px;
  }

  /* ========================================================
     MUFREDAT.HTML MOBILE STYLES (<= 768px)
     ======================================================== */
  .mufredat-hero-section {
    padding: 16px 0 14px 0;
  }

  .mufredat-hero-card {
    padding: 18px 16px;
    border-radius: 16px;
  }

  .mufredat-breadcrumb {
    font-size: 11.5px;
    gap: 4px 6px;
    margin-bottom: 10px;
  }

  .mufredat-meb-badge {
    font-size: 11px;
    padding: 4px 10px;
    margin-bottom: 12px;
    white-space: normal;
    line-height: 1.35;
    max-width: 100%;
  }

  .mufredat-page-title {
    font-size: clamp(1.3rem, 5vw, 1.75rem);
    line-height: 1.25;
    margin-bottom: 8px;
    word-break: break-word;
  }

  .mufredat-page-subtitle {
    font-size: 0.9rem;
    line-height: 1.55;
    margin-bottom: 14px;
  }

  .mufredat-stats-bar {
    gap: 6px;
    padding-top: 10px;
  }

  .mufredat-stat-pill {
    font-size: 11.5px;
    padding: 5px 10px;
    border-radius: 8px;
  }

  /* Stage Filter Tabs (Horizontal Scroll Ribbon on Mobile) */
  .mufredat-stages-nav {
    margin: 14px 0 10px 0;
  }

  .stage-tab-buttons {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    justify-content: flex-start;
    gap: 8px;
    padding-bottom: 4px;
    padding-left: 2px;
    padding-right: 2px;
  }

  .stage-tab-buttons::-webkit-scrollbar {
    display: none;
  }

  .stage-tab-btn {
    flex-shrink: 0;
    padding: 7px 13px;
    font-size: 12px;
    white-space: nowrap;
    border-radius: 30px;
  }

  /* 13-Grade Pills Quick Selector Bar (Horizontal Scroll Ribbon on Mobile) */
  .grade-pills-container {
    padding: 12px 14px;
    margin-bottom: 18px;
    border-radius: 14px;
  }

  .grade-pills-label-row {
    font-size: 11px;
    margin-bottom: 8px;
  }

  .grade-pills-list {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: 6px;
    padding-bottom: 4px;
    padding-left: 2px;
    padding-right: 2px;
  }

  .grade-pills-list::-webkit-scrollbar {
    display: none;
  }

  .grade-pill-item {
    flex-shrink: 0;
    padding: 6px 11px;
    font-size: 11.5px;
    white-space: nowrap;
    border-radius: 10px;
  }

  .grade-pill-age {
    font-size: 10px;
    padding: 1px 5px;
  }

  /* Active Grade Card */
  .active-grade-card {
    border-radius: 16px;
    margin-bottom: 22px;
  }

  .active-grade-header {
    padding: 18px 16px 14px 16px;
  }

  .active-grade-body {
    padding: 18px 16px;
  }

  .active-grade-title {
    font-size: clamp(1.2rem, 4.6vw, 1.6rem);
    line-height: 1.25;
    margin-bottom: 6px;
    word-break: break-word;
  }

  .active-grade-scope-line {
    font-size: 13px;
    margin-bottom: 12px;
    line-height: 1.45;
  }

  .active-grade-desc {
    font-size: 13.5px;
    line-height: 1.6;
    word-break: break-word;
  }

  .mufredat-section-heading {
    font-size: 1.08rem;
    margin-bottom: 14px;
    gap: 8px;
  }

  /* 2-Column Academic Terms Breakdown */
  .terms-plan-grid {
    grid-template-columns: 1fr !important;
    gap: 14px;
    margin-bottom: 22px;
  }

  .term-column-card {
    padding: 16px 14px;
    border-radius: 14px;
  }

  .term-column-title {
    font-size: 0.98rem;
    margin-bottom: 12px;
    padding-bottom: 8px;
  }

  .unit-item-name {
    font-size: 13.5px;
    line-height: 1.35;
  }

  .unit-item-topics {
    font-size: 12.5px;
    line-height: 1.5;
  }

  /* Outcomes Cards Grid */
  .outcomes-cards-grid {
    grid-template-columns: 1fr !important;
    gap: 10px;
    margin-bottom: 22px;
  }

  .outcome-check-card {
    padding: 12px 14px;
    border-radius: 12px;
    gap: 10px;
  }

  .outcome-check-text {
    font-size: 13px;
    line-height: 1.5;
    word-break: break-word;
  }

  /* Tools Tags */
  .tools-tags-container {
    gap: 7px;
    margin-bottom: 22px;
  }

  .tool-tag-pill {
    font-size: 12px;
    padding: 6px 12px;
  }

  /* Capstone Project Card */
  .capstone-project-card {
    padding: 18px 16px;
    border-radius: 16px;
    margin-bottom: 22px;
  }

  .capstone-badge {
    font-size: 11px;
    padding: 4px 10px;
    margin-bottom: 8px;
  }

  .capstone-title {
    font-size: clamp(1.1rem, 4.2vw, 1.3rem);
    line-height: 1.3;
    margin-bottom: 8px;
    word-break: break-word;
  }

  .capstone-desc {
    font-size: 13.5px;
    line-height: 1.55;
    margin-bottom: 10px;
  }

  .capstone-meta-tags {
    gap: 6px;
  }

  .capstone-tag {
    font-size: 11px;
    padding: 4px 9px;
  }

  .capstone-image-wrapper {
    aspect-ratio: 16 / 9;
    max-height: 240px;
    border-radius: 12px;
    margin-top: 14px;
  }

  /* Video & Workshop Card */
  .curriculum-video-box {
    padding: 18px 16px;
    border-radius: 14px;
    margin-bottom: 22px;
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
  }

  .video-box-left {
    gap: 12px;
  }

  .video-box-play-icon {
    width: 44px;
    height: 44px;
    font-size: 16px;
  }

  .video-box-title {
    font-size: 14px;
    line-height: 1.35;
  }

  .video-box-subtitle {
    font-size: 12px;
    line-height: 1.4;
  }

  .video-box-btn {
    width: 100%;
    justify-content: center;
    padding: 10px 18px;
    font-size: 13px;
  }

  /* Interactive Quiz Module */
  .curriculum-quiz-card {
    padding: 18px 16px;
    border-radius: 16px;
    margin-bottom: 22px;
  }

  .quiz-card-header {
    margin-bottom: 14px;
    padding-bottom: 12px;
  }

  .quiz-question-block {
    padding: 14px 12px;
    border-radius: 12px;
    margin-bottom: 12px;
  }

  .quiz-question-title {
    font-size: 13.5px;
    line-height: 1.45;
    margin-bottom: 12px;
    word-break: break-word;
  }

  .quiz-options-list {
    grid-template-columns: 1fr !important;
    gap: 8px;
  }

  .quiz-option-btn {
    padding: 10px 12px;
    font-size: 12.5px;
    min-height: 44px;
    line-height: 1.35;
    word-break: break-word;
  }

  .quiz-explanation-box {
    font-size: 12px;
    padding: 8px 12px;
    line-height: 1.45;
  }

  /* Prev / Next Grade Footer Nav */
  .grade-nav-footer {
    padding-top: 18px;
  }

  /* Continuum Overview Grid */
  .all-grades-overview-section {
    padding: 24px 0 36px 0;
  }

  /* Project Lightbox Modal */
  .project-modal-backdrop {
    padding: 12px 10px;
  }

  .project-modal-card {
    padding: 18px 14px;
    border-radius: 16px;
    max-height: 92vh;
  }

  .project-modal-card .modal-close-btn {
    top: 10px;
    right: 10px;
    width: 34px;
    height: 34px;
    font-size: 13px;
  }

  [dir="rtl"] .project-modal-card .modal-close-btn {
    right: auto;
    left: 10px;
  }

  .project-modal-img {
    aspect-ratio: 16 / 9;
    margin-bottom: 12px;
    border-radius: 10px;
  }

  .project-modal-title {
    font-size: 1.15rem;
    line-height: 1.3;
    margin-bottom: 6px;
  }

  .project-modal-desc {
    font-size: 13px;
    line-height: 1.55;
  }
}

/* --- SMALL MOBILE DEVICES (<= 576px) --- */
@media (max-width: 576px) {
  /* Active Grade Header Top: Stack badges and action buttons cleanly */
  .active-grade-header-top {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    margin-bottom: 10px;
  }

  .active-grade-meta-badges {
    width: 100%;
    gap: 6px;
  }

  .grade-badge-main {
    font-size: 11px;
    padding: 4px 10px;
  }

  .grade-badge-outline {
    font-size: 11px;
    padding: 4px 9px;
  }

  .active-grade-actions {
    width: 100%;
    display: flex;
    gap: 8px;
  }

  .grade-action-btn {
    flex: 1;
    justify-content: center;
    padding: 8px 10px;
    font-size: 12px;
  }

  /* Hero Banner Badge Multi-line wrap on phones */
  .hero-banner-badge {
    font-size: 11px;
    padding: 6px 10px;
    white-space: normal;
    line-height: 1.3;
    max-width: 100%;
    border-radius: 12px;
  }

  /* Quiz Card Header: Stack Title and Actions */
  .quiz-card-header {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .quiz-card-header > .d-flex {
    width: 100%;
    justify-content: space-between;
  }

  /* Footer Prev / Next Buttons Full Width */
  .grade-nav-footer {
    flex-direction: column;
    gap: 8px;
  }

  .grade-nav-footer-btn {
    width: 100%;
    justify-content: center;
    text-align: center;
    padding: 11px 16px;
    font-size: 13px;
  }

  /* 13-Grade Continuum Overview Mini Cards */
  .overview-grades-grid {
    grid-template-columns: 1fr !important;
    gap: 12px;
  }

  .overview-grade-mini-card {
    padding: 14px 16px;
    border-radius: 14px;
  }

  .overview-mini-card-img-wrap {
    height: 130px;
  }

  /* Strip Banner in Mufredat */
  .footer-stages-row {
    font-size: 12px !important;
    line-height: 1.45;
  }

  /* Contact Strip Buttons */
  .btn-outline-golden.mr-3 {
    margin-right: 0 !important;
    margin-bottom: 8px !important;
  }

  [dir="rtl"] .btn-outline-golden.mr-3 {
    margin-left: 0 !important;
    margin-bottom: 8px !important;
  }
}

/* --- EXTRA-SMALL MOBILE PHONES (<= 375px) --- */
@media (max-width: 375px) {
  .brand-name {
    font-size: 0.9rem !important;
    letter-spacing: 0.4px !important;
  }

  .brand-campus-sub {
    font-size: 0.54rem !important;
    letter-spacing: 0.3px !important;
  }

  .mufredat-page-title {
    font-size: 1.25rem !important;
  }

  .active-grade-title {
    font-size: 1.18rem !important;
  }

  .active-grade-card {
    border-radius: 14px;
  }

  .active-grade-header,
  .active-grade-body {
    padding: 14px 12px !important;
  }

  .term-column-card {
    padding: 14px 10px !important;
  }

  .capstone-project-card {
    padding: 14px 12px !important;
  }

  .curriculum-quiz-card {
    padding: 14px 12px !important;
  }

  .quiz-option-btn {
    font-size: 12px;
    padding: 9px 10px;
  }

  .overview-grade-mini-card {
    padding: 12px 14px !important;
  }
}

/* Print Styles */
@media print {
  .fixed-top,
  .mufredat-stages-nav,
  .grade-pills-container,
  .active-grade-actions,
  .video-box-btn,
  .quiz-reset-btn,
  .grade-nav-footer,
  .all-grades-overview-section,
  #footer {
    display: none !important;
  }

  .mufredat-body {
    padding-top: 0 !important;
    background: #FFFFFF !important;
    color: #000000 !important;
  }

  .active-grade-card {
    border: 1px solid #CCCCCC !important;
    box-shadow: none !important;
  }
}

/* =========================================================================
   ULTRA-WIDE & TV RESPONSIVENESS (2K, 4K, 8K)
   ========================================================================= */
@media (min-width: 1920px) {
  html {
    font-size: 110%; /* Scale up base rem slightly */
  }
  .container {
    max-width: 1400px;
  }
  .hero-content h2 {
    font-size: 64px !important;
  }
  .hero-content p {
    font-size: 24px !important;
  }
}

@media (min-width: 2560px) {
  html {
    font-size: 130%; /* Scale up further for 4K */
  }
  .container {
    max-width: 1800px;
  }
  .hero-content h2 {
    font-size: 80px !important;
  }
  .hero-content p {
    font-size: 28px !important;
  }
}

@media (min-width: 3840px) {
  html {
    font-size: 160%; /* Scale up for 8K TVs */
  }
  .container {
    max-width: 2400px;
  }
  .hero-content h2 {
    font-size: 100px !important;
  }
  .hero-content p {
    font-size: 36px !important;
  }
}

/* =========================================================================
   EXTRA SMALL MOBILE RESPONSIVENESS (< 360px)
   ========================================================================= */
@media (max-width: 359px) {
  .hero-content h2 {
    font-size: 26px !important;
  }
  .hero-content p {
    font-size: 13.5px !important;
  }
  .services-card {
    padding: 16px 12px;
  }
  .curriculum-card {
    padding: 0;
  }
  .campus-modal-card {
    padding: 14px 10px 12px;
  }
  .campus-modal-header {
    padding-right: 36px;
  }
  .campus-modal-title {
    font-size: 13.5px;
  }
  .campus-modal-subtitle {
    font-size: 10px;
  }
  .campus-modal-location-badge {
    font-size: 10px;
  }
  .stage-tab-btn {
    padding: 6px 10px !important;
    font-size: 11px !important;
  }
  .grade-pill-item {
    padding: 5px 8px !important;
    font-size: 11px !important;
  }
}

/* =========================================================================
   K-12 ARDUINO & EMBEDDED HARDWARE SECTION STYLES
   ========================================================================= */

:root {
  --arduino-teal: #00979D;
  --arduino-teal-dark: #008184;
  --arduino-teal-light: #48C0C4;
  --arduino-glow: rgba(0, 151, 157, 0.25);
}

.arduino-project-card {
  margin-top: 40px;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-top: 4px solid var(--arduino-teal);
  border-radius: 20px;
  padding: 32px;
  box-shadow: var(--shadow-card);
  position: relative;
  transition: all 0.3s ease;
}

.arduino-badge-primary {
  display: inline-flex;
  align-items: center;
  background: linear-gradient(135deg, var(--arduino-teal) 0%, var(--arduino-teal-dark) 100%);
  color: #ffffff;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: 0.3px;
  box-shadow: 0 4px 12px var(--arduino-glow);
}

.arduino-badge-outline {
  display: inline-flex;
  align-items: center;
  background: rgba(0, 151, 157, 0.08);
  border: 1px solid rgba(0, 151, 157, 0.25);
  color: var(--text-main);
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
}

[data-theme="dark"] .arduino-badge-outline {
  color: #80DEEA;
}

.arduino-header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.arduino-action-btn {
  display: inline-flex;
  align-items: center;
  background: var(--bg-surface);
  border: 1px solid var(--border-card);
  color: var(--text-main);
  padding: 7px 14px;
  border-radius: 10px;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.arduino-action-btn:hover {
  background: var(--arduino-teal);
  border-color: var(--arduino-teal);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px var(--arduino-glow);
}

.arduino-project-title {
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 800;
  color: var(--text-main);
  margin-top: 14px;
  margin-bottom: 12px;
  line-height: 1.35;
}

.arduino-project-objective {
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-main);
  margin-bottom: 16px;
}

.arduino-principle-box {
  background: rgba(0, 151, 157, 0.06);
  border: 1px solid rgba(0, 151, 157, 0.2);
  border-left: 4px solid var(--arduino-teal);
  border-radius: 10px;
  padding: 14px 18px;
  margin-bottom: 24px;
}

.principle-box-title {
  font-size: 13.5px;
  font-weight: 800;
  color: var(--arduino-teal);
  margin-bottom: 6px;
  display: flex;
  align-items: center;
}

.principle-box-text {
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--text-main);
  margin: 0;
  opacity: 0.95;
}

/* --- Components Grid --- */
.arduino-components-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 16px;
  margin-top: 14px;
}

.arduino-component-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: 14px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  transition: all 0.25s ease;
  position: relative;
}

.arduino-component-card:hover {
  border-color: var(--arduino-teal);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px var(--arduino-glow);
}

.arduino-component-img-wrap {
  width: 100%;
  height: 96px;
  background: rgba(0, 151, 157, 0.05);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 8px;
}

.arduino-component-img {
  max-height: 80px;
  max-width: 90%;
  object-fit: contain;
  transition: transform 0.25s ease;
}

.arduino-component-card:hover .arduino-component-img {
  transform: scale(1.05);
}

.arduino-component-qty-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  background: var(--arduino-teal);
  color: #ffffff;
  font-size: 11px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 12px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

.arduino-component-info {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.arduino-component-name {
  font-size: 14.5px;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 4px;
  line-height: 1.3;
}

.arduino-component-role {
  font-size: 12.5px;
  color: var(--text-muted);
  line-height: 1.45;
  margin-bottom: 8px;
  flex-grow: 1;
}

.arduino-component-spec {
  font-size: 11px;
  line-height: 1.4;
  color: var(--text-muted);
  background: rgba(125, 125, 125, 0.08);
  border-radius: 6px;
  padding: 6px 8px;
  margin-top: auto;
}

.arduino-component-spec .spec-label {
  font-weight: 700;
  color: var(--arduino-teal);
  display: block;
  margin-bottom: 2px;
}

/* --- Breadboard & Wiring Section --- */
.breadboard-guide-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: 14px;
  padding: 20px;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.breadboard-guide-header {
  font-size: 15px;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
}

.breadboard-steps-list {
  list-style: none;
  padding: 0;
  margin: 0;
  flex-grow: 1;
}

.breadboard-step-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 12px;
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--text-main);
}

.step-bullet {
  width: 24px;
  height: 24px;
  min-width: 24px;
  border-radius: 50%;
  background: rgba(0, 151, 157, 0.15);
  color: var(--arduino-teal);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  margin-top: 1px;
}

/* Libraries Box */
.arduino-libraries-box {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--border-card);
}

.arduino-sub-title {
  font-size: 13px;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 8px;
}

.arduino-libs-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.arduino-lib-item {
  background: rgba(0, 151, 157, 0.05);
  border: 1px solid rgba(0, 151, 157, 0.18);
  border-radius: 8px;
  padding: 8px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.arduino-lib-badge {
  font-size: 11.5px;
  font-weight: 700;
  font-family: monospace;
}

.arduino-lib-badge.builtin {
  color: #2E7D32;
}

[data-theme="dark"] .arduino-lib-badge.builtin {
  color: #81C784;
}

.arduino-lib-badge.external {
  color: #E65100;
}

[data-theme="dark"] .arduino-lib-badge.external {
  color: #FFB74D;
}

.arduino-lib-guide {
  font-size: 11.5px;
  color: var(--text-muted);
}

/* Pinout Table */
.arduino-pinout-table-wrapper {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0,0,0,0.05);
}

.pinout-table-header {
  padding: 14px 18px;
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-card);
  font-size: 14.5px;
  font-weight: 800;
  color: var(--text-main);
  display: flex;
  align-items: center;
}

.arduino-pinout-table {
  margin: 0;
  font-size: 13px;
  color: var(--text-main);
}

.arduino-pinout-table thead th {
  background: rgba(0, 151, 157, 0.06);
  color: var(--text-main);
  font-weight: 800;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  border-bottom: 2px solid var(--border-card);
  padding: 12px 16px;
}

.arduino-pinout-table tbody td {
  padding: 12px 16px;
  vertical-align: middle;
  border-top: 1px solid var(--border-card);
}

.arduino-pin-pill {
  display: inline-block;
  background: rgba(0, 151, 157, 0.14);
  border: 1px solid rgba(0, 151, 157, 0.35);
  color: var(--arduino-teal);
  padding: 3px 8px;
  border-radius: 6px;
  font-family: monospace;
  font-weight: 800;
  font-size: 12px;
}

/* --- Code Editor Window Container --- */
.arduino-code-editor-box {
  background: #181824;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  overflow: hidden;
  margin-top: 16px;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.45);
}

.arduino-code-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #111119;
  padding: 10px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.code-editor-dots {
  display: flex;
  align-items: center;
  gap: 6px;
}

.editor-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  display: inline-block;
}

.dot-red { background: #FF5F56; }
.dot-yellow { background: #FFBD2E; }
.dot-green { background: #27C93F; }

.code-editor-file-badge {
  margin-left: 12px;
  font-family: monospace;
  font-size: 12px;
  color: #A0A0B8;
  font-weight: 600;
}

.code-editor-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.code-editor-lang-tag {
  font-size: 11px;
  font-weight: 800;
  color: #4DD0E1;
  background: rgba(0, 151, 157, 0.2);
  border: 1px solid rgba(0, 151, 157, 0.4);
  padding: 3px 8px;
  border-radius: 4px;
  text-transform: uppercase;
}

.code-editor-copy-btn {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.code-editor-copy-btn:hover {
  background: var(--arduino-teal);
  border-color: var(--arduino-teal);
  color: #ffffff;
}

.arduino-code-scroll {
  max-height: 520px;
  overflow-y: auto;
  overflow-x: auto;
  padding: 18px 22px;
  background: #14141E;
}

.arduino-code-pre {
  margin: 0;
  font-family: 'Fira Code', 'JetBrains Mono', Consolas, Monaco, monospace;
  font-size: 13px;
  line-height: 1.65;
  color: #D4D4D4;
}

/* Syntax Highlighting Tokens */
.arduino-token-comment {
  color: #6A9955 !important;
  font-style: italic;
}

.arduino-token-directive {
  color: #C586C0 !important;
  font-weight: bold;
}

.arduino-token-keyword {
  color: #569CD6 !important;
  font-weight: 700;
}

.arduino-token-string {
  color: #CE9178 !important;
}

.arduino-token-number {
  color: #B5CEA8 !important;
}

/* Mobile responsiveness for Arduino project section */
@media (max-width: 767px) {
  .arduino-project-card {
    padding: 18px 14px;
    border-radius: 16px;
  }
  .arduino-components-grid {
    grid-template-columns: 1fr;
  }
  .arduino-project-title {
    font-size: 19px;
  }
  .arduino-code-scroll {
    max-height: 380px;
    padding: 12px 14px;
  }
  .arduino-code-pre {
    font-size: 11.5px;
  }
  .fritzing-diagram-img {
    max-height: 360px;
  }
  .fritzing-meta-grid {
    grid-template-columns: 1fr !important;
  }
}

/* ==========================================================================
   FRITZING BREADBOARD & DEVRE SIMÜLASYON ŞEMASI GÖRSEL KARTI
   ========================================================================== */
.fritzing-simulation-card {
  background: #141724;
  border: 1px solid rgba(0, 151, 157, 0.4);
  border-radius: 18px;
  overflow: hidden;
  margin-bottom: 28px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.45);
  position: relative;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.fritzing-simulation-card:hover {
  border-color: var(--arduino-teal);
  box-shadow: 0 20px 56px rgba(0, 151, 157, 0.22);
}

.fritzing-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding: 14px 20px;
  background: #191D2C;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.fritzing-header-left {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.fritzing-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, #00979D 0%, #00686B 100%);
  color: #ffffff;
  font-size: 11.5px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.fritzing-header-title {
  color: #ffffff;
  font-size: 14.5px;
  font-weight: 700;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.fritzing-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.fritzing-tool-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #E0E0E0;
  font-size: 11.5px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 8px;
  cursor: pointer;
  text-decoration: none !important;
  transition: all 0.2s ease;
}

.fritzing-tool-btn:hover {
  background: var(--arduino-teal);
  border-color: var(--arduino-teal);
  color: #ffffff !important;
  transform: translateY(-1px);
}

.fritzing-diagram-canvas {
  position: relative;
  background: #0F1118;
  padding: 16px;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  cursor: zoom-in;
}

.fritzing-diagram-img {
  width: 100%;
  max-width: 1060px;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
  transition: transform 0.3s ease;
  display: block;
}

.fritzing-diagram-canvas:hover .fritzing-diagram-img {
  transform: scale(1.008);
}

.fritzing-zoom-overlay {
  position: absolute;
  bottom: 24px;
  right: 24px;
  background: rgba(15, 17, 24, 0.85);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #FFFFFF;
  font-size: 12px;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 20px;
  pointer-events: none;
  display: flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

.fritzing-footer-meta {
  padding: 14px 20px;
  background: #171A27;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.fritzing-meta-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.fritzing-meta-item {
  background: #1E2232;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  padding: 8px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.fritzing-meta-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  flex-shrink: 0;
}

.icon-ard { background: rgba(0, 151, 157, 0.2); color: #4DD0E1; }
.icon-bb  { background: rgba(255, 183, 77, 0.2); color: #FFB74D; }
.icon-pin { background: rgba(129, 199, 132, 0.2); color: #81C784; }
.icon-dir { background: rgba(186, 104, 200, 0.2); color: #BA68C8; }

.fritzing-meta-text {
  overflow: hidden;
}

.fritzing-meta-label {
  font-size: 10px;
  text-transform: uppercase;
  color: #8C94A8;
  font-weight: 700;
  letter-spacing: 0.4px;
  display: block;
}

.fritzing-meta-val {
  font-size: 12px;
  font-weight: 700;
  color: #FFFFFF;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
}

/* Lightbox Modal for Fullscreen Circuit Inspection */
.circuit-lightbox-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(10, 12, 18, 0.94);
  backdrop-filter: blur(12px);
  z-index: 99999;
  justify-content: center;
  align-items: center;
  padding: 30px;
  box-sizing: border-box;
}

.circuit-lightbox-modal.active {
  display: flex;
}

.circuit-lightbox-content {
  position: relative;
  max-width: 96vw;
  max-height: 94vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.circuit-lightbox-img {
  max-width: 100%;
  max-height: 86vh;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
  border: 1px solid rgba(0, 151, 157, 0.4);
}

.circuit-lightbox-close {
  position: absolute;
  top: -20px;
  right: -20px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #E53935;
  color: #FFFFFF;
  border: 2px solid #FFFFFF;
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 20px rgba(0,0,0,0.5);
  transition: transform 0.2s ease;
}

.circuit-lightbox-close:hover {
  transform: scale(1.1);
}

/* ==========================================================================
   TITLE BAR & GLOBAL SITE-WIDE SEARCH SYSTEM (DESKTOP, TABLET, MOBILE, TV)
   - Tam 3 Görünür Sonuç + Yumuşak Kaydırma (Scrollable)
   - %1000 UX UI Uyumlu, Cam Efektli & Kibar Tasarım
   ========================================================================== */

/* --- 1. Masaüstü Title Bar Arama Tetikleyici Butonu (Pill Trigger) --- */
.nav-search-pill-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 20px;
  padding: 0 12px;
  height: 36px;
  color: #FFFFFF;
  cursor: pointer;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  outline: none !important;
  user-select: none;
  white-space: nowrap;
}

.nav-search-pill-btn:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(245, 166, 35, 0.6);
  box-shadow: 0 0 14px rgba(245, 166, 35, 0.3);
  transform: translateY(-1px);
}

.nav-search-pill-btn:active {
  transform: translateY(0);
}

[data-theme="light"] .nav-search-pill-btn {
  background: rgba(0, 0, 0, 0.05);
  border-color: rgba(0, 0, 0, 0.15);
  color: #1A1D28;
}

[data-theme="light"] .nav-search-pill-btn:hover {
  background: rgba(0, 0, 0, 0.08);
  border-color: rgba(245, 166, 35, 0.7);
  box-shadow: 0 0 14px rgba(245, 166, 35, 0.25);
}

.search-pill-icon {
  color: var(--primary-gold);
  font-size: 13px;
}

.search-pill-text {
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.2px;
}

.search-pill-kbd {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 4px;
  color: #C0C8D6;
  font-family: inherit;
  font-size: 10px;
  font-weight: 700;
  padding: 1px 5px;
  line-height: 1.2;
}

[data-theme="light"] .search-pill-kbd {
  background: rgba(0, 0, 0, 0.06);
  border-color: rgba(0, 0, 0, 0.14);
  color: #555E6D;
}

/* --- 1.1. Topbar Altına Açılan Genişletilmiş Arama Paneli (Slide-Down Flyout / Spotlight UX) --- */
.topbar-search-flyout {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%) translateY(-10px) scale(0.98);
  width: calc(100% - 24px);
  max-width: 740px;
  background: rgba(13, 17, 28, 0.95);
  backdrop-filter: blur(28px) saturate(180%);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  box-shadow: 0 24px 64px -10px rgba(0, 0, 0, 0.8),
              0 0 0 1px rgba(255, 255, 255, 0.06),
              0 10px 28px -4px rgba(143, 72, 156, 0.22);
  z-index: 1070;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.22s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.22s cubic-bezier(0.16, 1, 0.3, 1),
              visibility 0.22s ease;
  pointer-events: none;
  box-sizing: border-box;
}

.topbar-search-flyout.active {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0) scale(1);
  pointer-events: auto;
}

[data-theme="light"] .topbar-search-flyout {
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(0, 0, 0, 0.09);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.12),
              0 0 0 1px rgba(0, 0, 0, 0.04),
              0 10px 24px -4px rgba(143, 72, 156, 0.12);
}

.topbar-search-container {
  width: 100% !important;
  max-width: 100% !important;
  display: block !important;
  padding: 20px 32px !important;
  box-sizing: border-box !important;
}

.topbar-search-inner {
  position: relative;
  width: 100%;
}

.topbar-search-input-box {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 14px;
  padding: 0 16px;
  height: 50px;
  gap: 12px;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

.topbar-search-input-box:focus-within {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(143, 72, 156, 0.6);
  box-shadow: 0 0 0 3px rgba(143, 72, 156, 0.18), 0 4px 16px rgba(0, 0, 0, 0.3);
}

[data-theme="light"] .topbar-search-input-box {
  background: #F8FAFC;
  border-color: rgba(0, 0, 0, 0.09);
}

[data-theme="light"] .topbar-search-input-box:focus-within {
  background: #FFFFFF;
  border-color: #8F489C;
  box-shadow: 0 0 0 3px rgba(143, 72, 156, 0.14), 0 4px 16px rgba(0, 0, 0, 0.06);
}

.topbar-search-icon {
  color: #A855F7;
  font-size: 17px;
  flex-shrink: 0;
  filter: drop-shadow(0 0 6px rgba(168, 85, 247, 0.35));
}

[data-theme="light"] .topbar-search-icon {
  color: #8F489C;
  filter: none;
}

.topbar-search-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none !important;
  color: #FFFFFF;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.2px;
  font-family: inherit;
  padding: 0;
}

[data-theme="light"] .topbar-search-input {
  color: #0F172A;
}

.topbar-search-input::placeholder {
  color: rgba(255, 255, 255, 0.4);
  font-weight: 400;
  font-size: 14px;
}

[data-theme="light"] .topbar-search-input::placeholder {
  color: #94A3B8;
}

.topbar-search-clear-btn {
  background: rgba(255, 255, 255, 0.12);
  border: none;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.8);
  font-size: 11px;
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
  transition: all 0.15s ease;
}

.topbar-search-clear-btn:hover {
  background: rgba(239, 68, 68, 0.25);
  color: #FCA5A5;
}

[data-theme="light"] .topbar-search-clear-btn {
  background: rgba(0, 0, 0, 0.08);
  color: #475569;
}

[data-theme="light"] .topbar-search-clear-btn:hover {
  background: rgba(239, 68, 68, 0.18);
  color: #DC2626;
}

.topbar-search-close-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  padding: 4px 10px;
  color: #94A3B8;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.18s ease;
}

.topbar-search-close-btn:hover {
  background: rgba(143, 72, 156, 0.2);
  border-color: rgba(143, 72, 156, 0.4);
  color: #F1F5F9;
}

[data-theme="light"] .topbar-search-close-btn {
  background: rgba(0, 0, 0, 0.05);
  border-color: rgba(0, 0, 0, 0.1);
  color: #64748B;
}

[data-theme="light"] .topbar-search-close-btn:hover {
  background: rgba(143, 72, 156, 0.12);
  border-color: rgba(143, 72, 156, 0.3);
  color: #8F489C;
}

.flyout-close-kbd {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 4px;
  font-size: 10px;
  padding: 1px 5px;
  font-family: inherit;
  color: #E2E8F0;
}

[data-theme="light"] .flyout-close-kbd {
  background: #FFFFFF;
  border-color: rgba(0, 0, 0, 0.12);
  color: #475569;
}

/* Backdrop Overlay */
.topbar-search-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(8, 12, 22, 0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 1050;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.24s ease, visibility 0.24s ease;
  pointer-events: none;
}

.topbar-search-backdrop.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* Dropdown inside flyout */
.flyout-search-dropdown {
  position: relative !important;
  top: auto !important;
  right: auto !important;
  left: auto !important;
  width: 100% !important;
  max-width: 100% !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  margin-top: 8px;
  border-radius: 0 !important;
  padding: 0;
}

/* --- 2. Global Arama Sonuç Paneli (Dropdown) --- */
.global-search-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 440px;
  max-width: calc(100vw - 28px);
  background: rgba(14, 18, 29, 0.98);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.75);
  z-index: 10010;
  overflow: hidden;
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity 0.2s ease, transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-sizing: border-box;
}

.global-search-dropdown.active {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

[data-theme="light"] .global-search-dropdown {
  background: rgba(255, 255, 255, 0.98);
  border-color: rgba(0, 0, 0, 0.1);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.14);
}

.search-dropdown-header {
  padding: 8px 8px 10px 8px;
  background: transparent;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11.5px;
  color: #94A3B8;
}

[data-theme="light"] .search-dropdown-header {
  border-bottom-color: rgba(0, 0, 0, 0.07);
  color: #64748B;
}

.search-count-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  color: #E2E8F0;
}

[data-theme="light"] .search-count-badge {
  color: #0F172A;
}

.search-header-icon {
  color: #A855F7;
  font-size: 12px;
}

[data-theme="light"] .search-header-icon {
  color: #8F489C;
}

.search-count-num {
  background: rgba(143, 72, 156, 0.22);
  color: #E9D5FF;
  border: 1px solid rgba(143, 72, 156, 0.35);
  border-radius: 10px;
  padding: 0.5px 6.5px;
  font-size: 11px;
  font-weight: 700;
}

[data-theme="light"] .search-count-num {
  background: rgba(143, 72, 156, 0.12);
  color: #8F489C;
  border-color: rgba(143, 72, 156, 0.25);
}

.search-scroll-hint {
  color: #64748B;
  font-size: 11px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

[data-theme="light"] .search-scroll-hint {
  color: #64748B;
}

/* --- 3. Tam 3 Görünür Sonuç ve Kaydırmalı Liste (CRITICAL REQUIREMENT) --- */
.global-search-results-list {
  max-height: 212px; /* Tam 3 görünür kart + zarif kaydırma alanı */
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  padding: 6px 2px;
}

/* Şık ve Kibar İnce Kaydırma Çubuğu (Scrollbar) */
.global-search-results-list::-webkit-scrollbar {
  width: 5px;
}

.global-search-results-list::-webkit-scrollbar-track {
  background: transparent;
}

.global-search-results-list::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.18);
  border-radius: 10px;
}

.global-search-results-list::-webkit-scrollbar-thumb:hover {
  background: #A855F7;
}

[data-theme="light"] .global-search-results-list::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.15);
}

[data-theme="light"] .global-search-results-list::-webkit-scrollbar-thumb:hover {
  background: #8F489C;
}

/* Sonuç Kartı Elemanı */
.search-result-item {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 11px 14px;
  border-radius: 12px;
  margin-bottom: 5px;
  cursor: pointer;
  transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none !important;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.05);
  min-height: 64px;
  box-sizing: border-box;
  position: relative;
}

.search-result-item:last-child {
  margin-bottom: 0;
}

.search-result-item:hover,
.search-result-item.active {
  background: linear-gradient(90deg, rgba(143, 72, 156, 0.16) 0%, rgba(255, 255, 255, 0.02) 100%);
  border-color: rgba(143, 72, 156, 0.38);
  transform: translateX(3px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.22), inset 3px 0 0 #A855F7;
}

[dir="rtl"] .search-result-item:hover,
[dir="rtl"] .search-result-item.active {
  transform: translateX(-3px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.22), inset -3px 0 0 #A855F7;
}

[data-theme="light"] .search-result-item {
  background: #F8FAFC;
  border-color: rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .search-result-item:hover,
[data-theme="light"] .search-result-item.active {
  background: linear-gradient(90deg, rgba(143, 72, 156, 0.08) 0%, #FFFFFF 100%);
  border-color: rgba(143, 72, 156, 0.3);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04), inset 3px 0 0 #8F489C;
}

[dir="rtl"][data-theme="light"] .search-result-item:hover,
[dir="rtl"][data-theme="light"] .search-result-item.active {
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04), inset -3px 0 0 #8F489C;
}

.search-item-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s ease;
}

.search-result-item:hover .search-item-icon,
.search-result-item.active .search-item-icon {
  transform: scale(1.05);
}

[data-theme="light"] .search-item-icon {
  border-color: rgba(0, 0, 0, 0.06);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
}

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

.search-item-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 2px;
}

.search-item-title {
  color: #F8FAFC;
  font-size: 13.5px;
  font-weight: 600;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.35;
  letter-spacing: -0.15px;
}

[data-theme="light"] .search-item-title {
  color: #0F172A;
}

.search-item-badge {
  font-size: 10px;
  font-weight: 600;
  padding: 2.5px 8.5px;
  border-radius: 16px;
  flex-shrink: 0;
  white-space: nowrap;
  letter-spacing: 0.25px;
}

.badge-muf {
  background: rgba(245, 166, 35, 0.12);
  color: #FBBF24;
  border: 1px solid rgba(245, 166, 35, 0.28);
}

.badge-ard {
  background: rgba(0, 229, 255, 0.1);
  color: #38BDF8;
  border: 1px solid rgba(0, 229, 255, 0.25);
}

.badge-sec {
  background: rgba(143, 72, 156, 0.15);
  color: #D8B4FE;
  border: 1px solid rgba(143, 72, 156, 0.32);
}

[data-theme="light"] .badge-muf {
  background: rgba(245, 166, 35, 0.12);
  color: #B45309;
  border-color: rgba(245, 166, 35, 0.25);
}

[data-theme="light"] .badge-ard {
  background: rgba(14, 165, 233, 0.1);
  color: #0369A1;
  border-color: rgba(14, 165, 233, 0.25);
}

[data-theme="light"] .badge-sec {
  background: rgba(143, 72, 156, 0.1);
  color: #7E22CE;
  border-color: rgba(143, 72, 156, 0.22);
}

.search-item-snippet {
  color: #94A3B8;
  font-size: 11.5px;
  margin: 0;
  line-height: 1.45;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

[data-theme="light"] .search-item-snippet {
  color: #475569;
}

.search-item-arrow {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.07);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #64748B;
  font-size: 10.5px;
  flex-shrink: 0;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.search-result-item:hover .search-item-arrow,
.search-result-item.active .search-item-arrow {
  background: #8F489C;
  border-color: #A855F7;
  color: #FFFFFF;
  transform: translateX(2px);
  box-shadow: 0 0 10px rgba(168, 85, 247, 0.35);
}

[dir="rtl"] .search-item-arrow i {
  transform: rotate(180deg);
}

[dir="rtl"] .search-result-item:hover .search-item-arrow,
[dir="rtl"] .search-result-item.active .search-item-arrow {
  transform: translateX(-2px);
}

[data-theme="light"] .search-item-arrow {
  background: rgba(0, 0, 0, 0.03);
  border-color: rgba(0, 0, 0, 0.06);
  color: #94A3B8;
}

[data-theme="light"] .search-result-item:hover .search-item-arrow,
[data-theme="light"] .search-result-item.active .search-item-arrow {
  background: #8F489C;
  border-color: #8F489C;
  color: #FFFFFF;
}

/* Vurgulu Arama Terimleri */
.search-highlight {
  background: rgba(245, 166, 35, 0.2);
  color: #FDE047 !important;
  font-weight: 700;
  border-radius: 3px;
  padding: 0.5px 4px;
  border-bottom: 1.5px solid rgba(245, 166, 35, 0.8);
}

[data-theme="light"] .search-highlight {
  background: rgba(245, 166, 35, 0.22);
  color: #8D5300 !important;
  border-bottom-color: #D97706;
}

/* Dropdown Alt Bilgi Bandı */
.search-dropdown-footer {
  padding: 8px 8px 4px 8px;
  background: transparent;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  font-size: 10.5px;
  color: #64748B;
}

[data-theme="light"] .search-dropdown-footer {
  border-top-color: rgba(0, 0, 0, 0.06);
  color: #64748B;
}

.search-kbd-hint {
  display: flex;
  align-items: center;
  gap: 3px;
}

.search-kbd-hint kbd {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 4px;
  color: #CBD5E1;
  font-size: 9.5px;
  padding: 1px 4.5px;
  font-family: inherit;
}

[data-theme="light"] .search-kbd-hint kbd {
  background: #FFFFFF;
  border-color: rgba(0, 0, 0, 0.12);
  color: #334155;
}

/* Boş Arama Durumu */
.search-empty-state {
  padding: 28px 20px;
  text-align: center;
}

.search-empty-icon-wrap {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px auto;
}

[data-theme="light"] .search-empty-icon-wrap {
  background: #F1F5F9;
  border-color: rgba(0, 0, 0, 0.06);
}

.search-empty-icon {
  font-size: 22px;
  color: #A855F7;
  opacity: 0.8;
}

[data-theme="light"] .search-empty-icon {
  color: #8F489C;
}

.search-empty-text {
  color: #F8FAFC;
  font-size: 13.5px;
  font-weight: 500;
  margin: 0 0 6px 0;
}

[data-theme="light"] .search-empty-text {
  color: #0F172A;
}

.search-empty-sub {
  color: #64748B;
  font-size: 11.5px;
  display: block;
  max-width: 380px;
  margin: 0 auto;
  line-height: 1.5;
}

/* --- 4. Mobil & Tablet Title Bar Entegrasyonu --- */
.mobile-search-toggle-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: var(--primary-gold);
  border-radius: 50%;
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  margin-right: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.mobile-search-toggle-btn:hover {
  background: var(--primary-gold);
  color: #000000;
}

/* Mobil Üstten Kayan Hızlı Arama Bandı */
.mobile-quick-search-bar {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  width: 100%;
  background: rgba(10, 13, 22, 0.98);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 2px solid var(--primary-gold);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.8);
  z-index: 10002;
  padding: 10px 16px;
  box-sizing: border-box;
}

.mobile-quick-search-bar.active {
  display: block;
  animation: slideDownSearch 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes slideDownSearch {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

[data-theme="light"] .mobile-quick-search-bar {
  background: rgba(255, 255, 255, 0.98);
  border-bottom-color: var(--primary-gold);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
}

.mobile-quick-search-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none !important;
  color: #FFFFFF;
  font-size: 14px;
  font-weight: 600;
  padding: 6px 0;
  font-family: inherit;
}

[data-theme="light"] .mobile-quick-search-input {
  color: #141724;
}

.mobile-quick-search-clear {
  background: rgba(255, 255, 255, 0.15);
  border: none;
  color: #FFFFFF;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  cursor: pointer;
}

.mobile-quick-search-close {
  background: transparent;
  border: none;
  color: var(--primary-gold);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  padding: 4px 8px;
}

.quick-search-dropdown {
  position: static !important;
  width: 100% !important;
  max-width: 100% !important;
  margin-top: 10px !important;
  border-radius: 12px !important;
}

/* Mobil Menü İçindeki Arama Kutusu */
.mobile-search-section {
  padding: 12px 14px 4px 14px;
  margin-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.mobile-search-box {
  width: 100% !important;
}

.mobile-search-dropdown {
  position: static !important;
  width: 100% !important;
  max-width: 100% !important;
  margin-top: 8px !important;
}

/* --- 5. Arama ile Hedefe Ulaşınca Vurgu Efekti (Glow Pulse) --- */
@keyframes searchPulseGlow {
  0% {
    box-shadow: 0 0 0 0 rgba(245, 166, 35, 0.8);
    transform: scale(1);
  }
  30% {
    box-shadow: 0 0 35px 8px rgba(245, 166, 35, 0.6);
    transform: scale(1.01);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(245, 166, 35, 0);
    transform: scale(1);
  }
}

.search-highlight-pulse {
  animation: searchPulseGlow 2.5s ease-out;
  border-radius: 14px;
}

/* --- 6. Cihaz Uyumlulukları (TV, Desktop, Tablet, Mobil) --- */
@media (min-width: 1200px) {
  .navbar-brand {
    gap: 10px !important;
    margin-right: 14px !important;
  }
  .brand-campus-logo-img {
    width: 40px !important;
    height: 40px !important;
  }
  .brand-name {
    font-size: 1.04rem !important;
    letter-spacing: 0.6px !important;
  }
  .brand-campus-sub {
    font-size: 0.64rem !important;
    letter-spacing: 0.4px !important;
  }
  .navbar-nav .nav-link {
    padding: 6px 9px !important;
    font-size: 12.5px !important;
    letter-spacing: 0.3px !important;
  }
  .nav-search-pill-btn {
    height: 35px !important;
    padding: 0 11px !important;
    gap: 6px !important;
  }
  .search-pill-text {
    font-size: 12px !important;
  }
  .search-pill-kbd {
    font-size: 9px !important;
    padding: 1px 4px !important;
  }
  .nav-icon-action {
    width: 35px !important;
    height: 35px !important;
    font-size: 13px !important;
  }
  .nav-actions-group {
    gap: 7px !important;
    margin-left: 8px !important;
  }
}

@media (max-width: 1199.98px) {
  .nav-search-pill-btn {
    display: none !important;
  }
}

@media (max-width: 767px) {
  .topbar-search-container {
    padding: 14px 16px !important;
  }
  .topbar-search-input-box {
    height: 44px !important;
    padding: 0 12px !important;
    gap: 8px !important;
  }
  .topbar-search-input {
    font-size: 13.5px !important;
  }
  .flyout-close-kbd {
    display: none !important;
  }
  .topbar-search-close-btn {
    padding: 4px 8px !important;
    font-size: 11px !important;
  }
  .global-search-results-list {
    max-height: 220px;
  }
  .search-result-item {
    padding: 8px 10px;
    gap: 10px;
  }
  .search-item-title {
    font-size: 12.5px;
  }
  .search-item-snippet {
    font-size: 11px;
  }
}

/* ==========================================================================
   7. PROJE GENELİ KAPSAMLI RTL & ÇOK DİLLİ (ARAPÇA) DÜZENLEME SİSTEMİ
   - Title Bar, Global Search, Fritzing Kartları, Breadcrumbs, Modallar, Yön Okları
   ========================================================================== */

/* --- 7.1. RTL Spacing & Navbar Utilities --- */
[dir="rtl"] .ml-xl-2 {
  margin-left: 0 !important;
  margin-right: 0.5rem !important;
}

[dir="rtl"] .mr-xl-2 {
  margin-right: 0 !important;
  margin-left: 0.5rem !important;
}

[dir="rtl"] .nav-actions-group {
  margin-left: 0 !important;
  margin-right: 10px !important;
  direction: rtl;
}

[dir="rtl"] .theme-dropdown-menu,
[dir="rtl"] .lang-dropdown-menu {
  right: auto !important;
  left: 0 !important;
  transform-origin: top left !important;
}

/* --- 7.2. RTL Global Arama Sistemi --- */
[dir="rtl"] .nav-search-pill-btn {
  direction: rtl;
}

[dir="rtl"] .topbar-search-input-box {
  flex-direction: row-reverse;
  text-align: right;
}

[dir="rtl"] .topbar-search-input {
  text-align: right !important;
  direction: rtl !important;
}

[dir="rtl"] .topbar-search-input::placeholder {
  text-align: right !important;
}

[dir="rtl"] .topbar-search-close-btn {
  flex-direction: row-reverse;
}

[dir="rtl"] .flyout-search-dropdown {
  text-align: right;
  direction: rtl;
}

[dir="rtl"] .search-dropdown-header {
  flex-direction: row-reverse;
}

[dir="rtl"] .search-result-item {
  flex-direction: row-reverse;
  border-left: none !important;
  border-right: 3px solid transparent !important;
  text-align: right;
}

[dir="rtl"] .search-result-item:hover,
[dir="rtl"] .search-result-item.active {
  border-right-color: var(--primary-gold) !important;
  border-left-color: transparent !important;
  transform: translateX(-4px) !important;
}

[dir="rtl"] .search-item-header {
  flex-direction: row-reverse;
}

[dir="rtl"] .search-item-content {
  text-align: right !important;
}

[dir="rtl"] .search-item-arrow i {
  transform: rotate(180deg) !important;
}

[dir="rtl"] .search-dropdown-footer {
  flex-direction: row-reverse;
}

[dir="rtl"] .mobile-search-toggle-btn {
  margin-right: 0 !important;
  margin-left: 8px !important;
}

[dir="rtl"] .mobile-quick-search-bar {
  direction: rtl;
}

[dir="rtl"] .mobile-quick-search-input {
  text-align: right !important;
}

[dir="rtl"] .mobile-quick-search-bar .d-flex {
  flex-direction: row-reverse;
}

/* --- 7.3. RTL Fritzing & Arduino Devre Simülasyonu --- */
[dir="rtl"] .fritzing-simulation-card,
[dir="rtl"] .arduino-project-card,
[dir="rtl"] .breadboard-guide-card {
  direction: rtl;
  text-align: right;
}

[dir="rtl"] .fritzing-header-bar,
[dir="rtl"] .arduino-project-header {
  flex-direction: row-reverse;
}

[dir="rtl"] .fritzing-header-left,
[dir="rtl"] .arduino-header-left {
  text-align: right;
}

[dir="rtl"] .fritzing-badge i,
[dir="rtl"] .arduino-badge i {
  margin-right: 0 !important;
  margin-left: 6px !important;
}

[dir="rtl"] .fritzing-header-actions,
[dir="rtl"] .arduino-header-actions {
  flex-direction: row-reverse;
}

[dir="rtl"] .fritzing-meta-grid {
  direction: rtl;
}

[dir="rtl"] .fritzing-meta-item {
  flex-direction: row;
  text-align: right;
}

[dir="rtl"] .fritzing-meta-text {
  text-align: right;
}

[dir="rtl"] .arduino-component-card {
  flex-direction: row;
  text-align: right;
}

[dir="rtl"] .arduino-component-info {
  text-align: right;
}

[dir="rtl"] .arduino-pinout-table {
  direction: rtl;
  text-align: right;
}

[dir="rtl"] .arduino-pinout-table th,
[dir="rtl"] .arduino-pinout-table td {
  text-align: right !important;
}

[dir="rtl"] .code-editor-header {
  flex-direction: row-reverse;
}

[dir="rtl"] .code-editor-copy-btn {
  margin-left: 0 !important;
  margin-right: auto !important;
}

/* Arduino C++ Kod Editörü Her Zaman LTR Kalmalıdır */
[dir="rtl"] .code-editor-window pre code {
  direction: ltr !important;
  text-align: left !important;
}

/* --- 7.4. RTL Breadcrumbs & Kademeler Arası Gezinme --- */
[dir="rtl"] .mufredat-breadcrumb {
  direction: rtl;
  text-align: right;
}

[dir="rtl"] .mufredat-breadcrumb a i {
  margin-right: 0 !important;
  margin-left: 5px !important;
}

[dir="rtl"] .mufredat-breadcrumb .separator {
  transform: scaleX(-1);
}

[dir="rtl"] .grade-navigation-footer {
  direction: rtl;
}

[dir="rtl"] #btn-prev-grade i.fa-chevron-left {
  transform: rotate(180deg) !important;
  margin-right: 0 !important;
  margin-left: 8px !important;
}

[dir="rtl"] #btn-next-grade i.fa-chevron-right {
  transform: rotate(180deg) !important;
  margin-left: 0 !important;
  margin-right: 8px !important;
}

[dir="rtl"] .stage-tab-buttons {
  direction: rtl;
}

[dir="rtl"] .grade-pills-list {
  direction: rtl;
}

[dir="rtl"] .grade-pills-label-row {
  direction: rtl;
  text-align: right;
}

/* --- 7.5. RTL Modallar ve Video Vitrini --- */
[dir="rtl"] .video-modal-card {
  direction: rtl;
  text-align: right;
}

[dir="rtl"] .video-modal-card .modal-close-btn {
  right: auto !important;
  left: 16px !important;
}

[dir="rtl"] .circuit-lightbox-card .modal-close-btn {
  right: auto !important;
  left: 18px !important;
}

[dir="rtl"] .circuit-lightbox-header {
  flex-direction: row-reverse;
  text-align: right;
}


