/* ============================================================
   TaraHome Builder — Main Stylesheet
   Light Theme | Font: Kanit | Gold + Blue Accent
   ============================================================ */

:root {
  /* Background Family */
  --bg-base:     #F5F6FA;
  --bg-card:     #FFFFFF;
  --bg-section:  #EEF1F8;
  --bg-elevated: #FFFFFF;

  /* Primary — Royal Blue */
  --primary:       #0047AB;
  --primary-dark:  #003385;
  --primary-light: #1A5DC7;

  /* Accent — Polished Gold */
  --gold:       #D4AF37;
  --gold-dark:  #B8960A;
  --gold-light: #E8C84A;

  /* Text */
  --text-dark:  #1A1A2E;
  --text-muted: #6B7280;
  --white:      #FFFFFF;

  /* Borders & Shadow */
  --border:       #E2E6F0;
  --border-gold:  rgba(212,175,55,0.35);
  --shadow:       0 4px 20px rgba(0,71,171,0.08);
  --shadow-hover: 0 8px 40px rgba(0,71,171,0.16);

  /* Misc */
  --radius:    12px;
  --radius-sm: 8px;
  --transition: all 0.3s ease;
}

/* ============================================================
   Base
   ============================================================ */
* { box-sizing: border-box; }
body {
  font-family: 'Kanit', sans-serif;
  color: var(--text-dark);
  background: var(--bg-base);
  font-size: 16px;
  line-height: 1.7;
  font-weight: 400;
  overflow-x: hidden;
}
a { color: var(--primary); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--gold-dark); }
img { max-width: 100%; height: auto; }
h1,h2,h3,h4,h5,h6 { font-family: 'Kanit', sans-serif; font-weight: 700; line-height: 1.3; color: var(--text-dark); }
p { font-family: 'Kanit', sans-serif; }

/* ── White text override: สีน้ำเงิน / ทอง / เข้ม ─────────── */
.stats-bar h1, .stats-bar h2, .stats-bar h3,
.stats-bar h4, .stats-bar h5, .stats-bar h6,
.stats-bar p, .stats-bar span, .stats-bar label,

.why-us h1, .why-us h2, .why-us h3,
.why-us h4, .why-us h5, .why-us h6,
.why-us p, .why-us span,

.cta-section h1, .cta-section h2, .cta-section h3,
.cta-section h4, .cta-section h5, .cta-section h6,
.cta-section p,

.page-hero h1, .page-hero h2, .page-hero h3,
.page-hero h4, .page-hero h5, .page-hero h6,
.page-hero p, .page-hero span,

.contact-info-card h1, .contact-info-card h2,
.contact-info-card h3, .contact-info-card h4,
.contact-info-card h5, .contact-info-card h6,
.contact-info-card p, .contact-info-card span,
.contact-info-card label,

.topbar h1, .topbar h2, .topbar h3,
.topbar h4, .topbar h5, .topbar h6,
.topbar p, .topbar span,

.footer h1, .footer h2, .footer h3,
.footer h4, .footer h5, .footer h6,
.footer p,

.hero-content h1, .hero-content h2,
.hero-content h3, .hero-content h4,
.hero-content h5, .hero-content h6,
.hero-content p,

.portfolio-overlay h1, .portfolio-overlay h2,
.portfolio-overlay h3, .portfolio-overlay h4,
.portfolio-overlay h5, .portfolio-overlay h6,
.portfolio-overlay p,

.bg-primary h1, .bg-primary h2, .bg-primary h3,
.bg-primary h4, .bg-primary h5, .bg-primary h6,
.bg-primary p, .bg-primary span,

[style*="background:var(--primary)"] h1,
[style*="background:var(--primary)"] h2,
[style*="background:var(--primary)"] h3,
[style*="background:var(--primary)"] h4,
[style*="background:var(--primary)"] h5,
[style*="background:var(--primary)"] h6,
[style*="background:var(--primary)"] p { color: #ffffff !important; }
.text-gold  { color: var(--gold) !important; }
.text-muted { color: var(--text-muted) !important; }
.bg-primary-custom { background-color: var(--primary) !important; }

/* ============================================================
   Buttons
   ============================================================ */
.btn { border-radius: 50px; font-family: 'Kanit', sans-serif; font-weight: 600; padding: 10px 28px; transition: var(--transition); letter-spacing: 0.3px; }

.btn-primary { background: var(--primary); border-color: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); border-color: var(--primary-dark); color: #fff; transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,71,171,0.30); }
.btn-gold { background: var(--gold); border-color: var(--gold); color: #fff; font-weight: 600; }
.btn-gold:hover { background: var(--gold-dark); border-color: var(--gold-dark); color: #fff; transform: translateY(-2px); box-shadow: 0 6px 20px rgba(212,175,55,0.35); }
.btn-outline-gold { border: 2px solid var(--gold); color: var(--gold-dark); background: transparent; font-weight: 600; }
.btn-outline-gold:hover { background: var(--gold); color: #fff; }
.btn-outline-light { border: 2px solid rgba(255,255,255,0.70); color: #fff; background: transparent; }
.btn-outline-light:hover { background: rgba(255,255,255,0.15); border-color: #fff; color: #fff; }
.btn-lg { padding: 12px 36px; font-size: 1rem; }

/* ============================================================
   Typography
   ============================================================ */
.section-padding  { padding: 80px 0; }
.section-title    { font-size: 2rem; color: var(--text-dark); margin-bottom: 0.5rem; font-weight: 700; }
.section-subtitle { color: var(--text-muted); font-size: 1.05rem; margin-bottom: 2.5rem; }
.divider { width: 60px; height: 4px; background: var(--gold); margin: 12px auto 20px; border-radius: 2px; }
.divider.left { margin-left: 0; }

/* ============================================================
   Topbar
   ============================================================ */
.topbar {
  background: var(--primary-dark);
  color: rgba(255,255,255,0.85);
  padding: 8px 0; font-size: 0.85rem; font-family: 'Kanit', sans-serif;
}
.topbar-item { color: rgba(255,255,255,0.85); }
.topbar-item:hover { color: var(--gold-light); }
.topbar-social {
  display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; border-radius: 50%;
  background: rgba(255,255,255,0.15); color: #fff; margin: 0 2px;
  font-size: 0.8rem; transition: var(--transition);
}
.topbar-social:hover { background: var(--gold); color: #fff; }

/* ============================================================
   Navbar
   ============================================================ */
#mainNav {
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 20px rgba(0,71,171,0.08);
  padding: 12px 0; transition: var(--transition); z-index: 999;
}
#mainNav.scrolled { padding: 8px 0; box-shadow: 0 4px 30px rgba(0,71,171,0.12); }
.navbar-logo { height: 52px; width: auto; object-fit: contain; }
.brand-text { font-size: 1.15rem; font-weight: 800; color: var(--primary); margin-left: 10px; line-height: 1.2; font-family: 'Kanit', sans-serif; }
.navbar-nav .nav-link {
  font-family: 'Kanit', sans-serif; font-weight: 500;
  color: var(--text-dark); padding: 8px 16px; position: relative; font-size: 0.95rem;
}
.navbar-nav .nav-link::after {
  content: ''; position: absolute; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 0; height: 2px; background: var(--gold); transition: var(--transition);
}
.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after { width: 80%; }
.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active { color: var(--primary); }
.btn-contact {
  background: var(--gold) !important; color: #fff !important;
  border-radius: 50px !important; padding: 8px 24px !important;
  font-size: 0.9rem !important; font-weight: 600 !important; font-family: 'Kanit', sans-serif !important;
}
.btn-contact:hover { background: var(--gold-dark) !important; transform: translateY(-1px); }
.btn-contact::after { display: none !important; }

/* ============================================================
   Hero Slider
   ============================================================ */
.hero-slider { position: relative; overflow: hidden; }
.hero-slide {
  position: relative; height: 85vh; min-height: 600px;
  background-size: cover; background-position: center; display: flex; align-items: center;
}
@media (max-width: 768px) { .hero-slide { height: 60vh; min-height: 380px; } }
.hero-overlay { display: none; }
.hero-content { position: relative; z-index: 1; color: #fff; }
.hero-badge { display: inline-block; background: var(--gold); color: #fff; padding: 4px 18px; border-radius: 50px; font-size: 0.85rem; font-weight: 600; margin-bottom: 16px; letter-spacing: 1px; }
.hero-title    { font-size: 3rem; font-weight: 800; line-height: 1.15; margin-bottom: 0.5rem; }
.hero-subtitle { font-size: 1.5rem; color: var(--gold-light); margin-bottom: 1rem; }
.hero-desc     { font-size: 1.1rem; opacity: 0.92; margin-bottom: 2rem; max-width: 520px; }
@media (max-width: 768px) { .hero-title { font-size: 1.8rem; } .hero-subtitle { font-size: 1.1rem; } }
.swiper-button-next, .swiper-button-prev {
  color: var(--gold) !important; background: rgba(255,255,255,0.25);
  width: 48px !important; height: 48px !important; border-radius: 50%; backdrop-filter: blur(8px);
}
.swiper-button-next::after, .swiper-button-prev::after { font-size: 1rem !important; font-weight: 900; }
.swiper-pagination-bullet { background: rgba(255,255,255,0.55) !important; }
.swiper-pagination-bullet-active { background: var(--gold) !important; }

/* ============================================================
   Stats Bar
   ============================================================ */
.stats-bar { background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%); padding: 40px 0; }
.stat-item   { text-align: center; color: #fff; padding: 10px; }
.stat-number { font-size: 2.5rem; font-weight: 800; color: var(--gold-light); line-height: 1; font-family: 'Kanit', sans-serif; }
.stat-label  { font-size: 0.9rem; opacity: 0.85; margin-top: 4px; }

/* ============================================================
   Services
   ============================================================ */
.service-card {
  background: var(--bg-card); border-radius: var(--radius); padding: 36px 28px;
  text-align: center; border: 1px solid var(--border);
  transition: var(--transition); height: 100%; position: relative; overflow: hidden;
}
.service-card::before {
  content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--gold)); transform: scaleX(0); transition: var(--transition);
}
.service-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-6px); }
.service-card:hover::before { transform: scaleX(1); }
.service-icon {
  width: 72px; height: 72px; background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 20px; transition: var(--transition);
}
.service-icon i { font-size: 1.7rem; color: #fff; }
.service-card:hover .service-icon { background: linear-gradient(135deg, var(--gold), var(--gold-dark)); transform: rotate(10deg); }
.service-card h5 { color: var(--primary); font-weight: 700; margin-bottom: 10px; }
.service-card p  { color: var(--text-muted); font-size: 0.95rem; margin: 0; }

/* ============================================================
   House Design Cards
   ============================================================ */
.design-card {
  background: var(--bg-card); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); border: 1px solid var(--border); transition: var(--transition); height: 100%;
}
.design-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-6px); }
.design-card-img { position: relative; overflow: hidden; height: 240px; }
.design-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.design-card:hover .design-card-img img { transform: scale(1.08); }
.design-badge { position: absolute; top: 12px; left: 12px; background: var(--gold); color: #fff; padding: 3px 12px; border-radius: 50px; font-size: 0.78rem; font-weight: 600; }
.design-card-body { padding: 20px; }
.design-card-body h5 { color: var(--text-dark); font-weight: 700; margin-bottom: 8px; font-size: 1rem; }
.design-specs { display: flex; gap: 12px; flex-wrap: wrap; margin: 10px 0; }
.spec-item    { display: flex; align-items: center; gap: 4px; font-size: 0.82rem; color: var(--text-muted); }
.spec-item i  { color: var(--gold); font-size: 0.85rem; }
.design-price { color: var(--primary); font-weight: 700; font-size: 0.95rem; margin-top: 8px; }
.design-card-footer { padding: 12px 20px; background: var(--bg-section); border-top: 1px solid var(--border); }

/* ============================================================
   Portfolio Grid
   ============================================================ */
.portfolio-item { position: relative; border-radius: var(--radius); overflow: hidden; height: 260px; cursor: pointer; }
.portfolio-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.portfolio-item:hover img { transform: scale(1.08); }
.portfolio-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,51,133,0.88) 0%, transparent 60%);
  opacity: 0; transition: var(--transition);
  display: flex; flex-direction: column; justify-content: flex-end; padding: 20px; color: #fff;
}
.portfolio-item:hover .portfolio-overlay { opacity: 1; }
.portfolio-overlay h6 { font-weight: 700; margin-bottom: 4px; font-size: 1rem; }
.portfolio-overlay p  { font-size: 0.82rem; opacity: 0.85; margin: 0; }

/* ============================================================
   Blog Cards
   ============================================================ */
.blog-card {
  background: var(--bg-card); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); border: 1px solid var(--border); transition: var(--transition); height: 100%;
}
.blog-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-5px); }
.blog-card-img { height: 220px; overflow: hidden; position: relative; }
.blog-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.blog-card:hover .blog-card-img img { transform: scale(1.08); }
.blog-category { position: absolute; top: 12px; left: 12px; background: var(--primary); color: #fff; padding: 3px 12px; border-radius: 50px; font-size: 0.78rem; font-weight: 600; }
.blog-card-body { padding: 20px; }
.blog-meta      { display: flex; gap: 12px; font-size: 0.8rem; color: var(--text-muted); margin-bottom: 10px; flex-wrap: wrap; }
.blog-meta i    { color: var(--gold); margin-right: 3px; }
.blog-card-body h5 { font-size: 1rem; font-weight: 700; color: var(--text-dark); margin-bottom: 8px; line-height: 1.4; }
.blog-card-body p  { color: var(--text-muted); font-size: 0.9rem; line-height: 1.6; }
.blog-card-footer  { padding: 12px 20px; background: var(--bg-section); border-top: 1px solid var(--border); }
.read-more { color: var(--primary); font-weight: 600; font-size: 0.9rem; }
.read-more:hover { color: var(--gold-dark); }

/* ============================================================
   About Section
   ============================================================ */
.about-img-wrapper { position: relative; }
.about-img-main    { border-radius: var(--radius); box-shadow: var(--shadow-hover); width: 100%; }
.about-img-badge {
  position: absolute; bottom: -20px; right: -20px;
  background: var(--gold); color: #fff; text-align: center;
  width: 110px; height: 110px; border-radius: 50%;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  box-shadow: 0 4px 20px rgba(212,175,55,0.40); font-weight: 700;
}
.about-img-badge span:first-child { font-size: 1.8rem; line-height: 1; }
.about-img-badge span:last-child  { font-size: 0.75rem; line-height: 1.3; }
.about-features { list-style: none; padding: 0; margin: 20px 0; }
.about-features li { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 12px; font-size: 0.95rem; color: var(--text-dark); }
.about-features li i { color: var(--gold); margin-top: 3px; flex-shrink: 0; }

/* ============================================================
   Why Us
   ============================================================ */
.why-us { background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%); }
.why-card {
  background: rgba(255,255,255,0.09); border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius); padding: 28px 20px; text-align: center; color: #fff; transition: var(--transition);
}
.why-card:hover { background: rgba(255,255,255,0.16); transform: translateY(-5px); }
.why-icon  { font-size: 2.2rem; color: var(--gold-light); margin-bottom: 14px; }
.why-card h6 { font-weight: 700; margin-bottom: 8px; font-size: 1rem; }
.why-card p  { font-size: 0.88rem; opacity: 0.80; margin: 0; }

/* ============================================================
   CTA Section
   ============================================================ */
.cta-section {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
  color: #fff; text-align: center; padding: 70px 0;
}
.cta-section h2 { font-size: 2rem; font-weight: 800; }
.cta-section p  { font-size: 1.1rem; opacity: 0.92; max-width: 600px; margin: 0 auto 2rem; }
.btn-cta-white { background: #fff; color: var(--gold-dark); border: none; font-weight: 700; padding: 14px 36px; font-size: 1.05rem; }
.btn-cta-white:hover { background: rgba(255,255,255,0.92); color: var(--gold-dark); transform: translateY(-3px); box-shadow: 0 8px 25px rgba(0,0,0,0.15); }
.btn-cta-outline { background: transparent; color: #fff; border: 2px solid rgba(255,255,255,0.70); font-weight: 700; padding: 14px 36px; font-size: 1.05rem; }
.btn-cta-outline:hover { background: rgba(255,255,255,0.15); border-color: #fff; color: #fff; transform: translateY(-3px); }

/* ============================================================
   Contact
   ============================================================ */
.contact-info-card { background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%); color: #fff; border-radius: var(--radius); padding: 36px; height: 100%; }
.contact-info-card h4 { color: var(--gold-light); margin-bottom: 24px; }
.contact-info-item  { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 20px; }
.contact-info-icon  { width: 42px; height: 42px; background: rgba(255,255,255,0.15); border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.contact-info-icon i { color: var(--gold-light); font-size: 1rem; }
.contact-info-text h6 { margin: 0 0 2px; font-size: 0.85rem; opacity: 0.70; }
.contact-info-text p  { margin: 0; font-weight: 600; }
.contact-form-card { background: var(--bg-card); border-radius: var(--radius); padding: 36px; box-shadow: var(--shadow); }
.form-control, .form-select {
  border: 1.5px solid var(--border); border-radius: var(--radius-sm);
  padding: 10px 16px; font-family: 'Kanit', sans-serif; transition: var(--transition);
}
.form-control:focus, .form-select:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(0,71,171,0.10); }
.form-label { font-weight: 600; color: var(--text-dark); font-size: 0.9rem; font-family: 'Kanit', sans-serif; }

/* ============================================================
   Page Hero Banner
   ============================================================ */
.page-hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: #fff; padding: 70px 0 50px; position: relative; overflow: hidden;
}
.page-hero::before {
  content: ''; position: absolute; top: -50%; right: -10%;
  width: 500px; height: 500px; background: rgba(212,175,55,0.08); border-radius: 50%;
}
.page-hero h1 { font-size: 2.4rem; font-weight: 800; margin-bottom: 8px; color: #fff; }
.page-hero p  { font-size: 1.05rem; opacity: 0.88; margin: 0; }
.breadcrumb-item        { color: rgba(255,255,255,0.70); font-size: 0.9rem; }
.breadcrumb-item.active { color: var(--gold-light); }
.breadcrumb-item + .breadcrumb-item::before { color: rgba(255,255,255,0.45); }

/* ============================================================
   Filter Tabs
   ============================================================ */
.filter-tabs { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-bottom: 32px; }
.filter-btn {
  padding: 8px 22px; border-radius: 50px; border: 2px solid var(--border);
  background: #fff; color: var(--text-muted); font-weight: 500; font-size: 0.9rem;
  cursor: pointer; transition: var(--transition); font-family: 'Kanit', sans-serif;
}
.filter-btn:hover, .filter-btn.active { background: var(--primary); border-color: var(--primary); color: #fff; }

/* ============================================================
   Pagination
   ============================================================ */
.pagination .page-link        { color: var(--primary); border-color: var(--border); border-radius: var(--radius-sm) !important; margin: 0 2px; background: #fff; }
.pagination .page-item.active .page-link { background: var(--primary); border-color: var(--primary); color: #fff; }
.pagination .page-link:hover  { background: var(--bg-section); color: var(--primary); }

/* ============================================================
   Footer
   ============================================================ */
.footer { background: #0D1B3E; color: rgba(255,255,255,0.80); }
.footer-main  { padding: 64px 0 40px; }
.footer-logo  { height: 56px; width: auto; object-fit: contain; margin-bottom: 12px; filter: brightness(1.1); }
.footer-brand h5 { color: #fff; font-weight: 700; margin-bottom: 6px; }
.footer-brand p  { font-size: 0.88rem; opacity: 0.72; margin-bottom: 4px; }
.footer-about    { font-size: 0.85rem; opacity: 0.68; line-height: 1.6; }
.footer-social   { display: flex; gap: 8px; }
.footer-social a {
  width: 36px; height: 36px; background: rgba(255,255,255,0.10); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.70); font-size: 0.9rem; transition: var(--transition);
}
.footer-social a:hover { background: var(--gold); color: #fff; transform: translateY(-2px); }
.footer-title  { color: var(--gold-light); font-weight: 700; font-size: 0.95rem; margin-bottom: 16px; padding-bottom: 8px; border-bottom: 1px solid rgba(255,255,255,0.12); letter-spacing: 0.5px; }
.footer-links  { list-style: none; padding: 0; }
.footer-links li { margin-bottom: 8px; }
.footer-links a  { color: rgba(255,255,255,0.68); font-size: 0.88rem; transition: var(--transition); }
.footer-links a:hover { color: var(--gold-light); padding-left: 4px; }
.footer-links i  { font-size: 0.7rem; }
.footer-contact  { list-style: none; padding: 0; }
.footer-contact li { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 12px; font-size: 0.88rem; }
.footer-contact i  { color: var(--gold); margin-top: 3px; flex-shrink: 0; width: 14px; }
.footer-contact span { color: rgba(255,255,255,0.80); }
.footer-bottom { background: rgba(0,0,0,0.30); padding: 16px 0; font-size: 0.82rem; }
.footer-bottom p { margin: 0; color: rgba(255,255,255,0.55); }
.footer-bottom a { color: rgba(255,255,255,0.55); }
.footer-bottom a:hover { color: var(--gold-light); }

/* ============================================================
   Floating Buttons
   ============================================================ */
.floating-buttons { position: fixed; right: 20px; bottom: 80px; z-index: 9000; display: flex; flex-direction: column; gap: 10px; }
.float-btn {
  width: 50px; height: 50px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem; color: #fff; box-shadow: 0 4px 15px rgba(0,0,0,0.20);
  transition: var(--transition); animation: pulse 2.5s infinite;
}
.float-btn:hover { transform: scale(1.1); color: #fff; animation: none; }
.float-line  { background: linear-gradient(135deg, #06C755, #04A244); }
.float-phone { background: linear-gradient(135deg, var(--primary), var(--primary-dark)); }
@keyframes pulse {
  0%,100% { box-shadow: 0 4px 15px rgba(0,0,0,0.20); }
  50%      { box-shadow: 0 4px 25px rgba(0,71,171,0.40); }
}

/* ============================================================
   Scroll to Top
   ============================================================ */
.scroll-top {
  position: fixed; right: 20px; bottom: 20px; z-index: 9000;
  width: 44px; height: 44px; background: var(--gold);
  border: none; border-radius: 50%; color: #fff;
  display: none; align-items: center; justify-content: center;
  font-size: 1rem; box-shadow: 0 4px 15px rgba(212,175,55,0.40);
  cursor: pointer; transition: var(--transition);
}
.scroll-top.show  { display: flex; }
.scroll-top:hover { background: var(--gold-dark); transform: translateY(-3px); }

/* ============================================================
   Alert
   ============================================================ */
.alert { border-radius: var(--radius-sm); font-weight: 500; font-family: 'Kanit', sans-serif; }

/* ============================================================
   Blog Detail
   ============================================================ */
.blog-content { font-size: 1rem; line-height: 1.85; color: var(--text-dark); font-family: 'Kanit', sans-serif; }
.blog-content h2, .blog-content h3 { color: var(--primary); margin-top: 2rem; }
.blog-content img { border-radius: var(--radius-sm); margin: 20px 0; }
.blog-content blockquote { border-left: 4px solid var(--gold); padding: 16px 20px; background: var(--bg-section); color: var(--text-muted); font-style: italic; margin: 20px 0; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }

/* ============================================================
   Gallery Lightbox
   ============================================================ */
.gallery-item { position: relative; border-radius: var(--radius-sm); overflow: hidden; }
.gallery-item img { transition: transform 0.4s ease; }
.gallery-item:hover img { transform: scale(1.05); }
.gallery-overlay {
  position: absolute; inset: 0; background: rgba(0,71,171,0.55);
  display: flex; align-items: center; justify-content: center; opacity: 0; transition: var(--transition);
}
.gallery-item:hover .gallery-overlay { opacity: 1; }
.gallery-overlay i { color: #fff; font-size: 1.8rem; }

/* ============================================================
   Login / Register
   ============================================================ */
.auth-wrapper {
  min-height: 100vh;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  display: flex; align-items: center; justify-content: center; padding: 40px 0;
}
.auth-card {
  background: #fff; border-radius: var(--radius); padding: 44px 40px;
  width: 100%; max-width: 440px; box-shadow: 0 20px 60px rgba(0,0,0,0.18);
}
.auth-logo      { text-align: center; margin-bottom: 28px; }
.auth-logo img  { height: 60px; }
.auth-title     { text-align: center; font-size: 1.6rem; font-weight: 800; color: var(--primary); margin-bottom: 6px; }
.auth-subtitle  { text-align: center; color: var(--text-muted); font-size: 0.9rem; margin-bottom: 28px; }
.auth-divider   { text-align: center; position: relative; margin: 20px 0; }
.auth-divider::before { content: ''; position: absolute; top: 50%; left: 0; right: 0; height: 1px; background: var(--border); }
.auth-divider span { position: relative; background: #fff; padding: 0 12px; color: var(--text-muted); font-size: 0.85rem; }
@media (max-width: 480px) { .auth-card { padding: 32px 24px; margin: 0 16px; } }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 991px) {
  .section-padding { padding: 55px 0; }
  .section-title   { font-size: 1.65rem; }
  .about-img-badge { right: 0; bottom: -15px; }
}
@media (max-width: 767px) {
  .section-padding { padding: 45px 0; }
  .section-title   { font-size: 1.45rem; }
  .stat-number     { font-size: 1.8rem; }
  .hero-title      { font-size: 1.75rem; }
  .page-hero h1    { font-size: 1.8rem; }
}

/* ============================================================
   Extra Safety: White text on any blue / gold background
   ============================================================ */

/* Badge บน primary */
.badge.bg-primary,
span[style*="background:var(--primary)"],
span[style*="background: var(--primary)"] { color: #fff !important; }

/* Badge / span บน gold */
span[style*="background:var(--gold)"],
span[style*="background: var(--gold)"],
.badge[style*="background:var(--gold)"] { color: #fff !important; }

/* Section inline style บน primary / gold gradient */
section[style*="background:linear-gradient"] h1,
section[style*="background:linear-gradient"] h2,
section[style*="background:linear-gradient"] h3,
section[style*="background:linear-gradient"] h4,
section[style*="background:linear-gradient"] h5,
section[style*="background:linear-gradient"] h6,
section[style*="background:linear-gradient"] p,
section[style*="background:linear-gradient"] span,
section[style*="background:linear-gradient"] label { color: #fff !important; }

/* icon circle บน primary (contact, about, profile) */
div[style*="background:linear-gradient(135deg,var(--primary)"] i { color: #fff !important; }

/* Blog category badge */
.blog-category { color: #fff !important; }

/* Bootstrap text-primary override ให้คงสีน้ำเงินบน light bg */
.text-primary { color: var(--primary) !important; }
