/* GLOBAL RESET */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  touch-action: manipulation;
  -webkit-overflow-scrolling: touch;
}

/* Prevent iOS bounce effect that can interfere */
body {
  overscroll-behavior: none;
  -webkit-overscroll-behavior: none;

}

/* Ensure smooth scrolling container */
html.lenis {
  height: auto;
}

.lenis.lenis-smooth {
  scroll-behavior: auto;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: 'TestTiemposHeadline-Light';
}

p {
  font-family: 'InterDisplay-Light';
}

body {
  background-color: #fff;
  max-width: 1920px;
  margin: 0 auto;
  touch-action: manipulation;
  -webkit-overflow-scrolling: touch;

}

.container {
  max-width: 1920px;
}

.heading {
  padding: clamp(40px, 4.2vw, 80px) clamp(40px, 4.2vw, 80px) clamp(24px, 2.5vw, 48px);
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.titlebar {
  width: 76.2vw;
  /* 1463 / 1920 = 76.2% */
  max-width: 1463px;
}

.titlebar h1 {
  font-size: clamp(36px, 4vw, 78px);
  line-height: 1.08;
  font-weight: 300;
  font-style: italic;
}

.heading ul {
  display: flex;
  gap: clamp(20px, 2.1vw, 40px);
  width: 76.2vw;
  max-width: 1463px;
  margin-top: clamp(16px, 1.6vw, 32px);
  padding: 0;

}

.heading ul li {
  list-style-type: none;
  font-size: clamp(14px, 1.1vw, 21px);
}

.bd-titlebar {
  width: 76.2vw;
  max-width: 1463px;
  height: clamp(120px, 11vw, 216px);
}


.bd-content {
  padding: clamp(32px, 4vw, 80px);
}

.main-image-wrapper {
  position: relative;
  width: 100%;
  height: clamp(280px, 50vw, 1200px);
  /* ✅ Responsive height */
  overflow: hidden;
}

.main-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform-origin: center;
  transition: transform 0.1s ease-out;
  will-change: transform;
  display: block;
}


.bd-excerpts ul {
  display: flex;
  flex-wrap: wrap;
  list-style-type: none;
  padding-left: 0;
  gap: clamp(12px, 1.5vw, 20px);
  margin: 0;
}

.bd-excerpts ul li {
  border-top: 1px solid rgba(233, 233, 233, 0.7);
  /* 70% opacity */
  padding-top: clamp(20px, 2vw, 33px);
  font-size: clamp(16px, 1.25vw, 24px);
  line-height: 1.4;
}

.bd-excerpts ul li:first-child {
  flex: 0 0 clamp(320px, 37.6vw, 721px);
  max-width: clamp(320px, 37.6vw, 721px);
}


/* Other items take equal remaining space */
.bd-excerpts ul li:not(:first-child) {
  flex: 1;
  min-width: 0;
  /* prevents overflow */
}


.bd-content h2 {
  font-family: 'InterDisplay-Light';
  width: 61.77vw;
  /* 1186 / 1920 = ~61.77% */
  max-width: 1186px;
  font-size: clamp(28px, 3.5vw, 64px);
  line-height: clamp(36px, 5vw, 92px);
  margin: clamp(40px, 6vw, 106px) 0 clamp(20px, 3vw, 44px);
}

.bd-content .w-50 {
  width: 100%;
  justify-content: flex-end;
  margin-left: auto;
  margin-right: clamp(20px, 6.8vw, 132px);
  /* scales between 20px and 132px */
}


.bd-content p {
  margin-bottom: clamp(12px, 1.5vw, 20px);
  line-height: 1.7;
  font-size: clamp(16px, 1.4vw, 21px);
}

.bd-content ul.d-flex {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  padding-left: 0;
  margin: 40px 0 25px 0;
  justify-content: space-between;
}

.bd-content ul.d-flex li {
  flex: 0 0 calc((100% - 40px) / 3);
  max-width: calc((100% - 40px) / 3);
  aspect-ratio: 143 / 150;
  /* Set the same ratio on the container for alignment */
}

.bd-content ul.d-flex li img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  aspect-ratio: 143 / 150;
  /* Maintains image shape across screens */
}


.bd-content h6 {
  font-family: 'InterDisplay-Regular';
  font-size: clamp(16px, 1.4vw, 21px);
  margin: clamp(20px, 4vw, 40px) 0 clamp(15px, 2vw, 25px);
  padding-left: clamp(16px, 2vw, 25px);
  position: relative;
}


.bd-content h6::after {
  position: absolute;
  content: "";
  background-color: #E9E9E9;
  width: clamp(6px, 0.6vw, 8px);
  height: clamp(6px, 0.6vw, 8px);
  border-radius: 50%;
  left: clamp(4px, 0.6vw, 7px);
  top: clamp(4px, 0.6vw, 7px);
}

.bd-related {
  border-top: 1px solid rgba(233, 233, 233, 0.7);
  /* 70% gray tone */
  margin-top: clamp(40px, 8vw, 100px);
  padding-top: clamp(20px, 4vw, 25px);
}

.bd-related h4 {
  font-family: "TestTiemposHeadline-Medium";
  margin-bottom: clamp(20px, 4vw, 30px);
  font-size: clamp(20px, 3vw, 32px);
}

/* Owl nav placement responsive */
.bd-related .owl-nav {
  position: absolute;
  right: 0;
  top: -70px;
  margin-top: 0;
}

.bd-related .owl-nav i.bi {
  font-size: clamp(20px, 2vw, 30px);
}

.bd-related .owl-nav [class*=owl-]:hover {
  background: transparent;
}

.bd-related .owl-nav [class*=owl-] {
  margin: 5px 10px;
}

.bd-related .item {
  overflow: hidden;

}

.bd-related .item img {
  transition: transform 0.2s ease-out, filter 0.3s ease;
  transform-origin: center;
  will-change: transform, filter;
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  filter: blur(0px);
}

.bd-related .item img:hover {
  filter: blur(4px);
  /* 👈 adjust blur strength as needed */
}


#custom-cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 80px;
  height: 80px;
  pointer-events: none;
  z-index: 9999;
  border-radius: 50%;
  background: white;
  mix-blend-mode: difference;
  transform: translate(-50%, -50%) scale(0);
  opacity: 0;
  transition: transform 0.25s ease, opacity 0.25s ease;
  display: flex;
  align-items: center;
  justify-content: center;

  /* Text styling */
  color: black;
  font-size: 1.2vw;
  font-family: 'Aeonik', serif;
  text-align: center;
}


#custom-cursor.visible {
  transform: translate(-50%, -50%) scale(1);
  opacity: 1;
}

/* ------------------------media query for mobile and tablet-------------------------------- */
/* 📱 Responsive Fallback: Mobile & Small Tablets */
@media (max-width: 768px) {
  .heading {
    align-items: flex-start;
    padding: 32px 20px;
  }

  .titlebar,
  .heading ul,
  .bd-titlebar {
    width: 100%;
  }

  .titlebar h1 {
    font-size: clamp(28px, 7vw, 40px);
    line-height: 1.2;
  }

  .heading ul {
    flex-wrap: wrap;
    gap: 12px;
    font-size: 16px;
  }

  .heading ul li {
    font-size: 16px;
  }

  .bd-titlebar {
    height: auto;
  }
}

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

  .bd-excerpts ul li,
  .bd-excerpts ul li:first-child {
    flex: 1 1 100%;
    max-width: 100%;
  }
}

@media (max-width: 768px) {
  .bd-content h2 {
    width: 100%;
    max-width: 100%;
    font-size: 22px;
    line-height: 36px;
    margin: 32px 0 20px;
  }
}

@media (max-width: 768px) {
  .bd-content .w-50 {
    width: 200%;
    justify-content: flex-start;
    margin: 0;
    padding: 0;
  }

  .bd-content .w-50 p {
    width: 200%;
  }
}

@media (max-width: 768px) {
  .bd-content h6 {
    width: 200%;
    font-size: 18px;
    margin: 20px 0 15px;
    padding-left: 16px;
  }

  .bd-content h6::after {
    width: 6px;
    height: 6px;
    left: 4px;
    top: 5px;
  }
}


@media (max-width: 768px) {
  .bd-content ul.d-flex {
    flex-direction: row;
    align-items: center;
    /* Center images */
    width: 200%;
  }

  .bd-content ul.d-flex li {
    flex: 0 0 calc((90% - 10px) / 3);
    max-width: 100%;
    /* Reduce width from full to 80% */
  }

  .bd-content ul.d-flex li img {
    width: 100%;
    height: auto;
    aspect-ratio: 193 / 200;
    object-fit: cover;
    display: block;
  }
}

@media (max-width: 768px) {
  .bd-related {
    padding-top: 20px;
    margin-top: 60px;
  }

  .bd-related h4 {
    text-align: center;
  }

  .bd-related .owl-nav {
    position: static;
    text-align: center;
    margin-top: 10px;
  }

  #custom-cursor {
    display: none !important;
  }
}


@media (max-width: 425px) {
  .bd-content ul.d-flex {
    flex-direction: column;
    width: 200%;
  }

  .bd-content ul.d-flex li {
    flex: 1 1 100%;
    max-width: 100%;
  }

  .bd-content ul.d-flex li img {
    width: 100%;
    height: auto;
    /* ✅ Let it size naturally */
    aspect-ratio: 143 / 150;
    /* Maintain shape */
    object-fit: cover;
    display: block;
  }
}

/* Mobile viewport fixes */
@media (max-width: 768px) {
  body {
    overflow-x: hidden;
  }
}

/* ---------------- */