/* General Styles */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f8f9fa;
    color: #333;
}

/* Navbar Customization */
.navbar {
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
    font-weight: bold;
    letter-spacing: 1px;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #007bff, #00b4d8);
    color: white;
    padding: 80px 0;
}

.hero h1 {
    font-size: 3rem;
    font-weight: 600;
}

.hero p {
    font-size: 1.25rem;
}

/* Content Sections */
section.content {
    background-color: #fff;
    border-radius: 10px;
    padding: 40px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

/* Buttons */
.btn-primary {
    background-color: #007bff;
    border: none;
    transition: 0.3s;
}

.btn-primary:hover {
    background-color: #0056b3;
}

/* Footer */
footer {
  position: relative;
  bottom: 0;
  width: 100%;
  background-color: #0d6efd;
  color: white;
  text-align: center;
  padding: 1rem 0;
  font-size: 0.9rem;
}

/* Map image sizing to match other cards */
.map-img {
  width: 100%;
  height: 250px;
  object-fit: cover;
}

html {
  scroll-behavior: smooth;
}

/* Hover effects for cards */
.card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

/* Preview Card Hover Effect */
.preview-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.preview-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

/* Smooth hover for buttons */
.btn-primary {
  transition: all 0.3s ease;
}

.btn-primary:hover {
  transform: scale(1.05);
  background-color: #0056b3;
}


/* Card hover animation */
.card {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

/* Button hover effect */
.btn-primary:hover {
  background-color: #004080;
  border-color: #004080;
}

/* Section padding consistency */
section.content {
  padding-top: 60px;
  padding-bottom: 60px;
}

/* Footer tweaks */
footer {
  font-size: 0.9rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .navbar-brand {
    font-size: 1.2rem;
  }

  h1 {
    font-size: 1.6rem;
  }

  .card img {
    height: 180px;
    object-fit: cover;
  }

  .form-control.w-50 {
    width: 90% !important;
  }
}

/* --- Map Image Fix --- */
.map-img, 
.content img[alt="Interactive Campus Map"] {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 20px auto;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}
