html { scroll-behavior: smooth; }


h2, h3 {
  font-family: 'Playfair Display', serif;
  color: #6a1b9a; 
}
body {
  margin: 0;
  font-family: 'Segoe UI', Arial, sans-serif;
  background: linear-gradient(to right, #fdfbfb, #ebedee);
  color: #333;
  padding-top: 65px;
}

header {
  background: rgba(255, 255, 255, 0.95);
  padding: 18px 25px;
  display: flex;
  align-items: center;
  gap: 20px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  position: fixed;
  top: 0;
  left: 0;
  width: 98%;
  z-index: 1000;
}
header h1 {
  margin: 0;
  font-size: 20px;
  color: #6a1b9a;
  flex-grow: 1;
  font-weight: bold;
}
header .logo {
  height: 40px;
  width: auto;
  border-radius: 8px;
}

/* ==== HELP ICON & MODAL (Optimized) ==== */
.header-icons {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}

.help-icon {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 22px;
  color: #6a1b9a;
  transition: color 0.2s ease, transform 0.15s ease;
}
.help-icon:hover {
  color: #4a148c;
  transform: scale(1.1);
}

/* Modal base */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 999;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(2px);
  place-items: center;
  transition: opacity 0.2s ease;
}

/* Modal content */
.modal-content {
  background: #fff;
  border-radius: 12px;
  padding: 20px 25px;
  width: 80%;
  max-width: 700px;
  max-height: 80vh;
  overflow-y: auto;
  box-shadow: 0 4px 14px rgba(0,0,0,0.2);
  transform: scale(0.97);
  opacity: 0;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

/* Show modal instantly */
.modal.show {
  display: grid;
  opacity: 1;
}
.modal.show .modal-content {
  opacity: 1;
  transform: scale(1);
}

/* Close button */
.close {
  float: right;
  font-size: 24px;
  cursor: pointer;
  color: #6a1b9a;
  transition: color 0.2s;
}
.close:hover {
  color: #4a148c;
}

/* FAQ styles */
.faq-question {
  background: #f3e5f5;
  border: none;
  padding: 10px 14px;
  width: 100%;
  text-align: left;
  cursor: pointer;
  font-weight: 600;
  color: #4a148c;
  border-radius: 8px;
  margin-top: 8px;
  transition: 0.2s;
}
.faq-question:hover {
  background: #e1bee7;
}
.faq-answer {
  display: none;
  background: #fafafa;
  border-left: 4px solid #6a1b9a;
  border-radius: 0 6px 6px 6px;
  padding: 10px 14px;
  margin: 6px 0 10px;
  font-size: 14px;
  color: #333;
  line-height: 1.5;
}

/* Slim scrollbar */
.modal-content::-webkit-scrollbar {
  width: 6px;
}
.modal-content::-webkit-scrollbar-thumb {
  background-color: #b39ddb;
  border-radius: 4px;
}

/* Mobile-friendly
@media (max-width: 600px) {
  .modal-content {
    width: 90%;
    padding: 16px;
  }
} */

.menu-toggle {
  font-size: 20px;
  background: none;
  border: none;
  cursor: pointer;
  color: #6a1b9a;
}
	
	
nav {
  height: 100%;
  width: 0; 
  position: fixed;
  top: 77px;
  left: 0;
  background: #2c3e50;
  overflow-x: hidden;
  transition: 0.3s;
  padding-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  box-shadow: 2px 0 8px rgba(0,0,0,0.2);
  z-index: 1200;
}

nav h2 {
  color: #e0f2f1;
  text-align: center;
  margin-bottom: 10px;
  font-size: 18px;
  font-family: 'Segoe UI', Arial, sans-serif;
}
	

nav a {
  padding: 12px 20px;
  text-decoration: none;
  color: #e0f2f1;
  transition: 0.3s;
  display: block;
  white-space: nowrap;
}
nav a:hover {
  color: #2c3e50;
  background: #1abc9c;
}
nav a i {
  margin-right: 8px;
}
#main {
  transition: margin-left 0.3s ease;
}
#main { transition: margin-left 0.3s ease; }


.hero {
  background: linear-gradient(135deg, #a8edea, #fce4ec, #a8edea);
  background-size: 300% 300%;
  animation: waveBackground 12s ease infinite;
  min-height: 60vh;
  display: flex;  
  justify-content: center;
  border-radius: 12px;
  align-items: center;
  text-align: center;
  padding: 40px 20px;
  color: #333;
  overflow: hidden;
}

.hero-wrapper {
  background: rgba(255, 255, 255, 0.5);
  padding: 6px; 
  border-radius: 20px; 
  width: 120%;           
  margin: 0;           
  box-sizing: border-box;
}

.hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: 55px;
  color: #1c3d2e; 
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 15px;
  text-align: center;
}

.hero h1 em {
  font-style: italic;
  font-weight: 600;
}

.hero p {
  font-family: Arial, sans-serif;
  font-size: 18px;
  color: #444;
  text-align: center;
}

.hero button {
  padding: 8px 18px; 
  margin: 6px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  transition: 0.3s;
}

.btn-login { background: #6a1b9a; color: white; }
.btn-login:hover { background: #4a148c; }
.btn-signup { background: white; color: #6a1b9a; border: 2px solid #6a1b9a; }
.btn-signup:hover { background: #f3e5f5; }


.features {
  background: linear-gradient(135deg, #a8edea, #fce4ec, #a8edea);
  padding: 30px 40px;
  text-align: center; 
}

.features-title {
  font-family: "Times New Roman", Times, serif;
  font-size: 36px;
  text-align: center;
  margin-bottom: 80px; 
  color: #6a1b9a;
  opacity: 1;
  transform: translateY(30px);
  transition: all 0.8s ease;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  justify-items: center; 
}

.feature-img {
  margin-top: 15px;
  width: 100%;
  max-width: 180px;
  border-radius: 10px;
  box-shadow: 0 3px 6px rgba(0,0,0,0.15);
}

.features a {
  text-decoration: none;   
  color: inherit;          
}

.features a:hover .card {
  transform: translateY(-6px);
  box-shadow: 0 6px 14px rgba(0,0,0,0.15);
}

.card {
  background: white;
  padding: 20px;
  border-radius: 15px;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  transform: scale(0.95);
  opacity: 0;
  transition: transform 0.6s ease, opacity 0.6s ease;
}
.card.visible { opacity: 1; transform: scale(1); }
.card h3 { color: #00695c; font-family: 'Segoe UI', Arial, sans-serif; margin-bottom: 10px; }


.about {
  background: linear-gradient(135deg, #a8edea, #fce4ec, #a8edea);
  padding: 70px 20px;
}

.about-content {
  max-width: 1100px;
  margin: 0 auto 40px;
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  align-items: stretch;
}

.about-text {
  flex: 1 1 320px;
  background: white;
  padding: 25px;
  border-radius: 14px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.about-text h2 {
  margin-top: 0;
}

.about-text p {
  line-height: 1.6;
  color: #444;
}

.mission-vision {
  flex: 1 1 360px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.mission-card {
  background: white;
  border-radius: 14px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  padding: 22px;
}

.mission-card h3 {
  margin-top: 0;
  color: #6a1b9a;
}

.mission-card p {
  margin: 0;
  line-height: 1.6;
  color: #444;
}

.awareness {
  max-width: 1100px;
  margin: 0 auto;
  background: white;
  padding: 24px 28px;
  border-radius: 14px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.awareness h3 {
  margin: 0 0 12px;
  color: #00695c;
}

.awareness p {
  margin: 0;
  line-height: 1.6;
  color: #444;
}


#aboutUs {
  padding: 50px 20px;
  text-align: center;
  background: linear-gradient(135deg, #a8edea, #fce4ec, #a8edea);
}

.team {
  padding: 60px 20px;
  text-align: center;
  background: linear-gradient(135deg, #a8edea, #fce4ec, #a8edea);
}

.team h2 {
  margin-bottom: 40px;
  font-size: 2rem;
  color: #6a1b9a;
}

.team-container {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}

.team-card {
  width: 500px;       
  background: #fff;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  text-align: center;
}

.team-card img {
  width: 78%;
  height: 220px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 12px;
}

.team-card h3 {
  margin: 10px 0 5px;
  color: #222;
}

.team-card p {
  font-size: 0.95rem;
  color: #555;
  font-weight: bold;
}

.map {
  background: linear-gradient(135deg, #a8edea, #fce4ec, #a8edea);
  padding: 80px 20px;
  text-align: center;
}
.map h2 { color: #6a1b9a; font-size: 2rem; margin-bottom: 20px; }
.map-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
  gap: 30px;
  margin-top: 30px;
}
.map-container iframe {
  flex: 1;
  min-width: 300px;
  max-width: 600px;
  border: none;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
  height: 400px;
}
.map-video {
  flex: 1;
  min-width: 300px;
  max-width: 600px;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
  height: 400px;
  object-fit: cover; 
}

.address {
  flex: 1;
  min-width: 250px;
  max-width: 400px;
  background: white;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.address h3{
  font-family: 'Segoe UI', Arial, sans-serif;
  color: #6a1b9a;
}


.contact {
  background: linear-gradient(135deg, #a8edea, #fce4ec, #a8edea);
  padding: 60px 20px;
}

.contact h2 {
  color: #4a148c;
  font-size: 2rem;
  margin-bottom: 15px;
  text-align: center;
}

.contact-desc {
  text-align: center;
  font-size: 16px;
  margin-bottom: 40px;
  color: #444;
}


.contact-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  max-width: 1100px;
  margin: 0 auto;
  align-items: stretch;
}

.contact-container {
  flex: 1 1 340px;
  display: flex;
  justify-content: center;
}

.contact-info {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.info-item {
  display: flex;
  align-items: flex-start;
  gap: 15px;
}

.info-item i {
  background: #4a148c;
  color: white;
  font-size: 18px;
  padding: 12px;
  border-radius: 50%;
}

.info-item h4 {
  margin: 0 0 5px 0;
  color: #4a148c;
}

.info-item p {
  margin: 0;
  font-size: 14px;
  color: #333;
}

.contact-form-card {
  flex: 1 1 320px;
  background: white;
  border-radius: 14px;
  padding: 28px 24px;
  box-shadow: 0 6px 16px rgba(0,0,0,0.12);
  display: flex;
  flex-direction: column;
}

.contact-form-card h3 {
  margin-top: 0;
  margin-bottom: 18px;
  color: #6a1b9a;
}

#contactForm {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-weight: 600;
  color: #333;
}

.form-group input,
.form-group textarea {
  padding: 12px 14px;
  border-radius: 8px;
  border: 1px solid #dcdde1;
  font-size: 15px;
  font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #6a1b9a;
  box-shadow: 0 0 0 3px rgba(106, 27, 154, 0.15);
}

.submit-btn {
  background: #6a1b9a;
  color: white;
  padding: 12px 18px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  font-size: 15px;
  transition: background 0.3s ease;
}

.submit-btn:hover {
  background: #4a148c;
}

.feedback {
  margin: 6px 0 0;
  min-height: 18px;
  font-size: 14px;
  color: #2e7d32;
}

.feedback.error {
  color: #c62828;
}


footer {
  text-align: center;
  padding: 20px;
  background: rgba(255,255,255,0.9);
  font-size: 14px;
  margin-top: 0px;
  box-shadow: 0 -2px 6px rgba(0,0,0,0.05);
}


.fade-in-up {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 1s ease forwards;
}
.fade-in-up.delay-1 { animation-delay: 0.2s; }
.fade-in-up.delay-2 { animation-delay: 0.3s; }
@keyframes fadeInUp {
  to { opacity: 1; transform: translateY(0); }
}

/* Modal backdrop (fixed, centered, fade effect) */
.modal {
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  background: rgba(0, 0, 0, 0.5);

  /* start hidden */
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

/* When active is visible */
.modal.active {
  opacity: 1;
  pointer-events: auto;
}

/* Modal box */
.modal-content {
  position: relative;
  background: white;
  padding: 30px;
  border-radius: 12px;
  text-align: center;
  width: 300px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);

  /* slight fade/scale animation */
  transform: scale(0.95);
  opacity: 0;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.modal.active .modal-content {
  transform: scale(1);
  opacity: 1;
}

/* Heading */
.modal-content h3 {
  margin-bottom: 20px;
  color: #6a1b9a;
}

/* Buttons */
.signup-options button {
  display: block;
  width: 100%;
  margin: 8px 0;
  padding: 10px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 15px;
  font-weight: 600;
  transition: 0.3s;
}

/* First button (Student) */
.signup-options button:first-child {
  background: #6a1b9a;
  color: white;
}
.signup-options button:first-child:hover {
  background: #4a148c;
}

/* Second button (Counsellor) */
.signup-options button:last-child {
  background: white;
  color: #6a1b9a;
  border: 2px solid #6a1b9a;
}
.signup-options button:last-child:hover {
  background: #f3e5f5;
}

/* Close (×) */
.close {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 24px;
  cursor: pointer;
  color: #666;
}
.close:hover {
  color: #4a148c;
}

/* ==== HELP MODAL FIX ==== */
.help-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 999;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(2px);
  place-items: center;
  transition: opacity 0.2s ease;
}

.help-modal.show {
  display: grid;
  opacity: 1;
}

.help-modal .modal-content {
  background: #fff;
  border-radius: 12px;
  padding: 20px 25px;
  width: 80%;
  max-width: 700px;
  max-height: 80vh;
  overflow-y: auto;
  box-shadow: 0 4px 14px rgba(0,0,0,0.2);
  transform: scale(0.97);
  opacity: 0;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.help-modal.show .modal-content {
  opacity: 1;
  transform: scale(1);
}


@keyframes waveBackground {
  0% {
	background-position: 0% 50%;
  }
  50% {
	background-position: 100% 50%;
  }
  100% {
	background-position: 0% 50%;
  }
}

/* ===== MOBILE RESPONSIVE STYLES ===== */
@media (max-width: 768px) {
  
  /* Fix Header */
  header {
    padding: 12px 15px;
    width: 100% !important;
    box-sizing: border-box;
  }
  
  header h1 {
    font-size: 18px;
  }
  
  /* Fix Navigation */
  nav {
    top: 64px !important;
    width: 0;
    height: 100vh;
    padding-top: 30px;
  }
  
  nav.active {
    width: 100% !important;
  }
  
  nav h2 {
    font-size: 20px;
    margin-bottom: 30px;
    padding: 0 25px;
  }
  
  nav a {
    padding: 18px 25px;
    font-size: 17px;
    min-height: 55px;
    border-bottom: 1px solid rgba(255,255,255,0.2);
  }
  
  /* Fix Help Modal - OVERRIDE ALL CONFLICTS */
  .help-modal {
    padding: 20px !important;
  }
  
  .help-modal .modal-content {
    width: 95vw !important;
    max-width: 95vw !important;
    padding: 25px 20px !important;
    margin: 0 !important;
    max-height: 90vh !important;
    border-radius: 16px !important;
  }
  
  .help-modal .close {
    position: fixed !important;
    top: 15px !important;
    right: 20px !important;
    font-size: 28px !important;
    z-index: 1001 !important;
    background: white !important;
    border-radius: 50% !important;
    width: 40px !important;
    height: 40px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }
  
  /* Fix FAQ for Mobile */
  .faq-question {
    padding: 18px 16px !important;
    font-size: 16px !important;
    min-height: 55px !important;
    margin: 12px 0 !important;
    border-radius: 12px !important;
  }
  
  .faq-answer {
    padding: 18px 16px !important;
    font-size: 15px !important;
    line-height: 1.6 !important;
    margin: 8px 0 20px 0 !important;
    border-radius: 0 12px 12px 12px !important;
  }
  
  /* Fix Hero Section */
  .hero {
    min-height: 50vh;
    padding: 30px 15px;
    margin: 0 10px;
    border-radius: 12px;
  }
  
  .hero-wrapper {
    width: 100% !important;
    padding: 30px 20px !important;
    border-radius: 16px;
    margin: 0;
  }
  
  .hero h1 {
    font-size: 32px;
    line-height: 1.2;
    margin-bottom: 20px;
  }
  
  .hero p {
    font-size: 16px;
    margin-bottom: 25px;
  }
  
  .hero button {
    padding: 15px 20px;
    margin: 8px 5px;
    font-size: 16px;
    width: 45%;
    min-height: 52px;
  }
  
  /* Remove all other conflicting modal styles for mobile */
  .modal:not(.help-modal) .modal-content {
    width: 90% !important;
    padding: 25px 20px !important;
    max-width: 400px !important;
  }
}

/* Extra small devices */
@media (max-width: 480px) {
  /* Full-screen nav on very small devices */
  nav.active {
    width: 100% !important;
  }
  
  nav a {
    padding: 20px 25px;
    font-size: 18px;
  }
  
  /* Better hero layout */
  .hero h1 {
    font-size: 28px;
  }
  
  .hero button {
    width: 100% !important;
    margin: 10px 0 !important;
    display: block !important;
  }
  
  /* Better modals */
  .help-modal .modal-content {
    width: 98vw !important;
    padding: 20px 15px !important;
    margin: 10px !important;
  }
  
  .modal-content {
    width: 95% !important;
    padding: 20px 15px !important;
  }
  
  /* Fix team cards */
  .team-card {
    width: 100% !important;
    margin: 10px 0 !important;
  }
  
  .team-card img {
    height: 200px;
    width: 90% !important;
  }
}

/* Mobile touch improvements */
@media (max-width: 768px) {
  /* Touch-friendly sizes */
  .menu-toggle,
  .help-icon {
    min-width: 48px !important;
    min-height: 48px !important;
    font-size: 24px !important;
  }
  
  /* Better scrolling */
  .modal-content::-webkit-scrollbar {
    width: 4px !important;
  }
  
  /* Prevent horizontal scroll */
  body {
    overflow-x: hidden;
    width: 100%;
  }
  
  /* Fix any horizontal overflow */
  .hero-wrapper,
  .container,
  section {
    max-width: 100% !important;
    overflow-x: hidden !important;
  }
}