body {
  overflow-x: hidden !important;
}
/* -------------------------------------- */
/* 🔽 Responsive Font Scaling for Blogs */
/* -------------------------------------- */
@media (max-width: 767.98px) {
  /* General heading adjustments */
  .full-blog-post h1,
  .full-blog-post h2,
  .full-blog-post h3,
  .blog-banner h2,
  .candeur-title,
  .skyline-heading {
    font-size: clamp(1.1rem, 5vw, 1.6rem) !important;
    line-height: 1.3;
  }

  /* Blog title inside banner (was display-4) */
  .blog-banner h2.candeur-title {
    font-size: clamp(1.4rem, 6vw, 1.8rem) !important;
  }

  /* Full blog title (was display-5) */
  .full-blog-post h1.candeur-title {
    font-size: clamp(1.3rem, 5.5vw, 1.7rem) !important;
  }

  /* Paragraphs and content */
  .full-blog-post p,
  .blog-content p,
  .accordion-body,
  .text-secondary {
    font-size: 0.9rem !important;
    line-height: 1.6;
  }

  /* FAQ section header */
  .accordion h3.display-6 {
    font-size: 1.25rem !important;
  }

  /* Button text */
  .full-blog-post button.btn {
    font-size: 0.9rem !important;
    padding: 0.5rem 1rem;
  }
}

.blog-article-body a {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  color: #ffd700; /* Base color (yellow/gold) */
  margin-top: auto; /* Push link to the bottom */
}

/* Base style for the Read More link */
.read-more {
  background: none;
  border: none;
  color: #b68c7c; /* Base color for the text */
  font-weight: 600;
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  cursor: pointer;
  padding: 0;
  transition: all 0.3s ease;
}

/* Style for the Arrow icon (SVG/Font Awesome) */
.read-more .icon {
  display: inline-block;
  transition: transform 0.3s ease;
  /* You had a separate .arrow class, using .icon as per your HTML */
}

/* 1. REMOVED: .read-more:hover { color: #8a5d4e; } */

/* 2. NEW: Trigger animations when the parent article is hovered/focused */
article:hover .read-more,
article:focus-within .read-more {
  color: #8a5d4e; /* Change link color on card hover */
}

article:hover .read-more .icon,
article:focus-within .read-more .icon {
  transform: translateX(5px); /* Move icon right on card hover */
}

/* ------------------------------------------------------------------- */
/* --- HOVER EFFECTS (UNCHANGED CORE LOGIC) --- */
/* ------------------------------------------------------------------- */

/* using the has() relational pseudo selector (or a standard hover fallback) */
article:hover,
article:focus-within {
  --img-scale: 1.1; /* Image scroll/zoom effect */
  --link-icon-translate: 0;
  --link-icon-opacity: 1;
  /* Updated shadow for a lifted effect */
  box-shadow: rgba(0, 0, 0, 0.25) 0px 10px 20px, rgba(0, 0, 0, 0.1) 0px 5px 5px;
  transform: translateY(-5px); /* Lift the card slightly */
}

.blog-card-custom {
  border-radius: 1rem;
  overflow: hidden;
  background: #fff;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

.blog-card-custom:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.15);
}

/* Image styling */
.blog-card-custom img {
  width: 100%;
  height: 230px;
  object-fit: cover;
  border-top-left-radius: 1rem;
  border-top-right-radius: 1rem;
  transition: transform 0.4s ease-in-out;
}

.blog-card-custom:hover img {
  transform: scale(1.06);
}

/* Text content */
.article-body {
  background-color: #091240;
  padding: 1.25rem;
}

.article-body h2 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
  line-height: 1.4;
  color: #ffffff;
}

.article-body p {
  font-size: 0.95rem;
  color: #e7e7e7;
  line-height: 1.5;
  margin-bottom: 1.2rem;
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2; /* Number of lines to show */
}

/* CSS Variables for Animation Control */
article {
  position: relative;
  border-radius: 16px;
  background: #fff;
  transform-origin: center;
  transition: all 0.4s ease-in-out;
  overflow: visible; /* ✅ allow content to show */
  background-color: #f0f0f0;
  cursor: pointer;
  width: 100%;
  display: flex;
  flex-direction: column;
}

/* Ensure the entire card is clickable */
article a::after {
  position: absolute;
  inset-block: 0;
  inset-inline: 0;
  cursor: pointer;
  content: "";
}

article h2 {
  margin: 0 0 8px 0;
  font-size: 1.25rem;
  letter-spacing: 0.06em;
  color: #f0f0f0;
  transition: color 0.3s ease-out;
}

figure {
  margin: 0;
  padding: 0;
  overflow: hidden;
}

article img {
  width: 100%;
  height: 240px; /* ✅ Definite height for uniform blog card images */
  object-fit: cover;
  object-position: left center; /* ✅ Align image to left */
  transform: scale(var(--img-scale));
  transition: transform 0.4s ease-in-out;
}

.article-body .article-date {
  position: absolute;
  bottom: 8px;
  right: 12px;
  margin: 0;
  font-size: 0.75rem;
  color: #999999;
}

article a {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  color: #ffd700;
  margin-top: auto;
}

article a:focus {
  outline: 1px dotted #ffd700;
}

article a .icon {
  min-width: 20px;
  width: 20px;
  height: 20px;
  margin-left: 5px;
  transform: translateX(var(--link-icon-translate));
  opacity: var(--link-icon-opacity);
  transition: all 0.3s;
}

/* Hover effects */

/* Responsive typography */
@media (max-width: 1199.98px) {
  article h2 {
    font-size: 1rem;
  }
}

/************************ 
Generic layout (sizing and grid)
**************************/
.articles {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  margin-left: -12px;
  margin-right: -12px;
  padding-left: 0;
  padding-right: 0;
}

/* ------------------------------------------------------------------- */
/* --- BLOG BANNER STYLING --- */
/* ------------------------------------------------------------------- */

/* Blog Section Wrapper */
.blogs-section {
  width: 100%;
  max-width: 1400px; /* you can increase this if needed */
  margin: 0 auto;
  padding: 2rem 1rem;
}

/* Blog Grid */
.blog-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
}

/* Blog Card */
.blog-card {
  width: 100%;
  max-width: 550px;
  border-radius: 1rem;
  overflow: hidden;
  background: #2f1e25;
  color: white;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.25);
}

/* Blog Image */
.blog-card img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

/* Blog Content */
.blog-content {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.blog-title {
  font-weight: 700;
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
  line-height: 1.4;
}

.blog-description {
  flex-grow: 1;
  font-size: 1rem;
  line-height: 1.6;
  color: #d6cbd3;
  margin-bottom: 1.25rem;
}
/* Responsive adjustments */
@media (max-width: 768px) {
  .blog-grid {
    flex-direction: column;
    align-items: center;
  }

  .blog-card {
    max-width: 100%;
  }
}

.blog-banner {
  background: url(../img/blogs/blogs.jpg);
  height: 450px;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center right;
  background-attachment: scroll;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  padding-left: 5%;
  color: white;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
  font-size: 2rem;
  margin-bottom: 24px;
  border-radius: 0 0 5px 5px;
}
.blog-padding {
  display: block;
  height: 95px;
  background: linear-gradient(180deg, #091240 0%, #101F70 100%);
}

/* --- FULL BLOG POST --- */
.full-blog-post {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  background-color: #f7f7f7;
}
.full-blog-post img {
  width: 100vw;
  max-width: 100vw;
  object-fit: contain;
  object-position: top;
  border-radius: 0 !important;
  transition: object-position 0.4s ease, height 0.4s ease, object-fit 0.4s ease;
}

.article-wrapper img {
  scale: 1.15;
  margin-left: 0.7rem;
}
@media (min-width: 450px) and (max-width: 767.98px) {
  .col-md-4 {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
  article {
    height: 200px;
    flex-direction: row;
  }
  article h2 {
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2; /* Number of lines to show */
  }

  .article-wrapper {
    display: flex;
    flex-direction: row;
    width: 100%;
    gap: 0;
  }

  figure {
    flex-basis: 40%;
    height: 100%;
    width: 40%;
    flex-shrink: 0;
  }

  figure img {
    height: 100%;
    width: 100%;
    object-fit: cover;
    object-position: left center !important; /* ✅ keep left aligned in mobile too */
  }

  .article-body {
    flex-basis: 60%;
    padding: 16px;
    height: 100%;
  }

  .article-body a {
    margin-top: 0;
  }

  .article-body .article-date {
    bottom: 5px;
    right: 5px;
  }
}
@media (max-width: 767.98px) {
  .blog-banner {
    height: 200px;
  }
}
