a{
  color: #000;
  text-decoration: none;
}

html {
  width: 100vw !important;
  max-width: 100vw !important;
  overflow-x: hidden;
}

body {
  width: 100vw !important;
  max-width: 100vw !important;
  overflow-x: hidden;
  margin: 0px;
  background-color: rgb(249, 249, 249);
  font-family: "Nunito", sans-serif;
  font-weight: 500;
}

.slider {
  position: absolute;
  bottom: 20px;
  left: 5%;
  display: flex;
  gap: 10px;
}

.slider-btn {
  width: 25px;
  height: 20px;
  background: #fff;
  cursor: pointer;
  padding: 0;
  transition: background-color 0.3s ease, color 0.3s ease;
  border: 1px solid #fff;
  clip-path: polygon(40% 0%, 100% 0%, 60% 100%, 0% 100%);
}

.slider-btn.active {
  background-color: orange;
  border: 1px solid orange;
}

.progress-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.3);
  overflow: hidden;
}

.progress-fill {
  width: 0%;
  height: 100%;
  background: orange;
  transition: width 10s linear;
}

.page {
  max-width: 1180px;
  margin: 40px auto;
  padding: 0 24px;
}

.top-picks-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.top-picks-header h1 {
  font-size: 30px;
}

.arrows {
  display: flex;
  gap: 8px;
}

.arrow {
  width: 34px;
  height: 34px;
  border: 1px solid #ccc;
  background: #fff;
  cursor: pointer;
  font-size: 20px;
}

.arrow:hover {
  background: #f3f3f3;
}

.carousel-wrapper {
  overflow: hidden;
}

.cards-container {
  display: flex;
  gap: 32px;
  overflow-x: auto;
  scroll-behavior: smooth;
  cursor: grab;
}

.cards-container.dragging {
  cursor: grabbing;
  scroll-behavior: auto;
}

.cards-container::-webkit-scrollbar {
  display: none;
}

/* EXACTLY 3 CARDS VISIBLE */
.card {
  min-width: calc((100% - 64px) / 3); /* 2 gaps * 32px */
  max-width: calc((100% - 64px) / 3);
  text-align: left;
}

.card-image img {
  width: 100%;
  height: 420px;
  object-fit: cover;
}

.card h2 {
  font-size: 18px;
  font-weight: 700;
  margin-top: 10px;
}

.price {
  font-size: 16px;
  color: #444;
  margin-top: 4px;
}

/* ========== HERO BASE (DESKTOP & TABLET) ========== */

.hero-container {
  position: relative;
  width: 100%;
  height: 80vh;
  overflow: hidden;
}

.hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Overlay container for all content on left */
.hero-content {
  position: absolute;
  top: 20%; /* start a bit from the top */
  left: 5%; /* margin from left */
  width: 55%;
  color: #000;
}

.hero-content h4 {
  font-size: 1.5rem;
  font-weight: 300;
  margin: 0 0 10px 0;
  color: #909090;
}

.hero-content h1 {
  font-size: 2.7rem;
  font-weight: 600;
  margin: 0 0 20px 0;
}

.hero-content p {
  font-size: 1rem;
  margin: 0 0 20px 0;
  width: 80%;
}

.hero-content button {
  padding: 12px 30px;
  font-size: 1rem;
  cursor: pointer;
  background: #000000;
  color: #ffffff;
  border: none;
}

.slider {
  position: absolute;
  bottom: 20px;
  left: 5%;
  display: flex;
  gap: 10px;
}

.slider-btn {
  width: 25px;
  height: 20px;
  background: #fff;
  cursor: pointer;
  padding: 0;
  transition: background-color 0.3s ease, color 0.3s ease;
  border: 1px solid #fff;
  clip-path: polygon(40% 0%, 100% 0%, 60% 100%, 0% 100%);
}

.progress-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.3);
  overflow: hidden;
}

.progress-fill {
  width: 0%;
  height: 100%;
  background: orange;
  transition: width 10s linear;
}

/* ========== TABLET TWEAKS ========== */
@media (max-width: 992px) {
  .hero-content {
    top: 15%;
    width: 65%;
    left: 6%;
  }

  .hero-content h1 {
    font-size: 2.2rem;
  }

  .hero-content p {
    width: 90%;
  }
}

/* FINAL MOBILE HERO OVERRIDE */
@media (max-width: 600px) {
  .hero-container {
    position: relative;
    width: 100% !important;
    height: 85vh !important;
    overflow: hidden;
  }

  .hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100% !important;
    height: 85vh !important;
    object-fit: cover;
  }

  /* TEXT + BUTTON: top part, centered horizontally */
  .hero-content {
    position: absolute !important;
    top: 10%; /* <<< top area of the image */
    left: 50% !important;
    transform: translateX(-50%); /* center only horizontally */
    width: 80%;
    text-align: center;
    margin: 0;
    color: #000;
    z-index: 2;
  }

  .hero-content h4 {
    font-size: 1.05rem;
    margin-bottom: 6px;
  }

  .hero-content h1 {
    font-size: 2.4rem; /* bigger title */
    font-weight: 700;
    margin-bottom: 12px;
  }

  .hero-content p {
    font-size: 1rem;
    width: 100%;
    margin-bottom: 16px;
  }

  .hero-content button {
    padding: 14px 34px; /* bigger button */
    font-size: 1.1rem;
    border: none;
    background: #000;
    color: #fff;
    cursor: pointer;
  }

  /* progress bar at very bottom */
  .progress-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 1;
  }

  /* slider just above bar */
  .slider {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 2;
  }

  .slider-btn {
    width: 28px;
    height: 22px;
  }
}

/* ----------------------------------------- */
/* RESPONSIVE CAROUSEL: 3 cards → 2 → 1 */
/* ----------------------------------------- */
@media (max-width: 600px) {
  .card {
    min-width: 100%;
    max-width: 100%;
  }

  .cards-container {
    gap: 20px;
  }
}

/* ----------------------------------------- */
/* RESPONSIVE HEADER / NAVBAR */
/* ----------------------------------------- */
@media (max-width: 768px) {
  header {
    height: 80px;
    padding: 0 16px;
  }

  .logo img {
    height: 42px;
  }

  .mobile-menu a {
    padding: 14px 20px;
    font-size: 1rem;
  }
}

/* TRENDING SECTION */
.trending {
  width: 82vw;
  overflow: hidden;
  padding: 9vw 0;
  margin: 0 auto;
}

.trending h1 {
  font-size: 25px;
  margin-bottom: 2rem;
}

/* First big card */
.card-a img {
  width: 82vw;
  height: 78vh; /* desktop/laptop default */
  object-fit: cover;
}

.image-content {
  margin-top: calc(-78vh + 50px);
  margin-bottom: calc(80vh - 80px);
  margin-left: 3vw;
  color: #fff;
}

.image-content h4 {
  font-size: 15px;
}

.image-content h1 {
  font-size: 45px;
  margin: -5px 0 -10px 0;
}

.image-content h3 {
  width: 35%;
}

.image-content button {
  border: none;
  background-color: #000;
  color: #fff;
  padding: 15px 28px;
  margin-top: 20px;
  cursor: pointer;
}

/* Two smaller cards */
.card-b-holder {
  margin-top: -29vh;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2vw;
  width: 82vw;
}

.card-b img {
  width: 40vw;
  height: 37vh; /* same height for both smaller cards */
  object-fit: cover;
}

.image-content-b {
  margin-top: -17vh;
  margin-bottom: 5vh;
  margin-left: 3vw;
  color: #fff;
}

.image-content-b h2 {
  width: 40%;
}

/* RESPONSIVE ADJUSTMENTS */

@media (min-width: 992px) and (max-width: 1024px) {
  .card-a img {
    height: 30vh;
  }

  .card-a .image-content {
    margin-top: -27vh;
    margin-bottom: 52vh;
  }

  .card-b {
    margin-top: -14vh;
  }

  .card-b img {
    height: 22vh !important;
  }

  .card-b h2 {
    margin-top: 6vh !important;
  }
}

@media (min-width: 1000px) and (max-width: 1030px) and (max-height: 600px) {
  .card-a img {
    width: 100%;
    height: 60vh !important;
    display: block;
    margin: 0 auto;
  }

  .image-content {
    left: 50%;
    transform: translateY(-80%);
    width: 80%;
    margin-top: 20px; /* replaces negative margin system */
    margin-bottom: 0;
  }

  .image-content h4 {
    font-size: 15px;
  }

  .image-content h1 {
    font-size: 35px;
    margin-top: -10px !important;
  }

  .image-content h3 {
    font-size: 18px;
  }

  .card-b {
    transform: translateY(-92%);
  }

  .card-b img {
    width: 100%;
    height: 30vh !important;
    display: block;
    margin: 0 auto;
  }

  .card-b-holder {
    grid-template-columns: 1fr 1fr; /* Keep 2 columns on tablet */
    gap: 2vw;
    margin-top: 2rem;
    width: 100%;
    justify-items: center;
  }

  .image-content-b {
    left: 50%;
    width: 80%;
    transform: translateY(-152%);
    margin-top: 15px;
  }

  .image-content-b h2 {
    font-size: 20px;
    width: 50%;
  }
}

@media (min-width: 911px) and (max-width: 913px) {
  .card-a img {
    width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
  }

  .image-content {
    left: 50%;
    transform: translateY(-125%);
    width: 80%;
    margin-top: 20px; /* replaces negative margin system */
    margin-bottom: 0;
  }

  .image-content h4 {
    font-size: 15px;
  }

  .image-content h1 {
    font-size: 35px;
    margin-top: -10px !important;
  }

  .image-content h3 {
    font-size: 18px;
  }

  .card-b {
    transform: translateY(-85%) !important;
  }

  .card-b img {
    width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
  }

  .card-b-holder {
    grid-template-columns: 1fr 1fr; /* Keep 2 columns on tablet */
    gap: 2vw;
    margin-top: 2rem;
    width: 100%;
    justify-items: center;
  }

  .image-content-b {
    left: 50%;
    width: 80%;
    transform: translateY(-130%);
    margin-top: 15px;
  }

  .image-content-b h2 {
    font-size: 20px;
    width: 50%;
  }
}

/* Tablet adjustments */
@media (min-width: 800px) and (max-width: 992px) {
  .card-a img {
    width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
  }

  .image-content {
    left: 50%;
    transform: translateY(-125%);
    width: 80%;
    margin-top: 20px; /* replaces negative margin system */
    margin-bottom: 0;
  }

  .image-content h4 {
    font-size: 15px;
  }

  .image-content h1 {
    font-size: 35px;
    margin-top: -10px !important;
  }

  .image-content h3 {
    font-size: 18px;
  }

  .card-b {
    transform: translateY(-93%);
  }

  .card-b img {
    width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
  }

  .card-b-holder {
    grid-template-columns: 1fr 1fr; /* Keep 2 columns on tablet */
    gap: 2vw;
    margin-top: 2rem;
    width: 100%;
    justify-items: center;
  }

  .image-content-b {
    left: 50%;
    width: 80%;
    transform: translateY(-130%);
    margin-top: 15px;
  }

  .image-content-b h2 {
    font-size: 20px;
    width: 50%;
  }
}

@media (min-width: 750px) and (max-width: 780px) {
  .card-a img {
    width: 100%;
    height: 30vh !important;
    display: block;
    margin: 0 auto;
  }

  .image-content {
    left: 50%;
    transform: translateY(-120%);
    width: 80%;
    margin-top: 20px; /* replaces negative margin system */
    margin-bottom: 0;
  }

  .image-content h4 {
    font-size: 15px;
  }

  .image-content h1 {
    font-size: 35px;
    margin-top: -10px !important;
  }

  .image-content h3 {
    font-size: 18px;
  }

  .card-b {
    transform: translateY(-93%);
  }

  .card-b img {
    width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
  }

  .card-b-holder {
    grid-template-columns: 1fr 1fr; /* Keep 2 columns on tablet */
    gap: 2vw;
    margin-top: 2rem;
    width: 100%;
    justify-items: center;
  }

  .image-content-b {
    left: 50%;
    width: 80%;
    transform: translateY(-130%);
    margin-top: 15px;
  }

  .image-content-b h2 {
    font-size: 20px;
    width: 50%;
  }
}

@media (min-width: 530px) and (max-width: 550px) {
  .card-a img {
    width: 100%;
    height: 35vh !important;
    display: block;
    margin: 0 auto;
  }

  .image-content {
    left: 50%;
    transform: translateY(-128%);
    width: 80%;
    margin-top: 20px; /* replaces negative margin system */
    margin-bottom: 0;
  }

  .image-content h4 {
    font-size: 12px;
  }

  .image-content h1 {
    font-size: 32px;
    margin-top: -10px !important;
  }

  .image-content h3 {
    font-size: 14px;
    width: 45%;
  }

  .image-content button {
    margin-top: -3px;
  }

  .card-b {
    transform: translateY(-102%);
  }

  .card-b img {
    width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
  }

  .card-b-holder {
    grid-template-columns: 1fr 1fr; /* Keep 2 columns on tablet */
    gap: 2vw;
    margin-top: 2rem;
    width: 100%;
    justify-items: center;
  }

  .image-content-b {
    left: 50%;
    width: 80%;
    transform: translateY(-130%);
    margin-top: 15px;
  }

  .image-content-b h2 {
    font-size: 14px;
    width: 50%;
  }
}

/* CLEANER MOBILE TRENDING */
@media (max-width: 600px) {
  .trending {
    width: 100%;
    padding: 40px 0 32px;
    margin: 0;
    overflow: hidden;
  }

  .trending-h1 {
    font-size: 1.5rem;
    margin: 0 16px 20px;
  }

  /* MAIN BIG CARD */
  .card-a {
    position: relative;
    width: 100%;
  }

  .card-a img {
    width: 100%;
    height: 65vh;
    max-height: 430px;
    object-fit: cover;
    display: block;
  }

  .image-content {
    position: absolute;
    bottom: 18px;
    left: 16px;
    right: 16px;
    margin: 0 !important;
    width: auto;
    transform: none;
    color: #fff;
    text-align: left;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.6);
  }

  .image-content h4 {
    font-size: 0.85rem;
    margin: 0 0 4px;
  }

  .image-content h1 {
    font-size: 1.9rem;
    margin: 0 0 6px;
  }

  .image-content h3 {
    font-size: 0.9rem;
    width: 100%;
    max-width: 85%;
    margin: 0;
  }

  .image-content button {
    margin-top: 10px;
    padding: 10px 22px;
    font-size: 0.95rem;
    border: none;
    background: #000;
    color: #fff;
    cursor: pointer;
  }

  /* TWO SMALLER CARDS UNDER */
  .card-b-holder {
    margin-top: 20px;
    padding: 0 16px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
  }

  .card-b {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 12px;
  }

  .card-b img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
  }

  .image-content-b {
    position: absolute;
    bottom: 14px;
    left: 14px;
    right: 14px;
    margin: 0 !important;
    width: auto;
    transform: none;
    color: #fff;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.6);
  }

  .image-content-b h2 {
    font-size: 0.95rem;
    margin: 0;
  }
}
/* FIX 2nd + 3rd TRENDING CARDS ON MOBILE */
@media (max-width: 600px) {
  .card-b-holder {
    width: 100%;
    margin-top: 20px; /* normal spacing under first card */
    padding: 0 16px;
    display: flex;
    flex-direction: column; /* stack them */
    gap: 16px;
    box-sizing: border-box;
    position: static;
  }

  .card-b {
    position: relative;
    width: 100%;
    margin: 0;
    transform: none !important; /* kill old translateY stuff */
    overflow: hidden;
    border-radius: 12px;
  }

  .card-b img {
    width: 100%;
    height: 220px;
    display: block;
    object-fit: cover;
  }

  .image-content-b {
    position: absolute;
    bottom: 14px;
    left: 14px;
    right: 14px;
    margin: 0 !important;
    transform: none !important;
    width: auto;
    color: #fff;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.6);
  }

  .image-content-b h2 {
    margin: 0;
    font-size: 0.95rem;
  }
}

/* React presto */

.react-presto {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  width: 100%;
  height: 90vh;
  padding: 5vh 4vw;
  align-items: center;
  gap: 2vw;
}

.react-presto div {
  margin-top: 1vh;
  margin-left: 10%;
  z-index: 3;
}

.react-presto div h4 {
  font-size: 24px;
  font-weight: 500;
  width: 20vw;
  color: #616161;
}

.react-presto div h1 {
  font-size: 62px;
  width: 43vw;
  margin-top: -14px;
  letter-spacing: 1.3px;
}

.react-presto div h3 {
  font-size: 24px;
  font-weight: 500;
  width: 36vw;
  letter-spacing: 1px;
}

.react-presto div button {
  padding: 12px 26px 13px 26px;
  background-color: #000;
  color: #fff;
  border: none;
  cursor: pointer;
}

.react-presto img {
  width: 54vw;
  margin-right: 4vw;
  margin-left: -5vw;
  object-fit: cover;
}

/* IMPROVED MOBILE SPACING FOR REACT-PRESTO */
@media (max-width: 600px) {
  /* more space above the section */
  .react-presto {
    margin-top: 40px; /* add breathing room above */
    padding-top: 30px; /* internal padding top */
    gap: 40px; /* space between text + image */
  }

  /* more space under the text block */
  .react-presto div {
    margin-bottom: 24px; /* space before the image starts */
  }

  /* optional: a bit more space between elements inside */
  .react-presto div h1 {
    margin-bottom: 12px;
  }

  .react-presto div h3 {
    margin-bottom: 18px;
  }
}

/* ------------------ Tablet (<=992px) ------------------ */
@media (max-width: 992px) {
  .react-presto {
    grid-template-columns: 1fr; /* stack vertically */
    width: 95vw;
    height: auto;
    padding: 4vh 4vw;
  }

  .react-presto div h4 {
    width: 80%;
    font-size: 20px;
    margin: 0 auto;
    text-align: center;
  }

  .react-presto div h1 {
    width: 90%;
    font-size: 48px;
    margin: 0 auto -10px auto;
    text-align: center;
  }

  .react-presto div h3 {
    width: 90%;
    font-size: 18px;
    text-align: center;
    margin: 0 auto 20px auto;
  }

  .react-presto div button {
    display: block;
    margin: 20px auto 0 auto;
  }

  .react-presto img {
    width: 80%;
    margin: 20px auto 0 auto;
    display: block;
    margin-left: auto;
    margin-right: auto;
  }
}

/* ------------------ Mobile (<=600px) ------------------ */
/* ------------------ Mobile (<=600px) ------------------ */
@media (max-width: 600px) {
  .react-presto {
    grid-template-columns: 1fr;
    width: 100vw; /* full viewport width */
    padding: 5vw 0; /* remove horizontal padding */
    gap: 4vw;
    box-sizing: border-box; /* ensures padding doesn't exceed width */
    overflow: hidden; /* prevent any image spill */
  }

  .react-presto div {
    margin: 0 auto;
    text-align: center;
  }

  .react-presto div h4 {
    font-size: 18px;
    width: 90%;
    margin-top: 15px;
  }

  .react-presto div h1 {
    font-size: 32px;
    width: 90%;
    margin-top: -5px;
  }

  .react-presto div h3 {
    font-size: 16px;
    width: 90%;
    margin-top: 20px;
  }

  .react-presto div button {
    padding: 10px 20px;
    display: block;
    margin: 15px auto 0 auto;
  }

  .react-presto img {
    width: 100%; /* no overflow */
    height: auto;
    margin: 0;
    margin-top: -6vh;
    display: block;
  }
  .trending-h1 {
    margin-left: 3%;
  }
}

.card a {
  text-decoration: none;
  color: inherit;
  display: block;
}

@media (min-width:1400px) and (min-height:1000px){
  .card-a .image-content {
    margin-top: -27vh;
    margin-bottom: 34vh;
  }
}