/* =========================
   Navbar Base
========================= */
.custom-navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 999;

  background: #2f5f8f;

  padding: 12px 0;

  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* =========================
   Logo
========================= */
.custom-navbar .navbar-brand img {
  height: 50px !important;
  max-height: none !important;
  max-width: none !important;
  width: auto;
}

/* =========================
   Navigation Links
========================= */
.custom-navbar .nav-link {
  color: #ffffff !important;
  font-weight: 500;
  padding: 10px 14px;
  position: relative;
  transition: all 0.25s ease;
}

.custom-navbar .nav-link:hover {
  color: #c9a227 !important;
}

/* Underline Effect */
.custom-navbar .nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: #c9a227;
  transition: 0.3s;
}

.custom-navbar .nav-link:hover::after {
  width: 70%;
}

/* =========================
   Dropdown
========================= */
.custom-navbar .dropdown-menu {
  border-radius: 6px;
  border: none;
  background: #ffffff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* =========================
   Spacing
========================= */
.custom-navbar .navbar-nav .nav-item {
  margin: 0 6px;
}

/* =========================
   Login Button
========================= */
.custom-navbar .navbar-cta {
  background: #c69668;
  color: #ffffff !important;
  padding: 6px 14px;
  border-radius: 6px;
  font-weight: 600;
  border: none;
  transition: all 0.2s ease;
  text-decoration: none;
  margin-left: 10px;
}

.custom-navbar .navbar-cta:hover {
  background: #b5855a;
  color: #ffffff !important;
}

.custom-navbar a[href="/login"] {
  background: #ffffff;
  color: #2f5f8f !important;
  padding: 6px 14px;
  border-radius: 6px;
  font-weight: 600;
  transition: all 0.2s ease;
  margin-left: 10px;
}

.custom-navbar a[href="/login"]:hover {
  background: #f0f0f0;
  color: #2f5f8f !important;
}

.custom-navbar #language-switcher {
  margin-left: 10px;
}

.custom-navbar #language-switcher .form-control {
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 6px;
  font-size: 14px;
  padding: 4px 8px;
}

.custom-navbar #language-switcher .form-control option {
  background: #2f5f8f;
  color: #ffffff;
}

/* =========================
   Body Offset
========================= */
body {
  padding-top: 70px;
}

/* =========================
   Anchor Fix
========================= */
[id] {
  scroll-margin-top: 90px;
}

/* =========================
   Page Header
========================= */
.page-header-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;

  background: #f1f5f9;

  padding: 50px 20px;
  margin-bottom: 30px;

  border-bottom: 2px solid #e5e7eb;
}

/* Hide empty headers */
.page-header-wrapper:not(:has(h1)) {
  display: none;
}

/* Title */
.page-header-wrapper h1 {
  font-size: 38px;
  font-weight: 700;
  color: #111827;
  margin: 0;
  text-align: center;
}

/* Gold line */
.page-header-wrapper h1::after {
  content: "";
  display: block;
  width: 60px;
  height: 3px;
  background: #c9a227;
  margin: 12px auto 0;
  border-radius: 2px;
}

/* =========================
   Mobile
========================= */
@media (max-width: 768px) {
  .custom-navbar .navbar-brand img {
    height: 40px;
  }

  body {
    padding-top: 60px;
  }

  [id] {
    scroll-margin-top: 80px;
  }

  .page-header-wrapper {
    padding: 30px 15px;
  }

  .page-header-wrapper h1 {
    font-size: 28px;
  }
}

/* =========================
    Footer (Custom)
========================= */

.web-footer.custom-footer {
  padding: 12px 0 8px;
  background: #2f5f8f !important;
  color: #ffffff !important;
}

.custom-footer-fix {
  min-height: auto;
}

.custom-footer-links {
  background: #2f5f8f;
  color: #ffffff;
  padding: 0 15px;
}

/* =========================
    Links
========================= */
.custom-footer-links a,
.custom-footer-info a {
  color: #ffffff !important;
  text-decoration: none;
  opacity: 0.9;
  transition: all 0.3s ease;
}

.custom-footer-links a:hover,
.custom-footer-info a:hover {
  color: #c9a227 !important;
  transform: translateX(4px);
}

.custom-footer-info a:hover {
  transform: none;
}

/* =========================
    Footer Grid
========================= */
.custom-footer-links .row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 12px;
  justify-items: center;
}

.footer-group {
  padding: 10px 10px;
}

/* =========================
    Titles
========================= */
.custom-footer-links .footer-group-label {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 10px;
  position: relative;
  color: #ffffff;
}

.custom-footer-links .footer-group-label::after {
  content: "";
  display: block;
  width: 35px;
  height: 2px;
  background: #c9a227;
  margin-top: 6px;
}

/* =========================
    List
========================= */
.footer-group-links {
  padding: 0;
  list-style: none;
}

.footer-group-links li {
  margin-bottom: 5px;
}

/* =========================
    Footer Bottom
========================= */
.custom-footer-info {
  border-top: 1px solid rgba(255,255,255,0.2);
  margin-top: 10px;
  padding: 8px 15px 0;
  font-size: 14px;
  background: #1f3f5f;
  color: #e5e7eb;
}

.custom-footer .row {
  max-width: 1200px;
  margin: 0 auto;
}

/* =========================
    Social Icons
========================= */
.social-links {
  display: flex;
  gap: 12px;
  align-items: center;
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  color: #ffffff;
  text-decoration: none;
  transition: all 0.3s ease;
}

.social-link:hover {
  color: #c9a227;
  background: rgba(255,255,255,0.1);
  transform: scale(1.15);
}

.social-link svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.provider-link {
  color: #ffffff;
  text-decoration: none;
  font-size: 14px;
  transition: color 0.3s ease;
}

.provider-link:hover {
  color: #c9a227 !important;
  text-decoration: none;
}

/* =========================
    Responsive
========================= */
@media (max-width: 768px) {

  .custom-footer-links .row {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 10px;
    justify-items: start;
  }

  .footer-group {
    padding: 8px 5px;
  }

  .custom-footer-info {
    padding: 10px 10px 0;
  }

  .custom-footer-info .row {
    text-align: center;
  }

  .custom-footer-info .footer-col-left {
    order: 3;
    margin-top: 6px;
  }

  .custom-footer-info .footer-col-center {
    order: 1;
  }

  .custom-footer-info .footer-col-right {
    order: 2;
    text-align: center !important;
  }

  .social-links {
    justify-content: center;
  }

}