/* Image block above heading */
.collection-image-block {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  padding-top: 5vh;
}

.collection-image-block img {
  max-width: 220px;
  height: auto;
}

h1.collection-heading {
  margin-top: 5rem;
  text-align: center;
  font-size: 3rem;
  font-weight: 800;

  color: rgb(255, 255, 255);
}

p.collection-para {
  text-align: center;
  color: white;
  margin: 10px auto 3rem;
  width: 90%;
  font-size: 1rem;
}

.collection-split-blocks {
  display: flex;
  justify-content: center; /* Horizontal center */
  align-items: center; /* Vertical center */
  width: 80%;
  height: 80vh;
  margin: 6vh auto; /* Auto left/right to center the whole block */
}

.collection-left-block {
  flex: 1;
  background-size: cover;
  background-position: center;
  position: relative;
}
.collection-right-block {
  flex: 1;
  background-size: cover;
  background-position: center;
  position: relative;
}

.collection-left-block {
  position: relative;
  overflow: hidden;
  background-image: url("./assets/banner-home/fallback.jpg");
  background-size: cover;
  background-position: center;
}

.collection-left-block video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.collection-right-block {
  background-image: url("../bg-2.jpg");
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 3rem;
  flex-direction: column;
}

.collection-content {
  max-width: 500px;
  /* keeps text narrow for readability */
  margin-bottom: 2rem;
}

.collection-content h2 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: rgb(0, 0, 0);
}

.collection-content p {
  font-size: 1rem;
  line-height: 1.6;
  margin: 0 auto;
  color: #2a2929;
}

.collection-right-block img {
  max-width: 180px;
  height: auto;
}

.collection-left-block img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: center; /* This is the key property */
  z-index: 0;
}

/* =============================
   RESPONSIVE MEDIA QUERIES
============================= */

/* ≤1200px (large tablets / small desktops) */
@media (max-width: 1200px) {
  .collection-content h2 {
    font-size: 2rem;
  }
  .collection-content p {
    font-size: 1rem;
  }
  .collection-right-block {
    padding: 2.5rem;
  }
}

/* ≤1000px (tablets landscape) */
@media (max-width: 1000px) {
  .collection-split-blocks {
    height: auto;
    flex-direction: column; /* stack blocks */
  }
  .collection-left-block,
  .collection-right-block {
    flex: none;
    width: 100%;
    height: 50vh; /* split into halves */
  }
  .collection-right-block {
    padding: 2rem;
  }
  .collection-content {
    max-width: 90%;
  }
}

/* ≤800px (tablets portrait) */
@media (max-width: 800px) {
  h1.collection-heading {
    font-size: 2.5rem;
    margin-top: 3vh;
  }
  .collection-content h2 {
    font-size: 1.8rem;
  }
  .collection-content p {
    font-size: 0.95rem;
  }
  .collection-image-block img {
    max-width: 180px;
  }
}

/* ≤600px (large phones) */
@media (max-width: 600px) {
  h1.collection-heading {
    font-size: 2rem;
    margin-top: 2.5vh;
  }
  .collection-content h2 {
    font-size: 1.6rem;
  }
  .collection-content p {
    font-size: 0.9rem;
    line-height: 1.5;
  }
  .collection-right-block img {
    max-width: 140px;
  }
  .collection-right-block {
    padding: 1.5rem;
  }
}

/* ≤400px (phones) */
@media (max-width: 400px) {
  .collection-image-block img {
    max-width: 140px;
  }
  h1.collection-heading {
    font-size: 1.6rem;
  }
  .collection-content h2 {
    font-size: 1.4rem;
  }
  .collection-content p {
    font-size: 0.85rem;
  }
  .collection-right-block img {
    max-width: 120px;
  }
}

/* ≤320px (very small phones) */
@media (max-width: 320px) {
  h1.collection-heading {
    font-size: 1.3rem;
  }
  .collection-content h2 {
    font-size: 1.2rem;
  }
  .collection-content p {
    font-size: 0.8rem;
  }
  .collection-image-block img {
    max-width: 100px;
  }
  .collection-right-block img {
    max-width: 100px;
  }
}

/* Centered overwrites */

.collection-split-blocks {
  display: flex;
  justify-content: center; /* centers left + right inside the container */
  align-items: stretch; /* ensures both blocks take full height */
  width: 95%;
  height: 80vh;
  margin: 6vh auto;
  gap: 2rem;
}

.collection-left-block,
.collection-right-block {
  flex: 1; /* both take equal space */
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Left block with video */
.collection-left-block {
  overflow: hidden;
  background: rgb(1, 77, 77); /* fallback color */
}

.collection-left-block video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover; /* ensures full cover */
  z-index: 0;
}

/* Right block with text */
.collection-right-block {
  flex-direction: column;
  background-image: url("../bg-2.jpg");
  background-size: cover;
  background-position: center;
  text-align: center;
  padding: 3rem;
}

/* Overrites */

/* Base layout */
.collection-split-blocks {
  display: flex;
  justify-content: center;
  align-items: stretch;
  width: 90%;
  height: 80vh;
  margin: 6vh auto;
  gap: 2rem;
}

.collection-left-block,
.collection-right-block {
  flex: 1;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Left block with video */
.collection-left-block {
  overflow: hidden;
  background: rgb(1, 77, 77); /* fallback */
}

.collection-left-block video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

/* Right block with text */
.collection-right-block {
  flex-direction: column;
  background-image: url("../bg-2.jpg");
  background-size: cover;
  background-position: center;
  text-align: center;
  padding: 3rem;
}

/* ≤1000px (tablet landscape) */
@media (max-width: 1000px) {
  .collection-split-blocks {
    flex-direction: column; /* stack vertically */
    height: auto; /* don’t force full height */
    width: 65%; /* more breathing space on small screens */
  }

  .collection-left-block,
  .collection-right-block {
    width: 100%;
    height: auto;
    min-height: 70vh; /* keep some height */
  }

  .collection-right-block {
    padding: 2rem 1.5rem;
  }

  .collection-content {
    max-width: 100%;
  }
}

/* ≤600px (phones) */
@media (max-width: 600px) {
  .collection-split-blocks {
    flex-direction: column; /* stack vertically */
    height: auto; /* don’t force full height */
    width: 85%; /* more breathing space on small screens */
  }

  .collection-left-block,
  .collection-right-block {
    width: 100%;
    height: auto;
    min-height: 50vh; /* keep some height */
  }
  .collection-right-block {
    padding: 1.2rem;
  }

  .collection-content h2 {
    font-size: 1.4rem;
  }

  .collection-content p {
    font-size: 0.9rem;
    line-height: 1.5;
  }

  .collection-image-block img {
    max-width: 140px;
  }
}
