:root {
  --primary: #FF6B42;
  --primary-hover: #FF5722;
  --secondary: #3B4F7A;
  --bg-color: #F5F3EF;
  --surface: #FFFFFF;
  --surface-2: #FBF9F6;
  --text-dark: #2D3748;
  --text-muted: #718096;
  --border: #E8E3DB;
  --shadow-sm: 0 2px 8px rgb(0 0 0 / 0.06);
  --shadow-md: 0 8px 24px rgb(0 0 0 / 0.08);
  --shadow-lg: 0 16px 40px rgb(0 0 0 / 0.1);
  --radius-lg: 20px;
  --radius-md: 14px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --accent-warm: #FFF4ED;
  --accent-blue: #EEF2FF;
}

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

body {
  font-family: 'Noto Sans', 'Noto Sans JP', 'Noto Sans KR', 'Noto Sans SC', 'Noto Sans Arabic', system-ui, sans-serif;
  background-color: var(--bg-color);
  color: var(--text-dark);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4 {

  font-weight: 800;
  color: var(--secondary);
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

.tr-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* HEADER */
.tr-header {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
  direction: ltr;
  /* always LTR regardless of page RTL (Arabic) */
  unicode-bidi: isolate;
}

.logo-img {
  height: 44px;
  width: auto;
  display: block;
  transition: filter 0.2s ease, transform 0.2s ease;
}

.logo:hover .logo-img {
  filter: brightness(1.1);
  transform: scale(1.02);
}

.main-nav a {
  margin: 0 16px;
  font-weight: 500;
  color: var(--text-muted);
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--primary);
}

/* ── Language Switcher ─────────────────────────────────── */
.lang-switcher {
  position: relative;
  margin-left: 8px;
}

.lang-trigger {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: 20px;
  border: 1.5px solid var(--border-color, #e2e8f0);
  background: var(--surface, #fff);
  color: var(--text-color, #1a202c);
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  white-space: nowrap;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.lang-trigger:hover {
  background: var(--secondary-background, #f1f5f9);
  border-color: var(--primary);
  color: var(--primary);
  box-shadow: 0 2px 6px rgba(90, 175, 190, 0.2);
}

.lang-code {
  color: inherit;
  font-weight: 700;
  letter-spacing: 0.02em;
}

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

.lang-chevron {
  transition: transform 0.2s ease;
  opacity: 0.8;
}

.lang-open .lang-chevron {
  transform: rotate(180deg);
}

.lang-menu {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 200px;
  background: var(--surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md, 12px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  list-style: none;
  padding: 6px;
  margin: 0;
  z-index: 1000;
  animation: langDropIn 0.15s ease;
}

@keyframes langDropIn {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }

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

.lang-open .lang-menu {
  display: block;
}

.lang-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 8px;
  text-decoration: none;
  color: var(--text-color);
  font-size: 0.9rem;
  font-weight: 500;
  transition: background 0.15s ease;
}

.lang-option:hover {
  background: var(--secondary-background, #f1f5f9);
  color: var(--primary);
}

.lang-option--active {
  background: color-mix(in srgb, var(--primary) 10%, transparent);
  color: var(--primary);
  font-weight: 700;
}

.lang-option-label {
  flex: 1;
}

.lang-check {
  font-size: 0.85rem;
  color: var(--primary);
  font-weight: 700;
}

/* HERO SECTION */
.hero {
  background: linear-gradient(135deg, #3A8D9E 0%, #5AAFBE 50%, #8CCAD5 100%);
  color: white;
  padding: 100px 0 90px;
  text-align: center;
  position: relative;
  overflow: hidden;
  border-radius: 0 0 40px 40px;
  margin-bottom: 40px;
}

.inner-hero {
  padding: 60px 0 50px;
}

.hero::before {
  content: '';
  position: absolute;
  top: -40%;
  right: -15%;
  width: 500px;
  height: 500px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 50%;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -25%;
  left: -8%;
  width: 350px;
  height: 350px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 50%;
}

.hero h1 {
  color: white;
  font-size: 3.5rem;
  margin-bottom: 24px;
  letter-spacing: -1px;
  position: relative;
  z-index: 1;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.15);
}

.search-bar {
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  background: var(--surface);
  border-radius: 50px;
  padding: 8px;
  box-shadow: var(--shadow-lg);
}

.search-bar input {
  flex: 1;
  border: none;
  padding: 16px 24px;
  border-radius: 50px;
  font-size: 1.1rem;
  font-family: inherit;
  outline: none;
}

.search-bar button {
  background: var(--primary);
  color: white;
  border: none;
  padding: 16px 32px;
  border-radius: 50px;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
}

.search-bar button:hover {
  background: var(--primary-hover);
}

/* GRID CARDS (Used in Home, Country, Category) */
.section-title {
  font-size: 2rem;
  margin: 64px 0 32px;
  text-align: left;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
  margin-bottom: 64px;
}

.card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  border: 1px solid transparent;
  display: flex;
  flex-direction: column;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: #5AAFBE;
}

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

.card-body {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.card-category {
  font-size: 0.8rem;
  color: var(--primary);
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.card-title {
  font-size: 1.25rem;
  margin-bottom: 12px;
  color: var(--text-dark);
  line-height: 1.4;
}

.card-footer {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--border);
  padding-top: 16px;
}

.price {
  font-weight: 700;
  color: var(--text-dark);
  font-size: 1.1rem;
}

.score {
  background: #FEF3C7;
  color: #D97706;
  padding: 4px 8px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.9rem;
}

/* BREADCRUMBS (SEO Silo Engine) */
.breadcrumbs {
  padding: 24px 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.breadcrumbs a {
  color: var(--primary);
  font-weight: 500;
}

.breadcrumbs a:hover {
  text-decoration: underline;
}

.breadcrumbs span {
  margin: 0 8px;
}

/* ABOUT E-E-A-T SECTION */
.eeat-box {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-md);
  margin-bottom: 40px;
}

/* FOOTER */
.tr-footer {
  background: #F0EDE8;
  color: var(--text-dark);
  padding: 64px 0 32px;
  margin-top: 80px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
}

.footer-grid h4 {
  color: var(--text-dark);
  margin-bottom: 20px;
}

.footer-logo {
  display: inline-flex;
  align-items: center;
  margin-bottom: 16px;
  text-decoration: none;
}

.footer-logo svg {
  transition: transform 0.2s ease;
}

.footer-logo:hover svg {
  transform: scale(1.04);
}


.footer-grid p {
  color: var(--text-muted);
}

.footer-links a {
  display: block;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.footer-links a:hover {
  color: var(--primary);
}

.copyright {
  text-align: center;
  border-top: 1px solid var(--border);
  padding-top: 24px;
  margin-top: 40px;
  color: var(--text-muted);
  font-size: 0.9rem;
}

@media (max-width: 768px) {
  .hero h1 {
    font-size: 2rem;
  }

  .hero {
    padding: 60px 0 50px;
  }

  .search-bar {
    flex-direction: column;
    border-radius: 16px;
    padding: 6px;
  }

  .search-bar input {
    border-radius: 12px;
    padding: 14px 16px;
    font-size: 1rem;
    text-align: center;
  }

  .search-bar button {
    border-radius: 12px;
    margin-top: 6px;
    width: 100%;
    padding: 14px;
  }

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

  .main-nav {
    display: none;
  }
}

/* =====================================================
   ACTIVITY DETAIL PAGE — Specific Styles
   ===================================================== */
:root {
  --pro: #10b981;
  --con: #ef4444;
}

.activity-container {
  max-width: 800px;
  margin: 40px auto;
  background: var(--surface);
  padding: 40px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
}

.badge-container {
  display: flex;
  gap: 12px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.badge {
  background: var(--accent-warm);
  color: var(--primary);
  padding: 6px 14px;
  border-radius: 24px;
  font-weight: 600;
  font-size: 0.875rem;
  border: 1px solid rgba(255, 107, 66, 0.2);
}

/* Meta */
.meta-info {
  margin-top: 8px;
  font-size: 0.85rem;
  color: var(--text-muted);
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* TOC */
.toc {
  background: var(--bg-color);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px;
  margin: 32px 0;
}

.toc-title {
  font-size: 1.1rem;
  font-weight: 800;
  margin-bottom: 16px;

}

.toc ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}

.toc li a {
  color: var(--text-muted);
  text-decoration: none;
  display: flex;
  align-items: center;
  transition: var(--transition);
}

.toc li a::before {
  content: "→";
  color: var(--primary);
  margin-right: 8px;
  font-weight: bold;
}

.toc li a:hover {
  color: var(--primary);
}

/* Gallery */
.gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin: 36px 0;
}

.gallery img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: var(--radius-md);
  transition: var(--transition);
}

.gallery img:hover {
  transform: scale(1.02);
}

.caption {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 8px;
  line-height: 1.4;
}

/* Pros/Cons */
.pros-cons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin: 32px 0;
  background: var(--bg-color);
  padding: 24px;
  border-radius: var(--radius-md);
}

.pros h3 {
  color: var(--pro);
  margin-top: 0;
}

.cons h3 {
  color: var(--con);
  margin-top: 0;
}

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

.checklist li {
  display: flex;
  align-items: flex-start;
  margin-bottom: 12px;
}

.icon {
  width: 20px;
  height: 20px;
  margin-right: 12px;
  flex-shrink: 0;
  margin-top: 4px;
}

.icon.check {
  color: var(--pro);
}

.icon.cross {
  color: var(--con);
}

/* FAQ */
.faq-item {
  background: var(--bg-color);
  padding: 22px 24px;
  border-radius: var(--radius-md);
  margin-bottom: 16px;
  border-left: 4px solid var(--primary);
}

.faq-item h3 {
  margin-top: 0;
  margin-bottom: 10px;
  font-size: 1.05rem;
  line-height: 1.4;
}

.faq-item p {
  margin: 0;
  color: var(--text-muted);
  line-height: 1.7;
}

/* CTA */
.cta-button {
  display: block;
  width: 100%;
  text-align: center;
  background: var(--primary);
  color: white !important;
  padding: 18px 24px;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 1.1rem;
  margin-top: 40px;
  transition: var(--transition);

}

.cta-button:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* Author box */
.author-box {
  display: flex;
  align-items: center;
  background: var(--bg-color);
  padding: 20px 24px;
  border-radius: var(--radius-md);
  margin-bottom: 36px;
  border: 1px solid var(--border);
}

.author-avatar {
  width: 52px;
  height: 52px;
  background: var(--primary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: bold;
  margin-right: 16px;
  flex-shrink: 0;

}

.author-info p {
  margin: 4px 0 0 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Comments */
.comment-avatar {
  width: 40px;
  height: 40px;
  background: var(--text-muted);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: bold;
  margin-right: 12px;
  flex-shrink: 0;
}

.comment-card {
  border-bottom: 1px solid var(--border);
  padding: 20px 0;
}

.comment-card:last-child {
  border-bottom: none;
}

.comment-header {
  display: flex;
  align-items: center;
  margin-bottom: 8px;
}

.comment-date {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-left: 8px;
}

.comment-form-panel {
  background: var(--bg-color);
  padding: 24px;
  border-radius: var(--radius-md);
  margin-top: 32px;
  border: 1px solid var(--border);
}

.comment-form-panel h3 {
  margin-top: 0;
}

.form-group {
  margin-bottom: 16px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-family: inherit;
  font-size: 1rem;
  outline: none;
  transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(255, 87, 34, 0.1);
}

.form-submit {
  background: var(--secondary);
  color: white;
  border: none;
  padding: 10px 24px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  font-family: inherit;
  transition: var(--transition);
}

.form-submit:hover {
  background: var(--primary);
}

/* Related */
.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-top: 20px;
}

.related-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px;
  transition: var(--transition);
}

.related-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: #5AAFBE;
}

.related-card a {
  font-weight: 700;
  color: var(--text-dark);
  text-decoration: none;
  display: block;
  margin-bottom: 8px;
  line-height: 1.4;
}

.related-card a:hover {
  color: var(--primary);
}

.related-price {
  color: var(--primary);
  font-weight: 700;
  font-size: 1.05rem;
}

/* Activity container prose */
.activity-container p {
  line-height: 1.8;
  margin-bottom: 0;
  margin-top: 0;
}

.activity-container p+p {
  margin-top: 20px;
}

/* Activity H2 */
.activity-container h2 {
  font-size: 1.75rem;
  color: var(--secondary);
  margin-top: 48px;
  margin-bottom: 16px;
  line-height: 1.3;
}

@media (max-width: 768px) {
  .activity-container {
    padding: 24px 16px;
    margin: 16px;
  }

  .activity-container h1 {
    font-size: 1.8rem;
  }

  .pros-cons,
  .gallery {
    grid-template-columns: 1fr;
  }

  .author-box {
    flex-direction: column;
    text-align: center;
  }

  .author-avatar {
    margin-right: 0;
    margin-bottom: 12px;
  }
}

/* ───────────────────────────────────────────────────────── */
/* Pagination Styles (CodeIgniter Native Pager)              */
/* ───────────────────────────────────────────────────────── */
.pagination {
  display: flex;
  padding-left: 0;
  list-style: none;
  border-radius: 0.25rem;
  gap: 8px;
  flex-wrap: wrap;
}

.pagination li a,
.pagination li span {
  position: relative;
  display: block;
  padding: 8px 14px;
  line-height: 1.25;
  color: var(--primary);
  background-color: var(--surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm) !important;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
  box-shadow: var(--shadow-sm);
}

.pagination li a:hover,
.pagination li span:hover {
  background-color: var(--secondary-background, #f1f5f9);
  color: var(--primary-hover);
  border-color: var(--primary);
  transform: translateY(-1px);
}

.pagination li.active a,
.pagination li.active span {
  z-index: 1;
  color: #fff;
  background-color: var(--primary);
  border-color: var(--primary);
  pointer-events: none;
  box-shadow: 0 4px 6px rgba(90, 175, 190, 0.25);
}

.pagination li.disabled a,
.pagination li.disabled span {
  color: var(--text-muted);
  pointer-events: none;
  cursor: auto;
  background-color: var(--surface);
  border-color: var(--border-color);
  opacity: 0.5;
  box-shadow: none;
}