/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary: #002147;
  --secondary: #5c0f8b;
  --accent: #e63946;
  --text: #333333;
  --text-light: #6c757d;
  --background: #ffffff;
  --background-alt: #f8f9fa;
  --success: #2a9d8f;
  --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  --shadow-hover: 0 10px 15px rgba(0, 0, 0, 0.15);
  --border-radius: 8px;
  --transition: all 0.3s ease;
}

body {
  font-family: 'Poppins', sans-serif;
  line-height: 1.6;
  color: var(--text);
  scroll-behavior: smooth;
  padding-top: 80px; /* Account for fixed navbar */
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
  color: var(--primary);
}

h1 {
  font-size: 2.8rem;
}

h2 {
  font-size: 2.2rem;
}

h3 {
  font-size: 1.5rem;
}

h4 {
  font-size: 1.2rem;
}

p {
  margin-bottom: 1rem;
  font-size: 1rem;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: var(--transition);
}

/* Layout */
.section {
  padding: 5rem 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

/* .section.alt {
  background-color: var(--background-alt);
} */

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-header h2 {
  font-size: 2.5rem;
  position: relative;
  display: inline-block;
  margin-bottom: 0.5rem;
}

.section-header h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background-color: var(--secondary);
}

.section-header p {
  font-size: 1.2rem;
  color: var(--text-light);
}

.section-cta {
  text-align: center;
  margin-top: 3rem;
}
.section-cta a{
  color: white;
}

/* Navigation */
header {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 5px 5px;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(0px);
  z-index: 1000;
  height: 80px; /* Adjusted for consistency */
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  max-width: 100%; /* Fixed from 250% to prevent overflow */
  margin: 0 auto;
}

.logo-container {
  font-size: 1.5rem;
  font-weight: bold;
  color: white;
}

.logo img{
  width: 100%;
  max-width: 200px; /* Constrain logo size */
  height: 160px; /* Adjusted for better scaling */
  object-fit: contain; /* Changed to contain to avoid distortion */
}

.logo-container .college-tagline {
  font-size: 0.7rem;
  color: var(--secondary);
  margin-top: -5px;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 1.5rem;
}

.nav-links a {
  color: white;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-links a:hover {
  color: var(--secondary);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 4px;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background-color: white;
  transition: var(--transition);
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.8rem 1.5rem;
  border-radius: var(--border-radius);
  font-weight: 600;
  text-align: center;
  transition: var(--transition);
  cursor: pointer;
  border: none;
  font-family: inherit;
}

.btn-primary {
  background: var(--secondary);
  color: white;
}

.btn-primary:hover {
  background: var(--secondary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

.btn-secondary {
  background: transparent;
  color: white;
  border: 2px solid white;
}

.btn-secondary:hover {
  background: white;
  color: var(--primary);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}

.btn-outline:hover {
  background: var(--secondary);
  color: white;
}

.btn-large {
  background: var(--secondary);
  padding: 1rem 2rem;
  font-size: 1.1rem;
}


/* Hero Section */
.hero {
  margin-top: -8%;
  min-height: 110vh;
  background: linear-gradient(rgba(0,0,0,0.5), rgba(195, 194, 194, 0.5)),
    url('images/raisoni-hero-bg1.png') no-repeat center/cover;
  color: white;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 2rem;
  position: relative;
  background: cover;
}

.hero-content {
  max-width: 800px;
  z-index: 2;
}

.hero-content h1 span{
  font-family: 'poppins';
  letter-spacing: 0.5rem;
  font-weight: 2;
}
.hero h1 {
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
  color: white;
}

.hero p {
  font-size: 1.5rem;
  margin-bottom: 2.5rem;
  color: rgba(255, 255, 255, 0.9);
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-top: 4rem;
  flex-wrap: wrap;
}

.stat-card {
  background: white;
  backdrop-filter: blur(10px);
  padding: 1.5rem;
  border-radius: var(--border-radius);
  text-align: center;
  min-width: 150px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--secondary);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 1rem;
  color: white;
}

/* About Section */
.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.about-text p {
  font-size: 1.1rem;
  margin-bottom: 2rem;
}

.features-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 1rem;
}

.feature-item i {
  color: var(--secondary);
  font-size: 1.2rem;
  width: 24px;
}

.about-image {
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.about-image img {
  width: 100%;
  height: auto;
  display: block;
  transition: var(--transition);
}

.about-image:hover img {
  transform: scale(1.05);
}

/* Cards */
.card-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.card {
  background: white;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  position: relative;
}

.card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-hover);
}

.card-icon {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: var(--secondary);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  color: var(--primary);
  font-size: 1.2rem;
}
.card-icon i{
  color: white;
}
.card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.card-content {
  padding: 1.5rem;
}

.card-badge {
  display: inline-block;
  background: var(--secondary);
  color: white;
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  font-size: 0.8rem;
  margin-bottom: 0.8rem;
}

.card h3 {
  margin-bottom: 0.8rem;
  color: var(--primary);
}

.card p {
  color: var(--text-light);
  margin-bottom: 1.2rem;
}

.card-features {
  list-style: none;
  margin-bottom: 1.5rem;
}

.card-features li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
}

.card-features li:before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--success);
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--primary);
  font-weight: 600;
  font-size: 0.9rem;
}

.card-link:hover {
  color: var(--accent);
}

.card-stats {
  display: flex;
  gap: 1.5rem;
  margin: 1.2rem 0;
}

.card-stat {
  text-align: center;
}

.stat-value {
  display: block;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1;
}

.stat-label {
  font-size: 0.8rem;
  color: var(--text-light);
}

.feature-pill {
  display: inline-block;
  background: var(--background-alt);
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  font-size: 0.8rem;
  margin-right: 0.5rem;
  margin-bottom: 0.5rem;
}

/* Academics Section */
.academics-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

.academics-content p {
  font-size: 1.1rem;
  margin-bottom: 2rem;
}

.academics-highlights {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.highlight-card {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.5rem;
  background: white;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
}

.highlight-card i {
  font-size: 2rem;
  color: var(--secondary);
  flex-shrink: 0;
}

.highlight-card h4 {
  margin-bottom: 0.5rem;
}

.highlight-card p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-light);
}

.academics-programs {
  background: white;
  padding: 2rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
}

.program-list {
  margin-top: 1.5rem;
}

.program-item {
  padding: 1rem 0;
  border-bottom: 1px solid #eee;
}

.program-item:last-child {
  border-bottom: none;
}

.program-item h4 {
  margin-bottom: 0.3rem;
  color: var(--primary);
}

.program-item p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-light);
}

.view-all {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1rem;
  color: var(--primary);
  font-weight: 600;
}

.view-all:hover {
  color: var(--accent);
}

/* Career Stats */
.career-stats {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin: 2rem 0 3rem;
  flex-wrap: wrap;
}

.career-stat {
  text-align: center;
  padding: 1.5rem;
  background: white;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  min-width: 150px;
}

.career-stat .stat-value {
  font-size: 2rem;
  color: var(--secondary);
  margin-bottom: 0.5rem;
}

.career-stat .stat-label {
  font-size: 0.9rem;
  color: var(--text);
  font-weight: 500;
}

.company-logos {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.logo-item {
  background: var(--background-alt);
  padding: 0.5rem 1rem;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 600;
}

/* Event Cards */
.event-card {
  position: relative;
}

.event-date {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: var(--secondary);
  color: var(--primary);
  padding: 0.8rem;
  border-radius: var(--border-radius);
  text-align: center;
  z-index: 2;
  font-weight: 700;
}
.event-date span{
  color: white;
}

.date-day {
  display: block;
  font-size: 1.5rem;
  line-height: 1;
}

.date-month {
  display: block;
  font-size: 0.9rem;
}

.event-type {
  display: inline-block;
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
}

.event-details {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin: 1rem 0;
}

.event-detail {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: var(--text-light);
}

.event-detail i {
  color: var(--primary);
}

/* Testimonials */
.testimonials-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.testimonial-card {
  background: white;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  padding: 2rem;
  height: 100%;
}

.testimonial-text {
  margin-bottom: 1.5rem;
  position: relative;
}

.testimonial-text p {
  font-style: italic;
  position: relative;
  z-index: 2;
}

.testimonial-text:before {
  content: "";
  position: absolute;
  top: -20px;
  left: -10px;
  font-size: 6rem;
  color: rgba(0, 33, 71, 0.05);
  font-family: sans-serif;
  z-index: 1;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.testimonial-author img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
}

.author-details h4 {
  margin-bottom: 0.2rem;
  color: var(--primary);
}

.author-details p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-light);
}

/* Contact Section */
.contact-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

.contact-info h3 {
  margin-bottom: 1.5rem;
  color: var(--primary);
}

.contact-item {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
  align-items: flex-start;
}

.contact-item i {
  color: var(--secondary);
  font-size: 1.2rem;
  margin-top: 0.3rem;
  flex-shrink: 0;
}

.contact-item h4 {
  margin-bottom: 0.3rem;
  color: var(--primary);
}

.contact-item p {
  margin: 0;
  color: var(--text-light);
}

.contact-social {
  margin-top: 2rem;
}

.contact-social h4 {
  margin-bottom: 1rem;
  color: var(--primary);
}

.social-links {
  display: flex;
  gap: 1rem;
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--secondary);
  color: white;
  border-radius: 50%;
  transition: var(--transition);
}

.social-links a:hover {
  background: var(--secondary);
  color: var(--primary);
  transform: translateY(-3px);
}

.contact-form {
  background: white;
  padding: 2rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
}

.contact-form h3 {
  margin-bottom: 1.5rem;
  color: var(--primary);
}

.form-group {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 1px solid #ddd;
  border-radius: var(--border-radius);
  font-family: inherit;
  font-size: 1rem;
  transition: var(--transition);
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--secondary);
  box-shadow: 0 0 0 3px rgba(249, 199, 79, 0.2);
}

.contact-form textarea {
  resize: vertical;
  min-height: 120px;
}

/* Footer */
footer {
  background: var(--secondary);
  color: white;
  padding: 3rem 0 0;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem 2rem;
}

.footer-section h3 {
  color: white;
  margin-bottom: 1.5rem;
  position: relative;
  padding-bottom: 0.5rem;
}

.footer-section h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 3px;
  background-color: var(--secondary);
}

.footer-section p {
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 1rem;
}

.footer-section ul {
  list-style: none;
}

.footer-section ul li {
  margin-bottom: 0.8rem;
}

.footer-section ul li a {
  color: rgba(255, 255, 255, 0.7);
  transition: var(--transition);
}

.footer-section ul li a:hover {
  color: var(--primary);
  padding-left: 5px;
}

.footer-social {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
}

.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  color: white;
  border-radius: 50%;
  transition: var(--transition);
}

.footer-social a:hover {
  background: var(--secondary);
  color: var(--primary);
}

.footer-bottom {
  background: rgba(0, 0, 0, 0.2);
  padding: 1.5rem;
  text-align: center;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .about-content,
  .academics-container,
  .contact-container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .hero h1 {
    font-size: 2.8rem;
  }
}

@media (max-width: 768px) {
  body {
    padding-top: 70px;
  }
  
  .navbar {
    padding: 1rem;
  }
  
  .nav-links {
    position: fixed;
    top: 70px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 70px);
    background: var(--primary);
    flex-direction: column;
    gap: 0;
    transition: 0.5s;
    padding: 2rem;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
  }
  
  .nav-links.active {
    left: 0;
  }
  
  .nav-links li {
    width: 100%;
    margin: 0;
  }
  
  .nav-links a {
    padding: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    justify-content: flex-start;
  }
  
  .hamburger {
    display: flex;
    z-index: 1001;
  }
  
  .hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }
  
  .hamburger.active span:nth-child(2) {
    opacity: 0;
  }
  
  .hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
  }
  
  .hero h1 {
    font-size: 2.2rem;
  }
  
  .hero p {
    font-size: 1.2rem;
  }
  
  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .hero-buttons .btn {
    width: 100%;
    max-width: 300px;
  }
  
  .hero-stats {
    gap: 1rem;
  }
  
  .stat-card {
    min-width: 120px;
    padding: 1rem;
  }
  
  .stat-number {
    font-size: 2rem;
  }
  
  .features-list {
    grid-template-columns: 1fr;
  }
  
  .section-header h2 {
    font-size: 2rem;
  }
  
  .form-group {
    grid-template-columns: 1fr;
  }
  
  .card-container {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 1.8rem;
  }
  
  .section {
    padding: 3rem 1rem;
  }
  
  .section-header h2 {
    font-size: 1.8rem;
  }
  
  .hero-stats {
    grid-template-columns: 1fr 1fr;
  }
  
  .career-stats {
    grid-template-columns: 1fr 1fr;
  }
  
  .testimonials-container {
    grid-template-columns: 1fr;
  }
}

/* Modal Styles */
.modal {
  display: none; /* hidden by default */
  position: fixed;
  z-index: 2000;
  left: 0; top: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.7);
  justify-content: center;
  align-items: center;
  padding: 20px;
  overflow-y: auto;
  opacity: 0;
  transition: opacity 0.3s ease;
}

/* When modal is active */
.modal.show {
  display: flex;
  opacity: 1;
}

.modal-content {
  background: #fff;
  padding: 30px;
  border-radius: 12px;
  max-width: 500px;
  width: 100%;
  position: relative;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
  animation: slideDown 0.3s ease;
}

/* Close button */
.close-modal {
  position: absolute;
  right: 15px;
  top: 12px;
  font-size: 1.8rem;
  cursor: pointer;
  color: #666;
  transition: color 0.2s;
}
.close-modal:hover {
  color: #d32f2f;
}

/* Form styling */
.modal-content form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}
.modal-content input,
.modal-content select,
.modal-content textarea {
  padding: 6px 8px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-family: inherit;
  font-size: 1rem;
  transition: border 0.2s;
}
.modal-content input:focus,
.modal-content select:focus,
.modal-content textarea:focus {
  outline: none;
  border-color: var(--secondary); /* same as your primary */
}

/* Submit button */
.modal-content button {
  padding: 12px;
  background: var(--secondary);
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s;
}
.modal-content button:hover {
  background: var(--secondary);
}

/* Animation */
@keyframes slideDown {
  from { transform: translateY(-30px); opacity: 0; }
  to   { transform: translateY(0); opacity: 1; }
}

/* Section Styling */
.section {
  padding: 60px 20px;
  /* text-align: center; */
}
/* .section.alt {
  background: #f8f9fa;
} */
.section-header h2 {
  font-size: 2rem;
  margin-bottom: 10px;
  color: #222;
}
.section-header p {
  color: #666;
}

/* Continuous Swiper */
.accreditations-swiper {
  width: 100%;
  max-width: 1200px;
  margin: 2rem auto;
  overflow: hidden;
}

.accreditations-swiper .swiper-slide {
  display: flex;
  justify-content: center;
  align-items: center;
}

.accreditations-swiper .swiper-slide img {
  max-width: 150px;
  max-height: 80px;
  object-fit: contain;
  /* filter: grayscale(100%);
  transition: filter 0.3s ease; */
}
/* .accreditations-swiper .swiper-slide img:hover {
  filter: grayscale(0%);
} */

.locations {
  display: flex;
  margin-top: 20px;
}

.locations p{
  margin-right: 7px;
}

.location-foot {
  margin: 2px 5px;
  width: 1px;
  height: 20px;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 12px 24px;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: var(--border-radius);
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
}

.btn:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(11, 92, 255, 0.4);
}

.btn.outline {
  background: transparent;
  border: 2px solid var(--primary);
  color: var(--primary);
}

.btn.outline:hover {
  background: var(--primary);
  color: white;
}

.btn.secondary {
  background: var(--secondary);
}

.btn.secondary:hover {
  background: #e55a2b;
}

/* Topbar */
.topbar {
  background: var(--dark);
  color: white;
  font-size: 0.85rem;
  padding: 8px 0;
}

.topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.topbar a {
  color: rgba(255, 255, 255, 0.85);
  margin-left: 20px;
}

.topbar a:hover {
  color: white;
}

/* Header */
.site-header {
  background: var(--secondary);
  border-bottom: 1px solid rgba(16, 24, 40, 0.08);
  position: fixed;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  transition: var(--transition);
}

.site-header.shrink {
  padding: 5px 0;
  background: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
}

.site-header.shrink .logo img {
  height: 50px; /* Smaller logo when header shrinks */
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 0;
  max-width: 1200px;
  margin: 0 auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 15px;
  text-decoration: none;
  color: inherit;
}

.logo {
  width: auto;
  max-width: 200px; /* Constrain logo size */
  height: auto;
  object-fit: contain;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: bold;
  font-size: 1.2rem;
}

.brand-text strong {
  font-size: 1.5rem;
  display: block;
  color: var(--dark);
}

.brand-text small {
  font-size: 0.9rem;
  color: var(--muted);
}

/* Navigation */
.nav-list {
  display: flex;
  list-style: none;
  gap: 5px;
}

.nav-item a {
  display: block;
  padding: 8px 12px;
  color: white;
  font-weight: 600;
  border-radius: var(--border-radius);
  transition: var(--transition);
}

.nav-item a:hover {
  background: white;
  color: var(--secondary);
}

.nav-item.has-dropdown {
  position: relative;
}

.caret {
  font-size: 0.8rem;
  margin-left: 5px;
}

.dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  width: 200px;
  background: white;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  padding: 10px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: var(--transition);
  z-index: 100;
}

.nav-item.has-dropdown:hover .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown li {
  list-style: none;
}

.dropdown a {
  padding: 10px 20px;
  color: var(--dark);
  font-weight: 500;
}

.dropdown a:hover {
  background: var(--secondary);
  color: white;
}

/* Mega Menu */
.mega .mega-menu {
  position: absolute;
  left: 0;
  top: 100%;
  width: 700px;
  background: white;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  padding: 20px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: var(--transition);
  z-index: 100;
}

.mega:hover .mega-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.mega .col h4 {
  font-size: 1.1rem;
  margin-bottom: 15px;
  color: var(--dark);
  border-bottom: 2px solid var(--primary);
  padding-bottom: 5px;
}

.mega .col ul {
  list-style: none;
}

.mega .col li {
  margin-bottom: 8px;
}

.mega .col a {
  color: var(--muted);
  padding: 5px 0;
  display: block;
  font-weight: 500;
}

.mega .col a:hover {
  color: var(--primary);
}
.mega .col ul a:hover{
  background: var(--secondary);
  color: white;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 15px;
}

.hamburger {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: white;
}

.dropdown, .mega-menu {
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: all 0.25s ease;
}
.nav-item:hover > .dropdown,
.mega:hover .mega-menu {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* Buttons */
.btn {
  position: relative;
  background: #ffcc00;
  color: #fff;
  border: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.btn:hover {
  transform: translateY(-2px);
}

[data-animate] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
[data-animate].visible {
  opacity: 1;
  transform: translateY(0);
}

/* Mobile Menu */
.mobile-menu {
  position: fixed;
  top: 0;
  right: -300px;
  width: 300px;
  height: 100%;
  background: white;
  z-index: 1000;
  box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
  transition: var(--transition);
  overflow-y: auto;
}

.mobile-menu.open {
  right: 0;
}

.mobile-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--dark);
}

.mobile-nav {
  padding: 60px 30px 30px;
  list-style: none;
}

.mobile-nav li {
  margin-bottom: 15px;
}

.mobile-nav a {
  display: block;
  padding: 12px 0;
  color: var(--dark);
  font-weight: 600;
  border-bottom: 1px solid #eee;
}

.mobile-toggle {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  background: none;
  border: none;
  border-bottom: 1px solid #eee;
  color: var(--dark);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
}

.mobile-sub {
  list-style: none;
  padding-left: 20px;
  max-height: 0;
  overflow: hidden;
  transition: var(--transition);
}

.mobile-sub.open {
  max-height: 500px;
}

.mobile-sub li {
  margin-bottom: 10px;
}

.mobile-sub a {
  padding: 8px 0;
  font-weight: 500;
  color: var(--muted);
}

.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

.overlay.open {
  opacity: 1;
  visibility: visible;
}

/* Animations */
[data-animate] {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-animate].visible {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive Design */
@media (max-width: 1024px) {
  h1 {
    font-size: 2.5rem;
  }
  
  h2 {
    font-size: 2rem;
  }
  
  .mega .mega-menu {
    width: 600px;
  }
}

@media (max-width: 900px) {
  .nav-list {
    display: none;
  }
  
  .hamburger {
    display: block;
  }
  
  .mega .mega-menu {
    width: 500px;
    grid-template-columns: repeat(2, 1fr);
  }
  
  .hero-cta {
    flex-direction: column;
    gap: 10px;
  }
  
  .hero-cta .btn {
    width: 100%;
  }
}

@media (max-width: 768px) {
  .topbar .container {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }
  
  .topbar a {
    margin: 0 10px;
  }
  
  .header-inner {
    padding: 10px 0;
  }
  
  .slide h1 {
    font-size: 2rem;
  }
  
  .slide p {
    font-size: 1rem;
  }
  
  .slider-controls button {
    width: 40px;
    height: 40px;
  }
}

@media (max-width: 576px) {
  .brand-text strong {
    font-size: 1.2rem;
  }
  
  .brand-text small {
    font-size: 0.8rem;
  }
  
  .logo {
    max-width: 120px; /* Adjusted for small screens */
    height: auto;
  }
  
  .logo img {
    height: 40px; /* Smaller logo for mobile */
  }
  
  .slide {
    padding: 40px 0;
  }
  
  .slider-controls {
    bottom: 20px;
    right: 20px;
  }
  
  .slider-dots {
    bottom: 20px;
  }
  
  .mega .mega-menu {
    width: 300px;
    grid-template-columns: 1fr;
  }
}

.video {
  margin-top: -5%;
}

.customvideo {
  width: 100%;
  max-width: 1500px;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  display: block;
  margin: 20px auto;
}

/* Mega Menu Base */
.mega .mega-menu {
  position: absolute;
  top: 100%;
  left: 0;
  width: 800px;
  background: #fff;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
  display: flex;
  padding: 20px;
  visibility: hidden;
  opacity: 0;
  transition: all 0.3s ease;
  z-index: 1000;
}

.nav-item.has-dropdown:hover .mega-menu {
  visibility: visible;
  opacity: 1;
}

/* Left Section */
.mega-left {
  width: 15%;
  padding-right: 120px;
  border-right: 1px solid #ddd;
}

.mega-left h4 {
  font-size: 16px;
  margin-bottom: 5px;
  font-weight: bold;
}

.mega-left p {
  font-size: 13px;
  color: #666;
}

/* Right Section */
.mega-right {
  width: 75%;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
  padding-left: 0px;
}

/* Course Card */
.course-card {
  position: relative;
  height: 153px;
  width: 300px;
  background: #fff;
  border: 1px solid #eee;
  padding: 11.2px;
  border-radius: 8px;
  transition: 0.3s;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.course-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 15px rgba(0,0,0,0.1);
}

.course-card h5 {
  font-size: 15px;
  margin-bottom: 8px;
  font-weight: 600;
}

.coursecard p {
  font-size: 13px;
  color: #666;
  margin-bottom: 12px;
}

.course-card .btns {
  display: flex;
  justify-content: space-between;
}

.btn-read, .btn-apply {
  padding: 6px 12px;
  font-size: 12px;
  text-decoration: none;
  border-radius: 4px;
  transition: 0.3s;
}

.btn-read {
  border: 1px solid #6a1b9a;
  color: #6a1b9a;
}

.btn-read:hover {
  background: #6a1b9a;
  color: #fff;
}

.btn-apply {
  background: #6a1b9a;
  color: #fff;
}

.btn-apply:hover {
  background: #4a116b;
}

/* Mega Menu Base */
.mega .mega-menu {
  position: absolute;
  top: 100%;
  left: 0;
  width: 800px;
  background: #fff;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
  display: flex;
  padding: 20px;
  visibility: hidden;
  opacity: 0;
  transition: all 0.3s ease;
  z-index: 1000;
}

.nav-item.has-dropdown:hover .mega-menu {
  visibility: visible;
  opacity: 1;
}

/* Left Section */
.mega-left {
  width: 20%;
  padding-right: 20px;
  border-right: 1px solid #ddd;
}

.mega-left h4 {
  font-size: 16px;
  margin-bottom: 5px;
  font-weight: bold;
}

.mega-left p {
  font-size: 13px;
  color: #666;
}

/* Right Section (Scrollable Cards) */
.mega-right {
  width: 80%;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
  padding-left: 20px;
  max-height: 400px;   /* Set height for scroll */
  overflow-y: auto;    /* Vertical scroll if too many cards */
  scrollbar-width: thin; /* Firefox */
}

.mega-right::-webkit-scrollbar {
  width: 6px;
}
.mega-right::-webkit-scrollbar-thumb {
  background: #bbb;
  border-radius: 4px;
}
.mega-right::-webkit-scrollbar-thumb:hover {
  background: #888;
}

/* Course Card */
.course-card {
  position: relative;
  height: 123px;
  width: 290px;
  background: #fff;
  border: 1px solid #eee;
  padding: 15px;
  border-radius: 8px;
  transition: 0.3s;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
  margin-left: -7%;
}

.course-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 15px rgba(0,0,0,0.1);
}

.course-card h5 {
  font-size: 15px;
  margin-bottom: 8px;
  font-weight: 600;
}

.course-card p {
  font-size: 13px;
  color: #666;
  margin-bottom: 12px;
}

.course-card .btns {
  display: flex;
  justify-content: space-between;
}

.btn-read, .btn-apply {
  padding: 6px 12px;
  font-size: 12px;
  text-decoration: none;
  border-radius: 4px;
  transition: 0.3s;
}

.btn-read {
  border: 1px solid #6a1b9a;
  color: #6a1b9a;
}

.btn-read:hover {
  background: #6a1b9a;
  color: #fff;
}

.btn-apply {
  background: #6a1b9a;
  color: #fff;
}

.btn-apply:hover {
  background: #4a116b;
}

/* Responsive: Mobile View */
@media (max-width: 991px) {
  .mega-menu {
    flex-direction: column;
    width: 100%;
    padding: 15px;
  }

  .mega-left {
    width: 100%;
    border-right: none;
    margin-bottom: 15px;
  }

  .mega-right {
    width: 100%;
    grid-template-columns: 1fr;  /* stack cards */
    max-height: 300px;           /* smaller scroll height */
    padding-left: 0;
  }
}

/* Modal Form Alignment Fixes */
.modal-content {
  background: #fff;
  padding: 30px;
  border-radius: 12px;
  max-width: 500px;
  width: 100%;
  position: relative;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
  animation: slideDown 0.3s ease;
}

.modal-content form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.modal-content .form-group {
  display: flex;
  flex-direction: column;
  gap: 0; /* No extra gap between fields in group */
}

.modal-content input,
.modal-content select,
.modal-content textarea {
  width: 100%; /* Full width within container */
  max-width: 100%; /* Prevent overflow */
  padding: 12px 16px; /* Consistent padding for alignment */
  border: 1px solid #ccc;
  border-radius: 6px;
  font-family: inherit;
  font-size: 1rem;
  transition: border 0.2s;
  box-sizing: border-box; /* Ensures padding doesn't affect width */
}

.modal-content select {
  /* Fix for long options: Prevent stretching */
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap; /* Keeps long text in one line */
}

.modal-content input:focus,
.modal-content select:focus,
.modal-content textarea:focus {
  outline: none;
  border-color: var(--secondary);
  box-shadow: 0 0 0 3px rgba(249, 199, 79, 0.2);
}

.modal-content textarea {
  resize: vertical;
  min-height: 100px; /* Consistent height */
}

/* Contact Form Alignment (Mirrors Modal for Consistency) */
.contact-form {
  background: white;
  padding: 2rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
}

.contact-form .form-group {
  display: grid;
  grid-template-columns: 1fr 1fr; /* Two columns for name/email and phone/select */
  gap: 1rem;
  margin-bottom: 1rem;
}

.contact-form .form-group:last-of-type {
  grid-template-columns: 1fr; /* Single column for textarea */
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  max-width: 100%;
  padding: 0.8rem 1rem;
  border: 1px solid #ddd;
  border-radius: var(--border-radius);
  font-family: inherit;
  font-size: 1rem;
  transition: var(--transition);
  box-sizing: border-box;
}

.contact-form select {
  /* Same fix for long options */
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--secondary);
  box-shadow: 0 0 0 3px rgba(249, 199, 79, 0.2);
}

.contact-form textarea {
  resize: vertical;
  min-height: 120px;
  grid-column: 1 / -1; /* Span full width */
}

/* Animation (unchanged, but included for completeness) */
@keyframes slideDown {
  from { transform: translateY(-30px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* Button Styles */
.btn {
  display: inline-block;
  padding: 0.8rem 1.5rem;
  border-radius: var(--border-radius);
  font-weight: 600;
  text-align: center;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
  font-family: inherit;
}

/* Apply Now Button */
#applyNowBtn{
  background: gold;
  color: white;

}
#admissionApplyBtn {
  background: var(--secondary);
  color: white;
}

#applyNowBtn:hover, 
#admissionApplyBtn:hover {
  background: rgba(92, 15, 139, 0.8); /* Semi-transparent on hover */
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

/* Explore Programs Button */
.btn-primary[href="#admissions"] {
  background: var(--secondary);
  color: white;
}

.btn-primary[href="#admissions"]:hover {
  background: rgba(92, 15, 139, 0.8); /* Semi-transparent on hover */
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

/* Virtual Tour Button */
.btn-secondary[href="#tour"] {
  background: transparent;
  color: white;
  border: 2px solid white;
}

.btn-secondary[href="#tour"]:hover {
  background: rgba(255, 255, 255, 0.2); /* Semi-transparent white on hover */
  color: var(--primary);
  border-color: white;
  transform: translateY(-2px);
}

/* Send Message Button */
.contact-form button[type="submit"] {
  background: var(--secondary);
  color: white;
}

.contact-form button[type="submit"]:hover {
  background: rgba(92, 15, 139, 0.8); /* Semi-transparent on hover */
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

/* Modal Submit Button (Application Form) */
.modal-content button[type="submit"] {
  background: var(--secondary);
  color: white;
  padding: 12px;
  border-radius: 6px;
}

.modal-content button[type="submit"]:hover {
  background: rgba(92, 15, 139, 0.8); /* Semi-transparent on hover */
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}