/* --- Global Reset & Variables --- */
:root {
  --primary-color: #102a43; /* Deeper, more modern blue */
  --secondary-color: #486581;
  --accent-color: #FF9900;  /* Bright Orange */
  --background-light: #f0f4f8; /* Softer grey-white */
  --text-color: #333;
  --white: #ffffff;
  --shadow-light: 0 2px 4px rgba(0, 0, 0, 0.1);
  --shadow-heavy: 0 10px 20px rgba(0, 0, 0, 0.15);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Poppins', 'Helvetica Neue', Arial, sans-serif; /* Using Poppins font */
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--white);
}

a {
  text-decoration: none;
  color: inherit;
}

h1, h2, h3 {
  margin-bottom: 1rem;
  color: var(--primary-color);
}

/* --- Utility Classes --- */
.btn, .btn-submit {
  display: inline-block;
  padding: 12px 28px;
  background-color: var(--accent-color);
  color: var(--white);
  border: none;
  border-radius: 50px; /* Pill shaped button */
  font-weight: 600;
  cursor: pointer;
  text-align: center;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-size: 0.9rem;
  box-shadow: var(--shadow-light);
}

.btn:hover, .btn-submit:hover {
  background-color: #e68a00; /* Darker orange */
  transform: translateY(-3px);
  box-shadow: var(--shadow-heavy);
}

.btn-submit {
  background-color: var(--primary-color);
}

.btn-submit:hover {
  background-color: var(--secondary-color);
}

/* --- Navbar --- */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 5%;
  background-color: var(--white);
  color: var(--primary-color);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow-light);
}

.logo {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--primary-color);
  transition: color 0.3s;
}

.logo:hover {
    color: var(--accent-color);
}

.navbar nav a {
  margin-left: 2rem;
  color: var(--secondary-color);
  font-weight: 500;
  transition: color 0.3s ease;
}

.navbar nav a:hover {
  color: var(--accent-color);
}

.nav-btn {
    background-color: var(--accent-color);
    color: var(--white)!important;
    padding: 8px 18px;
    border-radius: 4px;
    font-weight: 600!important;
}

/* --- Hero Section with Video --- */
.hero-video {
  height: 70vh;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  color: var(--white);
  text-align: center;
  overflow: hidden; /* Hide video overflow */
}

#bgVideo {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  z-index: 0;
  transform: translate(-50%, -50%); /* Center the video */
  object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    background: rgba(16, 42, 67, 0.7); /* Dark blue overlay */
    z-index: 1;
}

.hero-text {
  z-index: 2;
  padding: 0 5%;
  max-width: 900px;
}

.hero-text h2 {
  font-size: 2.8rem;
  color: var(--white);
  margin-bottom: 1rem;
  font-weight: 700;
}

.hero-text p {
  font-size: 1.3rem;
  margin-bottom: 2rem;
}

/* --- Content Sections --- */
.section {
  padding: 5rem 10%;
  text-align: center;
}

.section h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

#admissions, #universities {
  background-color: var(--background-light);
}

/* --- University Grid --- */
.university-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.uni-card {
  background: var(--white);
  padding: 2rem;
  border-radius: 8px;
  box-shadow: var(--shadow-light);
  text-align: left;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.uni-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-heavy);
}

.uni-logo {
  max-width: 150px;
  height: 50px;
  object-fit: contain;
  margin-bottom: 1rem;
}

.uni-card h3 {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.uni-card p {
    font-size: 0.95rem;
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
}

.fees {
    font-weight: bold;
    color: var(--primary-color)!important;
    margin-top: 1rem;
}

.details-link {
    display: inline-block;
    margin-top: 1rem;
    color: var(--accent-color);
    font-weight: 600;
    transition: color 0.3s;
}

.details-link:hover {
    color: var(--primary-color);
}

/* --- Admission Steps --- */
.steps-container {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 2rem;
}

.step {
    background-color: var(--white);
    padding: 2rem 1rem;
    border-radius: 8px;
    flex-basis: 22%;
    min-width: 200px;
    box-shadow: var(--shadow-light);
    transition: background-color 0.3s;
}

.step:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

.step:hover h3 {
    color: var(--accent-color);
}

/* --- Forms (Main & Modal) --- */
.enquiry-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 600px;
  margin: 2rem auto 0 auto;
  text-align: left;
}

.enquiry-form input,
.enquiry-form textarea,
.enquiry-form select {
  width: 100%;
  padding: 0.9rem 1.2rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 1rem;
  font-family: inherit;
  background-color: #f9f9f9;
}

.enquiry-form input:focus,
.enquiry-form textarea:focus,
.enquiry-form select:focus {
    outline: none;
    border-color: var(--accent-color);
    background-color: var(--white);
}

.enquiry-form textarea {
  resize: vertical;
  min-height: 100px;
}

.enquiry-form button {
    padding: 1rem;
    font-size: 1.1rem;
}

.formMessage {
    margin-top: 1rem;
    font-weight: bold;
    text-align: center;
}

/* --- Modal (Pop-up Form) --- */
.modal {
  display: none; /* Hidden by default */
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.6); /* Black w/ opacity */
  opacity: 0;
  transition: opacity 0.3s ease;
}

.modal-content {
  background-color: var(--white);
  margin: 10% auto;
  padding: 2rem;
  border-radius: 8px;
  width: 90%;
  max-width: 500px;
  position: relative;
  box-shadow: var(--shadow-heavy);
  transform: translateY(-50px);
  transition: transform 0.3s ease;
}

.modal.show {
    display: block;
    opacity: 1;
}

.modal.show .modal-content {
    transform: translateY(0);
}

.close-button {
  color: #aaa;
  position: absolute;
  top: 10px;
  right: 20px;
  font-size: 30px;
  font-weight: bold;
  cursor: pointer;
}

.close-button:hover,
.close-button:focus {
  color: var(--primary-color);
}

/* Floating Action Button */
.floating-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: var(--accent-color);
    color: white;
    border: none;
    padding: 15px 25px;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    box-shadow: 0 6px 12px rgba(0,0,0,0.3);
    cursor: pointer;
    z-index: 1500;
    transition: transform 0.3s, background-color 0.3s;
    animation: pulse 2s infinite;
}

.floating-btn:hover {
    background-color: #e68a00;
    transform: scale(1.05);
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 153, 0, 0.7);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(255, 153, 0, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(255, 153, 0, 0);
    }
}


/* --- Comparison Table --- */
.comparison-section {
    text-align: left;
}

.table-responsive {
    overflow-x: auto; /* Allows horizontal scrolling on small screens */
    margin-top: 2rem;
    box-shadow: var(--shadow-light);
}

table {
    width: 100%;
    border-collapse: collapse;
    background-color: var(--white);
    min-width: 800px; /* Ensures the table has a minimum width */
}

th, td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #eee;
}

thead th {
    background-color: var(--primary-color);
    color: var(--white);
    font-weight: 600;
}

tbody tr:nth-child(even) {
    background-color: var(--background-light);
}

tbody tr:hover {
    background-color: #e0e8f0;
}

.table-logo {
    max-height: 30px;
    width: auto;
}

.btn-table {
    padding: 8px 16px;
    background-color: var(--accent-color);
    color: var(--white);
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    transition: background-color 0.3s;
}

.btn-table:hover {
    background-color: #e68a00;
}

.disclaimer {
    font-size: 0.85rem;
    color: var(--secondary-color);
    margin-top: 1rem;
    font-style: italic;
}


/* --- Footer --- */
footer {
  background-color: var(--primary-color);
  color: var(--white);
  text-align: center;
  padding: 2rem 0;
  margin-top: 2rem;
}

footer a {
    color: var(--accent-color);
}

/* --- Animations --- */
/* Initial states */
.slide-in, .fade-in, .slide-up, .slide-from-left, .slide-from-right {
  opacity: 0;
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.slide-in, .slide-up {
    transform: translateY(50px);
}

.slide-from-left {
    transform: translateX(-50px);
}

.slide-from-right {
    transform: translateX(50px);
}

.fade-in {
    transition-duration: 1s;
}

/* Visible state (JS adds this class) */
.appear {
  opacity: 1;
  transform: translate(0, 0);
}

/* --- Responsiveness --- */
@media (max-width: 768px) {
  .navbar {
    flex-direction: column;
    padding: 1rem;
    align-items: flex-start;
  }

  .logo {
      margin-bottom: 0.5rem;
  }

  .navbar nav {
      width: 100%;
      display: flex;
      flex-wrap: wrap;
      justify-content: space-around;
  }

  .navbar nav a {
    margin: 0.5rem 0.5rem 0 0;
  }

  .hero-video {
    height: 50vh;
  }

  .hero-text h2 {
    font-size: 1.8rem;
  }

  .hero-text p {
      font-size: 1rem;
  }

  .section {
    padding: 3rem 5%;
  }

  .steps-container {
      flex-direction: column;
  }

  .step {
      flex-basis: 100%;
  }

  .floating-btn {
      padding: 12px 20px;
      font-size: 0.9rem;
  }
}