/*------------------------------------------------------------------
[Table of contents]

1. Import libraries
2. Custom properties
3. General Styles
4. Typography
5. Header and Navbar
6. Buttons and Links
7. Utilities
8. Sections
9. Swiper
10.Boxes and Cards
11.Footer
12.Accordion
13.Error 404
14.Responsive Layouts

-------------------------------------------------------------------*/

/* ---------------------------- */
/* Import libraries             */
/* ---------------------------- */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+Thai:wght@100..900&display=swap');
@import url('vendor/bootstrap.min.css');

/* ---------------------------- */
/* Custom properties            */
/* ---------------------------- */
:root {
  --primary-color:#2c599d;
  --primary-sub-color:#5b84c4;
  --secondary-color:#e16655;
  --text-color:#191919;
  --text-color-2:#7A7A7A;
  --accent-color:#3B67BF;
  --accent-color-2:#F2BBC5;
  --accent-color-3:#FBEAED;
  --font-1:"Noto Sans Thai", sans-serif;
  --font-2:"Noto Sans Thai", sans-serif;
}

/* ---------------------------- */
/* General Styles               */
/* ---------------------------- */
body {
  font-family: var(--font-2);
  color: var(--text-color);
  background: linear-gradient(45deg, #8BACEE, #F7D3DA);
  background-attachment: fixed;
  opacity: 0;
}

body.page-loaded {
  animation: fadeInAnimation ease 1s;
  animation-iteration-count: 1;
  animation-fill-mode: forwards;
}

@keyframes fadeInAnimation {
  0% { opacity: 0; }
  100% { opacity: 1; }
}

.bg-primary-color {
  background-color: var(--primary-color);
}

.bg-primary-color-2 {
  background-color: var(--accent-color);
}

.bg-secondary-color {
  background-color: var(--secondary-color);
}

.bg-secondary-color-2 {
  background-color: var(--accent-color-2);
}

.bg-accent-color {
  background-color: var(--accent-color-2);
}

.bg-accent-color-2 {
  background-color: var(--accent-color-3);
}

.bg-gradient-primary {
  background: linear-gradient(to bottom, var(--primary-color), #518ef8);
}

.bg-gradient-secondary {
  background: linear-gradient(45deg, #8BACEE, #F7D3DA);
}

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

.text-black-color-2 {
  color: var(--text-color);
}

.text-secondary-color-2 {
  color: var(--secondary-color);
}

.text-muted-color {
  color: var(--text-color-2);
}

.accent-primary-color {
  color: var(--accent-color);
}

.accent-secondary-color {
  color: var(--accent-color-2);
}

.accent-tertiary-color {
  color: var(--accent-color-3);
}

.font-1 {
  font-family: var(--font-1);
}

.font-2 {
  font-family: var(--font-2);
}

.section {
  padding: 6em 2em 6em 2em;
  overflow: hidden;
  background-size: cover;
  background-position: center;
}

.b-container {
  max-width: 1240px;
  margin-right: auto;
  margin-left: auto;
}

/* ---------------------------- */
/* Typography                   */
/* ---------------------------- */
h1 {
  font-size: 72px;
}

h2 {
  font-size: 48px;
}

h3 {
  font-size: 32px;
}

h4 {
  font-size: 26px;
}

h5 {
  font-size: 22px;
}

h6 {
  font-size: 20px;
}

button, a {
  font-size: 18px;
  font-family: var(--font-1);
}

ul {
  list-style: none;
}

p,
li {
  font-size: 18px;
}

img {
  object-fit: cover;
}

/* ---------------------------- */
/* Header and Navbar            */
/* ---------------------------- */
.top-bar {
  background-color: var(--primary-color);
  /* padding-block: 1.2rem; */
  min-height: 80px;
}

.social-box {
  display: flex;
  flex-direction: row;
  gap: 1rem;
}

.social-box a {
  background-color: var(--secondary-color);
  text-align: center;
  vertical-align: middle;
  transition: all 0.3s ease-in-out;
}

.social-box a:hover {
  background-color: var(--accent-color-2);
  /* transform: scale(1.1); */
}

.logo-box img{
  max-height: 63px;
}

.navbar-toggler:focus {
  outline: none;
  box-shadow: none;
}

.nav-link {
  font-size: 1.15rem;
  color: var(--text-color);
  font-weight: 600;
  padding-block: 1.85rem;
  padding-inline: 1.50rem;
}

.nav-link:hover {
  color: var(--accent-color) !important;
}

.nav-link.active {
  /*color: var(--primary-color) !important;*/
}

.dropdown-menu{
  border: 0;
  border-radius: 0 0 25px 25px;
  padding: 15px 0px;
  width: 300px;
  -webkit-box-shadow: 0px 0px 24px 0px rgba(0,0,0,0.3);
  -moz-box-shadow: 0px 0px 24px 0px rgba(0,0,0,0.3);
  box-shadow: 0px 0px 24px 0px rgba(0,0,0,0.3);
}

.dropdown-item {
  color: var(--text-color);
  font-size: 1.15rem;
  padding: 15px;
  font-weight: 600;
  padding-block: 0.75rem;
  padding-inline: 0.75rem;
}

.dropdown-item:hover {
  color: var(--accent-color) !important;
  background-color: transparent;
}

.dropdown-item:focus {
  color: var(--accent-color) !important;
}

.dropdown-item.active {
  color: var(--primary-color) !important;
  background-color: transparent;
}
/* ---------------------------- */
/* Buttons and Links            */
/* ---------------------------- */
.btn-quotes {
  width: 180px;
  background-color: var(--text-color);
  color: #FFFFFF;
  font-size: 1.15rem;
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  border-radius: 30px;
  border: none;
}

.btn-quotes:hover {
  background-color: var(--primary-color);
  color: #FFFFFF;
  border: none;
}

.btn-primary-solid {
  background-color: var(--primary-color);
  color: #FFFFFF;
  font-size: 1.15rem;
  padding: 0.75rem 1.5rem;
  border-radius: 30px;
  font-weight: 600;
  border: none;
  transition: transform 0.3s ease, background-color 0.3s ease, color 0.3s ease, border 0.3s ease;
}

.btn-primary-solid:hover {
  background-color: var(--accent-color);
  color: #FFFFFF;
  border: none;
  transform: scale(1.1);
}

.btn-secondary-solid {
  background-color: var(--secondary-color);
  color: #FFFFFF;
  font-size: 1.15rem;
  padding: 0.75rem 1.5rem;
  border-radius: 30px;
  font-weight: 600;
  border: none;
  transition: transform 0.3s ease, background-color 0.3s ease, color 0.3s ease, border 0.3s ease;
}

.btn-secondary-solid:hover {
  background-color: var(--accent-color-2);
  color: #FFFFFF;
  border: none;
  transform: scale(1.1);
}

.btn-secondary-solid-2 {
  background-color: var(--secondary-color);
  color: #FFFFFF;
  font-size: 1.15rem;
  padding: 0.75rem 1.5rem;
  border-radius: 30px;
  font-weight: 600;
  border: none;
  transition: transform 0.3s ease, background-color 0.3s ease, color 0.3s ease, border 0.3s ease;
}

.btn-secondary-solid-2:hover {
  background-color: var(--primary-color);
  color: #FFFFFF;
  border: none;
  transform: scale(1.1);
}

.links-primary {
  font-family: var(--font-2);
  color: var(--text-color);
  font-size: 18px;
  text-decoration: none;
}

.links-primary:hover {
  color: var(--primary-color);
  text-decoration: none;
}

.links-secondary {
  font-family: var(--font-2);
  color: #FFFFFF;
  font-size: 18px;
  text-decoration: none;
}

.links-secondary:hover {
  color: var(--secondary-color);
  text-decoration: none;
}

.badge-primary-color {
  background-color: var(--primary-color);
  color: #FFFFFF;
  font-size: 18px;
  padding: 8px 16px;
  border-radius: 30px;
  font-weight: 600;
}

.badge-primary-color:hover {
  background-color: var(--accent-color);
  color: #FFFFFF;
}

/* ---------------------------- */
/* Utilities                    */
/* ---------------------------- */
.video-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.85);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.video-box {
  width: 100%;
  max-width: 960px;
  height: auto;
}

.video-overlay .ratio {
  width: 100%;
  height: auto;
}

.video-overlay iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.img-container {
  width: 100%;
  max-width: 100%;
  max-width: 1000px;
}

.ratio-wrapper-429 {
  position: relative;
  aspect-ratio: 3 / 4; /* default: portrait */
  overflow: hidden;
}

.img-circle {
  width: 275px;
  height: 275px;
}

.ratio-wrapper-419 {
  position: relative;
  aspect-ratio: 3 / 4; /* default: portrait */
  overflow: hidden;
}

.bg-overlay-secondary {
  background: linear-gradient(45deg, rgba(59, 103, 191, 0.9), rgba(247, 211, 218, 0.8));
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
}

.transition-hover {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.transition-hover:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.2);
}

.scale-hover {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.scale-hover:hover {
  transform: scale(1.05);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.2);
}

.bg-secondary-gradient {
  background: linear-gradient(to right,white 0%,white 50%,#007AFF 50%,#007AFF 100%);
}

.breadcrumb {
  font-size: 22px;
}

.breadcrumb-item + .breadcrumb-item::before {
  color: white !important;
}

.breadcrumb-item a:hover,
.breadcrumb-item.active {
  color: white !important;
}

.list-unstyled {
  padding-left: 0;
  margin-bottom: 0;
}

/* ---------------------------- */
/* Sections                     */
/* ---------------------------- */
.banner-section {
  position: relative;
  overflow: hidden;
  padding: 50px 75px 0 75px;
  color: white;
}

.hero-section {
  background-image: url('../image/Homehero.png');
  background-size: cover;
  background-position: center;
  padding-bottom: 80px;
}

/* ---------------------------- */
/* Swiper                       */
/* ---------------------------- */
.swiper-container-outer {
  position: relative;
  overflow: hidden;
}

.swiper {
  padding: 30px 0;
}

.swiper-slide {
  height: auto;
}

/* ---------------------------- */
/* Boxes and Cards              */
/* ---------------------------- */
.step-box {
  position: relative;
  margin-bottom: 3rem;
}

.step-box h1 {
  position: absolute;
  font-family: var(--font-1);
  font-weight: 900;
  opacity: 0.8;
  top: -10px;
  left: 13%;
  transform: translateX(-50%);
  z-index: 0;
  background:
  -webkit-linear-gradient(var(--primary-color), #9abbfd);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.step-box h3 {
  position: relative;
  font-family: var(--font-1);
  font-weight: 700;
  margin: 25px 0 20px 0;
  z-index: 1;
}

.step-box p {
  position: relative;
  z-index: 1;
}

.feedback-card {
  background: #fff;
  border: var(--primary-color) 2px solid;
  border-radius: 30px;
  padding: 35px;
}

.quotes-section {
  padding: 6em 2em 6em 2em;
  position: relative;
  overflow: hidden;
}

.quotes-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 75%;
  background-image: url('../image/men-and-women-sitting-in-a-circle-during-group-the-2024-10-21-08-45-31-utc.jpg');
  background-size: cover;
  background-position: center center;
  opacity: 0.8;
  z-index: -1; /* place behind of content */
}

.quotes-background::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, rgba(58, 95, 169, 0.9), rgba(244, 197, 206, 0.8));
  opacity: 0.9;
  z-index: 1; /* place in-front of content */
}

.quotes-section > .container {
  position: relative; /* Force container in-front of background */
  z-index: 2;
}

.quotes-section > .card {
  margin-top: 30px; /* Space from heading */
}

.news-card {
  border: 2px solid var(--primary-color);
  border-radius: 15px;
  position: relative;
  overflow: hidden;
}

.news-card .card-title {
  font-family: var(--font-1);
  font-weight: 800;
  text-decoration: none;
}
.news-card .card-title:hover {
  font-family: var(--font-1);
  font-weight: 800;
  /* font-size: 22px; */
  text-decoration: none;
  color: var(--primary-color);
}

/* ---------------------------- */
/* Footer                       */
/* ---------------------------- */
.footer {
  position: relative;
  overflow: hidden;
  color: white;
}

.footer-background {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('../image/multiethnic-women-with-tattoo-and-coffee-to-go-hol-2024-11-08-08-18-58-utc.jpg');
  background-size: cover;
  background-position: center center;
  z-index: -1;
}

.footer-background::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(23, 71, 166, 0.9), rgba(59, 103, 191, 0.9));
  z-index: 1; /* place in-front of content */
}

.footer-logo > img {
  max-height: 65px;
}

/* ---------------------------- */
/* Accordion                    */
/* ---------------------------- */
.accordion .accordion-item {
  border: none;
  margin-bottom: 1rem;
  border-radius: 1.5rem;
  overflow: hidden;
  background-color: transparent;
}

.accordion .accordion-button {
  font-size: large;
  font-weight: 700;
  color: #fff;
  background-color: var(--accent-color); /* Default blue */
  border-radius: 1.5rem;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: none;
}

.accordion .accordion-button.collapsed {
  background-color: var(--accent-color); /* Blue for collapsed */
  color: #fff;
}

.accordion .accordion-button:not(.collapsed) {
  background-color: var(--accent-color-2); /* Pink for expanded */
  color: #000;
}

.accordion .accordion-button:focus {
  box-shadow: none;
}

.accordion i {
  font-size: 1.2rem;
}

.accordion .accordion-collapse {
  margin-top: 0.5rem; /* Gap between header and body */
}

.accordion .accordion-body {
  font-size: large;
  background-color: #F5F5F5;
  padding: 1.5rem;
  border-radius: 1rem;
  /* margin-top: 0.5rem; */
  color: #333;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

/* ---------------------------- */
/* Error 404                    */
/* ---------------------------- */
.error-code {
  font-size: 18rem;
  font-weight: 900;
  line-height: 1;
  display: flex;
  justify-content: center;
  gap: 1rem;
}

.error-code span:nth-child(2) {
  background: linear-gradient(180deg, var(--primary-color), #FFC2B3);
  color: white;
  padding: 20px 0;
  border-radius: 1.5rem;
}
/* ---------------------------- */
/* Responsive Layouts           */
/* ---------------------------- */
@media only screen and (max-width: 1199.98px) {
  .ratio-wrapper-429 {
    aspect-ratio: 3 / 2;
  }

  .ratio-wrapper-419 {
    aspect-ratio: 1 / 1;
  }

  .step-box h1 {
    left: 17%;
  }
}

@media only screen and (max-width: 991.98px) {
  /* ---------------------------- */
  /* Typography                   */
  /* ---------------------------- */
  h1 {
    font-size: 56px;
  }

  h2 {
    font-size: 40px;
  }

  h3 {
    font-size: 24px;
  }

  h4 {
    font-size: 22px;
  }

  h5 {
    font-size: 20px;
  }

  h6 {
    font-size: 18px;
  }

  button, a{
    font-size: 17px;
  }

  p{
    font-size: 16px;
  }

/* ---------------------------- */
/* Header and Navbar            */
/* ---------------------------- */
/* padding: 4em 2em 4em 2em; */
  .section {
    padding: 4em 1em;
  }

  .top-bar {
    display: none;
  }

  .logo-box img {
    max-height: 86px;
  }

  .logo-drawer img {
    max-height: 60px;
  }

  .nav-link {
    font-size: 1rem;
    padding-block: 0.5rem;
    padding-inline: 0.5rem;
  }
  
  .nav-link.active,
  .nav-link:hover,
  .nav-link:focus {
    color: var(--primary-color) !important;
  }

  .navbar-nav .nav-link {
    padding-block: 0.5rem;
    padding-inline: 0.5rem;
  }

  .dropdown-menu {
    border-radius: 0;
    width: 100%;
    padding: 5px 0px 5px 0px;
    -webkit-box-shadow: none;
    -moz-box-shadow: none;
    box-shadow: none;
  }

  .dropdown-item {
    font-size: 1rem;
    padding-block: 0.5rem;
    padding-inline: 0.5rem;
  }

  .btn-quotes {
    display: none;
  }

  .img-circle {
    width: 275px;
    height: 275px;
  }

  .step-box h1 {
    left: 5%;
  }

  .feedback-slide {
    width: 33.333%; /* 3 slides per-row for desktop */
  }

  .bg-secondary-gradient {
    background: linear-gradient(to top,white 0%,white 62%,#007AFF 62%,#007AFF 100%);
  }

  .quotes-section {
    position: relative; /* Force container in-front of background */
    overflow: hidden;
    padding: 0;
  }

  .quotes-section > .container {
    position: relative; /* Force container in-front of background */
    z-index: 2;
    padding: 0;
  }

  .quotes-section > .card {
    margin-top: 70px;
  }

  .img-container {
    width: 90%;
  }

  .ratio-wrapper-429 {
    aspect-ratio: 16 / 9;
  }

  .img-circle {
    width: 300px;
    height: 300px;
  }

  .footer-logo {
    text-align: center;
    padding: 0 4rem;
  }

  .footer-logo > img {
    max-height: 85px;
  }

  .error-code {
    font-size: 15rem;
  }
}

@media only screen and (max-width: 767.98px) {
  .btn-play {
    width: 80%;
  }

  .badge-cta {
    display: none;
  }

  .bg-secondary-gradient {
    background: linear-gradient(to top,white 0%,white 61%,#007AFF 61%,#007AFF 100%);
  }

  .img-container {
    width: 85%;
  }

  .ratio-wrapper-429 {
    aspect-ratio: 1 / 1;
  }

  .img-circle {
    width: 300px;
    height: 300px;
  }

  .step-box h1 {
    left: 6%;
  }

  .footer-logo > img {
    max-height: 65px;
  }
}

@media only screen and (max-width:576.98px){
  .ratio-wrapper-429 {
    aspect-ratio: 3 / 4;
  }

  .img-circle {
    width: 185px;
    height: 185px;
  }

  .step-box h1 {
    left: 8%;
  }

  .error-code {
    font-size: 10rem;
  }
}
/* Custom Pill Navbar */
.custom-pill-nav {
  border-radius: 50px;
  border: 1px solid var(--primary-color);
  padding: 0.2rem 1.5rem;
  background-color: #fff;
  box-shadow: 0 4px 15px rgba(0,0,0,0.03);
}
@media (max-width: 991px) {
  .custom-pill-nav {
    border-radius: 15px;
  }
}

/* Glassmorphism Navbar Override */
header {
  background: transparent !important;
  position: absolute;
  top: 15px;
  width: 100%;
  z-index: 1030;
}
.custom-pill-nav {
  border-radius: 30px !important;
  background: rgba(255, 255, 255, 0.4) !important;
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.6) !important;
  padding: 0.8rem 1.5rem !important;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1) !important;
}
.custom-pill-nav .nav-link {
  background: rgba(255, 255, 255, 0.4);
  border-radius: 12px;
  padding: 8px 16px !important;
  margin: 0 6px;
  font-weight: 500 !important;
  color: #1a1a1a !important;
  border: 1px solid rgba(255, 255, 255, 0.5);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

/* Mobile Fixes for Glassmorphism Navbar */
@media (max-width: 991.98px) {
  .custom-pill-nav {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    background: rgba(255, 255, 255, 0.98) !important;
    padding: 0.5rem 1rem !important;
    position: relative;
  }
  .custom-pill-nav .navbar-toggler {
    padding: 6px 10px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .custom-pill-nav .navbar-toggler .bi {
    line-height: 1;
    font-size: 1.75rem !important;
  }
  
  /* Floating Mobile Popup Menu */
  #navbarPopup {
    position: absolute;
    top: calc(100% + 15px);
    right: 15px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 15px;
    width: auto;
    min-width: 230px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.12);
    z-index: 1050;
    border: 1px solid rgba(255,255,255,0.6);
  }
  #navbarPopup .navbar-nav {
    align-items: flex-start !important;
    padding-left: 0 !important;
    width: 100%;
  }
  #navbarPopup .nav-item {
    width: 100%;
    margin-bottom: 2px;
  }
  #navbarPopup .nav-link {
    justify-content: flex-start;
    padding: 10px 15px !important;
    background: transparent !important;
    border: none !important;
    width: 100%;
    text-align: left;
    color: var(--text-color) !important;
    margin: 0 !important;
    border-radius: 10px !important;
  }
  #navbarPopup .nav-link:hover, #navbarPopup .nav-link:focus {
    color: var(--primary-color) !important;
    background: rgba(44, 89, 157, 0.08) !important;
  }
  #navbarPopup .dropdown-menu {
    background: transparent !important;
    box-shadow: none !important;
    padding: 5px 0 5px 15px !important;
    margin: 0 !important;
    min-width: 100%;
    border-radius: 0 !important;
    border: none !important;
  }
  #navbarPopup .dropdown-item {
    padding: 8px 15px !important;
    font-size: 0.95rem;
    color: #444 !important;
    border-radius: 8px !important;
    background: transparent !important;
    box-shadow: none !important;
  }
  #navbarPopup .dropdown-item:hover {
    color: var(--primary-color) !important;
    background: rgba(44, 89, 157, 0.05) !important;
  }
  #navbarPopup .d-flex {
    flex-direction: column;
    align-items: center !important;
    width: 100%;
    padding-top: 15px;
    margin-top: 10px;
    border-top: 1px solid rgba(0,0,0,0.06);
  }
  #navbarPopup .btn-login-nav,
  #navbarPopup .btn-register-nav {
    width: 100%;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin-bottom: 10px;
    padding: 12px 0 !important;
    text-align: center;
    line-height: 1.2 !important;
  }
}
/* Navbar Login Button */
.btn-login-nav {
  color: #1a1a1a !important;
  font-weight: 600 !important;
  padding: 8px 12px;
  position: relative;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
}
.btn-login-nav::after {
  content: '';
  position: absolute;
  bottom: 0; left: 50%;
  width: 0; height: 2px;
  background: var(--primary-color);
  transition: all 0.3s ease;
  transform: translateX(-50%);
}
.btn-login-nav:hover {
  color: var(--primary-color) !important;
}
.btn-login-nav:hover::after {
  width: 80%;
}

/* Navbar Register Button */
.btn-register-nav {
  background: linear-gradient(135deg, var(--primary-color), var(--primary-sub-color)) !important;
  color: #ffffff !important;
  font-weight: 600 !important;
  padding: 10px 24px;
  border-radius: 50px;
  box-shadow: 0 4px 15px rgba(44, 89, 157, 0.3);
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.btn-register-nav:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 6px 20px rgba(44, 89, 157, 0.4);
  color: #ffffff !important;
}
.custom-pill-nav .nav-link {
  transition: all 0.3s ease !important;
}
.custom-pill-nav .nav-link:hover {
  background: rgba(255, 255, 255, 0.8) !important;
  transform: translateY(-2px);
  color: #0056b3 !important;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.custom-pill-nav .dropdown-menu {
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: none !important;
  border-radius: 15px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
  padding: 15px 10px;
  margin-top: 20px;
}
.custom-pill-nav .dropdown-item {
  color: #333 !important;
  font-weight: 500;
  padding: 12px 20px;
  border-radius: 10px;
  transition: all 0.3s ease;
  margin-bottom: 5px;
  white-space: normal;
}
.custom-pill-nav .dropdown-item:last-child {
  margin-bottom: 0;
}
.custom-pill-nav .dropdown-item:hover {
  background: var(--primary-color) !important;
  color: #ffffff !important;
  transform: translateX(5px);
  box-shadow: 0 4px 10px rgba(44, 89, 157, 0.2);
}

/* Glassmorphism Dropdown Override */
.custom-pill-nav .dropdown-menu {
  background: rgba(255, 255, 255, 0.8) !important;
  backdrop-filter: blur(20px) !important;
  -webkit-backdrop-filter: blur(15px) !important;
  border: 1px solid rgba(255, 255, 255, 0.6) !important;
  border-radius: 20px !important;
  min-width: 320px; /* <--- เพิ่มบรรทัดนี้เพื่อกำหนดความกว้างครับ */
}

/* Article Card Hover Effect */
.article-card-hover {
  transition: all 0.3s ease !important;
}
.article-card-hover:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15) !important;
  border-color: var(--primary-color) !important;
}
.article-card-hover:hover .btn-primary-solid {
  background-color: var(--secondary-color) !important;
  border-color: var(--secondary-color) !important;
  transform: scale(1.05);
}

/* Knowledge Tabs Styling */
.knowledge-tabs .nav-link {
  color: var(--primary-color) !important;
  background-color: #f8fafc;
  border: 1.5px solid #cbd5e1;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(0,0,0,0.02);
  padding: 14px 45px !important;
  font-size: 1.25rem !important;
  font-weight: 600 !important;
  min-width: 160px;
}
.knowledge-tabs .nav-link:hover {
  background-color: #f1f5f9;
  border-color: var(--primary-sub-color);
}
.knowledge-tabs .nav-link.active {
  color: #fff !important;
  background-color: var(--primary-color) !important;
  border-color: var(--primary-color) !important;
  box-shadow: 0 8px 20px rgba(44, 89, 157, 0.3);
}

/* Knowledge Title Styling */
.knowledge-title {
  color: var(--primary-color) !important;
  display: inline-flex;
  align-items: center;
  transition: all 0.3s ease;
  cursor: default;
}
.knowledge-title i {
  font-size: 1.1em;
  transition: all 0.3s ease;
}
.knowledge-title:hover {
  transform: scale(1.05);
  text-shadow: 0 5px 15px rgba(44, 89, 157, 0.3);
}
.knowledge-title:hover i {
  transform: rotate(-15deg) scale(1.1);
  color: var(--secondary-color);
}

/* Button Hover Global (changes to #e16655) */
.btn-primary-solid {
  transition: all 0.3s ease !important;
}
.btn-primary-solid:hover {
  background-color: var(--secondary-color) !important;
  border-color: var(--secondary-color) !important;
  color: #fff !important;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(225, 102, 85, 0.4) !important;
}

/* Hero Register Button - Epic Effect */
.btn-hero-register {
  background: linear-gradient(45deg, var(--primary-color), #00c6ff, var(--primary-color));
  background-size: 200% auto;
  color: #fff !important;
  font-size: 1.35rem;
  font-weight: 800;
  padding: 18px 50px;
  border: none;
  box-shadow: 0 0 20px rgba(0, 198, 255, 0.5), inset 0 0 10px rgba(255,255,255,0.2);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  overflow: hidden;
  z-index: 1;
  animation: bgShift 3s linear infinite, pulseGlowEpic 2s infinite;
}
.btn-hero-register::after {
  content: '';
  position: absolute;
  top: -50%; left: -50%;
  width: 200%; height: 200%;
  background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.4) 50%, rgba(255,255,255,0) 100%);
  transform: rotate(45deg);
  animation: shineSweep 3s infinite;
  z-index: 2;
}
.btn-hero-register i {
  transition: all 0.3s ease;
  display: inline-block;
}
.btn-hero-register:hover {
  transform: translateY(-5px) scale(1.1);
  background: linear-gradient(45deg, var(--secondary-color), #ff9a9e, var(--secondary-color));
  background-size: 200% auto;
  box-shadow: 0 15px 40px rgba(225, 102, 85, 0.8), 0 0 20px rgba(255, 154, 158, 0.6);
  letter-spacing: 1px;
}
.btn-hero-register:hover i {
  transform: translateX(8px) scale(1.2);
}
@keyframes bgShift {
  0% { background-position: 0% center; }
  100% { background-position: 200% center; }
}
@keyframes shineSweep {
  0% { left: -100%; }
  20% { left: 100%; }
  100% { left: 100%; }
}
@keyframes pulseGlowEpic {
  0% { box-shadow: 0 0 0 0 rgba(0, 198, 255, 0.7); }
  50% { box-shadow: 0 0 0 20px rgba(0, 198, 255, 0), 0 0 40px rgba(0, 198, 255, 0.3); }
  100% { box-shadow: 0 0 0 0 rgba(0, 198, 255, 0); }
}
@keyframes breathingButton {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.03); }
}
@keyframes iconBounceIdle {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(4px); }
}

/* ---------------------------- */
/* iOS Style Form Inputs        */
/* ---------------------------- */
.form-control, .form-select {
  border: 1px solid #E5E5EA;
  border-radius: 12px;
  padding: 12px 16px;
  background-color: #F2F2F7;
  font-size: 16px; /* Prevents iOS auto-zoom */
  transition: all 0.3s ease;
  color: #1C1C1E;
}

.form-control:focus, .form-select:focus {
  background-color: #FFFFFF;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 4px rgba(44, 89, 157, 0.15); /* matching primary-color #2c599d */
  outline: none;
}

.form-control:disabled {
  background-color: #E5E5EA;
  color: #8E8E93;
}

/* Make dropdown look more iOS-like */
.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%238E8E93' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 16px 12px;
}
