/* ===================================================================
   ARTICLES.CSS - WARM EDITORIAL DESIGN
   For: article.php, related-tours.php, all program pages
   Design Philosophy: Warm "Storyteller" - Tourism-focused, inviting
   =================================================================== */

/* ===================================================================
   COLOR PALETTE - Warm Editorial
   =================================================================== */
:root {
  --gold: #C9A84C;
  --gold-light: #E8C97A;
  --dark: #1A1208;
  --text: #2C2416;
  --muted: #7A6A50;
  --sand: #F9F5EE;
  --white: #FFFFFF;
  --radius: 12px;
}

/* ===================================================================
   ARTICLE PAGE LAYOUT
   =================================================================== */

.page-wrapper {
  margin: 0 auto;
  padding: 1rem;
  max-width: 100%;
  background: var(--sand);
}

.content {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
}

.main-content-wrapper {
  flex: 1 1 65%;
  min-width: 0;
}

.main-content {
  background: transparent;
  padding: 0;
}

.main-content.single {
  padding: 0;
}

/* ===================================================================
   HERO SECTION - Full Bleed Cinematic
   =================================================================== */

.article-hero {
  position: relative;
  width: 100%;
  height: 85vh;
  min-height: 500px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  margin-bottom: -60px;
  z-index: 1;
}

.hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.75) saturate(1.1);
}

/* Warm Gradient Overlay */
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0) 0%,
    rgba(26,18,8,0.7) 70%,
    rgba(26,18,8,0.9) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 30px 60px;
}

.hero-category {
  display: inline-block;
  background: var(--gold);
  color: var(--dark);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 4px;
  margin-bottom: 15px;
}

.hero-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 5vw, 3.5rem);
  color: #FFFFFF;
  line-height: 1.2;
  text-shadow: 0 2px 15px rgba(0,0,0,0.5);
  margin-bottom: 20px;
  max-width: 800px;
}

.hero-meta {
  display: flex;
  align-items: center;
  gap: 20px;
  color: rgba(255,255,255,0.8);
  font-size: 0.85rem;
  letter-spacing: 0.05em;
}

.meta-dot {
  width: 5px;
  height: 5px;
  background: var(--gold);
  border-radius: 50%;
  display: inline-block;
}

/* ===================================================================
   LEAD CARD - Lifts over Hero
   =================================================================== */

.article-lead {
  background: var(--white);
  border-radius: var(--radius);
  padding: 40px;
  margin: 0 auto 40px;
  position: relative;
  z-index: 10;
  box-shadow: 0 10px 40px rgba(0,0,0,0.08);
  border-top: 5px solid var(--gold);
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
}

.article-lead h2 {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  color: var(--dark);
  margin-bottom: 20px;
  line-height: 1.3;
}

.article-lead .post-content {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--text);
}

.article-lead .post-content p {
  margin-bottom: 1rem;
}

/* ===================================================================
   INTRO SECTION - First Content Block
   =================================================================== */

.article-intro {
  padding: 0;
  background: transparent;
  border-bottom: none;
  max-width: 1200px;
  margin: 0 auto;
}

.article-intro h2 {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  margin-bottom: 1.5rem;
  color: var(--dark);
  border-left: 4px solid var(--gold);
  padding-left: 18px;
}

.article-intro .post-content {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--text);
}

.article-intro .post-content p {
  margin-bottom: 1rem;
}

/* ===================================================================
   CONTENT BLOCKS - Visual Cards with Alternating Layout
   =================================================================== */

.content-block-horizontal {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  padding: 0;
  margin: 50px auto;
  background: transparent;
  border-left: none;
  box-shadow: none;
  align-items: start;
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
}

.content-block-horizontal.align-right {
  direction: rtl;
}

.content-block-horizontal.align-right > * {
  direction: ltr;
}

.text-content-block {
  flex: 1;
}

.text-content-block h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem;
  margin-bottom: 20px;
  color: var(--dark);
  border-left: 4px solid var(--gold);
  padding-left: 18px;
  line-height: 1.3;
}

.text-content-block h2.subheading {
  font-size: 1.8rem;
}

.paragraph-content {
  color: var(--text);
}

.content-block-text {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--text);
  margin-bottom: 1rem;
}

.image-content-block {
  flex: 1;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.content-block-image {
  width: 100%;
  height: 75%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.image-content-block:hover .content-block-image {
  transform: scale(1.05);
}

/* ===================================================================
   PULL QUOTE - Editorial Storytelling
   =================================================================== */

.pull-quote {
  margin: 50px auto;
  padding: 35px 40px;
  background: #F5EFE0;
  border-radius: var(--radius);
  border-left: 6px solid var(--gold);
  position: relative;
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
}

.pull-quote p {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 1.3rem;
  color: var(--dark);
  line-height: 1.6;
  margin-bottom: 0;
}

/* ===================================================================
   CTA MOMENTS - Call to Action Sections
   =================================================================== */

.cta-moment {
  background: linear-gradient(135deg, var(--dark) 0%, #3D2B0A 100%);
  color: white;
  text-align: center;
  padding: 40px;
  margin: 50px auto;
  border-radius: var(--radius);
  box-shadow: 0 8px 30px rgba(0,0,0,0.15);
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
}

.cta-moment h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem;
  margin-bottom: 10px;
  font-weight: 700;
  color: white;
  flex: 1;
  min-width: 250px;
  text-align: left;
}

.cta-moment p {
  font-size: 1rem;
  margin-bottom: 0;
  opacity: 0.9;
  flex: 1;
  min-width: 250px;
  text-align: left;
}

.cta-moment .btn {
  display: inline-block;
  background: var(--gold);
  color: var(--dark);
  padding: 14px 30px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.85rem;
  transition: all 0.3s;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  white-space: nowrap;
  flex-shrink: 0;
}

.cta-moment .btn:hover {
  background: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.3);
}

/* ===================================================================
   MID-ARTICLE PROGRAMS SECTION
   =================================================================== */

.mid-article-programs {
  background: transparent;
  padding: 0;
  margin: 50px auto;
  border-radius: 0;
  border: none;
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
}

.mid-article-programs h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem;
  margin-bottom: 10px;
  color: var(--dark);
  text-align: left;
  border-left: 4px solid var(--gold);
  padding-left: 18px;
}

.mid-article-programs .subtitle {
  text-align: left;
  color: var(--muted);
  font-size: 1rem;
  margin-bottom: 30px;
  margin-left: 22px;
}

.mid-article-programs .program-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  gap: 20px;
  margin-top: 20px;
}

.mid-article-programs .program-card {
  min-width: 280px;
  max-width: 350px;
  flex: 0 1 calc(33.333% - 14px);
  background: white;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transition: transform 0.3s, box-shadow 0.3s;
  text-align: center;
}

.mid-article-programs .program-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 24px rgba(0,0,0,0.15);
}

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

.mid-article-programs .card-content {
  padding: 20px;
}

.mid-article-programs .card-content h4 {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  margin-bottom: 15px;
  color: var(--dark);
}

.mid-article-programs .card-content .btn {
  display: inline-block;
  background: var(--gold);
  color: var(--dark);
  padding: 10px 20px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  transition: background 0.3s;
}

.mid-article-programs .card-content .btn:hover {
  background: var(--gold-light);
}

/* ===================================================================
   BOTTOM SUGGESTED PROGRAMS SECTION
   =================================================================== */

.suggested-programs {
  background: white;
  padding: 40px;
  margin: 50px auto;
  border-radius: var(--radius);
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
}

.suggested-programs h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem;
  margin-bottom: 30px;
  color: var(--dark);
  text-align: left;
  border-left: 4px solid var(--gold);
  padding-left: 18px;
}

.suggested-programs .program-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  gap: 20px;
  margin-top: 20px;
}

.suggested-programs .program-card {
  background: white;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transition: transform 0.3s, box-shadow 0.3s;
  flex: 0 1 calc(33.333% - 14px);
  min-width: 280px;
  border: 1px solid #E8E3D8;
}

.suggested-programs .program-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 24px rgba(0,0,0,0.15);
}

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

.suggested-programs .program-card h4 {
  padding: 20px;
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  color: var(--dark);
  margin: 0;
}

.suggested-programs .program-card .btn {
  display: block;
  background: var(--gold);
  color: var(--dark);
  padding: 12px;
  text-align: center;
  text-decoration: none;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.85rem;
  transition: background 0.3s;
}

.suggested-programs .program-card .btn:hover {
  background: var(--gold-light);
}

/* ===================================================================
   FLOATING BUTTONS - Contact & Related Tours
   =================================================================== */

.floating-buttons {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 999;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Related Tours Floating Button */
#relatedToursBtn {
  background: var(--gold);
  color: var(--dark);
  padding: 14px 22px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.85rem;
  box-shadow: 0 6px 20px rgba(0,0,0,0.2);
  transition: all 0.3s;
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
}

#relatedToursBtn:hover {
  background: var(--gold-light);
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.3);
}

#relatedToursBtn i {
  font-size: 1.1rem;
}

/* Contact Button Styles */
.comm-button {
  background: var(--dark);
  color: white;
  padding: 14px 22px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.85rem;
  box-shadow: 0 6px 20px rgba(0,0,0,0.2);
  transition: all 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  white-space: nowrap;
}

.comm-button:hover {
  background: #3D2B0A;
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.3);
}

.comm-btn-text {
  transition: opacity 0.3s;
}

.comm-btn-text.fade-out {
  opacity: 0;
}

/* ===================================================================
   RELATED TOURS PAGE (related-tours.php)
   =================================================================== */

.related-tours-hero {
  background: linear-gradient(135deg, var(--dark) 0%, #3D2B0A 100%);
  color: white;
  padding: 60px 30px;
  text-align: center;
}

.related-tours-hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: 3rem;
  margin-bottom: 20px;
  font-weight: 700;
  color: white;
}

.related-tours-hero p {
  font-size: 1.1rem;
  opacity: 0.9;
  max-width: 800px;
  margin: 0 auto 20px;
}

.back-to-article {
  display: inline-block;
  background: var(--gold);
  color: var(--dark);
  padding: 12px 24px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.85rem;
  margin-top: 15px;
  transition: all 0.3s;
}

.back-to-article:hover {
  background: var(--gold-light);
  transform: translateY(-2px);
}

.related-tours-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 40px 20px;
  background: var(--sand);
}

.programs-count {
  text-align: center;
  font-size: 1.1rem;
  color: var(--muted);
  margin-bottom: 30px;
}

.programs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.program-card-full {
  background: white;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transition: transform 0.3s, box-shadow 0.3s;
  border: 1px solid #E8E3D8;
}

.program-card-full:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 24px rgba(0,0,0,0.15);
}

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

.program-card-content {
  padding: 20px;
}

.program-card-content h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  margin-bottom: 15px;
  color: var(--dark);
  line-height: 1.3;
}

.program-card-content .btn {
  display: inline-block;
  background: var(--gold);
  color: var(--dark);
  padding: 12px 24px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.85rem;
  transition: all 0.3s;
  text-align: center;
  width: 100%;
}

.program-card-content .btn:hover {
  background: var(--gold-light);
  transform: translateY(-2px);
}

.no-programs {
  text-align: center;
  padding: 60px 30px;
  background: white;
  border-radius: var(--radius);
  margin: 30px 0;
}

.no-programs h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem;
  color: var(--dark);
  margin-bottom: 15px;
}

.no-programs p {
  font-size: 1.05rem;
  color: var(--muted);
  margin-bottom: 20px;
}

.no-programs .btn {
  display: inline-block;
  background: var(--gold);
  color: var(--dark);
  padding: 12px 24px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.85rem;
}

.no-programs .btn:hover {
  background: var(--gold-light);
}

/* ===================================================================
   Q&A SECTION
   =================================================================== */

.qa-section {
  max-width: 1100px;
  margin: 50px auto;
  padding: 40px;
  background: white;
  border-radius: var(--radius);
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.qa-section h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem;
  margin-bottom: 30px;
  color: var(--dark);
  text-align: left;
  border-left: 4px solid var(--gold);
  padding-left: 18px;
}

.qa-item {
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid #E8E3D8;
}

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

.qa-question {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 10px;
}

.qa-answer {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--text);
}

/* ===================================================================
   RESPONSIVE DESIGN - TABLETS
   =================================================================== */

@media (max-width: 1024px) {
  .content-block-horizontal {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-wrapper {
    padding: 0.5rem;
  }

  .cta-moment {
    flex-direction: column;
    text-align: center;
  }

  .cta-moment h3,
  .cta-moment p {
    text-align: center;
    flex: 1 1 100%;
  }
}

/* ===================================================================
   RESPONSIVE DESIGN - MOBILE
   =================================================================== */

@media (max-width: 768px) {
  .content {
    flex-direction: column;
  }

  .main-content-wrapper {
    flex: 1 1 100%;
  }

  .article-hero {
    height: 70vh;
    min-height: 420px;
  }

  .hero-title {
    font-size: 2.2rem;
  }

  .content-block-horizontal {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .content-block-horizontal.align-right {
    direction: ltr;
  }

  .image-content-block {
    max-width: 100%;
  }

  .article-lead,
  .article-intro,
  .cta-moment,
  .mid-article-programs,
  .suggested-programs,
  .qa-section {
    padding: 20px;
    margin: 30px 10px;
  }

  .floating-buttons {
    right: 15px;
    bottom: 15px;
    gap: 8px;
  }

  #relatedToursBtn,
  .comm-button {
    padding: 12px 16px;
    font-size: 0.8rem;
  }

  #relatedToursBtn span,
  .comm-btn-text {
    display: none;
  }

  #relatedToursBtn,
  .comm-button {
    width: 48px;
    height: 48px;
    justify-content: center;
    border-radius: 50%;
    padding: 0;
  }

  .programs-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .related-tours-container {
    padding: 20px 10px;
  }

  .related-tours-hero h1 {
    font-size: 2rem;
  }

  .related-tours-hero p {
    font-size: 1rem;
  }
}

/* ===================================================================
   RESPONSIVE DESIGN - SMALL MOBILE
   =================================================================== */

@media (max-width: 480px) {
  .hero-title {
    font-size: 1.8rem;
  }

  .text-content-block h2 {
    font-size: 1.4rem;
  }

  .cta-moment h3 {
    font-size: 1.3rem;
  }

  .article-lead,
  .article-intro,
  .cta-moment,
  .mid-article-programs,
  .suggested-programs,
  .qa-section {
    padding: 15px;
    margin: 20px 5px;
  }

  .pull-quote {
    padding: 20px;
    margin: 30px 5px;
  }

  .pull-quote p {
    font-size: 1.1rem;
  }

  .mid-article-programs .program-card {
    flex: 0 1 100%;
    max-width: 100%;
  }

  .suggested-programs .program-card {
    flex: 0 1 100%;
    min-width: 100%;
  }
}
