/* ===================================
   From Ideas to Apps - Course Page Styles
   Extends the main site's design system
   =================================== */

/* Course Hero Section */
.course-hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding-top: 100px;
  padding-bottom: var(--spacing-3xl);
}

.course-hero .hero-content {
  display: block;
  max-width: 900px;
  margin: 0 auto;
}

.course-hero .hero-text {
  text-align: center;
  position: relative;
}

.course-hero .hero-text::before {
  content: '';
  position: absolute;
  inset: -2rem;
  background: radial-gradient(ellipse at center, 
    rgba(10, 10, 10, 0.75) 0%, 
    rgba(10, 10, 10, 0.5) 50%, 
    transparent 100%);
  z-index: -1;
  border-radius: 2rem;
  backdrop-filter: blur(40px);
}

[data-theme="light"] .course-hero .hero-text::before {
  background: radial-gradient(ellipse at center, 
    rgba(255, 255, 255, 0.85) 0%, 
    rgba(255, 255, 255, 0.6) 50%, 
    transparent 100%);
}

.course-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 700;
  line-height: 1.5;
  margin-bottom: var(--spacing-md);
  color: var(--text-primary);
  padding-bottom: 0.3em;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.4);
}

[data-theme="light"] .course-title {
  text-shadow: 0 2px 20px rgba(255, 255, 255, 0.8);
}

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

.course-subtitle {
  font-size: clamp(1.25rem, 3vw, 1.5rem);
  color: var(--text-secondary);
  margin-bottom: var(--spacing-md);
  font-weight: 500;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.3);
}

[data-theme="light"] .course-subtitle {
  text-shadow: 0 1px 10px rgba(255, 255, 255, 0.6);
}

.course-description {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--text-secondary);
  margin-bottom: var(--spacing-xl);
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  text-align: justify;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.3);
}

[data-theme="light"] .course-description {
  text-shadow: 0 1px 8px rgba(255, 255, 255, 0.6);
}

.course-description strong {
  color: var(--text-primary);
}

.course-hero .hero-cta {
  display: flex;
  gap: var(--spacing-md);
  justify-content: center;
  margin-bottom: var(--spacing-xl);
  flex-wrap: wrap;
}

.course-meta {
  display: flex;
  gap: var(--spacing-lg);
  justify-content: center;
  flex-wrap: wrap;
}

.course-meta .meta-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-tertiary);
  font-size: 0.95rem;
}

.course-meta .meta-item svg {
  color: var(--accent-primary);
}

/* Principles Grid */
.principles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--spacing-xl);
}

.principle-card {
  background: var(--bg-card);
  backdrop-filter: blur(10px);
  border-radius: var(--radius-lg);
  padding: var(--spacing-xl);
  border: 1px solid var(--border-color);
  transition: all var(--transition-smooth);
  text-align: center;
}

.principle-card:hover {
  transform: translateY(-8px);
  border-color: var(--accent-primary);
  background: var(--bg-card-hover);
  box-shadow: var(--shadow-lg);
}

.principle-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto var(--spacing-md);
  background: rgba(99, 102, 241, 0.1);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-primary);
  transition: all var(--transition-base);
}

.principle-card:hover .principle-icon {
  background: rgba(99, 102, 241, 0.2);
  transform: scale(1.1);
}

.principle-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--spacing-sm);
  font-family: var(--font-display);
}

.principle-description {
  color: var(--text-secondary);
  line-height: 1.7;
  text-align: justify;
}

/* Audience Section */
.audience-content {
  max-width: 900px;
  margin: 0 auto;
}

.audience-text {
  background: var(--bg-card);
  backdrop-filter: blur(10px);
  border-radius: var(--radius-lg);
  padding: var(--spacing-2xl);
  border: 1px solid var(--border-color);
}

.audience-description {
  font-size: 1.15rem;
  line-height: 1.8;
  color: var(--text-secondary);
  margin-bottom: var(--spacing-xl);
  text-align: justify;
}

.audience-description strong {
  color: var(--text-primary);
}

.audience-list {
  list-style: none;
  padding: 0;
  margin-bottom: var(--spacing-xl);
}

.audience-list li {
  display: flex;
  align-items: flex-start;
  gap: var(--spacing-md);
  margin-bottom: var(--spacing-md);
  padding: var(--spacing-md);
  background: rgba(99, 102, 241, 0.05);
  border-radius: var(--radius-sm);
  transition: all var(--transition-base);
}

.audience-list li:hover {
  background: rgba(99, 102, 241, 0.1);
  transform: translateX(5px);
}

.audience-list li svg {
  color: var(--accent-primary);
  flex-shrink: 0;
  margin-top: 2px;
}

.audience-list li span {
  color: var(--text-secondary);
  line-height: 1.7;
  text-align: justify;
}

.audience-list li span strong {
  color: var(--text-primary);
}

.language-note {
  display: flex;
  align-items: flex-start;
  gap: var(--spacing-md);
  padding: var(--spacing-md);
  background: rgba(139, 92, 246, 0.1);
  border-left: 4px solid var(--accent-secondary);
  border-radius: var(--radius-sm);
}

.language-note svg {
  color: var(--accent-secondary);
  flex-shrink: 0;
  margin-top: 2px;
}

.language-note p {
  color: var(--text-secondary);
  line-height: 1.7;
  margin: 0;
  text-align: justify;
}

.language-note p strong {
  color: var(--text-primary);
}

/* Workshops Grid */
.workshops-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
  gap: var(--spacing-xl);
}

.workshop-card {
  background: var(--bg-card);
  backdrop-filter: blur(10px);
  border-radius: var(--radius-lg);
  padding: var(--spacing-xl);
  border: 1px solid var(--border-color);
  transition: all var(--transition-smooth);
  display: flex;
  flex-direction: column;
}

.workshop-card:hover:not(.workshop-coming-soon) {
  transform: translateY(-8px);
  border-color: var(--accent-primary);
  background: var(--bg-card-hover);
  box-shadow: var(--shadow-lg);
}

.workshop-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--spacing-md);
}

.workshop-number {
  font-size: 3rem;
  font-weight: 700;
  font-family: var(--font-display);
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}

.workshop-badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: rgba(99, 102, 241, 0.1);
  border: 1px solid var(--accent-primary);
  border-radius: 2rem;
  color: var(--accent-primary);
  font-size: 0.85rem;
  font-weight: 600;
}

.workshop-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--spacing-md);
  font-family: var(--font-display);
  line-height: 1.3;
}

.workshop-description {
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: var(--spacing-md);
  flex-grow: 1;
  text-align: justify;
}

.workshop-meta {
  display: flex;
  gap: var(--spacing-md);
  margin-bottom: var(--spacing-md);
  flex-wrap: wrap;
}

.meta-tag {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--text-tertiary);
  font-size: 0.9rem;
}

.meta-tag svg {
  color: var(--accent-primary);
}

.workshop-topics {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: var(--spacing-md);
}

.topic {
  padding: 0.4rem 0.9rem;
  background: rgba(139, 92, 246, 0.1);
  border: 1px solid rgba(139, 92, 246, 0.3);
  border-radius: 2rem;
  color: var(--accent-secondary);
  font-size: 0.85rem;
  font-weight: 500;
}

.btn-workshop {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: var(--accent-gradient);
  color: white;
  border: none;
  border-radius: var(--radius-sm);
  padding: 1rem 2rem;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-base);
  text-decoration: none;
  margin-top: auto;
}

.btn-workshop:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-workshop svg {
  transition: transform var(--transition-base);
}

.btn-workshop:hover svg {
  transform: translateX(4px);
}

/* Coming Soon Workshop */
.workshop-coming-soon {
  background: var(--bg-tertiary);
  border-style: dashed;
  border-color: var(--border-color);
  opacity: 0.8;
}

.coming-soon-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  justify-content: center;
  height: 100%;
}

.coming-soon-icon {
  width: 80px;
  height: 80px;
  margin-bottom: var(--spacing-md);
  color: var(--accent-primary);
  opacity: 0.5;
}

.workshop-coming-soon .workshop-title {
  color: var(--text-secondary);
}

.workshop-coming-soon .workshop-description {
  color: var(--text-tertiary);
  text-align: justify;
}

.coming-soon-tags {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: center;
}

.coming-soon-tags .topic {
  opacity: 0.7;
}

/* About Course Section */
.about-content {
  max-width: 900px;
  margin: 0 auto;
}

.about-text {
  background: var(--bg-card);
  backdrop-filter: blur(10px);
  border-radius: var(--radius-lg);
  padding: var(--spacing-2xl);
  border: 1px solid var(--border-color);
}

.about-main {
  font-size: 1.15rem;
  line-height: 1.8;
  color: var(--text-secondary);
  margin-bottom: var(--spacing-xl);
  text-align: justify;
}

.about-main strong {
  color: var(--text-primary);
}

.about-features {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-lg);
  margin-bottom: var(--spacing-xl);
}

.feature-item {
  display: flex;
  gap: var(--spacing-md);
  align-items: flex-start;
  padding: var(--spacing-md);
  background: rgba(99, 102, 241, 0.05);
  border-radius: var(--radius-md);
  transition: all var(--transition-base);
}

.feature-item:hover {
  background: rgba(99, 102, 241, 0.1);
  transform: translateX(5px);
}

.feature-icon {
  width: 56px;
  height: 56px;
  background: rgba(99, 102, 241, 0.1);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-primary);
  flex-shrink: 0;
}

.feature-text h4 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.feature-text p {
  color: var(--text-secondary);
  line-height: 1.7;
  margin: 0;
  text-align: justify;
}

.about-goal {
  display: flex;
  align-items: flex-start;
  gap: var(--spacing-md);
  padding: var(--spacing-md);
  background: rgba(236, 72, 153, 0.1);
  border-left: 4px solid var(--accent-tertiary);
  border-radius: var(--radius-sm);
}

.about-goal svg {
  color: var(--accent-tertiary);
  flex-shrink: 0;
  margin-top: 2px;
}

.about-goal p {
  color: var(--text-secondary);
  line-height: 1.7;
  margin: 0;
  text-align: justify;
}

.about-goal p strong {
  color: var(--text-primary);
}

/* Footer Course-specific */
.footer-course-subtitle {
  color: var(--text-tertiary);
  font-size: 0.9rem;
  margin-top: 0.25rem;
}

/* ===================================
   Responsive Design
   =================================== */

@media (max-width: 1024px) {
  .workshops-grid {
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  }
}

@media (max-width: 768px) {
  .course-hero {
    padding-top: 80px;
  }

  .course-title {
    font-size: 2.25rem;
  }

  .course-subtitle {
    font-size: 1.15rem;
  }

  .course-description {
    font-size: 1rem;
  }

  .course-hero .hero-cta {
    flex-direction: column;
    width: 100%;
  }

  .course-hero .hero-cta .btn {
    width: 100%;
  }

  .course-meta {
    flex-direction: column;
    gap: var(--spacing-sm);
  }

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

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

  .workshop-header {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--spacing-sm);
  }

  .audience-text,
  .about-text {
    padding: var(--spacing-lg);
  }

  .audience-list li {
    flex-direction: column;
    gap: var(--spacing-sm);
  }

  .feature-item {
    flex-direction: column;
    text-align: center;
  }

  .feature-icon {
    margin: 0 auto;
  }
}

@media (max-width: 480px) {
  .course-badge {
    font-size: 0.8rem;
    padding: 0.4rem 1rem;
  }

  .course-title {
    font-size: 1.75rem;
  }

  .principle-card {
    padding: var(--spacing-lg);
  }

  .principle-icon {
    width: 60px;
    height: 60px;
  }

  .workshop-card {
    padding: var(--spacing-lg);
  }

  .workshop-number {
    font-size: 2.25rem;
  }

  .workshop-title {
    font-size: 1.25rem;
  }
}

/* ===================================
   Animations & Transitions
   =================================== */

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

.reveal-stagger > * {
  animation: fadeInUp 0.6s ease-out backwards;
}

.reveal-stagger > *:nth-child(1) { animation-delay: 0.1s; }
.reveal-stagger > *:nth-child(2) { animation-delay: 0.2s; }
.reveal-stagger > *:nth-child(3) { animation-delay: 0.3s; }
.reveal-stagger > *:nth-child(4) { animation-delay: 0.4s; }
.reveal-stagger > *:nth-child(5) { animation-delay: 0.5s; }
.reveal-stagger > *:nth-child(6) { animation-delay: 0.6s; }

/* Smooth scroll behavior */
html {
  scroll-behavior: smooth;
}

/* Focus states for accessibility */
.btn-workshop:focus,
.nav-link:focus {
  outline: 2px solid var(--accent-primary);
  outline-offset: 4px;
}

/* Active navigation link highlighting */
.nav-link.active {
  color: var(--accent-pink) !important;
  font-weight: 600;
}

.nav-link.active::after {
  width: 100% !important;
  background: var(--accent-gradient) !important;
}

/* ===================================
   Floating Controls (Theme & Language)
   =================================== */
.floating-controls {
  position: fixed !important;
  top: 25px !important;
  left: 25px !important;
  right: auto !important;
  z-index: 999;
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
}

/* Prevent RTL from affecting floating controls */
[dir="rtl"] .floating-controls {
  left: 25px !important;
  right: auto !important;
}

/* Theme Toggle - Sliding Switch */
.floating-controls .theme-toggle,
.fixed-controls .theme-toggle {
  width: 80px;
  height: 40px;
  background: linear-gradient(135deg, #1a1a1a 0%, #0a0a0a 100%);
  border: 2px solid var(--accent-primary);
  border-radius: 50px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 
    inset 0 2px 8px rgba(0, 0, 0, 0.3),
    0 4px 12px rgba(139, 92, 246, 0.3);
  flex-shrink: 0;
}

[data-theme="light"] .floating-controls .theme-toggle,
[data-theme="light"] .fixed-controls .theme-toggle {
  background: linear-gradient(135deg, #ffffff 0%, #f0f0f0 100%);
  box-shadow: 
    inset 0 2px 8px rgba(0, 0, 0, 0.1),
    0 4px 12px rgba(255, 193, 7, 0.3);
}

.floating-controls .theme-toggle::before,
.fixed-controls .theme-toggle::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--accent-gradient);
  opacity: 0;
  transition: opacity 0.5s ease;
  z-index: 0;
}

.floating-controls .theme-toggle:hover::before,
.fixed-controls .theme-toggle:hover::before {
  opacity: 0.1;
}

.theme-toggle-slider {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 
    0 4px 12px rgba(139, 92, 246, 0.5),
    0 0 20px rgba(139, 92, 246, 0.3);
  z-index: 2;
}

[data-theme="light"] .theme-toggle-slider {
  left: calc(100% - 35px);
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  box-shadow: 
    0 4px 12px rgba(251, 191, 36, 0.5),
    0 0 20px rgba(251, 191, 36, 0.3);
}

.theme-toggle-slider .moon-icon {
  display: block;
  position: relative;
  color: #ffffff;
  filter: drop-shadow(0 0 4px rgba(255, 255, 255, 0.8));
  width: 16px;
  height: 16px;
  padding-bottom: 1px;
}

.theme-toggle-slider .sun-icon-slider {
  display: none;
  position: relative;
  color: #ffffff;
  filter: drop-shadow(0 0 4px rgba(255, 255, 255, 0.8));
  width: 16px;
  height: 16px;
  padding-bottom: 1px;
}

[data-theme="dark"] .theme-toggle-slider .moon-icon {
  display: block;
}

[data-theme="dark"] .theme-toggle-slider .sun-icon-slider {
  display: none;
}

[data-theme="light"] .theme-toggle-slider .moon-icon {
  display: none;
}

[data-theme="light"] .theme-toggle-slider .sun-icon-slider {
  display: block;
}

.floating-controls .theme-toggle:hover .theme-toggle-slider,
.fixed-controls .theme-toggle:hover .theme-toggle-slider {
  transform: scale(1.1);
}

.floating-controls .theme-toggle:active .theme-toggle-slider,
.fixed-controls .theme-toggle:active .theme-toggle-slider {
  transform: scale(0.95);
}

/* Remove old theme toggle styles */
.floating-controls .theme-toggle::after {
  display: none;
}

.floating-controls .theme-toggle svg:not(.moon-icon):not(.sun-icon-slider) {
  display: none;
}

/* Language toggle button - in navbar */
.language-toggle-btn {
  display: flex;
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  color: var(--text-primary);
  border: 2px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 0.65rem 1rem;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-base);
  font-family: var(--font-sans);
  box-shadow: var(--shadow-md);
  gap: 0.5rem;
  align-items: center;
  justify-content: center;
  min-width: 90px;
}

.language-toggle-btn:hover {.language-toggle-btn:hover {
  border-color: var(--accent-primary);
  background-color: var(--bg-card-hover);
  transform: scale(1.05);
  box-shadow: 0 8px 24px rgba(99, 102, 241, 0.25);
}

.language-toggle-btn:active {
  transform: scale(0.95);
}

.language-toggle-btn .lang-flag {
  font-size: 1.4rem;
  line-height: 1;
}

.language-toggle-btn .lang-code {
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.5px;
}

@media (max-width: 768px) {
  .floating-controls {
    top: 20px;
    left: 15px;
    gap: 10px;
  }
  
  .language-toggle-btn {
    padding: 0.55rem 0.85rem;
    font-size: 0.9rem;
    min-width: 80px;
  }
  
  .language-toggle-btn .lang-flag {
    font-size: 1.3rem;
  }
  
  .language-toggle-btn .lang-code {
    font-size: 0.85rem;
  }
  
  .floating-controls .theme-toggle {
    bottom: 20px;
    left: 20px;
    width: 56px;
    height: 56px;
  }
  
  .floating-controls .theme-toggle svg {
    width: 24px;
    height: 24px;
  }
  
  .floating-controls .theme-toggle::after {
    display: none;
  }
    background-position: right 0.6rem center;
  }
  
  .language-selector option {
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  .floating-controls {
    top: 15px;
    left: 10px;
  }
  
  .language-toggle-btn {
    padding: 0.5rem 0.75rem;
    font-size: 0.85rem;
    min-width: 75px;
  }
  
  .language-toggle-btn .lang-flag {
    font-size: 1.2rem;
  }
  
  .language-toggle-btn .lang-code {
    font-size: 0.8rem;
  }
  
  .floating-controls .theme-toggle {
    bottom: 15px;
    left: 15px;
    width: 52px;
    height: 52px;
  }
  
  .floating-controls .theme-toggle svg {
    width: 22px;
    height: 22px;
  }
  }
  
  .language-selector option {
    font-size: 0.85rem;
  }
}

/* ===================================
   Nav Controls - Remove old styles
   =================================== */
.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-menu {
  flex: 1;
  justify-content: center;
}

@media (max-width: 1024px) {
  .nav-menu {
    position: fixed;
    top: 70px;
    left: 0;
    width: 100%;
    background: var(--bg-secondary);
    flex-direction: column;
    padding: var(--spacing-lg);
    transform: translateX(-100%);
    transition: transform var(--transition-smooth);
    border-bottom: 1px solid var(--border-color);
  }
  
  [dir="rtl"] .nav-menu {
    flex-direction: column;
  }
  
  .nav-menu.active {
    transform: translateX(0);
  }
}

/* ===================================
   Radial Navigation - Custom Layout for 5 Items
   =================================== */
.radial-nav-menu.active .radial-nav-item:nth-child(1) {
  transform: rotate(0deg) translateY(-140px) rotate(0deg);
}

.radial-nav-menu.active .radial-nav-item:nth-child(2) {
  transform: rotate(72deg) translateY(-140px) rotate(-72deg);
}

.radial-nav-menu.active .radial-nav-item:nth-child(3) {
  transform: rotate(144deg) translateY(-140px) rotate(-144deg);
}

.radial-nav-menu.active .radial-nav-item:nth-child(4) {
  transform: rotate(216deg) translateY(-140px) rotate(-216deg);
}

.radial-nav-menu.active .radial-nav-item:nth-child(5) {
  transform: rotate(288deg) translateY(-140px) rotate(-288deg);
}

/* ===================================
   RTL Support for Arabic
   =================================== */
[dir="rtl"] body {
  text-align: right;
}

[dir="rtl"] .course-meta {
  flex-direction: row-reverse;
}

[dir="rtl"] .meta-item {
  flex-direction: row-reverse;
}

[dir="rtl"] .hero-cta {
  flex-direction: row-reverse;
}

/* Language toggle button - visible on all screens */
.language-toggle-btn {
  display: flex;
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  color: var(--text-primary);
  border: 2px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 0.65rem 1rem;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-base);
  font-family: var(--font-sans);
  box-shadow: var(--shadow-md);
  gap: 0.5rem;
  align-items: center;
  justify-content: center;
  min-width: 90px;
}

.language-toggle-btn:hover {
  border-color: var(--accent-primary);
  background-color: var(--bg-card-hover);
  transform: scale(1.05);
  box-shadow: 0 8px 24px rgba(99, 102, 241, 0.25);
}

.language-toggle-btn:active {
  transform: scale(0.95);
}

.language-toggle-btn .lang-flag {
  font-size: 1.4rem;
  line-height: 1;
}

.language-toggle-btn .lang-code {
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.5px;
}

[dir="rtl"] .principles-grid,
[dir="rtl"] .audience-list,
[dir="rtl"] .workshop-topics,
[dir="rtl"] .workshop-meta {
  text-align: right;
}

[dir="rtl"] .workshop-card,
[dir="rtl"] .principle-card,
[dir="rtl"] .audience-text {
  text-align: right;
}

[dir="rtl"] .workshop-badge,
[dir="rtl"] .course-badge {
  flex-direction: row-reverse;
}

[dir="rtl"] .floating-controls {
  /* Keep floating controls in the same position for all languages */
  left: auto;
  right: var(--spacing-lg);
}

[dir="rtl"] .footer-links {
  flex-direction: row-reverse;
}

/* RTL: Keep English terms LTR within RTL text */
[dir="rtl"] span[dir="ltr"] {
  display: inline-block;
  direction: ltr;
  unicode-bidi: embed;
}

/* RTL: Flip arrows and icons in buttons */
[dir="rtl"] .btn svg,
[dir="rtl"] .workshop-card .btn svg,
[dir="rtl"] button svg {
  transform: scaleX(-1);
}

[dir="rtl"] .btn::after {
  transform: scaleX(-1);
}

/* Keep footer always LTR */
[dir="rtl"] .footer {
  direction: ltr;
  text-align: left;
}

[dir="rtl"] .footer-links {
  flex-direction: row;
}

/* ===================================
   Under Construction Animation
   =================================== */

.workshop-under-construction {
  position: relative;
  overflow: hidden;
}

.under-construction-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, 
    rgba(255, 200, 0, 0.75) 0%, 
    rgba(255, 150, 0, 0.75) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  backdrop-filter: blur(3px);
}

.construction-animation {
  text-align: center;
  animation: constructionBounce 2s ease-in-out infinite;
}

.construction-icon {
  font-size: 4rem;
  animation: constructionRotate 3s linear infinite;
  display: inline-block;
}

.construction-text {
  font-size: 1.5rem;
  font-weight: 700;
  color: #000;
  margin-top: 1rem;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.construction-dots {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-top: 1rem;
}

.construction-dots span {
  width: 12px;
  height: 12px;
  background: #000;
  border-radius: 50%;
  animation: constructionDot 1.5s ease-in-out infinite;
}

.construction-dots span:nth-child(2) {
  animation-delay: 0.3s;
}

.construction-dots span:nth-child(3) {
  animation-delay: 0.6s;
}

@keyframes constructionBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-15px); }
}

@keyframes constructionRotate {
  0% { transform: rotate(0deg); }
  25% { transform: rotate(-10deg); }
  50% { transform: rotate(0deg); }
  75% { transform: rotate(10deg); }
  100% { transform: rotate(0deg); }
}

@keyframes constructionDot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.5); opacity: 0.5; }
}

/* Text Justification */
.section-intro,
.section-description,
.benefit-description,
.workshop-description,
.course-overview p,
.module-content p,
.learning-objective p {
    text-align: justify;
}
