/* =====================================================
   BLOG DETAIL PAGE  (City Taxi: yellow #fdb813 / dark #2a2a2a)
   Only 3 classes: .blog-hero  .blog-sidebar  .blog-content
   Layout comes from the Bootstrap grid, everything else is styled by tag.
   Media queries are at the bottom of this block.
====================================================== */

/* ---------- HERO ---------- */
.blog-hero {
  position: relative;
  overflow: hidden;
  padding-top: 140px;
  /* clears the header that overlaps the top of the page */
  color: #ffffff;
  background: linear-gradient(135deg, #1c1c1c 0%, var(--color-secondary) 100%);
}

/* dot grid texture */
.blog-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(253, 184, 19, 0.16) 1.5px, transparent 1.5px);
  background-size: 28px 28px;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 85%);
  mask-image: linear-gradient(180deg, #000 0%, transparent 85%);
  pointer-events: none;
}

/* rings */
.blog-hero::after {
  content: '';
  position: absolute;
  right: -220px;
  top: -240px;
  width: 640px;
  height: 640px;
  border-radius: 50%;
  border: 1px solid rgba(253, 184, 19, 0.25);
  box-shadow: 0 0 0 60px rgba(253, 184, 19, 0.06), 0 0 0 130px rgba(253, 184, 19, 0.03);
  pointer-events: none;
}

.blog-hero .container-fluid {
  position: relative;
  z-index: 1;
}

/* breadcrumbs */
.blog-hero nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  margin-bottom: 22px;
  color: #bdbdbd;
  font-size: 14px;
}

.blog-hero nav a {
  color: #bdbdbd;
  transition: color 0.3s ease;
}

.blog-hero nav a:hover {
  color: var(--color-primary);
}

.blog-hero nav a::after {
  content: '/';
  margin-left: 10px;
  color: rgba(255, 255, 255, 0.35);
}

.blog-hero nav strong {
  color: #ffffff;
  font-weight: 500;
}

/* category chip */
.blog-hero h5 {
  margin: 0 0 18px;
}

.blog-hero h5 span {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 16px;
  border: 1px solid rgba(253, 184, 19, 0.45);
  border-radius: 50px;
  background: rgba(253, 184, 19, 0.12);
  color: var(--color-primary);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.blog-hero h5 span::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-primary);
}

.blog-hero h1 {
  margin: 0 0 18px;
  color: #ffffff;
  font-size: clamp(30px, 3.8vw, 46px);
  font-weight: 700;
  line-height: 1.18;
  text-wrap: balance;
}

.blog-hero p {
  max-width: 540px;
  margin: 0 0 26px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 17px;
  line-height: 1.7;
}

/* date / author / read time */
.blog-hero ul {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  color: #bdbdbd;
  font-size: 14px;
}

.blog-hero li i {
  margin-right: 7px;
  color: var(--color-primary);
}

/* photo */
.blog-hero figure {
  position: relative;
  margin: 0;
  padding: 0 0 24px 24px;
}

/* yellow dots behind the photo */
.blog-hero figure::before {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 120px;
  height: 120px;
  background-image: radial-gradient(var(--color-primary) 1.5px, transparent 1.5px);
  background-size: 12px 12px;
}

.blog-hero figure img {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3.2;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 24px;
  background: linear-gradient(135deg, #3a3a3a, var(--color-primary));
  box-shadow: 0 30px 60px -24px rgba(0, 0, 0, 0.6);
}

/* ---------- SIDEBAR ---------- */
.blog-sidebar {
  position: sticky;
  top: 120px;
  /* stays below the sticky header */
  display: grid;
  gap: 18px;
}

.blog-sidebar nav {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 20px 16px;
  border: 1px solid var(--color-border);
  border-radius: 18px;
  background: var(--color-surface);
  box-shadow: 0 10px 30px rgba(42, 42, 42, 0.06);
}

.blog-sidebar h5 {
  margin: 0 0 8px;
  padding-left: 12px;
  color: var(--color-primary-text);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.blog-sidebar nav a {
  padding: 9px 12px;
  border-left: 3px solid transparent;
  border-radius: 6px;
  color: #666666;
  font-size: 14px;
  transition: all 0.2s ease;
}

.blog-sidebar nav a:hover {
  background: var(--color-bg);
  color: var(--color-secondary);
}

/* "active" is added automatically by Bootstrap scrollspy */
.blog-sidebar nav a.active {
  border-left-color: var(--color-primary);
  background: rgba(253, 184, 19, 0.14);
  color: var(--color-secondary);
  font-weight: 700;
}

/* call-to-action card */
.blog-sidebar div {
  padding: 28px 24px;
  border: 1px solid rgba(253, 184, 19, 0.3);
  border-radius: 18px;
  background:
    radial-gradient(circle at 100% 0, rgba(253, 184, 19, 0.3), transparent 55%),
    linear-gradient(160deg, #1c1c1c, var(--color-secondary));
}

.blog-sidebar div strong {
  display: block;
  color: #ffffff;
  font-size: 18px;
}

.blog-sidebar div p {
  margin: 6px 0 20px;
  color: rgba(255, 255, 255, 0.75);
  font-size: 14px;
  line-height: 1.5;
}

.blog-sidebar div .ct-btn {
  width: 100%;
}

/* ---------- ARTICLE (everything inside is styled by tag) ---------- */
.blog-content {
  padding: 48px 52px;
  border: 1px solid var(--color-border);
  border-radius: 26px;
  background: var(--color-surface);
  box-shadow: 0 24px 48px -34px rgba(42, 42, 42, 0.25);
  color: #666666;
  line-height: 1.85;
}

.blog-content> :first-child {
  margin-top: 0;
}

.blog-content p {
  margin: 0 0 18px;
}

.blog-content strong {
  color: var(--color-secondary);
}

.blog-content a:not(.ct-btn) {
  color: var(--color-primary-text);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: var(--color-primary);
  text-underline-offset: 3px;
  transition: color 0.3s ease;
}

.blog-content a:not(.ct-btn):hover {
  color: var(--color-secondary);
}

.blog-content h1,
.blog-content h2,
.blog-content h3,
.blog-content h4,
.blog-content h5,
.blog-content h6 {
  margin: 34px 0 12px;
  color: var(--color-secondary);
  font-weight: 700;
  line-height: 1.3;
  scroll-margin-top: 120px;
}

.blog-content h1 {
  font-size: 34px;
}

.blog-content h2 {
  position: relative;
  margin-top: 50px;
  padding-left: 18px;
  font-size: 27px;
}

/* yellow-to-dark bar before every h2 */
.blog-content h2::before {
  content: '';
  position: absolute;
  left: 0;
  top: 4px;
  bottom: 4px;
  width: 5px;
  border-radius: 3px;
  background: linear-gradient(180deg, var(--color-primary), var(--color-secondary));
}

.blog-content h3 {
  font-size: 21px;
}

.blog-content h4 {
  font-size: 18px;
}

.blog-content h5 {
  font-size: 16px;
}

.blog-content h6 {
  color: var(--color-primary-text);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* lists */
.blog-content ul,
.blog-content ol {
  margin: 0 0 22px;
  padding: 0;
  list-style: none;
}

.blog-content ul li {
  position: relative;
  margin-bottom: 9px;
  padding-left: 26px;
}

.blog-content ul li::before {
  content: '';
  position: absolute;
  left: 4px;
  top: 0.72em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-primary);
}

.blog-content ol {
  counter-reset: n;
}

.blog-content ol li {
    counter-increment: n;
    position: relative;
    margin-bottom: 9px;
    padding-left: 26px;
}

.blog-content ol li::before {
    content: counter(n);
    color: var(--color-primary);
    font-size: 16px;
    font-weight: 700;
    position: absolute;
    left: 4px;
    top: 0px;
    width: 8px;
    height: 8px;
}

.blog-content blockquote {
  margin: 28px 0;
  padding: 22px 28px;
  border-left: 4px solid var(--color-primary);
  border-radius: 0 14px 14px 0;
  background: rgba(253, 184, 19, 0.1);
  color: var(--color-secondary);
  font-size: 18px;
  font-style: italic;
}

/* callout box (key takeaways + the final call to action) */
.blog-content aside {
  margin: 0 0 30px;
  padding: 24px 28px 8px;
  border: 1px solid rgba(253, 184, 19, 0.45);
  border-radius: 18px;
  background: #fff8e6;
}

.blog-content aside h6 {
  margin-top: 0;
}

/* the last callout is the dark "Ready to book?" box */
.blog-content aside:last-child {
  margin: 40px 0 0;
  padding: 30px 32px 32px;
  border-color: var(--color-secondary);
  background:
    radial-gradient(circle at 100% 0, rgba(253, 184, 19, 0.28), transparent 55%),
    var(--color-secondary);
}

.blog-content aside:last-child h6 {
  color: var(--color-primary);
}

.blog-content aside:last-child p {
  max-width: 560px;
  margin-bottom: 22px;
  color: rgba(255, 255, 255, 0.85);
}

/* image inside the article (not used yet, ready for later) */
.blog-content figure {
  margin: 36px -20px;
}

.blog-content figure img {
  display: block;
  width: 100%;
  min-height: 240px;
  object-fit: cover;
  border-radius: 18px;
  background: linear-gradient(135deg, #f7f7f7, #fde7a8);
  box-shadow: 0 24px 48px -26px rgba(42, 42, 42, 0.35);
}

.blog-content figcaption {
  margin-top: 12px;
  color: #777777;
  font-size: 13.5px;
  text-align: center;
}

/* long words / emails never push the page sideways */
.blog-content {
  overflow-wrap: break-word;
}

/* anything pasted into the article stays inside the card */
.blog-content img,
.blog-content iframe,
.blog-content video {
  max-width: 100%;
  height: auto;
}

.blog-content table {
  display: block;
  max-width: 100%;
  margin: 0 0 22px;
  overflow-x: auto;
}

/* "In this article" list for tablets and phones (the sidebar is hidden there) */
.blog-content details {
  margin: 0 0 26px;
  border: 1px solid var(--color-border);
  border-radius: 14px;
  background: var(--color-bg);
}

.blog-content summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  color: var(--color-primary-text);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  list-style: none;
  cursor: pointer;
}

.blog-content summary::-webkit-details-marker {
  display: none;
}

.blog-content summary::after {
  content: '\f078';
  font-family: 'Font Awesome 7 Free';
  font-weight: 900;
  font-size: 12px;
  transition: transform 0.3s ease;
}

.blog-content details[open] summary::after {
  transform: rotate(180deg);
}

.blog-content details a:not(.ct-btn) {
  display: block;
  padding: 10px 18px;
  border-top: 1px solid var(--color-border);
  color: var(--color-secondary);
  font-weight: 500;
  text-decoration: none;
}

.blog-content details a:not(.ct-btn):hover {
  background: rgba(253, 184, 19, 0.14);
}

/* ---------- MEDIA QUERIES (keep at the bottom of style.css with the others) ---------- */
@media (max-width: 1199px) {

  /* narrow column next to the sidebar: a little less padding so the text keeps its width */
  .blog-content {
    padding: 40px 36px;
  }
}

@media (max-width: 991px) {
  .blog-hero {
    padding-top: 120px;
  }

  .blog-hero p {
    max-width: none;
  }

  .blog-content {
    padding: 36px 30px;
  }

  .blog-content h1,
  .blog-content h2,
  .blog-content h3,
  .blog-content h4,
  .blog-content h5,
  .blog-content h6 {
    scroll-margin-top: 90px;
  }
  .blog-hero figure {
    max-width: 800px;
    margin: auto;
    padding: 0;
}
}

@media (max-width: 575px) {
  .blog-hero {
    padding-top: 110px;
  }
 

  .blog-hero figure::before {
    width: 90px;
    height: 90px;
  }

  .blog-content {
    padding: 26px 20px;
    border-radius: 20px;
    font-size: 16px;
  }

  .blog-content h2 {
    margin-top: 40px;
    font-size: 23px;
  }

  .blog-content aside {
    padding: 20px 20px 6px;
  }

  .blog-content aside:last-child {
    padding: 24px 22px 26px;
  }

  .blog-content figure {
    margin: 28px 0;
  }

  .blog-content summary,
  .blog-content details a:not(.ct-btn) {
    padding-left: 16px;
    padding-right: 16px;
  }
}

/* short laptop screens: a sticky sidebar taller than the screen would be cut off */
@media (min-width: 992px) and (max-height: 700px) {
  .blog-sidebar {
    position: static;
  }
}