* {
  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;
  }

}


/* 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;
  }
}

/* HISTORY SECTION */
.history-section {
  padding: 90px 20px;
  background: linear-gradient(135deg, #f5f9ff, #e3efff);
}

.history-container {
  max-width: 1200px;
  margin: auto;
}

.section-heading {
  text-align: center;
  margin-bottom: 45px;
}

.section-heading span {
  color: #2402a0;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.section-heading h2 {
  font-size: 42px;
  color: #04016b;
  margin: 10px 0;
}

.section-heading p {
  color: #555;
  font-size: 16px;
}

.history-card {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 35px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 24px;
  padding: 35px;
  box-shadow: 0 20px 45px rgba(4, 1, 107, 0.12);
  overflow: hidden;
}

.history-logo {
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

.history-logo img {
  width: 220px;
  max-width: 100%;
  object-fit: contain;
  filter: drop-shadow(0 10px 18px rgba(36, 2, 160, 0.25));
}

.timeline {
  position: relative;
  padding-left: 25px;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 8px;
  top: 0;
  width: 3px;
  height: 100%;
  background: #2402a0;
  border-radius: 10px;
}

.timeline-item {
  position: relative;
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 20px;
  margin-bottom: 28px;
  animation: fadeUp 0.8s ease both;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -24px;
  top: 8px;
  width: 18px;
  height: 18px;
  background: #2402a0;
  border: 4px solid #dce4f5;
  border-radius: 50%;
}

.year {
  font-size: 22px;
  font-weight: 800;
  color: #2402a0;
}

.details h3 {
  color: #04016b;
  margin-bottom: 8px;
  font-size: 20px;
}

.details p {
  color: #444;
  line-height: 1.8;
  font-size: 15px;
}

.seat-box,
.affiliation-box {
  margin-top: 35px;
}

.seat-box h3,
.affiliation-box h3 {
  color: #04016b;
  font-size: 24px;
  margin-bottom: 20px;
}

.seat-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.seat-item {
  background: linear-gradient(135deg, #ffffff, #eef4ff);
  border-left: 5px solid #2402a0;
  border-radius: 16px;
  padding: 18px;
  transition: 0.3s ease;
}

.seat-item:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 25px rgba(36, 2, 160, 0.15);
}

.seat-item span {
  font-size: 22px;
  font-weight: 800;
  color: #2402a0;
}

.seat-item p {
  color: #04016b;
  font-weight: 700;
  margin: 8px 0;
}

.seat-item small {
  color: #555;
  line-height: 1.5;
}

.current-strength {
  margin-top: 25px;
  padding: 18px 22px;
  background: #2402a0;
  color: #fff;
  border-radius: 14px;
  font-size: 18px;
  text-align: center;
}

.affiliation-box ul {
  display: grid;
  gap: 14px;
}

.affiliation-box li {
  background: #ffffff;
  color: #333;
  padding: 16px 18px;
  border-radius: 14px;
  box-shadow: 0 8px 20px rgba(4, 1, 107, 0.08);
  border-left: 5px solid #2402a0;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(25px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 900px) {
  .history-card {
    grid-template-columns: 1fr;
    text-align: left;
  }

  .history-logo {
    justify-content: center;
  }

  .seat-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .history-section {
    padding: 60px 15px;
  }

  .section-heading h2 {
    font-size: 32px;
  }

  .history-card {
    padding: 25px 18px;
  }

  .timeline-item {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .year {
    font-size: 20px;
  }
}

/* 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);
}