/* ==========================================================================
   JML Luxury — Blog & Article Stylesheet
   ========================================================================== */

:root {
  --forest: #102c26;
  --forest-deep: #091f1b;
  --forest-soft: #183a32;
  --ivory: #f5f1e8;
  --paper: #fbf9f4;
  --gold: #c6ae82;
  --gold-light: #e3d7bf;
  --ink: #202622;
  --stone: #69706a;
  --line: rgba(32, 38, 34, 0.16);
  --line-light: rgba(255, 255, 255, 0.16);
  --sans: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --serif: "Playfair Display", Georgia, serif;
}

/* Category Filter Pills */
.blog-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 40px 0 50px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}
.blog-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid var(--line);
  border-radius: 40px;
  background: transparent;
  color: var(--stone);
  transition: all 0.25s ease;
  cursor: pointer;
}
.blog-pill:hover,
.blog-pill.is-active {
  background: var(--forest);
  color: var(--ivory);
  border-color: var(--forest);
}

/* Featured Article Banner */
.featured-card {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  background: var(--forest);
  color: #fff;
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 70px;
  box-shadow: 0 16px 40px rgba(9, 31, 27, 0.14);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.featured-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 50px rgba(9, 31, 27, 0.2);
}
.featured-media {
  position: relative;
  min-height: 420px;
  overflow: hidden;
  display: block;
  cursor: pointer;
  text-decoration: none;
}
.featured-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.featured-card:hover .featured-media img {
  transform: scale(1.04);
}
.featured-content {
  padding: 55px 50px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.featured-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--gold);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.featured-content h2 {
  font-family: var(--serif);
  font-size: clamp(1.8rem, 2.6vw, 2.5rem);
  font-weight: 500;
  line-height: 1.18;
  margin: 0 0 18px;
  color: #fff;
}
.featured-content h2 a {
  color: inherit;
  transition: color 0.25s;
}
.featured-content h2 a:hover {
  color: var(--gold-light);
}
.featured-content p {
  color: rgba(255, 255, 255, 0.76);
  font-size: 1.02rem;
  line-height: 1.7;
  margin-bottom: 28px;
}
.featured-meta {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 24px;
}

/* Articles Grid */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 36px;
  margin-bottom: 80px;
}
.article-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--line);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  overflow: hidden;
}
.article-card:hover {
  transform: translateY(-6px);
  border-color: var(--gold);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.08);
}
.card-thumb {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--forest-deep);
  display: block;
  cursor: pointer;
  text-decoration: none;
}
.card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.article-card:hover .card-thumb img,
.card-thumb:hover img {
  transform: scale(1.05);
}
.card-tag {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(9, 31, 27, 0.88);
  backdrop-filter: blur(8px);
  color: var(--gold);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 4px 12px;
  border: 1px solid rgba(198, 174, 130, 0.3);
  pointer-events: none;
}
.card-body {
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}
.card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.76rem;
  color: var(--stone);
  margin-bottom: 14px;
}
.card-body h3 {
  font-family: var(--serif);
  font-size: 1.4rem;
  font-weight: 500;
  line-height: 1.25;
  margin: 0 0 14px;
  color: var(--ink);
}
.card-body h3 a {
  color: inherit;
  transition: color 0.25s;
}
.article-card:hover .card-body h3 a {
  color: var(--forest);
}
.card-body p {
  color: var(--stone);
  font-size: 0.94rem;
  line-height: 1.65;
  margin: 0 0 24px;
  flex-grow: 1;
}
.card-link-more {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 13px 20px;
  background: var(--ivory);
  border: 1px solid var(--line);
  color: var(--forest);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: all 0.25s ease;
  margin-top: auto;
  border-radius: 2px;
  box-sizing: border-box;
  text-decoration: none;
}
.card-link-more:hover,
.article-card:hover .card-link-more {
  background: var(--forest);
  color: var(--gold-light);
  border-color: var(--forest);
}
.card-link-more::after {
  content: "→";
  font-size: 1rem;
  line-height: 1;
  transition: transform 0.25s ease;
}
.card-link-more:hover::after,
.article-card:hover .card-link-more::after {
  transform: translateX(4px);
}

/* ==========================================================================
   Single Post Detail Layout
   ========================================================================== */

.post-header {
  padding: 160px 0 60px;
  background: var(--forest);
  color: #fff;
  position: relative;
}
.post-header::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 80% 20%, rgba(198, 174, 130, 0.12), transparent 50%);
  pointer-events: none;
}
.post-header-inner {
  max-width: 860px;
  margin: 0 auto;
}
.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: 24px;
}
.breadcrumbs a {
  color: rgba(255, 255, 255, 0.75);
  transition: color 0.2s;
}
.breadcrumbs a:hover {
  color: var(--gold);
}
.breadcrumbs span.current {
  color: var(--gold-light);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.post-header h1 {
  font-family: var(--serif);
  font-size: clamp(2.4rem, 4.4vw, 4rem);
  font-weight: 500;
  line-height: 1.12;
  margin: 0 0 24px;
  color: #fff;
}
.post-header h1 em {
  font-style: italic;
  color: var(--gold-light);
}
.post-meta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 24px;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}
.post-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.post-meta-item strong {
  color: #fff;
  font-weight: 500;
}

/* Post Hero Image */
.post-cover {
  max-width: 1040px;
  margin: -40px auto 60px;
  padding: 0 24px;
  position: relative;
  z-index: 2;
}
.post-cover-img {
  width: 100%;
  height: 480px;
  object-fit: cover;
  border-radius: 3px;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.18);
}
.post-cover-caption {
  font-size: 0.8rem;
  color: var(--stone);
  margin-top: 12px;
  font-style: italic;
  text-align: center;
}

/* Post Content Container */
.post-layout {
  max-width: 820px;
  margin: 0 auto;
  padding: 0 24px 80px;
  color: var(--ink);
  font-size: 1.12rem;
  line-height: 1.85;
}

/* Key Takeaways / Executive Brief */
.key-takeaways {
  background: var(--ivory);
  border-left: 4px solid var(--gold);
  padding: 34px 38px;
  margin: 0 0 50px;
  border-radius: 0 3px 3px 0;
}
.key-takeaways h3 {
  font-family: var(--serif);
  font-size: 1.35rem;
  color: var(--forest);
  margin: 0 0 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.key-takeaways ul {
  margin: 0;
  padding-left: 20px;
}
.key-takeaways li {
  margin-bottom: 10px;
  color: var(--ink);
  font-size: 1.02rem;
}
.key-takeaways li:last-child {
  margin-bottom: 0;
}

/* Post Typography */
.post-layout h2 {
  font-family: var(--serif);
  font-size: clamp(1.8rem, 2.6vw, 2.3rem);
  font-weight: 500;
  line-height: 1.25;
  color: var(--forest);
  margin: 55px 0 20px;
  padding-top: 25px;
  border-top: 1px solid var(--line);
}
.post-layout h2:first-of-type {
  border-top: none;
  padding-top: 0;
  margin-top: 0;
}
.post-layout h3 {
  font-family: var(--serif);
  font-size: 1.45rem;
  font-weight: 500;
  color: var(--forest);
  margin: 36px 0 16px;
}
.post-layout p {
  margin: 0 0 26px;
  color: #2b332d;
}
.post-layout strong {
  color: var(--forest);
  font-weight: 600;
}
.post-layout ul,
.post-layout ol {
  margin: 0 0 30px;
  padding-left: 24px;
}
.post-layout li {
  margin-bottom: 12px;
  line-height: 1.75;
}

/* Pro-Tip Callout Box */
.pro-tip {
  background: var(--paper);
  border: 1px solid rgba(198, 174, 130, 0.45);
  border-radius: 3px;
  padding: 28px 32px;
  margin: 40px 0;
  position: relative;
}
.pro-tip-badge {
  display: inline-block;
  background: var(--forest);
  color: var(--gold);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 4px 10px;
  margin-bottom: 14px;
}
.pro-tip h4 {
  font-family: var(--serif);
  font-size: 1.25rem;
  color: var(--forest);
  margin: 0 0 10px;
}
.pro-tip p {
  margin: 0;
  font-size: 1rem;
  color: var(--stone);
}

/* Post Blockquote */
.post-layout blockquote {
  margin: 45px 0;
  padding: 25px 36px;
  border-left: 3px solid var(--forest);
  background: var(--ivory);
  font-family: var(--serif);
  font-size: 1.35rem;
  font-style: italic;
  line-height: 1.6;
  color: var(--forest);
}
.post-layout blockquote cite {
  display: block;
  font-family: var(--sans);
  font-size: 0.8rem;
  font-style: normal;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--stone);
  margin-top: 14px;
}

/* Route & Hub Comparison Card / Table */
.route-table-wrap {
  margin: 40px 0;
  overflow-x: auto;
  border: 1px solid var(--line);
  background: #fff;
}
.route-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
  text-align: left;
}
.route-table th {
  background: var(--forest);
  color: #fff;
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 16px 20px;
}
.route-table td {
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
}
.route-table tr:last-child td {
  border-bottom: none;
}
.route-table tr:hover td {
  background: var(--paper);
}

/* In-Article Booking Box */
.post-cta-banner {
  background: var(--forest);
  color: #fff;
  padding: 48px;
  margin: 60px 0;
  border-radius: 2px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.post-cta-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 120%, rgba(198, 174, 130, 0.2), transparent 70%);
  pointer-events: none;
}
.post-cta-banner h3 {
  font-family: var(--serif);
  font-size: clamp(1.8rem, 3vw, 2.3rem);
  font-weight: 500;
  margin: 0 0 14px;
  color: #fff;
  position: relative;
  z-index: 2;
}
.post-cta-banner p {
  color: rgba(255, 255, 255, 0.8);
  max-width: 580px;
  margin: 0 auto 30px;
  font-size: 1.05rem;
  position: relative;
  z-index: 2;
}
.post-cta-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  position: relative;
  z-index: 3;
}
.post-cta-actions .button {
  cursor: pointer;
  pointer-events: auto;
  transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
  position: relative;
  z-index: 4;
}
.post-cta-actions .button:hover {
  transform: translateY(-2px);
}
.button-outline {
  background: transparent !important;
  color: #fff !important;
  border: 1px solid rgba(255, 255, 255, 0.5) !important;
}
.button-outline:hover {
  background: rgba(255, 255, 255, 0.15) !important;
  color: #fff !important;
  border-color: #fff !important;
}

/* Author Box */
.author-box {
  display: flex;
  align-items: center;
  gap: 24px;
  background: #fff;
  border: 1px solid var(--line);
  padding: 28px 32px;
  margin: 60px 0 0;
}
.author-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--forest);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  font-weight: 600;
  font-size: 1.2rem;
  flex-shrink: 0;
  border: 2px solid var(--gold);
}
.author-info h4 {
  font-family: var(--serif);
  font-size: 1.2rem;
  margin: 0 0 6px;
  color: var(--forest);
}
.author-info p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--stone);
  line-height: 1.6;
}

/* Related Posts Section */
.related-posts {
  background: var(--ivory);
  padding: 90px 0;
  border-top: 1px solid var(--line);
}
.related-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 45px;
}
.related-header h2 {
  font-family: var(--serif);
  font-size: 2.2rem;
  margin: 0;
  color: var(--forest);
}

/* In-Article FAQ Accordion */
.post-faq {
  border-top: 1px solid var(--line);
  margin: 36px 0 50px;
}
.post-faq details {
  border-bottom: 1px solid var(--line);
  padding: 22px 0;
  transition: background-color 0.2s ease;
}
.post-faq summary {
  cursor: pointer;
  list-style: none;
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--forest);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.post-faq summary::-webkit-details-marker {
  display: none;
}
.post-faq summary::after {
  content: "+";
  font-family: var(--sans);
  font-size: 1.5rem;
  font-weight: 300;
  color: var(--gold);
  line-height: 1;
  transition: transform 0.25s ease;
}
.post-faq details[open] summary::after {
  content: "−";
  transform: rotate(180deg);
}
.post-faq details p {
  margin: 16px 0 6px;
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--stone);
}

/* ==========================================================================
   Responsive Adaptations
   ========================================================================== */

@media (max-width: 960px) {
  .featured-card {
    grid-template-columns: 1fr;
  }
  .featured-media {
    min-height: 280px;
  }
  .featured-content {
    padding: 36px 30px;
  }
  .articles-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
  .post-header {
    padding: 130px 0 50px;
  }
  .post-cover-img {
    height: 360px;
  }
}

@media (max-width: 640px) {
  .articles-grid {
    grid-template-columns: 1fr;
  }
  .post-header {
    padding: 110px 0 40px;
  }
  .post-header h1 {
    font-size: 2.2rem;
  }
  .post-cover-img {
    height: 240px;
  }
  .post-layout {
    font-size: 1.04rem;
  }
  .key-takeaways {
    padding: 24px;
  }
  .post-cta-banner {
    padding: 36px 24px;
  }
  .post-cta-actions {
    flex-direction: column;
    width: 100%;
  }
  .post-cta-actions .button {
    width: 100%;
  }
  .author-box {
    flex-direction: column;
    text-align: center;
  }
}
