:root {
  --main-color: #ff8a00;
  --background-color: #fff;
  --main-blue: #3b88c3;
  --background-blue: #f7fcff;
  --light-blue: #55bdc2;
  --border-blue: #2b78e4;
  --blue-btn-blue: #2b78e4;
  --red-text: #ff1b1b;
}

html {
  scroll-behavior: smooth;
}

/* @font-face {
  font-family: 'GenSenRounded TW';
  src: url('https://clairesenglish.com/wp-content/fonts/GenSenRounded2-R.woff2')
    format('woff2');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'GenSenRounded TW Titles';
  src: url('https://clairesenglish.com/wp-content/fonts/GenSenRounded2-M.woff2')
    format('woff2');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Gen Jyuu GothicX';
  src: url('https://clairesenglish.com/wp-content/fonts/GenJyuuGothicX-Normal.woff2')
    format('woff2');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
} */

@font-face {
  font-family: 'GenSenRounded TW';
  src: url('/fonts/GenSenRounded2-R.woff2') format('woff2');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Gen Jyuu GothicX';
  src: url('/fonts/GenJyuuGothicX-Normal.woff2') format('woff2');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'GenSenRounded TW Titles';
  src: url('/fonts/GenSenRounded2-M.woff2') format('woff2');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

body {
  font-family: 'GenSenRounded TW', sans-serif;
  margin: 0;
  /* background-color: var(--background-color) !important; */
}
.noEvents {
  pointer-events: none;
}
button,
.button,
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: 'GenSenRounded TW Titles', sans-serif;
}

h1,
h2,
h3,
h4,
h5 {
  font-style: normal;
  font-weight: 500;
  line-height: 150%; /* 66px */
}

h1 {
  font-size: 44px;
  letter-spacing: -0.484px;
}
h2 {
  font-size: 30px;
}
h3 {
  font-size: 24px;
  letter-spacing: -0.264px;
}
h4 {
  font-size: 20px;
  letter-spacing: -0.22px;
}

.body-text,
.small-text,
.menu-item a,
.menu-item-with-more a {
  font-style: normal;
  font-weight: 400;
  line-height: 150%; /* 27px */
  letter-spacing: -0.198px;
}
.super-btn {
  font-style: normal;
  font-weight: 400;
  line-height: 150%;
  letter-spacing: -0.198px;
  margin: 0;
  font-family: 'GenSenRounded TW';
  text-decoration: none;
  height: 42px !important;
  border-radius: 5px !important;
  font-size: 20px !important;
  white-space: nowrap;
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  transition: all ease-in-out 300ms;
}

.super-btn:hover {
  transform: scale(1.01);
}
.super-btn:active {
  transform: scale(0.99);
}
.white-btn {
  background-color: white;
  color: var(--main-color);
  border: 2px solid var(--main-color);
}
.white-btn:hover {
  color: var(--main-color);
  background-color: white;
}
.orange-btn {
  border: none;
  background-color: var(--main-color);
  color: white;
}
.blue-btn {
  background-color: var(--blue-btn-blue);
  color: white;
  border: 2px solid var(--blue-btn-blue);
}
.blue-btn:hover {
  background-color: var(--blue-btn-blue);
}
.orange-btn:hover,
.blue-btn:hover {
  color: white;
}
.orange-btn:hover {
  background-color: var(--main-color);
}

.white-blue-btn {
  background-color: white;
  color: var(--blue-btn-blue);
  border: 1px solid var(--blue-btn-blue);
}
.white-blue-btn > a {
  color: var(--blue-btn-blue);
}
.white-blue-btn:hover {
  color: var(--blue-btn-blue);
}

.white-text {
  color: white;
}

.red-text {
  color: var(--red-text);
}

.blue-border-btn {
  background-color: white;
  color: var(--blue-btn-blue);
  border: 2px solid var(--blue-btn-blue);
}
.blue-border-btn:hover {
  color: var(--blue-btn-blue);
}
.super-btn.small {
  padding: 0px 20px !important;
  width: fit-content !important;
}

.super-btn.big {
  padding: 0px 40px !important;
  width: fit-content !important;
}

.border-box {
  box-sizing: border-box;
}
.inline,
.displayInline {
  display: inline-block;
}
.hidden {
  display: none !important;
}
.noMargin {
  margin: 0px !important;
}
.noPadding {
  padding: 0px !important;
}

.oneHundred {
  width: 100%;
}

.centeredText,
.textAligned {
  text-align: center;
}

.spaceAround {
  justify-content: space-around !important;
}

.spaceBetween {
  justify-content: space-between !important;
}

.relative {
  position: relative;
}

.flex {
  flex: 1;
}

.body-text,
.small-text {
  font-family: 'Gen Jyuu GothicX';
}

.body-text,
h5 {
  font-size: 18px;
  letter-spacing: -0.198px;
}

.small-text {
  font-size: 16px;
}

a:focus {
  outline: none;
}

header {
  background-color: var(--background-color);
  top: 0;
  z-index: 998;
  padding: 0 5%;
}

/* Remove width constraint, use full width with padding instead */
header .ninetyPercent {
  width: 100% !important;
  margin: 0 !important;
}
.myRow {
  display: flex;
  flex-direction: row;
}
.white-text {
  color: #ffffff;
}
.centered {
  justify-content: center;
}

.aligned {
  align-items: center;
}
.column {
  display: flex;
  flex-direction: column;
}

#customHeader {
  justify-content: space-between;
  width: 100%;
}

.marginAuto {
  margin: auto;
}
.gap {
  gap: 10px;
}

.bigGap {
  gap: 20px;
}
.headerButton {
  min-width: fit-content;
}
.headerButton > a {
  height: 38px;
  padding: 7px !important;
}

.menu {
  list-style-type: none;
  margin: 0;
  padding: 0;
}
.menu-item,
.menu-item-with-more {
  position: relative;
  margin: 0;
}
.menu-item a,
.menu-item-with-more a,
a {
  font-family: 'GenSenRounded TW';
  text-decoration: none;
  color: #000;
  padding: 10px;
  display: block;
  border-radius: 5px;
  font-size: 20px;
  white-space: nowrap;
}
.menu-item.top-menu-button a {
  font-size: 16px;
}
.menu-item {
  display: flex;
  align-items: center;
}
.menu-item.highlight,
.sign-up-button {
  background-color: var(--main-color);
  color: var(--background-color);
  padding: 0px 20px;
  margin-left: 0px;
  height: 42px;
  display: flex;
  font-family: 'Gen Jyuu GothicX';
  transition: all 0.3s ease;
}
.menu-item.highlight:hover,
.sign-up-button:hover {
  background-color: #E67A00; /* 深橘色 */
  transform: scale(1.02);
}
.menu-item.highlight.hamburger {
  margin-left: 0px;
  padding: 0;
}
/* General menu item hover - text turns blue */
.menu-item a:hover,
.menu-item-with-more a:hover,
a.menu-item:hover {
  color: #2B78E4 !important;
}

/* Override for orange button - text stays white (higher specificity) */
a.menu-item.highlight:hover,
a.menu-item.highlight:hover * {
  color: var(--background-color) !important;
}
.dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: var(--background-color);
  list-style-type: none;
  margin: 0;
  padding: 0;
  box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.2);
  z-index: 1001;
}
.dropdown {
  margin: 0;
}
.dropdown-title {
  cursor: default;
}
.login-link {
  display: flex;
  align-items: center;
}
.login-link a {
  color: #000;
  font-family: Inter, sans-serif;
  font-size: 18px;
  font-style: italic;
  font-weight: 400;
  line-height: 150%;
  letter-spacing: -0.198px;
}
.login-link:hover a {
  color: #2B78E4 !important;
}
.login-link svg {
  color: #000;
  transition: color 0.3s ease;
}
.login-link:hover svg {
  color: #2B78E4 !important;
}
.dropdown a {
  padding: 10px 15px;
  white-space: nowrap;
}

.menu-item:hover .dropdown {
  display: block;
}

/* 兩欄佈局的下拉選單 */
.dropdown.two-column {
  display: none;
  flex-direction: row;
  gap: 30px;
  padding: 20px;
  min-width: 500px;
}
.menu-item:hover .dropdown.two-column {
  display: flex;
}
.dropdown-column {
  display: flex;
  flex-direction: column;
  flex: 1;
}
.dropdown-column-title {
  color: #999;
  font-size: 16px;
  padding: 5px 15px;
  font-weight: 400;
  margin-bottom: 5px;
}

.header-hamburger {
  display: none;
  height: 20px;
  gap: 5px;
  cursor: pointer;
}

.hamburger-button {
  width: 25px;
  height: 3px;
  border-radius: 5px;
  background: var(--main-blue);
}

.hamburger-menu {
  display: none;
  position: absolute;
  right: 40px;
  top: 60px;
  background-color: var(--background-color);
  width: 200px;
  padding: 10px 10px 10px 20px;
  box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.2);
}

.hamburger-menu .menu {
  flex-direction: column;
}

.ninetyPercent {
  width: 80%;
}

#logo-container {
  width: 170px;
  display: flex;
  height: 100%;
  margin-right: 30px;
}
#logo-img {
  width: 100%;
  height: auto;
  flex-shrink: 1;
  min-width: 150px;
}
#footer {
  justify-content: space-between;
  position: relative;
}
#footer:before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  right: 50%;
  z-index: -1;
  background-color: var(--main-color);
  transform: translateX(-50%);
  width: 100vw;
  height: 100%;
}

.underlined {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.tooltip {
  position: relative;
}

.tooltip::after {
  content: attr(data-tooltip);
  position: absolute;
  background-color: #333;
  color: #fff;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 0.85em;
  white-space: nowrap;

  left: 50%;
  transform: translateX(-50%);
  bottom: 100%;
  margin-bottom: 6px;

  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s ease-in-out, visibility 0.2s ease-in-out;
  z-index: 10;
}
.tooltip:hover::after {
  opacity: 1;
  visibility: visible;
}
.tooltip.off::after {
  opacity: 0;
  visibility: hidden;
}
@media (max-width: 1250px) {
  h1,
  #h1 {
    font-size: 38px !important;
  }
  .menu-item a,
  .menu-item-with-more a,
  .menu-item.top-menu-button a,
  .second-menu-button,
  .menu-item {
    font-size: 16px !important;
  }

  #logo-container {
    width: 180px;
  }
}

@media (max-width: 1100px) {
  .menu-item,
  .menu-item a,
  .menu-item-with-more a,
  .menu-item.top-menu-button a,
  .second-menu-button,
  .super-btn {
    font-size: 14px !important;
  }
  .sign-up-button,
  .second-menu-spec-btn {
    margin-left: 20px;
  }
  nav > ul {
    gap: 5px !important;
  }
  header {
    padding: 0 7.5%;
  }
  h2 {
    font-size: 24px !important;
  }
}

@media (max-width: 950px) {
  header {
    padding: 0 5%;
  }
  h2 {
    font-size: 23px !important;
  }

  .header-buttons {
    display: none;
  }
  .header-hamburger {
    display: flex !important;
  }
  #hamburger-menu.show {
    display: block;
  }
  .hamburger-menu .dropdown {
    position: static;
    box-shadow: none;
  }
  .menu-item.highlight a {
    margin-left: 0px;
  }
  .menu-item {
    display: flex !important;
    justify-self: start;
    align-items: center;
  }
  .hamburger-menu .menu-item:hover .dropdown {
    display: none;
  }

  .hamburger-menu .menu-item-with-more .dropdown {
    display: none;
  }

  .hamburger-menu .menu-item-with-more.expand .dropdown {
    display: flex;
    flex-direction: column;
    margin-left: 10px;
    z-index: 1001;
  }

  .hamburger-menu .menu-item-with-more.expand > a::after {
    content: '';
    width: 0;
    height: 0;
    border-left: 7px solid transparent;
    border-right: 7px solid transparent;
    border-top: 0px;
    border-bottom: 7px solid #2B78E4;
    float: right;
    font-size: 12px;
    margin-left: 5px;
  }

  .hamburger-menu .menu-item-with-more > a::after {
    content: '';
    width: 0;
    height: 0;
    border-left: 7px solid transparent;
    border-right: 7px solid transparent;
    border-top: 7px solid black;
    float: right;
    font-size: 12px;
    margin-left: 5px;
  }
  
  /* 漢堡選單中的所有項目左對齊 */
  .hamburger-menu .menu-item,
  .hamburger-menu .menu-item a,
  .hamburger-menu .menu-item-with-more a,
  .hamburger-menu .dropdown a {
    padding-left: 0;
  }
  
  /* 漢堡選單中的橘色按鈕對齊 */
  .hamburger-menu .menu-item.highlight {
    padding: 10px 20px;
    margin-left: 0;
  }
  
  .mobile-category-title {
    color: #999;
    font-size: 14px;
    padding: 10px 15px 5px 0;
    font-weight: 400;
    margin-top: 5px;
  }
  .rowToColumnBig {
    flex-direction: column !important;
  }
}

@media (max-width: 650px) {
  h1,
  #h1 {
    font-size: 30px !important;
  }
  h1,
  h2 {
    line-height: 36px;
  }
  .date-text {
    font-size: 28px !important;
  }
  .body-text,
  button,
  a,
  .small-text,
  h5,
  h4,
  h3 {
    line-height: 150%;
  }
  h2 {
    font-size: 22px !important;
  }
  .body-text,
  h5,
  .faq-text,
  .faq-list > li {
    font-size: 14px !important;
  }
  button,
  a,
  h4,
  h3 {
    font-size: 16px !important;
  }
  .small-text {
    font-size: 13px !important;
  }
  .rowToColumnSmall {
    flex-direction: column;
  }
  .mediumFont {
    font-size: 20px;
  }
}
