  .custom-navbar {
      background-color: white !important;
      min-height: 50px !important;
      padding-top: 1.5rem;
  }

  .custom-navbar.sticky-nav {
      padding: 0 !important;
  }

  #terpene-hero {
      padding-top: 13rem !important;
      position: relative;
      height: 450px;
      overflow: visible;
      /* allow images to overflow safely */
  }

  /* Double curve background */
  .double-curve-bg {
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 150%;
      z-index: 0;
      overflow: hidden;
      line-height: 0;
      /* Eliminates inline img top spacing */

  }

  .double-curve-bg img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      display: block;

  }


  .terpene-graphics {
      position: absolute;
      bottom: 0;
      left: 0;
      width: 100%;
      z-index: 2;
      pointer-events: none;
      padding-bottom: 10px;
      /* prevents image cut-off */
  }

  .terpene-edge-img {
      width: 300px;
      /* bigger */
      max-width: 100%;
      margin-bottom: -5px;
      /* minimal pull to align just over the curve */
      position: relative;
      z-index: 2;
  }

  @media (max-width: 768px) {
      #terpene-hero {
          height: 420px;
      }

      .terpene-edge-img {
          width: 150px;
          margin-bottom: -10px;
      }
  }


  /* Anatomy Section */

  #anatomy-section {
      padding-top: 7rem !important;
      padding: 3rem 0;
      max-width: 900px;
      margin: 0 auto;
      text-align: center;
  }

  #anatomy-section .d-flex {
      display: flex;
      justify-content: center;
      gap: 7rem !important;
      /* horizontal gap */
      align-items: flex-end;
  }

  .img-text-group {
      max-width: 280px;
      flex-shrink: 0;
      /* Prevent shrinking */
      text-align: left;
  }

  .img-desc {
      padding-top: 2rem;
  }

  .anatomy-img {
      max-width: 100%;
      border-radius: 8px;
      display: block;
      margin: 0 auto;
      transform: rotate(-5deg);
      transition: transform 0.3s ease;
  }

  .img-text-group:nth-child(2) {
      transform: translateY(15px);
  }

  .img-text-group:nth-child(3) {
      transform: translateY(30px);
  }

  /* iPads and tablets (portrait and landscape) */
  @media (max-width: 1024px) {

      /* Stack vertically, center images and text */
      #anatomy-section .d-flex {
          flex-direction: column !important;
          gap: 2.5rem !important;
          align-items: center !important;
      }

      .img-text-group {
          max-width: 260px !important;
          text-align: center !important;
          transform: none !important;
      }

      .anatomy-img {
          max-width: 90% !important;
          height: auto !important;
          margin: 0 auto !important;
          transform: none !important;
      }

      .img-desc {
          padding-top: 1rem !important;
          text-align: center !important;
      }
  }

  @media (max-width: 575px) {

      /* Smaller images for small phones */
      .img-text-group {
          max-width: 70% !important;
      }

      .anatomy-img {
          max-width: 100% !important;
      }
  }



  /* Terpene Facts Section */

  .bg-dark {
      background-color: #181818 !important;
  }

  .container-terpene {
      display: flex;
      justify-content: center;
      align-items: stretch;
      padding: 4rem 3rem;
      gap: 2rem;
      flex-wrap: wrap;
  }

  .left-block {
      min-width: 80px;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      gap: 2rem;
      padding-top: 0.5rem;
  }

  .exclusive-text {
      font-size: 0.9rem;
      color: #bbb;
      letter-spacing: 0.1em;
      margin-bottom: 1rem;
  }

  .vertical-text {
      writing-mode: vertical-rl;
      transform: rotate(180deg);
      font-weight: 900;
      font-size: 2.5rem;
      letter-spacing: 0.15em;
      line-height: 1;
      color: #eee;
      margin: 0;
  }

  .image-wrapper img {
      max-width: 500px;
      border-radius: 12px;
      box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
      height: 555px;
  }

  .right-text {
      max-width: 420px;
      padding-top: 1.5rem;
  }

  .right-text h3 {
      font-size: 2.2rem;
      margin-bottom: 1rem;
  }

  .right-text p {
      font-size: 1rem;
      line-height: 1.8;
      color: #ddd;
      margin-bottom: 2rem;
  }

  /* Responsive */
  @media (max-width: 1024px) {
      .container-terpene {
          flex-direction: column !important;
          align-items: center !important;
          padding-left: 1rem !important;
          padding-right: 1rem !important;
          gap: 2.5rem !important;
          text-align: center !important;
      }

      .left-block,
      .exclusive-text {
          text-align: center !important;
      }

      .right-text {
          max-width: 100% !important;
          padding: 1rem !important;
          margin: 0 auto !important;
          text-align: center !important;
      }

      .vertical-text {
          writing-mode: horizontal-tb !important;
          transform: none !important;
          font-size: 2.5rem !important;
          margin: 0 auto !important;
      }

      .image-wrapper img {
          max-width: 100% !important;
          height: auto !important;
          margin: 0 auto !important;
          border-radius: 12px !important;
      }
  }

  @media (max-width: 575px) {
      .vertical-text {
          font-size: 2rem !important;
      }

      .right-text h3 {
          font-size: 1.2rem !important;
      }

      .right-text p {
          font-size: 0.95rem !important;
      }
  }





  /* Carousel for images */

/* .image-carousel-section {
      padding-top: 5rem !important;
  }*/

  .carousel-img-wrapper {
      position: relative;
      overflow: hidden;
      border-radius: 12px;
      cursor: pointer;
      /* box-shadow: 0 6px 18px rgba(0,0,0,0.4); */
  }

  .carousel-img {
      transition: transform 0.3s ease;
      display: block;
      width: 100%;
      height: 20rem;
      object-fit: cover;
  }

  /* Slight zoom on hover */
  .carousel-img-wrapper:hover .carousel-img {
      transform: scale(1.05);
  }

  /* Dark overlay on hover */
  .carousel-img-wrapper::after {
      content: '';
      position: absolute;
      top: 0;
      left: 0;
      right: 0;
      bottom: 0;
      background-color: transparent;
      transition: background-color 0.3s ease;
      pointer-events: none;
  }

  .carousel-img-wrapper:hover::after {
      background-color: rgba(0, 0, 0, 0.4);
  }

  /* Slightly move controls outward */
  .carousel-control-prev {
      left: -3.5rem;
  }

  .carousel-control-next {
      right: -3.5rem;
  }

  .carousel-control-prev-icon,
  .carousel-control-next-icon {
      background-color: white;
      border-radius: 50%;
      width: 3rem;
      height: 3rem;
      background-size: 1rem 1rem;
      background-repeat: no-repeat;
      background-position: center;
      filter: none !important;
  }

  /* Use better arrow SVGs with proper viewBox to avoid cutoff */
  .carousel-control-prev-icon {
      background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='black' viewBox='0 0 16 16'%3E%3Cpath d='M11 1L4 8l7 7'/%3E%3C/svg%3E");
  }

  .carousel-control-next-icon {
      background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='black' viewBox='0 0 16 16'%3E%3Cpath d='M5 1l7 7-7 7'/%3E%3C/svg%3E");
  }

  /* Hover effect (optional) */
  .carousel-control-prev-icon:hover,
  .carousel-control-next-icon:hover {
      box-shadow: 0 0 8px rgba(0, 0, 0, 0.5);
  }

  *@
  /* Terpenes blog section */


  /* Hero Background */
  .terpene-hero-section {
      background: url('/images/terpenes-blog-bg.jpg') center/cover no-repeat;
      height: 75vh;
      display: flex;
      align-items: center;
      justify-content: center;
      text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.6);

  }

  /* Center Floating Image */
  .terpene-image-wrapper {
      position: relative;
      margin-top: 35px;
      padding-top:3rem;
      /* 25% overlap into hero */
      z-index: 10;
  }

  .terpene-center-img {
      max-width: 700px;
      border-radius: 10px;
      box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  }

  /* Dark Section */
  .terpene-dark-section {
      background-color: #121212;
      margin-top: -290px;
      /* 25% overlap into hero */
  }

  .terpene-cards {
      padding-top: 300px;
  }

  /* Transparent Blog Cards */
  .terpene-card {
      background: transparent;
      color: white;
      padding: 1rem 0;
      padding-top: 8rem;
      padding-bottom: 2rem;
      text-align: left;
      font-size: 1.2rem;
      max-width: 350px;
      margin-left: auto;
      margin-right: auto;
  }

  .terpene-card img {
      transition: transform 0.3s ease;
      height: 250px;
      width: 100%;
      object-fit: cover;
  }

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

  /* Button Style */
  .btn-outline-light {
      border: 1px solid #fff;
      color: #fff;
      transition: all 0.3s;
      margin-bottom: 5rem;
      font-size: 1.2rem;
      padding: 0.5rem;
      padding-left: 1.5rem;
      padding-right: 1.5rem;
  }

  .btn-outline-light:hover {
      background-color: teal;
      border: none;
      color: #000;
  }




  @media (max-width: 991px) {

      .carousel-img {
          transition: transform 0.3s ease;
          height: 15rem;
      }
  }

  @media (max-width: 767px) {

      .carousel-img {
          transition: transform 0.3s ease;
          height: 9rem;
      }

      /* Slightly move controls outward */
      .carousel-control-prev {
          left: -1.5rem;
      }

      .carousel-control-next {
          right: -1.5rem;
      }

      .right-text h3{

          font-size:2rem!important;
      }


    .terpene-center-img {
        width: 350px!important;

    }

    .terpene-hero-section h1{

        margin-top:3rem!important;

    }
  }


  /* Receptors anatomy section */


  #receptor-anatomy {
      padding-top: 7rem !important;
      padding-bottom: 7rem !important;
  }