/* ==========================================================================
   HolidayWorldwide - Editorial Travel Magazine & Blog Stylesheet
   Palette:
   - 60% Dominant: Crisp Off-White (#F8F9FA) & Pure White Cards (#FFFFFF)
   - 30% Secondary: Slate Charcoal (#0F172A / #1E293B / #334155)
   - 10% Primary Accent: Horizon Teal (#0D9488)
   - High-Energy Conversion Accent: Sunset Coral (#F97316)
   ========================================================================== */

:root {
  /* 60% Dominant */
  --bg-main: #F8F9FA;
  --bg-card: #FFFFFF;
  --bg-elevated: #FFFFFF;
  --border-subtle: #E2E8F0;
  --border-card: #E5E7EB;

  /* 30% Secondary - Slate Charcoal */
  --slate-darkest: #0F172A;
  --slate-dark: #1E293B;
  --slate-body: #334155;
  --slate-muted: #64748B;
  --slate-light: #F1F5F9;

  /* 10% Accent - Horizon Teal */
  --teal-primary: #0D9488;
  --teal-hover: #0F766E;
  --teal-dark: #115E59;
  --teal-light: #CCFBF1;
  --teal-glow: rgba(13, 148, 136, 0.2);

  /* Conversion Accent - Sunset Coral */
  --coral-primary: #F97316;
  --coral-hover: #EA580C;
  --coral-light: #FFEDD5;
  --coral-glow: rgba(249, 115, 22, 0.25);

  /* Typography */
  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Layout & Elevations */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-pill: 9999px;
  --shadow-sm: 0 2px 6px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 8px 24px rgba(15, 23, 42, 0.07);
  --shadow-lg: 0 16px 36px rgba(15, 23, 42, 0.12);
}

/* ---------------- Reset & Base ---------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: var(--font-body);
  background-color: var(--bg-main);
  color: var(--slate-body);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
  transition: all 0.2s ease;
}

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

.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------------- Top Utility Bar ---------------- */
.top-bar {
  background-color: var(--slate-darkest);
  color: #E2E8F0;
  font-size: 0.82rem;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.top-bar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.top-bar-left, .top-bar-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.top-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #CBD5E1;
  transition: color 0.2s;
}

.top-link:hover {
  color: var(--teal-light);
}

.top-link svg {
  fill: var(--teal-primary);
}

.badge-official {
  background: rgba(13, 148, 136, 0.2);
  color: #5EEAD4;
  padding: 2px 10px;
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.3px;
  border: 1px solid rgba(13, 148, 136, 0.35);
}

/* ---------------- Main Editorial Navbar ---------------- */
.blog-nav {
  background-color: #FFFFFF;
  border-bottom: 1px solid var(--border-subtle);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow-sm);
}

.nav-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 78px;
}

.brand-wrap {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-title {
  display: flex;
  flex-direction: column;
}

.brand-title .main-name {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--slate-darkest);
  line-height: 1.2;
}

.brand-title .sub-tag {
  font-size: 0.72rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--teal-primary);
  font-weight: 600;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}

.nav-links a {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--slate-dark);
  padding: 6px 0;
  position: relative;
}

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

.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--teal-primary);
  border-radius: 2px;
}

.nav-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: var(--coral-primary);
  color: #FFFFFF !important;
  font-size: 0.88rem;
  font-weight: 600;
  padding: 10px 20px;
  border-radius: var(--radius-pill);
  box-shadow: 0 4px 14px var(--coral-glow);
  transition: all 0.25s ease;
}

.nav-cta-btn:hover {
  background-color: var(--coral-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px var(--coral-glow);
}

/* ---------------- Hero Magazine Header ---------------- */
.magazine-hero {
  background: linear-gradient(180deg, #FFFFFF 0%, var(--bg-main) 100%);
  padding: 48px 0 36px 0;
  border-bottom: 1px solid var(--border-subtle);
  text-align: center;
}

.magazine-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: var(--teal-light);
  color: var(--teal-dark);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 5px 16px;
  border-radius: var(--radius-pill);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 16px;
}

.magazine-hero h1 {
  font-family: var(--font-heading);
  font-size: 2.75rem;
  color: var(--slate-darkest);
  line-height: 1.25;
  margin-bottom: 14px;
}

.magazine-hero p {
  font-size: 1.1rem;
  color: var(--slate-muted);
  max-width: 680px;
  margin: 0 auto 30px auto;
}

/* ---------------- Search & Filter Toolbar ---------------- */
.filter-toolbar {
  max-width: 860px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.search-input-wrap {
  position: relative;
  width: 100%;
}

.search-input-wrap input {
  width: 100%;
  padding: 14px 20px 14px 48px;
  border-radius: var(--radius-pill);
  border: 1.5px solid var(--border-subtle);
  background-color: #FFFFFF;
  font-size: 0.95rem;
  color: var(--slate-dark);
  outline: none;
  box-shadow: var(--shadow-sm);
  transition: all 0.25s ease;
}

.search-input-wrap input:focus {
  border-color: var(--teal-primary);
  box-shadow: 0 0 0 4px var(--teal-glow);
}

.search-icon {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  fill: var(--slate-muted);
  pointer-events: none;
}

.category-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.cat-pill {
  padding: 8px 18px;
  border-radius: var(--radius-pill);
  font-size: 0.85rem;
  font-weight: 500;
  background-color: #FFFFFF;
  color: var(--slate-body);
  border: 1px solid var(--border-subtle);
  cursor: pointer;
  transition: all 0.2s ease;
}

.cat-pill:hover, .cat-pill.active {
  background-color: var(--teal-primary);
  color: #FFFFFF;
  border-color: var(--teal-primary);
  box-shadow: 0 4px 12px var(--teal-glow);
}

/* ---------------- Featured Lead Article Card ---------------- */
.featured-lead-section {
  padding: 40px 0 20px 0;
}

.featured-card {
  background-color: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-card);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.featured-image-box {
  position: relative;
  min-height: 380px;
  overflow: hidden;
}

.featured-image-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.featured-card:hover .featured-image-box img {
  transform: scale(1.04);
}

.featured-badge-float {
  position: absolute;
  top: 18px;
  left: 18px;
  background: var(--coral-primary);
  color: #FFFFFF;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  box-shadow: 0 4px 10px rgba(0,0,0,0.18);
}

.featured-content {
  padding: 40px 36px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.article-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 0.82rem;
  color: var(--slate-muted);
  margin-bottom: 14px;
}

.meta-category {
  color: var(--teal-primary);
  font-weight: 600;
}

.featured-title {
  font-family: var(--font-heading);
  font-size: 2rem;
  color: var(--slate-darkest);
  line-height: 1.3;
  margin-bottom: 16px;
}

.featured-excerpt {
  font-size: 0.96rem;
  color: var(--slate-body);
  line-height: 1.7;
  margin-bottom: 24px;
}

.featured-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 20px;
  border-top: 1px solid var(--border-subtle);
}

.author-chip {
  display: flex;
  align-items: center;
  gap: 10px;
}

.author-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--teal-light);
  color: var(--teal-dark);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
}

.author-name {
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--slate-dark);
  line-height: 1.2;
}

.read-btn-teal {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: var(--teal-primary);
  color: #FFFFFF;
  padding: 10px 22px;
  border-radius: var(--radius-pill);
  font-size: 0.88rem;
  font-weight: 600;
  box-shadow: 0 4px 12px var(--teal-glow);
  transition: all 0.25s ease;
}

.read-btn-teal:hover {
  background-color: var(--teal-hover);
  transform: translateX(2px);
}

/* ---------------- Main Layout: Content Grid & Sidebar ---------------- */
.main-blog-layout {
  padding: 40px 0 80px 0;
}

.layout-grid {
  display: grid;
  grid-template-columns: 2.1fr 1fr;
  gap: 40px;
}

/* Article Card Grid */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

.article-card {
  background-color: var(--bg-card);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-card);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: all 0.3s ease;
}

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

.card-img-wrap {
  position: relative;
  height: 210px;
  overflow: hidden;
  background-color: var(--slate-light);
}

.card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.article-card:hover .card-img-wrap img {
  transform: scale(1.05);
}

.card-category-tag {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(15, 23, 42, 0.82);
  color: #FFFFFF;
  backdrop-filter: blur(4px);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

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

.card-meta-row {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.78rem;
  color: var(--slate-muted);
  margin-bottom: 10px;
}

.card-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  color: var(--slate-darkest);
  line-height: 1.35;
  margin-bottom: 10px;
}

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

.card-excerpt {
  font-size: 0.88rem;
  color: var(--slate-body);
  line-height: 1.6;
  margin-bottom: 18px;
  flex-grow: 1;
}

.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  border-top: 1px solid var(--border-subtle);
  font-size: 0.84rem;
}

.card-read-link {
  font-weight: 600;
  color: var(--teal-primary);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.card-read-link:hover {
  color: var(--teal-hover);
  text-decoration: underline;
}

/* ---------------- Sidebar Components ---------------- */
.blog-sidebar {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.sidebar-widget {
  background-color: var(--bg-card);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-card);
  padding: 26px 24px;
  box-shadow: var(--shadow-sm);
}

.widget-title {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  color: var(--slate-darkest);
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--teal-primary);
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Author / Curator Bio Widget */
.curator-card {
  text-align: center;
}

.curator-img {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--slate-dark);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  font-family: var(--font-heading);
  margin: 0 auto 12px auto;
  border: 3px solid var(--teal-light);
}

.curator-name {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--slate-darkest);
}

.curator-role {
  font-size: 0.78rem;
  color: var(--teal-primary);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 10px;
}

.curator-bio {
  font-size: 0.85rem;
  color: var(--slate-muted);
  line-height: 1.55;
  margin-bottom: 16px;
}

.curator-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  background: var(--bg-main);
  padding: 10px;
  border-radius: var(--radius-sm);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--slate-dark);
}

/* Quick Booking CTA Box (Sunset Coral) */
.booking-funnel-widget {
  background: linear-gradient(135deg, var(--slate-darkest) 0%, var(--slate-dark) 100%);
  color: #FFFFFF;
  border: none;
}

.booking-funnel-widget .widget-title {
  color: #FFFFFF;
  border-bottom-color: var(--coral-primary);
}

.funnel-subtitle {
  font-size: 0.88rem;
  color: #CBD5E1;
  line-height: 1.5;
  margin-bottom: 18px;
}

.funnel-phone-pill {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  color: #FFFFFF;
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 14px;
}

.funnel-phone-pill svg {
  fill: var(--coral-primary);
}

.btn-coral-block {
  width: 100%;
  display: block;
  text-align: center;
  background-color: var(--coral-primary);
  color: #FFFFFF !important;
  font-weight: 600;
  padding: 12px;
  border-radius: var(--radius-pill);
  box-shadow: 0 4px 14px var(--coral-glow);
  cursor: pointer;
  border: none;
  transition: all 0.25s ease;
}

.btn-coral-block:hover {
  background-color: var(--coral-hover);
  transform: translateY(-2px);
}

/* Trending Commercial Packages Widget */
.trending-pkg-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.trending-pkg-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-subtle);
}

.trending-pkg-item:last-child {
  padding-bottom: 0;
  border-bottom: none;
}

.pkg-thumb {
  width: 58px;
  height: 58px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  flex-shrink: 0;
}

.pkg-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pkg-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.pkg-name {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--slate-darkest);
  line-height: 1.3;
}

.pkg-name:hover {
  color: var(--teal-primary);
}

.pkg-price-badge {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--coral-primary);
}

/* ---------------- Slate Charcoal Master Footer ---------------- */
.blog-footer {
  background-color: var(--slate-darkest);
  color: #94A3B8;
  padding: 60px 0 24px 0;
  border-top: 3px solid var(--teal-primary);
}

.footer-top-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 36px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-col h4 {
  color: #FFFFFF;
  font-family: var(--font-heading);
  font-size: 1.15rem;
  margin-bottom: 16px;
}

.footer-about p {
  font-size: 0.88rem;
  line-height: 1.6;
  margin-bottom: 14px;
}

.footer-contact-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 0.88rem;
}

.footer-contact-list a {
  color: #E2E8F0;
}

.footer-contact-list a:hover {
  color: var(--teal-primary);
}

.footer-links-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.86rem;
}

.footer-links-list a {
  color: #CBD5E1;
  transition: color 0.2s;
}

.footer-links-list a:hover {
  color: #5EEAD4;
  padding-left: 4px;
}

.footer-map-card {
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  margin-top: 10px;
}

.footer-bottom-strip {
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
}

.ssl-trust-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #38BDF8;
  font-weight: 500;
}

/* ---------------- Enquiry Modal ---------------- */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(5px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  padding: 20px;
}

.modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.modal-dialog {
  background: #FFFFFF;
  max-width: 520px;
  width: 100%;
  border-radius: var(--radius-lg);
  padding: 34px 30px;
  position: relative;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-card);
}

.modal-close-x {
  position: absolute;
  top: 16px;
  right: 18px;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--slate-muted);
  cursor: pointer;
}

.modal-kick {
  color: var(--teal-primary);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.modal-heading {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  color: var(--slate-darkest);
  margin: 4px 0 16px 0;
}

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

.form-group label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--slate-dark);
  margin-bottom: 5px;
}

.form-group input, .form-group textarea, .form-group select {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  color: var(--slate-darkest);
  outline: none;
  background: #FFFFFF;
}

.form-group input:focus, .form-group textarea:focus {
  border-color: var(--teal-primary);
}

.form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.form-status-box {
  margin-top: 14px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  display: none;
}

.form-status-box.success {
  display: block;
  background: #ECFDF5;
  color: #065F46;
  border: 1px solid #10B981;
}

.form-status-box.error {
  display: block;
  background: #FEF2F2;
  color: #991B1B;
  border: 1px solid #EF4444;
}

/* ---------------- Responsive Breakpoints ---------------- */
@media (max-width: 960px) {
  .layout-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .featured-card {
    grid-template-columns: 1fr;
  }
  .featured-image-box {
    min-height: 260px;
  }
  .footer-top-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .articles-grid {
    grid-template-columns: 1fr;
  }
  .magazine-hero h1 {
    font-size: 2rem;
  }
  .footer-top-grid {
    grid-template-columns: 1fr;
  }
  .form-row-2 {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .top-bar-right {
    display: none;
  }
}
