/* Base Styles */

html, body {
  max-width: 100%;
  overflow-x: hidden;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Helvetica Neue', Arial, sans-serif;
  line-height: 1.6;
  color: #333;
  background: #f4f9ff;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

/* Header & Navigation */
header {
  background-color: #00274C;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100px;
}

.logo img {
  height: 100px;
}

nav ul {
  display: flex;
  gap: 1.5rem;
}

nav ul li {
  position: relative;
}

nav a {
  color: #fff;
  font-weight: 600;
  padding: 0.5rem;
  display: block;
}

nav li:hover > a {
  background: #0054A6;
  border-radius: 4px;
}

/* Dropdown Menu */
.dropdown-menu,
.contact {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #fff;
  border-radius: 4px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
  z-index: 10;
}

.dropdown-menu {
  min-width: 300px;
}

.contact {
  min-width: 160px;
}

.dropdown-menu li a,
.contact li a {
  color: #00274C;
  padding: 0.5rem 1rem;
}

.dropdown-menu li a:hover,
.contact li a:hover {
  background: #f0f0f0;
}

nav li:hover .dropdown-menu,
nav li:hover .contact {
  display: block;
}

/* Main Container */
.container {
  max-width: 1200px;
  margin: 30px auto;
  padding: 20px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Gallery */
.gallery {
  margin-bottom: 40px;
}

.gallery h2 {
  font-size: 24px;
  margin-bottom: 20px;
  color: #003366;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.gallery-grid img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.gallery img {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery img:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}


/* Highlights Section */
.highlights {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.highlight-card {
  background: #ffffff;
  padding: 20px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

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

.highlight-card:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

/* News & About Section */
.top-section {
  display: flex;
  gap: 30px;
  margin-bottom: 40px;
}

.news-events,
.about-university {
  flex: 1;
  background: #ffffff;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.news-events h2,
.about-university h2 {
  color: #003366;
  margin-bottom: 15px;
}

.news-events ul li {
  margin-bottom: 10px;
  font-size: 15px;
}

/* About University Section */
#about h2 {
  font-size: 24px;
  margin-top: 30px;
  color: #003366;
}

#about p {
  margin-bottom: 10px;
  line-height: 1.7;
}

/* Footer */
footer {
  background: #00274C;
  color: #fff;
  text-align: center;
  padding: 1rem;
  margin-top: 2rem;
}
/* Responsive Styles */
@media (max-width: 1024px) {
  nav ul {
    flex-direction: column;
    background-color: #00274C;
    position: absolute;
    top: 100px;
    left: 0;
    width: 100%;
    display: none;
    padding: 1rem 0;
  }

  nav ul.show-menu {
    display: flex;
  }

  nav ul li {
    text-align: center;
  }

  .hamburger {
    display: block;
    cursor: pointer;
    padding: 0.5rem;
  }

  .hamburger div {
    width: 25px;
    height: 3px;
    background-color: #fff;
    margin: 4px 0;
    transition: 0.4s;
  }
}

/* Mobile Logo */
@media (max-width: 768px) {
  .top-section {
    flex-direction: column;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .highlights {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 410px) {
  .logo img {
    max-width: 280px;
  }
}

@media (min-width: 450px) {
  .hamburger {
    display: block;
    margin-left: auto;
    position: relative;
    z-index: 10;
  }

  .navbar {
    justify-content: space-between;
  }

  .logo {
    max-width: 120px;
  }
}
