* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
}

/* ---------------- Header layout: extreme left/right logos ---------------- */

header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: #040406;
  padding: 20px 1vw;
  flex-wrap: wrap;
  position: relative;
  z-index: 1000;
  min-height: 180px;
  /* Minimal gap between sections to keep edges clean */
  gap: 0;

}

/* Left and right logo groups hug the edges with minimal internal gap */
.left-logos,
.right-logos {
  display: flex;
  align-items: center;
  gap: 8px; /* adjust this tiny gap between logos as needed */
  min-width: 0;
}

.logo-container,
.partner-logo-container,
.iee-logo-container,
.bit-logo-container {
  display: flex;
  align-items: center;
  flex-shrink: 1;
  min-width: 0;
}

.logo,
.BIC-logo,
.bit-logo,
.iee-logo {
  max-width: 100%;
  height: auto;
  max-height: 120px;
  width: auto;
  object-fit: contain;
}

/* Partner and IEEE logos styled like BIC logo */
.partner-logo-container,
.iee-logo-container {
  border: 1px solid white;
  border-radius: 8px;
  padding: 8px;
  background-color: black;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Center the title properly - priority #1 */
.hacknova-title {
  flex: 2;
  text-align: center;
  font-family: "Cinzel Decorative", serif;
  font-weight: 700;
  font-size: clamp(30px, 8vw, 90px);
  color: white;
  white-space: nowrap;
  pointer-events: none;
  margin: 0 20px;
  min-width: 0;
  /* Ensure title is always visible */
  overflow: visible;
  z-index: 10;
  /* Ensure the title stays centered within available space */
  align-self: center;
  width: 100%;
  display: flex;
  justify-content: center;
}

/* Navbar (unchanged visually, kept for existing structure) */
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: black;
  padding: 14px 15px 8px; /* add extra top padding; right/bottom/left adjustments as needed */
  border-top: 2px solid red;
  border-bottom: 2px solid red;
  position: relative;
  z-index: 1000;
}

.nav-links {
  display: flex;
  gap: 30px;
  margin-left: auto;
}

.nav-links a {
  text-decoration: none;
  color: white;
  font-size: 18px;
  transition: 0.3s;
  white-space: nowrap;
}

.nav-links a:hover {
  color: red;
}

.register-btn {
  background-color: red;
  color: white;
  padding: 6px 12px;
  border: none;
  cursor: pointer;
  font-weight: bold;
  border-radius: 5px;
  font-size: 16px;
}

.register-btn:hover {
  background-color: darkred;
}

.hamburger {
  display: none;
  font-size: 30px;
  color: white;
  cursor: pointer;
}

/* ---------------- Responsive breakpoints (unchanged base behavior) ---------------- */

/* Medium screens */
@media screen and (max-width: 1200px) {
  .hacknova-title {
    font-size: clamp(28px, 6vw, 70px);
  }
  
  .logo, .BIC-logo, .bit-logo, .iee-logo {
    max-height: 100px;
  }
}

/* Tablet screens */
@media screen and (max-width: 992px) {
  header {
    min-height: 160px;
    padding: 25px 4vw;
  }
  
  .logo, .BIC-logo, .bit-logo, .iee-logo {
    max-height: 90px;
  }
  
  .hacknova-title {
    font-size: clamp(26px, 5.5vw, 60px);
    margin: 0 15px;
  }
  
  .nav-links {
    gap: 20px;
  }
  
  .nav-links a {
    font-size: 16px;
  }
}

/* Small screens - keep logos at edges with centered title */
@media screen and (max-width: 768px) {
  header {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    padding: 20px 4vw;
    min-height: auto;
    gap: 10px;
  }
  
  .hacknova-title {
    order: 1;
    width: 100%;
    font-size: clamp(32px, 10vw, 50px);
    margin: 10px 0;
    white-space: normal;
    line-height: 1.2;
  }
  
  .left-logos {
    order: 0;
    justify-content: center;
    flex: 1;
    min-width: 0;
  }
  
  .right-logos {
    order: 2;
    justify-content: center;
    flex: 1;
    min-width: 0;
  }
  
  .logo, .bit-logo {
    max-height: 70px;
    max-width: 100%;
  }
  
  /* Hide partner logos on mobile (as before) */
  .partner-logo-container, .iee-logo-container {
    display: none;
  }
  
  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: black;
    text-align: center;
    padding: 15px 0;
    gap: 20px;
    z-index: 1001;
  }
  
  .nav-links.show {
    display: flex;
  }
  
  .hamburger {
    display: block;
  }
  
  .navbar {
    padding: 8px 10px;
  }
}

/* Extra small screens */
@media screen and (max-width: 480px) {
  header {
    padding: 15px 4vw;
    gap: 8px;
  }
  
  .logo, .bit-logo {
    max-height: 60px;
  }
  
  .hacknova-title {
    font-size: clamp(24px, 9vw, 35px);
    margin: 8px 0;
    white-space: normal;
  }
  
  .left-logos, .right-logos {
    gap: 8px;
  }
  
  /* Ensure partner logos are hidden */
  .partner-logo-container, .iee-logo-container {
    display: none;
  }
  
  .nav-links a {
    font-size: 15px;
  }
  
  .register-btn {
    padding: 5px 10px;
    font-size: 14px;
  }
}

/* Very small screens */
@media screen and (max-width: 360px) {
  .logo {
    max-height: 50px;
  }
  
  .bit-logo {
    max-height: 55px;
  }
  
  .hacknova-title {
    font-size: 22px;
    white-space: normal;
    line-height: 1.1;
  }
  
  .left-logos, .right-logos {
    flex-direction: column;
    gap: 5px;
  }
  
  /* Ensure partner logos are hidden */
  .partner-logo-container, .iee-logo-container {
    display: none;
  }
}