/* =================================
   CSS Variables & Global Styles with Enhanced Backgrounds
   ================================= */
:root {
  /* Panora by Mida Corporate Identity Colors */
  --primary-gold: #b38d3f;
  --secondary-gold: #d8b567;
  --pure-black: #191818;
  --navy-blue: #19335d;
  --burgundy: #5c141f;

  /* Supporting Colors */
  --dark-gold: #8b7355;
  --light-gold: #f5f0e6;
  --pure-white: #ffffff;
  --off-white: #fafafa;
  --cream: #f9f7f4;
  --dark-gray: #1a1a1a;
  --medium-gray: #333333;
  --light-gray: #666666;
  --border-gray: #e5e5e5;
  --text-primary: #191818;
  --text-secondary: #666666;
  --text-light: #999999;

  /* Enhanced Background Variations */
  --warm-cream: #faf8f5;
  --soft-gold: #f7f4ef;
  --subtle-navy: #f6f7f9;
  --light-burgundy: #faf9f9;
}

@font-face {
  font-family: "PK Maehongson";
  src: url("../font-front/PK Maehongson Medium.otf") format("opentype"),
    url("../font-front/PK Maehongson Medium.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "MYRIADPRO-REGULAR";
  src: url("../font-front/MyriadPro-Regular.woff2") format("woff2"),
    url("../font-front/MYRIADPRO-REGULAR.OTF") format("opentype"),
    url("../font-front/Myriad Pro Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

* {
  font-family: "MYRIADPRO-REGULAR", "Prompt", -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: var(--pure-white);
  color: var(--text-primary);
  line-height: 1.6;
  font-weight: 400;
  overflow-x: hidden;
  font-size: 16px;
}

body.lang-en,
body.lang-cn,
body.lang-ru,
body {
  /* Fallback if no class is set */
  font-family: "MYRIADPRO-REGULAR", "Prompt", sans-serif;
}

/* Override font for Thai language */
body.lang-th {
  font-family: "MYRIADPRO-REGULAR", "Prompt", "Noto Sans Thai", sans-serif;
}
/* body:not(.lang-th) {
  font-family: "Lato", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
} */

body:not(.lang-th) h1,
body:not(.lang-th) h1,
body:not(.lang-th) h2,
body:not(.lang-th) h3,
body:not(.lang-th) h4,
body:not(.lang-th) h5,
body:not(.lang-th) h6,
body.lang-th h1,
body.lang-th h2,
body.lang-th h3,
body.lang-th h4,
body.lang-th h5,
body.lang-th h6 {
  font-family: "PK Maehongson", "MYRIADPRO-REGULAR", "Prompt", sans-serif;
}

body:not(.lang-th) .btn,
body:not(.lang-th) .form-control,
body:not(.lang-th) .nav-link {
  font-family: "MYRIADPRO-REGULAR", "Prompt", sans-serif;
}

/* Thai font support */
body.lang-th {
  font-family: "MYRIADPRO-REGULAR", "Prompt", "Noto Sans Thai", sans-serif;
}

/* Remove Underline and Focus Outline from Link Cards */
a.featured-card-large,
a.project-card,
a.news-card-main,
a.news-card-secondary,
a.video-card {
  text-decoration: none !important;
}

a:focus,
.featured-card-large:focus,
.project-card:focus,
.news-card-main:focus,
.news-card-secondary:focus,
.video-card:focus {
  outline: none !important;
}

/* Font Weight Adjustments for Lato */
body:not(.lang-th) .hero-title {
  font-weight: 100;
  letter-spacing: -3px;
}

body:not(.lang-th) .section-title {
  font-weight: 300;
  letter-spacing: -2px;
}

body:not(.lang-th) .nav-link {
  font-weight: 400;
  letter-spacing: 0.5px;
}

body:not(.lang-th) .btn {
  font-weight: 400;
  letter-spacing: 0.8px;
}

body:not(.lang-th) .project-card-panora h3 {
  font-weight: 400;
}

body:not(.lang-th) .news-title-clean {
  font-weight: 400;
}

/* =================================
   Enhanced Section Backgrounds
   ================================= */

/* Section Background Variations */
.section-cream {
  background: linear-gradient(135deg, var(--cream) 0%, var(--warm-cream) 100%);
  position: relative;
}

.section-cream::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--primary-gold),
    transparent
  );
  opacity: 0.3;
}

.section-light-gold {
  /* background: var(--pure-black); */
  background: linear-gradient(
    135deg,
    var(--light-gold) 10%,
    var(--soft-gold) 90%
  );
  position: relative;
  background-image: url("../img/golden curve.jpg");
  opacity: 0.9;
  background-size: cover;
  background-position: center;
}

.section-light-gold::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(
    90deg,
    var(--secondary-gold),
    var(--primary-gold),
    var(--secondary-gold)
  );
  opacity: 0.2;
}

/* .section-off-white {
  background: linear-gradient(
    135deg,
    var(--off-white) 0%,
    var(--pure-white) 50%,
    var(--warm-cream) 100%
  );
  position: relative;
}

.section-off-white::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 1px;
  background: var(--secondary-gold);
  opacity: 0.4;
} */

.section-gradient {
  background: linear-gradient(
    135deg,
    rgba(248, 249, 250, 0.95) 0%,
    rgba(255, 255, 255, 0.98) 30%,
    rgba(245, 240, 230, 0.92) 70%,
    rgba(249, 247, 244, 0.96) 100%
  );
  position: relative;
}

.section-gradient::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(
    90deg,
    var(--burgundy),
    var(--primary-gold),
    var(--navy-blue),
    var(--primary-gold),
    var(--burgundy)
  );
  opacity: 0.6;
}

.section-border-accent {
  background: linear-gradient(
    135deg,
    var(--pure-white) 0%,
    var(--off-white) 100%
  );
  border-top: 3px solid var(--primary-gold);
  position: relative;
}

.section-border-accent::before {
  content: "";
  position: absolute;
  top: -3px;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--dark-gold),
    transparent
  );
}

/* Diagonal Section Transitions */
.section-diagonal-top {
  position: relative;
  padding-top: 120px;
}

.section-diagonal-top::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 80px;
  background: var(--cream);
  clip-path: polygon(0 0, 100% 0, 100% 60%, 0 100%);
  z-index: 1;
}

.section-diagonal-bottom {
  position: relative;
  padding-bottom: 120px;
}

.section-diagonal-bottom::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 80px;
  background: var(--light-gold);
  clip-path: polygon(0 40%, 100% 0, 100% 100%, 0 100%);
  z-index: 1;
}

/* Enhanced Card Backgrounds */
.enhanced-card-bg {
  background: linear-gradient(
    135deg,
    var(--pure-white) 0%,
    var(--warm-cream) 100%
  );
  border: 1px solid rgba(179, 141, 63, 0.1);
  box-shadow: 0 4px 20px rgba(179, 141, 63, 0.08), 0 1px 3px rgba(0, 0, 0, 0.05);
}

.enhanced-card-bg:hover {
  background: linear-gradient(
    135deg,
    var(--warm-cream) 0%,
    var(--light-gold) 100%
  );
  border-color: rgba(179, 141, 63, 0.2);
  box-shadow: 0 8px 30px rgba(179, 141, 63, 0.15), 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Pattern Overlays */
.pattern-overlay {
  position: relative;
}

.pattern-overlay::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: radial-gradient(
      circle at 25% 25%,
      var(--primary-gold) 1px,
      transparent 1px
    ),
    radial-gradient(
      circle at 75% 75%,
      var(--secondary-gold) 1px,
      transparent 1px
    );
  background-size: 50px 50px, 80px 80px;
  opacity: 0.03;
  pointer-events: none;
}

/* Textured Backgrounds */
.textured-bg {
  background: linear-gradient(135deg, var(--cream) 0%, var(--warm-cream) 100%),
    url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23b38d3f' fill-opacity='0.02'%3E%3Cpath d='m36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

/* Mobile Responsive Enhancements */
@media (max-width: 768px) {
  .section-diagonal-top {
    padding-top: 80px;
  }

  .section-diagonal-top::before {
    height: 50px;
  }

  .section-diagonal-bottom {
    padding-bottom: 80px;
  }

  .section-diagonal-bottom::after {
    height: 50px;
  }
}

@media (max-width: 576px) {
  .pattern-overlay::before {
    background-size: 30px 30px, 50px 50px;
    opacity: 0.02;
  }
}

/* =================================
   Dropdown Menu Styles
   ================================= */
.nav-link i {
  font-size: 10px;
  margin-left: 5px;
}

.nav-dropdown {
  position: relative;
}

.nav-dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-dropdown:hover .nav-link i {
  transform: rotate(180deg);
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--pure-white);
  min-width: 220px;
  border-radius: 8px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
  padding: 10px 0;
  margin-top: 15px;
  list-style: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  z-index: 1000;
}

.dropdown-menu::before {
  content: "";
  position: absolute;
  top: -8px;
  left: 30px;
  width: 16px;
  height: 16px;
  background: var(--pure-white);
  transform: rotate(45deg);
  box-shadow: -2px -2px 5px rgba(0, 0, 0, 0.05);
}

.dropdown-item {
  display: block;
  padding: 12px 25px;
  color: var(--text-primary);
  text-decoration: none;
  font-size: 14px;
  position: relative;
}

.dropdown-item:hover {
  background: var(--cream);
  color: var(--primary-gold);
  padding-left: 30px;
}

.nav-dropdown .dropdown-menu {
  opacity: 1 !important;
  visibility: visible !important;
  transform: translateY(0) !important;
}

/* =================================
   Enhanced Navigation with Background
   ================================= */
.navbar-modern {
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border-bottom: 1px solid rgba(179, 141, 63, 0.1);
  box-shadow: 0 2px 20px rgba(179, 141, 63, 0.05);
  padding: 20px 0;
  z-index: 1050;
  position: fixed;
  width: 100%;
  top: 0;
}

.navbar-modern.scrolled {
  padding: 12px 0;
  background: rgba(255, 255, 255, 0.99);
  box-shadow: 0 4px 25px rgba(179, 141, 63, 0.1);
  border-bottom-color: rgba(179, 141, 63, 0.15);
}

.navbar-modern .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1400px;
}

.navbar-brand {
  display: flex;
  align-items: center;
}

.navbar-brand:hover {
  opacity: 0.8;
}

.logo-image {
  height: 65px;
  width: auto;
}

.navbar-modern.scrolled .logo-image {
  height: 50px;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 35px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-link {
  color: var(--text-primary);
  text-decoration: none;
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.3px;
  position: relative;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  font-family: "PK Maehongson", "MYRIADPRO-REGULAR", "Prompt", sans-serif;
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--primary-gold);
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary-gold);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-link i {
  font-size: 10px;
}

/* Language Switcher */
.nav-lang {
  position: relative;
  margin-left: 20px;
  padding-left: 20px;
  border-left: 1px solid var(--border-gray);
}

.lang-switcher {
  display: flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  border: 1px solid var(--border-gray);
  padding: 8px 15px;
  border-radius: 25px;
  cursor: pointer;
  font-size: 14px;
  color: var(--text-primary);
}

.lang-switcher:hover {
  background: var(--cream);
  border-color: var(--primary-gold);
}

.flag-icon {
  width: 20px;
  height: 14px;
  object-fit: cover;
  border-radius: 2px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.lang-text {
  font-weight: 500;
  letter-spacing: 0.5px;
}

.lang-switcher i {
  font-size: 10px;
}

.nav-lang:hover .lang-switcher i {
  transform: rotate(180deg);
}

.lang-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  background: var(--pure-white);
  min-width: 150px;
  border-radius: 8px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
  padding: 8px 0;
  margin-top: 10px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  z-index: 1000;
  list-style: none;
}

.nav-lang:hover .lang-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.lang-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
  color: var(--text-primary);
  text-decoration: none;
  font-size: 14px;
}

.lang-option:hover {
  background: var(--cream);
  color: var(--primary-gold);
}

.lang-option.active {
  background: var(--light-gold);
  color: var(--primary-gold);
}

/* Mobile Menu Toggle */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 10px;
  background: none;
  border: none;
  cursor: pointer;
}

.menu-toggle span {
  width: 24px;
  height: 1px;
  background: var(--text-primary);
}

.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile Responsive */
@media (max-width: 991px) {
  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background: var(--pure-white);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: right 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: 1040;
  }

  .nav-menu.active {
    right: 0;
  }

  .menu-toggle {
    display: flex;
    z-index: 1041;
  }
}

/* =================================
   Enhanced Hero Section
   ================================= */
.hero-section {
  height: 100vh;
  position: relative;
  overflow: hidden;
  background: linear-gradient(
    135deg,
    var(--dark-gray) 0%,
    var(--pure-black) 100%
  );
}

.hero-carousel {
  height: 100vh;
  position: relative;
}

.hero-slide-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    135deg,
    rgba(25, 24, 24, 0.6) 0%,
    rgba(25, 24, 24, 0.4) 50%,
    rgba(25, 24, 24, 0.7) 100%
  );
  z-index: 1;
  pointer-events: none;
}

.hero-content-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  z-index: 2;
}

.hero-content {
  color: var(--pure-white);
  max-width: 600px;
  text-align: left;
}

.hero-badge {
  display: inline-block;
  background: var(--primary-gold);
  color: var(--pure-white);
  padding: 6px 20px;
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 20px;
  font-family: "PK Maehongson", "MYRIADPRO-REGULAR", "Prompt", sans-serif;
}

.hero-title {
  font-size: clamp(3rem, 6vw, 5rem);
  font-weight: 300;
  margin-bottom: 20px;
  line-height: 1.1;
  letter-spacing: -2px;
  font-family: "PK Maehongson", "MYRIADPRO-REGULAR", "Prompt", sans-serif;
}

.hero-subtitle {
  font-size: 18px;
  font-weight: 300;
  margin-bottom: 30px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.9);
}

.hero-buttons {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.btn-hero {
  padding: 12px 30px;
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.5px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid;
  transition: all 0.3s ease;
}

.btn-hero-primary {
  background: var(--pure-white);
  color: var(--text-primary);
  border-color: var(--pure-white);
}

.btn-hero-primary:hover {
  background: transparent;
  color: var(--pure-white);
}

.btn-hero-outline {
  background: transparent;
  color: var(--pure-white);
  border-color: rgba(255, 255, 255, 0.5);
}

.btn-hero-outline:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--pure-white);
}

/* Hero Carousel Controls - Enhanced */
.hero-carousel .carousel-control-prev,
.hero-carousel .carousel-control-next {
  width: 60px;
  height: 60px;
  background: rgba(255, 255, 255, 0.15);
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0.8;
  transition: all 0.3s ease;
  cursor: pointer;
}

.hero-carousel .carousel-control-prev {
  left: 30px;
}

.hero-carousel .carousel-control-next {
  right: 30px;
}

.hero-carousel .carousel-control-prev:hover,
.hero-carousel .carousel-control-next:hover {
  opacity: 1;
  background: rgba(255, 255, 255, 0.25);
  border-color: rgba(255, 255, 255, 0.6);
  transform: translateY(-50%) scale(1.1);
}

.hero-carousel .carousel-control-prev-icon,
.hero-carousel .carousel-control-next-icon {
  width: 20px;
  height: 20px;
  filter: brightness(0) invert(1);
}

/* Hero Indicators */
.hero-carousel .carousel-indicators {
  bottom: 30px;
  z-index: 3;
}

.hero-carousel .carousel-item {
  cursor: pointer;
}

.hero-carousel .carousel-indicators li {
  width: 30px;
  height: 2px;
  background: rgba(255, 255, 255, 0.5);
  border: none;
  margin: 0 5px;
  transition: all 0.3s ease;
}

.hero-carousel .carousel-indicators .active {
  background: var(--pure-white);
  width: 50px;
}

/* Section Headers (Global) */
.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-label {
  font-size: 13px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--primary-gold);
  margin-bottom: 15px;
  font-weight: 500;
  font-family: "PK Maehongson", "MYRIADPRO-REGULAR", "Prompt", sans-serif;
}

.section-title {
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  font-weight: 300;
  color: var(--text-primary);
  letter-spacing: -1px;
  margin-bottom: 20px;
  font-family: "PK Maehongson", "MYRIADPRO-REGULAR", "Prompt", sans-serif;
}

.section-description {
  font-size: 18px;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
  font-weight: 300;
  line-height: 1.7;
}

/* Responsive section heading sizing */
.responsive-section-title {
  font-size: 4.5rem;
  line-height: 1.1;
}

.responsive-section-title--xl {
  font-size: 5.5rem;
  line-height: 1.1;
}

/* Section subtitle sizing - smaller than main headings on mobile */


@media (max-width: 1024px) {
  .responsive-section-title {
    font-size: 3.6rem;
  }

  .responsive-section-title--xl {
    font-size: 4.4rem;
  }
}

@media (max-width: 768px) {
  .responsive-section-title {
    font-size: 3rem;
    line-height: 1.15;
  }

  .responsive-section-title--xl {
    font-size: 3.8rem;
  }

  .section-header h2:not(.responsive-section-title) {
    font-size: 2.4rem !important;
    line-height: 1.2;
  }

  .section-subtitle {
    font-size: 0.8rem !important;
    letter-spacing: 1.5px;
  }
}

@media (max-width: 576px) {
  .responsive-section-title {
    font-size: 2.7rem;
    line-height: 1.15;
  }

  .responsive-section-title--xl {
    font-size: 3.2rem;
  }

  .section-header h2:not(.responsive-section-title) {
    font-size: 2.3rem !important;
  }

  .section-subtitle {
    font-size: 0.75rem !important;
    letter-spacing: 1.3px;
  }
}

/* Mobile Responsive */
@media (max-width: 1024px) {
  /* iPad and Tablet */
  .hero-section {
    width: 100%;
    height: 219.38px;
    max-width: 100%;
    margin: 70px auto 0;
    overflow: hidden;
  }

  .hero-carousel {
    width: 100%;
    height: 219.38px;
    max-width: 100%;
    margin: 0 auto;
  }

  .hero-carousel .carousel-inner,
  .hero-carousel .carousel-item {
    width: 100%;
    height: 219.38px;
    max-width: 100%;
  }

  .hero-slide-image {
    background-attachment: scroll;
    width: 100%;
    height: 100%;
    max-width: 100%;
    background-size: cover;
    background-position: center;
  }

  .hero-overlay {
    width: 100%;
    height: 100%;
    max-width: 100%;
  }

  .hero-content-wrapper {
    width: 100%;
    height: 100%;
    max-width: 100%;
  }

  .hero-content {
    padding: 0 20px;
    text-align: center;
  }

  .hero-buttons {
    justify-content: center;
  }

  .hero-carousel .carousel-control-prev,
  .hero-carousel .carousel-control-next {
    width: 45px;
    height: 45px;
  }

  .hero-carousel .carousel-control-prev {
    left: 20px;
  }

  .hero-carousel .carousel-control-next {
    right: 20px;
  }

  .hero-carousel .carousel-indicators {
    bottom: 15px;
  }
}

@media (max-width: 768px) {
  /* Mobile and smaller tablets */
  .hero-section {
    width: 100%;
    height: 219.38px;
    max-width: 100%;
    margin: 70px auto 0;
    overflow: hidden;
  }

  .hero-carousel {
    width: 100%;
    height: 219.38px;
    max-width: 100%;
    margin: 0 auto;
  }

  .hero-carousel .carousel-inner,
  .hero-carousel .carousel-item {
    width: 100%;
    height: 219.38px;
    max-width: 100%;
  }

  .hero-slide-image {
    background-attachment: scroll;
    width: 100%;
    height: 100%;
    max-width: 100%;
    background-size: cover;
    background-position: center;
  }

  .hero-overlay {
    width: 100%;
    height: 100%;
    max-width: 100%;
  }

  .hero-content-wrapper {
    width: 100%;
    height: 100%;
    max-width: 100%;
  }

  .hero-content {
    padding: 0 20px;
    text-align: center;
  }

  .hero-buttons {
    justify-content: center;
  }

  .hero-carousel .carousel-control-prev,
  .hero-carousel .carousel-control-next {
    width: 45px;
    height: 45px;
  }

  .hero-carousel .carousel-control-prev {
    left: 20px;
  }

  .hero-carousel .carousel-control-next {
    right: 20px;
  }

  .hero-carousel .carousel-indicators {
    bottom: 15px;
  }
}

@media (max-width: 576px) {
  /* Mobile phones */
  .hero-section {
    width: 100%;
    height: 219.38px;
    max-width: 100%;
    margin: 70px auto 0;
    overflow: hidden;
  }

  .hero-carousel {
    width: 100%;
    height: 219.38px;
    max-width: 100%;
    margin: 0 auto;
  }

  .hero-carousel .carousel-inner,
  .hero-carousel .carousel-item {
    width: 100%;
    height: 219.38px;
    max-width: 100%;
  }

  .hero-slide-image {
    width: 100%;
    height: 100%;
    max-width: 100%;
    background-size: cover;
    background-position: center;
  }

  .hero-overlay {
    width: 100%;
    height: 100%;
    max-width: 100%;
  }

  .hero-content-wrapper {
    width: 100%;
    height: 100%;
    max-width: 100%;
  }

  .hero-carousel .carousel-control-prev,
  .hero-carousel .carousel-control-next {
    width: 40px;
    height: 40px;
  }

  .hero-carousel .carousel-control-prev-icon,
  .hero-carousel .carousel-control-next-icon {
    width: 16px;
    height: 16px;
  }

  .hero-carousel .carousel-indicators {
    bottom: 10px;
  }

  .hero-carousel .carousel-indicators li {
    width: 20px;
    height: 2px;
  }

  .hero-carousel .carousel-indicators .active {
    width: 35px;
  }
}

/* =================================
   Video Cards Section
   ================================= */
.video-cards-section {
  padding: 80px 0;
  background: var(--off-white);
}

.video-card {
  background: var(--pure-white);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  cursor: pointer;
}

.video-wrapper {
  position: relative;
  width: 100%;
  height: 250px;
  overflow: hidden;
}

.video-wrapper video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(25, 24, 24, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
}

.play-button {
  width: 60px;
  height: 60px;
  background: var(--pure-white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-gold);
  font-size: 20px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* =================================
   Featured Content Section (Promotions)
   ================================= */
.featured-content-section {
  padding: 80px 0;
  background: var(--pure-white);
}

/* Promotion Carousel Slide Animation */
#promotionCarousel .carousel-item {
  transition: transform 0.8s ease-in-out, opacity 0.8s ease-in-out;
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  opacity: 0;
}

#promotionCarousel .carousel-item.active,
#promotionCarousel .carousel-item-next.carousel-item-left,
#promotionCarousel .carousel-item-prev.carousel-item-right {
  opacity: 1;
  transform: translateX(0);
}

#promotionCarousel .carousel-item-next,
#promotionCarousel .carousel-item.active.carousel-item-right {
  transform: translateX(100%);
}

#promotionCarousel .carousel-item-prev,
#promotionCarousel .carousel-item.active.carousel-item-left {
  transform: translateX(-100%);
}

#promotionCarousel .carousel-item.active {
  position: relative;
}

.featured-card-large {
  position: relative;
  overflow: hidden;
  width: 100%;
  max-width: 1920px;
  margin: 0 auto;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.15);
  cursor: pointer;
  display: flex;
  text-decoration: none;
  background: #fff;
}

.featured-image-wrapper {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  overflow: hidden;
  border-radius: 8px;
}

.featured-image-wrapper img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
  border-radius: 8px;
  background: #000;
}

.featured-content {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 32px 36px 24px 32px;
  color: var(--pure-white);
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.04) 0%,
    rgba(0, 0, 0, 0.7) 100%
  );
  z-index: 2;
  border-radius: 0 0 16px 16px;
}

.featured-tag {
  display: inline-block;
  background: var(--primary-gold);
  color: var(--pure-white);
  padding: 4px 14px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 12px;
  border-radius: 8px;
}

.featured-title {
  font-size: 26px;
  font-weight: 500;
  line-height: 1.2;
  margin-bottom: 10px;
}

.featured-excerpt {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.96);
  margin-bottom: 16px;
  line-height: 1.5;
}

.featured-details {
  display: flex;
  gap: 18px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.88);
  flex-wrap: wrap;
}

.featured-details span {
  display: flex;
  align-items: center;
  gap: 7px;
}

.featured-details i {
  color: var(--primary-gold);
}

/* Carousel Controls */
.carousel-control-prev,
.carousel-control-next {
  width: 40px;
  height: 40px;
  background: rgba(0, 0, 0, 0.5);
  border-radius: 50%;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0.7;
  transition: all 0.3s ease;
}

.carousel-control-prev {
  left: 15px;
}

.carousel-control-next {
  right: 15px;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
  opacity: 1;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
  width: 14px;
  height: 14px;
  filter: brightness(0) invert(1);
}

/* =================================
   PROMOTIONS SECTION - RESPONSIVE OPTIMIZATION
   5-Tier System for All iOS Devices
   ================================= */

/* iPad Pro (768px-1024px) - Large Tablets */
@media (min-width: 768px) and (max-width: 1024px) {
  .featured-content-section {
    padding: 70px 0;
  }

  .featured-card-large {
    max-width: 100%;
    height: auto;
    box-shadow: 0 6px 30px rgba(0, 0, 0, 0.12);
    border-radius: 8px;
  }

  .featured-image-wrapper {
    padding-bottom: 56.25%;
    max-height: none;
    border-radius: 8px;
  }

  .featured-image-wrapper img {
    object-fit: contain;
    border-radius: 8px;
  }

  .featured-content {
    padding: 30px 32px 24px;
    border-radius: 0 0 8px 8px;
  }

  .featured-tag {
    font-size: 12px;
    padding: 5px 14px;
    margin-bottom: 12px;
    border-radius: 6px;
  }

  .featured-title {
    font-size: 24px;
    line-height: 1.3;
    margin-bottom: 12px;
  }

  .featured-excerpt {
    font-size: 14px;
    margin-bottom: 14px;
    line-height: 1.6;
  }

  .featured-details {
    gap: 16px;
    font-size: 13px;
  }

  #promotionCarousel .carousel-control-prev,
  #promotionCarousel .carousel-control-next {
    width: 48px !important;
    height: 48px !important;
  }

  #promotionCarousel .carousel-control-prev {
    left: 15px !important;
  }

  #promotionCarousel .carousel-control-next {
    right: 15px !important;
  }

  #promotionCarousel .carousel-control-prev-icon,
  #promotionCarousel .carousel-control-next-icon {
    width: 18px !important;
    height: 18px !important;
  }
}

/* Tablets (≤991px) - Standard Tablets */
@media (max-width: 991px) {
  .featured-content-section {
    padding: 65px 0;
  }

  .featured-card-large {
    max-width: 100%;
    height: auto;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.11);
  }

  .featured-image-wrapper {
    padding-bottom: 56.25%;
    border-radius: 8px;
  }

  .featured-content {
    padding: 28px 30px 22px;
  }

  .featured-tag {
    font-size: 11px;
    padding: 4px 13px;
  }

  .featured-title {
    font-size: 22px;
    margin-bottom: 11px;
  }

  .featured-excerpt {
    font-size: 13px;
    margin-bottom: 13px;
  }

  .featured-details {
    gap: 15px;
    font-size: 12px;
  }

  #promotionCarousel .carousel-control-prev,
  #promotionCarousel .carousel-control-next {
    width: 46px !important;
    height: 46px !important;
  }

  #promotionCarousel .carousel-control-prev-icon,
  #promotionCarousel .carousel-control-next-icon {
    width: 17px !important;
    height: 17px !important;
  }
}

/* Mobile Landscape (≤768px) - Large Smartphones, iPad Mini Portrait */
@media (max-width: 768px) {
  .featured-content-section {
    padding: 55px 0;
  }

  .featured-card-large {
    max-width: 100%;
    height: auto;
    margin: 0 auto;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
  }

  .featured-image-wrapper {
    padding-bottom: 56.25%;
    max-height: none;
    border-radius: 8px;
    background: #000;
  }

  .featured-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 8px;
  }

  .featured-content {
    padding: 20px 24px 18px;
    border-radius: 0 0 8px 8px;
  }

  .featured-tag {
    font-size: 11px;
    padding: 4px 12px;
    margin-bottom: 10px;
    border-radius: 6px;
  }

  .featured-title {
    font-size: 20px;
    line-height: 1.3;
    margin-bottom: 10px;
    font-weight: 500;
  }

  .featured-excerpt {
    font-size: 13px;
    margin-bottom: 12px;
    line-height: 1.5;
  }

  .featured-details {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 12px;
  }

  .featured-details span {
    gap: 6px;
  }

  #promotionCarousel .carousel-control-prev,
  #promotionCarousel .carousel-control-next {
    width: 44px !important;
    height: 44px !important;
  }

  #promotionCarousel .carousel-control-prev {
    left: 12px !important;
  }

  #promotionCarousel .carousel-control-next {
    right: 12px !important;
  }

  #promotionCarousel .carousel-control-prev-icon,
  #promotionCarousel .carousel-control-next-icon {
    width: 16px !important;
    height: 16px !important;
  }
}

/* Mobile Portrait (≤576px) - iPhone Standard, Android Phones */
@media (max-width: 576px) {
  .featured-content-section {
    padding: 45px 0;
  }

  .featured-card-large {
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.08);
    border-radius: 6px;
  }

  .featured-image-wrapper {
    padding-bottom: 56.25%;
    border-radius: 6px;
    background: #000;
  }

  .featured-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 6px;
  }

  .featured-content {
    padding: 16px 20px 14px;
    border-radius: 0 0 6px 6px;
  }

  .featured-tag {
    font-size: 10px;
    padding: 3px 10px;
    margin-bottom: 9px;
    border-radius: 5px;
  }

  .featured-title {
    font-size: 18px;
    line-height: 1.3;
    margin-bottom: 9px;
    font-weight: 500;
  }

  .featured-excerpt {
    font-size: 12px;
    margin-bottom: 11px;
    line-height: 1.5;
  }

  .featured-details {
    flex-direction: column;
    gap: 8px;
    font-size: 11px;
  }

  .featured-details span {
    gap: 5px;
  }

  #promotionCarousel .carousel-control-prev,
  #promotionCarousel .carousel-control-next {
    width: 40px !important;
    height: 40px !important;
  }

  #promotionCarousel .carousel-control-prev {
    left: 10px !important;
  }

  #promotionCarousel .carousel-control-next {
    right: 10px !important;
  }

  #promotionCarousel .carousel-control-prev-icon,
  #promotionCarousel .carousel-control-next-icon {
    width: 14px !important;
    height: 14px !important;
  }
}

/* Small Mobile (≤480px) - iPhone SE, Small Android Phones */
@media (max-width: 480px) {
  .featured-content-section {
    padding: 40px 0;
  }

  .featured-card-large {
    max-width: 100%;
    height: auto;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    border-radius: 6px;
  }

  .featured-image-wrapper {
    padding-bottom: 56.25%;
    max-height: none;
    border-radius: 6px;
    background: #000;
  }

  .featured-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 6px;
  }

  .featured-content {
    padding: 14px 18px 12px;
    border-radius: 0 0 6px 6px;
  }

  .featured-tag {
    font-size: 9px;
    padding: 3px 9px;
    margin-bottom: 8px;
    border-radius: 4px;
    letter-spacing: 0.5px;
  }

  .featured-title {
    font-size: 16px;
    line-height: 1.3;
    margin-bottom: 8px;
    font-weight: 500;
  }

  .featured-excerpt {
    font-size: 11px;
    margin-bottom: 10px;
    line-height: 1.5;
  }

  .featured-details {
    flex-direction: column;
    gap: 7px;
    font-size: 10px;
  }

  .featured-details span {
    gap: 5px;
  }

  #promotionCarousel .carousel-control-prev,
  #promotionCarousel .carousel-control-next {
    width: 38px !important;
    height: 38px !important;
  }

  #promotionCarousel .carousel-control-prev {
    left: 8px !important;
  }

  #promotionCarousel .carousel-control-next {
    right: 8px !important;
  }

  #promotionCarousel .carousel-control-prev-icon,
  #promotionCarousel .carousel-control-next-icon {
    width: 13px !important;
    height: 13px !important;
  }
}

/* =================================
   Enhanced Projects Section
   ================================= */

.project-card-panora .card-title {
  font-family: "PK Maehongson", "MYRIADPRO-REGULAR", "Prompt", sans-serif;
}

.project-card-panora .card-description,
.project-card-panora .icon-text,
.project-card-panora .project-btn-detail,
.project-card-panora .project-btn-register {
  font-family: "MYRIADPRO-REGULAR", "Prompt", sans-serif;
}

#projects {
  position: relative;
  z-index: 1;
  overflow: hidden;
}

#projects::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("public/img/image_cff943.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.08;
  z-index: -1;
}

#projects .container {
  position: relative;
  z-index: 2;
}

.projects-section {
  padding: 100px 0;
}

.project-card {
  background: var(--pure-white);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  text-decoration: none;
  color: inherit;
}

.project-image {
  position: relative;
  height: 200px;
  overflow: hidden;
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-badge {
  position: absolute;
  top: 15px;
  left: 15px;
  background: var(--primary-gold);
  color: var(--pure-white);
  padding: 4px 12px;
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-family: "PK Maehongson", "MYRIADPRO-REGULAR", "Prompt", sans-serif;
}

.project-content {
  padding: 25px;
}

.project-location {
  font-size: 12px;
  color: var(--primary-gold);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 5px;
  font-weight: 500;
  font-family: "PK Maehongson", "MYRIADPRO-REGULAR", "Prompt", sans-serif;
}

.project-title {
  font-size: 20px;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 10px;
  line-height: 1.3;
  font-family: "PK Maehongson", "MYRIADPRO-REGULAR", "Prompt", sans-serif;
}

.project-description {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 15px;
}

.project-features {
  margin-bottom: 20px;
}

.project-features .badge {
  font-size: 10px;
  padding: 4px 8px;
  background: var(--cream);
  color: var(--text-primary);
  border: none;
}

.project-features .badge i {
  color: var(--primary-gold);
}

.coming-soon {
  opacity: 0.6;
}

.coming-soon-placeholder {
  height: 200px;
  background: var(--cream);
  color: var(--text-light);
}

.project-image-wrapper {
  overflow: hidden !important;
  border-radius: 8px 8px 0 0;
}

.project-image {
  transition: transform 0.4s ease;
}

.project-card:hover .project-image {
  transform: scale(1.1);
}

/* Enhanced Project Cards */
.project-card-panora {
  background: var(--pure-white);
  border: 2px solid rgba(179, 141, 63, 0.15);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.18), 0 4px 8px rgba(179, 141, 63, 0.25),
    0 2px 4px rgba(0, 0, 0, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.8);
  height: 100% !important;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

.project-card-panora:hover {
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.22),
    0 6px 12px rgba(179, 141, 63, 0.35), 0 3px 6px rgba(0, 0, 0, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 1);
  /* transform: translateY(-5px); */
}

.project-image-container {
  position: relative;
  overflow: hidden;
  height: 280px !important;
  /* box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1); */
}

.project-main-image {
  transition: transform 0.5s ease, filter 0.3s ease;
}

.project-card-panora:hover .project-main-image {
  transform: scale(1.08);
  filter: brightness(1.05);
}

.project-card-panora h3 {
  font-weight: 400;
  min-height: 32px !important;
  display: flex !important;
  align-items: flex-start !important;
  line-height: 1.2 !important;
  margin-bottom: 20px !important;
  font-family: "PK Maehongson", "MYRIADPRO-REGULAR", "Prompt", sans-serif;
}

.project-card-panora p {
  font-weight: 300;
  min-height: 80px !important;
  flex-grow: 1 !important;
  line-height: 1.5 !important;
  margin-bottom: 50px !important;
}

.project-card-panora .icon-text {
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  line-clamp: 2;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  min-height: 36px;
}

.project-btn-detail,
.project-btn-register {
  font-family: "MYRIADPRO-REGULAR", "Prompt", sans-serif !important;
  font-weight: 500 !important;
  height: 40px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  transition: all 0.3s ease !important;
  font-size: 12px !important;
  padding: 10px 16px !important;
  border-radius: 4px !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.project-btn-register {
  background: linear-gradient(135deg, #b38d3f 0%, #d8b567 100%);
  color: white !important;
  border: none !important;
}

.project-btn-register:hover {
  background: linear-gradient(135deg, #8b7355 0%, #a67c52 100%) !important;
  color: white !important;
  box-shadow: 0 4px 12px rgba(139, 115, 85, 0.4) !important;
  /* transform: translateY(-2px); */
}

.project-btn-detail:hover {
  background-color: #666 !important;
  color: white !important;
  box-shadow: 0 4px 12px rgba(102, 102, 102, 0.4) !important;
  /* transform: translateY(-2px); */
}

.project-card-panora .card-body {
  display: flex !important;
  flex-direction: column !important;
  flex-grow: 1 !important;
}

.project-card-panora .border-top {
  margin-top: auto !important;
}

#projects .row {
  display: flex !important;
  flex-wrap: wrap !important;
  justify-content: center !important;
  align-items: stretch !important;
}

#projects .col-lg-4 {
  flex: 0 0 auto !important;
  max-width: 350px !important;
  width: 100% !important;
}

.project-card-description {
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  line-clamp: 4;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
}

/* [เพิ่มส่วนนี้] ควบคุม Font และ Style ของ Project Card จาก CSS */
.project-card-panora .card-title {
  color: #191818;
  font-size: 24px;
  font-weight: 500;
  line-height: 1.2;
  min-height: 32px;
  display: flex;
  align-items: start;
}

.project-card-panora .card-description {
  font-size: 14px;
  line-height: 1.5;
  color: #6c757d; /* text-muted color */
  flex-grow: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  line-clamp: 4;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
}

.project-card-panora .icon-grid {
  min-height: 70px;
}

.project-card-panora .icon-text {
  font-size: 12px;
  color: #666;
  font-weight: 500;
}

/* =================================
   PROJECTS SECTION - RESPONSIVE OPTIMIZATION
   5-Tier System for All iOS Devices
   ================================= */

/* Desktop - Default Card Sizing */
@media (min-width: 992px) {
  #projects .col-lg-4 {
    flex: 0 0 350px !important;
    max-width: 350px !important;
  }
}

/* iPad Pro (768px-1024px) - Large Tablets */
@media (min-width: 768px) and (max-width: 1024px) {
  .projects-section {
    padding: 80px 0;
  }

  #projects .col-lg-4 {
    flex: 0 0 340px !important;
    max-width: 340px !important;
  }

  .project-card-panora {
    border-width: 2px;
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.16),
      0 3px 7px rgba(179, 141, 63, 0.22);
  }

  .project-image-container {
    height: 260px !important;
  }

  .project-card-panora h3 {
    font-size: 22px !important;
    min-height: 30px !important;
    margin-bottom: 18px !important;
  }

  .project-card-panora .card-title {
    font-size: 22px;
    min-height: 30px;
  }

  .project-card-panora p,
  .project-card-panora .card-description {
    font-size: 13px !important;
    min-height: 75px !important;
    margin-bottom: 45px !important;
    line-height: 1.5 !important;
  }

  .project-card-panora .icon-text {
    font-size: 12px;
    min-height: 34px;
  }

  .project-card-panora .icon-grid {
    min-height: 68px;
  }

  .project-btn-detail,
  .project-btn-register {
    font-size: 12px !important;
    padding: 10px 16px !important;
    height: 40px !important;
  }
}

/* Tablets (≤991px) - Standard Tablets */
@media (max-width: 991px) {
  .projects-section {
    padding: 75px 0;
  }

  #projects .col-lg-4 {
    flex: 0 0 320px !important;
    max-width: 320px !important;
  }

  .project-card-panora {
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15),
      0 3px 6px rgba(179, 141, 63, 0.2);
  }

  .project-image-container {
    height: 250px !important;
  }

  .project-card-panora h3 {
    font-size: 21px !important;
    min-height: 28px !important;
    margin-bottom: 17px !important;
  }

  .project-card-panora .card-title {
    font-size: 21px;
    min-height: 28px;
  }

  .project-card-panora p,
  .project-card-panora .card-description {
    font-size: 13px !important;
    min-height: 72px !important;
    margin-bottom: 42px !important;
  }

  .project-card-panora .icon-text {
    font-size: 11px;
    min-height: 33px;
  }

  .project-card-panora .icon-grid {
    min-height: 66px;
  }

  .project-btn-detail,
  .project-btn-register {
    font-size: 11px !important;
    padding: 9px 15px !important;
    height: 38px !important;
  }
}

/* Mobile Landscape (≤768px) - Large Smartphones, iPad Mini Portrait */
@media (max-width: 768px) {
  .projects-section {
    padding: 60px 0;
  }

  #projects .col-lg-4 {
    flex: 0 0 100% !important;
    max-width: 95% !important;
    margin: 0 auto 25px auto !important;
  }

  #projects .row {
    justify-content: center !important;
    gap: 0 !important;
  }

  .project-card-panora {
    max-width: 480px;
    margin: 0 auto;
    box-shadow: 0 5px 18px rgba(0, 0, 0, 0.12),
      0 2px 8px rgba(179, 141, 63, 0.18);
  }

  .project-card-panora:hover {
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.16),
      0 4px 10px rgba(179, 141, 63, 0.25);
  }

  .project-image-container {
    height: 240px !important;
  }

  .project-card-panora h3 {
    font-size: 20px !important;
    min-height: auto !important;
    margin-bottom: 16px !important;
    line-height: 1.3 !important;
  }

  .project-card-panora .card-title {
    font-size: 20px;
    min-height: auto;
    line-height: 1.3;
  }

  .project-card-panora p,
  .project-card-panora .card-description {
    font-size: 13px !important;
    min-height: auto !important;
    margin-bottom: 20px !important;
    line-height: 1.6 !important;
    -webkit-line-clamp: 3;
    line-clamp: 3;
  }

  .project-card-panora .card-body {
    padding: 20px;
  }

  .project-card-panora .icon-text {
    font-size: 11px;
    min-height: auto;
    -webkit-line-clamp: 1;
    line-clamp: 1;
  }

  .project-card-panora .icon-grid {
    min-height: auto;
    margin-bottom: 18px;
  }

  .project-btn-detail,
  .project-btn-register {
    font-size: 12px !important;
    padding: 10px 18px !important;
    height: 40px !important;
    border-radius: 5px !important;
  }

  .project-card-panora .border-top {
    padding-top: 18px;
  }
}

/* Mobile Portrait (≤576px) - iPhone Standard, Android Phones */
@media (max-width: 576px) {
  .projects-section {
    padding: 50px 0;
  }

  #projects .col-lg-4 {
    max-width: 92% !important;
    margin: 0 auto 20px auto !important;
  }

  .project-card-panora {
    max-width: 420px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1),
      0 2px 6px rgba(179, 141, 63, 0.15);
  }

  .project-image-container {
    height: 220px !important;
  }

  .project-card-panora h3 {
    font-size: 19px !important;
    min-height: auto !important;
    margin-bottom: 14px !important;
  }

  .project-card-panora .card-title {
    font-size: 19px;
    line-height: 1.3;
  }

  .project-card-panora p,
  .project-card-panora .card-description {
    font-size: 12px !important;
    margin-bottom: 18px !important;
    line-height: 1.5 !important;
  }

  .project-card-panora .card-body {
    padding: 18px;
  }

  .project-card-panora .icon-text {
    font-size: 11px;
  }

  .project-card-panora .icon-grid {
    margin-bottom: 16px;
  }

  .project-btn-detail,
  .project-btn-register {
    font-size: 11px !important;
    padding: 9px 16px !important;
    height: 38px !important;
  }

  .project-card-panora .border-top {
    padding-top: 16px;
  }
}

/* Small Mobile (≤480px) - iPhone SE, Small Android Phones */
@media (max-width: 480px) {
  .projects-section {
    padding: 45px 0;
  }

  #projects .col-lg-4 {
    max-width: 90% !important;
    margin: 0 auto 18px auto !important;
  }

  .project-card-panora {
    max-width: 380px;
    border-width: 1.5px;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.08),
      0 1px 5px rgba(179, 141, 63, 0.12);
  }

  .project-card-panora:hover {
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12),
      0 3px 8px rgba(179, 141, 63, 0.18);
  }

  .project-image-container {
    height: 200px !important;
  }

  .project-card-panora h3 {
    font-size: 18px !important;
    min-height: auto !important;
    margin-bottom: 12px !important;
    line-height: 1.3 !important;
  }

  .project-card-panora .card-title {
    font-size: 18px;
    line-height: 1.3;
  }

  .project-card-panora p,
  .project-card-panora .card-description {
    font-size: 12px !important;
    min-height: auto !important;
    margin-bottom: 16px !important;
    line-height: 1.5 !important;
    -webkit-line-clamp: 3;
    line-clamp: 3;
  }

  .project-card-panora .card-body {
    padding: 16px;
  }

  .project-card-panora .icon-text {
    font-size: 10px;
    min-height: auto;
  }

  .project-card-panora .icon-grid {
    margin-bottom: 14px;
    min-height: auto;
  }

  .project-btn-detail,
  .project-btn-register {
    font-size: 11px !important;
    padding: 8px 14px !important;
    height: 36px !important;
    border-radius: 4px !important;
  }

  .project-card-panora .border-top {
    padding-top: 14px;
    margin-top: 14px;
  }

  .project-location {
    font-size: 11px;
  }

  .project-badge {
    font-size: 10px;
    padding: 3px 10px;
  }
}

/* =================================
   News Section - Fixed Title Display
   ================================= */

#news {
  padding: 100px 0;
  background: var(--section-off-white);
}

/* News Card Layout Adjustment */
/* .news-card-large:hover {
  transform: translateY(-8px) !important;
  box-shadow: 0 15px 50px rgba(179, 141, 63, 0.2) !important;
} */

.news-card-large:hover img {
  transform: scale(1.05) !important;
}

/* News Card Image Container - Support for 1920x1080 images (16:9 aspect ratio) */
.news-card-large > div:first-child {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  overflow: hidden;
  background: #f8f9fa;
  line-height: 0;
  margin: 0;
}

.news-card-large > div:first-child img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  margin: 0;
  padding: 0;
}

/* Title Styling */
.news-card-large h3 {
  font-size: 25px;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 15px;
  font-family: "PK Maehongson", "MYRIADPRO-REGULAR", "Prompt", sans-serif;
  display: -webkit-box;
  line-clamp: 3;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex-grow: 1;
  text-decoration: none;
}

/* News Date and Link Styling */
.news-card-large .d-flex span:first-child {
  font-size: 15px;
}

.news-card-large .d-flex span:last-child {
  font-size: 15px;
}

/* News Link Styles */
.news-card-large a {
  position: relative;
}

.news-card-large a::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: #b38d3f;
  transition: width 0.3s ease;
}

.news-card-large a:hover {
  color: #d8b567 !important;
  text-decoration: none !important;
  transform: translateX(3px) !important;
}

.news-card-large a:hover::after {
  width: 100% !important;
}

/* Animation Effects */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.news-card-large {
  animation: fadeInUp 0.6s ease-out;
}

.news-card-large:nth-child(1) {
  animation-delay: 0.1s;
}

.news-card-large:nth-child(2) {
  animation-delay: 0.2s;
}

/* Mobile Scroll Animation - Global for All Pages */
@media (max-width: 991px) {
  /* Index Page Elements */
  #promotions,
  #projects,
  #news,
  .section-header,
  .featured-card-large,
  .project-card-panora,
  .news-card-large,
  .partners-section,
  /* News All Page Elements */
  .news-all-section,
  .news-card-large,
  .pagination-wrapper,
  /* Gallery All Page Elements */
  .gallery-section,
  .gallery-grid,
  .gallery-item,
  .gallery-cta-section,
  /* News Detail Page Elements */
  .news-detail-section,
  .news-image-wrapper,
  .news-detail-header,
  .news-detail-body,
  .related-news-section {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
  }

  /* Animate-in state for all elements */
  #promotions.animate-in,
  #projects.animate-in,
  #news.animate-in,
  .section-header.animate-in,
  .featured-card-large.animate-in,
  .project-card-panora.animate-in,
  .news-card-large.animate-in,
  .partners-section.animate-in,
  .news-all-section.animate-in,
  .pagination-wrapper.animate-in,
  .gallery-section.animate-in,
  .gallery-grid.animate-in,
  .gallery-item.animate-in,
  .gallery-cta-section.animate-in,
  .news-detail-section.animate-in,
  .news-image-wrapper.animate-in,
  .news-detail-header.animate-in,
  .news-detail-body.animate-in,
  .related-news-section.animate-in {
    opacity: 1;
    transform: translateY(0);
  }

  /* Staggered animation delays */
  .featured-card-large:nth-child(1).animate-in { transition-delay: 0.1s; }
  .featured-card-large:nth-child(2).animate-in { transition-delay: 0.2s; }
  .featured-card-large:nth-child(3).animate-in { transition-delay: 0.3s; }

  .project-card-panora:nth-child(1).animate-in { transition-delay: 0.1s; }
  .project-card-panora:nth-child(2).animate-in { transition-delay: 0.2s; }
  .project-card-panora:nth-child(3).animate-in { transition-delay: 0.3s; }

  .news-card-large:nth-child(1).animate-in { transition-delay: 0.1s; }
  .news-card-large:nth-child(2).animate-in { transition-delay: 0.2s; }
  .news-card-large:nth-child(3).animate-in { transition-delay: 0.3s; }

  .gallery-item:nth-child(1).animate-in { transition-delay: 0.05s; }
  .gallery-item:nth-child(2).animate-in { transition-delay: 0.1s; }
  .gallery-item:nth-child(3).animate-in { transition-delay: 0.15s; }
  .gallery-item:nth-child(4).animate-in { transition-delay: 0.2s; }
  .gallery-item:nth-child(5).animate-in { transition-delay: 0.25s; }
  .gallery-item:nth-child(6).animate-in { transition-delay: 0.3s; }
}

/* Focus States */
.news-card-large:focus {
  outline: 2px solid #b38d3f;
  outline-offset: 4px;
}

/* =================================
   Mobile Responsive Design - 5-Tier Breakpoint System
   ================================= */

/* iPad Pro and large tablets (portrait) */
@media (min-width: 768px) and (max-width: 1024px) {
  #news {
    padding: 60px 0 50px 0;
  }

  #news .text-center {
    padding-top: 20px !important;
    padding-bottom: 10px !important;
    margin-bottom: 20px !important;
  }

  #news .text-center h2 {
    font-size: 3.2rem !important;
    letter-spacing: -0.8px;
    margin-bottom: 15px !important;
  }

  #news .text-center .text-uppercase {
    font-size: 16px;
    letter-spacing: 1.5px;
    margin-bottom: 5px !important;
  }

  #news .row {
    margin-top: 35px !important;
  }

  .news-card-large {
    height: auto !important;
    margin-bottom: 25px !important;
  }

  .news-card-large > div:first-child {
    padding-bottom: 56.25%;
  }

  .news-card-large > div:last-child {
    padding: 15px 12px 15px 12px !important;
    min-height: 160px !important;
  }

  .news-card-large h3 {
    font-size: 22px;
    font-weight: 100;
    line-height: 1.35;
    margin-bottom: 10px;
    min-height: auto;
  }

  .news-card-large .d-flex span:first-child {
    font-size: 13px;
  }

  .news-card-large .d-flex span:last-child {
    font-size: 14px;
  }

  #news .mt-5 {
    margin-top: 35px !important;
  }

  #news .btn-lg {
    padding: 12px 40px !important;
    font-size: 22px !important;
  }
}

/* Tablets and iPad (portrait) */
@media (max-width: 991px) {
  #news {
    padding: 55px 0 45px 0;
  }

  #news .text-center {
    padding-top: 18px !important;
    padding-bottom: 10px !important;
    margin-bottom: 18px !important;
  }

  #news .text-center h2 {
    font-size: 3.0rem !important;
    letter-spacing: -0.7px;
    margin-bottom: 12px !important;
  }

  #news .text-center .text-uppercase {
    font-size: 15px;
    letter-spacing: 1.4px;
    margin-bottom: 5px !important;
  }

  #news .row {
    margin-top: 30px !important;
  }

  .news-card-large {
    height: auto !important;
    margin-bottom: 25px !important;
  }

  .news-card-large > div:first-child {
    padding-bottom: 56.25%;
  }

  .news-card-large > div:last-child {
    padding: 14px 11px 14px 11px !important;
    min-height: 150px !important;
  }

  .news-card-large h3 {
    font-size: 20px;
    font-weight: 100;
    line-height: 1.3;
    margin-bottom: 9px;
    min-height: auto;
  }

  .news-card-large .d-flex span:first-child {
    font-size: 12px;
  }

  .news-card-large .d-flex span:last-child {
    font-size: 13px;
  }

  #news .mt-5 {
    margin-top: 30px !important;
  }

  #news .btn-lg {
    padding: 11px 35px !important;
    font-size: 20px !important;
  }
}

/* Mobile landscape and small tablets */
@media (max-width: 768px) {
  #news {
    padding: 50px 0 40px 0 !important;
  }

  #news .text-center {
    padding-top: 20px !important;
    padding-bottom: 12px !important;
    margin-bottom: 15px !important;
  }

  #news .text-center h2 {
    font-size: 2.8rem !important;
    letter-spacing: -0.7px;
    margin-bottom: 12px !important;
  }

  #news .text-center .text-uppercase {
    font-size: 14px;
    letter-spacing: 1.5px;
    margin-bottom: 5px !important;
  }

  #news .row {
    margin-top: 28px !important;
  }

  .news-card-large {
    height: auto !important;
    margin-bottom: 22px !important;
  }

  .news-card-large > div:first-child {
    padding-bottom: 56.25%;
  }

  .news-card-large > div:last-child {
    padding: 13px 10px 13px 10px !important;
    min-height: 140px !important;
  }

  .news-card-large h3 {
    font-size: 19px;
    font-weight: 100;
    line-height: 1.3;
    margin-bottom: 8px;
    min-height: auto;
  }

  .news-card-large .d-flex span:first-child {
    font-size: 12px;
  }

  .news-card-large .d-flex span:last-child {
    font-size: 13px;
  }

  #news .mt-5 {
    margin-top: 28px !important;
  }

  #news .btn-lg {
    padding: 10px 32px !important;
    font-size: 19px !important;
  }
}

/* Mobile portrait */
@media (max-width: 576px) {
  #news {
    padding: 45px 0 35px 0 !important;
  }

  #news .text-center {
    padding-top: 18px !important;
    padding-bottom: 10px !important;
    margin-bottom: 12px !important;
  }

  #news .text-center h2 {
    font-size: 1.7rem !important;
    letter-spacing: -0.4px;
    margin-bottom: 7px !important;
  }

  #news .text-center .text-uppercase {
    font-size: 9.5px;
    letter-spacing: 1px;
    margin-bottom: 3px !important;
  }

  #news .row {
    margin-top: 25px !important;
    margin-left: -5px !important;
    margin-right: -5px !important;
  }

  #news .row > [class*="col-"] {
    padding-left: 5px !important;
    padding-right: 5px !important;
  }

  .news-card-large {
    height: auto !important;
    margin-bottom: 10px !important;
  }

  .news-card-large > div:first-child {
    padding-bottom: 75%;
  }

  .news-card-large > div:last-child {
    padding: 7px 5px 7px 5px !important;
    min-height: 85px !important;
  }

  .news-card-large h3 {
    font-size: 25px !important;
    font-weight: 100;
    line-height: 1.2;
    margin-bottom: 4px;
    min-height: auto;
    -webkit-line-clamp: 2;
    line-clamp: 2;
  }

  .news-card-large .d-flex {
    flex-direction: column;
    align-items: flex-start !important;
    gap: 2px;
  }

  .news-card-large .d-flex span:first-child {
    font-size: 15px !important;
  }

  .news-card-large .d-flex span:last-child {
    font-size: 15.5px !important;
  }

  #news .container {
    padding-left: 15px !important;
    padding-right: 15px !important;
  }

  #news .mt-5 {
    margin-top: 25px !important;
  }

  #news .btn-lg {
    padding: 10px 30px !important;
    font-size: 18px !important;
    width: 100%;
  }
}

/* Small mobile devices */
@media (max-width: 480px) {
  #news {
    padding: 40px 0 30px 0 !important;
  }

  #news .text-center {
    padding-top: 15px !important;
    padding-bottom: 8px !important;
    margin-bottom: 10px !important;
  }

  #news .text-center h2 {
    font-size: 2.2rem !important;
    letter-spacing: -0.5px;
    margin-bottom: 8px !important;
  }

  #news .text-center .text-uppercase {
    font-size: 12px;
    letter-spacing: 1.2px;
    margin-bottom: 3px !important;
  }

  #news .row {
    margin-top: 22px !important;
  }

  .news-card-large {
    height: auto !important;
    margin-bottom: 18px !important;
  }

  .news-card-large > div:first-child {
    padding-bottom: 56.25%;
  }

  .news-card-large > div:last-child {
    padding: 11px 8px 11px 8px !important;
    min-height: 120px !important;
  }

  .news-card-large h3 {
    font-size: 17px;
    font-weight: 100;
    line-height: 1.25;
    margin-bottom: 6px;
    min-height: auto;
  }

  .news-card-large .d-flex span:first-child {
    font-size: 10px;
  }

  .news-card-large .d-flex span:last-child {
    font-size: 11px;
  }

  #news .container {
    padding-left: 12px !important;
    padding-right: 12px !important;
  }

  #news .mt-5 {
    margin-top: 22px !important;
  }

  #news .btn-lg {
    padding: 9px 28px !important;
    font-size: 17px !important;
    width: 100%;
  }
}

/* ================================
   Enhanced Contact Section
   ================================= */
.contact-section {
  padding: 80px 0;
  background: var(--dark-gray);
  color: var(--pure-white);
}

.contact-section .section-header h2,
.contact-section .section-header .section-description,
.contact-section .section-header .section-label {
  color: var(--pure-white);
}

.contact-info-side {
  padding-right: 40px;
}

.contact-luxury-title {
  font-size: 36px;
  font-weight: 300;
  color: var(--pure-white);
  margin-bottom: 20px;
  line-height: 1.2;
}

.contact-luxury-subtitle {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 30px;
  line-height: 1.6;
}

.contact-info-item {
  padding: 20px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.contact-info-item:last-child {
  border-bottom: none;
}

.contact-info-icon {
  width: 40px;
  height: 40px;
  background: var(--primary-gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--pure-white);
  font-size: 16px;
}

.contact-info-text h6 {
  color: var(--pure-white);
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 5px;
}

.contact-info-text p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 13px;
  margin: 0;
  line-height: 1.4;
}

.contact-card {
  background: var(--pure-white);
  padding: 40px;
  border-radius: 8px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.contact-card h4 {
  font-size: 24px;
  font-weight: 300;
  color: var(--text-primary);
  margin-bottom: 25px;
}

.contact-form .form-control {
  border: 1px solid var(--border-gray);
  border-radius: 4px;
  padding: 12px 15px;
  font-size: 14px;
  background: var(--pure-white);
  color: var(--text-primary);
}

.contact-form .form-control:focus {
  outline: none;
  border-color: var(--primary-gold);
  box-shadow: 0 0 0 2px rgba(179, 141, 63, 0.1);
}

.btn-primary {
  background: var(--primary-gold);
  border-color: var(--primary-gold);
  font-weight: 500;
  letter-spacing: 0.5px;
  padding: 12px 30px;
}

.btn-primary:hover {
  background: var(--dark-gold);
  border-color: var(--dark-gold);
}

/* Professional Contact Section */
.contact-professional {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 0;
  overflow: hidden;
}

.contact-professional .container {
  position: relative;
  z-index: 2;
  max-width: 1200px;
}

.contact-header {
  text-align: center;
  margin-bottom: 10px;
}

.contact-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 3px;
  color: #b38d3f;
  text-transform: uppercase;
  padding: 8px 24px;
  border: 1px solid rgba(179, 141, 63, 0.3);
  border-radius: 30px;
  margin-bottom: 30px;
  background: rgba(179, 141, 63, 0.05);
  font-family: "PK Maehongson", "MYRIADPRO-REGULAR", "Prompt", sans-serif;
}

.contact-title {
  font-size: 48px;
  font-weight: 200;
  color: #1a1a1a;
  letter-spacing: -1px;
  margin-bottom: 20px;
  font-family: "PK Maehongson", "MYRIADPRO-REGULAR", "Prompt", sans-serif;
}

.contact-subtitle {
  font-size: 18px;
  color: #666;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
  font-weight: 300;
}

.contact-form-container {
  display: flex;
  justify-content: center;
}

.contact-form-wrapper {
  width: 100%;
  max-width: 800px;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.95) 0%,
    rgba(249, 247, 244, 0.9) 100%
  );
  backdrop-filter: blur(25px);
  border-radius: 20px;
  padding: 60px;
  box-shadow: 0 25px 80px rgba(179, 141, 63, 0.15),
    0 8px 30px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(179, 141, 63, 0.15);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-bottom: 50px;
}

.form-field {
  position: relative;
}

.form-input-pro,
.form-select-pro {
  width: 100%;
  padding: 20px 0 8px 0;
  border: none;
  border-bottom: 1px solid #e0e0e0;
  background: transparent;
  font-size: 16px;
  font-family: "MYRIADPRO-REGULAR", "Prompt", sans-serif;
  color: #1a1a1a;
  outline: none;
  appearance: none;
  transition: all 0.3s ease;
}

.form-select-pro {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath fill='%23666' d='M6 8L0 0h12z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right center;
  padding-right: 20px;
}

.form-input-pro:focus,
.form-select-pro:focus {
  border-bottom-color: #b38d3f;
}

.form-input-pro:focus ~ .form-line,
.form-select-pro:focus ~ .form-line {
  width: 100%;
  background: #b38d3f;
}

.form-label-pro {
  position: absolute;
  left: 0;
  top: 20px;
  font-size: 16px;
  color: #999;
  pointer-events: none;
  font-weight: 400;
  font-family: "MYRIADPRO-REGULAR", "Prompt", sans-serif;
  transition: all 0.3s ease;
}

.form-input-pro:focus ~ .form-label-pro,
.form-input-pro:not(:placeholder-shown) ~ .form-label-pro,
.form-select-pro:focus ~ .form-label-pro,
.form-select-pro:valid ~ .form-label-pro {
  top: 0;
  font-size: 12px;
  color: #b38d3f;
  font-weight: 500;
}

.form-line {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: #b38d3f;
  transition: width 0.4s ease;
}

.form-submit-container {
  text-align: center;
}

.btn-submit-pro {
  position: relative;
  padding: 18px 50px;
  background: linear-gradient(135deg, #b38d3f 0%, #d8b567 100%);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  font-family: "MYRIADPRO-REGULAR", "Prompt", sans-serif;
  cursor: pointer;
  overflow: hidden;
  min-width: 280px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.btn-submit-pro:hover {
  box-shadow: 0 15px 35px rgba(179, 141, 63, 0.4);
}

.btn-submit-pro:active {
  transform: translateY(0);
}

.btn-text {
  position: relative;
  z-index: 2;
}

.btn-progress {
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
}

.btn-submit-pro:hover .btn-progress {
  left: 100%;
}

.form-field:focus-within .form-label-pro {
  color: #b38d3f;
}

.btn-submit-pro.loading {
  pointer-events: none;
  opacity: 0.8;
}

.btn-submit-pro.loading .btn-text::after {
  content: "";
  width: 16px;
  height: 16px;
  margin-left: 10px;
  border: 2px solid transparent;
  border-top-color: currentColor;
  border-radius: 50%;
  display: inline-block;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

/* Responsive */
@media (max-width: 991px) {
  .contact-form-wrapper {
    padding: 40px;
  }

  .form-grid {
    gap: 30px;
  }

  .contact-title {
    font-size: 36px;
  }
}

@media (max-width: 768px) {
  .contact-professional {
    padding: 80px 0;
  }

  .contact-form-wrapper {
    padding: 30px 20px;
  }

  .form-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .contact-title {
    font-size: 28px;
  }

  .contact-subtitle {
    font-size: 16px;
  }

  .btn-submit-pro {
    width: 100%;
    min-width: auto;
  }
}

@media (max-width: 576px) {
  .contact-header {
    margin-bottom: 50px;
  }

  .contact-badge {
    font-size: 10px;
    padding: 6px 20px;
  }

  .form-input-pro,
  .form-select-pro {
    font-size: 15px;
  }

  .form-label-pro {
    font-size: 15px;
  }
}

/* =================================
   Enhanced Select Box Styling
   ================================= */

.form-select-pro {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;

  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23999' d='M6 8L0 0h12z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 5px center;
  padding-right: 25px;
  cursor: pointer;
  border-radius: 8px;
}

.form-field:focus-within .form-select-pro {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23B38D3F' d='M6 8L0 0h12z'/%3E%3C/svg%3E");
}

.form-select-pro.has-value ~ .form-label-pro {
  top: 0;
  font-size: 12px;
  color: #b38d3f;
  font-weight: 500;
}

/* Enhanced Option Styling */
.form-select-pro option {
  background-color: #ffffff !important;
  color: #1a1a1a !important;
  padding: 12px 16px !important;
  font-size: 15px !important;
  font-family: "MYRIADPRO-REGULAR", "Prompt", sans-serif !important;
  border-radius: 8px !important;
  margin: 4px 0 !important;
  transition: all 0.3s ease !important;
}

.form-select-pro option:hover,
.form-select-pro option:focus {
  background-color: #f5f0e6 !important;
  color: #b38d3f !important;
  font-weight: 500 !important;
}

.form-select-pro option:checked {
  background: linear-gradient(135deg, #b38d3f 0%, #d8b567 100%) !important;
  color: #ffffff !important;
  font-weight: 500 !important;
}

.form-select-pro option[value=""] {
  color: #999 !important;
  font-style: italic !important;
}

/* Dropdown styling for select elements */
.form-select-pro::-ms-expand {
  display: none !important;
}

.form-select-pro option:disabled {
  color: #ccc !important;
  background-color: #f5f5f5 !important;
}

/* Custom Select Dropdown for Chrome compatibility */
.custom-select-wrapper {
  position: relative;
  width: 100%;
}

.custom-select-field .form-label-pro {
  top: 0;
  font-size: 12px;
  color: #999;
  font-weight: 400;
  transition: color 0.3s ease, font-weight 0.3s ease;
}

.custom-select-wrapper.is-loading .custom-select-trigger,
.custom-select-wrapper.has-message .custom-select-trigger {
  color: #999;
  font-style: italic;
  pointer-events: none;
}

.custom-select-wrapper.is-loading .custom-select-trigger::after,
.custom-select-wrapper.has-message .custom-select-trigger::after {
  border-top-color: #ccc;
}

.custom-select-wrapper.has-error .custom-select-trigger {
  color: #b00020;
  font-weight: 500;
}

.custom-select-wrapper.has-error .custom-select-trigger::after {
  border-top-color: #b00020;
}

.custom-select-trigger {
  position: relative;
  width: 100%;
  padding: 20px 25px 8px 0;
  border: none;
  border-bottom: 1px solid #e0e0e0;
  background: transparent;
  font-size: 16px;
  font-family: "MYRIADPRO-REGULAR", "Prompt", sans-serif;
  color: #1a1a1a;
  cursor: pointer;
  text-align: left;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.custom-select-trigger::after {
  content: "";
  position: absolute;
  right: 5px;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 6px solid #666;
}

.custom-select-wrapper.open .custom-select-trigger::after {
  border-top-color: #b38d3f;
  transform: translateY(-50%) rotate(180deg);
}

.custom-select-trigger:focus {
  outline: none;
  border-bottom-color: #b38d3f;
}

.custom-select-options {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  max-height: 280px;
  overflow-y: auto;
  background: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1), 0 3px 8px rgba(179, 141, 63, 0.15);
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  margin-top: 8px;
}

.custom-select-wrapper.open .custom-select-options {
  opacity: 1;
  visibility: visible;
}

.custom-select-option {
  padding: 12px 16px;
  font-size: 15px;
  font-family: "MYRIADPRO-REGULAR", "Prompt", sans-serif;
  color: #1a1a1a;
  cursor: pointer;
  border-radius: 6px;
  margin: 4px 8px;
}

.custom-select-option:hover {
  background: linear-gradient(135deg, #f5f0e6 0%, #faf8f5 100%);
  color: #b38d3f;
  font-weight: 500;
}

.custom-select-option.selected {
  background: linear-gradient(135deg, #b38d3f 0%, #d8b567 100%);
  color: #ffffff;
  font-weight: 500;
}

.custom-select-option.selected:hover {
  background: linear-gradient(135deg, #8b7355 0%, #b38d3f 100%);
  color: #ffffff;
}

.custom-select-option[data-value=""] {
  color: #999;
  font-style: italic;
}

.custom-select-option.disabled {
  color: #ccc;
  background-color: #f5f5f5;
  cursor: not-allowed;
}

/* Scrollbar styling for custom select */
.custom-select-options::-webkit-scrollbar {
  width: 8px;
}

.custom-select-options::-webkit-scrollbar-track {
  background: #f5f5f5;
  border-radius: 8px;
}

.custom-select-options::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg, #b38d3f 0%, #d8b567 100%);
  border-radius: 8px;
}

.custom-select-options::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(135deg, #8b7355 0%, #b38d3f 100%);
}

/* =================================
   Enhanced Partners Section
   ================================= */
.partners-section {
  padding: 80px 0;
  background: linear-gradient(
    135deg,
    var(--pure-white) 0%,
    var(--off-white) 100%
  );
  position: relative;
  overflow: hidden;
}

.partners-wrapper {
  text-align: center;
}

.partners-title {
  font-size: 14px;
  font-weight: 400;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 40px;
}

.partners-slider {
  position: relative;
  overflow: hidden;
}

.partners-track {
  display: flex;
  align-items: center;
  gap: 80px;
  animation: scroll-partners 30s linear infinite;
}

.partner-logo {
  flex-shrink: 0;
  width: 150px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.partner-logo img {
  max-width: 100%;
  max-height: 100%;
  opacity: 0.6;
}

.partner-logo:hover img {
  opacity: 1;
}

@keyframes scroll-partners {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

/* =================================
   Floating Elements & Utilities
   ================================= */
.floating-contact {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 1000;
}

.floating-btn {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--primary-gold);
  color: var(--pure-white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
}

.floating-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 30px rgba(0, 0, 0, 0.15);
}

.contact-options {
  position: absolute;
  bottom: 70px;
  right: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(20px);
  transition: all 0.3s ease;
}

.contact-options.show {
  opacity: 1;
  pointer-events: all;
  transform: translateY(0);
}

.contact-option {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--pure-white);
  text-decoration: none;
  font-size: 18px;
  box-shadow: 0 3px 15px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.contact-option:hover {
  transform: scale(1.1);
  color: var(--pure-white);
}

.contact-phone {
  background: #34c759;
}

.contact-email {
  background: #007aff;
}

.contact-line {
  background: #00c300;
}

.contact-whatsapp {
  background: #25d366;
}

.back-to-top {
  position: fixed;
  bottom: 30px;
  left: 30px;
  width: 48px;
  height: 48px;
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-gray);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  cursor: pointer;
  opacity: 0;
  transform: translateY(100px);
  transition: all 0.3s ease;
  z-index: 999;
}

.back-to-top.show {
  opacity: 1;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--text-primary);
  color: var(--pure-white);
}

.loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--pure-white);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.loading-overlay.fade-out {
  opacity: 0;
  visibility: hidden;
}

.loading-spinner {
  width: 60px;
  height: 60px;
  border: 4px solid rgba(179, 141, 63, 0.2);
  border-top-color: var(--primary-gold);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.loading-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.loading-logo {
  width: 80px;
  height: auto;
  opacity: 0.8;
  animation: pulse 1.5s ease-in-out infinite;
}

.loading-text {
  color: var(--primary-gold);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  opacity: 0.7;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 0.7;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.05);
  }
}

/* Mobile utilities */
@media (max-width: 768px) {
  .floating-contact,
  .back-to-top {
    bottom: 20px;
  }

  .floating-contact {
    right: 20px;
  }

  .back-to-top {
    left: 20px;
  }
}

/* Remove old registration form styles conflicts */
.registration-form-animated {
  display: none !important;
}

/* Professional popup styles */
.professional-popup {
  font-family: "MYRIADPRO-REGULAR", "Prompt", sans-serif !important;
}

/* Body scroll lock utility */
body.no-scroll {
  overflow: hidden;
}

.text-center {
  text-align: center;
}

/* =================================
   Terms and Conditions Modal Styles
   ================================= */
.terms-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
}

.terms-modal.active {
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
}

.terms-modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(7, 7, 7, 0.85);
  opacity: 0;
}

.terms-modal.active .terms-modal-overlay {
  opacity: 1;
}

.terms-modal-content {
  position: relative;
  background: #ffffff;
  max-width: 800px;
  width: 90%;
  max-height: 85vh;
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  opacity: 0;
  display: flex;
  flex-direction: column;
}

.terms-modal.active .terms-modal-content {
  opacity: 1;
}

.terms-modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  border: none;
  background: rgba(0, 0, 0, 0.1);
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}

.terms-modal-close:hover {
  background: rgba(0, 0, 0, 0.2);
}

.terms-modal-close i {
  font-size: 18px;
  color: #333;
}

.terms-modal-header {
  text-align: center;
  padding: 40px 40px 30px;
  border-bottom: 2px solid #f0f0f0;
}

.terms-modal-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 20px;
  background: linear-gradient(135deg, #b38d3f 0%, #d4af37 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 20px rgba(179, 141, 63, 0.3);
}

.terms-modal-icon i {
  font-size: 40px;
  color: #ffffff;
}

.terms-modal-title {
  font-size: 2rem;
  font-weight: 600;
  color: #333;
  margin-bottom: 10px;
}

.terms-modal-subtitle {
  font-size: 1rem;
  color: #666;
  margin: 0;
}

.terms-modal-body {
  padding: 30px 40px;
  overflow-y: auto;
  flex: 1;
}

.terms-modal-confirm {
  padding: 0 40px 10px;
}

.terms-modal-confirm .terms-checkbox-container {
  align-items: center;
}

.terms-content h4 {
  font-size: 1.1rem;
  font-weight: 600;
  color: #b38d3f;
  margin-top: 20px;
  margin-bottom: 10px;
}

.terms-content h4:first-child {
  margin-top: 0;
}

.terms-content p {
  font-size: 0.95rem;
  line-height: 1.7;
  color: #555;
  margin-bottom: 20px;
  text-align: left;
}

/* ===== Clean Terms Modal Design ===== */
.terms-section {
  margin-bottom: 20px;
  padding-bottom: 0;
}

.terms-section:last-of-type {
  margin-bottom: 0;
}

.terms-section h4 {
  font-size: 1.05rem;
  font-weight: 600;
  color: #191818;
  margin: 0 0 8px 0;
}

.terms-section p {
  font-size: 0.95rem;
  line-height: 1.7;
  color: #444;
  margin: 0;
  text-align: left;
  max-width: 95%;
}

.terms-modal-footer {
  padding: 20px 40px 30px;
  border-top: 2px solid #f0f0f0;
  display: flex;
  justify-content: center;
}

.btn-terms-accept {
  padding: 14px 50px;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #b38d3f 0%, #d4af37 100%);
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(179, 141, 63, 0.3);
}

.btn-terms-accept:hover {
  box-shadow: 0 6px 20px rgba(179, 141, 63, 0.4);
}

.btn-terms-accept.disabled,
.btn-terms-accept[disabled] {
  opacity: 0.6;
  cursor: not-allowed;
  box-shadow: none;
}

/* Terms Acceptance Checkbox Styles */
.terms-acceptance {
  margin: 20px 0;
}

.terms-checkbox-container {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
  user-select: none;
}

.terms-checkbox-container input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  cursor: pointer;
}

.terms-checkmark {
  position: relative;
  width: 24px;
  height: 24px;
  min-width: 24px;
  border: 2px solid #b38d3f;
  border-radius: 4px;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.terms-checkbox-container:hover .terms-checkmark {
  border-color: #d4af37;
  box-shadow: 0 0 8px rgba(179, 141, 63, 0.2);
}

.terms-checkbox-container input[type="checkbox"]:checked ~ .terms-checkmark {
  background: linear-gradient(135deg, #b38d3f 0%, #d4af37 100%);
  border-color: #b38d3f;
}

.terms-checkmark:after {
  content: "";
  position: absolute;
  display: none;
  left: 7px;
  top: 3px;
  width: 6px;
  height: 11px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.terms-checkbox-container
  input[type="checkbox"]:checked
  ~ .terms-checkmark:after {
  display: block;
}

.terms-label {
  font-size: 0.95rem;
  color: #555;
  line-height: 1.6;
}

.terms-link {
  color: #b38d3f;
  text-decoration: underline;
  font-weight: 600;
}

.terms-link:hover {
  color: #d4af37;
  text-decoration: underline;
}

@media (max-width: 768px) {
  .terms-modal-content {
    max-width: 95%;
    max-height: 90vh;
  }

  .terms-modal-header {
    padding: 30px 25px 20px;
  }

  .terms-modal-body {
    padding: 20px 25px;
  }

  .terms-modal-confirm {
    padding: 0 25px 10px;
  }

  .terms-modal-footer {
    padding: 15px 25px 25px;
  }

  .btn-terms-accept {
    width: 100%;
    justify-content: center;
  }

  .terms-modal-title {
    font-size: 1.5rem;
  }

  .terms-content h4 {
    font-size: 1rem;
  }

  .terms-content p {
    font-size: 0.9rem;
  }

  /* Clean Design Mobile Responsive */
  .terms-section {
    margin-bottom: 18px;
  }

  .terms-section h4 {
    font-size: 1rem;
    margin-bottom: 8px;
  }

  .terms-section p {
    font-size: 0.88rem;
    line-height: 1.65;
    max-width: 100%;
  }
}
