/* RESET & VARIABLES */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg: #f0f4fa;
  --text: #222;
  --accent: #007bff;
  --card: #f4f4f4;
  --nav: #f9f9f9;
  --shadow: rgba(0, 0, 0, 0.1);
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Segoe UI', sans-serif;
  transition: background 0.3s, color 0.3s;
  line-height: 1.6;
}





  /* CONTACT SECTION */
  .contact-section {
    padding: 2rem 2rem;
    background: linear-gradient(135deg, #f8fbff 0%, #ffffff 100%);
  }
  
  .contact-container {
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
  }
  
  .contact-section h2 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 2rem;
    color: #007bff;
  }
  
  .contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
  }
  
  .contact-item {
    padding: 2rem;
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 123, 255, 0.1);
  }
  
  .contact-item h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    font-weight: 600;
    color: #007bff;
  }
  
  .contact-item p {
    font-size: 1.1rem;
    color: #555;
  }
  
  .contact-item a {
    color: #007bff;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
  }
  
  .contact-item a:hover {
    color: #00bfff;
    text-decoration: underline;
  }

/* UPDATE SECTIONS TO INCLUDE CONTAINMENT */
.contact-section {
    width: 100%;
    overflow: hidden;
}

@media (max-width: 750px) {
    .contact-info {
        grid-template-columns: 1fr;
    }
    .contact-section h2 {
        font-size: 2rem !important;
    }
}

/* ADD EXTRA SMALL SCREEN PROTECTION */
@media (max-width: 480px) {
   .contact-section {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}






/* NAVIGATION */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(to right, #007bff, #00bfff);
  padding: 1rem 1rem;
  position: sticky;
  top: 0;
  margin-bottom: 2px;
  z-index: 1000;
  box-shadow: 0 2px 4px var(--shadow);
}

.logo {
  font-size: 1.4rem;
  font-weight: bold;
  color: #ffffff;
  user-select: none;
}

#announcement-banner {
  display: none;
  backdrop-filter: blur(6px);
  background: rgba(255, 255, 255, 0.3); /* translucent background */
  color: #007bff;
  font-weight: 600;
  text-align: center;
  padding: 4px;
  font-family: 'Segoe UI', Tahoma, sans-serif;
  position: relative;
  z-index: 900;
  margin-top: 6px;
  border-bottom: 1px solid rgba(0, 123, 255, 0.3);
  font-size: 15px;
}

@keyframes glowFlash {
  0%, 100% {
    text-shadow: 0 0 4px rgba(0, 123, 255, 0.6);
    opacity: 1;
  }
  50% {
    text-shadow: 0 0 8px rgba(0, 123, 255, 1);
    opacity: 0.6;
  }
}

#announcement-banner .flashing-text {
  animation: glowFlash 1.5s infinite ease-in-out;
  display: inline-block;
  color: #007bff;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1rem;
  list-style: none;
  width:100%;
  padding: 2px;
  text-align: center;
  overflow: hidden;
}

/* Default (mobile/tablet) */
.nav-links li a,
.nav-links li button {
  font-weight: bold;
  text-decoration: none;
  border: none;
  cursor: pointer;
  width: 270px; /* mobile/tablet comfortable size */
  background: linear-gradient(to right, #e0f0ff, #ffffff);
  padding: 0.6rem 2rem;
  transition: all 0.3s ease;
  color: var(--text);
  font-size: 1rem;
  border-radius: 6px;
  box-sizing: border-box;
  user-select: none;
}

.nav-links li .logout-btn {
  background: linear-gradient(to right, #ff4d4d, #ff1a1a);
  color: white;
  font-weight: bold;
  padding: 0.6rem 2rem;
  border-radius: 8px;
  border: none;
  width: 270px; /* Full width in mobile menu */
  box-shadow: 0 0 12px rgba(255, 0, 0, 0.4), 0 0 20px rgba(255, 0, 0, 0.2) inset;
  transition: background 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
  text-align: center;
  font-size: 1rem;
}

/* Glowing hover effect */
.nav-links li .logout-btn:hover {
  background: linear-gradient(to right, #e60000, #ff3333);
  transform: scale(1.05);
  box-shadow: 0 0 20px rgba(255, 0, 0, 0.6), 0 0 30px rgba(255, 0, 0, 0.3) inset;
  color: white;
}

/* Login button style */
.nav-links li .login-btn {
  background: linear-gradient(to right, #28a745, #43d05c); /* Green shades */
  color: white;
  font-weight: 600;
  padding: 0.6rem 2rem;
  border-radius: 8px;
  border: none;
  width: 270px;
  box-shadow: 0 0 10px rgba(40, 167, 69, 0.3), 0 0 20px rgba(40, 167, 69, 0.1) inset;
  transition: background 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
  font-size: 1rem;
  text-align: center;
}

/* Hover effect */
.nav-links li .login-btn:hover {
  background: linear-gradient(to right, #1e7e34, #38c172);
  transform: scale(1.05);
  box-shadow: 0 0 18px rgba(40, 167, 69, 0.4), 0 0 30px rgba(40, 167, 69, 0.2) inset;
}
/* On large screens (laptops/desktops) reduce width */
@media (min-width: 768px) {
  .navbar {
    display: flex;
    align-items: center;
    justify-content: space-between; /* Logo left, nav right */
    padding: 1rem 2rem;
  }

  /* Make nav-links inline-flex and remove default padding/margin */
  .nav-links {
    display: flex;
    gap: 1rem;
    padding: 0;
    margin-left: 40px;
  }

  .nav-links li {
    list-style: none;
  }
  
.navbar .logo {
  flex-shrink: 0; /* logo keeps its size */
}

  /* Narrow buttons for large screens */
  .nav-links li a,
  .nav-links li button,
  .nav-links li .login-btn,
  .nav-links li .logout-btn {
    width: 173px;
    font-size:1.1rem;
    padding: 0.6rem 0.6rem;
  }
}

.nav-links li .active{
  background: linear-gradient(to bottom, #007bff, #00c6ff);
  color: white;
  border: none;
  box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
}

.nav-links li .active:hover,
.nav-links li button:hover {
 background: #d6ecff;
  border-color: #0056b3;
}

/* HAMBURGER MENU ICON */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  user-select: none;
  z-index: 1100; /* Above nav */
}

.hamburger span {
  width: 25px;
  height: 3px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* Hamburger animation when toggled */
.hamburger.open span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.open span:nth-child(2) {
  opacity: 0;
}

.hamburger.open span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* BUTTON STYLE */
.btn {
  display: inline-block;
  background: linear-gradient(to right, #007bff, #00bfff);
  
  color: white;
  padding: 0.65rem 1.4rem;
  font-size: 1rem;
  font-weight: 600;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.3s ease, transform 0.2s ease;
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  user-select: none;
}

.btn:hover {
  background: linear-gradient(to right, #0056b3, #0099cc);
      transform: translateY(-1px);
}

/* FOOTER */
footer {
  text-align: center;
  padding: 1.5rem;
  background: var(--nav);
  font-size: 0.9rem;
  border-top: 1px solid #ddd;
  user-select: none;
}

/* RESPONSIVE STYLES */
@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }
  
  /* Initially hidden with zero height and invisible */
.nav-links {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.4s ease, opacity 0.4s ease;
  flex-direction: column;
  align-items: center;
  position: absolute;
  top: 70px;
  left: 0;
  width:100%;
  background: var(--nav);
  padding: 0 0; /* No vertical padding when closed */
  box-shadow: 0 4px 8px var(--shadow);
  z-index: 999;
  pointer-events: none; /* Prevent interaction when hidden */
}

/* When shown, expand smoothly */
.nav-links.show {
  max-height: 500px; /* Enough to fit all links */
  opacity: 1;
  background: linear-gradient(to bottom, #5ab0ff, #99e0ff);
  padding: 1rem 0; /* Restore vertical padding */
  pointer-events: auto; /* Enable interaction */
}

}