@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@100;200;300;400;500;600;700;800;900&display=swap");

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

:root {
  --primary: #0b2d79;
  --secondary: #6d2bdd;
  --white: #ffffff;
  --dark: #1e293b;
  --header-height: 80px;
  --light-bg: #f8fafc;
  --card-bg: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
}
a {
  text-decoration: none;
}

body {
  color: var(--dark);
  line-height: 1.6;
  overflow-x: hidden;
  background: linear-gradient(135deg, #f5f7fa 0%, #e4e8f0 100%);
  min-height: 100vh;
}

/* Move to Top Button */
.move-to-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(37, 99, 235, 0.85);
  backdrop-filter: blur(10px);
  border: none;
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25), 0 0 0 1px rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
  opacity: 0;
  transform: translateY(20px);
  z-index: 999;
}

.move-to-top.visible {
  opacity: 1;
  transform: translateY(0);
}

.move-to-top:hover {
  background: rgba(37, 99, 235, 0.95);
  transform: scale(1.05);
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.3), 0 0 0 2px rgba(124, 58, 237, 0.5),
    0 0 15px rgba(124, 58, 237, 0.4);
}

.move-to-top:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.5), 0 6px 25px rgba(0, 0, 0, 0.3);
}

.move-to-top i {
  font-size: 1.5rem;
  transition: transform 0.3s ease;
}

.move-to-top:hover i {
  transform: translateY(-2px);
}

/* Progress ring (optional) */
.progress-ring {
  position: absolute;
  top: -4px;
  left: -4px;
  width: calc(100% + 8px);
  height: calc(100% + 8px);
  border-radius: 50%;
  background: conic-gradient(
    var(--secondary) var(--progress, 0%),
    transparent 0
  );
  -webkit-mask: radial-gradient(transparent 65%, black 66%);
  mask: radial-gradient(transparent 65%, black 66%);
  z-index: -1;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.move-to-top:hover .progress-ring {
  opacity: 1;
}

/* Tooltip */
.tooltip {
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(15, 23, 42, 0.9);
  color: white;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 0.875rem;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  margin-bottom: 8px;
  backdrop-filter: blur(10px);
}

.tooltip:after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border-width: 4px;
  border-style: solid;
  border-color: rgba(15, 23, 42, 0.9) transparent transparent transparent;
}

.move-to-top:hover .tooltip {
  opacity: 1;
  visibility: visible;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
  .move-to-top {
    width: 48px;
    height: 48px;
    bottom: 16px;
    right: 16px;
  }

  .move-to-top i {
    font-size: 1.25rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .move-to-top {
    transition: none;
  }

  .move-to-top i {
    transition: none;
  }

  .tooltip {
    transition: none;
  }
}

/* Header Styles */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  display: flex;
  align-items: center;
  padding: 0 5%;
  z-index: 1000;
  transition: all 0.3s ease;
  background: transparent;
}

.header.scrolled {
  background: linear-gradient(135deg, #0b2d79 0%, #6d2bdd 100%);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.logo-icon {
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  width: 55px;
  position: relative;
  top: 5px;
  margin-right: 10px;
}

.logo-text {
  font-size: 2rem;
  font-weight: 600;
  color: var(--white);
}

.nav-menu {
  display: flex;
  list-style: none;
  margin-left: auto;
}

.nav-menu li {
  margin-left: 30px;
  position: relative;
}

.nav-menu a {
  color: var(--white);
  text-decoration: none;
  font-weight: 500;
  font-size: 1rem;
  padding: 8px 0;
  position: relative;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
}

.nav-menu a:hover {
  color: rgba(202, 202, 202, 0.9);
}

/* Dropdown Styles */
.dropdown {
  position: relative;
}

.dropdown-toggle {
  cursor: pointer;
}

.dropdown-toggle i {
  margin-left: 5px;
  transition: transform 0.3s ease;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  width: 220px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  padding: 15px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.3s ease;
  z-index: 1000;
  list-style-type: none;
}

.dropdown-menu li {
  margin: 0;
  padding: 0;
  list-style-type: none;
}

.dropdown-menu a {
  color: var(--dark);
  padding: 12px 20px;
  display: block;
  font-size: 0.95rem;
  transition: all 0.3s ease;
}

.dropdown-menu a:hover {
  background: rgba(37, 99, 235, 0.1);
  color: var(--secondary);
  transform: translateX(5px);
}

.dropdown-menu a:hover:after {
  width: 0;
}

.dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown:hover .dropdown-toggle i {
  transform: rotate(180deg);
}

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  width: 30px;
  height: 30px;
  cursor: pointer;
}

.menu-toggle span {
  width: 100%;
  height: 3px;
  background: var(--white);
  margin: 2px 0;
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* Sidebar Styles */
.sidebar {
  position: fixed;
  top: 0;
  right: -350px;
  width: 350px;
  height: 100vh;
  background: linear-gradient(135deg, #0b2d79 0%, #6d2bdd 100%);
  box-shadow: -5px 0 25px rgba(0, 0, 0, 0.2);
  padding: 30px;
  z-index: 1001;
  display: flex;
  flex-direction: column;
  transition: right 0.5s ease;
  overflow-y: auto;
}

.sidebar.active {
  right: 0;
}

.sidebar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 40px;
}

.sidebar-logo {
  display: flex;
  align-items: center;
}

.sidebar-logo-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  width: 55px;
  position: relative;
  top: 5px;
  margin-right: 10px;
}

.sidebar-logo-text {
  font-weight: 600;
  font-size: 1.8rem;
  color: var(--white);
}

.close-btn {
  background: none;
  border: none;
  color: var(--white);
  font-size: 28px;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.close-btn:hover {
  transform: rotate(90deg);
}

.sidebar-nav {
  list-style: none;
  margin-bottom: auto;
}

.sidebar-nav li {
  margin-bottom: 15px;
}

.sidebar-nav a {
  display: flex;
  align-items: center;
  padding: 15px 20px;
  color: var(--white);
  text-decoration: none;
  border-radius: 10px;
  transition: all 0.3s ease;
  font-weight: 500;
  font-size: 1.1rem;
}

.sidebar-nav a:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateX(5px);
}

.sidebar-nav i {
  margin-right: 15px;
  font-size: 20px;
  width: 24px;
  text-align: center;
}

/* Sidebar Dropdown Styles */
.sidebar-dropdown {
  position: relative;
}

.sidebar-dropdown-toggle {
  cursor: pointer;
  justify-content: space-between;
}

.sidebar-dropdown-toggle i:last-child {
  transition: transform 0.3s ease;
}

.sidebar-dropdown-menu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
  padding-left: 20px;
}

.sidebar-dropdown-menu li {
  margin-bottom: 10px;
  list-style-type: none;
}

.sidebar-dropdown-menu a {
  font-size: 1rem;
  padding: 12px 20px;
}

.sidebar-dropdown.active .sidebar-dropdown-menu {
  max-height: 500px;
  list-style-type: none;
}

.sidebar-dropdown.active .sidebar-dropdown-toggle i:last-child {
  transform: rotate(180deg);
}

.social-links {
  display: flex;
  justify-content: center;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  margin: 0 8px;
  font-size: 18px;
  transition: all 0.3s ease;
}

.social-links a:hover {
  background: #d4af37;
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(212, 175, 55, 0.4);
}

/* Overlay */
.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(5px);
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.overlay.active {
  opacity: 1;
  visibility: visible;
}

/* Programs Hero Section */
.programs-hero {
  padding: 160px 5% 80px;
  text-align: center;
  background: linear-gradient(
      135deg,
      rgba(11, 45, 121, 0.9) 0%,
      rgba(109, 43, 221, 0.85) 100%
    ),
    url("https://images.unsplash.com/photo-1522202176988-66273c2fd55f?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1771&q=80")
      no-repeat center center/cover;
  color: var(--white);
  position: relative;
}

.programs-hero-content {
  max-width: 800px;
  margin: 0 auto;
}

.programs-hero h1 {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 20px;
  line-height: 1.2;
}

.programs-hero p {
  font-size: 1.2rem;
  margin-bottom: 40px;
  opacity: 0.9;
}

/* Programs Grid Section */
.programs-grid-section {
  padding: 80px 5%;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-header h2 {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 20px;
}

.section-header p {
  font-size: 1.1rem;
  color: var(--dark);
  max-width: 700px;
  margin: 0 auto;
}

.programs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-bottom: 60px;
}

.program-card {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
  transition: all 0.4s ease;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.program-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.program-img {
  height: 200px;
  overflow: hidden;
}

.program-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.program-card:hover .program-img img {
  transform: scale(1.05);
}

.program-content {
  padding: 30px;
}

.program-icon {
  width: 70px;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  color: white;
  border-radius: 50%;
  font-size: 28px;
  margin-bottom: 20px;
}

.program-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 15px;
  color: var(--primary);
}

.program-description {
  color: var(--dark);
  margin-bottom: 25px;
  line-height: 1.7;
}

.program-features {
  margin-bottom: 25px;
}

.program-feature {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
  font-size: 0.95rem;
}

.program-feature i {
  color: var(--secondary);
  margin-right: 10px;
}

.program-cta {
  display: inline-block;
  padding: 12px 30px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  color: white;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
}

.program-cta:hover {
  box-shadow: 0 10px 20px rgba(109, 43, 221, 0.3);
  transform: translateY(-3px);
}

/* All Programs CTA */
.all-programs-cta {
  /* background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%); */
  background: linear-gradient(rgba(11, 45, 121, 0.8), rgba(109, 43, 221, 0.8)),
    url("https://images.unsplash.com/photo-1486406146926-c627a92ad1ab?q=80&w=1170&auto=format&fit=crop&ixlib=rb-4.1.0&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D")
      center/cover no-repeat;
  padding: 80px 5%;
  text-align: center;
  color: white;
  border-radius: 20px;
  margin: 0 5% 80px;
}

.all-programs-cta h2 {
  font-size: 2.5rem;
  margin-bottom: 20px;
}

.all-programs-cta p {
  font-size: 1.1rem;
  max-width: 700px;
  margin: 0 auto 40px;
  opacity: 0.9;
}

.cta-button {
  display: inline-block;
  padding: 15px 40px;
  background: white;
  color: var(--primary);
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
}

.cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* Floating Elements */
.floating-element {
  position: absolute;
  border-radius: 50%;
  background: linear-gradient(
    135deg,
    rgba(11, 45, 121, 0.1) 0%,
    rgba(109, 43, 221, 0.1) 100%
  );
  backdrop-filter: blur(5px);
  z-index: -1;
}

.float-1 {
  width: 100px;
  height: 100px;
  top: 20%;
  left: 10%;
  animation: float 8s ease-in-out infinite;
}

.float-2 {
  width: 150px;
  height: 150px;
  bottom: 10%;
  right: 10%;
  animation: float 10s ease-in-out infinite 1s;
}

.float-3 {
  width: 80px;
  height: 80px;
  top: 40%;
  right: 15%;
  animation: float 7s ease-in-out infinite 0.5s;
}

@keyframes float {
  0% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-20px) rotate(10deg);
  }
  100% {
    transform: translateY(0) rotate(0deg);
  }
}

/* Responsive Design */
@media (max-width: 992px) {
  .nav-menu {
    display: none;
  }

  .menu-toggle {
    display: flex;
    margin-left: auto;
  }

  .programs-hero h1 {
    font-size: 2.8rem;
  }
}

@media (max-width: 768px) {
  .programs-hero {
    padding: 140px 5% 60px;
  }

  .programs-hero h1 {
    font-size: 2.3rem;
  }

  .programs-hero p {
    font-size: 1.1rem;
  }

  .section-header h2 {
    font-size: 2rem;
  }
}

@media (max-width: 480px) {
  .programs-hero h1 {
    font-size: 2rem;
  }

  .logo-text {
    font-size: 1.2rem;
  }

  .program-content {
    padding: 20px;
  }
}
