@font-face {
  font-family: "Kanit";
  font-style: normal;
  font-weight: 300;
  src: url("../fonts/Kanit-Light.ttf") format("truetype");
}

@font-face {
  font-family: "Kanit";
  font-style: normal;
  font-weight: 400;
  src: url("../fonts/Kanit-Regular.ttf") format("truetype");
}

@font-face {
  font-family: "Kanit";
  font-style: normal;
  font-weight: 500;
  src: url("../fonts/Kanit-Medium.ttf") format("truetype");
}

@font-face {
  font-family: "Kanit";
  font-style: normal;
  font-weight: 600;
  src: url("../fonts/Kanit-SemiBold.ttf") format("truetype");
}

@font-face {
  font-family: "Kanit";
  font-style: normal;
  font-weight: 700;
  src: url("../fonts/Kanit-Bold.ttf") format("truetype");
}

:root {
  --primary-color: #26338b;
  --secondary-color: rgba(66, 43, 33, 1);
  --text-light: #ffffff;
  --text-dark: #333333;
}

body {
  font-family: "Kanit", sans-serif;
  margin: 0;
  padding: 0;
  background-color: #f0f2f5;
}
.banner-container .col-md-6 {
  width: 50%;
}

.banner-container .row {
  display: flex;
  align-items: center;
  width: 100%;
  padding: 200px 0;
  height: auto;
  position: relative;
}
.navbar {
  background: transparent;
  position: fixed;
  width: 100%;
  z-index: 9;
  padding-top: 10px;
  padding-bottom: 10px;
}

.section-container,
.navbar .container {
  max-width: 1280px;
  width: 100%;
  margin: 0 auto;
  box-sizing: border-box;
}

.banner-container {
  position: relative;
  height: auto;
  color: var(--text-light);
  background-size: cover;
  background-position: center;
}

.banner-container .col-md-6.img-box {
  display: flex;
  justify-content: end;
  position: absolute;
  bottom: 0;
  right: 0;
}

.img-box img {
  object-fit: contain;
  object-position: bottom;
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.navbar:not(.active) {
  background: linear-gradient(
    180deg,
    #ffffff 0%,
    rgba(255, 255, 255, 0.5) 50%,
    rgba(255, 255, 255, 0) 100%
  );
}

.logo {
  display: flex;
  align-items: center;
  font-size: 1.5rem;
  font-weight: 700;
}

.logo img {
  width: 70px;
  margin-right: 10px;
}

.nav-links {
  display: flex;
  gap: 30px;
}

.nav-links a {
  color: rgba(2, 0, 61, 1);
  text-decoration: none;
  font-weight: 400;
  transition: color 0.3s ease;
  font-size: 1.1em;
}

.nav-links a:hover {
  color: var(--secondary-color);
}

.loan-amount text {
  text-shadow: 0px 10px 10px #422b2161;
}
.cta-button {
  padding: 10px 25px;
  border: none;
  border-radius: 30px;
  background-color: var(--secondary-color);
  color: var(--text-light);
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 1.1em;
  box-shadow: 1px 4px 10px rgba(31, 100, 255, 0.25);
}

.cta-button:hover {
  background-color: rgba(147, 103, 67, 1);
}

.img-box img {
  display: block;
}

.interest-rate p {
  color: rgba(66, 43, 33, 1);
  font-size: 2rem;
  margin-bottom: 0;
}
.content-section h1 {
  font-size: 3rem;
  font-weight: 600;
  margin-bottom: 20px;
  text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.6);
  line-height: 1.5;
  color: white;
  paint-order: stroke;
  line-height: normal;
  -webkit-text-stroke: 1px rgba(71, 51, 37, 1);
  text-shadow: -5px -5px 0 rgba(71, 51, 37, 1), -5px -4px 0 rgba(71, 51, 37, 1),
    -5px -3px 0 rgba(71, 51, 37, 1), -5px -2px 0 rgba(71, 51, 37, 1),
    -5px -1px 0 rgba(71, 51, 37, 1), -5px 0px 0 rgba(71, 51, 37, 1),
    -5px 1px 0 rgba(71, 51, 37, 1), -5px 2px 0 rgba(71, 51, 37, 1),
    -5px 3px 0 rgba(71, 51, 37, 1), -5px 4px 0 rgba(71, 51, 37, 1),
    -5px 5px 0 rgba(71, 51, 37, 1), 5px -5px 0 rgba(71, 51, 37, 1),
    5px -4px 0 rgba(71, 51, 37, 1), 5px -3px 0 rgba(71, 51, 37, 1),
    5px -2px 0 rgba(71, 51, 37, 1), 5px -1px 0 rgba(71, 51, 37, 1),
    5px 0px 0 rgba(71, 51, 37, 1), 5px 1px 0 rgba(71, 51, 37, 1),
    5px 2px 0 rgba(71, 51, 37, 1), 5px 3px 0 rgba(71, 51, 37, 1),
    5px 4px 0 rgba(71, 51, 37, 1), 5px 5px 0 rgba(71, 51, 37, 1),
    -4px -5px 0 rgba(71, 51, 37, 1), -3px -5px 0 rgba(71, 51, 37, 1),
    -2px -5px 0 rgba(71, 51, 37, 1), -1px -5px 0 rgba(71, 51, 37, 1),
    0px -5px 0 rgba(71, 51, 37, 1), 1px -5px 0 rgba(71, 51, 37, 1),
    2px -5px 0 rgba(71, 51, 37, 1), 3px -5px 0 rgba(71, 51, 37, 1),
    4px -5px 0 rgba(71, 51, 37, 1), -4px 5px 0 rgba(71, 51, 37, 1),
    -3px 5px 0 rgba(71, 51, 37, 1), -2px 5px 0 rgba(71, 51, 37, 1),
    -1px 5px 0 rgba(71, 51, 37, 1), 0px 5px 0 rgba(71, 51, 37, 1),
    1px 5px 0 rgba(71, 51, 37, 1), 2px 5px 0 rgba(71, 51, 37, 1),
    3px 5px 0 rgba(71, 51, 37, 1), 4px 5px 0 rgba(71, 51, 37, 1),
    0 5px 20px rgba(0, 0, 0, 1), 0 5px 10px rgba(0, 0, 0, 1),
    0 5px 20px rgba(0, 0, 0, 1), 0 5px 20px rgba(0, 0, 0, 1);
}
.content-section h1 span {
  font-size: 4rem;
}

.product-section {
  background-color: #f5f2e8;
}

.product-section {
  background: linear-gradient(180deg, #eddfbc 0%, #9b7b62 50%, #c9a784 100%);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  padding: 50px 30px;
  margin: 0 auto;
  text-align: center;
}

.product-card h2 {
  margin-top: 0;
  font-size: 3rem;
  font-weight: 500;
  color: var(--secondary-color);
  margin-bottom: 25px;
}

.category-container {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 30px;
  margin-bottom: 30px;
}

.category-item {
  padding: 20px;
  flex: 1;
  min-width: 250px;
}

.category-item h3 {
  font-weight: 500;
  margin-top: 0;
  margin-bottom: 20px;
  color: white;
  paint-order: stroke;
  line-height: normal;
  -webkit-text-stroke: 1px rgba(71, 51, 37, 1);
  text-shadow: -5px -5px 0 rgba(71, 51, 37, 1), -5px -4px 0 rgba(71, 51, 37, 1),
    -5px -3px 0 rgba(71, 51, 37, 1), -5px -2px 0 rgba(71, 51, 37, 1),
    -5px -1px 0 rgba(71, 51, 37, 1), -5px 0px 0 rgba(71, 51, 37, 1),
    -5px 1px 0 rgba(71, 51, 37, 1), -5px 2px 0 rgba(71, 51, 37, 1),
    -5px 3px 0 rgba(71, 51, 37, 1), -5px 4px 0 rgba(71, 51, 37, 1),
    -5px 5px 0 rgba(71, 51, 37, 1), 5px -5px 0 rgba(71, 51, 37, 1),
    5px -4px 0 rgba(71, 51, 37, 1), 5px -3px 0 rgba(71, 51, 37, 1),
    5px -2px 0 rgba(71, 51, 37, 1), 5px -1px 0 rgba(71, 51, 37, 1),
    5px 0px 0 rgba(71, 51, 37, 1), 5px 1px 0 rgba(71, 51, 37, 1),
    5px 2px 0 rgba(71, 51, 37, 1), 5px 3px 0 rgba(71, 51, 37, 1),
    5px 4px 0 rgba(71, 51, 37, 1), 5px 5px 0 rgba(71, 51, 37, 1),
    -4px -5px 0 rgba(71, 51, 37, 1), -3px -5px 0 rgba(71, 51, 37, 1),
    -2px -5px 0 rgba(71, 51, 37, 1), -1px -5px 0 rgba(71, 51, 37, 1),
    0px -5px 0 rgba(71, 51, 37, 1), 1px -5px 0 rgba(71, 51, 37, 1),
    2px -5px 0 rgba(71, 51, 37, 1), 3px -5px 0 rgba(71, 51, 37, 1),
    4px -5px 0 rgba(71, 51, 37, 1), -4px 5px 0 rgba(71, 51, 37, 1),
    -3px 5px 0 rgba(71, 51, 37, 1), -2px 5px 0 rgba(71, 51, 37, 1),
    -1px 5px 0 rgba(71, 51, 37, 1), 0px 5px 0 rgba(71, 51, 37, 1),
    1px 5px 0 rgba(71, 51, 37, 1), 2px 5px 0 rgba(71, 51, 37, 1),
    3px 5px 0 rgba(71, 51, 37, 1), 4px 5px 0 rgba(71, 51, 37, 1),
    0 5px 20px rgba(0, 0, 0, 1), 0 5px 10px rgba(0, 0, 0, 1),
    0 5px 20px rgba(0, 0, 0, 1), 0 5px 20px rgba(0, 0, 0, 1);
  font-size: 3rem;
  height: 55%;
  display: inline-flex;
  align-items: center;
}

.category-item:last-child {
  border-left: 5px solid rgba(66, 43, 33, 1); /* ปรับสี/ความหนาได้ */
}
p.p-price {
  color: #fff;
  margin-bottom: 10px;
  font-size: 1.5rem;
}

.loan-amount {
  margin: 0;
  display: flex;
  align-items: end;
}

.divider-line {
  height: 15px;
  background: #ffffff;
}

.loan-amount span#bath {
  font-size: 2.2rem;
  font-weight: 500;
  background: linear-gradient(
    180deg,
    rgba(250, 167, 37, 1) 0%,
    rgba(247, 209, 95, 1) 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  -webkit-text-stroke: 2px #4a2d00;
  text-stroke: 2px #4a2d00;
}

.interest-rate {
  margin: 50px auto 20px;
}

.interest-rate h3 {
  font-weight: 500;
  margin-top: 0;
  margin-bottom: 20px;
  color: #ffffff;
  text-stroke: 3px #4a2d00;
  text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.6);
  line-height: 1.5;
  font-size: 3rem;
  height: 55%;
  display: inline-flex;
  align-items: center;
}

.rate-group {
  display: flex;
  justify-content: space-around;
  gap: 40px;
  align-items: center;
  background: linear-gradient(0deg, #d4c3b1, #d4c3b1),
    linear-gradient(180deg, #dadace 0%, #fcfcfc 50%, #f7f5f0 100%);
  border: 5px solid #422b21;
  box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.25);
  border-radius: 50px;
  padding: 20px;
}
.rate-box span {
  font-size: 2rem;
  color: rgba(147, 103, 67, 1);
  display: block;
}

.rate-box {
  font-weight: 500;
  font-size: 4rem;
  text-align: center;
  color: #422b21;
}

span.or-text {
  font-weight: 500;
  font-size: 3rem;
  text-align: center;
  color: #422b21;
}
.note-text {
  margin-top: 25px;
  color: rgba(66, 43, 33, 1);
  font-weight: 400;
  font-size: 2rem;
  margin: 0;
}

.loan-conditions-section {
  background-color: #fff9ed;
}

.loan-conditions-section {
  background: linear-gradient(
    199.31deg,
    #9b7b62 4.76%,
    #eddfbc 53.51%,
    #c9a784 99.08%
  );

  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  padding: 50px 30px;
  margin: 0 auto;
}

.condition-group h3 {
  font-weight: 400;
  background: rgba(66, 43, 33, 1);
  padding: 10px;
  color: #fff;
  font-size: 1.5rem;
}
#loan-conditions h2 {
  font-weight: 700;
  margin-top: 0;
  margin-bottom: 20px;
  color: #4a2d00;
  paint-order: stroke;
  line-height: normal;
  -webkit-text-stroke: 1px #fff;
  text-shadow: -5px -5px 0 #fff, -5px -4px 0 #fff, -5px -3px 0 #fff,
    -5px -2px 0 #fff, -5px -1px 0 #fff, -5px 0px 0 #fff, -5px 1px 0 #fff,
    -5px 2px 0 #fff, -5px 3px 0 #fff, -5px 4px 0 #fff, -5px 5px 0 #fff,
    5px -5px 0 #fff, 5px -4px 0 #fff, 5px -3px 0 #fff, 5px -2px 0 #fff,
    5px -1px 0 #fff, 5px 0px 0 #fff, 5px 1px 0 #fff, 5px 2px 0 #fff,
    5px 3px 0 #fff, 5px 4px 0 #fff, 5px 5px 0 #fff, -4px -5px 0 #fff,
    -3px -5px 0 #fff, -2px -5px 0 #fff, -1px -5px 0 #fff, 0px -5px 0 #fff,
    1px -5px 0 #fff, 2px -5px 0 #fff, 3px -5px 0 #fff, 4px -5px 0 #fff,
    -4px 5px 0 #fff, -3px 5px 0 #fff, -2px 5px 0 #fff, -1px 5px 0 #fff,
    0px 5px 0 #fff, 1px 5px 0 #fff, 2px 5px 0 #fff, 3px 5px 0 #fff,
    4px 5px 0 #05a450, 0 5px 20px rgba(0, 0, 0, 1), 0 5px 10px rgba(0, 0, 0, 1),
    0 5px 20px rgba(0, 0, 0, 1), 0 5px 20px rgba(0, 0, 0, 1);
  font-size: 3rem;
  height: 55%;
  display: inline-flex;
  align-items: center;
}
.loan-conditions-card {
  padding: 20px 10px;
  background: linear-gradient(0deg, #ffffff, #ffffff), #ffffff;
  box-shadow: 0px 5px 10px rgba(0, 0, 0, 0.3);
  border-radius: 50px;
  border: 2px solid rgba(251, 206, 0, 1);
}
.condition-group p {
  padding-left: 20px;
  font-size: 1.2rem;
}

.condition-group ul li {
  font-size: 1.2rem;
}

.footer-section {
  background: linear-gradient(180deg, #05a450 0.42%, #027337 100.42%);
  color: #fff;
}

.footer-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-left {
  display: flex;
  align-items: center;
  gap: 15px;
}

.footer-left img {
  width: 50px;
}

.footer-right {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  align-items: center;
}

.footer-right a {
  color: #fff;
  text-decoration: none;
  font-size: 1rem;
  font-weight: 300;
  text-decoration: underline;
}

.footer-right a:hover {
  text-decoration: underline;
}
.footer-left p {
  font-weight: 300;
  font-size: 1rem;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  z-index: 1100;
}

.hamburger span {
  width: 28px;
  height: 3px;
  background: #333;
  border-radius: 3px;
  transition: 0.3s;
}

/* Animate hamburger to X */
.hamburger.open span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 6px);
}
.hamburger.open span:nth-child(2) {
  opacity: 0;
}
.hamburger.open span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -6px);
}
.navbar.active {
  background: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  border-bottom: 1px solid #e5e5e5;
}
.loan-amount svg {
  min-height: 100px;
  width: 100%;
}

.text-box {
  text-align: center;
}
@media (min-width: 450px) and (max-width: 992px) {
  .loan-amount tspan {
    font-size: 35px !important;
  }
  .loan-amount tspan:last-child {
    font-size: 25px !important;
  }
  .category-item:last-child {
    padding-top: 50px !important;
  }
}

@media (max-width: 1280px) {
  .content-section h1 span {
    font-size: 3rem;
    line-height: 2em;
  }
  .navbar .container {
    padding: 20px;
  }
  .footer-container {
    padding: 20px;
  }
  .banner-container {
    padding-left: 30px;
    padding-right: 30px;
  }
}
/* Responsive */
@media (max-width: 450px) {
  .divider-line {
    height: 10px;
  }
  .interest-rate {
    margin: 0px auto;
  }
  .footer-right p {
    display: none;
  }
  .logo img {
    width: 50px;
  }
  .category-item:first-child {
    padding-bottom: 0px !important;
  }
  .navbar .cta-button {
    width: 310px;
  }
}
@media (max-width: 992px) {
  .condition-group h3 {
    font-size: 1.2rem;
  }
  .condition-group p,
  .condition-group ul li {
    font-size: 1rem;
  }
  .loan-amount text {
    text-shadow: 0px 5px 5px #422b2154;
  }
  .loan-amount tspan:last-child {
    font-weight: 700;
  }
  .category-container {
    gap: 0;
  }
  .loan-amount svg {
    padding-top: 0px;
    padding-bottom: 0px;
  }
  .loan-amount tspan {
    font-size: 70px;
  }
  .loan-amount tspan:last-child {
    font-size: 30px;
  }
  .banner-container {
    padding-bottom: 0 !important;
    display: flex;
    align-items: end;
    height: auto;
    padding-top: 120px !important;
  }
  .img-box {
    position: relative !important;
  }
  .content-section .row {
    height: auto;
    padding: 0;
    text-align: center;
  }
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    height: 100vh;
    width: 300px;
    background: #fff;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    align-items: start;
    padding: 60px 20px;
    transition: right 0.3s ease-in-out;
    z-index: 999;
  }

  .nav-links a {
    text-decoration: none;
    font-size: 18px;
    color: #333;
  }
  .nav-links.active {
    right: 0;
  }

  .navbar .cta-button {
    order: 2;
    max-width: 100%;
    width: auto;
    font-size: 16px;
    padding: 10px 20px;
    gap: 5px;
  }
  .navbar .container {
    justify-content: space-between;
  }
  .logo {
    flex: 2;
    width: 70%;
  }
  .cta-button {
    order: 2;
  }
  .hamburger {
    display: flex;
    order: 3;
  }
  .nav-links.active {
    display: flex;
  }
  .hamburger {
    display: flex;
    text-align: right;
    justify-content: end;
    align-items: end;
  }
  .content-section,
  .content-section .row {
    display: block;
  }
  .banner-container .col-md-6 {
    width: 100%;
    margin-top: 30px;
  }
  .footer-left {
    display: block;
  }
  .product-section,
  .loan-conditions-section,
  .banner-container {
    padding: 50px 20px;
  }
  p.p-price {
    margin: 0 !important;
  }
  .category-item {
    padding-top: 0;
  }
  .category-item:last-child {
    border-left: none;
    border-top: 3px solid rgba(66, 43, 33, 1);
    padding-top: 20px;
  }
  .rate-group {
  }
  .product-card h2,
  .category-item h3,
  .interest-rate h3,
  .rate-box,
  #loan-conditions h2,
  .content-section h1 span {
    font-size: 2rem;
  }
  .rate-group {
    border: 3px solid #422b21;
  }
  #loan-conditions h2 {
    display: block;
    text-align: center;
  }
  .condition-group p {
    padding-left: 10px;
  }
  .note-text {
    font-size: 1rem;
  }
  span.or-text,
  .rate-box span,
  .interest-rate p {
    font-size: 1.2rem;
  }
  .category-item h3 {
    font-size: 2rem;
  }
  .category-item:first-child {
    padding-bottom: 30px;
  }
  .navbar .container {
    gap: 15px;
    padding: 0px 20px;
  }

  .nav-links {
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }
  .content-section h1 {
    font-size: 2rem;
  }

  .footer-container {
    flex-direction: column;
    text-align: center;
    padding: 30px 20px;
  }

  .footer-right {
    justify-content: center;
  }
  .category-container {
    flex-direction: column;
  }

  .loan-amount {
    font-size: 1.8rem;
  }

  .loan-conditions-card {
    padding: 20px;
  }
}
