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

body {
    font-family: 'Segoe UI', sans-serif;
}

/* Navbar styles */
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #000e8080;
  padding: 10px 20px;
  color: white;
  position: relative;
}
nav {
  position: relative;
  z-index: 1000;
}

.logo {
    display: flex;
    align-items: center;
    padding-left: 100px;
}

.logo img {
    height: 70px;
    width: auto;
    display: block;
    margin-left: 20px;
    /* Removes unwanted spacing */
}

.school-name {
    font-size: 35px;
    font-weight: bold;
    color: white;
    flex-grow: 1;
    text-align: center;
}


.nav-links {
    list-style: none;
    display: flex;
    gap: 20px;
    padding-right: 40px;
}

.nav-links li {
    position: relative;
}

.nav-links a {
    position: relative;
    font-size: large;
    color: white;
    text-decoration: none;
    padding: 8px 10px;
    display: block;
    transition: color 0.3s ease;
}

/* Underline animation */
.nav-links a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    height: 2px;
    width: 0%;
    background-color: white;
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-links .mobile-only{
  display: none;
}

/* Used for toggling the menu open */
.nav-links.show {
  display: flex !important;
  flex-direction: column;
}


/* Dropdown styles */
.dropdown {
  position: relative;
}

.dropdown-menu {
    display: none;
    position: absolute;
    background-color: #6873c8;
    top: 100%;
    left: -30px;
    list-style: none;
    min-width: 160px;
    border-radius: 5px;
    overflow: hidden;
    z-index: 1001;
}

.dropdown-menu li a {
    padding: 10px;
}

.dropdown:hover .dropdown-menu {
    display: block;
}

.hamburger,
.close-icon {
  display: none;
}

/* Slider container */
.slider {
    position: relative;
    width: 100%;
    height: calc(100vh - 80px);
    /* Adjust based on navbar height */
    overflow: hidden;
    z-index: 1;
}

/* Each slide */
.slide {
    position: absolute;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    filter: grayscale(50%);
    /* Slightly greyish */
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

/* Active slide */
.slide.active {
    opacity: 1;
    z-index: 1;
}

/* Text on slide */
.slide-text {
    position: absolute;
    top: 40%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    text-align: center;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.8);
}

.slide-text h1 {
    font-size: 3rem;
    margin-bottom: 10px;
}

.slide-text p {
    font-size: 1.2rem;
}


.about-section {
    padding: 60px 20px;
    background-color: #f5faff;
}

.about-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    max-width: 1200px;
    margin: auto;
    flex-wrap: wrap;
}

.about-text {
    flex: 1;
    min-width: 300px;
}

.about-text h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: #004080;
}

.about-text p {
    font-size: 1.1rem;
    margin-bottom: 15px;
    color: #333;
    line-height: 1.6;
}

.about-image {
    flex: 1;
    min-width: 300px;
    text-align: center;
}

.about-image img {
    max-width: 100%;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.courses-section {
    background-color: #f9fcff;
    padding: 60px 20px;
    text-align: center;
}

.section-title {
    font-size: 2.5rem;
    color: #004080;
    margin-bottom: 10px;
}

.section-subtitle {
    font-size: 1.1rem;
    color: #555;
    margin-bottom: 40px;
}

.course-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: auto;
}

.course-card {
    background: white;
    padding: 30px 20px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

.course-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.2);
}

.course-card img {
    width: 60px;
    height: 60px;
    margin-bottom: 20px;
}

.course-card h3 {
    color: #004080;
    margin-bottom: 10px;
    font-size: 1.3rem;
}

.course-card p {
    font-size: 0.95rem;
    color: #444;
    margin-bottom: 20px;
    line-height: 1.5;
}

.course-card button {
    padding: 10px 20px;
    background-color: #004080;
    color: white;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.course-card button:hover {
    background-color: #0066cc;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.modal-content {
    background: white;
    max-width: 600px;
    width: 90%;
    padding: 30px;
    border-radius: 10px;
    position: relative;
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.close-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 24px;
    color: #888;
    cursor: pointer;
}

.close-btn:hover {
    color: #004080;
}

.modal-content h2 {
    margin-bottom: 15px;
    color: #004080;
}

.modal-content p {
    font-size: 1rem;
    color: #333;
    line-height: 1.6;
}

.gallery-section {
  padding: 60px 20px;
  background-color: #fff;
  text-align: center;
}

.gallery-filters {
  margin: 30px 0;
}

.filter-btn {
  padding: 10px 20px;
  border: none;
  background-color: #eee;
  margin: 5px;
  cursor: pointer;
  border-radius: 20px;
  transition: 0.3s ease;
}

.filter-btn.active,
.filter-btn:hover {
  background-color: #004080;
  color: white;
}

/* .gallery-item {
  width: 30%;
  margin: 10px;
  border-radius: 10px;
  overflow: hidden;
  transition: transform 0.3s ease;
  display: none; /* Hide by default */


.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
}

/* When active, show item */
/* .gallery-item.show {
  display: block;
  animation: fadeIn 0.5s ease-in-out;
} */

/* Animation */
@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

.gallery-item:hover img {
  transform: scale(1.05);
}

.gallery-item.hide {
  opacity: 0;
  transform: scale(0.9);
  pointer-events: none;
}

.gallery-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 25px;
}

.gallery-item {
  flex: 1 1 calc(30% - 20px);
  max-width: calc(30% - 20px);
  border-radius: 12px;
  overflow: hidden;
  display: none;
}

.gallery-item.show {
  display: block;
  animation: fadeIn 0.4s ease-in-out;
}

.gallery-image-wrapper {
  position: relative;
  height: 250px;
}

.gallery-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
  transition: transform 0.3s ease;
}

/* Overlay */
.overlay {
  position: absolute;
  bottom: 0;
  background: rgba(0, 0, 0, 0.75);
  color: #fff;
  width: 100%;
  padding: 15px;
  transform: translateY(100%);
  transition: all 0.3s ease;
  opacity: 0;
}

.gallery-image-wrapper:hover .overlay {
  transform: translateY(0);
  opacity: 1;
}

.overlay h3 {
  margin: 0 0 5px;
  font-size: 18px;
}

.overlay .date {
  font-size: 14px;
  font-weight: 300;
  margin-bottom: 5px;
}

.overlay .desc {
  font-size: 13px;
  line-height: 1.4;
}


.principal-section {
  width: 100%;
  background-color: #f4f4f4;
  padding: 60px 20px;
}

.principal-container {
  max-width: 1200px;
  margin: auto;
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
  align-items: center;
}

.principal-photo img {
  width: 300px;
  height: 400px;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.principal-info {
  flex: 1;
}

.principal-info h2 {
  font-size: 32px;
  margin-bottom: 10px;
  color: #222;
}

.principal-info h4 {
  font-size: 20px;
  color: #555;
  margin-bottom: 20px;
}

.principal-info p {
  font-size: 16px;
  color: #444;
  line-height: 1.6;
}

/* === Principal Section === */
.principal-section {
  width: 100%;
  background-color: #f4f4f4;
  padding: 60px 20px;
}

.principal-heading {
  text-align: center;
  font-size: 30px;
  margin-bottom: 40px;
  color: #222;
  font-weight: 600;
  letter-spacing: 1px;
}

.principal-container {
  max-width: 1200px;
  margin: auto;
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
}

.principal-photo img {
  width: 300px;
  height: 400px;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.principal-info {
  flex: 1;
  min-width: 300px;
}

.principal-info h2 {
  font-size: 32px;
  margin-bottom: 10px;
  color: #222;
}

.principal-info h4 {
  font-size: 20px;
  color: #555;
  margin-bottom: 20px;
}

.principal-info p {
  font-size: 16px;
  color: #444;
  line-height: 1.6;
}


/* === Faculty Section === */
.faculty-section {
  padding: 60px 20px;
  background-color: #ffffff;
}
.faculty-section h2{
    text-align: center;
}
.faculty-heading {
  text-align: center;
  font-size: 30px;
  margin-bottom: 40px;
  color: #222;
  font-weight: 600;
  letter-spacing: 1px;
}

.faculty-grid {
  max-width: 1200px;
  margin: auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  justify-content: center;
}

.faculty-card {
  background-color: #fafafa;
  padding: 20px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease;
}

.faculty-card:hover {
  transform: translateY(-5px);
}

.faculty-card img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 15px;
}

.faculty-card h4 {
  font-size: 20px;
  color: #333;
  margin-bottom: 5px;
}

.faculty-card p {
  font-size: 14px;
  color: #555;
}

.contact-section {
  background: #f4f6f9;
  padding: 60px 20px;
}

.contact-heading {
  text-align: center;
  font-size: 30px;
  margin-bottom: 40px;
  color: #222;
  font-weight: 600;
}

.contact-container {
  max-width: 700px;
  margin: auto;
  background: #fff;
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.contact-form .form-group {
  margin-bottom: 20px;
}

.contact-form label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: #333;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 16px;
  font-family: inherit;
  transition: border 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
  border-color: #007acc;
  outline: none;
}

.submit-btn {
  display: inline-block;
  padding: 14px 28px;
  font-size: 16px;
  color: white;
  background-color: #007acc;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  transition: background-color 0.3s ease;
}

.submit-btn:hover {
  background-color: #005f9a;
}

.school-footer {
  background-color: #000e8080;
  color: #fff;
  font-family: 'Segoe UI', sans-serif;
  padding: 40px 20px 0;
}

.footer-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 20px;
  max-width: 1200px;
  margin: auto;
}

.footer-left {
  flex: 1 1 300px;
}

.footer-left h3 {
  font-size: 22px;
  margin-bottom: 15px;
  color: #ffffff;
}

.footer-left p {
  font-size: 16px;
  margin: 10px 0;
  display: flex;
  align-items: center;
  gap: 10px;
  line-height: 3;
}

.footer-left img {
  vertical-align: middle;
  width: 20px;
  height: 20px;
  filter: brightness(0) invert(1);
}

.footer-right {
  flex: 1 1 400px;
}

.footer-right iframe {
  width: 100%;
  height: 200px;
  border: 0;
  border-radius: 8px;
}

.footer-bottom {
  text-align: center;
  margin-top: 30px;
  padding: 15px 0;
  background-color: #00108f80;
  font-size: 15px;
  border-top: 1px solid #333;
}


/* Optional animation */
@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}


/* MEDIA QUERY FOR SMALL SCREENS */
@media (max-width: 768px) {
  .logo{
    padding-left: 5px;
  }
  .navbar{
    background-color: #000e80b0;
  }
  .nav-links {
    display: none;
    position: absolute;
    top: 60px;
    right: 0;
    background: #000e80b0;
    flex-direction: column;
    width: 100%;
    padding: 10px 0;
  }

  .nav-links li {
    margin: 10px 0;
    text-align: center;
  }

  .mobile-only {
    display: block;
  }

  .dropdown {
    display: none; /* Hide desktop dropdown on mobile */
  }

  .menu-icons {
    display: block;
    font-size: 30px;
    cursor: pointer;
  }

  .hamburger,
  .close-icon {
    display: none;
    font-size: 35px;
  }

  /* SHOW HAMBURGER BY DEFAULT */
  .hamburger {
    display: block;
  }

  /* WHEN NAV IS ACTIVE: SIMULATE OPENED MENU */
  .nav-links.active {
    display: flex;
  }

  /* WHEN MENU IS ACTIVE, HIDE HAMBURGER, SHOW CLOSE */
  .menu-icons.menu-open .hamburger {
    display: none;
  }

  .menu-icons.menu-open .close-icon {
    display: block;
  }
  .nav-links.show {
    margin-top: 34px;
    background-color: #000e80b0;
  }
  .logo img {
    margin-left: 0px;
  }
  .school-name {
    font-size: 28px;
  }
  .nav-links a {
    font-size: 23px;
  }
  .about-text h2 {
    font-size: 1.5rem;
    text-align: center;
  }
  .courses-section {
    background-color: #000e8080;
    padding: 20px 20px;
  }
  .section-title {
    font-size: 1.7rem;
    color: #ffffff;
  }
  .section-subtitle {
    font-size: 1.1rem;
    color: #cdc5c5;
    margin-bottom: 30px;
  }
  .submit-btn {
    margin-left: 45px;
  }
  .gallery-section .section-title{
    color: #004080;
  }

}
