/* RESET & BASE */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Segoe UI", sans-serif;
  background-color: #f4f4f4;
  color: #333;
  line-height: 1.6;
}

/* REGISTRATION BUBBLE STYLES */
.registration-bubble {
  position: fixed;
  top: 240px; /* Moved further down to be underneath the Contact and Academics buttons */
  right: 20px;
  background: linear-gradient(135deg, #28a745, #20c997);
  color: white;
  padding: 12px 20px;
  border-radius: 25px;
  box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
  z-index: 1002;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  transition: all 0.3s ease;
  animation: bubbleFloat 3s ease-in-out infinite;
  max-width: 280px;
  font-weight: 700; /* Changed from 600 to 700 for extra boldness */
  font-size: 18px; /* Changed from 14px to 18px for bigger text */
}

.registration-bubble:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 20px rgba(40, 167, 69, 0.4);
}

.bubble-text {
  flex: 1;
  line-height: 1.3;
}

.bubble-close {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: white;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 16px;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
}

.bubble-close:hover {
  background: rgba(255, 255, 255, 0.3);
}

@keyframes bubbleFloat {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-5px);
  }
}

.registration-bubble.hidden {
  opacity: 0;
  transform: translateX(100%);
  pointer-events: none;
}

/* HEADER */
header {
  background-color: #003366;
  color: #fff;
  padding: 1.5rem 2rem;
  text-align: center;
  position: relative;
}

.logo-container {
  display: flex;
  border-radius: -160px;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.logo {
  width: 100px;
  height: 100px; /* Ensure it's a square */
  border-radius: 50%; /* Perfect circle */
  object-fit: cover; /* Ensures the image fills the shape */
  margin-right: 1rem;
}

h1 {
  font-size: 2.5rem;
  font-weight: bold;
}

nav {
  margin-top: 1rem;
}

.nav-links {
  list-style: none;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
}

.nav-links li {
  margin: 0 1.5rem;
}

.nav-links a {
  color: #fff;
  text-decoration: none;
  font-size: 1.1rem;
  font-weight: 600;
  transition: color 0.3s ease;
}

.nav-links a:hover {
  color: #f1c40f;
}

/* HAMBURGER MENU STYLES */
.hamburger-menu {
  display: none;
  flex-direction: column;
  justify-content: space-around;
  width: 30px;
  height: 30px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  position: absolute;
  top: 120px; /* Moved down below the logo */
  left: 20px;
  z-index: 1003;
}

.hamburger-line {
  width: 100%;
  height: 3px;
  background-color: white;
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* Hamburger animation when active */
.hamburger-menu.active .hamburger-line:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

.hamburger-menu.active .hamburger-line:nth-child(2) {
  opacity: 0;
}

.hamburger-menu.active .hamburger-line:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -6px);
}

/* HERO + SLIDESHOW */
.hero-section {
  position: relative;
  height: 450px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
}

.background-slideshow {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  z-index: 0;
}

.background-slideshow img {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  animation: slideShow 48s infinite; /* 8 images × 6s each */
}

.background-slideshow img:nth-child(1) { animation-delay: 0s; }
.background-slideshow img:nth-child(2) { animation-delay: 6s; }
.background-slideshow img:nth-child(3) { animation-delay: 12s; }
.background-slideshow img:nth-child(4) { animation-delay: 18s; }
.background-slideshow img:nth-child(5) { animation-delay: 24s; }
.background-slideshow img:nth-child(6) { animation-delay: 30s; }
.background-slideshow img:nth-child(7) { animation-delay: 36s; }
.background-slideshow img:nth-child(8) { animation-delay: 42s; }
.background-slideshow img:nth-child(9) { animation-delay: 48s; } /* Optional if 9th loops back */

@keyframes slideShow {
  0%   { opacity: 0; }
  5%   { opacity: 1; }
  25%  { opacity: 1; }
  30%  { opacity: 0; }
  100% { opacity: 0; }
}


.hero-content {
  position: relative;
  z-index: 1;
  background: rgba(0, 0, 0, 0.6);
  padding: 2rem;
  border-radius: 10px;
  text-align: center;
}

.hero-content h2 {
  font-size: 3rem;
  margin-bottom: 1rem;
  color: #ffae00;
}

.hero-content p {
  font-size: 1.2rem;
  line-height: 1.6;
}

/* CONTENT SECTIONS */
.info-section,
.contact-section {
  padding: 4rem 2rem;
  text-align: center;
}

.info-section h2,
.contact-section h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: #003366;
}

.info-section a,
.contact-section a {
  font-size: 1.1rem;
  color: #555;
  max-width: 900px;
  margin: 0 auto 1.5rem auto;
}

.info-section p,
.contact-section p {
  font-size: 1.1rem;
  color: #555;
  max-width: 900px;
  margin: 0 auto 1.5rem auto;
}

.academic-info h3 {
  font-size: 2rem;
  color: #003366;
  margin-top: 1.5rem;
}

.academic-info ul {
  list-style: none;
  padding: 0;
  margin-top: 1rem;
}

.academic-info li {
  font-size: 1.1rem;
  margin-bottom: 1rem;
}

/* CONTACT DETAILS */
.contact-section ul {
  list-style: none;
  padding: 0;
}

.contact-section li {
  font-size: 1.1rem;
  margin-bottom: 1rem;
}

.info-section a,
.contact-section a {
  color: #004390;
  text-decoration: none;
  font-weight: bold;
}

.info-section a:hover {
  color: #ffc002;
}

/* FOOTER */
footer {
  background-color: #015ebb;
  color: #fff;
  padding: 1.5rem 0;
  text-align: center;
}

footer p {
  font-size: 1rem;
}

.back-dashboard-button {
  background-color: hsl(192, 79%, 41%); /* matches your primary color */
  color: white;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  font-weight: bold;
  border: none;
  border-radius: 2rem;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
  font-family: "Outfit", sans-serif;
}

.back-dashboard-button:hover {
  background-color: hsl(192, 79%, 35%);
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.25);
}

.nav-buttons label,
.back-button {
  min-width: 120px;
  text-align: center;
}

/* Navigation */
nav.nav-buttons {
  background-color: #eb9500;
  padding: 10px 20px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: space-between;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 10;
}

nav .logo {
  height: 60px;
  margin-right: 15px;
}

.dropdown {
  position: relative;
  margin: 10px;
}

.dropdown label {
  font-weight: bold;
  cursor: pointer;
  padding: 8px 12px;
  background-color: #0077cc;
  color: white;
  border-radius: 5px;
  display: inline-block;
}

.dropdown .menu a button {
  background: none;
  border: none;
  width: 100%;
  text-align: left;
  padding: 12px 16px;
  font-size: 1rem;
  color: #333;
  background-color: #fff;
  transition: background-color 0.2s;
  cursor: pointer;
}

.dropdown .menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: white;
  box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.2);
  border-radius: 6px;
  overflow: hidden;
  z-index: 1000;
  min-width: 220px;
}
.dropdown:hover .menu {
  display: block;
}

.dropdown .menu button {
  width: 100%;
  background: none;
  border: none;
  padding: 10px;
  text-align: left;
  cursor: pointer;
  font-size: 14px;
}

.dropdown .menu button:hover {
  background-color: #f0f0f0;
}

a.back-button {
  padding: 8px 12px;
  background-color: #285fa7;
  color: white;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
}

.back-button:hover {
  background-color: #e68a00;
}

/* Main Section Styling */
.nav-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  background-color: #35414d;
  padding: 15px;
  border-bottom: 4px solid #0099cc;
}

.dropdown {
  position: relative;
}

.dropdown label {
  background-color: #0073b1;
  color: white;
  padding: 12px 18px;
  font-weight: bold;
  border-radius: 6px;
  cursor: pointer;
  display: inline-block;
  text-align: center;
  user-select: none;
  transition: background-color 0.3s ease;
}

/* SIDEBAR TOGGLE BUTTON */
.options-toggle {
  position: fixed;
  top: 1rem;
  right: 1rem;
  background-color: #006699;
  color: white;
  padding: 0.75rem 1.25rem;
  border: none;
  border-radius: 50px;
  font-size: 1.1rem;
  font-weight: bold;
  cursor: pointer;
  z-index: 1001;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.options-toggle:hover {
  background-color: #004d80;
  transform: scale(1.05);
}

/* SIDEBAR PANEL */
.sidebar {
  position: fixed;
  top: 0;
  right: -300px;
  height: 100%;
  width: 280px;
  background-color: #003366;
  color: white;
  padding: 2rem 1.5rem;
  box-shadow: -4px 0 12px rgba(0, 0, 0, 0.2);
  transition: right 0.4s ease;
  z-index: 1000;
  overflow-y: auto;
}

.sidebar.open {
  right: 0;
}

.sidebar h3 {
  margin-top: 0;
  font-size: 1.4rem;
  margin-bottom: 1.5rem;
  text-align: center;
  border-bottom: 2px solid white;
  padding-bottom: 0.5rem;
}

.sidebar ul {
  list-style: none;
  padding: 0;
}

.sidebar ul li {
  margin-bottom: 1rem;
}

.sidebar ul li a {
  display: block;
  background-color: hsl(192, 79%, 41%);
  color: white;
  padding: 0.75rem 1rem;
  border-radius: 1rem;
  font-weight: bold;
  text-decoration: none;
  text-align: center;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.sidebar ul li a:hover {
  background-color: hsl(192, 79%, 35%);
  transform: translateY(-2px);
}

/* MOBILE RESPONSIVE STYLES */
@media (max-width: 768px) {
  /* Registration bubble responsive - positioned below mobile nav */
  .registration-bubble {
    top: 200px; /* Moved up by about 1 inch (80px) from 280px */
    right: 10px;
    left: 10px;
    max-width: none;
    font-size: 16px; /* Changed from 13px to 16px for mobile */
    padding: 10px 15px;
  }

  /* Show hamburger menu on mobile */
  .hamburger-menu {
    display: flex !important;
  }

  /* Adjust header layout for mobile */
  header {
    position: relative;
    padding: 1rem 60px 3rem 60px; /* Increased bottom padding for hamburger space */
  }

  .logo-container {
    margin-bottom: 1rem; /* More space below logo for hamburger */
  }

  .logo {
    width: 80px; /* Slightly smaller on mobile if needed */
    height: 80px;
  }

  .logo-container h1 {
    font-size: 1.6rem; /* Adjust title size for mobile */
  }

  /* Hide navigation by default on mobile - FIXED */
  .nav-buttons {
    display: none !important;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: #35414d;
    flex-direction: column !important;
    padding: 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    justify-content: flex-start !important;
    gap: 10px !important;
  }

  /* Show navigation when active - FIXED */
  .nav-buttons.mobile-active {
    display: flex !important;
    animation: slideDown 0.3s ease-out;
  }

  /* Mobile navigation items styling */
  .nav-buttons .dropdown,
  .nav-buttons .back-button {
    margin: 8px 0;
    width: 100%;
  }

  .nav-buttons .dropdown label,
  .nav-buttons .back-button {
    display: block;
    width: 100%;
    padding: 15px;
    text-align: center;
    font-size: 16px;
    border-radius: 8px;
    transition: all 0.2s ease;
    text-decoration: none;
  }

  .nav-buttons .dropdown label:hover,
  .nav-buttons .back-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  }

  /* Slide down animation */
  @keyframes slideDown {
    from {
      opacity: 0;
      transform: translateY(-20px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  .hero-content h2 {
    font-size: 2rem;
  }

  .info-section h2 {
    font-size: 2rem;
  }

  .nav-links {
    flex-direction: column;
    gap: 10px;
  }
}

/* Desktop styles - keep existing navigation visible */
@media (min-width: 769px) {
  .nav-buttons {
    display: flex !important;
  }

  .hamburger-menu {
    display: none !important;
  }
}
