/* Colors */
:root {
  --primary: #0a1a2f;
  --secondary-gradient: linear-gradient(90deg, #d4af37, #f1e08a);
  --tertiary: #f5f1ea;
  --accent: #2bb5b5;
  --card-height: 500px;
   --bg-color: #0a0a23;
    --text-color: #fff;
      --primary-color: #646cff;
      --card-bg: #141432;
      --transition: 0.3s ease-in-out;
}
/* Scrollbar Customization */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: var(--tertiary);
}
::-webkit-scrollbar-thumb {
  background-color: var(--primary);
  border-radius: 10px;
  border: 2px solid var(--tertiary);
}
/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
.institute-hero {
      background: url("https://picsum.photos/1920/1080?blur") no-repeat center center/cover;
      height: 90vh;
      display: flex;
      justify-content: center;
      align-items: center;
      text-align: center;
      color: white;
      padding: 0 20px;
    }

    .institute-hero h1 {
      font-size: 2.5rem;
      background: rgba(0, 0, 0, 0.5);
      padding: 15px 25px;
      border-radius: 8px;
    }

    /* Content Sections */
    .institute-section {
      padding: 60px 20px;
      max-width: 1200px;
      margin: auto;
    }

    .institute-section h2 {
      font-size: 2rem;
      margin-bottom: 15px;
      text-align: center;
    }

    .institute-section p {
      max-width: 800px;
      margin: auto;
      font-size: 1.1rem;
      text-align: center;
      color: #555;
    }
/* Loader */
#loader {
  position: fixed;
  inset: 0;
  background: var(--primary);
  z-index: 9999;
  animation: fadeOut 1s ease forwards;
  animation-delay: 1.5s;
}

@keyframes fadeOut {
  to {
    opacity: 0;
    visibility: hidden;
  }
}

/* Body & Sections */
body {
  font-family: 'Segoe UI', sans-serif;
  background: var(--tertiary);
  color: var(--primary);
  scroll-behavior: smooth;
  transition: all 0.3s ease;
}

.section {
  min-height: 100vh;
  padding: 4rem 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
}

/* Header */
.header {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--primary);
  color: white;
  border-radius: 50px;
  padding: 0.8rem 2rem;
  width: 90%;
  max-width: 1100px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  transition: all 0.3s ease;
}

/* Logo */
.logo img {
  height: 40px;
  max-width: 120px;
  object-fit: contain;
  transition: transform 0.3s ease;
}
.logo:hover img {
  transform: scale(1.05);
}

/* Hide login in mobile header initially */

/* Show login button inside dropdown menu */

/* Modal Styling */
/* Nav Links */
.nav-links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
}

.nav-links a {
  color: white;
  text-decoration: none;
  position: relative;
  transition: color 0.3s ease;
}

.nav-links a::after {
  content: '';
  position: absolute;
  width: 0%;
  height: 2px;
  left: 0;
  bottom: -3px;
  background: var(--accent);
  transition: 0.3s;
}

.nav-links a:hover::after {
  width: 100%;
}
#login-btn:hover {
  transform: scale(1.05);
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background: white;
  border-radius: 2px;
}

/* Mobile Menu */
.mobile-menu {
  display: none;
  flex-direction: column;
  background: var(--primary);
  position: fixed;
  top: 80px;
  right: 20px;
  width: 80%;
  max-width: 300px;
  border-radius: 20px;
  padding: 1rem;
  z-index: 999;
  box-shadow: 0 8px 16px rgba(0,0,0,0.3);
}

.mobile-menu ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.mobile-menu a {
  color: white;
  text-decoration: none;
  font-size: 1.1rem;
}
/* Popup Overlay */
.popup-container {
  position: fixed;
  inset: 0;
  background-color: rgba(10, 26, 47, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  display: none;
}

/* Popup Content Box */
.popup-content {
  background: var(--tertiary);
  color: var(--primary);
  border-radius: 20px;
  padding: 2rem;
  max-width: 600px;
  width: 90%;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  position: relative;
  animation: popupSlide 0.4s ease-out;
   max-height: 90vh; /* Important: prevent cutoff */
  overflow-y: auto; /* Scroll inside if needed */
  box-sizing: border-box;
}

/* Slide-in animation */
@keyframes popupSlide {
  from {
    transform: scale(0.9);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

/* Close Button */
.close-btn {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 1.8rem;
  cursor: pointer;
  color: var(--primary);
}

/* Form Styling */
form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group label {
  font-weight: 600;
  margin-bottom: 5px;
}

.form-group input,
.form-group select {
  padding: 0.6rem;
  border: 1px solid var(--primary);
  border-radius: 10px;
  font-size: 1rem;
  background-color: white;
  color: var(--primary);
}

.form-group input:focus,
.form-group select:focus {
  outline: 2px solid var(--accent);
}

/* Submit Button */
.submit-btn {
  padding: 0.8rem;
  border: none;
  border-radius: 30px;
  background: var(--secondary-gradient);
  color: var(--primary);
  font-weight: bold;
  cursor: pointer;
  font-size: 1rem;
  transition: transform 0.3s ease;
}

.submit-btn:hover {
  transform: scale(1.05);
}
.hero-section {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 0 !important;
}

.hero-video {
  position: absolute;
  top: 0;
  left: 0;
  min-width: 100%;
  min-height: 100%;
  object-fit: cover;
  z-index: -1;
  filter: brightness(0.6);
}

/* Foreground Content */
.hero-content {
  z-index: 1;
  text-align: center;
  color: white;
  padding: 0 1.5rem;
  max-width: 90%;
}

.hero-content h1 {
  font-size: 2.8rem;
  line-height: 1.3;
  font-weight: 700;
  text-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
  animation: fadeInUp 1s ease-in-out;
}

.hero-content h1 span {
  background: var(--secondary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-cta {
  display: inline-block;
  margin-top: 2rem;
  padding: 0.8rem 1.8rem;
  background: var(--secondary-gradient);
  color: var(--primary);
  border-radius: 30px;
  font-weight: bold;
  font-size: 1.1rem;
  text-decoration: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
}

.hero-cta:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.35);
}

/* Hero Animation */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.custom-cursor {
  position: fixed;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.3);
  pointer-events: none;
  mix-blend-mode: difference; /* ensures visibility over light/dark */
  transform: translate(-50%, -50%);
  transition: transform 0.1s ease;
  z-index: 9999;
  display: none;
}

/* Show custom cursor over #home section only */
#home:hover ~ .custom-cursor {
  display: block;
}
.about-mission-section {
  background: url('/res/About-bg.png') center/cover no-repeat;
  padding: 60px 20px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.about-mission-container {
  display: flex;
  gap: 30px;
  max-width: 1200px;
  width: 100%;
  flex-wrap: wrap;
}

.about-mission-panel {
  flex: 1 1 45%;
  background: var(--primary); /* dark navy overlay */
  color: #fff;
  padding: 30px;
  border-radius: 12px;
  backdrop-filter: blur(4px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.about-mission-panel h2 {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 15px;
  text-align: center;
}

.about-mission-panel p {
  font-size: 1rem;
  line-height: 1.6;
  text-align: justify;
}
.programs-section {
  position: relative;
  background-image: url('/res/programs-bg.png');
  background-attachment: fixed;
  background-size: cover;
  background-position: center;
  padding: 100px 20px;
  text-align: center;
  color: white;
}

.section-heading {
  font-size: 3rem;
  margin-bottom: 50px;
  color: var(--primary);
  z-index: 2;
  position: relative;
}

.programs-container {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
  z-index: 2;
  position: relative;
}

.program-card {
  flex: 1;
  min-width: 280px;
  background-size: cover;
  background-position: center;
  height: 600px;
  border-radius: 20px;
  overflow: hidden;
  position: relative;
  transition: transform 0.3s ease;
  box-shadow: 0 8px 30px rgba(0,0,0,0.3);
}

/* Card Overlay & Content */
.program-content {
  background-color: rgba(0,0,0,0.6);
  height: 100%;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  transition: background 0.3s ease;
  position: relative;
  text-align: left;
  overflow: auto;
}

.program-content h3 {
  font-size: clamp(1rem, 2vw, 1.5rem);
  margin-bottom: 20px;
  font-weight: bold;
  word-wrap: break-word;
}

.program-details {
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  transition: all 0.4s ease;
}

.program-card:hover .program-details {
  opacity: 1;
  max-height: 500px;
}

.program-details ul {
  text-align: left;
  padding-left: 20px;
  margin-bottom: 20px;
}

.program-details li {
  margin-bottom: 10px;
}

.download-btn {
  background: var(--secondary-gradient);
  border: none;
  padding: 0.1rem 0.5rem;
  border-radius: 30px;
  color: var(--primary);
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.3s ease;
  text-decoration: none;
}

.download-btn:hover {
  transform: scale(1.10);
}
.contact-section {
  padding: 80px 20px;
  background-image: url(/res/contact-hero.jpg);
  color: white;
}
.contact-container {
  max-width: 1200px;
  margin: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  justify-content: space-between;
  align-items: flex-start;
}

.contact-info, .contact-form {
  flex: 1;
  min-width: 300px;
  background-color: var(--primary);
  padding: 30px;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.contact-info h2,
.contact-form h2 {
  font-size: 24px;
  margin-bottom: 20px;
  color: #ffffff;
}

.contact-info p {
  margin-bottom: 12px;
  font-size: 16px;
}

.form-group {
  margin-bottom: 20px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 14px;
  border: none;
  border-radius: 10px;
  background: #f8fafc;
  font-size: 15px;
  color: #0f172a;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: 2px solid var(--accent);
}

.submit-btn {
  background-color: #facc15;
  color: var(--primary);
  padding: 14px 30px;
  border: none;
  border-radius: 10px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s ease;
}

.submit-btn:hover {
  background-color: #eab308;
}
  .footer {
    background-color: var(--primary);
    color: #ffffff;
    padding: 60px 5% 20px;
    font-family: 'Segoe UI', sans-serif;
  }
  
  .footer-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 40px;
  }
  
  .footer-left {
    flex: 1;
    min-width: 260px;
  }
  
  .footer-logo {
    max-width: 160px;
    height: auto;
    margin-bottom: 15px;
  }
  
  .footer-about {
    font-size: 0.95rem;
    margin-bottom: 20px;
    line-height: 1.6;
    color: #ffffff;
  }
  
  .footer-socials a {
    margin-right: 15px;
    color: white;
    font-size: 1.2rem;
    transition: color 0.3s ease;
  }
  
  .footer-socials a:hover {
    color: var(--accent);
  }
  
  .footer-right {
    display: flex;
    gap: 60px;
    flex: 2;
    flex-wrap: wrap;
    justify-content: space-around;
    min-width: 260px;
  }
  
  .footer-links-group {
    min-width: 150px;
  }
  
  .footer-links-group h4 {
    margin-bottom: 15px;
    font-size: 1.1rem;
    color: #ffffff;
  }
  
  .footer-links-group ul {
    list-style: none;
    padding: 0;
    margin: 0;
  }
  
  .footer-links-group ul li {
    margin-bottom: 10px;
  }
  
  .footer-links-group ul li a {
    color: #ffffff;
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.3s ease;
  }
  
  .footer-links-group ul li a:hover {
    color: var(--accent);
  }
  
  .footer-bottom {
    text-align: center;
    margin-top: 40px;
    font-size: 0.85rem;
    color: #ddd;
  }
  .privacy-container {
  max-width: 960px;
  margin: auto;
  padding: 2rem;
}
.privacy-hero {
  background: linear-gradient(
      rgba(0, 51, 102, 0.7),
      rgba(0, 51, 102, 0.7)
    );
  color: white;
  padding: 4rem 0;
  text-align: center;
}

.privacy-hero h1 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

/* Main Content */
.privacy-content h2 {
  margin-top: 2rem;
  font-size: 1.5rem;
  border-left: 4px solid #003366;
  padding-left: 0.75rem;
}

.privacy-content p {
  margin-top: 1rem;
  font-size: 1rem;
}
.terms-container {
  max-width: 960px;
  margin: auto;
  padding: 2rem;
}

/* Hero Section */
.terms-hero {
  background: linear-gradient(
      rgba(0, 51, 102, 0.7),
      rgba(0, 51, 102, 0.7)
    );
  color: white;
  padding: 4rem 0;
  text-align: center;
}

.terms-hero h1 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

.terms-content h2 {
  margin-top: 2rem;
  font-size: 1.5rem;
  border-left: 4px solid #003366;
  padding-left: 0.75rem;
  color: #003366;
}

.terms-content p {
  margin-top: 1rem;
  font-size: 1rem;
}

.terms-content ul {
  padding-left: 1.5rem;
  margin-top: 0.5rem;
}

.terms-content ul li {
  margin-bottom: 0.5rem;
}
.support-container {
  max-width: 1080px;
  margin: auto;
  padding: 2rem;
}

/* Hero Section */
.support-hero {
  background: linear-gradient(
    rgba(0, 51, 102, 0.75),
    rgba(0, 51, 102, 0.75)
  ), url('your-support-image.jpg') no-repeat center center/cover;
  color: #fff;
  padding: 4rem 0;
  text-align: center;
}

.support-hero h1 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

.support-hero p {
  font-size: 1.2rem;
  max-width: 720px;
  margin: auto;
}

/* Support Grid */
.support-section h2 {
  font-size: 2rem;
  margin-bottom: 2rem;
  color: #003366;
  text-align: center;
}

.support-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.support-card {
  background-color: #f9f9f9;
  border-left: 4px solid #003366;
  padding: 1.25rem 1rem;
  border-radius: 8px;
  transition: 0.3s ease;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.support-card h3 {
  color: #003366;
  margin-bottom: 0.5rem;
}

.support-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
}

/* Contact Section */
.support-contact {
  background-color: #003366;
  color: white;
  padding: 3rem 1rem;
  text-align: center;
}

.contact-inner h2 {
  font-size: 2rem;
  margin-bottom: 0.75rem;
}

.contact-inner p {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
}

.support-btn {
  background-color: var(--accent);
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 5px;
  font-weight: bold;
  transition: 0.3s ease;
}

.support-btn:hover {
  background-color: #e55b00;
}
.team-hero {
      text-align: center;
      padding: 6rem 1rem 3rem;
    }

    .team-hero h1 {
      font-size: 2.5rem;
      font-weight: 700;
    }

    .team-hero h1 span {
      font-family: "Brush Script MT", cursive;
      color: var(--accent);
      font-size: 3rem;
    }

    .team-hero p {
      margin-top: 1rem;
      font-size: 1.2rem;
      color: #666;
      font-style: italic;
    }

    /* Team Section */
    .team {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
      gap: 2rem;
      padding: 3rem 5%;
    }

    .team-card {
      position: relative;
      overflow: hidden;
      border-radius: 20px;
      box-shadow: 0 8px 20px rgba(0,0,0,0.1);
      cursor: pointer;
      background: #fff;
      transition: transform 0.3s ease, box-shadow 0.3s ease;
    }

    .team-card:hover {
      transform: translateY(-10px);
      box-shadow: 0 12px 30px rgba(0,0,0,0.15);
    }

    .team-card img {
      width: 100%;
      height: 280px;
      object-fit: cover;
      border-radius: 20px 20px 0 0;
      transition: transform 0.5s ease;
    }

    .team-card:hover img {
      transform: scale(1.1);
    }

    .team-info {
      padding: 1.5rem;
      text-align: center;
      background: #fff;
      border-radius: 0 0 20px 20px;
      transition: all 0.4s ease;
    }

    .team-info h3 {
      font-size: 1.3rem;
      margin-bottom: 0.3rem;
    }

    .team-info p {
      font-size: 0.95rem;
      color: #777;
    }

    /* Hover Description */
    .team-description {
      position: absolute;
      inset: 0;
      background: rgba(20, 20, 50, 0.95);
      color: #fff;
      display: flex;
      justify-content: center;
      align-items: center;
      text-align: center;
      opacity: 0;
      padding: 1.5rem;
      transform: translateY(100%);
      transition: all 0.5s ease;
      font-size: 0.95rem;
      line-height: 1.5;
    }

    .team-card:hover .team-description {
      opacity: 1;
      transform: translateY(0);
    }

    /* Animation on Load */
    .fade-up {
      opacity: 0;
      transform: translateY(40px);
      animation: fadeUp 0.8s ease forwards;
    }

    @keyframes fadeUp {
      to {
        opacity: 1;
        transform: translateY(0);
      }
    }
/* Responsive */

@media (max-width: 768px) {
  .nav {
    display: none;
  }
  .hamburger {
    display: flex;
  }
  .hero-content h1 {
    font-size: 2rem;
  }

  .hero-cta {
    font-size: 1rem;
    padding: 0.6rem 1.5rem;
  }
 .section-slider {
    display: flex;
    flex-direction: column;
  }

  .slide {
    height: auto;
    min-height: 100vh;
    position: relative;
    opacity: 1;
    display: block !important;
  }

  .nav-btn {
    display: none;
  }

  .content-card h2 {
    font-size: 2rem;
  }

  .content-card {
    margin: 3rem auto;
  }
   .content-card p {
    opacity: 1 !important;
    max-height: none !important;
  }
  .programs-container {
    flex-direction: column;
  }

  .program-details {
    opacity: 1 !important;
    max-height: none !important;
  }

  .program-content {
    background-color: rgba(0, 0, 0, 0.7);
  }

  .program-card {
    height: auto;
  }
  .contact-container {
    flex-direction: column;
  }
  .footer-container {
    flex-direction: column;
    align-items: flex-start;
    }
    
  .footer-right {
    flex-direction: column;
    gap: 30px;
    margin-top: 30px;
    }
    .privacy-hero h1 {
    font-size: 2rem;
  }

  .privacy-container {
    padding: 1.5rem;
  }

  .privacy-content h2 {
    font-size: 1.25rem;
  }
   .terms-hero h1 {
    font-size: 2rem;
  }

  .terms-container {
    padding: 1.5rem;
  }

  .terms-content h2 {
    font-size: 1.25rem;
  }
  .support-hero h1 {
    font-size: 2rem;
  }

  .support-hero p {
    font-size: 1rem;
  }

  .support-section h2 {
    font-size: 1.75rem;
  }

  .contact-inner h2 {
    font-size: 1.75rem;
  }
   .modal-content {
    max-width: 95%;
    padding: 15px;
    border-radius: 8px;
  }
  .institute-hero h1 {
        font-size: 2rem;
      }

      .institute-section h2 {
        font-size: 1.6rem;
      }

      .institute-section p {
        font-size: 1rem;
      }
.team-hero h1 {
  font-size: 2rem;
  }
.team-hero h1 span {
  font-size: 2.3rem;
  }
.team-hero p {
  font-size: 1rem;
  }
}
    @media (max-width: 480px) {
  .popup-content {
    max-width: 100%;
    padding: 12px;
    border-radius: 0;
    height: 100%;
    max-height: 100%;
  }
  .institute-hero {
        height: 70vh;
        padding: 0 10px;
      }

      .institute-hero h1 {
        font-size: 1.5rem;
        padding: 10px 15px;
      }
}
@media (max-width: 992px) {
  .about-mission-container {
    flex-direction: column;
    gap: 20px;
  }

  .about-mission-panel {
    flex: 1 1 100%;
  }

  .about-mission-panel h2 {
    font-size: 1.6rem;
  }
}