:root {
  --primary: #012c4e;
  --secondary: #FCAB1B;
  --primary-light: rgba(1, 44, 78, 0.1);
  --primary-dark: #38648a;
  --secondary-light: #f7d8a2;
  --secondary-dark: #c58618;
}

.gradient-text {
  background: linear-gradient(90deg, var(--primary) 0%, var(--secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.glass-nav {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(234, 210, 146, 0.2);
}

.dark .glass-nav {
  background: rgba(26, 26, 26, 0.8);
  border-bottom: 1px solid rgba(234, 210, 146, 0.1);
}

.nav-link-underline {
  position: relative;
}

.nav-link-underline::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 50%;
  background-color: var(--primary-dark);
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

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

@keyframes float {
  0% {
    transform: translateY(0px);
  }

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

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

.floating-animation {
  animation: float 6s ease-in-out infinite;
}

.floating-animation-delay {
  animation: float 8s ease-in-out infinite 1s;
}

.floating-animation-delay-2 {
  animation: float 7s ease-in-out infinite 0.5s;
}

@keyframes pulse-glow {
  0% {
    box-shadow: 0 0 0 0 rgba(1, 44, 78, 0.7);
  }

  70% {
    box-shadow: 0 0 0 10px rgba(1, 44, 78, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(1, 44, 78, 0);
  }
}

.pulse-animation {
  animation: pulse-glow 2s infinite;
}

.flip-card {
  perspective: 1000px;
}

.flip-card-inner {
  transform-style: preserve-3d;
  transition: transform 0.8s;
}

.flip-card.flipped .flip-card-inner {
  transform: rotateY(180deg);
}

.flip-card-front,
.flip-card-back {
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

.flip-card-back {
  transform: rotateY(180deg);
}

.feature-item {
  cursor: pointer;
}

.feature-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease-in-out, padding 0.3s ease;
}

.feature-item.active .feature-content {
  max-height: 300px;
}

.feature-toggle {
  transition: transform 0.3s ease;
}

.feature-item.active .feature-toggle {
  transform: rotate(180deg);
}

.feature-item.active {
  background: linear-gradient(135deg, rgba(1, 44, 78, 0.05) 0%, rgba(252, 171, 27, 0.05) 100%);
  box-shadow: 0 8px 25px rgba(1, 44, 78, 0.1);
}

.feature-item.active .feature-header {
  border-bottom: 1px solid rgba(1, 44, 78, 0.1);
}

.feature-item {
  transition: all 0.3s ease;
}

.feature-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.feature-item.active .feature-content {
  max-height: 300px !important;
}

.feature-toggle {
  transition: transform 0.3s ease;
}

.feature-item.active .feature-toggle {
  transform: rotate(180deg);
}

.theme-transition {
  transition: background-color 0.5s ease, color 0.5s ease;
}

.dark {
  background-color: #1a1a1a;
  color: #f8f9fa;
}

::-webkit-scrollbar {
  width: 8px;
}

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

.dark ::-webkit-scrollbar-track {
  background: #2d2d2d;
}

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

::-webkit-scrollbar-thumb:hover {
  background: var(--primary-dark);
}

::selection {
  background-color: var(--secondary);
  color: var(--primary);
}

.dark ::selection {
  background-color: var(--secondary);
  color: var(--primary);
}

.ripple {
  position: absolute;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.3);
  transform: scale(0);
  animation: ripple-animation 0.6s linear;
  pointer-events: none;
}

@keyframes ripple-animation {
  to {
    transform: scale(2.5);
    opacity: 0;
  }
}

button:focus-visible,
a:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.group:hover .dropdown-menu {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.dropdown-menu {
  opacity: 0;
  transform: translateY(-10px);
  pointer-events: none;
  transition: all 0.3s ease;
}

@media print {
  .no-print {
    display: none !important;
  }

  .print-break-inside {
    break-inside: avoid;
  }
}

@media (prefers-contrast: high) {
  .gradient-text {
    background: none;
    background-clip: unset;
    -webkit-text-fill-color: unset;
    color: var(--primary);
  }
}

@media (prefers-reduced-motion: reduce) {

  .floating-animation,
  .floating-animation-delay,
  .floating-animation-delay-2,
  .pulse-animation {
    animation: none;
  }

  .flip-card-inner {
    transition: none;
  }

  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

@media (max-width: 768px) {
  .flip-card {
    height: auto;
    min-height: 300px;
  }

  .glass-nav {
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
  }
}

@supports (-webkit-touch-callout: none) {
  .glass-nav {
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
  }
}

@-moz-document url-prefix() {
  .glass-nav {
    background: rgba(255, 255, 255, 0.9);
  }

  .dark .glass-nav {
    background: rgba(26, 26, 26, 0.9);
  }
}

.contact-header-bg {
  background: linear-gradient(135deg, #012c4e 0%, #001f3a 100%);
}

.faq-item.active .faq-content {
  max-height: 300px !important;
}

.faq-toggle {
  transition: transform 0.3s ease;
}

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

.hover-lift {
  transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.hover-lift:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.card-glow {
  position: relative;
}

.card-glow::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: inherit;
  padding: 2px;
  background: linear-gradient(45deg, var(--primary), var(--secondary));
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.card-glow:hover::after {
  opacity: 1;
}

.video-container {
  position: relative;
  width: 100%;
  height: 0;
  padding-bottom: 56.25%;
  background: #000;
  border-radius: 12px;
  overflow: hidden;
}

.video-container iframe,
.video-container video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 12px;
}

.video-container.fullscreen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 9999;
  padding-bottom: 0;
  border-radius: 0;
}

.video-container.fullscreen iframe {
  border-radius: 0;
}

.progress-bar {
  height: 8px;
  background: #e5e7eb;
  border-radius: 4px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary) 0%, var(--secondary) 100%);
  transition: width 0.3s ease;
}

.course-item {
  transition: all 0.3s ease;
}

.course-item:hover {
  transform: translateY(-2px);
}

.course-item.completed {
  background: rgba(34, 197, 94, 0.1);
  border-color: rgb(34, 197, 94);
}

.course-item.current {
  background: rgba(1, 44, 78, 0.1);
  border-color: var(--primary);
  border-width: 2px;
}

.sticky-sidebar {
  position: sticky;
  top: 100px;
  max-height: calc(100vh - 120px);
  overflow-y: auto;
}

.share-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  backdrop-filter: blur(4px);
}

.share-modal.active {
  display: flex;
  align-items: center;
  justify-content: center;
}

.share-modal-content {
  background: white;
  border-radius: 12px;
  padding: 24px;
  max-width: 400px;
  width: 90%;
  position: relative;
  animation: slideUp 0.3s ease;
}

.dark .share-modal-content {
  background: #374151;
}

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

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

.notification {
  position: fixed;
  top: 20px;
  right: 20px;
  background: #10b981;
  color: white;
  padding: 12px 20px;
  border-radius: 8px;
  z-index: 1001;
  transform: translateX(100%);
  transition: transform 0.3s ease, opacity 0.3s ease;
  opacity: 0;
  visibility: hidden;
}

.notification.show {
  transform: translateX(0);
  opacity: 1;
  visibility: visible;
}