/* vietnamese */
@font-face {
  font-family: 'Barlow';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/Barlow-400.woff2") format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}

/* latin-ext */
@font-face {
  font-family: 'Barlow';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/Barlow-400-latin-ext.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* latin */
@font-face {
  font-family: 'Barlow';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/Barlow-400-latin.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* vietnamese */
@font-face {
  font-family: 'Barlow';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/Barlow-700.woff2") format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}

/* latin-ext */
@font-face {
  font-family: 'Barlow';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/Barlow-700-latin-ext.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* latin */
@font-face {
  font-family: 'Barlow';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/Barlow-700-latin.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Basic page layout and right-side navigation */
html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: 'Barlow', system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  font-size: 16px;
  color: #333;
  min-height: 100vh;
  padding-bottom: 72px;
}

.page-wrapper {
  max-width: 1100px;
  margin: 0 auto;
  padding: 180px 20px 80px;
  position: relative;
  box-sizing: border-box;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: #fff;
  z-index: 1000;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
  padding: 10px 0;
}

.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
}

.logo-container {
  text-align: left;
}

.site-header img {
  height: auto;
  display: inline-block;
  max-width: 336px;
  /* reduced 20% from 420px */
}

.main-content {
  padding-left: 0;
}

.main-content section {
  text-align: left;
  scroll-margin-top: 220px;
}

.profile-grid {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  margin-top: 16px;
  flex-wrap: wrap;
}

.profile-grid img {
  width: 100%;
  max-width: 280px;
  border-radius: 24px;
  object-fit: cover;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
}

.profile-text {
  flex: 1;
  min-width: 240px;
}

@media (max-width: 900px) {
  .profile-grid {
    flex-direction: column;
    align-items: center;
  }

  .profile-text {
    width: 100%;
  }
}

.right-nav {
  position: static;
  width: auto;
  background: transparent;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
  z-index: 999;
}

.right-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 18px;
  align-items: center;
}

.right-nav li {
  margin: 0;
}

.right-nav a {
  color: #5a2b63;
  text-decoration: none;
  font-weight: 600;
}

.right-nav a:hover {
  text-decoration: underline;
}

/* Responsive: move nav to top on smaller screens */
@media (max-width: 900px) {
  .burger {
    display: block;
  }

  .right-nav {
    display: none;
    position: absolute;
    right: 20px;
    top: 64px;
    width: auto;
    background: rgba(255, 255, 255, 0.98);
    padding: 12px 14px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
    border-radius: 8px;
  }

  .right-nav.open {
    display: block;
  }

  .right-nav ul {
    display: flex;
    flex-direction: column;
    gap: 8px;
  }

  .main-content {
    padding-left: 0;
  }
}

.burger {
  display: block;
  background: none;
  border: none;
  font-size: 32px;
  cursor: pointer;
  padding: 10px 12px;
  color: #5a2b63;
  font-weight: 700;
  line-height: 1;
  min-width: 44px;
  min-height: 44px;
}

.burger:focus {
  outline: 3px solid rgba(90, 43, 99, 0.15);
  outline-offset: 3px;
  border-radius: 6px;
}

.burger:hover {
  color: #4a2352;
}

/* keep nav on the right side on wide screens while burger stays beside the logo */
.right-nav {
  margin-left: auto;
}

/* On wide screens place the menu beneath the header (under the picture) and use full width */
@media (min-width: 901px) {
  .right-nav {
    display: block;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: rgba(255, 255, 255, 0.98);
    padding: 8px 0;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.04);
    border-radius: 0;
  }

  .right-nav ul {
    flex-direction: row;
    gap: 18px;
    align-items: center;
    justify-content: center;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 10px;
  }

  .right-nav li {
    margin: 0;
  }

  .right-nav a {
    display: inline-block;
    padding: 10px 14px;
    text-align: center;
    border: none;
  }

  /* move page content down to avoid overlap with header + menu */
  .page-wrapper {
    padding-top: 260px;
  }

  /* hide burger when items are displayed on wide screens */
  .burger {
    display: none;
  }
}

/* hide burger when menu is opened (small or large) */
.header-inner.menu-open .burger {
  display: none;
}