html,
body {
  scroll-behavior: smooth !important;
  -webkit-scroll-behavior: smooth !important;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  width: 100%;
}

/* Navbar */
.transparent-navbar {
  /* use fixed positioning so the bar always remains at the top of the viewport
     (position:sticky sometimes fails when a parent creates a new stacking
     context or overflow).  fixed works reliably across browsers. */
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1060;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.02),
    rgba(255, 255, 255, 0.01)
  );
  backdrop-filter: blur(10px) saturate(120%);
  -webkit-backdrop-filter: blur(10px) saturate(120%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  transition:
    background 240ms ease,
    box-shadow 300ms ease,
    transform 220ms ease;
  height: 88px;
  display: flex;
  align-items: center;
  padding: 0 22px;
}

/* reserve space for fixed navbar so page content isn’t hidden behind it */
body.index-page,
body {
  padding-top: 88px;
}

.transparent-navbar {
  /* Keep the transparent aesthetic on scroll for a consistent default UI */
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.02),
    rgba(255, 255, 255, 0.01)
  );
  box-shadow: 0 6px 18px rgba(2, 6, 23, 0.18);
}

.transparent-navbar .navbar-brand img {
  width: 120%;
  filter: contrast(120%) brightness(125%);
  transition:
    transform 220ms ease,
    opacity 220ms ease;
}

/* Nav items styling: refined pill links with smooth hover */
.transparent-navbar .navbar-nav {
  position: relative;
  z-index: 5;
  align-items: center;
}

.transparent-navbar .navbar-nav .nav-item {
  margin: 0 6px;
}

.transparent-navbar .navbar-collapse {
  position: absolute;
  top: 80px;
  left: 0;
  right: 0;
  width: 100%;
  background: linear-gradient(135deg, #0f172a 0%, #1a2438 60%, #0f0f1f 70%);
  backdrop-filter: blur(12px);
  z-index: 1059;
}

@media (min-width: 768px) {
  .transparent-navbar .navbar-collapse {
    position: static;
    background: transparent;
    backdrop-filter: none;
    margin-top: 0;
    z-index: auto;
  }
}

.transparent-navbar .navbar-nav .nav-item .page-scroll {
  color: #dbeafe;
  text-align: center;
  padding: 7px 0;
  border-radius: 999px;
  transition:
    color 180ms ease,
    transform 180ms ease,
    box-shadow 200ms;
  text-decoration: none;
  display: inline-block;
  font-weight: 700;
  letter-spacing: 0.2px;
  width: 90px;
}

.transparent-navbar .navbar-nav .nav-item .page-scroll:focus,
.transparent-navbar .navbar-nav .nav-item .page-scroll:hover {
  color: #ffffff;
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(2, 6, 23, 0.45);
}

/* Active link styling (persistent) */
.transparent-navbar .navbar-nav .nav-item .page-scroll.active {
  color: #ffffff;
  background: linear-gradient(
    195deg,
    rgba(64, 129, 214, 0.59),
    rgba(96, 165, 250, 0)
  );
  box-shadow: 0 10px 30px rgba(15, 40, 90, 0.35);
  transform: translateY(-3px);
}

/* Morphing pill (positioned behind nav items) */
.nav-morph {
  position: absolute;
  top: 50%;
  transform: translateY(-65%);
  height: 40px;
  border-radius: 999px;
  background: linear-gradient(
    135deg,
    rgba(99, 102, 241, 0.12),
    rgba(56, 189, 248, 0.06)
  );
  pointer-events: none;
  transition:
    left 320ms cubic-bezier(0.2, 0.9, 0.2, 1),
    width 320ms cubic-bezier(0.2, 0.9, 0.2, 1),
    opacity 220ms;
  z-index: 1;
  filter: blur(0.6px);
}

.transparent-navbar .navbar-nav {
  /* ensure links sit above the morph */
  position: relative;
}

/* Navbar toggler (three-line) styling matching transparent morphism UI */
.transparent-navbar .navbar-toggler {
  border: 0;
  background: transparent;
  padding: 6px 8px;
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.transparent-navbar .navbar-toggler:focus {
  outline: none;
  box-shadow: none;
}

/* .transparent-navbar .navbar-toggler .toggler-icon {
  width: 22px;
  height: 2px;
  background: rgba(219, 234, 254, 0.92);
  display: block;
  border-radius: 2px;
  transition:
    transform 220ms ease,
    opacity 220ms ease,
    background 220ms ease;
  margin: 3px 0;
  position: relative;
} */

/* .transparent-navbar.scrolled .navbar-toggler .toggler-icon {
  background: #ffffff;
} */

/* .transparent-navbar .navbar-toggler.active .toggler-icon:nth-of-type(1) {
  transform: translateY(6px) rotate(45deg);
}

.transparent-navbar .navbar-toggler.active .toggler-icon:nth-of-type(2) {
  opacity: 0;
  transform: scaleX(0.2);
}

.transparent-navbar .navbar-toggler.active .toggler-icon:nth-of-type(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.transparent-navbar .navbar-toggler:hover .toggler-icon {
  transform: translateY(-1px);
} */

/* scroll top */

.scroll-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 44px;
  height: 44px;
  background: rgba(47, 128, 237, 0.15);
  color: #2f80ed;
  border-radius: 8px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 20px;
  cursor: pointer;
  z-index: 99;
  transition:
    background 0.3s ease,
    transform 0.2s ease;
}

/* scroll top */

/* hero section */

.hero-section {
  min-height: calc(100vh - 88px);
}

.hero-content-wrapper {
  max-width: 576px;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(2px);
  padding: 20px;
  border-radius: 12px;
}

/* Page-specific overrides to disable dashboard sidebar layout */
body.index-page {
  margin-left: 0 !important;
  display: block !important;
  background: linear-gradient(135deg, #0f172a 0%, #1a2438 60%, #0f0f1f 100%);
}

.main {
  margin-left: 0 !important;
}
.categories-page-grid {
  max-width: 1200px;
  margin: 24px auto;
  padding: 20px;
}
/* extra spacing matching previous inline padding */
.categories-page-grid {
  padding-top: 0;
  padding-bottom: 60px;
  padding-left: 60px;
  padding-right: 60px;
}

/* Page title style */
.page-title {
  /* color: #93c5fd; */
  font-size: 2.3rem;
  font-weight: 800;
  margin: 0;
}

/* category cards animation */
.category-card {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.3s ease forwards;
}
.categories-page-grid .category-card:nth-child(1) {
  animation-delay: 0.1s;
}
.categories-page-grid .category-card:nth-child(2) {
  animation-delay: 0.2s;
}
.categories-page-grid .category-card:nth-child(3) {
  animation-delay: 0.3s;
}
.categories-page-grid .category-card:nth-child(4) {
  animation-delay: 0.4s;
}
.categories-page-grid .category-card:nth-child(5) {
  animation-delay: 0.5s;
}
.categories-page-grid .category-card:nth-child(6) {
  animation-delay: 0.6s;
}

/* Skeleton loader styles */
.skeleton {
  background: linear-gradient(
    90deg,
    rgba(30, 41, 59, 0.8) 25%,
    rgba(51, 65, 85, 0.6) 50%,
    rgba(30, 41, 59, 0.8) 75%
  );
  background-size: 200% 100%;
  animation: skeleton-loading 1.5s infinite;
}

.skeleton-card {
  background: linear-gradient(
    135deg,
    rgba(15, 23, 42, 0.8),
    rgba(30, 41, 59, 0.9)
  );
  border: 1px solid rgba(100, 150, 255, 0.2);
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  display: flex;
  flex-direction: column;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.skeleton-image {
  flex: 1 1 auto;
  position: relative;
  overflow: hidden;
}

.skeleton-meta {
  padding: 18px 16px;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.6));
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  min-height: 70px;
}

.skeleton-name {
  height: 20px;
  border-radius: 4px;
  flex: 1;
}

.skeleton-button {
  height: 32px;
  border-radius: 8px;
  width: 80px;
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
}

@keyframes skeleton-loading {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

@media (max-width: 992px) {
  /* .transparent-navbar {
    padding: 8px 12px;
    height: auto;
  }
  .transparent-navbar .navbar-brand img {
    height: 48px;
  } */
}
/* === BUTTON STYLES === */
.button {
  height: 44px;
  font-size: 18px;
  font-weight: 500;
  box-sizing: border-box;
  line-height: 1;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  background: #2f80ed;
  color: #ffffff;
  border: 1px solid transparent;
  position: relative;
  z-index: 1;
  padding: 0 25px;
  overflow: hidden;
}

.button i {
  padding-left: 20px;
}

.button::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  padding: 50%;
  border-radius: 50%;
  margin: auto;
  background: rgba(0, 0, 0, 0.1);
  z-index: -1;
  transition: all 0.4s linear;
  transform: translate3d(-50%, -50%, 0) scale(0);
}

.button:hover {
  color: #ffffff;
}

.button:hover::before {
  transform: translate3d(-50%, -50%, 0) scale(1.5);
}

.button.border-button {
  background: transparent;
  color: #2f80ed;
  border-color: #2f80ed;
}

.button.border-button::before {
  background: rgba(47, 128, 237, 0.16);
}

.button-lg {
  height: 64px;
}

.button-sm {
  height: 34px;
  font-size: 16px;
  font-weight: 400;
}

/* === SECTION TITLE STYLES === */
.section-title {
  font-weight: bold;
  margin-top: 15px;
  list-style: none;
  font-size: 1rem;
  text-decoration: underline 2px;
}

/* === HEADER-6 AND NAVBAR STYLES === */
/* .header {
  background: #ffffff;
} */

/* Override white header background when using transparent-navbar */

/* 
@media only screen and (min-width: 768px) and (max-width: 991px) {
  .header.header-6 .header-action {
    position: absolute;
    right: 60px;
  }
} */

/* @media (max-width: 767px) {
  .header.header-6 .header-action {
    position: absolute;
    right: 60px;
  }
}

.header.header-6 .header-action a {
  font-size: 16px;
  color: #585978;
  padding: 12px;
}

.header.header-6 .navbar {
  padding: 20px 0;
  border-radius: 0px;
  position: relative;
  transition: all 0.3s ease-out 0s;
} */

/* @media (min-width: 768px) and (max-width: 991px) {
  .navbar {
    padding: 17px 0;
  }
}

@media (max-width: 767px) {
  .navbar {
    padding: 17px 0;
  }
} */

.navbar-brand {
  padding: 0;
}

.navbar-brand img {
  max-width: 180px;
}

.navbar-toggler {
  padding: 0;
}

.navbar-toggler:focus {
  outline: none;
  box-shadow: none;
}

.navbar-toggler .toggler-icon {
  width: 27px;
  height: 3px;
  border-radius: 8px;
  background-color: #3bae7eff;
  display: block;
  margin: 2.5px 0;
  position: relative;
  transition: all 0.3s ease-out 0s;
}

.navbar-toggler.active .toggler-icon:nth-of-type(1) {
  transform: translateY(8px) rotate(45deg);
  top: 0;
}

.navbar-toggler.active .toggler-icon:nth-of-type(2) {
  opacity: 0;
  transform: scaleX(0);
}

.navbar-toggler.active .toggler-icon:nth-of-type(3) {
  transform: translateY(-8px) rotate(-45deg);
  top: 0;
}

/* Ensure toggler area does not clip transformed icons */
.navbar-toggler {
  overflow: visible;
}

@media (min-width: 768px) {
  .navbar-toggler {
    display: none !important;
  }
}

/* === FORM & CONTACT STYLES === */
/* interactive morphism form */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.interactive-form {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(6px);
  padding: 30px;
  border-radius: 16px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  transition: box-shadow 0.3s ease;
  opacity: 0;
  animation: fadeInUp 0.8s ease forwards;
}
.interactive-form:hover {
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.15);
}
.interactive-form .form-input {
  width: 100%;
  padding: 12px 18px;
  border: 1px solid #ccc;
  border-radius: 8px;
  transition:
    border-color 0.25s ease,
    box-shadow 0.25s ease;
}
.interactive-form .form-input:focus {
  outline: none;
  border-color: #2f80ed;
  box-shadow: 0 0 8px rgba(47, 128, 237, 0.4);
}
.interactive-form .single-input {
  position: relative;
  margin-bottom: 20px;
  opacity: 0;
  animation: fadeInUp 0.6s ease forwards;
}
.interactive-form .single-input:nth-of-type(1) {
  animation-delay: 0.1s;
}
.interactive-form .single-input:nth-of-type(2) {
  animation-delay: 0.2s;
}
.interactive-form .single-input:nth-of-type(3) {
  animation-delay: 0.3s;
}
.interactive-form .single-input:nth-of-type(4) {
  animation-delay: 0.4s;
}
.interactive-form .single-input:nth-of-type(5) {
  animation-delay: 0.5s;
}
.interactive-form .single-input:nth-of-type(6) {
  animation-delay: 0.6s;
}

.interactive-form .single-input i {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: #888;
  transition: color 0.25s;
}
/* .interactive-form .single-input .form-input:focus + i {
  color: #2f80ed;
} */

/* Floating label helpers */
.floating-label {
  position: relative;
}
.floating-label .form-input {
  padding-top: 20px;
}
.floating-label label {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  color: #888;
  transition: all 0.5s ease-in-out;
  font-size: 16px;
}
.floating-label .form-input:focus + label,
.floating-label .form-input:not(:placeholder-shown) + label,
.floating-label textarea:focus + label,
.floating-label textarea:not(:placeholder-shown) + label {
  top: 10px;
  font-size: 12px;
}

/* pulse effect on submit */
.interactive-form .form-button .button:after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: inherit;
  box-shadow: 0 0 0 0 rgba(47, 128, 237, 0.4);
  transition: box-shadow 0.6s ease-out;
}
.interactive-form .form-button .button:hover:after {
  box-shadow: 0 0 20px 10px rgba(47, 128, 237, 0.2);
}

/* dark interactive contact section */
#contact.contact-section {
  background: linear-gradient(135deg, #0f0f1f 0%, #1a1a2e 60%, #0f0f1f 100%);
  color: #e0e0e0;
  animation: fadeInUp 0.8s ease;
  padding: 60px 0;
}

#contact .section-title p {
  color: #e0e0e0;
}
#contact .interactive-form {
  background: rgba(0, 0, 0, 0.6);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.7);
}
#contact .interactive-form .form-input {
  background: #1a1a2e;
  color: #f1f1f1;
  border: 1px solid #444;
}
#contact .interactive-form .form-input:focus {
  border-color: #6c63ff;
  box-shadow: 0 0 8px rgba(108, 99, 255, 0.6);
}
#contact .interactive-form .floating-label label {
  color: #aaa;
}
#contact .interactive-form .form-input:focus + label,
#contact .interactive-form .form-input:not(:placeholder-shown) + label,
#contact .interactive-form textarea:focus + label,
#contact .interactive-form textarea:not(:placeholder-shown) + label {
  color: #f8577f;
}
#contact .interactive-form .single-input i {
  color: #bbb;
}
#contact .interactive-form .form-button .button {
  background: #2f80ed;
  color: #f1f1f1;
  border-radius: 5px;
}
#contact .interactive-form .form-button .button:hover {
  background: #2563eb;
  box-shadow: 0 8px 20px rgba(47, 128, 237, 0.4);
}

/* contact info cards */
#contact .left-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px; /* slightly larger gap between cards */
  height: 100%;
}
#contact .single-item {
  padding: 20px 24px; /* add a bit more internal space */
}
#contact .single-item {
  background: rgba(255, 255, 255, 0.08);
  padding: 18px 20px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  transition:
    background 0.3s ease,
    transform 0.2s;
}
#contact .single-item:hover {
  background: rgba(255, 255, 255, 0.12);
  transform: translateY(-2px);
}
#contact .single-item .icon {
  font-size: 24px;
  color: #6c63ff;
  margin-right: 16px;
}
#contact .single-item .text p {
  margin: 0;
  color: #e0e0e0;
}
#contact .map-embed {
  margin-top: 12px;
  overflow: hidden;
  border-radius: 12px;
}

/* ensure columns stretch equally */
#contact .row > .col-lg-8,
#contact .row > .col-lg-4 {
  display: flex;
  flex-direction: column;
}
#contact .row > .col-lg-4 {
  justify-content: center;
}

/* heading animations */
@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.contact-heading {
  color: #f8577f;
  opacity: 0;
  animation: fadeInDown 0.8s ease forwards;
}

/* === FOOTER STYLE-4 === */

/* fire footer */

:root {
  --bg-color: #f5f7fa;
  --footer-color: #000000;
  --text-color: #585978;
  --text-hover-color: #2f80ed;
}

.footer-section {
  position: relative;
  background: var(--footer-color);
  min-height: 250px;
  margin-top: 20rem;
  width: 100%;
}

.gooey-animations {
  position: absolute;
  top: 0;
  width: 120%;
  left: -10%;

  height: 6rem;
  background: var(--footer-color);
  transform: translateY(-99%);
  z-index: 0;
  filter: url("#liquid-effect");

  overflow: visible;
  pointer-events: none;
}

.particle {
  position: absolute;
  background: var(--footer-color);
  border-radius: 50%;
  top: 50%;
  left: var(--pos-x, 50%);
  width: var(--dim, 5rem);
  height: var(--dim, 5rem);
  transform: translate(-50%, -50%);

  animation: float-up var(--dur, 4s) ease-in infinite;
  animation-delay: var(--delay, 0s);
}

.footer-content {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0rem 2rem 2rem;
  text-align: center;
}

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

.column h5 {
  color: #fff;
  margin: 20px 0 ;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 1px;
}

.column p.desc {
  margin-bottom: 30px;
  text-indent: 12px;
  text-align: justify;
  color: var(--text-color);
}

.column a {
  color: var(--text-color);
  text-decoration: none;
  font-size: 1rem;
  font-weight: 400;
  transition:
    color 0.3s,
    transform 0.3s;
}

.column a:hover {
  color: var(--text-hover-color);
  transform: translateY(-3px);
  font-weight: 600;
}

.column .socials {
  margin: 0;
  margin-right: 10px;
  width: 32px;
  height: 32px;
  font-size: 16px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  border-radius: 50%;
  background: rgba(47, 129, 237, 0.07);
  color: #2f80ed;
  transition: all 0.3s ease;
}

.column a:hover .socials {
  background: #0051baff;
  color: #ffffff;
}

@keyframes float-up {
  0% {
    top: 50%;
    transform: translate(-50%, -50%) scale(1);
  }
  100% {
    top: calc(var(--uplift) * -1);
    transform: translate(-50%, -50%) scale(0);
  }
}

@media (max-width: 600px) {
  .footer-content {
    text-align: center;
  }
}

/* === CUSTOM PAGE LOAD ANIMATIONS === */
@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Apply animations to page elements on load */
.page-element {
  animation: slideInUp 0.6s ease forwards;
}

.page-element.delay-1 {
  animation-delay: 0.1s;
}

.page-element.delay-2 {
  animation-delay: 0.2s;
}

.page-element.delay-3 {
  animation-delay: 0.3s;
}

.page-element.delay-4 {
  animation-delay: 0.4s;
}

.page-element.delay-5 {
  animation-delay: 0.5s;
}

.page-element.scale {
  animation-name: scaleIn;
}

.page-element.header {
  animation-name: slideInDown;
}

/* Program page card grid */
.program-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(250px, 1fr));
  gap: 1.25rem;
  margin-top: 20px;
}

@media (max-width: 1100px) {
  .program-grid {
    grid-template-columns: repeat(2, minmax(240px, 1fr));
  }
}

@media (max-width: 760px) {
  .program-grid {
    grid-template-columns: 1fr;
  }
}

.program-card {
  position: relative;
  border-radius: 4px;
  overflow: hidden;
  min-height: 280px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-blend-mode: overlay;
  display: flex;
  align-items: flex-end;
  transition: all 0.35s cubic-bezier(0.23, 1, 0.32, 1);
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.1),
    0 0 0 1px rgba(255, 255, 255, 0.2),
    inset 0 1px 1px rgba(255, 255, 255, 0.2),
    inset 0 -1px 1px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.program-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.1) 0%,
    rgba(255, 255, 255, 0) 100%
  );
  pointer-events: none;
  z-index: 1;
}

.program-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow:
    0 20px 40px rgba(0, 0, 0, 0.15),
    0 0 0 1px rgba(255, 255, 255, 0.3),
    inset 0 1px 1px rgba(255, 255, 255, 0.3),
    inset 0 -1px 1px rgba(0, 0, 0, 0.15);
  cursor: pointer;
}

.program-card-title-overlay {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  padding: 1rem;
  background: linear-gradient(
    180deg,
    rgba(13, 25, 41, 0) 0%,
    rgba(13, 25, 41, 0.65) 50%,
    rgba(13, 25, 41, 0.8) 100%
  );
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  z-index: 2;
}

.active-overlay {
  background: rgba(0, 0, 0, 0.5);
}

.program-card-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: #f0f9ff;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.42);
  line-height: 1.3;
  margin: 0;
}

.program-card-duration {
  position: absolute;
  top: 0.7rem;
  right: 0.7rem;
  padding: 0.25rem 0.55rem;
  background: #2f80ed;
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  box-shadow: 0 2px 10px rgba(47, 128, 237, 0.35);
  text-transform: uppercase;
  letter-spacing: 0.4px;
  z-index: 3;
}

.program-modal-duration {
  margin-top: 0.28rem;
  font-size: 0.9rem;
  color: rgba(245, 245, 245, 0.95);
  font-weight: 500;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

@media (max-width: 768px) {
  .program-card {
    min-height: 260px;
  }

  .program-card-title {
    font-size: 1.1rem;
  }
}

/* Program Modal Styles */
.program-modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(0, 0, 0, 0.4) 0%,
    rgba(0, 0, 0, 0.6) 50%,
    rgba(0, 0, 0, 0.4) 100%
  );
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 10000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  overflow: hidden;
}

.program-modal-backdrop::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background:
    radial-gradient(
      circle at 20% 80%,
      rgba(90, 88, 221, 0.3) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 80% 20%,
      rgba(243, 38, 158, 0.2) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 40% 40%,
      rgba(34, 191, 248, 0.25) 0%,
      transparent 50%
    );
  animation: modal-bg-shift 8s ease-in-out infinite alternate;
}

.program-modal-backdrop::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image:
    radial-gradient(
      circle at 25% 25%,
      rgba(255, 59, 118, 0.3) 2px,
      transparent 2px
    ),
    radial-gradient(
      circle at 75% 75%,
      rgba(255, 59, 118, 0.2) 1px,
      transparent 1px
    ),
    radial-gradient(
      circle at 50% 50%,
      rgba(255, 59, 118, 0.1) 1.5px,
      transparent 1.5px
    );
  background-size:
    100px 100px,
    150px 150px,
    200px 200px;
  background-position:
    0 0,
    50px 50px,
    25px 25px;
  animation: modal-particles-float 20s linear infinite;
}

.program-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10001;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  padding: 2rem;
}

.program-modal.active,
.program-modal-backdrop.active,
.program-modal.active-overlay,
.program-modal-backdrop.active-overlay {
  opacity: 1;
  visibility: visible;
}

.program-modal-content {
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.1),
    rgba(255, 255, 255, 0.05)
  );
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.37),
    0 0 0 1px rgba(255, 255, 255, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    inset 0 -1px 0 rgba(255, 255, 255, 0.1);
  max-width: 700px;
  width: 100%;
  max-height: 80vh;
  overflow-y: auto;
  transform: scale(0.9) translateY(20px);
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  animation: modal-content-glow 4s ease-in-out infinite alternate;
}

.program-modal-content::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.08) 0%,
    rgba(255, 255, 255, 0.02) 50%,
    rgba(255, 255, 255, 0.05) 100%
  );
  border-radius: 24px;
  pointer-events: none;
  z-index: -1;
}

.program-modal.active .program-modal-content {
  transform: scale(1) translateY(0);
}

.program-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2rem 2rem 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
  position: sticky;
  top: 0;
  background: rgb(41, 45, 63);
  backdrop-filter: blur(100px);
  -webkit-backdrop-filter: blur(100px);
  z-index: 10002;
}

.program-modal-header::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 2rem;
  right: 2rem;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.2) 50%,
    transparent 100%
  );
}

.program-modal-header h2 {
  margin: 0;
  font-size: 1.8rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.95);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.95),
    rgba(255, 255, 255, 0.8)
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.program-modal-close {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  font-size: 1.5rem;
  color: rgba(255, 255, 255, 0.8);
  cursor: pointer;
  padding: 0.75rem;
  border-radius: 50%;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.program-modal-close:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.3);
  color: rgba(255, 255, 255, 0.95);
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.program-modal-body {
  padding: 1.5rem 2rem 2rem;
}

.program-modal-body p {
  margin: 0 0 2rem 0;
  font-size: 1.1rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.9);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.topics-section h3 {
  margin: 0 0 1.5rem 0;
  font-size: 1.4rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.95);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.topics-section h3::before {
  content: "\1F4D6";
  font-size: 1.5rem;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.3));
}

.topics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
}

.topic-card {
  display: flex;
  align-items: center;
  padding: 1.25rem;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.15),
    rgba(255, 255, 255, 0.08)
  );
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 16px;
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    inset 0 -1px 0 rgba(255, 255, 255, 0.1);
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  cursor: pointer;
  opacity: 0;
  transform: translateY(20px);
  animation: topicSlideIn 0.5s ease forwards;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  position: relative;
}

.topic-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.05) 0%,
    rgba(255, 255, 255, 0.02) 50%,
    rgba(255, 255, 255, 0.08) 100%
  );
  border-radius: 16px;
  pointer-events: none;
  z-index: -1;
}

.topic-card:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow:
    0 12px 40px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.3),
    inset 0 -1px 0 rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
}

.topic-icon {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  background: linear-gradient(135deg, #3b82f6, #1d4ed8);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.2rem;
  margin-right: 1rem;
  flex-shrink: 0;
}

.topic-content {
  flex: 1;
}

.topic-content h4 {
  margin: 0 0 0.5rem 0;
  font-size: 1rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.95);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
  line-height: 1.3;
}

.topic-level {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.topic-level.beginner {
  background: linear-gradient(135deg, #10b981, #059669);
  color: white;
}

.topic-level.intermediate {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: white;
}

.topic-level.advanced {
  background: linear-gradient(135deg, #ef4444, #dc2626);
  color: white;
}

.topic-arrow {
  color: rgba(255, 255, 255, 0.6);
  font-size: 1.2rem;
  margin-left: 1rem;
  transition: all 0.2s ease;
}

.topic-card:hover .topic-arrow {
  color: rgba(255, 255, 255, 0.9);
  transform: translateX(4px);
}

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

@media (max-width: 768px) {
  .program-modal {
    padding: 1rem;
  }

  .program-modal-content {
    max-height: 90vh;
  }

  .program-modal-header {
    padding: 1.5rem 1.5rem 1rem;
  }

  .program-modal-header h2 {
    font-size: 1.5rem;
  }

  .program-modal-body {
    padding: 1rem 1.5rem 1.5rem;
  }

  .topics-grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .topic-card {
    padding: 1rem;
  }

  .topic-content h4 {
    font-size: 0.95rem;
  }
}

/* Modal Background Animations */
@keyframes modal-bg-shift {
  0% {
    transform: translateX(-10px) translateY(-10px) scale(1);
    filter: hue-rotate(0deg);
  }
  50% {
    transform: translateX(10px) translateY(10px) scale(1.05);
    filter: hue-rotate(15deg);
  }
  100% {
    transform: translateX(-10px) translateY(-10px) scale(1);
    filter: hue-rotate(0deg);
  }
}

@keyframes modal-particles-float {
  0% {
    transform: translateX(0) translateY(0) rotate(0deg);
  }
  25% {
    transform: translateX(-20px) translateY(-30px) rotate(90deg);
  }
  50% {
    transform: translateX(30px) translateY(-20px) rotate(180deg);
  }
  75% {
    transform: translateX(-10px) translateY(20px) rotate(270deg);
  }
  100% {
    transform: translateX(0) translateY(0) rotate(360deg);
  }
}

/* Additional floating elements for enhanced glassmorphism */
.program-modal-backdrop.active::before {
  animation: modal-bg-shift 12s ease-in-out infinite;
}

.program-modal-backdrop.active::after {
  animation: modal-particles-float 25s linear infinite;
}

/* Floating orbs for enhanced glassmorphism effect */
.program-modal-backdrop .floating-orb {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.5) 0%,
    rgba(199, 199, 199, 0.4) 50%,
    transparent 100%
  );
  pointer-events: none;
}

.program-modal-backdrop.active .floating-orb:nth-child(1) {
  width: 80px;
  height: 80px;
  top: 20%;
  left: 10%;
  animation: float-orb-1 15s ease-in-out infinite;
}

.program-modal-backdrop.active .floating-orb:nth-child(2) {
  width: 60px;
  height: 60px;
  top: 60%;
  right: 15%;
  animation: float-orb-2 18s ease-in-out infinite reverse;
}

.program-modal-backdrop.active .floating-orb:nth-child(3) {
  width: 100px;
  height: 100px;
  bottom: 25%;
  left: 70%;
  animation: float-orb-3 22s ease-in-out infinite;
}

.program-modal-backdrop.active .floating-orb:nth-child(4) {
  width: 40px;
  height: 40px;
  top: 40%;
  left: 60%;
  animation: float-orb-4 12s ease-in-out infinite reverse;
}

.program-modal-backdrop.active .floating-orb:nth-child(5) {
  width: 70px;
  height: 70px;
  bottom: 10%;
  right: 30%;
  animation: float-orb-5 20s ease-in-out infinite;
}

@keyframes float-orb-1 {
  0%,
  100% {
    transform: translateY(0) translateX(0) scale(1);
    opacity: 0.3;
  }
  25% {
    transform: translateY(-20px) translateX(15px) scale(1.1);
    opacity: 0.6;
  }
  50% {
    transform: translateY(-10px) translateX(-10px) scale(0.9);
    opacity: 0.4;
  }
  75% {
    transform: translateY(15px) translateX(20px) scale(1.05);
    opacity: 0.5;
  }
}

@keyframes float-orb-2 {
  0%,
  100% {
    transform: translateY(0) translateX(0) scale(1);
    opacity: 0.25;
  }
  33% {
    transform: translateY(25px) translateX(-15px) scale(1.2);
    opacity: 0.5;
  }
  66% {
    transform: translateY(-15px) translateX(10px) scale(0.8);
    opacity: 0.35;
  }
}

@keyframes float-orb-3 {
  0%,
  100% {
    transform: translateY(0) translateX(0) scale(1);
    opacity: 0.2;
  }
  20% {
    transform: translateY(30px) translateX(-25px) scale(1.3);
    opacity: 0.4;
  }
  40% {
    transform: translateY(-20px) translateX(15px) scale(0.9);
    opacity: 0.3;
  }
  60% {
    transform: translateY(10px) translateX(-10px) scale(1.1);
    opacity: 0.35;
  }
  80% {
    transform: translateY(-25px) translateX(20px) scale(0.95);
    opacity: 0.25;
  }
}

@keyframes float-orb-4 {
  0%,
  100% {
    transform: translateY(0) translateX(0) scale(1);
    opacity: 0.4;
  }
  50% {
    transform: translateY(-30px) translateX(25px) scale(1.4);
    opacity: 0.7;
  }
}

@keyframes float-orb-5 {
  0%,
  100% {
    transform: translateY(0) translateX(0) scale(1);
    opacity: 0.3;
  }
  25% {
    transform: translateY(20px) translateX(-20px) scale(1.2);
    opacity: 0.5;
  }
  50% {
    transform: translateY(-25px) translateX(15px) scale(0.85);
    opacity: 0.4;
  }
  75% {
    transform: translateY(15px) translateX(-10px) scale(1.1);
    opacity: 0.45;
  }
}

@keyframes modal-content-glow {
  0% {
    box-shadow:
      0 8px 32px rgba(0, 0, 0, 0.37),
      0 0 0 1px rgba(255, 255, 255, 0.1),
      inset 0 1px 0 rgba(255, 255, 255, 0.2),
      inset 0 -1px 0 rgba(255, 255, 255, 0.1);
  }
  100% {
    box-shadow:
      0 12px 40px rgba(0, 0, 0, 0.4),
      0 0 0 1px rgba(255, 255, 255, 0.15),
      inset 0 1px 0 rgba(255, 255, 255, 0.25),
      inset 0 -1px 0 rgba(255, 255, 255, 0.15),
      0 0 60px rgba(255, 255, 255, 0.05);
  }
}
