/* RESET */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* BODY */
body {
  font-family: Arial, sans-serif;
  background: #f4f6f8;
  color: #333;
}
/* HEADER */
.header {
  height:60px;
  background:#072a41;
  color:#fff;
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:0 20px;
}

.logo-left img {
  height: 50px;   /* control size here */
  width: auto;    /* keeps aspect ratio */
  object-fit: contain;
  border-radius: 10px;
}

.nav a{
  color:#fff;
  text-decoration:none;
  margin-left:20px;
  font-weight:500;
  padding:5px 10px;
  border-radius:5px;
  transition:0.3s;
  
}

.nav a.active, .nav a:hover{
  background:#0e5581;
}

/* MOBILE RESPONSIVE */
@media (max-width: 768px) {

  .nav-menu {
    display: none;
    flex-direction: column;
    background: #0b3c5d;
    position: absolute;
    top: 65px;
    right: 5%;
    width: 200px;
    padding: 15px;
  }

  .nav-menu a {
    padding: 10px 0;
  }

  .nav-menu.show {
    display: flex;
  }

  .hamburger {
    display: block;
  }
}

/* FOOTER */
.footer {
  background: #0b3c5d;
  color: #ffffff;
  margin-top: 60px;
}

.footer-container {
  max-width: 1200px;
  margin: auto;
  padding: 40px 20px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.footer-section h3,
.footer-section h4 {
  margin-bottom: 10px;
}

.footer-section p {
  font-size: 14px;
  line-height: 1.6;
}

.footer-section ul {
  list-style: none;
}

.footer-section ul li {
  margin-bottom: 8px;
}

.footer-section ul li a {
  color: #ffffff;
  text-decoration: none;
  font-size: 14px;
}

.footer-section ul li a:hover {
  text-decoration: underline;
}

/* FOOTER BOTTOM */
.footer-bottom {
  background: #072a40;
  text-align: center;
  padding: 12px;
  font-size: 13px;
}

/* RESPONSIVE FOOTER */
@media (max-width: 768px) {
  .footer-container {
    grid-template-columns: 1fr;
    text-align: center;
  }
}
/* HERO SECTION */
.hero {
  background: linear-gradient(
      rgba(11, 60, 93, 0.85),
      rgba(11, 60, 93, 0.85)
    ),
    url("../images/aa.jpg");
  background-size: cover;
  background-position: center;
  color: white;
  padding: 100px 20px;
}

.hero-content {
  max-width: 800px;
  margin: auto;
  text-align: center;
}

.hero h1 {
  font-size: 38px;
  margin-bottom: 20px;
}

.hero p {
  font-size: 16px;
  line-height: 1.7;
  margin-bottom: 30px;
}

/* HERO BUTTONS */
.hero-buttons {
  display: flex;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
}

.btn {
  padding: 12px 22px;
  font-size: 14px;
  border-radius: 5px;
  text-decoration: none;
  transition: 0.3s ease;
}

/* BUTTON STYLES */
.btn.primary {
  background: #072a40;
  color: white;
}

.btn.primary:hover {
  background: #1779b6;
}

.btn.secondary {
  background: #2196f3;
  color: white;
}

.btn.secondary:hover {
  background: #1e88e5;
}

.btn.outline {
  border: 2px solid white;
  color: white;
}

.btn.outline:hover {
  background: white;
  color: #0b3c5d;
}

/* MOBILE HERO */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 28px;
  }
}

/* MAP PAGE LAYOUT */
.map-layout {
  display: grid;
  grid-template-columns: 250px 1fr 300px;
  height: calc(100vh - 70px);
}

/* SIDEBARS */
.sidebar {
  background: #f9f9f9;
  padding: 20px;
  border-right: 1px solid #ddd;
}

.sidebar.right {
  border-right: none;
  border-left: 1px solid #ddd;
}

.sidebar h3 {
  margin-bottom: 10px;
  font-size: 16px;
}

.sidebar input {
  width: 100%;
  padding: 8px;
  margin-bottom: 20px;
}

/* LEGEND */
.legend {
  list-style: none;
  padding: 0;
}

.legend li {
  margin-bottom: 10px;
  font-size: 14px;
}

.legend-number {
  display: inline-block;
  width: 22px;
  height: 22px;
  background: #0b3c5d;
  color: white;
  text-align: center;
  line-height: 22px;
  border-radius: 50%;
  margin-right: 8px;
}

/* MAP AREA */
.map-area {
  display: flex;
  align-items: center;
  justify-content: center;
  background: white;
}

.campus-map {
  width: 95%;
  height: auto;
  border: 1px solid #ddd;
}

/* MAP ELEMENTS */
.location rect {
  fill: #cfd8dc;
  stroke: #37474f;
  stroke-width: 2;
}

.location circle {
  fill: white;
}

.location text {
  fill: white;
  font-size: 14px;
  font-weight: bold;
}

.location:hover rect {
  fill: white;
  cursor: pointer;
}

/* ROUTE */
.route {
  fill: none;
  stroke: #ff9800;
  stroke-width: 4;
  stroke-dasharray: 8;
}

/* MOBILE MAP PAGE */
@media (max-width: 900px) {
  .map-layout {
    grid-template-columns: 1fr;
  }

  .sidebar.left,
  .sidebar.right {
    border: none;
  }
}

.location {
  cursor: pointer;
}

.location:hover {
  opacity: 0.85;
}

.location circle {
  fill: #ffff;
}

.location text {
  fill: white;
  font-size: 14px;
  font-weight: bold;
}

.info-image {
  width: 100%;
  height: auto;
  margin: 12px 0;
  border-radius: 6px;
  border: 1px solid #ccc;
  object-fit: cover;
}



/* MODAL */
.modal {
  position:fixed;
  top:0; left:0;
  width:100%; height:100%;
  background:rgba(0,0,0,0.6);
  display:none;
  align-items:center;
  justify-content:center;
  animation: fadeIn 1s ease; 
}

.modal-content {
  background:#fff;
  padding:20px;
  width:400px;
  border-radius:10px;
  animation: slideUp 0.4s ease;
}

.close-btn {
  float:right;
  cursor:pointer;
  font-weight:bold;
}

@keyframes fadeIn {
  from {opacity:0}
  to {opacity:1}
}

@keyframes slideUp {
  from {transform:translateY(50px); opacity:0}
  to {transform:translateY(0); opacity:1}
}
