/* ==========================================================================
   IRCA GROUP - DESIGN SYSTEM & CORE STYLES
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Vazirmatn:wght@200;300;400;500;600;700;800;900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Lalezar&display=swap');

:root {
  /* Color Tokens - Dark Luxury Purple & Gold (Default) */
  --bg-body: #090514;
  --bg-surface: #120a22;
  --bg-card: rgba(22, 13, 40, 0.76);
  --bg-card-hover: rgba(35, 21, 62, 0.88);
  --bg-glass: rgba(18, 10, 34, 0.85);
  --border-color: rgba(168, 85, 247, 0.12);
  --border-color-glow: rgba(192, 132, 252, 0.4);

  --text-primary: #fbf9fe;
  --text-secondary: #c4b8db;
  --text-muted: #8b7ca6;

  /* Brand Colors from IRCA Logo */
  --primary: #7c3aed;
  --primary-hover: #6d28d9;
  --primary-dark: #4c1d95;
  --primary-light: #a855f7;
  --primary-gradient: linear-gradient(135deg, #7c3aed 0%, #9333ea 50%, #c026d3 100%);
  --secondary-gradient: linear-gradient(135deg, #f59e0b 0%, #facc15 100%);
  --gold-gradient: linear-gradient(135deg, #ffd000 0%, #f59e0b 100%);

  --accent-gold: #facc15;
  --accent-purple: #9333ea;
  --accent-cyan: #c084fc;
  --accent-emerald: #10b981;
  --accent-rose: #f43f5e;

  --glow-primary: 0 0 35px rgba(124, 58, 237, 0.45);
  --glow-accent: 0 0 30px rgba(250, 204, 21, 0.35);
  --card-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.6);
  --card-shadow-hover: 0 20px 40px -15px rgba(124, 58, 237, 0.35);

  /* Typography */
  --font-family: 'Vazirmatn', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-heading: 'Lalezar', cursive, system-ui, -apple-system, sans-serif;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 9999px;

  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: all 0.15s ease-out;
}

[data-theme="light"] {
  --bg-body: #faf7ff;
  --bg-surface: #ffffff;
  --bg-card: rgba(255, 255, 255, 0.94);
  --bg-card-hover: #ffffff;
  --bg-glass: rgba(255, 255, 255, 0.88);
  --border-color: rgba(124, 58, 237, 0.1);
  --border-color-glow: rgba(124, 58, 237, 0.35);

  --text-primary: #170b2e;
  --text-secondary: #51436c;
  --text-muted: #8a7ca5;

  --primary: #7c3aed;
  --primary-hover: #6d28d9;
  --primary-gradient: linear-gradient(135deg, #7c3aed 0%, #9333ea 50%, #c026d3 100%);

  --glow-primary: 0 10px 30px rgba(124, 58, 237, 0.2);
  --glow-accent: 0 10px 25px rgba(245, 158, 11, 0.2);
  --card-shadow: 0 10px 30px -10px rgba(76, 29, 149, 0.08);
  --card-shadow-hover: 0 20px 40px -15px rgba(124, 58, 237, 0.25);
}

/* ==========================================================================
   RESET & BASE STYLES
   ========================================================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  direction: rtl;
}

body {
  font-family: var(--font-family);
  background-color: var(--bg-body);
  color: var(--text-primary);
  line-height: 1.7;
  overflow-x: hidden;
  transition: background-color 0.3s ease, color 0.3s ease;
  position: relative;
  min-height: 100vh;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-body);
}

::-webkit-scrollbar-thumb {
  background: var(--primary);
  border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--accent-gold);
}

/* Ambient Background Lights */
.ambient-glow {
  position: fixed;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.48;
  transition: opacity 0.5s ease;
}

.ambient-glow-1 {
  width: 580px;
  height: 580px;
  top: -120px;
  right: -100px;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.45) 0%, transparent 70%);
}

.ambient-glow-2 {
  width: 520px;
  height: 520px;
  top: 40%;
  left: -150px;
  background: radial-gradient(circle, rgba(250, 204, 21, 0.18) 0%, transparent 70%);
}

.ambient-glow-3 {
  width: 600px;
  height: 600px;
  bottom: 10%;
  right: -150px;
  background: radial-gradient(circle, rgba(192, 38, 211, 0.25) 0%, transparent 70%);
}

.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 1.5rem;
  position: relative;
  z-index: 1;
}

/* ==========================================================================
   TYPOGRAPHY & UTILITY
   ========================================================================== */
h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--text-primary);
  font-weight: 800;
  line-height: 1.3;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

ul {
  list-style: none;
}

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

.gradient-text {
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.gradient-text-gold {
  background: linear-gradient(135deg, #fbbf24 0%, #d97706 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 3.5rem auto;
}

.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 1rem;
  background: rgba(124, 58, 237, 0.15);
  border: 1px solid rgba(192, 132, 252, 0.35);
  color: var(--accent-cyan);
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  margin-bottom: 1rem;
  backdrop-filter: blur(8px);
}

.section-title {
  font-family: var(--font-heading);
  font-size: 2.35rem;
  font-weight: 400;
  line-height: 1.4;
  margin-bottom: 1rem;
  letter-spacing: 0;
}

.section-desc {
  font-size: 1.05rem;
  color: var(--text-secondary);
}

/* ==========================================================================
   BUTTONS & CONTROLS
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  padding: 0.85rem 1.75rem;
  font-size: 0.95rem;
  font-weight: 700;
  font-family: inherit;
  border-radius: var(--radius-full);
  cursor: pointer;
  border: 1px solid transparent;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  text-align: center;
}

.btn-primary {
  background: var(--primary-gradient);
  color: #ffffff;
  box-shadow: 0 4px 20px rgba(124, 58, 237, 0.45);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(124, 58, 237, 0.65);
}

.btn-secondary {
  background: var(--bg-card);
  color: var(--text-primary);
  border-color: var(--border-color);
  backdrop-filter: blur(12px);
}

.btn-secondary:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-color-glow);
  transform: translateY(-2px);
}

.btn-accent {
  background: var(--secondary-gradient);
  color: #090514;
  font-weight: 800;
  box-shadow: 0 4px 20px rgba(250, 204, 21, 0.4);
}

.btn-accent:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(250, 204, 21, 0.55);
}

.btn-icon-only {
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: 50%;
}

.btn-pulse {
  animation: pulseGlow 2.4s infinite;
}

@keyframes pulseGlow {

  0%,
  100% {
    box-shadow: 0 4px 20px rgba(124, 58, 237, 0.4);
  }

  50% {
    box-shadow: 0 4px 35px rgba(250, 204, 21, 0.6), 0 0 35px rgba(124, 58, 237, 0.45);
  }
}

/* ==========================================================================
   HEADER & NAVBAR
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 1.1rem 0;
  transition: var(--transition);
}

.site-header.scrolled {
  padding: 0.75rem 0;
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-color);
  box-shadow: var(--card-shadow);
}

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

.logo-wrapper {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--primary-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  box-shadow: 0 4px 18px rgba(124, 58, 237, 0.45);
  flex-shrink: 0;
  overflow: hidden;
}

.logo-icon.has-custom-img {
  background: transparent;
  padding: 0;
  border: 1.5px solid rgba(192, 132, 252, 0.35);
  box-shadow: 0 4px 18px rgba(124, 58, 237, 0.45);
  border-radius: 12px;
}

.logo-icon.has-custom-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
  display: block;
}

.logo-custom-img {
  height: 44px;
  max-width: 220px;
  object-fit: contain;
  display: block;
  border-radius: 10px;
}

.logo-text {
  display: flex;
  flex-direction: column;
}

.logo-title {
  font-size: 1.4rem;
  font-weight: 900;
  color: var(--text-primary);
  line-height: 1.1;
}

.logo-sub {
  font-size: 0.75rem;
  color: var(--accent-gold);
  letter-spacing: 0.05em;
  font-weight: 700;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.nav-link {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-secondary);
  position: relative;
  padding: 0.5rem 0;
}

.nav-link:hover,
.nav-link.active {
  color: var(--text-primary);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--accent-gold));
  transition: width 0.25s ease;
  border-radius: 2px;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.theme-toggle-btn {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
}

.theme-toggle-btn:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-color-glow);
  transform: rotate(15deg);
}

.btn-user-portal {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.55rem 1.15rem;
  background: rgba(124, 58, 237, 0.12);
  border: 1px solid rgba(168, 85, 247, 0.35);
  color: var(--text-primary);
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  backdrop-filter: blur(10px);
  transition: var(--transition);
  cursor: pointer;
  white-space: nowrap;
}

.btn-user-portal svg {
  color: var(--accent-cyan);
  transition: transform 0.25s ease, color 0.25s ease;
  flex-shrink: 0;
}

.btn-user-portal:hover {
  background: var(--primary-gradient);
  border-color: transparent;
  color: #ffffff;
  box-shadow: 0 4px 20px rgba(124, 58, 237, 0.45);
  transform: translateY(-2px);
}

.btn-user-portal:hover svg {
  color: #ffffff;
  transform: scale(1.1);
}

[data-theme="light"] .btn-user-portal {
  background: rgba(109, 40, 217, 0.08);
  border-color: rgba(109, 40, 217, 0.25);
  color: var(--text-primary);
}

[data-theme="light"] .btn-user-portal:hover {
  background: var(--primary-gradient);
  color: #ffffff;
}

.mobile-toggle-btn {
  display: none;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 1.25rem;
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero-section {
  padding: 9.5rem 0 5rem 0;
  position: relative;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.95fr;
  gap: 3.5rem;
  align-items: center;
}

.hero-content {
  position: relative;
}

.promo-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: rgba(124, 58, 237, 0.15);
  border: 1px solid rgba(250, 204, 21, 0.35);
  padding: 0.4rem 1rem;
  border-radius: var(--radius-full);
  margin-bottom: 1.5rem;
  font-size: 0.85rem;
  color: var(--text-primary);
  backdrop-filter: blur(10px);
}

.promo-pill-badge {
  background: var(--accent-gold);
  color: #090514;
  font-weight: 800;
  padding: 0.15rem 0.6rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: 3.35rem;
  line-height: 1.35;
  margin-bottom: 1.5rem;
  font-weight: 400;
  letter-spacing: 0;
}

.hero-description {
  font-size: 1.15rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 2.25rem;
}

.hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.2rem;
  margin-bottom: 3rem;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-color);
}

.stat-item {
  display: flex;
  flex-direction: column;
}

.stat-number {
  font-size: 1.85rem;
  font-weight: 900;
  color: var(--text-primary);
  line-height: 1.1;
  display: flex;
  align-items: center;
  gap: 0.2rem;
}

.stat-number .stat-accent {
  color: var(--accent-gold);
}

.stat-label {
  font-size: 0.825rem;
  color: var(--text-secondary);
  margin-top: 0.35rem;
  font-weight: 500;
}

/* Hero Media Card */
.hero-visual {
  position: relative;
}

.hero-image-wrapper {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--border-color);
  box-shadow: var(--card-shadow);
}

.hero-image-wrapper img {
  width: 100%;
  height: 480px;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.hero-visual:hover .hero-image-wrapper img {
  transform: scale(1.03);
}

.hero-badge-floating {
  position: absolute;
  background: var(--bg-glass);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-color-glow);
  padding: 0.85rem 1.25rem;
  border-radius: var(--radius-lg);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  gap: 0.85rem;
  animation: floatCard 4s ease-in-out infinite;
}

.hero-badge-top {
  top: -20px;
  left: -20px;
}

.hero-badge-bottom {
  bottom: -25px;
  right: -20px;
  animation-delay: 2s;
}

@keyframes floatCard {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-8px);
  }
}

.badge-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.badge-icon-gold {
  background: rgba(245, 158, 11, 0.18);
  color: var(--accent-gold);
}

.badge-icon-cyan {
  background: rgba(124, 58, 237, 0.22);
  color: #c084fc;
}

.badge-content h4 {
  font-size: 0.95rem;
  font-weight: 800;
  line-height: 1.2;
}

.badge-content p {
  font-size: 0.775rem;
  color: var(--text-secondary);
}

/* ==========================================================================
   PLACEMENT QUIZ WIDGET (INTERACTIVE FEATURE)
   ========================================================================== */
.quiz-section {
  padding: 5rem 0;
  position: relative;
}

.quiz-container-card {
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 3rem;
  box-shadow: var(--card-shadow);
  position: relative;
  overflow: hidden;
}

.quiz-container-card::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 4px;
  background: var(--primary-gradient);
}

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

.quiz-step-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.quiz-step-badge {
  background: rgba(124, 58, 237, 0.18);
  color: var(--accent-cyan);
  font-weight: 800;
  font-size: 0.85rem;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
}

.quiz-progress-bar-bg {
  width: 180px;
  height: 8px;
  background: var(--border-color);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.quiz-progress-bar-fill {
  height: 100%;
  width: 25%;
  background: var(--primary-gradient);
  border-radius: var(--radius-full);
  transition: width 0.4s ease;
}

.quiz-question-box {
  margin-bottom: 2.25rem;
}

.quiz-question-text {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.quiz-question-sub {
  font-size: 0.95rem;
  color: var(--text-secondary);
}

.quiz-options-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-bottom: 2rem;
}

.quiz-option-btn {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.15rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  cursor: pointer;
  transition: var(--transition);
  color: var(--text-primary);
  text-align: right;
  font-family: inherit;
  font-size: 0.975rem;
  font-weight: 600;
  width: 100%;
}

.quiz-option-btn:hover {
  border-color: var(--primary-light);
  background: rgba(124, 58, 237, 0.1);
  transform: translateY(-2px);
}

.quiz-option-btn.selected {
  border-color: var(--accent-gold);
  background: rgba(124, 58, 237, 0.22);
  box-shadow: 0 0 20px rgba(124, 58, 237, 0.35);
}

.quiz-option-key {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
  flex-shrink: 0;
  transition: var(--transition);
}

.quiz-option-btn.selected .quiz-option-key {
  background: var(--accent-gold);
  color: #090514;
}

.quiz-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-color);
}

/* Quiz Result Card */
.quiz-result-box {
  display: none;
  text-align: center;
  padding: 1.5rem 0;
}

.quiz-result-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(16, 185, 129, 0.15);
  color: var(--accent-emerald);
  padding: 0.4rem 1.25rem;
  border-radius: var(--radius-full);
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.quiz-result-level {
  font-size: 3rem;
  font-weight: 900;
  color: var(--accent-gold);
  margin-bottom: 0.5rem;
}

.quiz-result-title {
  font-family: var(--font-heading);
  font-size: 1.65rem;
  font-weight: 400;
  margin-bottom: 1rem;
}

.quiz-result-desc {
  color: var(--text-secondary);
  max-width: 550px;
  margin: 0 auto 2rem auto;
}

.quiz-result-actions {
  display: flex;
  justify-content: center;
  gap: 1rem;
}

/* ==========================================================================
   COURSES SECTION
   ========================================================================== */
.courses-section {
  padding: 6rem 0;
  position: relative;
}

.course-tabs {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 3.5rem;
  flex-wrap: wrap;
}

.course-tab-btn {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  padding: 0.65rem 1.5rem;
  border-radius: var(--radius-full);
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.course-tab-btn:hover {
  color: var(--text-primary);
  border-color: var(--border-color-glow);
}

.course-tab-btn.active {
  background: var(--primary-gradient);
  color: #ffffff;
  border-color: transparent;
  box-shadow: 0 4px 18px rgba(124, 58, 237, 0.45);
}

.courses-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.course-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  overflow: hidden;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  position: relative;
  backdrop-filter: blur(14px);
}

.course-card:hover {
  transform: translateY(-8px);
  border-color: var(--border-color-glow);
  box-shadow: var(--card-shadow-hover);
}

.course-img-container {
  position: relative;
  width: 100%;
  height: 200px;
  overflow: hidden;
  border-bottom: 1px solid var(--border-color);
  background: rgba(15, 23, 42, 0.6);
}

.course-img-container .course-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.55s cubic-bezier(0.2, 0.8, 0.2, 1);
  display: block;
}

.course-card:hover .course-img-container .course-img {
  transform: scale(1.07);
}

.course-img-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8, 12, 23, 0.15) 0%, rgba(8, 12, 23, 0.35) 45%, rgba(8, 12, 23, 0.85) 100%);
  pointer-events: none;
}

.course-img-container .course-badge-row {
  position: absolute;
  bottom: 0.85rem;
  right: 1rem;
  left: 1rem;
  margin-bottom: 0;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.course-img-container .course-lang-tag {
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.course-img-container .course-type-pill {
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #e2e8f0;
  font-size: 0.75rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.course-header-banner {
  padding: 1.25rem 1.5rem;
  position: relative;
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.15) 0%, rgba(18, 10, 34, 0.5) 100%);
  border-bottom: 1px solid var(--border-color);
}

.course-badge-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}

.course-lang-tag {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  background: rgba(124, 58, 237, 0.22);
  color: var(--accent-cyan);
}

.course-lang-tag.tag-de {
  background: rgba(245, 158, 11, 0.2);
  color: var(--accent-gold);
}

.course-lang-tag.tag-fr {
  background: rgba(139, 92, 246, 0.2);
  color: var(--accent-purple);
}

.course-lang-tag.tag-tr {
  background: rgba(244, 63, 94, 0.2);
  color: var(--accent-rose);
}

.course-type-pill {
  font-size: 0.75rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.course-title {
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: 0.35rem;
}

.course-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.course-summary {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.course-features-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-bottom: 1.5rem;
}

.course-feature-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.course-feature-item svg {
  color: var(--accent-emerald);
  flex-shrink: 0;
}

.course-card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border-color);
  margin-top: auto;
}

.course-hours {
  display: flex;
  flex-direction: column;
}

.course-hours-label {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.course-hours-val {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-primary);
}

/* ==========================================================================
   METHODOLOGY / WHY IRCA GROUP
   ========================================================================== */
.methodology-section {
  padding: 6rem 0;
  position: relative;
}

.methodology-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 3.5rem;
  align-items: center;
}

.methodology-media {
  position: relative;
}

.methodology-img-frame {
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--border-color);
  box-shadow: var(--card-shadow);
}

.methodology-img-frame img {
  width: 100%;
  height: 520px;
  object-fit: cover;
}

.method-floating-stat {
  position: absolute;
  bottom: -20px;
  right: -20px;
  background: var(--bg-glass);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-color-glow);
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.method-floating-stat-num {
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--accent-emerald);
  line-height: 1;
}

.method-floating-stat-desc {
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-top: 0.35rem;
}

.features-accordion {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.feature-box {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  transition: var(--transition);
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
}

.feature-box:hover {
  border-color: var(--border-color-glow);
  background: var(--bg-card-hover);
  transform: translateX(-6px);
}

.feature-icon-box {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background: rgba(124, 58, 237, 0.15);
  color: var(--accent-cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  flex-shrink: 0;
}

.feature-box-content h3 {
  font-size: 1.15rem;
  margin-bottom: 0.4rem;
}

.feature-box-content p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ==========================================================================
   INTERACTIVE TIMELINE & CALCULATOR
   ========================================================================== */
.calc-section {
  padding: 6rem 0;
  position: relative;
}

.calc-wrapper {
  background: linear-gradient(135deg, rgba(18, 10, 34, 0.95) 0%, rgba(35, 21, 62, 0.85) 100%);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 3.5rem;
  box-shadow: var(--card-shadow);
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3.5rem;
  align-items: center;
}

[data-theme="light"] .calc-wrapper {
  background: linear-gradient(135deg, #ffffff 0%, #f6f0ff 100%);
}

.calc-controls {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.calc-group label {
  display: block;
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 0.65rem;
  color: var(--text-primary);
}

.calc-select {
  width: 100%;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  padding: 0.85rem 1.25rem;
  border-radius: var(--radius-md);
  font-family: inherit;
  font-size: 0.95rem;
  outline: none;
  transition: var(--transition);
}

.calc-select:focus {
  border-color: var(--primary-light);
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.25);
}

.calc-range-wrapper {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.calc-range-slider {
  -webkit-appearance: none;
  width: 100%;
  height: 8px;
  border-radius: var(--radius-full);
  background: var(--border-color);
  outline: none;
}

.calc-range-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--accent-gold);
  cursor: pointer;
  box-shadow: 0 0 12px rgba(250, 204, 21, 0.85);
  transition: transform 0.15s ease;
}

.calc-range-slider::-webkit-slider-thumb:hover {
  transform: scale(1.2);
}

.calc-range-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.calc-result-panel {
  background: var(--bg-card);
  border: 1px solid var(--border-color-glow);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  text-align: center;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
  position: relative;
}

.calc-result-badge {
  display: inline-block;
  font-size: 0.8rem;
  background: rgba(124, 58, 237, 0.18);
  color: var(--accent-cyan);
  padding: 0.25rem 0.85rem;
  border-radius: var(--radius-full);
  font-weight: 700;
  margin-bottom: 1.25rem;
}

.calc-result-time {
  font-size: 3.25rem;
  font-weight: 900;
  color: var(--accent-gold);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.calc-result-meta {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin: 1.75rem 0;
  padding: 1.25rem 0;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.calc-meta-item span {
  display: block;
}

.calc-meta-num {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-primary);
}

.calc-meta-label {
  font-size: 0.75rem;
  color: var(--text-secondary);
}

/* ==========================================================================
   FACULTY / TEACHERS SHOWCASE
   ========================================================================== */
.faculty-section {
  padding: 6rem 0;
  position: relative;
}

.faculty-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.faculty-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  overflow: hidden;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.faculty-card:hover {
  transform: translateY(-8px);
  border-color: var(--border-color-glow);
  box-shadow: var(--card-shadow-hover);
}

.faculty-img-container {
  position: relative;
  overflow: hidden;
  height: 310px;
}

.faculty-img-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.faculty-card:hover .faculty-img-container img {
  transform: scale(1.05);
}

.faculty-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: var(--bg-glass);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-color);
  color: var(--accent-cyan);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
}

.faculty-details {
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.faculty-name {
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: 0.25rem;
}

.faculty-title {
  font-size: 0.85rem;
  color: var(--accent-cyan);
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.faculty-bio {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1.25rem;
}

.faculty-credentials {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid var(--border-color);
}

.cred-pill {
  font-size: 0.725rem;
  background: rgba(124, 58, 237, 0.12);
  border: 1px solid rgba(192, 132, 252, 0.25);
  color: var(--text-secondary);
  padding: 0.2rem 0.65rem;
  border-radius: var(--radius-full);
}

/* ==========================================================================
   TESTIMONIALS & RESULTS
   ========================================================================== */
.testimonials-section {
  padding: 6rem 0;
  position: relative;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.testi-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 2.25rem;
  display: flex;
  gap: 1.75rem;
  align-items: flex-start;
  transition: var(--transition);
  backdrop-filter: blur(14px);
}

.testi-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-color-glow);
  box-shadow: var(--card-shadow-hover);
}

.testi-avatar {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--accent-gold);
  flex-shrink: 0;
  box-shadow: 0 4px 18px rgba(250, 204, 21, 0.35);
}

.testi-body {
  display: flex;
  flex-direction: column;
}

.testi-score-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: rgba(245, 158, 11, 0.15);
  color: var(--accent-gold);
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 800;
  margin-bottom: 0.75rem;
  width: fit-content;
}

.testi-quote {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 1.25rem;
  font-style: normal;
}

.testi-author-name {
  font-size: 1.05rem;
  font-weight: 800;
}

.testi-author-role {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ==========================================================================
   FAQ SECTION
   ========================================================================== */
.faq-section {
  padding: 6rem 0;
  position: relative;
}

.faq-accordion {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: var(--transition);
}

.faq-item:hover {
  border-color: var(--border-color-glow);
}

.faq-item.active {
  border-color: var(--primary-light);
  box-shadow: 0 4px 20px rgba(124, 58, 237, 0.2);
}

.faq-header {
  padding: 1.35rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  user-select: none;
}

.faq-title {
  font-size: 1.05rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.faq-icon-arrow {
  width: 24px;
  height: 24px;
  transition: transform 0.3s ease;
  color: var(--accent-gold);
  flex-shrink: 0;
}

.faq-item.active .faq-icon-arrow {
  transform: rotate(180deg);
}

.faq-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  background: rgba(15, 23, 42, 0.4);
}

[data-theme="light"] .faq-body {
  background: rgba(241, 245, 249, 0.6);
}

.faq-content {
  padding: 1.25rem 1.5rem 1.5rem 1.5rem;
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.8;
  border-top: 1px solid var(--border-color);
}

/* ==========================================================================
   CONSULTATION FORM (LEAD CAPTURE)
   ========================================================================== */
.contact-section {
  padding: 6rem 0;
  position: relative;
}

.contact-card-wrapper {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  box-shadow: var(--card-shadow);
}

.contact-info-side {
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.95) 0%, rgba(76, 29, 149, 0.98) 50%, rgba(46, 16, 101, 1) 100%);
  color: #ffffff;
  padding: 3.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}

.contact-info-side h3 {
  font-family: var(--font-heading);
  font-size: 2.1rem;
  font-weight: 400;
  line-height: 1.35;
  color: #ffffff;
  margin-bottom: 1rem;
}

.contact-info-side p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 2rem;
}

.contact-direct-items {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.direct-item {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.direct-icon {
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.direct-text span {
  display: block;
}

.direct-text-title {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.7);
}

.direct-text-val {
  font-size: 1.1rem;
  font-weight: 700;
}

.contact-form-side {
  padding: 3.5rem;
  background: var(--bg-surface);
}

.form-group {
  margin-bottom: 1.35rem;
}

.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 0.85rem 1.25rem;
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.95rem;
  outline: none;
  transition: var(--transition);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--primary-light);
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.25);
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
  background: var(--bg-surface);
  border-top: 1px solid var(--border-color);
  padding: 4.5rem 0 2rem 0;
  position: relative;
}

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

.footer-brand p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin: 1.25rem 0 1.5rem 0;
}

.footer-social-links {
  display: flex;
  gap: 0.75rem;
}

.social-link {
  width: 40px;
  height: 40px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  transition: var(--transition);
}

.social-link:hover {
  color: var(--accent-gold);
  border-color: var(--accent-gold);
  transform: translateY(-3px);
}

.footer-col-title {
  font-size: 1.15rem;
  font-weight: 800;
  margin-bottom: 1.25rem;
  position: relative;
  padding-bottom: 0.5rem;
}

.footer-col-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 30px;
  height: 2px;
  background: var(--accent-gold);
  border-radius: 2px;
}

.footer-links-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-link-item a {
  font-size: 0.9rem;
  color: var(--text-secondary);
  transition: var(--transition);
}

.footer-link-item a:hover {
  color: var(--accent-gold);
  transform: translateX(-4px);
  display: inline-block;
}

.footer-branches-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.branch-item {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.branch-title {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-primary);
}

.branch-addr {
  font-size: 0.825rem;
  color: var(--text-secondary);
}

.footer-bottom {
  border-top: 1px solid var(--border-color);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ==========================================================================
   TOAST NOTIFICATION & BACK TO TOP
   ========================================================================== */
.toast-container {
  position: fixed;
  bottom: 25px;
  left: 25px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  pointer-events: none;
}

.toast {
  background: var(--bg-surface);
  border: 1px solid var(--border-color-glow);
  color: var(--text-primary);
  padding: 1rem 1.5rem;
  border-radius: var(--radius-md);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  gap: 0.85rem;
  animation: slideInToast 0.35s ease-out forwards;
  pointer-events: auto;
}

@keyframes slideInToast {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.back-to-top {
  position: fixed;
  bottom: 25px;
  right: 25px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--primary-gradient);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 18px rgba(124, 58, 237, 0.45);
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  z-index: 900;
  border: none;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(124, 58, 237, 0.65);
}