/* ================= TOP NAVIGATION ================= */

.top-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 50;
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

/* Default (transparent / hero mode) */
.top-nav:not(.sticky) {
  background: linear-gradient(
    to bottom,
    rgba(20, 40, 80, 0.65),
    rgba(20, 40, 80, 0.25)
  );
  box-shadow: none;
  backdrop-filter: blur(4px);
}

/* Sticky state */
.top-nav.sticky {
  background: rgba(20, 40, 80, 0.95);
  box-shadow: 0 4px 18px rgba(0,0,0,0.25);
}

/* Inner container */
.nav-inner {
  max-width: 1200px;
  margin: auto;
  padding: 22px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255,255,255,0.25);
  transition: padding 0.3s ease;
}

/* Shrink on sticky */
.top-nav.sticky .nav-inner {
  padding: 12px 20px;
}

/* Brand */
.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  font-weight: 600;
  color: #ffffff;
}

/* Logo */
.nav-logo {
  width: 60px;
  transition: width 0.3s ease;
}

.top-nav.sticky .nav-logo {
  width: 34px;
}

/* Brand text */
.brand-text {
  font-size: 1.4rem;
  font-weight: 600;
  color: #ffffff;
  transition: font-size 0.3s ease;
}

.top-nav.sticky .brand-text {
  font-size: 1.25rem;
}

/* Menu */
.nav-menu {
  list-style: none;
  display: flex;
  gap: 30px;
  margin: 0;
  padding: 0;
}

.nav-menu li a {
  color: #ffffff;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  padding-bottom: 4px;
  border-bottom: 2px solid transparent;
}

.nav-menu li a:hover {
  border-bottom: 2px solid #f5d48b;
}

.nav-menu li a.active {
  color: #f5d48b;
  border-bottom: 2px solid #f5d48b;
}

/* Auth buttons */
.nav-auth {
  display: flex;
  gap: 12px;
}

.btn-login {
  padding: 7px 18px;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,0.7);
  color: #ffffff;
  text-decoration: none;
  font-size: 0.85rem;
}

.btn-register {
  padding: 8px 20px;
  border-radius: 20px;
  background: linear-gradient(to bottom, #f7d98a, #e0b95c);
  color: #1f2937;
  font-weight: 600;
  text-decoration: none;
}

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: #ffffff;
}

/* Mobile */
@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }

  .nav-menu {
    position: absolute;
    top: 100%;
    right: 0;
    width: 100%;
    background: rgba(20, 40, 80, 0.97);
    flex-direction: column;
    align-items: center;
    gap: 20px;
    padding: 30px 0;
    display: none;
  }

  .nav-menu.active {
    display: flex;
  }

  .nav-auth {
    flex-direction: column;
  }
}



/* ================= PAGE CONTENT OFFSET ================= */

/* Default pages (with fixed nav) */
.page-content {
  padding-top: 120px; /* matches non-sticky nav height */
}

/* Mobile adjustment */
@media (max-width: 768px) {
  .page-content {
    padding-top: 140px;
  }
}

.page-content2 {
  padding-top: 100px; /* matches non-sticky nav height */
}

/* Mobile adjustment */
@media (max-width: 768px) {
  .page-content2 {
    padding-top: 100px;
  }
}
.page-title {
  text-align: center;
  margin-bottom: 30px;
}

.page-title h1 {
  font-family: 'Playfair Display', serif;
  font-size: 2.2rem;
  color: #2c5aa0;
  margin-bottom: 6px;
}

.page-title p {
  font-size: 1.05rem;
  color: #6b7280;
}
