/* Reset and base styling */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: #f4f6f8;
  color: #333;
  line-height: 1.6;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Header */
header {
  background-color: #00264d;
  color: white;
  padding: 15px 0;
  text-align: center;
  border-bottom: 4px solid #007BFF;
}

.top-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 20px;
  flex-wrap: wrap;
}

.logo {
  width: 50px;
  height: 50px;
}

.logo.right {
  margin-left: 20px;
}

.logo.right img {
  width: 50px;
  height: 50px;
}

header h1 {
  font-size: 22px;
  margin: 0 20px;
  flex: 1;
  text-align: center;
}

/* Navigation */nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  background-color: #004080;
  padding: 10px 0;
}

/* All nav links */
.nav-link {
  color: white;
  text-decoration: none;
  padding: 12px 18px;
  margin: 5px;
  border-radius: 5px;
  font-size: 16px;
  font-weight: bold;
  transition: background-color 0.3s, color 0.3s;
}

/* Hover effect */
.nav-link:hover {
  background-color: white;
  color: #007BFF;
}

/* Active section */
.nav-link.active {
  background-color: white;
  color: #007BFF;
  box-shadow: 0 0 10px rgba(0, 123, 255, 0.3);
}


/* Banner */
.slider-wrapper {
  width: 100%;
  max-width: 1000px;
  margin: auto;
  overflow: hidden;
  position: relative;
}

.slider-container {
  display: flex;
  transition: transform 0.5s ease-in-out;
}

.banner {
  width: 100%;
  height: auto;
  object-fit: cover;
}

/* Slider Buttons */.slider-wrapper {
  overflow: hidden;
  width: 100%;
  position: relative;
}

.slider-container {
  display: flex;
  transition: transform 0.5s ease-in-out;
  width: 100%;
}

.banner {
  width: 100%;
  flex-shrink: 0;
}

.slider-buttons {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-top: 10px;
}

.slider-buttons button {
  padding: 10px 20px;
  background-color: royalblue;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

.slider-buttons button:hover {
  background-color: #003d99;
}


/* Main Content */
.main-content {
  display: flex;
  justify-content: center;
  padding: 20px;
}

.content {
  width: 100%;
  max-width: 1200px;
  background-color: #ffffff;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  margin-left: 10px;
}

/* General Content Section */
.content-section {
  padding: 30px;
  background-color: #f9f9f9;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  margin-bottom: 30px;
}

.content-section h2 {
  font-size: 28px;
  color: #1a237e;
  margin-bottom: 15px;
  border-bottom: 2px solid #007BFF;
  padding-bottom: 5px;
}

.content-section p {
  font-size: 16px;
  line-height: 1.7;
  color: #333;
  margin-bottom: 20px;
}

.content-section.hidden {
  display: none;
}

/* Institute Info */
.institute-info {
  background-color: #ffffff;
  padding: 25px;
  border-left: 5px solid #1a237e;
  border-radius: 8px;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.08);
}

.institute-info h3 {
  color: #2c3e50;
  margin-bottom: 15px;
}

.institute-info .info-line {
  margin-bottom: 12px;
  font-size: 16px;
  color: #444;
}

.institute-info a {
  color: #007BFF;
  text-decoration: none;
}

.institute-info a:hover {
  text-decoration: underline;
}




/* Year List */
.year-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.year-list li a {
  text-decoration: none;
  padding: 8px 14px;
  background-color: #007bff;
  color: #fff;
  border-radius: 5px;
  transition: background-color 0.3s;
}

.year-list li a:hover {
  background-color: #0056b3;
}
/* Style for loading message/spinner */
/* Toast Notification Styles */
/* Toast Notification Styles */
.toast {
  position: fixed;
  top: 200px;
  left: 50%;
  transform: translateX(-50%);
  background-color: #333;
  color: white;
  padding: 10px 20px;
  border-radius: 5px;
  font-size: 16px;
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
}

.toast.visible {
  opacity: 1;
}

/* Fullscreen iframe styles */
.sheet-container {
  position: relative;
  width: 100%;
  height: 100%;
}

#admission-iframe {
  width: 100%;
  height: 100vh; /* Full-screen height */
  border: none;
}

/* Optional: Add styles for fullscreen iframe behavior */



/* NCVT Section */
#ncvt {
  background-color: #f9f9f9;
  padding: 40px 20px;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  margin: 40px auto;
  text-align: center;
  transition: all 0.3s ease;
}

#ncvt h2 {
  font-size: 2rem;
  color: #2c3e50;
  margin-bottom: 15px;
}

#ncvt p {
  font-size: 1.1rem;
  color: #555;
  margin-bottom: 25px;
}

/* Enquiry Section */
.enquiry-section {
  max-width: 600px;
  margin: 40px auto;
  padding: 20px;
  background-color: #f9f9f9;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.enquiry-section h2 {
  text-align: center;
  margin-bottom: 20px;
  color: #333;
}

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

.enquiry-form label {
  font-weight: bold;
  color: #555;
}

.enquiry-form input,
.enquiry-form textarea {
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 16px;
  width: 100%;
}

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

.enquiry-form button {
  background-color: #007bff;
  color: white;
  padding: 12px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 16px;
  transition: background 0.3s;
}

.enquiry-form button:hover {
  background-color: #0056b3;
}

/* Gallery */
#gallery {
  padding: 60px 20px;
  background: linear-gradient(135deg, #f0f4f8, #d9e2ec);
  border-radius: 16px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  max-width: 100%;
  margin: 60px auto;
  text-align: center;
}

#gallery h2 {
  font-size: 2.5rem;
  color: #1e3a8a;
  margin-bottom: 30px;
  font-weight: 700;
}
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  padding: 20px;
}

.gallery-grid img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  cursor: pointer;
}

.gallery-grid img:hover {
  transform: scale(1.1);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
  z-index: 8;
}


/* About Section */
#about {
  padding: 60px 20px;
  background: linear-gradient(135deg, #f3f4f6, #e2e8f0);
  color: #1e293b;
  max-width: 1000px;
  margin: 40px auto;
  border-radius: 16px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}

#about h2 {
  font-size: 2.5rem;
  color: #0f172a;
  text-align: center;
  margin-bottom: 40px;
  font-weight: 700;
}

#about h3 {
  font-size: 1.6rem;
  color: #1e40af;
  margin: 30px 0 10px;
  font-weight: 600;
}

#about p {
  font-size: 1.05rem;
  line-height: 1.8;
  color: #334155;
  margin-bottom: 20px;
}

#about ul {
  padding-left: 20px;
  margin-bottom: 20px;
}

#about ul li {
  font-size: 1rem;
  margin-bottom: 8px;
  padding-left: 20px;
  position: relative;
}

#about ul li::before {
  content: "✔";
  position: absolute;
  left: 0;
  color: #22c55e;
}

/* Footer */
footer {
  background-color: #00264d;
  color: white;
  padding: 30px 20px;
  margin-top: 40px;
  border-top: 4px solid #007BFF;
  text-align: center;
}

.footer-container {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  max-width: 1200px;
  margin: auto;
  align-items: center;
}

.footer-left h3 {
  font-size: 20px;
  margin-bottom: 10px;
}

.footer-left p {
  font-size: 14px;
  color: #ccc;
}

.footer-right a {
  color: #66b3ff;
  margin-left: 20px;
  text-decoration: none;
  font-size: 15px;
  transition: color 0.3s;
}

.footer-right a:hover {
  color: #ffffff;
}

/* Responsive iframe wrapper for Excel table */
.responsive-iframe {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
}

.responsive-iframe iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* Responsive Design */
@media (max-width: 768px) {
  .top-header {
    flex-direction: column;
    text-align: center;
  }

  nav {
    flex-direction: column;
    align-items: center;
  }

  nav a {
    width: 90%;
    text-align: center;
  }

  .content {
    padding: 20px;
  }

  #about {
    padding: 40px 15px;
  }

  .gallery-grid {
    flex-direction: column;
    align-items: center;
  }

  .gallery-grid img {
    max-width: 90%;
  }

  .footer-container {
    flex-direction: column;
    text-align: center;
  }

  .footer-right {
    margin-top: 15px;
  }

  .footer-right a {
    display: block;
    margin: 8px 0;
  }
}
