/**
 * WordPress Extra Styles: Studio Typography, WP Admin-Bar Offsets, Course Dropdown,
 * FAQ Accordion, Support Panel, Scroll Reveal & Specular Animations.
 */

:root, :host {
  --font-sans: 'Vazirmatn', Tahoma, system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  --default-font-family: var(--font-sans);
}

html[lang^="en"] {
  --font-sans: 'Plus Jakarta Sans', 'Vazirmatn', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  --default-font-family: var(--font-sans);
  font-family: var(--font-sans);
}

html {
  font-family: var(--font-sans);
  font-size: 16px;
  scroll-behavior: smooth;
  overflow-x: clip;
}

body {
  font-family: var(--font-sans);
  overflow-x: clip;
}

button, input, select, textarea, optgroup {
  font-family: inherit;
}

h1, h2, h3, h4 {
  text-wrap: balance;
}

section[id] {
  scroll-margin-top: 84px;
}

body.admin-bar section[id] {
  scroll-margin-top: 118px;
}

body.admin-bar #site-navbar {
  top: 32px;
}

@media (max-width: 782px) {
  body.admin-bar #site-navbar {
    top: 46px;
  }
}

:focus-visible {
  outline: 2px solid #234B8C;
  outline-offset: 3px;
}

.dark :focus-visible {
  outline-color: #60A5FA;
}

/* Modern Sleek Rounded Scrollbar */
::-webkit-scrollbar {
  width: 11px;
  height: 11px;
}

::-webkit-scrollbar-button {
  display: none;
  width: 0;
  height: 0;
}

::-webkit-scrollbar-track {
  background: #F3F5F8;
}

.dark ::-webkit-scrollbar-track {
  background: #10131A;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #2B59A2 0%, #1D407A 100%);
  border-radius: 9999px;
  border: 2.5px solid transparent;
  background-clip: content-box;
  transition: background 0.2s ease;
}

.dark ::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #60A5FA 0%, #2563EB 100%);
  border: 2.5px solid transparent;
  background-clip: content-box;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #EC6445 0%, #CD4527 100%);
  border: 2px solid transparent;
  background-clip: content-box;
}

/* Specular CTA Shine, Floating Support Halo & Consultation Dropdown Halo */
@keyframes aylinButtonShine {
  0%, 58% {
    transform: translateX(240%) skewX(-20deg);
  }
  100% {
    transform: translateX(-240%) skewX(-20deg);
  }
}

.btn-shine {
  position: relative;
  overflow: hidden;
}

.btn-shine::after {
  content: "";
  position: absolute;
  inset-block: 0;
  inset-inline-start: 0;
  width: 45%;
  background: linear-gradient(
    105deg,
    transparent 0%,
    rgba(255, 255, 255, 0.55) 50%,
    transparent 100%
  );
  transform: translateX(240%) skewX(-20deg);
  animation: aylinButtonShine 5.5s cubic-bezier(0.65, 0, 0.35, 1) infinite;
  pointer-events: none;
}

.btn-shine:hover::after {
  animation: none;
  transform: translateX(-240%) skewX(-20deg);
  transition: transform 650ms cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes aylinSupportHalo {
  0% {
    transform: scale(1);
    opacity: 0.7;
  }
  70% {
    transform: scale(1.38);
    opacity: 0;
  }
  100% {
    transform: scale(1.38);
    opacity: 0;
  }
}

.support-halo::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 9999px;
  border: 2px solid #E85D3F;
  pointer-events: none;
  animation: aylinSupportHalo 5s ease-out infinite;
}

@keyframes aylinDropdownHalo {
  0% {
    box-shadow: 0 0 0 0 rgba(22, 156, 100, 0.42), 0 10px 24px rgba(22, 156, 100, 0.18);
  }
  50% {
    box-shadow: 0 0 0 10px rgba(22, 156, 100, 0), 0 12px 28px rgba(22, 156, 100, 0.22);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(22, 156, 100, 0), 0 10px 24px rgba(22, 156, 100, 0.14);
  }
}

.animate-dropdown-halo {
  animation: aylinDropdownHalo 1.15s cubic-bezier(0.16, 1, 0.3, 1) 2;
}

/* ==================== 0. CUSTOM ACCESSIBLE COURSE DROPDOWN ==================== */
.aylin-course-listbox {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translate3d(0, -6px, 0) scale(0.98);
  transition:
    opacity 0.18s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.18s cubic-bezier(0.16, 1, 0.3, 1),
    visibility 0.18s ease;
}

.aylin-course-listbox.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translate3d(0, 0, 0) scale(1);
}

.aylin-course-chevron.is-open {
  transform: rotate(180deg);
}

/* ==================== 1. FAQ ACCORDION (STRICTLY CLOSED BY DEFAULT) ==================== */
.aylin-faq-panel {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  visibility: hidden;
  transition:
    grid-template-rows 0.34s cubic-bezier(0.16, 1, 0.3, 1),
    opacity 0.28s ease,
    visibility 0.28s ease;
}

.aylin-faq-panel.is-open {
  grid-template-rows: 1fr;
  opacity: 1;
  visibility: visible;
}

.aylin-faq-panel-inner {
  overflow: hidden;
  min-height: 0;
}

.aylin-faq-chevron.rotate-180 {
  transform: rotate(180deg);
}

/* ==================== 2. FLOATING SUPPORT PANEL (STRICTLY CLOSED BY DEFAULT) ==================== */
.aylin-support-panel {
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translate3d(0, 14px, 0) scale(0.94);
  transition:
    opacity 0.28s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.28s cubic-bezier(0.16, 1, 0.3, 1),
    visibility 0.28s ease;
  will-change: transform, opacity;
}

.aylin-support-panel.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translate3d(0, 0, 0) scale(1);
}

#support-panel ul {
  overflow-x: hidden !important;
}

/* ==================== 3. SCROLL REVEAL & SECTION DIVIDERS ==================== */
.aylin-reveal {
  opacity: 0;
  transform: translate3d(0, 22px, 0);
  transition:
    opacity 0.65s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform, opacity;
}

.aylin-reveal.is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

.aylin-divider-line {
  transform: scaleX(0);
  transition: transform 0.75s cubic-bezier(0.16, 1, 0.3, 1);
}

.aylin-reveal.is-visible .aylin-divider-line {
  transform: scaleX(1);
}

/* ==================== 4. HERO BRUSH STROKE & SUBTLE STUDIO MOTION ==================== */
@keyframes aylinBrushDraw {
  from {
    stroke-dashoffset: 420;
    opacity: 0.25;
  }
  to {
    stroke-dashoffset: 0;
    opacity: 1;
  }
}

.aylin-brush-draw {
  stroke-dasharray: 420;
  stroke-dashoffset: 420;
  animation: aylinBrushDraw 0.95s 0.25s cubic-bezier(0.65, 0, 0.35, 1) forwards;
}

@keyframes aylinOrbDrift {
  0%, 100% {
    transform: scale(1);
    opacity: 0.35;
  }
  50% {
    transform: scale(1.08);
    opacity: 0.55;
  }
}

.aylin-orb-slow {
  animation: aylinOrbDrift 9s ease-in-out infinite;
}

.aylin-orb-slow-alt {
  animation: aylinOrbDrift 11s 1.4s ease-in-out infinite;
}

@keyframes aylinFloatHero {
  0%, 100% {
    transform: translate3d(0, 0, 0);
  }
  50% {
    transform: translate3d(0, -8px, 0);
  }
}

.aylin-float-hero {
  will-change: transform;
  animation: aylinFloatHero 6.5s cubic-bezier(0.45, 0, 0.55, 1) infinite;
}

@keyframes aylinFloatGentle {
  0%, 100% {
    transform: translate3d(0, 0, 0);
  }
  50% {
    transform: translate3d(0, -6px, 0);
  }
}

.aylin-float-slow {
  will-change: transform;
  animation: aylinFloatHero 3.4s cubic-bezier(0.45, 0, 0.55, 1) infinite;
}

.aylin-float-gentle {
  will-change: transform;
  animation: aylinFloatGentle 4.2s cubic-bezier(0.45, 0, 0.55, 1) infinite;
}

@keyframes aylinPulseDot {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(217, 83, 56, 0.45);
  }
  60% {
    transform: scale(1.18);
    box-shadow: 0 0 0 7px rgba(217, 83, 56, 0);
  }
}

.aylin-pulse-dot {
  animation: aylinPulseDot 2.8s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

@keyframes aylinIconBreathe {
  0%, 100% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  50% {
    transform: translate3d(0, -3px, 0) scale(1.03);
  }
}

.aylin-icon-breathe {
  will-change: transform;
  animation: aylinIconBreathe 4.6s cubic-bezier(0.45, 0, 0.55, 1) infinite;
}

@keyframes aylinSparkleSoft {
  0%, 100% {
    transform: scale(1) rotate(0deg);
    opacity: 0.9;
  }
  50% {
    transform: scale(1.14) rotate(8deg);
    opacity: 1;
  }
}

.aylin-sparkle-soft {
  animation: aylinSparkleSoft 3.6s ease-in-out infinite;
}

@keyframes aylinPlayHalo {
  0%, 100% {
    transform: scale(1);
    opacity: 0.35;
  }
  50% {
    transform: scale(1.24);
    opacity: 0.1;
  }
}

@keyframes aylinPlayCore {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.07);
  }
}

.aylin-play-halo {
  animation: aylinPlayHalo 2.6s ease-in-out infinite;
}

.aylin-play-core {
  animation: aylinPlayCore 2.6s ease-in-out infinite;
}

@keyframes aylinRibbonSway {
  0%, 100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-2px) rotate(6deg);
  }
}

.aylin-ribbon-icon {
  animation: aylinRibbonSway 2.8s ease-in-out infinite;
}

@keyframes aylinCertImageShine {
  0%, 48% {
    transform: translateX(190%) skewX(-22deg);
    opacity: 0;
  }
  56% {
    opacity: 1;
  }
  88% {
    opacity: 0.9;
  }
  100% {
    transform: translateX(-190%) skewX(-22deg);
    opacity: 0;
  }
}

.aylin-cert-image-shine {
  position: relative;
  overflow: hidden;
}

.aylin-cert-image-shine::after {
  content: "";
  position: absolute;
  inset-block: -15%;
  inset-inline-start: 0;
  width: 52%;
  background: linear-gradient(
    108deg,
    transparent 0%,
    rgba(255, 255, 255, 0.08) 32%,
    rgba(255, 251, 235, 0.52) 50%,
    rgba(255, 255, 255, 0.08) 68%,
    transparent 100%
  );
  transform: translateX(190%) skewX(-22deg);
  animation: aylinCertImageShine 5.2s cubic-bezier(0.55, 0, 0.35, 1) infinite;
  pointer-events: none;
  z-index: 15;
}

.group:hover .aylin-cert-image-shine::after {
  animation: none;
  opacity: 0.95;
  transform: translateX(-190%) skewX(-22deg);
  transition: transform 850ms cubic-bezier(0.16, 1, 0.3, 1), opacity 250ms ease;
}

/* Subtle Dreamy Certificate Particles */
@keyframes aylinCertDreamyFloat {
  0%, 100% {
    transform: translate3d(0, 0, 0) scale(0.92);
    opacity: 0.32;
  }
  45% {
    transform: translate3d(8px, -16px, 0) scale(1.12);
    opacity: 0.78;
  }
  75% {
    transform: translate3d(-6px, -8px, 0) scale(1);
    opacity: 0.56;
  }
}

@keyframes aylinCertDreamyTwinkle {
  0%, 100% {
    transform: scale(0.65) rotate(0deg);
    opacity: 0.25;
  }
  50% {
    transform: scale(1.15) rotate(22deg);
    opacity: 0.85;
  }
}

.cert-dreamy-particle {
  position: absolute;
  border-radius: 9999px;
  will-change: transform, opacity;
  animation: aylinCertDreamyFloat 10s ease-in-out infinite;
}

.cert-dreamy-particle--gold {
  background: radial-gradient(circle, rgba(255, 250, 224, 0.96) 0%, rgba(245, 196, 81, 0.72) 52%, rgba(212, 155, 39, 0) 100%);
  box-shadow: 0 0 14px rgba(245, 196, 81, 0.55);
}

.cert-dreamy-particle--pearl {
  background: radial-gradient(circle, rgba(255, 255, 255, 0.98) 0%, rgba(254, 243, 199, 0.65) 55%, rgba(255, 255, 255, 0) 100%);
  box-shadow: 0 0 12px rgba(212, 155, 39, 0.32);
}

.cert-dreamy-particle--sapphire {
  background: radial-gradient(circle, rgba(219, 234, 254, 0.92) 0%, rgba(96, 165, 250, 0.55) 55%, rgba(59, 130, 246, 0) 100%);
  box-shadow: 0 0 14px rgba(96, 165, 250, 0.45);
}

.dark .cert-dreamy-particle--gold {
  box-shadow: 0 0 16px rgba(251, 191, 36, 0.65);
}

.dark .cert-dreamy-particle--pearl {
  box-shadow: 0 0 14px rgba(226, 232, 240, 0.48);
}

.dark .cert-dreamy-particle--sapphire {
  box-shadow: 0 0 16px rgba(96, 165, 250, 0.62);
}

.cert-dreamy-spark {
  position: absolute;
  width: 10px;
  height: 10px;
  will-change: transform, opacity;
  animation: aylinCertDreamyTwinkle 5.6s ease-in-out infinite;
}

.cert-dreamy-spark::before,
.cert-dreamy-spark::after {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  border-radius: 9999px;
  background: rgba(245, 185, 50, 0.78);
  box-shadow: 0 0 8px rgba(245, 185, 50, 0.55);
}

.cert-dreamy-spark::before {
  width: 2px;
  height: 10px;
}

.cert-dreamy-spark::after {
  width: 10px;
  height: 2px;
}

.dark .cert-dreamy-spark::before,
.dark .cert-dreamy-spark::after {
  background: rgba(253, 224, 71, 0.85);
}

/* ==================== 5. ACCESSIBILITY: REDUCED MOTION ==================== */
@media (prefers-reduced-motion: reduce) {
  .aylin-reveal,
  .aylin-divider-line {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  .aylin-brush-draw {
    stroke-dashoffset: 0 !important;
    opacity: 1 !important;
    animation: none !important;
  }
  .aylin-orb-slow,
  .aylin-orb-slow-alt,
  .aylin-float-hero,
  .aylin-float-slow,
  .aylin-float-gentle,
  .aylin-pulse-dot,
  .aylin-icon-breathe,
  .aylin-sparkle-soft,
  .aylin-play-halo,
  .aylin-play-core,
  .aylin-ribbon-icon,
  .animate-dropdown-halo,
  .cert-dreamy-particle,
  .cert-dreamy-spark {
    animation: none !important;
  }
  .aylin-cert-image-shine::after,
  .btn-shine::after,
  .support-halo::before {
    animation: none !important;
    opacity: 0 !important;
  }
}

/* ==================== 6. FESTIVAL DISPLAY TYPOGRAPHY ==================== */
.aylin-festival-num {
  font-family: 'Lalezar', 'Vazirmatn', sans-serif;
}

/* ==================== 7. MOBILE SCROLL TARGET, TEXTAREA RESIZE & LANGUAGE SWITCHER FEEDBACK ==================== */
#register-form-box {
  scroll-margin-top: 76px;
}
@media (min-width: 640px) {
  #register-form-box {
    scroll-margin-top: 88px;
  }
}

#f-msg {
  resize: none;
}
@media (min-width: 768px) {
  #f-msg {
    resize: vertical;
  }
}

@keyframes aylinLangRingSpin {
  0% {
    transform: translate(-50%, -50%) rotate(0deg);
  }
  100% {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

.aylin-lang-switch-shell {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  overflow: visible;
  border-radius: 9999px;
  isolation: isolate;
}

.aylin-lang-switch-ring {
  position: absolute;
  inset: -3px;
  border-radius: 9999px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  z-index: 0;
  transition: opacity 150ms ease;
}

.aylin-lang-switch-shell.is-switching .aylin-lang-switch-ring {
  opacity: 1;
}

.aylin-lang-switch-spinner {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 200%;
  height: 200%;
  background: conic-gradient(
    from 0deg,
    rgba(22, 156, 100, 0.12) 0deg 210deg,
    #169c64 265deg,
    #34d399 315deg,
    rgba(22, 156, 100, 0.12) 360deg
  );
  opacity: 1;
  pointer-events: none;
  transform: translate(-50%, -50%) rotate(0deg);
}

.aylin-lang-switch-shell.is-switching .aylin-lang-switch-spinner {
  animation: aylinLangRingSpin 0.65s linear infinite;
}

.aylin-lang-switch-shell.is-switching .aylin-lang-switch-inner {
  border-color: rgba(22, 156, 100, 0.45);
}

.aylin-lang-switch-inner {
  position: relative;
  z-index: 1;
}

@media (prefers-reduced-motion: reduce) {
  .aylin-lang-switch-shell.is-switching .aylin-lang-switch-spinner {
    animation: none !important;
    background: #169c64;
  }
}



