/* Font Face */
@font-face {
  font-family: "Poppins";
  src: url("../font/Poppins-VariableFont_wght.ttf") format("truetype"),
    url("../font/Poppins-VariableFont_wght.otf") format("opentype");
  font-weight: 100 900;
  font-display: swap;
}

* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

body {
  background-color: #ffffff;
  color: #333333;
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}

html {
  scroll-behavior: smooth;
}

/* Common container styles */
.container {
  width: 75rem;
  margin: 0 auto;
}

/* Common button styles */
.btn {
  display: inline-block;
  padding: .75rem 1.875rem;
  border-radius: 1.563rem;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
  font-size: 1rem;
}
/* Blue Top Bar - 3.125rem height */
.top-bar {
  background: #0e6ace;
}
.top-bar-content {
  width: 100%;
  height: 3.125rem;
  color: white;
  font-size: .875rem;
  line-height: 3.125rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Navigation Menu - 5.625rem height - Default White Background */
.navbar {
  height: 5.625rem;
  position: relative;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(.625rem);
  box-shadow: 0 .125rem 1.25rem rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.menu-icon, .menu-close {
  display: none;
}

/* Fixed navbar when scrolled */
.navbar.fixed {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
}

/* Transparent navbar - doesn't take up space, overlays content */
.navbar.transparent {
  position: absolute;
  top: 3.125rem; /* Position below the blue top bar */
  left: 0;
  right: 0;
  background: transparent;
  backdrop-filter: none;
  box-shadow: none ;
  z-index: 1001;
}

.navbar.transparent .nav-menu a {
  color: white;
}

.navbar.transparent .nav-menu a:hover,
.navbar.transparent .nav-menu a.active {
  background: #0E6ACE;
  color: white;
}

/* Transparent navbar when fixed to top - becomes default white background */
.navbar.transparent-fixed {
  position: fixed !important;
  top: 0 !important;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.95) !important;
  backdrop-filter: blur(.625rem) !important;
  box-shadow: 0 .125rem 1.25rem rgba(0, 0, 0, 0.1) !important;
  z-index: 1001;
}

.navbar.transparent-fixed .nav-menu a {
  color: #333;
}

.navbar.transparent-fixed .nav-menu a:hover,
.navbar.transparent-fixed .nav-menu a.active {
  background: #0E6ACE;
  color: white;
}

/* Footer Styles */
.footer {
  background: #F2F4F7;
  padding: 2.5rem 0 1.25rem;
  margin-top: 3.75rem;
  color: #6A7684;
}

.footer-content {
  max-width: 75rem;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.risk-warning {
  border-radius: .5rem;
  padding: 1.25rem;
}

.risk-warning p {
  color: #6A7684;
  font-size: 1rem;
  line-height: 1.563rem;
  margin: 0 0 .938rem 0;
}

.copyright {
  text-align: center;
  color: #6A7684;
  font-size: .875rem;
  padding-top: 1.875rem;
  border-top: .125rem solid rgba(106, 118, 132, 0.14);
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  width: 100vw;
}

/* Page Title with Underline - Common Style */
.page-box {
  height: 17.875rem;
  display: flex;
  align-items: center;
}

.page-title {
  font-size: 3.125rem;
  font-weight: 600;
  color: #004188;
  padding-bottom: 1.25rem;
  position: relative;
  display: inline-block;
}

.page-title::after {
  content: '';
  position: absolute;
  bottom: -0.625rem;
  left: 0;
  width: 3.75rem;
  height: .25rem;
  background-image: url('../images/line.png');
  background-size: contain;
  background-repeat: no-repeat;
}

.nav-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
}

.logo {
  display: flex;
  align-items: center;
}

.logo-img {
  height: 3.5rem;
  width: 13.75rem;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 2.5rem;
  margin: 0;
  padding: 0;
}

.nav-menu li {
  position: relative;
}

.nav-menu a {
  text-decoration: none;
  color: #333;
  font-weight: 500;
  font-size: 1rem;
  padding: .625rem 1.25rem;
  border-radius: .5rem;
  transition: all 0.3s ease;
  position: relative;
}

.nav-menu a:hover,
.nav-menu a.active {
  background: #0e6ace;
  color: white;
  transform: translateY(-0.125rem);
}

.nav-menu a.active {
  background: #0e6ace;
}


@media (max-width: 768px) {
  .navbar {
    height: 8.75rem;
  }
  .navbar.open {
    background-color: #fff;
  }
  .top-bar {
    display: none;
  }
  .navbar.transparent {
    top: 0;
  }
  .container {
    width: 100%;
    padding: 0 3.125rem;
  }
  .nav-menu {
    display: none;
  }
  .open .nav-menu {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 8.75rem;
    left: 0;
    width: 100%;
    background-color: #fff;
    padding: 3.125rem;
    gap: 3.125rem;
  }
  .menu-icon,.menu-close {
    display: block;
    width: 2.5rem;
  }
  .open .menu-icon {
    display: none;
  }
  .navbar.open .menu-close {
    display: block;
  }
  .navbar .menu-close {
    display: none;
  }
  .navbar.transparent .nav-menu a, .navbar .nav-menu a {
    color: #004188;
    font-size: 1.75rem;
    font-weight: 600;
    background-color: transparent;
  }
  .navbar.transparent .nav-menu a:hover, .navbar.transparent .nav-menu a.active {
    background-color: transparent;
    color: #004188;
    font-size: 1.75rem;
    font-weight: 600;
  }

  .page-box {
    height: 13.75rem;
  }
  .page-title {
    width: 100%;
    font-size: 2.375rem;
    padding-bottom: 34px;
  }
  .page-title::after {
    width: 6.25rem;
    height: 6px;
    bottom: 0;
  }
  .risk-warning {
    padding: 6.25rem 0;
    margin: 0;
  }
  .risk-warning p, .copyright {
    font-size: 1.5rem;
    line-height: 2.625rem;
  }
  .copyright {
    padding: 2.5rem 3.125rem;
  }
}
