* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Arial, sans-serif;
}

body {
  background: linear-gradient(135deg, #f5f9ff, #e3efff);
  color: #304bc0;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

header {
  width: 100%;
  background: linear-gradient(135deg, #ffffff, #dce4f5);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.topbar {
  max-width: 1300px;
  margin: auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.logo {
  width: 58px;
  height: 58px;
  
  color: #fff;
  border-radius: 50%;
  overflow: hidden;
  display: grid;
  place-items: center;
  font-size: 22px;
  font-weight: bold;
 
}

.logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.college-title h1 {
  font-size: 24px;
  color: #04016b;
  line-height: 1.2;
}

.college-title p {
  font-size: 13px;
  color: #555;
  margin-top: 4px;
}

.menu-toggle {
  display: none;
  font-size: 28px;
  cursor: pointer;
  color: #2402a0;
  background: none;
  border: none;
}

nav {
  margin-left: auto;
}

.navbar {
  display: flex;
  align-items: center;
  gap: 8px;
}

.navbar > li {
  position: relative;
}

.navbar > li > a,
.navbar > li > button {
  display: block;
  padding: 12px 16px;
  border: none;
  background: none;
  font-size: 15px;
  color: #222;
  cursor: pointer;
  border-radius: 8px;
  transition: 0.3s;
}

.navbar > li > a:hover,
.navbar > li > button:hover {
  background: #2402a0;
  color: #fff;
}

.dropdown-menu,
.submenu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
  display: none;
  padding: 8px 0;
}

.dropdown-menu li,
.submenu li {
  position: relative;
}

.dropdown-menu li a,
.submenu li a,
.dropdown-menu li button {
  width: 100%;
  text-align: left;
  padding: 12px 18px;
  display: block;
  border: none;
  background: none;
  cursor: pointer;
  font-size: 14px;
  color: #333;
  transition: 0.3s;
}

.dropdown-menu li a:hover,
.submenu li a:hover,
.dropdown-menu li button:hover {
  background: #c5dcf2;
  color: #2402a0;
}

.has-submenu .submenu {
  top: 0;
  left: 100%;
}

.navbar li:hover > .dropdown-menu,
.dropdown-menu li:hover > .submenu {
  display: block;
}



@media (max-width: 992px) {
 

  .menu-toggle {
    display: block;
  }

  nav {
    width: 100%;
  }

  .navbar {
    display: none;
    flex-direction: column;
    width: 100%;
    background: #fff;
    padding-top: 10px;
  }

  .navbar.active {
    display: flex;
  }

  .navbar > li {
    width: 100%;
  }

  .navbar > li > a,
  .navbar > li > button {
    width: 100%;
    text-align: left;
    border-radius: 0;
  }

  .dropdown-menu,
  .submenu {
    position: static;
    display: none;
    box-shadow: none;
    border-radius: 0;
    padding-left: 16px;
    background: #f7fff8;
  }

  .navbar li.open > .dropdown-menu,
  .dropdown-menu li.open > .submenu {
    display: block;
  }

  .has-submenu .submenu {
    left: 0;
  }
}

@media (max-width: 768px) {
  .topbar {
    padding: 12px 15px;
  }

  .college-title h1 {
    font-size: 20px;
  }

  .college-title p {
    font-size: 12px;
  }
  

}

@media (max-width: 480px) {
  .logo {
    width: 48px;
    height: 48px;
    font-size: 18px;
  }

  .college-title h1 {
    font-size: 17px;
  }

}

/* ===== GALLERY SECTION ===== */

.gallery-section {
  padding: 80px 8%;
}

.gallery-header {
  text-align: center;
  margin-bottom: 40px;
}

.gallery-header h2 {
  font-size: 42px;
  color: #04016b;
  margin-bottom: 10px;
}

.gallery-header p {
  color: #555;
  font-size: 18px;
}

/* FILTER BUTTONS */

.gallery-filter {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 15px;
  margin-bottom: 40px;
}

.gallery-filter button {
  border: none;
  padding: 12px 22px;
  border-radius: 30px;
  background: white;
  color: #2402a0;
  font-weight: bold;
  cursor: pointer;
  transition: 0.3s ease;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.gallery-filter button:hover,
.gallery-filter button.active {
  background: #2402a0;
  color: white;
}

/* GALLERY GRID */

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px,1fr));
  gap: 25px;
}

.gallery-item {
  overflow: hidden;
  border-radius: 20px;
  cursor: pointer;
  position: relative;
  background: #fff;
  box-shadow: 0 8px 25px rgba(0,0,0,0.08);
  transition: 0.4s;
}

.gallery-item:hover {
  transform: translateY(-8px);
}

.gallery-item img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery-item:hover img {
  transform: scale(1.12);
}

/* IMAGE OVERLAY */

.gallery-item::after {
  content: "View Image";
  position: absolute;
  inset: 0;
  background: rgba(36, 2, 160, 0.55);
  color: white;
  font-size: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: 0.4s;
}

.gallery-item:hover::after {
  opacity: 1;
}

/* LIGHTBOX */

.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  background: rgba(0,0,0,0.9);
  width: 100%;
  height: 100vh;
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.lightbox img {
  width: 90%;
  max-width: 900px;
  border-radius: 20px;
}

.close-btn {
  position: absolute;
  top: 30px;
  right: 40px;
  color: white;
  font-size: 50px;
  cursor: pointer;
}

/* RESPONSIVE */

@media(max-width:768px) {
  .gallery-header h2 {
    font-size: 32px;
  }

  .gallery-item img {
    height: 250px;
  }
}

/* FOOTER */
.footer {
  background: #0a0a2a;
  color: #fff;
  padding: 50px 20px 20px;
}

.footer-container {
  max-width: 1200px;
  margin: auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

.footer-col h3,
.footer-col h4 {
  margin-bottom: 15px;
  color: #ffffff;
}

.footer-col p {
  font-size: 14px;
  color: #ccc;
  line-height: 1.6;
}

.footer-col ul li {
  margin-bottom: 10px;
}

.footer-col ul li a {
  color: #ccc;
  transition: 0.3s;
}

.footer-col ul li a:hover {
  color: #ffffff;
}

.social-icons {
  margin-top: 10px;
}

.social-icons a {
  display: inline-block;
  margin-right: 10px;
  color: #fff;
  background: #2402a0;
  padding: 10px;
  border-radius: 50%;
  transition: 0.3s;
}

.social-icons a:hover {
  background: #fff;
  color: #2402a0;
}

/* Map */
.footer-col.map iframe {
  width: 100%;
  height: 150px;
  border: 0;
  border-radius: 10px;
}

/* Bottom */
.footer-bottom {
  text-align: center;
  margin-top: 30px;
  padding-top: 15px;
  border-top: 1px solid #444;
  font-size: 14px;
  color: #aaa;
}

/* Responsive */
@media (max-width: 992px) {
  .footer-container {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 600px) {
  .footer-container {
    grid-template-columns: 1fr;
  }
}

/* Footer Logo */
.footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.footer-logo img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
}

.footer-logo h3 {
  font-size: 16px;
  margin: 0;
  color: #fff;
}

.footer-logo img {
  width: 50px;
  height: 50px;
  object-fit: contain;

  /* Make dark logo visible on dark background */
  filter: brightness(0) invert(1);
}