  #system-message {
    display: none !important;
}

:root {
  /* Requested Color Palette */
  --primary-green: #2F7D6B;
  --green-soft: #5FAF9F;
  --bg-light: #f4f5f7;
  --white: #ffffff;
  --text-dark: #1a1a1a;
  --text-muted: #6b7280;
  --accent-purple: #dcd6f7;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html, body {
    overflow-x: hidden !important;
    width: 100%;
    margin: 0;
    padding: 0;
}


body {
  font-family: 'DM Sans', sans-serif;
  background: var(--bg-light);
  color: var(--text-dark);
  overflow-x: hidden;
}

.btn-info {
    --bs-btn-color: #000 !important;
    --bs-btn-bg: #c5afeb !important;
    --bs-btn-border-color: #ffffff !important;
  }

  .btn-info:hover {
    --bs-btn-color: #000 !important;
    background: #5faf9f !important;    
    border:1px solid #5faf9f !important;    
  }
/* NAV */
#mainNav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  padding: 1.2rem 3rem;
  transition: all 0.4s ease;
  background: transparent;
}
#mainNav.scrolled {
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  padding: 0.8rem 3rem;
  border-bottom: 1px solid rgba(0,0,0,0.05);
  box-shadow: 0 4px 15px rgba(0,0,0,0.03);
}
.nav-brand {
  font-family: 'Cal Sans', serif;
  font-size: 1.6rem; font-weight: 700; color: #fff;
  letter-spacing: 2px; text-decoration: none;
}
#mainNav.scrolled .nav-brand { color: var(--text-dark); }
.nav-brand span { color: var(--green-soft); transition: color 0.3s; }

.nav-links { display: flex; gap: 2rem; list-style: none; }
.nav-links a {
  color: rgba(255,255,255,0.8); font-size: 0.78rem; text-decoration: none;
  letter-spacing: 0px; text-transform: uppercase; font-weight: 500;
  transition: color 0.3s;
}
#mainNav.scrolled .nav-links a { color: var(--text-muted); }
.nav-links a:hover, #mainNav.scrolled .nav-links a:hover { color: var(--green-soft); }

.nav-cta {
  font-size: 0.8rem; letter-spacing: 1.5px; text-transform: uppercase;
  padding: 0.5rem 1.4rem; border: 1px solid var(--white);
  color: var(--white); background: transparent; cursor: pointer;
  transition: all 0.3s; font-weight: 500; border-radius: 4px;
}
#mainNav.scrolled .nav-cta { border-color: var(--primary-green); color: var(--primary-green); }
.nav-cta:hover, #mainNav.scrolled .nav-cta:hover { background: var(--primary-green); color: #fff; border-color: var(--primary-green); }

/* HERO */
#hero {
  height: 100vh; min-height: 700px; position: relative; overflow: hidden;
  display: flex; align-items: center;
}
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
  /*background:linear-gradient(135deg, rgba(47, 125, 107, 0.9) 0%, rgb(47 125 107 / 25%) 50%, rgb(47 125 107 / 59%) 100%), url(bg3.jpg) center / cover no-repeat;*/
}
.hero-bg::after {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 60% 50%, rgba(95,175,159,0.2) 0%, transparent 65%);
}
.hero-noise {
  position: absolute; inset: 0; z-index: 1; opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.hero-content { position: relative; z-index: 2; padding: 0 5rem; }
.hero-eyebrow {
  font-size: 1.2rem; letter-spacing: 4px; 
  color: var(--green-soft); font-weight: 600; margin-bottom: 1.5rem;
  display: flex; align-items: center; gap: 1rem;
}
.hero-eyebrow::before {
  content: ''; display: inline-block; width: 40px; height: 1px; background: var(--green-soft);
}
.hero-title {
  font-family: 'Cal Sans', serif;
  font-size: clamp(4rem, 8vw, 7rem); font-weight: 700;
  line-height: 0.95; letter-spacing: 2px; color: #fff;
  margin-bottom: 0.3rem;
}
.hero-title .accent { color: var(--green-soft); }
.hero-subtitle {
  font-size: clamp(1.1rem, 2vw, 1.5rem); font-weight: 300;
  color: rgba(255,255,255,0.9); margin: 1.5rem 0 2.5rem;
  max-width: 520px; line-height: 1.6;
}
.hero-meta {
  display: flex; gap: 2.5rem; align-items: center; flex-wrap: wrap;
  margin-bottom: 3rem;
}
.hero-meta-item {
  display: flex; align-items: center; gap: 0.6rem;
  font-size: 0.85rem; color: rgba(255,255,255,0.8);
}
.hero-meta-item i { color: var(--green-soft); font-size: 0.9rem; }
.hero-buttons { display: flex; gap: 1rem; flex-wrap: wrap; }
.btn-primary-custom {
  background: var(--primary-green); color: #fff; border: none;
  padding: 0.9rem 2.5rem; font-size: 0.82rem; letter-spacing: 2px;
  text-transform: uppercase; font-weight: 500; cursor: pointer;
  transition: all 0.3s; font-family: 'DM Sans', sans-serif;
  border: 1px solid var(--primary-green); border-radius: 4px;
}
.btn-primary-custom:hover { background: transparent; color: var(--white); border-color: var(--white); transform: translateY(-2px); }
.btn-outline-custom {
  background: transparent; color: #fff;
  border: 1px solid rgba(255,255,255,0.5); border-radius: 4px;
  padding: 0.9rem 2.5rem; font-size: 0.82rem; letter-spacing: 2px;
  text-transform: uppercase; font-weight: 500; cursor: pointer;
  transition: all 0.3s; font-family: 'DM Sans', sans-serif;
}
.btn-outline-custom:hover { border-color: var(--white); background: rgba(255,255,255,0.1); }

.hero-scroll-indicator {
  position: absolute; bottom: 2.5rem; left: 50%; transform: translateX(-50%);
  z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 0.5rem;
  color: rgba(255,255,255,0.7); font-size: 0.7rem; letter-spacing: 2px; text-transform: uppercase;
}
.scroll-line {
  width: 1px; height: 50px; background: linear-gradient(to bottom, var(--green-soft), transparent);
  animation: scrollLine 1.8s ease-in-out infinite;
}
@keyframes scrollLine {
  0% { opacity: 1; transform: scaleY(1); }
  100% { opacity: 0; transform: scaleY(0); transform-origin: top; }
}

/* SECTION COMMON */
.section-label {
  font-size: 0.7rem; letter-spacing: 4px; text-transform: uppercase;
  color: var(--primary-green); font-weight: 600; margin-bottom: 1rem;
  display: flex; align-items: center; gap: 1rem;
}
.section-label::before {
  content: ''; display: inline-block; width: 28px; height: 1px; background: var(--primary-green);
}
.section-heading {
  font-family: 'Cal Sans', serif;
  font-size: clamp(2rem, 4vw, 3.2rem); font-weight: 600; line-height: 1.1;
  color: var(--text-dark); margin-bottom: 0.5rem;
}
.section-heading .accent { color: var(--primary-green); }

/* SESSIONS 
bg remove background:linear-gradient(rgba(255,255,255,0.95) 0%, rgba(244,245,247,0.8) 10%, rgba(255,255,255,0.5) 30%), url('bg2.jpg'); position: relative;
*/
#sessions {
  padding: 7rem 0; 
  
}
.session-card {
  background: var(--white); border: 1px solid rgba(0,0,0,0.06);
  padding: 2rem; height: 100%; transition: all 0.4s ease;
  position: relative; overflow: hidden; box-shadow: 0 4px 15px rgba(0,0,0,0.02);
}
.session-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(to right, var(--primary-green), var(--green-soft));
  transform: scaleX(0); transform-origin: left; transition: transform 0.4s ease;
}
.session-card:hover { border-color: var(--green-soft); transform: translateY(-4px); box-shadow: 0 12px 30px rgba(47,125,107,0.08); }
.session-card:hover::before { transform: scaleX(1); }
.session-num {
  font-family: 'Cal Sans', serif;
  font-size: 3rem; font-weight: 700; color: rgb(106 184 164);
  line-height: 1; margin-bottom: 0.5rem;
}
.session-icon-wrap {
  width: 44px; height: 44px; border: 1px solid rgba(47,125,107,0.2); border-radius: 4px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1rem; color: var(--primary-green); font-size: 1rem; transition: all 0.3s;
}
.session-card:hover .session-icon-wrap { background: var(--green-soft); border-color: var(--green-soft); color: #fff; }
.session-title { font-size: 1rem; font-weight: 600; color: var(--text-dark); margin-bottom: 0.5rem; line-height: 1.4; }
.session-desc { font-size: 0.85rem; color: var(--text-muted); line-height: 1.7; }

/* SPEAKERS */
#speakers {
  position: relative; padding: 7rem 0; overflow: hidden; background: var(--white);
}
.speakers-bg {
  position: absolute; inset: 0; z-index: 0;
  background:
    linear-gradient(rgba(255,255,255,0.95) 0%, rgba(244,245,247,0.9) 50%, rgba(255,255,255,0.95) 100%),
    url('https://images.unsplash.com/photo-1588196749597-9ff075ee6b5b?w=1600&q=80') center/cover fixed;
}
#speakers .container { position: relative; z-index: 1; }
.speaker-card {
  text-align: center; padding: 2.5rem 1.5rem;
  background: var(--white); border: 1px solid rgba(0,0,0,0.06);
  transition: all 0.4s; position: relative; overflow: hidden; box-shadow: 0 4px 15px rgba(0,0,0,0.02);
}
.speaker-card:hover { border-color: var(--green-soft); transform: translateY(-6px); box-shadow: 0 12px 30px rgba(47,125,107,0.08); }
.speaker-avatar {
  width: 80px; height: 80px; border-radius: 50%; margin: 0 auto 1rem;
  background: var(--accent-purple);
  border: 2px solid var(--green-soft);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Cal Sans', serif; font-size: 1.6rem; font-weight: 700; color: var(--primary-green);
}
.speaker-name { font-size: 1rem; font-weight: 600; color: var(--text-dark); margin-bottom: 0.25rem; }
.speaker-role { font-size: 0.8rem; color: var(--primary-green); margin-bottom: 0.2rem; letter-spacing: 0.5px; font-weight: 500; }
.speaker-country { font-size: 0.9rem; color: var(--text-muted); }
.tba-card {
  background: rgba(0,0,0,0.02); border: 1px dashed rgba(0,0,0,0.1);
  display: flex; align-items: center; justify-content: center; flex-direction: column;
  padding: 2.5rem 1.5rem; gap: 0.5rem; color: var(--text-muted);
}
.tba-card i { font-size: 1.5rem; }
.tba-card span { font-size: 0.78rem; letter-spacing: 1px; text-transform: uppercase; font-weight: 500;}

/* DATES */
#dates { padding: 7rem 0; background: var(--bg-light); position: relative; }
.timeline-row {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1px;
  background: rgba(0,0,0,0.06); border: 1px solid rgba(0,0,0,0.06);
  margin-top: 3rem;
}
.timeline-cell {
  background: var(--white); padding: 2rem 1.75rem;
  transition: background 0.3s;
}
.timeline-cell:hover { background: #fafbfc; }
.tl-label { font-size: 0.7rem; letter-spacing: 2px; text-transform: uppercase; color: var(--text-muted); margin-bottom: 1rem; font-weight: 600; }
.tl-date { font-family: 'Cal Sans', serif; font-size: 1.8rem; font-weight: 600; color: var(--primary-green); line-height: 1; margin-bottom: 0.5rem; }
.tl-title { font-size: 0.9rem; font-weight: 600; color: var(--text-dark); margin-bottom: 0.25rem; }
.tl-sub { font-size: 0.8rem; color: var(--text-muted); }
.tl-badge {
  display: inline-block; margin-top: 1rem; padding: 0.2rem 1rem;
  font-size: 0.68rem; letter-spacing: 1px; text-transform: uppercase;
  border: 1px solid var(--green-soft); color: var(--green-soft); border-radius: 4px; font-weight: 500;
}
.tl-badge.urgent { border-color: var(--accent-purple); color: var(--primary-green); background: var(--accent-purple); }

/* REGISTER */
#register {
  position: relative; padding: 7rem 0; overflow: hidden; background: var(--white);
}
.register-bg {
  position: absolute; inset: 0; z-index: 0;
  background:linear-gradient(rgb(255 255 255 / 94%) 0%, rgb(244 245 247 / 0%) 100%), url(/icrf2026/bg2.jpg) center / cover fixed;
    
}
#register .container { position: relative; z-index: 1; }
.rates-grid-custom { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 1px; background: rgba(0,0,0,0.06); border: 1px solid rgba(0,0,0,0.06); margin-top: 3rem; }
.rate-cell {
  background: var(--white); padding: 0.5rem 1rem;
  position: relative; transition: all 0.3s;
  border-bottom: 3px solid transparent;
}
.rate-cell:hover { background: #fafbfc; border-bottom-color: var(--primary-green); box-shadow: 0 10px 30px rgba(0,0,0,0.04); z-index: 2; }
.rate-cell.featured { border-bottom-color: var(--accent-purple); background: var(--bg-light); }
.rate-type { font-size: 0.7rem; letter-spacing: 3px; text-transform: uppercase; color: var(--text-muted); margin-bottom: 0.5rem; font-weight: 600; }
.rate-category { font-family: 'Cal Sans', serif; font-size: 1.4rem; font-weight: 600; color: var(--text-dark); margin-bottom: 1.5rem; }
.rate-price { font-family: 'Cal Sans', serif; font-size: 1.8rem; font-weight: 700; color: var(--primary-green); line-height: 1; }
.rate-price sub { font-size: 1rem; vertical-align: baseline; margin-right: 4px; color: var(--text-muted); font-family: 'DM Sans', sans-serif; font-weight: 400; }
.rate-currency { font-size: 0.8rem; color: var(--text-muted); margin-top: 0.25rem; font-weight: 400; }
.rate-divider { height: 1px; background: rgba(0,0,0,0.06); margin: 1.5rem 0; }
.rate-features li { font-size: 0.85rem; color: var(--text-muted); padding: 0.3rem 0; list-style: none; display: flex; align-items: center; gap: 0.5rem; }
.rate-features li i { color: var(--green-soft); font-size: 0.75rem; }
.featured-label {
  position: absolute; top: 1rem; right: 1rem; border-radius: 4px;
  font-size: 0.65rem; letter-spacing: 1.5px; text-transform: uppercase;
  background: var(--accent-purple); color: var(--primary-green); padding: 0.25rem 0.6rem; font-weight: 600;
}

/* VENUE */
#venue { padding: 7rem 0; background: var(--bg-light); }
.venue-split { display: grid; grid-template-columns: 1fr 1fr; gap: 0; min-height: 500px; box-shadow: 0 10px 40px rgba(0,0,0,0.05); }
.venue-image-side {
  position: relative; overflow: hidden; min-height: 400px;
  background: url('/icrf2026/images/bg_venue.jpg') center/cover;
}
.venue-overlay-tag {
  position: absolute; bottom: 2rem; left: 2rem; z-index: 1; border-radius: 4px;
  background: rgba(255,255,255,0.95); border: 1px solid rgba(47,125,107,0.2);
  padding: 1rem 1.25rem; backdrop-filter: blur(8px);
}
.venue-overlay-tag p { font-size: 1rem; color: var(--primary-green); letter-spacing: 1px; text-transform: uppercase; font-weight: 600; margin-bottom: 0.2rem;}
.venue-overlay-tag h4 { font-size: 1.1rem; font-weight: 600; color: var(--text-dark); margin: 0; }
.venue-info-side {
  background: var(--white); padding: 5rem 4rem; display: flex; flex-direction: column; justify-content: center;
}
.venue-tag-list { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1.5rem; }
.vtag {
  font-size: 0.85rem; letter-spacing: 1px; text-transform: uppercase;
  padding: 0.35rem 0.85rem; border: 1px solid rgba(0,0,0,0.1); border-radius: 4px;
  color: var(--text-muted); transition: all 0.3s; font-weight: 500;
}
.vtag:hover { border-color: var(--primary-green); color: var(--primary-green); background: rgba(47,125,107,0.05); }

/* SPONSORS */
#sponsors {
  position: relative; padding: 7rem 0; overflow: hidden; background: var(--white);
}
.sponsors-bg {
  position: absolute; inset: 0; z-index: 0;
  background:
    linear-gradient(rgba(244,245,247,0.15) 0%, rgba(255,255,255,0.9) 50%, rgba(244,245,247,0.95) 100%),
    url('/icrf2026/bg1.jpg') center/cover;
}
.bg-custom2{background:
    linear-gradient(rgba(244,245,247,0.15) 0%, rgba(255,255,255,0.9) 50%, rgba(244,245,247,0.95) 100%),
    url('/icrf2026/bg1.jpg') center/cover;
}
#sponsors .container { position: relative; z-index: 1; }
.sponsor-tier-label {
  font-size: 0.68rem; letter-spacing: 3px; text-transform: uppercase;
  color: var(--text-muted); margin-bottom: 1rem; font-weight: 600;
}
.sponsor-slots { display: flex; gap: 1rem; flex-wrap: wrap; }
.sponsor-slot {
  flex: 1; min-width: 160px; min-height: 80px; border-radius: 4px;
  background: var(--white); border: 1px dashed rgba(0,0,0,0.15);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.78rem; color: var(--text-muted); letter-spacing: 1px;
  text-transform: uppercase; transition: all 0.3s; cursor: pointer; font-weight: 500;
}
.sponsor-slot:hover { border-color: var(--primary-green); color: var(--primary-green); background: rgba(47,125,107,0.03); }
.sponsor-slot.gold { min-height: 64px; }

/* CONTACT */
#contact { padding: 7rem 0; background: var(--bg-light); }
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1px; background: rgba(0,0,0,0.06); margin-top: 3rem; border: 1px solid rgba(0,0,0,0.06); }
.contact-cell {
  background: var(--white); padding: 2rem 1.75rem;
  transition: background 0.3s; position: relative; overflow: hidden;
}
.contact-cell:hover { background: #fafbfc; }
.contact-icon {
  width: 44px; height: 44px; border: 1px solid rgba(47,125,107,0.2); border-radius: 4px;
  display: flex; align-items: center; justify-content: center;
  color: var(--primary-green); font-size: 1rem; margin-bottom: 1.2rem;
  transition: all 0.3s;
}
.contact-cell:hover .contact-icon { background: var(--green-soft); border-color: var(--green-soft); color: #fff; }
.contact-cell h4 { font-size: 1.05rem; font-weight: 600; color: var(--text-dark); margin-bottom: 0.4rem; }
.contact-cell p, .contact-cell a { font-size: 0.85rem; color: var(--text-muted); line-height: 1.6; text-decoration: none; }
.contact-cell a:hover { color: var(--primary-green); }

/* FOOTER */
footer {
  background: var(--primary-color); padding: 3rem 3rem;
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem;
}
footer .f-logo { font-family: 'Cal Sans', serif; font-size: 1.4rem; font-weight: 400; color: #fff; }
footer .f-logo span { color: var(--accent-purple); }
footer p { font-size: 0.9rem; color: rgba(255,255,255,0.8); }

/* REVEAL ANIMATIONS */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-left { opacity: 0; transform: translateX(-40px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal-left.visible { opacity: 1; transform: translateX(0); }
.reveal-right { opacity: 0; transform: translateX(40px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal-right.visible { opacity: 1; transform: translateX(0); }
.reveal-scale { opacity: 0; transform: scale(0.95); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal-scale.visible { opacity: 1; transform: scale(1); }

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }
.delay-5 { transition-delay: 0.5s; }

/* SCROLL PROGRESS BAR */
#progress-bar {
  position: fixed; top: 0; left: 0; height: 3px; z-index: 9999;
  background: linear-gradient(to right, var(--green-soft), var(--primary-green));
  width: 0%; transition: width 0.1s linear;
}

/* PARALLAX DIVIDER */
.parallax-divider {
  height: 260px; position: relative; overflow: hidden;
  background: url('/icrf2026/bg1.jpg') center/cover fixed;
  display: flex; align-items: center; justify-content: center;
}
.parallax-divider::before {
  content: ''; position: absolute; inset: 0;
  background: rgba(47,125,107,0.85);
}
.parallax-divider-inner { position: relative; z-index: 1; text-align: center; }
.parallax-divider-inner h2 {
  font-family: 'Cal Sans', serif;
  font-size: clamp(2rem, 5vw, 4rem); font-weight: 300; color: #fff;
  letter-spacing: 4px;
}
.parallax-divider-inner h2 strong { font-weight: 700; color: var(--accent-purple); }

/* Adjust container max */
.container { max-width: 1240px; }

.nav-buttons-wrapper {
    display: flex;
    align-items: center;
}

.nav-buttons-wrapper ul.nav-links {
    align-items: center;  /* ← จัดให้อยู่กึ่งกลางแนวตั้ง */
}

.nav-buttons-wrapper .nav-cta {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    height: 36px !important;        /* ← กำหนด height เท่ากันทั้งคู่ */
    padding: 0 1.4rem !important;
    line-height: 1 !important;
    vertical-align: middle !important;
    box-sizing: border-box !important;
}

/* --- MOBILE & RESPONSIVE FIXES --- */

@media (max-width: 768px) {
  
  /* Using an attribute selector to safely target the space in the ID */
  [id="nav-link font1"] {
    
    flex-direction: row !important; 
    text-align: center; 
    gap: 8px; 
    width: 100%; 
    padding-left: 0; 
    margin-top: 5px;
  }
  .bg-custom3 {background: transparent !important;}

}

@media (max-width: 991px) {
  /* Mobile Nav */

      .nav-buttons-wrapper {
        width: 100%;
        justify-content: center;
    }
  
  #mobileMenuBtn.scrolled{color:green !important;}
  #mainNav { padding: 0.8rem 1.5rem}
  #mainNav.scrolled { padding: 0.8rem 1.5rem; }  
  .mobile-toggle { display: block; color:#67dbbc; }
  .nav-menu {
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--white); flex-direction: column;
    padding: 2rem; gap: 1.5rem; box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    transform: translateY(-10px); opacity: 0; pointer-events: none;
    transition: all 0.3s ease; border-top: 1px solid rgba(0,0,0,0.05);
  }
  .nav-menu.active { transform: translateY(0); opacity: 1; pointer-events: auto; }
   [id="nav-link font1"] {flex-direction: row !important; margin-top:1px !important;}
  .nav-links { flex-direction: column; text-align: center; gap: 1.5rem; width: 100%; padding-left: 0; margin-top: 20px;}
  .nav-links a { color: var(--text-dark) !important; font-size: 0.8rem; }
  .nav-cta { width: 100%; text-align: center; color: var(--primary-green) !important; border-color: var(--primary-green) !important; }
  .nav-cta:hover { background: var(--primary-green) !important; color: #fff !important; }
  #mainNav.menu-open { background: var(--white); }
  #mainNav.menu-open .nav-brand { color: var(--text-dark); }
  
  /* Mobile Hero */
  .hero-content { padding: 0 1.5rem;  margin-top: 310px;}
  .hero-meta { flex-direction: column; align-items: flex-start; gap: 1rem; }
}

@media (min-width: 992px) {
  .mobile-toggle { display: none; }
  .nav-menu { display: flex; align-items: center; gap: 2rem; }
}

/* Mobile Venue Fixes */
@media (max-width: 991px) {
  .venue-split { grid-template-columns: 1fr; min-height: auto; }
  .venue-image-side { min-height: 300px; }
  .venue-info-side { padding: 3rem 1.5rem; }
  .venue-overlay-tag { bottom: 1rem; left: 1rem; padding: 0.8rem; }
  .venue-overlay-tag p { font-size: 0.8rem; }
  .venue-overlay-tag h4 { font-size: 1rem; }

   .navbar {
    position: fixed !important;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9999 !important;
  }
  
  #mobileMenuBtn {
    position: relative;
    z-index: 10000 !important;
  }
}

 .bg-custom3{
  background: linear-gradient(270deg, #dcd7f5, #ffffff00 , #ffffff00);
 }
 .font1{font-size: 0.5rem !important;}

.logo-wrap {
  display: flex;
  align-items: center;
  gap: clamp(11px, 2vw, 25px);
}

.logo-left {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.logo-left span {
  font-family: 'Cal Sans', sans-serif;
  font-weight: 400;
  font-size: clamp(2.4rem, 8vw, 2.5rem);
  color: #ffffff;                  /* ← ขาว (default บน hero) */
  letter-spacing: -0.01em;
  transition: color 0.4s ease;    /* ← เพิ่ม transition */
}

.divider {
  width: 3px;
  height: clamp(55px, 13vw, 73px);
  background: #ffffff;             /* ← ขาว */
  border-radius: 2px;
  flex-shrink: 0;
  transform: rotate(-15deg);
  transition: background 0.4s ease;
}

.logo-right p {
  font-family: 'Cal Sans', sans-serif !important;
  font-size: clamp(0.75rem, 2.2vw, 1rem);
  color: #ffffff;                  /* ← ขาว */
  line-height: 1;  
  max-width: 240px;
  transition: color 0.4s ease;
  font-weight: 200;
}

.conf-sup {
  font-size: 0.6em;
  font-weight: 600;
  vertical-align: super;
}

/* scrolled → คืนสีเดิม */
#mainNav.scrolled .logo-left span,
#mainNav.menu-open .logo-left span { color: #2E7D47; }

#mainNav.scrolled .divider,
#mainNav.menu-open .divider        { background: #2E7D47; }

#mainNav.scrolled .logo-right p,
#mainNav.menu-open .logo-right p   { color: #0D1330; }

/* ซ่อน #hornavb ในมือถือและแท็บเล็ต */
@media (max-width: 991.98px) {
  #hornavb {
    display: none !important;
  }
}

.hero-logos {
  position: absolute;
  bottom: 2rem;
  right: 2rem;
  z-index: 10;
}

.hero-logos-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  background: rgba(0, 0, 0,  0.09);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  padding: 0.75rem 1.25rem 0.85rem;
}

/* "Hosted by" label ด้านบน */
.hero-logos-header {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
  width: 100%;
  text-align: center;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

/* แถว logo ทั้งสอง */
.hero-logos-row {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

/* wrapper แต่ละ logo + label */
.hero-logo-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
}

.hero-logo-img {
  max-height: 85px;
  width: auto;
  object-fit: contain;
}

/* label ชื่อองค์กรใต้ logo */
.hero-logo-label {
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.75);
  text-align: center;
  white-space: nowrap;
}

.hero-logos-divider {
  width: 1px;
  height: 44px;
  background: rgba(255, 255, 255, 0.25);
  align-self: center;
}

@media (max-width: 768px) {

  #hero {
    flex-direction: column;
    justify-content: center;
    align-items: flex-start; /* จัดเรียงเนื้อหาให้ชิดซ้ายตาม padding */
  }

  .hero-logos {
    position: relative; /* ปลด Absolute เลิกการลอยทับเนื้อหา */
    bottom: auto;
    right: auto;
    margin-top: 3rem; /* เว้นระยะห่างจากปุ่ม Register ลงมา */
    margin-left: 1.5rem; /* จัดขอบซ้ายให้ตรงกับแนวข้อความด้านบน */
    z-index: 10;
  }

  .hero-logo-img {
    max-height: 38px;
  }

  .hero-logos-inner {
    padding: 0.6rem 1rem 0.7rem;
    align-items: flex-start;
  }
  .hero-scroll-indicator {
    display: none; /* แนะนำให้ซ่อนคำว่า scroll ด้านล่างบนมือถือ เพื่อเพิ่มพื้นที่ให้โลโก้ */
  }
}
