/* =====================================================================
   ETP ARTICLE TEMPLATE
   ALL rules scoped under [gx-page="article"]
   Uses design tokens — never hardcoded hex (except matching existing vars)
   ===================================================================== */
/* ── Reading Progress Bar ─────────────────────────────────────── */
#gx-read-progress {
  position: fixed;
  top: 106px; left: 0;
  width: 0%;
  height: 3px;
  background: var(--brand-teal);
  z-index: 9999;
  transition: width .1s linear;
}

/* ── Section wrapper ─────────────────────────────────────────── */
[gx-page="article"] {
  font-family: var(--font-heading);
  color: var(--text-main);
  background: var(--bg-main);
  line-height: 1.8;
}

/* ── Breadcrumbs ────────────────────────────────────────────── */
[gx-page="article"] .tour-breadcrumbs {
  padding: 14px 0 10px;
  font-size: .82rem;
  color: var(--text-muted);
}

[gx-page="article"] .tour-breadcrumbs a {
  color: var(--brand-teal);
  text-decoration: none;
}
[gx-page="article"] .tour-breadcrumbs a:hover { text-decoration: underline; }
[gx-page="article"] .tour-breadcrumbs .bc-sep {
  margin: 0 6px;
  opacity: .45;
}

/* ── Article Header ─────────────────────────────────────────── */
[gx-page="article"] .art-header { margin-bottom: 28px; }

[gx-page="article"] .art-category-pill {
  display: inline-block;
  background: var(--brand-teal-light);
  color: var(--brand-teal);
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .05em;
  text-transform: uppercase;
  padding: 4px 14px;
  border-radius: var(--radius-pill);
  margin-bottom: 14px;
}

[gx-page="article"] .art-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--brand-dark-blue);
  line-height: 1.3;
  margin-bottom: 18px;
}
@media (max-width: 767px) {
  [gx-page="article"] .art-title { font-size: 1.6rem; }
}

[gx-page="article"] .art-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
  font-size: .83rem;
  color: var(--text-muted);
}
[gx-page="article"] .art-meta .meta-avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--brand-teal-light);
  object-fit: contain;
}
[gx-page="article"] .art-meta .meta-author-name {
  font-weight: 600;
  color: var(--brand-dark-blue);
}
[gx-page="article"] .art-meta .meta-credential {
  font-size: .75rem;
  color: var(--brand-teal);
}
[gx-page="article"] .meta-divider {
  width: 1px; height: 14px;
  background: var(--border-color);
  display: inline-block;
}
[gx-page="article"] .art-meta i {
  color: var(--brand-teal);
  font-size: .8rem;
}

/* ── Featured Image ─────────────────────────────────────────── */
[gx-page="article"] .art-featured-img {
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 10px;
  box-shadow: var(--shadow-md);
}
[gx-page="article"] .art-featured-img img {
  width: 100%;
  height: 440px;
  object-fit: cover;
  display: block;
}
@media (max-width: 767px) {
  [gx-page="article"] .art-featured-img img { height: 220px; }
}
[gx-page="article"] .art-img-caption {
  font-size: .78rem;
  color: var(--text-muted);
  text-align: center;
  margin-bottom: 28px;
  font-style: italic;
}

/* ── Two-column layout helpers ──────────────────────────────── */
[gx-page="article"] .art-body-col {
  /* intentionally empty — Bootstrap col handles width */
}

/* ── SIDEBAR ─────────────────────────────────────────────────── */
[gx-page="article"] .art-sidebar {
  position: sticky;
  top: calc(400px - 100vh );
}

/* TOC */
[gx-page="article"] .toc-card {
  background: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 20px 22px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
  height: calc(100vh - 470px);
    overflow: auto;
}
[gx-page="article"] .toc-card .toc-title {
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--brand-dark-blue);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 7px;
}
[gx-page="article"] .toc-card .toc-title i { color: var(--brand-teal); }
[gx-page="article"] #gx-toc-list {
  list-style: none;
  padding: 0; margin: 0;
}
[gx-page="article"] #gx-toc-list li { margin-bottom: 4px; }
[gx-page="article"] #gx-toc-list a {
  font-size: .8rem;
  color: var(--text-muted);
  text-decoration: none;
  display: block;
  padding: 3px 8px;
  border-left: 2px solid transparent;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  transition: all .2s;
  line-height: 1.4;
}
[gx-page="article"] #gx-toc-list a:hover,
[gx-page="article"] #gx-toc-list a.toc-active {
  color: var(--brand-teal);
  border-left-color: var(--brand-teal);
  background: var(--brand-teal-light);
}
[gx-page="article"] #gx-toc-list a.toc-h3 {
  padding-left: 20px;
  font-size: .76rem;
}

/* Mobile TOC accordion */
[gx-page="article"] .toc-accordion-toggle {
  width: 100%;
  background: var(--soft-teal);
  border: 1px solid var(--brand-teal-light);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  font-size: .85rem;
  font-weight: 600;
  color: var(--brand-dark-blue);
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}
@media (max-width: 991px) {
  [gx-page="article"] .toc-accordion-toggle { display: flex; }
  [gx-page="article"] .art-sidebar { position: static; margin-top: 40px; }
}

/* Plan Your Trip CTA */
[gx-page="article"] .sidebar-cta-card {
  background: linear-gradient(145deg, var(--brand-dark-blue), #1c5181);
  border-radius: var(--radius-md);
  padding: 22px;
  color: #fff;
  margin-bottom: 24px;
  box-shadow: var(--shadow-md);
}
[gx-page="article"] .sidebar-cta-card .cta-icon {
  width: 44px; height: 44px;
  background: rgba(255,255,255,.15);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
  margin-bottom: 12px;
}
[gx-page="article"] .sidebar-cta-card h5 {
  font-weight: 700;
  margin-bottom: 6px;
}
[gx-page="article"] .sidebar-cta-card p {
  font-size: .78rem;
  opacity: .85;
  margin-bottom: 14px;
  line-height: 1.6;
}
[gx-page="article"] .sidebar-cta-card .perk-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .75rem;
  opacity: .85;
  margin-bottom: 6px;
}
[gx-page="article"] .sidebar-cta-card .perk-row i {
  font-size: .72rem;
  color: rgba(255,255,255,.7);
}
[gx-page="article"] .btn-cta-white {
  display: block;
  width: 100%;
  text-align: center;
  background: #fff;
  color: var(--brand-dark-blue);
  border: none;
  border-radius: var(--radius-pill);
  padding: 9px 0;
  font-size: .82rem;
  font-weight: 700;
  margin-top: 16px;
  text-decoration: none;
  transition: all .2s;
}
[gx-page="article"] .btn-cta-white:hover {
  background: var(--soft-teal);
  color: var(--brand-teal);
}

/* =================================================================
   MODULAR BODY BLOCKS
   ================================================================= */

/* ── gx-block="richtext" ─────────────────────────────────────── */
[gx-page="article"] [gx-block="richtext"] {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 24px 26px;
    margin-bottom: 36px;
    box-shadow: var(--shadow-sm);
    /*margin-bottom: 28px;*/
}
[gx-page="article"] [gx-block="richtext"] h2 {
  font-size: 1.55rem;
  font-weight: 700;
  color: var(--brand-dark-blue);
  margin: 36px 0 14px;
  padding-top: 10px;
}
[gx-page="article"] [gx-block="richtext"] h3 {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text-color);
  margin: 28px 0 10px;
}
[gx-page="article"] [gx-block="richtext"] p {
  color: var(--text-main);
  margin-bottom: 16px;
  font-size: .97rem;
}
[gx-page="article"] [gx-block="richtext"] a {
  color: var(--brand-teal);
  text-decoration: underline;
  text-underline-offset: 2px;
}
/* Drop cap */
[gx-page="article"] [gx-block="richtext"].drop-cap > p:first-child::first-letter {
  float: left;
  font-size: 3.8rem;
  font-weight: 800;
  line-height: .8;
  margin: 4px 10px 0 0;
  color: var(--brand-teal);
  font-family: var(--font-heading);
}

/* ── gx-block="divider" ─────────────────────────────────────── */
[gx-page="article"] [gx-block="divider"] {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 32px 0;
}
[gx-page="article"] [gx-block="divider"]::before,
[gx-page="article"] [gx-block="divider"]::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border-color);
}
[gx-page="article"] [gx-block="divider"] i {
  color: var(--brand-teal);
  font-size: .9rem;
  opacity: .6;
}

/* =================================================================
   FIXED CLOSE SECTIONS
   ================================================================= */

/* Tags row */
[gx-page="article"] .art-tags-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 36px 0 28px;
  align-items: center;
}
[gx-page="article"] .art-tags-row .tag-label {
  font-size: .78rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .06em;
}
[gx-page="article"] .art-tag {
  background: var(--bg-light);
  color: var(--text-color);
  font-size: .78rem;
  font-weight: 500;
  padding: 5px 14px;
  border-radius: var(--radius-pill);
  text-decoration: none;
  border: 1px solid var(--border-color);
  transition: all .2s;
}
[gx-page="article"] .art-tag:hover {
  background: var(--brand-teal);
  color: #fff;
  border-color: var(--brand-teal);
}

/* Author bio card */
[gx-page="article"] .author-bio-card {
  background: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 24px 26px;
  display: flex;
  gap: 20px;
  margin-bottom: 36px;
  box-shadow: var(--shadow-sm);
}
[gx-page="article"] .author-bio-card .author-avatar {
  width: 72px; height: 72px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 3px solid var(--soft-teal);
  border: 2px solid var(--brand-teal-light);
    object-fit: contain;
}
[gx-page="article"] .author-bio-card .author-name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--brand-dark-blue);
  margin-bottom: 2px;
}
[gx-page="article"] .author-bio-card .author-cred {
  font-size: .76rem;
  color: var(--brand-teal);
  font-weight: 600;
  margin-bottom: 8px;
}
[gx-page="article"] .author-bio-card .author-bio-text {
  font-size: .85rem;
  color: var(--text-color);
  line-height: 1.7;
  margin-bottom: 12px;
}
[gx-page="article"] .author-bio-card .author-socials {
  display: flex;
  gap: 8px;
}
[gx-page="article"] .author-bio-card .author-socials a {
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--bg-light);
  color: var(--text-muted);
  display: flex; align-items: center; justify-content: center;
  font-size: .78rem;
  text-decoration: none;
  transition: all .2s;
}
[gx-page="article"] .author-bio-card .author-socials a:hover {
  background: var(--brand-teal);
  color: #fff;
}
@media (max-width: 576px) {
  [gx-page="article"] .author-bio-card { flex-direction: column; }
}

/* CTA Banner */
[gx-page="article"] .cta-banner {
  border-radius: var(--radius-lg);
  padding: 40px;
  text-align: center;
  color: #fff;
  margin-bottom: 48px;
  position: relative;
  overflow: hidden;
}
[gx-page="article"] .cta-banner::before {
  content: '';
  position: absolute;
  top: -30px; right: -30px;
  width: 180px; height: 180px;
  border-radius: 50%;
  background: rgba(255,255,255,.06);
}
[gx-page="article"] .cta-banner::after {
  content: '';
  position: absolute;
  bottom: -50px; left: -20px;
  width: 220px; height: 220px;
  border-radius: 50%;
  background: rgba(255,255,255,.04);
}
[gx-page="article"] .cta-banner .cta-icon-circle {
  width: 60px; height: 60px;
  background: rgba(255,255,255,.15);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
  margin: 0 auto 18px;
  position: relative; z-index: 1;
}
[gx-page="article"] .cta-banner h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 10px;
  position: relative; z-index: 1;
}
[gx-page="article"] .cta-banner p {
  font-size: .9rem;
  opacity: .88;
  margin-bottom: 20px;
  position: relative; z-index: 1;
}
[gx-page="article"] .cta-banner .cta-features {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px 28px;
  margin-bottom: 26px;
  position: relative; z-index: 1;
}
[gx-page="article"] .cta-banner .cta-features span {
  font-size: .8rem;
  opacity: .88;
  display: flex;
  align-items: center;
  gap: 6px;
}
[gx-page="article"] .cta-banner .btn-cta-banner {
  display: inline-block;
  background: #fff;
  color: var(--brand-dark-blue);
  border-radius: var(--radius-pill);
  padding: 12px 32px;
  font-size: .9rem;
  font-weight: 700;
  text-decoration: none;
  transition: all .2s;
  position: relative; z-index: 1;
}
[gx-page="article"] .cta-banner .btn-cta-banner:hover {
  background: var(--soft-teal);
  color: var(--brand-teal);
  transform: translateY(-2px);
}
/* =================================================================
   MODULAR BODY BLOCKS
   ================================================================= */

[gx-page="article"] [gx-block="post-summary"] {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 24px 26px;
    margin-bottom: 36px;
    box-shadow: var(--shadow-sm);
}
[gx-page="article"] [gx-block="post-summary"] h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--brand-dark-blue);
  margin-top: 0;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}
[gx-page="article"] [gx-block="post-summary"] h3::before {
  content: '\f0ca'; /* FontAwesome list-ul */
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  color: var(--brand-teal);
  font-size: 1rem;
}

/* Toast */
[gx-page="article"] #gx-toast {
  position: fixed;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--brand-dark-blue);
  color: #fff;
  padding: 10px 22px;
  border-radius: var(--radius-pill);
  font-size: .83rem;
  font-weight: 500;
  z-index: 9998;
  opacity: 0;
  pointer-events: none;
  transition: all .25s;
}
[gx-page="article"] #gx-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* Back to top */
[gx-page="article"] #gx-btt {
  position: fixed;
  bottom: 80px;
  right: 24px;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--brand-dark-blue);
  color: #fff;
  border: none;
  font-size: .9rem;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s, transform .25s;
  z-index: 150;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-md);
}
[gx-page="article"] #gx-btt.visible {
  opacity: 1;
  pointer-events: auto;
}
[gx-page="article"] #gx-btt:hover { transform: translateY(-3px); }

/* RTL support */
[gx-page="article"][dir="rtl"] [gx-block="callout"] { border-left: none; border-right: 4px solid; }
[gx-page="article"][dir="rtl"] [gx-block="pullquote"] { border-left: none; border-right: 4px solid var(--brand-teal); border-radius: var(--radius-md) 0 0 var(--radius-md); }
[gx-page="article"][dir="rtl"] #gx-toc-list a { border-left: none; border-right: 2px solid transparent; border-radius: var(--radius-sm) 0 0 var(--radius-sm); padding-left: 0; padding-right: 8px; }
[gx-page="article"][dir="rtl"] #gx-toc-list a.toc-h3 { padding-right: 20px; padding-left: 0; }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}