/* ============================================================
   pb_website — เทศบาลเมืองพิบูลมังสาหาร
   Design system: "เมืองริมมูล" (river-city theme)
   ============================================================ */

:root {
  --c-primary: #0e7490;        /* teal — แม่น้ำมูล */
  --c-primary-deep: #155e75;
  --c-dark: #0b3a4d;           /* หัวข้อ/footer */
  --c-darker: #072938;
  --c-accent: #f59e0b;         /* เหลืองอำพัน — เทียนพรรษา/พระอาทิตย์ */
  --c-accent-soft: #fde68a;
  --c-bg: #f6fbfc;
  --c-surface: #ffffff;
  --c-text: #1f2937;
  --c-muted: #64748b;
  --c-line: #e2e8f0;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow-sm: 0 2px 10px rgba(11, 58, 77, 0.07);
  --shadow-md: 0 10px 30px rgba(11, 58, 77, 0.12);
  --shadow-lg: 0 18px 50px rgba(11, 58, 77, 0.18);
  --font-display: 'Prompt', sans-serif;
  --font-body: 'Sarabun', 'Prompt', sans-serif;
  --fs-base: 1rem;
}

html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
  font-family: var(--font-body);
  font-size: var(--fs-base);
  color: var(--c-text);
  background: var(--c-bg);
  overflow-x: hidden;
}
h1, h2, h3, h4, h5, h6, .btn, .nav-link { font-family: var(--font-display); }
a { text-decoration: none; }
img { max-width: 100%; }

/* Font-size accessibility levels (topbar ก- ก ก+) */
body[data-fontscale="1"] { --fs-base: 1.075rem; }
body[data-fontscale="2"] { --fs-base: 1.15rem; }
body[data-fontscale="-1"] { --fs-base: 0.925rem; }

/* High-contrast mode */
body.high-contrast { filter: contrast(1.15) saturate(0.9); }
body.high-contrast .hero-overlay { background: rgba(0, 0, 0, 0.45); }

.skip-link {
  position: absolute; top: 0; left: 0; z-index: 2000;
  background: var(--c-accent); color: #442c02; padding: .5rem 1rem;
}

/* ============ Topbar ============ */
.topbar {
  background: var(--c-darker); color: #cbd5e1;
  padding: .3rem 0; font-size: .85rem; position: relative; z-index: 1051;
}
.topbar-link { color: #cbd5e1; font-size: .85rem; }
.topbar-link:hover { color: #fff; }
.font-size-controls { display: inline-flex; border-radius: 999px; overflow: hidden; border: 1px solid #33566b; }
.font-size-controls button {
  background: transparent; color: #cbd5e1; border: 0;
  padding: .1rem .55rem; font-size: .8rem; line-height: 1.4;
}
.font-size-controls button:hover { background: var(--c-primary); color: #fff; }
.contrast-toggle {
  background: transparent; border: 1px solid #33566b; color: #cbd5e1;
  border-radius: 50%; width: 26px; height: 26px; font-size: .8rem;
  display: inline-flex; align-items: center; justify-content: center;
}
.contrast-toggle:hover { background: var(--c-primary); color: #fff; }

/* ============ Header / Nav ============ */
.site-header {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  position: sticky; top: 0; z-index: 1050;
  box-shadow: var(--shadow-sm);
  padding: .6rem 0;
  transition: padding .25s ease, box-shadow .25s ease;
}
.site-header.shrink { padding: .25rem 0; box-shadow: var(--shadow-md); }
.brand { display: flex; align-items: center; gap: .7rem; color: var(--c-dark); min-width: 0; }
.brand-logo img, .brand-logo svg { width: 46px; height: 46px; transition: width .25s, height .25s; }
.site-header.shrink .brand-logo img, .site-header.shrink .brand-logo svg { width: 38px; height: 38px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.brand-text strong { font-family: var(--font-display); font-size: 1.05rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brand-text small { color: var(--c-muted); font-size: .72rem; letter-spacing: .04em; }

.main-nav > ul { display: flex; gap: .25rem; margin: 0; padding: 0; list-style: none; }
.main-nav a, .main-nav button {
  display: inline-flex; align-items: center; gap: .15rem;
  font-family: var(--font-display); font-weight: 500; font-size: .95rem;
  color: var(--c-dark); background: none; border: 0;
  padding: .55rem .8rem; border-radius: 999px; transition: all .2s;
}
.main-nav a:hover, .main-nav button:hover,
.main-nav .has-mega:hover > button { background: var(--c-primary); color: #fff; }
.main-nav .chev { font-size: .65rem; transition: transform .2s; }
.main-nav .has-mega:hover .chev { transform: rotate(180deg); }

/* Mega menu */
.has-mega { position: static; }
.mega-panel {
  position: absolute; left: 0; right: 0; top: 100%;
  background: var(--c-surface);
  border-top: 3px solid var(--c-primary);
  box-shadow: var(--shadow-lg);
  padding: 1.6rem 0 1.8rem;
  opacity: 0; visibility: hidden; transform: translateY(12px);
  transition: opacity .25s ease, transform .25s ease, visibility .25s;
}
.has-mega:hover .mega-panel, .has-mega:focus-within .mega-panel {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.mega-heading {
  font-size: .8rem; letter-spacing: .06em; text-transform: uppercase;
  color: var(--c-primary); border-bottom: 2px solid var(--c-line);
  padding-bottom: .5rem; margin-bottom: .7rem;
}
.mega-links { list-style: none; margin: 0; padding: 0; }
.mega-links a {
  display: flex; align-items: center; gap: .35rem;
  padding: .32rem 0; color: var(--c-text); font-size: .92rem;
  font-family: var(--font-body); border-radius: 0; background: none !important;
}
.mega-links a i { font-size: .6rem; color: var(--c-accent); transition: transform .2s; }
.mega-links a:hover { color: var(--c-primary); }
.mega-links a:hover i { transform: translateX(4px); }

.mobile-menu-btn {
  background: var(--c-primary); color: #fff; border: 0;
  width: 44px; height: 44px; border-radius: 12px; font-size: 1.4rem;
}
.mobile-menu .offcanvas-header { background: var(--c-dark); color: #fff; }
.mobile-menu .btn-close { filter: invert(1); }
.mobile-nav-link {
  display: flex; align-items: center; gap: .6rem;
  padding: .85rem 1.1rem; color: var(--c-dark); font-family: var(--font-display);
  font-weight: 500; border-bottom: 1px solid var(--c-line);
}
.mobile-nav-link i { color: var(--c-primary); }
.mobile-group-label {
  font-size: .75rem; color: var(--c-primary); font-weight: 600;
  margin: .6rem 0 .2rem; letter-spacing: .05em;
}
.mobile-sub-link { display: block; padding: .4rem .5rem; color: var(--c-text); font-size: .92rem; }
.mobile-sub-link:hover { color: var(--c-primary); }

/* ============ Hero ============ */
.hero {
  position: relative; min-height: min(88vh, 720px);
  display: flex; align-items: center;
  overflow: hidden; color: #fff;
}
.hero-scene { position: absolute; inset: 0; }
.hero-scene svg { width: 100%; height: 100%; display: block; }
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(7, 41, 56, 0.72) 0%, rgba(7, 41, 56, 0.35) 45%, transparent 75%);
}
.hero-content { position: relative; z-index: 2; padding: 6rem 0 7rem; }
.hero-text { max-width: 640px; }
.hero-eyebrow {
  display: inline-flex; align-items: center;
  background: rgba(255, 255, 255, 0.14); backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  padding: .35rem .9rem; border-radius: 999px; font-size: .85rem;
}
.hero h1 {
  font-size: clamp(1.9rem, 4.5vw, 3.4rem);
  font-weight: 800; margin: .9rem 0 .4rem;
  text-shadow: 0 4px 24px rgba(0, 0, 0, 0.35);
}
.hero-slogan {
  font-size: clamp(1rem, 2vw, 1.3rem);
  color: var(--c-accent-soft); font-family: var(--font-display); font-weight: 400;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: .7rem; margin: 1.4rem 0; }
.btn-hero-primary {
  background: var(--c-accent); color: #442c02; font-weight: 600;
  border-radius: 999px; padding: .65rem 1.5rem; border: 0;
  box-shadow: 0 8px 24px rgba(245, 158, 11, 0.4);
  transition: transform .2s, box-shadow .2s;
}
.btn-hero-primary:hover { transform: translateY(-3px); box-shadow: 0 12px 30px rgba(245, 158, 11, 0.55); color: #442c02; }
.btn-hero-ghost {
  background: rgba(255, 255, 255, 0.12); color: #fff; font-weight: 500;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 999px; padding: .65rem 1.5rem;
  backdrop-filter: blur(6px); transition: all .2s;
}
.btn-hero-ghost:hover { background: #fff; color: var(--c-dark); }
.hero-search {
  display: flex; align-items: center; max-width: 480px;
  background: rgba(255, 255, 255, 0.95); border-radius: 999px;
  padding: .3rem .4rem .3rem 1.1rem; box-shadow: var(--shadow-md);
}
.hero-search i { color: var(--c-muted); }
.hero-search input {
  flex: 1; border: 0; outline: 0; background: none;
  padding: .5rem .8rem; font-size: .95rem; min-width: 0;
}
.hero-search button {
  background: var(--c-primary); color: #fff; border: 0;
  border-radius: 999px; padding: .5rem 1.3rem; font-family: var(--font-display);
  transition: background .2s;
}
.hero-search button:hover { background: var(--c-primary-deep); }
.hero-scroll-hint {
  position: absolute; bottom: 1.2rem; left: 50%; transform: translateX(-50%);
  z-index: 2; display: flex; flex-direction: column; align-items: center;
  color: rgba(255, 255, 255, 0.8); font-size: .75rem; gap: .1rem;
  animation: bob 2.2s ease-in-out infinite;
}
.hero-scroll-hint i { font-size: 1.2rem; }
@keyframes bob { 0%, 100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, 8px); } }

/* ============ Quick services ============ */
.quick-services { margin-top: -3.4rem; position: relative; z-index: 3; padding-bottom: 1rem; }
.qs-grid {
  display: grid; gap: 1rem;
  grid-template-columns: repeat(4, 1fr);
}
@media (max-width: 991px) { .qs-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 479px) { .qs-grid { grid-template-columns: 1fr 1fr; gap: .7rem; } }
.qs-card {
  position: relative; display: flex; flex-direction: column; gap: .15rem;
  background: var(--c-surface); border-radius: var(--radius);
  padding: 1.1rem 1.2rem 1rem; color: var(--c-text);
  box-shadow: var(--shadow-sm); border: 1px solid var(--c-line);
  overflow: hidden; transition: transform .25s ease, box-shadow .25s ease;
}
.qs-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); color: var(--c-text); }
.qs-icon {
  width: 46px; height: 46px; border-radius: 13px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.35rem; color: #fff; margin-bottom: .5rem;
  transition: transform .25s ease;
}
.qs-card:hover .qs-icon { transform: scale(1.12) rotate(-6deg); }
.qs-label { font-family: var(--font-display); font-weight: 600; font-size: .95rem; }
.qs-desc { font-size: .78rem; color: var(--c-muted); }
.qs-arrow {
  position: absolute; right: .9rem; top: .9rem; color: var(--c-line);
  transition: color .2s, transform .2s;
}
.qs-card:hover .qs-arrow { color: var(--c-primary); transform: translateX(3px); }
.qs-rose .qs-icon { background: linear-gradient(135deg, #f43f5e, #be123c); }
.qs-amber .qs-icon { background: linear-gradient(135deg, #f59e0b, #b45309); }
.qs-teal .qs-icon { background: linear-gradient(135deg, #14b8a6, #0f766e); }
.qs-violet .qs-icon { background: linear-gradient(135deg, #8b5cf6, #6d28d9); }
.qs-blue .qs-icon { background: linear-gradient(135deg, #3b82f6, #1d4ed8); }
.qs-green .qs-icon { background: linear-gradient(135deg, #22c55e, #15803d); }
.qs-cyan .qs-icon { background: linear-gradient(135deg, #06b6d4, #0e7490); }
.qs-orange .qs-icon { background: linear-gradient(135deg, #fb923c, #c2410c); }

/* ============ Sections ============ */
.section { padding: 3.5rem 0; }
.section-head {
  display: flex; align-items: baseline; justify-content: space-between;
  flex-wrap: wrap; gap: .5rem; margin-bottom: 1.6rem;
}
.section-title {
  font-size: clamp(1.35rem, 2.6vw, 1.8rem); font-weight: 700; color: var(--c-dark);
  display: flex; align-items: center; gap: .55rem; margin: 0;
}
.section-title i { color: var(--c-accent); font-size: .9em; }
.section-sub { color: var(--c-muted); font-size: .92rem; }
.section-head.light .section-title, .section-head.light .section-sub { color: #fff; }
.section-more {
  color: var(--c-primary); font-family: var(--font-display); font-weight: 500; font-size: .92rem;
}
.section-more i { transition: transform .2s; }
.section-more:hover i { transform: translateX(4px); }
.section-more.light { color: var(--c-accent-soft); }

/* ============ Featured news ============ */
.featured-swiper { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-md); }
.featured-card { display: block; position: relative; color: #fff; }
.featured-card img { width: 100%; height: 420px; object-fit: cover; display: block; }
.featured-card-body {
  position: absolute; inset: auto 0 0 0; padding: 2.2rem 1.6rem 2.6rem;
  background: linear-gradient(transparent, rgba(7, 41, 56, 0.92));
}
.featured-card h3 { font-size: 1.25rem; font-weight: 600; margin: .55rem 0 .35rem; color: #fff; }
.featured-card p { color: #e2e8f0; font-size: .9rem; margin: 0 0 .5rem; }
.featured-meta { font-size: .8rem; color: #cbd5e1; }
.badge-type {
  display: inline-block; background: var(--c-accent); color: #442c02;
  font-size: .72rem; font-weight: 600; font-family: var(--font-display);
  padding: .2rem .65rem; border-radius: 999px;
}
.featured-swiper .swiper-pagination-bullet { background: #fff; opacity: .5; }
.featured-swiper .swiper-pagination-bullet-active { opacity: 1; background: var(--c-accent); }

/* ============ Executives ============ */
.exec-stack { display: flex; flex-direction: column; gap: 1rem; height: 100%; }
.exec-card {
  display: flex; gap: .9rem; align-items: flex-start;
  background: var(--c-surface); border: 1px solid var(--c-line);
  border-radius: var(--radius); padding: 1.1rem 1.2rem; box-shadow: var(--shadow-sm);
}
.exec-avatar {
  flex: 0 0 56px; width: 56px; height: 56px; border-radius: 50%;
  background: linear-gradient(135deg, var(--c-primary), var(--c-dark));
  color: #fff; font-size: 1.7rem;
  display: flex; align-items: center; justify-content: center;
}
.exec-card strong { display: block; font-family: var(--font-display); font-size: .95rem; color: var(--c-dark); }
.exec-pos { display: block; color: var(--c-primary); font-size: .8rem; font-weight: 600; margin-top: .1rem; }
.exec-quote { font-size: .84rem; color: var(--c-muted); margin: .45rem 0 0; }
.exec-more {
  margin-top: auto; text-align: center; display: block;
  background: var(--c-bg); border: 1px dashed var(--c-primary);
  color: var(--c-primary); border-radius: var(--radius);
  padding: .7rem; font-family: var(--font-display); font-size: .9rem;
  transition: all .2s;
}
.exec-more:hover { background: var(--c-primary); color: #fff; border-style: solid; }

/* ============ Stats band ============ */
.stats-band {
  background:
    radial-gradient(1200px 400px at 85% -50%, rgba(245, 158, 11, 0.25), transparent),
    linear-gradient(120deg, var(--c-dark), var(--c-primary-deep));
  color: #fff; padding: 3.2rem 0;
  position: relative; overflow: hidden;
}
.stat-item { display: flex; flex-direction: column; align-items: center; gap: .15rem; }
.stat-icon { font-size: 1.9rem; color: var(--c-accent-soft); margin-bottom: .35rem; }
.stat-value { font-family: var(--font-display); font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 800; line-height: 1; }
.stat-suffix { font-family: var(--font-display); font-size: 1rem; color: #bae6fd; }
.stat-label { color: #bae6fd; font-size: .9rem; margin-top: .25rem; }

/* ============ News hub ============ */
.news-tabs { gap: .4rem; border: 0; flex-wrap: wrap; }
.news-tabs .nav-link {
  border: 1px solid var(--c-line); border-radius: 999px;
  color: var(--c-muted); font-weight: 500; font-size: .9rem;
  padding: .45rem 1rem; background: var(--c-surface);
}
.news-tabs .nav-link.active { background: var(--c-primary); border-color: var(--c-primary); color: #fff; }
.news-tab-content { margin-top: 1.1rem; }
.news-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .6rem; }
.news-list a {
  display: flex; align-items: center; gap: .95rem;
  background: var(--c-surface); border: 1px solid var(--c-line);
  border-radius: var(--radius-sm); padding: .75rem .95rem;
  color: var(--c-text); transition: all .2s;
}
.news-list a:hover { border-color: var(--c-primary); box-shadow: var(--shadow-sm); transform: translateX(4px); }
.news-date-chip {
  flex: 0 0 58px; text-align: center;
  background: var(--c-bg); border-radius: var(--radius-sm);
  padding: .35rem .2rem; line-height: 1.15;
}
.news-date-chip strong { display: block; font-family: var(--font-display); font-size: 1.2rem; color: var(--c-primary); }
.news-date-chip small { font-size: .68rem; color: var(--c-muted); }
.news-list-body { min-width: 0; }
.news-list-title {
  display: block; font-weight: 500; font-size: .95rem;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.news-list-meta { font-size: .76rem; color: var(--c-muted); }
.news-go { margin-left: auto; color: var(--c-line); transition: color .2s; }
.news-list a:hover .news-go { color: var(--c-primary); }
.news-list.compact .news-list-title { white-space: normal; font-size: .88rem; }

/* ============ Event panel ============ */
.event-panel {
  background: var(--c-surface); border: 1px solid var(--c-line);
  border-radius: var(--radius); padding: 1.3rem; box-shadow: var(--shadow-sm);
  height: 100%; display: flex; flex-direction: column;
}
.event-panel-title { font-size: 1.05rem; font-weight: 600; color: var(--c-dark); margin-bottom: 1rem; }
.event-list { list-style: none; margin: 0 0 1rem; padding: 0; display: flex; flex-direction: column; gap: .8rem; }
.event-list li { display: flex; gap: .8rem; align-items: flex-start; }
.event-date {
  flex: 0 0 52px; text-align: center;
  background: linear-gradient(135deg, var(--c-primary), var(--c-primary-deep));
  color: #fff; border-radius: var(--radius-sm); padding: .35rem .2rem; line-height: 1.15;
}
.event-date strong { display: block; font-family: var(--font-display); font-size: 1.15rem; }
.event-date small { font-size: .66rem; opacity: .85; }
.event-title { display: block; font-weight: 500; font-size: .9rem; line-height: 1.35; }
.event-meta { display: block; font-size: .76rem; color: var(--c-muted); margin-top: .15rem; }
.btn-event-all {
  margin-top: auto; background: var(--c-dark); color: #fff; border-radius: 999px;
  font-family: var(--font-display); font-size: .9rem; padding: .6rem 1rem;
  text-align: center; transition: background .2s;
}
.btn-event-all:hover { background: var(--c-primary); color: #fff; }
.toc-list { list-style: none; padding: 0; margin: 0; }
.toc-list a { display: block; padding: .45rem .2rem; color: var(--c-text); border-bottom: 1px dashed var(--c-line); }
.toc-list a:hover { color: var(--c-primary); }

/* ============ Gallery ============ */
.gallery-section { background: var(--c-surface); }
.gallery-swiper { padding: 0 3rem 1rem; }
.gallery-card { display: block; position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); }
.gallery-card img { width: 100%; height: 250px; object-fit: cover; transition: transform .4s ease; display: block; }
.gallery-card:hover img { transform: scale(1.06); }
.gallery-caption {
  position: absolute; inset: auto 0 0 0; color: #fff;
  background: linear-gradient(transparent, rgba(7, 41, 56, 0.9));
  padding: 1.6rem .9rem .7rem; line-height: 1.3;
}
.gallery-caption strong { display: block; font-size: .85rem; font-weight: 500; }
.gallery-caption small { font-size: .72rem; opacity: .8; }
.gallery-swiper .swiper-button-prev, .gallery-swiper .swiper-button-next {
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--c-surface); box-shadow: var(--shadow-md); color: var(--c-primary);
}
.gallery-swiper .swiper-button-prev::after, .gallery-swiper .swiper-button-next::after { font-size: 1rem; font-weight: 700; }

/* ============ Dashboard / charts ============ */
.dashboard-section { background: var(--c-bg); }
.chart-card {
  background: var(--c-surface); border: 1px solid var(--c-line);
  border-radius: var(--radius); padding: 1.2rem 1.2rem 1rem;
  box-shadow: var(--shadow-sm); height: 100%;
}
.chart-card h3 { font-size: .98rem; font-weight: 600; color: var(--c-dark); margin-bottom: .8rem; }
.chart-holder { position: relative; height: 230px; }

/* ============ Travel ============ */
.travel-section { position: relative; overflow: hidden; }
.travel-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(900px 300px at 15% 0%, rgba(245, 158, 11, 0.18), transparent),
    linear-gradient(160deg, var(--c-primary-deep), var(--c-darker));
}
.travel-section .container { position: relative; }
.travel-swiper { padding-bottom: 2.4rem; }
.travel-card {
  display: block; position: relative; border-radius: var(--radius);
  overflow: hidden; height: 380px; box-shadow: var(--shadow-md);
}
.travel-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.travel-card:hover img { transform: scale(1.08); }
.travel-card-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(transparent 40%, rgba(7, 41, 56, 0.95));
}
.travel-card-body {
  position: absolute; inset: auto 0 0 0; padding: 1.1rem; color: #fff;
  transform: translateY(8px); transition: transform .3s;
}
.travel-card:hover .travel-card-body { transform: translateY(0); }
.travel-card-body strong { display: block; font-family: var(--font-display); font-size: 1.1rem; }
.travel-card-body small { color: #cbd5e1; font-size: .8rem; }
.travel-swiper .swiper-pagination-bullet { background: #fff; opacity: .4; }
.travel-swiper .swiper-pagination-bullet-active { opacity: 1; background: var(--c-accent); }

/* ============ Links band ============ */
.links-band { background: var(--c-surface); padding: 2.2rem 0; border-top: 1px solid var(--c-line); }
.link-chip {
  display: flex; align-items: center; gap: .45rem; height: 100%;
  background: var(--c-bg); border: 1px solid var(--c-line);
  border-radius: var(--radius-sm); padding: .7rem .9rem;
  color: var(--c-text); font-size: .82rem; line-height: 1.25;
  transition: all .2s;
}
.link-chip i { color: var(--c-primary); font-size: 1.1rem; }
.link-chip:hover { border-color: var(--c-primary); color: var(--c-primary); transform: translateY(-3px); box-shadow: var(--shadow-sm); }

/* ============ Footer ============ */
.site-footer { margin-top: 0; }
.footer-wave { line-height: 0; background: var(--c-surface); }
.footer-wave svg { width: 100%; height: 70px; display: block; }
.footer-body { background: var(--c-dark); color: #cbd5e1; padding: 2.6rem 0 0; }
.footer-title { color: #fff; font-weight: 600; font-size: 1.05rem; }
.footer-text { font-size: .88rem; }
.footer-heading { color: var(--c-accent-soft); font-size: .85rem; letter-spacing: .05em; margin-bottom: .8rem; }
.footer-links { list-style: none; margin: 0; padding: 0; }
.footer-links a { display: block; color: #cbd5e1; font-size: .86rem; padding: .22rem 0; transition: color .2s, padding-left .2s; }
.footer-links a:hover { color: #fff; padding-left: .3rem; }
.footer-contact { list-style: none; margin: 0; padding: 0; font-size: .86rem; }
.footer-contact li { padding: .18rem 0; }
.footer-contact i { color: var(--c-accent); margin-right: .4rem; }
.footer-contact.dark { color: var(--c-text); }
.footer-contact.dark i { color: var(--c-primary); }
.footer-social { display: flex; gap: .5rem; margin-top: .8rem; }
.footer-social a {
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.1); color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  transition: background .2s, transform .2s;
}
.footer-social a:hover { background: var(--c-accent); color: #442c02; transform: translateY(-3px); }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  margin-top: 2rem; padding: .9rem 0; font-size: .78rem; color: #94a3b8;
}

/* ============ Back to top ============ */
.back-to-top {
  position: fixed; right: 1.2rem; bottom: 1.2rem; z-index: 1040;
  width: 46px; height: 46px; border-radius: 50%; border: 0;
  background: var(--c-primary); color: #fff; font-size: 1.2rem;
  box-shadow: var(--shadow-md);
  opacity: 0; visibility: hidden; transform: translateY(12px);
  transition: all .3s ease;
}
.back-to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { background: var(--c-accent); color: #442c02; }

/* ============ Inner pages ============ */
.page-hero {
  background:
    radial-gradient(800px 300px at 90% -80%, rgba(245, 158, 11, 0.3), transparent),
    linear-gradient(120deg, var(--c-dark), var(--c-primary));
  color: #fff; padding: 2.6rem 0 2.2rem;
}
.page-hero .breadcrumb { margin-bottom: .4rem; --bs-breadcrumb-divider-color: rgba(255,255,255,.5); }
.page-hero .breadcrumb-item a { color: rgba(255, 255, 255, 0.75); }
.page-hero .breadcrumb-item.active { color: #fff; }
.page-title { font-size: clamp(1.5rem, 3.4vw, 2.2rem); font-weight: 700; margin: 0; }
.page-subtitle { color: var(--c-accent-soft); margin: .4rem 0 0; }
.article-title { font-size: clamp(1.25rem, 2.6vw, 1.7rem); line-height: 1.4; }
.article-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .9rem; margin-top: .8rem; font-size: .85rem; color: #cbd5e1; }

.article-body {
  background: var(--c-surface); border: 1px solid var(--c-line);
  border-radius: var(--radius); padding: 1.6rem; box-shadow: var(--shadow-sm);
  line-height: 1.85;
}
.article-body h2 { font-size: 1.25rem; color: var(--c-dark); margin: 1.6rem 0 .7rem; }
.article-body h2:first-child { margin-top: 0; }
.article-cover { width: 100%; border-radius: var(--radius-sm); margin-bottom: 1.2rem; }
.vision-quote {
  border-left: 4px solid var(--c-accent); background: var(--c-bg);
  padding: 1rem 1.2rem; border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-family: var(--font-display); font-size: 1.1rem; color: var(--c-primary-deep);
}
.article-share { display: flex; align-items: center; gap: .5rem; margin-top: 1.4rem; font-size: .88rem; color: var(--c-muted); }
.article-share a, .article-share button {
  width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--c-line);
  background: var(--c-bg); color: var(--c-primary);
  display: inline-flex; align-items: center; justify-content: center; transition: all .2s;
}
.article-share a:hover, .article-share button:hover { background: var(--c-primary); color: #fff; }

.filter-chip {
  display: inline-flex; align-items: center;
  border: 1px solid var(--c-line); background: var(--c-surface);
  color: var(--c-muted); border-radius: 999px; padding: .4rem 1rem;
  font-family: var(--font-display); font-size: .88rem; transition: all .2s;
}
.filter-chip:hover { border-color: var(--c-primary); color: var(--c-primary); }
.filter-chip.active { background: var(--c-primary); border-color: var(--c-primary); color: #fff; }
.news-search {
  display: flex; align-items: center; gap: .5rem;
  background: var(--c-surface); border: 1px solid var(--c-line);
  border-radius: 999px; padding: .35rem .9rem;
}
.news-search input { border: 0; outline: 0; background: none; font-size: .9rem; width: 170px; }
.news-search i { color: var(--c-muted); }

.news-card {
  display: flex; flex-direction: column; height: 100%;
  background: var(--c-surface); border: 1px solid var(--c-line);
  border-radius: var(--radius); overflow: hidden; color: var(--c-text);
  box-shadow: var(--shadow-sm); transition: transform .25s, box-shadow .25s;
}
.news-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); color: var(--c-text); }
.news-card img { height: 185px; object-fit: cover; }
.news-card-body { padding: 1rem 1.1rem 1.2rem; display: flex; flex-direction: column; gap: .45rem; }
.news-card h3 { font-size: 1rem; font-weight: 600; line-height: 1.45; margin: 0; }
.news-card p { font-size: .85rem; color: var(--c-muted); margin: 0; }
.news-card .featured-meta { color: var(--c-muted); margin-top: auto; }

.travel-detail-card {
  background: var(--c-surface); border: 1px solid var(--c-line);
  border-radius: var(--radius); overflow: hidden; height: 100%;
  box-shadow: var(--shadow-sm); transition: transform .25s, box-shadow .25s;
}
.travel-detail-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.travel-detail-card img { width: 100%; height: 210px; object-fit: cover; }
.travel-detail-body { padding: 1.1rem 1.2rem 1.3rem; }
.travel-detail-body h3 { font-size: 1.1rem; font-weight: 600; color: var(--c-dark); }
.travel-detail-body p { font-size: .88rem; color: var(--c-muted); margin: 0; }

.contact-card {
  background: var(--c-surface); border: 1px solid var(--c-line);
  border-radius: var(--radius); padding: 1.5rem; box-shadow: var(--shadow-sm); height: 100%;
}
.contact-card h3 { font-size: 1.1rem; color: var(--c-dark); }
.map-holder { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-md); height: 100%; min-height: 380px; }
.map-holder iframe { width: 100%; height: 100%; min-height: 380px; border: 0; }

.empty-state { text-align: center; color: var(--c-muted); padding: 3rem 1rem; }
.empty-state i { font-size: 3rem; color: var(--c-line); }
.empty-state.big { padding: 5rem 1rem; }
.empty-state.big i { font-size: 4.5rem; color: var(--c-primary); opacity: .35; }

/* ============ Responsive tweaks ============ */
@media (max-width: 991px) {
  .hero { min-height: 78vh; }
  .featured-card img { height: 340px; }
  .gallery-swiper { padding: 0 1rem 1rem; }
}
@media (max-width: 575px) {
  .hero-content { padding: 4.5rem 0 6rem; }
  .brand-text strong { font-size: .9rem; white-space: normal; line-height: 1.2; }
  .brand-text small { display: none; }
  .featured-card img { height: 300px; }
  .featured-card-body { padding: 1.4rem 1rem 2rem; }
  .travel-card { height: 320px; }
  .qs-card { padding: .85rem .9rem .8rem; }
  .qs-desc { display: none; }
  .section { padding: 2.4rem 0; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-scroll-hint { animation: none; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
