:root {
  --bg-gradient: linear-gradient(135deg, #f5f7fa 0%, #e4e8f0 50%, #dce1eb 100%);
  --header-gradient: linear-gradient(135deg, #070041 0%, #431b7e 50%, #090993 100%);
  --footer-gradient: linear-gradient(135deg, #8a009c 0%, #8f2069 50%, #530071 100%);
  --hero-gradient: linear-gradient(135deg, #1a1a2e 0%, #16213e 40%, #0f3460 70%, #533483 100%);
  --btn-primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --btn-primary-hover: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
  --btn-accent-gradient: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  --btn-accent-hover: linear-gradient(135deg, #f5576c 0%, #f093fb 100%);
  --btn-outline-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --card-bg: rgba(255, 255, 255, 0.88);
  --card-border: rgba(255, 255, 255, 0.4);
  --text-primary: #2d3436;
  --text-secondary: #636e72;
  --text-light: #ffffff;
  --font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  --shadow-sm: 0 2px 12px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 24px rgba(0, 0, 0, 0.12);
  --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.16);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 50px;
  --transition: all 0.3s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family);
  background: var(--bg-gradient);
  background-attachment: fixed;
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  color: #667eea;
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: #764ba2;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

::selection {
  color: #999;
  background-color: #000;
}

/* ===== Language Selector ===== */
.lang-selector {
  display: flex;
  gap: 4px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 4px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.lang-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 7px 13px;
  border: none;
  border-radius: var(--radius-full);
  cursor: pointer;
  font-size: 0.78rem;
  /* font-weight: 600; */
  background: transparent;
  /* color: var(--text-primary); */
  color: #fff;
  transition: var(--transition);
  text-decoration: none;
  white-space: nowrap;
}

.lang-btn:hover {
  background: rgba(102, 126, 234, 0.1);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.15);
}

.lang-btn.active {
  background: var(--btn-primary-gradient);
  color: var(--text-light);
  box-shadow: 0 4px 14px rgba(102, 126, 234, 0.35);
}

.lang-btn .flag {
  font-size: 1.1rem;
  line-height: 1;
}

.lang-btn .label {
  font-size: 0.72rem;
  letter-spacing: 0.3px;
  text-transform: uppercase;
}

/* ===== Header ===== */
header {
  background: var(--header-gradient);
  position: relative;
  z-index: 1000;
  box-shadow: 0 2px 24px rgba(15, 12, 41, 0.35);
}
header .logo-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  transition: opacity 0.3s;
}

header .logo-link:hover {
  opacity: 0.85;
}

header .logo-img {
  height: 48px;
  width: auto;
  flex-shrink: 0;
}

header .logo-text {
  font-size: 2rem;
  font-weight: 800;
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 80%, #f093fb 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: 1px;
  text-shadow: 0 0 30px rgba(102, 126, 234, 0.3);
  font-family: 'Georgia', serif;
}

header .logo span {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.6);
  display: block;
  font-weight: 300;
  letter-spacing: 0.3px;
}

.header-top {
  padding: 1.1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

/* ===== Navigation ===== */
/* Left and right fade */
nav {
  position: sticky;
  top: 0;
  z-index: 101;
}

nav::before,
nav::after {
    content: "";
    top: 0;
    width: 32px;
    height: 100%;
    pointer-events: none;
    z-index: 102; /* above */
    display: block;
}
nav.is-scrollable::before {
  position: absolute;
  left: 0;
  background: linear-gradient(to right, rgba(255,255,255, 0.3), transparent);
}
nav.is-scrollable::after {
  position: absolute;
  right: 0;
  background: linear-gradient(to left, rgba(255,255,255, 0.3), transparent);
}
nav.is-scrollable ul {
  /* scrollable hint by animation */
  animation: hint-scroll 1.5s ease 0.5s; /* duration length and delay start */
}
@keyframes hint-scroll {
    0%   { transform: translateX(0); }
    35%  { transform: translateX(-24px); }
    100% { transform: translateX(0); }
}

.main-nav {
  background: linear-gradient(90deg, rgba(15, 12, 41, 1) 0%, rgba(48, 43, 99, 1) 100%);
  padding: 0 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  width: 100%;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.main-nav ul {
  list-style: none;
  display: flex;
  flex-wrap: nowrap;
  gap: 0;
}

.main-nav::-webkit-scrollbar {
  display: none;
}

.main-nav ul li a {
  display: block;
  padding: 0.75rem 1.25rem;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 500;
  text-decoration: none;
  border-bottom: 5px solid transparent;
  transition: var(--transition);
  font-size: 0.88rem;
  letter-spacing: 0.3px;
  white-space: nowrap;
}

.main-nav ul li a:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  text-decoration: none;
}

.main-nav ul li a.active {
  color: #fff;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.15);
  border-bottom: 5px solid #fff;
  text-decoration: none;
}

/* ===== Header & Nav Gradient Per Active Tab (10 themes) ===== */

/* 1 - Royal Purple (Home default) */
body:has(.main-nav ul li:nth-child(1) a.active) header,
body:has(.main-nav ul li:nth-child(1) a.active) .hero {
  background: linear-gradient(135deg, #070041 0%, #431b7e 50%, #090993 100%);
}
body:has(.main-nav ul li:nth-child(1) a.active) .main-nav {
  background: linear-gradient(90deg, rgba(7,0,65,1) 0%, rgba(67,27,126,1) 50%, rgba(9,9,147,1) 100%);
}
body:has(.main-nav ul li:nth-child(1) a.active) .main-nav ul li a.active {
  border-bottom-color: #b388ff;
}

/* 2 - Sunset Coral */
body:has(.main-nav ul li:nth-child(2) a.active) header,
body:has(.main-nav ul li:nth-child(2) a.active) .hero {
  background: linear-gradient(135deg, #e74c3c 0%, #e67e22 50%, #f1c40f 100%);
}
body:has(.main-nav ul li:nth-child(2) a.active) .main-nav {
  background: linear-gradient(90deg, rgba(192,57,43,1) 0%, rgba(211,84,0,1) 50%, rgba(243,156,18,1) 100%);
}
body:has(.main-nav ul li:nth-child(2) a.active) .main-nav ul li a.active {
  border-bottom-color: #ffcc02;
}

/* 3 - Ocean Blue */
body:has(.main-nav ul li:nth-child(3) a.active) header,
body:has(.main-nav ul li:nth-child(3) a.active) .hero {
  background: linear-gradient(135deg, #0c2340 0%, #0077b6 50%, #00b4d8 100%);
}
body:has(.main-nav ul li:nth-child(3) a.active) .main-nav {
  background: linear-gradient(90deg, rgba(12,35,64,1) 0%, rgba(0,119,182,1) 50%, rgba(0,180,216,1) 100%);
}
body:has(.main-nav ul li:nth-child(3) a.active) .main-nav ul li a.active {
  border-bottom-color: #90e0ef;
}

/* 4 - Forest Green */
body:has(.main-nav ul li:nth-child(4) a.active) header,
body:has(.main-nav ul li:nth-child(4) a.active) .hero {
  background: linear-gradient(135deg, #0b3d0b 0%, #1b7a21 50%, #27ae60 100%);
}
body:has(.main-nav ul li:nth-child(4) a.active) .main-nav {
  background: linear-gradient(90deg, rgba(11,61,11,1) 0%, rgba(27,122,33,1) 50%, rgba(39,174,96,1) 100%);
}
body:has(.main-nav ul li:nth-child(4) a.active) .main-nav ul li a.active {
  border-bottom-color: #a9dfbf;
}

/* 5 - Berry Magenta */
body:has(.main-nav ul li:nth-child(5) a.active) header,
body:has(.main-nav ul li:nth-child(5) a.active) .hero {
  background: linear-gradient(135deg, #4a0e4e 0%, #c2185b 50%, #e91e63 100%);
}
body:has(.main-nav ul li:nth-child(5) a.active) .main-nav {
  background: linear-gradient(90deg, rgba(74,14,78,1) 0%, rgba(194,24,91,1) 50%, rgba(233,30,99,1) 100%);
}
body:has(.main-nav ul li:nth-child(5) a.active) .main-nav ul li a.active {
  border-bottom-color: #f48fb1;
}

/* 6 - Amber Gold */
body:has(.main-nav ul li:nth-child(6) a.active) header,
body:has(.main-nav ul li:nth-child(6) a.active) .hero {
  background: linear-gradient(135deg, #5d4037 0%, #bf8c00 50%, #f5a623 100%);
}
body:has(.main-nav ul li:nth-child(6) a.active) .main-nav {
  background: linear-gradient(90deg, rgba(93,64,55,1) 0%, rgba(191,140,0,1) 50%, rgba(245,166,35,1) 100%);
}
body:has(.main-nav ul li:nth-child(6) a.active) .main-nav ul li a.active {
  border-bottom-color: #ffd54f;
}

/* 7 - Steel Blue */
body:has(.main-nav ul li:nth-child(7) a.active) header,
body:has(.main-nav ul li:nth-child(7) a.active) .hero {
  background: linear-gradient(135deg, #141e30 0%, #243b55 50%, #4a6fa5 100%);
}
body:has(.main-nav ul li:nth-child(7) a.active) .main-nav {
  background: linear-gradient(90deg, rgba(20,30,48,1) 0%, rgba(36,59,85,1) 50%, rgba(74,111,165,1) 100%);
}
body:has(.main-nav ul li:nth-child(7) a.active) .main-nav ul li a.active {
  border-bottom-color: #a8c6df;
}

/* 8 - Ruby Red */
body:has(.main-nav ul li:nth-child(8) a.active) header,
body:has(.main-nav ul li:nth-child(8) a.active) .hero {
  background: linear-gradient(135deg, #751530 0%, #c0392b 50%, #e74c3c 100%);
}
body:has(.main-nav ul li:nth-child(8) a.active) .main-nav {
  background: linear-gradient(90deg, rgba(117,21,48,1) 0%, rgba(192,57,43,1) 50%, rgba(231,76,60,1) 100%);
}
body:has(.main-nav ul li:nth-child(8) a.active) .main-nav ul li a.active {
  border-bottom-color: #ef9a9a;
}

/* 9 - Mint Teal */
body:has(.main-nav ul li:nth-child(9) a.active) header,
body:has(.main-nav ul li:nth-child(9) a.active) .hero {
  background: linear-gradient(135deg, #004d40 0%, #00897b 50%, #4db6ac 100%);
}
body:has(.main-nav ul li:nth-child(9) a.active) .main-nav {
  background: linear-gradient(90deg, rgba(0,77,64,1) 0%, rgba(0,137,123,1) 50%, rgba(77,182,172,1) 100%);
}
body:has(.main-nav ul li:nth-child(9) a.active) .main-nav ul li a.active {
  border-bottom-color: #80cbc4;
}

/* 10 - Deep Violet */
body:has(.main-nav ul li:nth-child(10) a.active) header,
body:has(.main-nav ul li:nth-child(10) a.active) .hero {
  background: linear-gradient(135deg, #1a0533 0%, #6a1b9a 50%, #ab47bc 100%);
}
body:has(.main-nav ul li:nth-child(10) a.active) .main-nav {
  background: linear-gradient(90deg, rgba(26,5,51,1) 0%, rgba(106,27,154,1) 50%, rgba(171,71,188,1) 100%);
}
body:has(.main-nav ul li:nth-child(10) a.active) .main-nav ul li a.active {
  border-bottom-color: #ce93d8;
}

/* ===== Main Content ===== */
main {
  flex: 1;
  width: 1440px;
  max-width: 100vw;
  margin: 1.0rem auto;
  padding: 1.0rem;
}

/* ===== Glassmorphism Cards ===== */
.card {
  background: var(--card-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: var(--radius-md);
  padding: 0.5rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--card-border);
  transition: box-shadow 0.4s ease, transform 0.4s ease;
}

.card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.card h1 {
  background: var(--btn-primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-size: 2rem;
  margin-bottom: 1rem;
  line-height: 1.3;
}

.card h2 {
  background: var(--btn-primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-size: 1.4rem;
  margin-bottom: 0.75rem;
}

.card h3 {
  color: #302b63;
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.card p {
  margin-bottom: 1rem;
  color: var(--text-secondary);
}

.card ul {
  margin: 0.5rem 0 1rem 1.5rem;
  color: var(--text-secondary);
}

.card ul li {
  margin-bottom: 0.4rem;
}

/* ===== Hero Section ===== */
.hero {
  background: var(--hero-gradient);
  color: var(--text-light);
  text-align: center;
  padding: 5rem 2rem;
  border-radius: var(--radius-md);
  margin-bottom: 2rem;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(102, 126, 234, 0.15) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 50%, rgba(118, 75, 162, 0.15) 0%, transparent 60%),
    radial-gradient(ellipse at 50% 0%, rgba(240, 147, 251, 0.1) 0%, transparent 50%);
  animation: heroShimmer 10s ease-in-out infinite alternate;
}

@keyframes heroShimmer {
  0% {
    opacity: 0.4;
    transform: scale(1);
  }
  100% {
    opacity: 0.8;
    transform: scale(1.08);
  }
}

.hero h1 {
  font-size: 2.6rem;
  margin-bottom: 1rem;
  color: var(--text-light);
  position: relative;
  z-index: 1;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.2);
}

.hero p {
  font-size: 1.15rem;
  opacity: 0.92;
  max-width: 600px;
  margin: 0 auto 1.5rem;
  position: relative;
  z-index: 1;
  color: rgba(255, 255, 255, 0.85);
}

/* ===== Buttons ===== */
.btn {
  display: inline-block;
  padding: 0.72rem 1.8rem;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  border: none;
  text-decoration: none;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  letter-spacing: 0.3px;

  color: white;
  background: var(--btn-primary-gradient);
}

.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.18);
  text-decoration: none;
}

.btn:active {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--btn-primary-gradient);
  color: var(--text-light);
}

.btn-primary:hover {
  background: var(--btn-primary-hover);
  color: var(--text-light);
}

.btn-accent {
  background: var(--btn-accent-gradient);
  color: var(--text-light);
}

.btn-accent:hover {
  background: var(--btn-accent-hover);
  color: var(--text-light);
}

.btn-outline {
  /* color: #667eea;
  background: transparent; */
  border: 2px solid #667eea;
  position: relative;
}

.btn-outline::before {
  display: none;
}

.btn-outline:hover {
  background: #667eea;
  color: #fff;
  border-color: #667eea;
}

.btn-outline:hover::before {
  display: none;
}

/* ===== Tour Cards Grid ===== */
.tour-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.tour-card {
  display: block;
  color: inherit;
  text-decoration: none;
  background: var(--card-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--card-border);
  transition: box-shadow 0.4s ease, transform 0.4s ease;
}

.tour-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-6px);
  text-decoration: none;
  color: inherit;
}

.tour-card .tour-body {
  padding: 1.25rem;
}

.tour-card .tour-body h3 {
  color: #302b63;
  font-size: 1.15rem;
  margin-bottom: 0.4rem;
  transition: var(--transition);
}

.tour-card:hover .tour-body h3 {
  background: var(--btn-primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.tour-card .tour-body .meta {
  font-size: 0.82rem;
  color: var(--text-secondary);
  opacity: 0.75;
  margin-bottom: 0.6rem;
}

.tour-card .tour-body p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
}

.tour-card .tour-body .price {
  font-size: 1.3rem;
  font-weight: 700;
  background: var(--btn-accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ===== Tour Detail ===== */
.tour-detail .info-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-bottom: 1rem;
  font-size: 0.95rem;
}

.tour-detail .info-row .label {
  font-weight: 600;
  background: var(--btn-primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ===== News Grid ===== */
.news-list .news-item {
  display: block;
  text-decoration: none;
  color: inherit;
  padding: 1.25rem 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  cursor: pointer;
}

.news-list .news-item:last-child {
  border-bottom: none;
}

.news-list .news-item h3 {
  background: var(--btn-primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-decoration: none;
  transition: var(--transition);
}

.news-list .news-item:hover h3 {
  opacity: 0.8;
}

.news-list .news-item .date {
  font-size: 0.82rem;
  color: var(--text-secondary);
  opacity: 0.6;
  margin-bottom: 0.35rem;
}

/* ===== Forms ===== */
.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.35rem;
  background: var(--btn-primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.72rem 0.9rem;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: var(--radius-sm);
  font-family: var(--font-family);
  font-size: 0.95rem;
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: border-color 0.3s, box-shadow 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: transparent;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.25);
  background: #fff;
}

.form-group textarea {
  min-height: 120px;
  resize: vertical;
}

/* ===== Footer ===== */
footer {
  background: var(--footer-gradient);
  color: rgba(255, 255, 255, 0.75);
  padding: 3rem 2rem 1.5rem;
  margin-top: auto;
  font-size: 0.88rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}


.footer-inner {
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.0rem;
}
.footer-inner > *:nth-child(1) {
  text-align: left;
}
.footer-inner > *:nth-child(2) {
  text-align: right;
}

.footer-col h4 {
  font-size: 1.3rem;
  font-weight: 700;
  margin: 0 0 0.5rem;
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.footer-col h5 {
  font-size: 0.95rem;
  font-weight: 600;
  color: #fff;
  margin: 0 0 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.footer-col p {
  margin: 0;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.55);
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-col ul li {
  margin-bottom: 0.4rem;
}

.footer-col ul li a {
  color: rgba(255, 255, 255, 0.7);
  transition: var(--transition);
  text-decoration: none;
}

.footer-col ul li a:hover {
  color: #fff;
  padding-left: 4px;
}

.footer-bottom {
  max-width: 1440px;
  margin: 2rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  text-align: center;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.45);
}

.footer-bottom p {
  margin: 0.75rem 0 0;
}

.footer-lang {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.footer-lang-label {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.5);
  font-weight: 500;
}

/* ===== Shared grid/card ===== */
.item-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.item-card {
  display: block;
  text-decoration: none;
  color: inherit;
  background: var(--card-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--card-border);
  transition: box-shadow 0.4s ease, transform 0.4s ease;
}

.item-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-6px);
}

.item-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.item-card .item-body {
  padding: 1.25rem;
}

.item-card .item-body h3 {
  color: #302b63;
  text-decoration: none;
  transition: var(--transition);
}

.item-card:hover .item-body h3 {
  background: var(--btn-primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.item-card .item-body .meta {
  font-size: 0.82rem;
  color: var(--text-secondary);
  opacity: 0.75;
  margin-bottom: 0.5rem;
}

/* ===== News list with thumbnail ===== */
a.news-item-thumb {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

.news-item-thumb .thumb {
  flex-shrink: 0;
  width: 120px;
  height: 80px;
  object-fit: cover;
  border-radius: var(--radius-sm);
}

.news-item-thumb .thumb-body {
  flex: 1;
  min-width: 0;
}

/* ===== Slideshow ===== */
.slideshow {
  position: relative;
  width: 100%;
  margin-bottom: 1.5rem;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #000;
  box-shadow: var(--shadow-md);
}

.slideshow-track {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.slideshow-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.6s ease;
  z-index: 0;
}

.slideshow-slide.active {
  opacity: 1;
  z-index: 1;
}

.slideshow-slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.slideshow-caption {
  padding: 0.7rem 1rem;
  background: linear-gradient(135deg, rgba(15, 12, 41, 0.9) 0%, rgba(48, 43, 99, 0.9) 100%);
  color: var(--text-light);
  font-size: 0.88rem;
  text-align: center;
}

.slideshow-prev,
.slideshow-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #333;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 1.4rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s, transform 0.3s;
  line-height: 1;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

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

.slideshow-prev { left: 12px; }
.slideshow-next { right: 12px; }

.slideshow-prev:hover,
.slideshow-next:hover {
  background: #fff;
  transform: translateY(-50%) scale(1.1);
}

/* ===== Slideshow Thumbnails ===== */
.slideshow-thumbs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  padding: 10px;
  background: linear-gradient(135deg, rgba(15, 12, 41, 0.95) 0%, rgba(48, 43, 99, 0.95) 100%);
}

.slideshow-thumb {
  flex: 0 1 auto;
  width: 100px;
  max-width: 200px;
  aspect-ratio: 16 / 10;
  border: 2px solid transparent;
  border-radius: 6px;
  overflow: hidden;
  cursor: pointer;
  padding: 0;
  background: none;
  opacity: 0.5;
  transition: opacity 0.3s, border-color 0.3s, transform 0.2s;
}

.slideshow-thumb:hover {
  opacity: 0.8;
  transform: scale(1.05);
}

.slideshow-thumb.active {
  opacity: 1;
  border-color: #667eea;
  box-shadow: 0 0 8px rgba(102, 126, 234, 0.5);
}

.slideshow-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

/* ===== Utility ===== */
.text-center {
  text-align: center;
}

.mt-1 {
  margin-top: 1rem;
}

.mt-2 {
  margin-top: 2rem;
}

.mb-1 {
  margin-bottom: 1rem;
}

.mb-2 {
  margin-bottom: 2rem;
}

.success-msg {
  background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
  color: #155724;
  padding: 1rem 1.25rem;
  border-radius: var(--radius-sm);
  margin-bottom: 1rem;
  border: 1px solid rgba(195, 230, 203, 0.5);
}

.error-msg {
  background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
  color: #721c24;
  padding: 1rem 1.25rem;
  border-radius: var(--radius-sm);
  margin-bottom: 1rem;
  border: 1px solid rgba(245, 198, 203, 0.5);
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  header {
    box-shadow: none;
  }

  .header-top {
    /* flex-direction: column; */
    text-align: center;
    /* padding: 1rem; */
  }

  .main-nav {
    padding: 0;
  }

  .main-nav ul {
    justify-content: flex-start;
  }

  /* .main-nav ul li a {
    padding: 0.6rem 0.9rem;
  } */

  /* Mobile per-tab nav with scroll shadows */
  body:has(.main-nav ul li:nth-child(1) a.active) .main-nav {
    background:
      linear-gradient(90deg, rgba(7,0,65,1) 0%, rgba(67,27,126,1) 50%, rgba(9,9,147,1) 100%),
      linear-gradient(to right, rgba(0,0,0,0.3) 0%, transparent 24px),
      linear-gradient(to left, rgba(0,0,0,0.3) 0%, transparent 24px);
    background-position: left center, left center, right center;
    background-repeat: no-repeat;
    background-size: 100% 100%, 24px 100%, 24px 100%;
    background-attachment: local, scroll, scroll;
  }
  body:has(.main-nav ul li:nth-child(2) a.active) .main-nav {
    background:
      linear-gradient(90deg, rgba(192,57,43,1) 0%, rgba(211,84,0,1) 50%, rgba(243,156,18,1) 100%),
      linear-gradient(to right, rgba(0,0,0,0.3) 0%, transparent 24px),
      linear-gradient(to left, rgba(0,0,0,0.3) 0%, transparent 24px);
    background-position: left center, left center, right center;
    background-repeat: no-repeat;
    background-size: 100% 100%, 24px 100%, 24px 100%;
    background-attachment: local, scroll, scroll;
  }
  body:has(.main-nav ul li:nth-child(3) a.active) .main-nav {
    background:
      linear-gradient(90deg, rgba(12,35,64,1) 0%, rgba(0,119,182,1) 50%, rgba(0,180,216,1) 100%),
      linear-gradient(to right, rgba(0,0,0,0.3) 0%, transparent 24px),
      linear-gradient(to left, rgba(0,0,0,0.3) 0%, transparent 24px);
    background-position: left center, left center, right center;
    background-repeat: no-repeat;
    background-size: 100% 100%, 24px 100%, 24px 100%;
    background-attachment: local, scroll, scroll;
  }
  body:has(.main-nav ul li:nth-child(4) a.active) .main-nav {
    background:
      linear-gradient(90deg, rgba(11,61,11,1) 0%, rgba(27,122,33,1) 50%, rgba(39,174,96,1) 100%),
      linear-gradient(to right, rgba(0,0,0,0.3) 0%, transparent 24px),
      linear-gradient(to left, rgba(0,0,0,0.3) 0%, transparent 24px);
    background-position: left center, left center, right center;
    background-repeat: no-repeat;
    background-size: 100% 100%, 24px 100%, 24px 100%;
    background-attachment: local, scroll, scroll;
  }
  body:has(.main-nav ul li:nth-child(5) a.active) .main-nav {
    background:
      linear-gradient(90deg, rgba(74,14,78,1) 0%, rgba(194,24,91,1) 50%, rgba(233,30,99,1) 100%),
      linear-gradient(to right, rgba(0,0,0,0.3) 0%, transparent 24px),
      linear-gradient(to left, rgba(0,0,0,0.3) 0%, transparent 24px);
    background-position: left center, left center, right center;
    background-repeat: no-repeat;
    background-size: 100% 100%, 24px 100%, 24px 100%;
    background-attachment: local, scroll, scroll;
  }
  body:has(.main-nav ul li:nth-child(6) a.active) .main-nav {
    background:
      linear-gradient(90deg, rgba(93,64,55,1) 0%, rgba(191,140,0,1) 50%, rgba(245,166,35,1) 100%),
      linear-gradient(to right, rgba(0,0,0,0.3) 0%, transparent 24px),
      linear-gradient(to left, rgba(0,0,0,0.3) 0%, transparent 24px);
    background-position: left center, left center, right center;
    background-repeat: no-repeat;
    background-size: 100% 100%, 24px 100%, 24px 100%;
    background-attachment: local, scroll, scroll;
  }
  body:has(.main-nav ul li:nth-child(7) a.active) .main-nav {
    background:
      linear-gradient(90deg, rgba(20,30,48,1) 0%, rgba(36,59,85,1) 50%, rgba(74,111,165,1) 100%),
      linear-gradient(to right, rgba(0,0,0,0.3) 0%, transparent 24px),
      linear-gradient(to left, rgba(0,0,0,0.3) 0%, transparent 24px);
    background-position: left center, left center, right center;
    background-repeat: no-repeat;
    background-size: 100% 100%, 24px 100%, 24px 100%;
    background-attachment: local, scroll, scroll;
  }
  body:has(.main-nav ul li:nth-child(8) a.active) .main-nav {
    background:
      linear-gradient(90deg, rgba(117,21,48,1) 0%, rgba(192,57,43,1) 50%, rgba(231,76,60,1) 100%),
      linear-gradient(to right, rgba(0,0,0,0.3) 0%, transparent 24px),
      linear-gradient(to left, rgba(0,0,0,0.3) 0%, transparent 24px);
    background-position: left center, left center, right center;
    background-repeat: no-repeat;
    background-size: 100% 100%, 24px 100%, 24px 100%;
    background-attachment: local, scroll, scroll;
  }
  body:has(.main-nav ul li:nth-child(9) a.active) .main-nav {
    background:
      linear-gradient(90deg, rgba(0,77,64,1) 0%, rgba(0,137,123,1) 50%, rgba(77,182,172,1) 100%),
      linear-gradient(to right, rgba(0,0,0,0.3) 0%, transparent 24px),
      linear-gradient(to left, rgba(0,0,0,0.3) 0%, transparent 24px);
    background-position: left center, left center, right center;
    background-repeat: no-repeat;
    background-size: 100% 100%, 24px 100%, 24px 100%;
    background-attachment: local, scroll, scroll;
  }
  body:has(.main-nav ul li:nth-child(10) a.active) .main-nav {
    background:
      linear-gradient(90deg, rgba(26,5,51,1) 0%, rgba(106,27,154,1) 50%, rgba(171,71,188,1) 100%),
      linear-gradient(to right, rgba(0,0,0,0.3) 0%, transparent 24px),
      linear-gradient(to left, rgba(0,0,0,0.3) 0%, transparent 24px);
    background-position: left center, left center, right center;
    background-repeat: no-repeat;
    background-size: 100% 100%, 24px 100%, 24px 100%;
    background-attachment: local, scroll, scroll;
  }

  .hero {
    padding: 3rem 1.25rem;
  }

  .hero h1 {
    font-size: 1.8rem;
  }

  .tour-grid {
    grid-template-columns: 1fr;
  }

  .tour-detail .info-row {
    flex-direction: column;
    gap: 0.5rem;
  }

  .news-item-thumb {
    flex-direction: column;
  }

  .news-item-thumb .thumb {
    width: 100%;
    height: 160px;
  }

  .lang-btn {
    padding: 5px 9px;
    font-size: 0.7rem;
  }

  .lang-btn .label {
    display: none;
  }

  .footer-lang {
    flex-direction: column;
    gap: 0.4rem;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .footer-inner > * {
    text-align: center !important;
  }
  .footer-col:first-child {
    grid-column: 1 / -1;
  }

  .slideshow-thumb {
    width: 80px;
  }
}

@media (max-width: 480px) {

  .header-top {
    justify-content: center;
  }

  .btn {
    padding: 0.6rem 1.4rem;
    font-size: 0.84rem;
  }

  img.sub-logo-img {
    display: none;
  }
}

/* ===== Animations ===== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.card,
.hero {
  animation: fadeInUp 0.6s ease forwards;
}

.tour-card,
.item-card {
  animation: fadeInUp 0.6s ease forwards;
}
.tour-card::hover {
  transform: translateY(10px);
}

.tour-card:nth-child(2),
.item-card:nth-child(2) {
  animation-delay: 0.1s;
}

.tour-card:nth-child(3),
.item-card:nth-child(3) {
  animation-delay: 0.2s;
}

img.social-media-video-thumb {
  width: 100%;
  height: auto;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
}

.social-media-videos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}