/* ====== REMOVE BREAKS - Use margin instead ====== */
.position-relative.bg-dark {
  margin-top: 70px; /* Offset for navbar */
  min-height: 100vh;
  display: flex;
  align-items: center;
}

@media (max-width: 768px) {
  .position-relative.bg-dark {
    margin-top: 60px;
    min-height: 100vh;
  }
}

/* ====== CAROUSEL IMAGES ====== */
#demo .carousel-inner,
#demo .carousel-item {
  height: 100%;
}

#demo .carousel-item img {
  width: 100%;
  height: 100%;
  min-height: 100vh;
  object-fit: cover;
  object-position: center;
}

/* Tablets */
@media (min-width: 481px) and (max-width: 768px) {
  .position-relative.bg-dark {
    min-height: 85vh;
  }
  
  #demo .carousel-item img {
    min-height: 85vh;
  }
}

/* Medium screens */
@media (min-width: 769px) and (max-width: 1000px) {
  .position-relative.bg-dark {
    min-height: 75vh;
  }
  
  #demo .carousel-item img {
    min-height: 75vh;
  }
}

/* Desktop */
@media (min-width: 1001px) {
  .position-relative.bg-dark {
    min-height: 70vh;
  }
  
  #demo .carousel-item img {
    min-height: 70vh;
  }
}

/* ====== GRADIENT OVERLAY ====== */
.position-absolute.w-100.h-100[style*="gradient"] {
  pointer-events: none;
  z-index: 1;
}

/* ====== TEXT OVERLAY CONTAINER ====== */
.position-absolute.w-100.text-white.text-center.px-3 {
  z-index: 2;
  bottom: 15% !important;
  left: 0 !important;
  padding: 0 1rem !important;
  max-width: 100%;
  pointer-events: none; 
}


/* iPhone SE and very small phones (320px - 375px) */
@media (max-width: 375px) {
  .position-absolute.w-100.text-white.text-center.px-3 {
    bottom: 2% !important;
    padding: 0 0.5rem !important;
  }
}

/* Small phones (376px - 425px) */
@media (min-width: 376px) and (max-width: 425px) {
  .position-absolute.w-100.text-white.text-center.px-3 {
    bottom: 16% !important;
    padding: 0 0.65rem !important;
  }
}

/* Medium phones (426px - 500px) */
@media (min-width: 426px) and (max-width: 500px) {
  .position-absolute.w-100.text-white.text-center.px-3 {
    bottom: 14% !important;
    padding: 0 0.75rem !important;
  }
}

/* Tablets (481px - 768px) */
@media (min-width: 481px) and (max-width: 768px) {
  .position-absolute.w-100.text-white.text-center.px-3 {
    bottom: 12% !important;
    padding: 0 1.25rem !important;
  }
}

/* Medium screens (769px - 1000px) */
@media (min-width: 769px) and (max-width: 1000px) {
  .position-absolute.w-100.text-white.text-center.px-3 {
    bottom: 10% !important;
    padding: 0 1.5rem !important;
  }
}

/* Desktop (1001px+) */
@media (min-width: 1001px) {
  .position-absolute.w-100.text-white.text-center.px-3 {
    bottom: 10% !important;
    padding: 0 2rem !important;
  }
}

/* ====== HEADLINE ====== */
.hero-headline {
  font-family: "Georgia", "Times New Roman", serif;
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 0.5rem;
  color: #FFD166;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8);
  font-size: 1.1rem;
  word-wrap: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
}

/* iPhone SE specific (320px - 375px) */
@media (max-width: 375px) {
  .hero-headline {
    font-size: 0.88rem;
    line-height: 1.4;
    margin-bottom: 0.3rem;
    letter-spacing: -0.4px;
    max-width: 100%;
  }
}

/* Small phones (376px - 425px) */
@media (min-width: 376px) and (max-width: 425px) {
  .hero-headline {
    font-size: 1rem;
    line-height: 1.35;
    margin-bottom: 0.4rem;
    letter-spacing: -0.3px;
  }
}

/* Medium phones (426px - 480px) */
@media (min-width: 426px) and (max-width: 480px) {
  .hero-headline {
    font-size: 1.15rem;
    margin-bottom: 0.5rem;
  }
}

/* Tablets (481px - 768px) */
@media (min-width: 481px) and (max-width: 768px) {
  .hero-headline {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
  }
}

/* Medium screens (769px - 1000px) */
@media (min-width: 769px) and (max-width: 1000px) {
  .hero-headline {
    font-size: 2rem;
    margin-bottom: 1rem;
  }
}

/* Desktop (1001px+) */
@media (min-width: 1001px) {
  .hero-headline {
    font-size: 2.5rem;
    margin-bottom: 1rem;
  }
}

/* ====== LEAD TEXT ====== */
.lead {
  font-size: 0.8rem;
  line-height: 1.4;
  margin-bottom: 0.75rem !important;
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.8);
  word-wrap: break-word;
  hyphens: auto;
}

/* iPhone SE specific (320px - 375px) */
@media (max-width: 375px) {
  .lead {
    font-size: 0.68rem;
    line-height: 1.5;
    margin-bottom: 0.45rem !important;
    letter-spacing: -0.3px;
    max-width: 100%;
  }
}

/* Small phones (376px - 425px) */
@media (min-width: 376px) and (max-width: 425px) {
  .lead {
    font-size: 0.75rem;
    line-height: 1.45;
    margin-bottom: 0.6rem !important;
    letter-spacing: -0.2px;
  }
}

/* Medium phones (426px - 480px) */
@media (min-width: 426px) and (max-width: 480px) {
  .lead {
    font-size: 0.82rem;
    margin-bottom: 0.7rem !important;
  }
}

/* Tablets (481px - 768px) */
@media (min-width: 481px) and (max-width: 768px) {
  .lead {
    font-size: 0.95rem;
    margin-bottom: 1rem !important;
  }
}

/* Medium screens (769px - 1000px) */
@media (min-width: 769px) and (max-width: 1000px) {
  .lead {
    font-size: 1rem;
    margin-bottom: 1.25rem !important;
  }
}

/* Desktop (1001px+) */
@media (min-width: 1001px) {
  .lead {
    font-size: 1.15rem;
    margin-bottom: 1.25rem !important;
  }
}

/* ====== BUTTON CONTAINER ====== */
.d-flex.justify-content-center.flex-wrap {
  gap: 0.4rem;
  pointer-events: auto;
}

/* ====== BUTTONS ====== */
.position-absolute .btn {
  pointer-events: auto;
  min-height: 44px;
  padding: 0.5rem 0.9rem;
  font-weight: 600;
  font-size: 0.8rem;
  white-space: nowrap;
  margin: 0.2rem !important;
  border: 2px solid currentColor;
}

/* iPhone SE and very small phones (320px - 425px) - Stack vertically */
@media (max-width: 425px) {
  .position-absolute .btn {
    width: calc(100% - 1rem);
    max-width: 240px;
    display: block;
    margin: 0.25rem auto !important;
    padding: 0.6rem 0.9rem;
    font-size: 0.78rem;
    min-height: 42px;
  }
  
  .d-flex.justify-content-center.flex-wrap {
    flex-direction: column;
    align-items: center;
    gap: 0;
  }
}

/* iPhone SE specific - even more compact */
@media (max-width: 375px) {
  .position-absolute .btn {
    max-width: 220px;
    padding: 0.55rem 0.75rem;
    font-size: 0.75rem;
    min-height: 40px;
    margin: 0.2rem auto !important;
  }
}

/* Medium phones (426px - 480px) */
@media (min-width: 426px) and (max-width: 480px) {
  .position-absolute .btn {
    width: calc(100% - 1rem);
    max-width: 260px;
    display: block;
    margin: 0.25rem auto !important;
    padding: 0.6rem 0.9rem;
    font-size: 0.8rem;
    min-height: 42px;
  }
  
  .d-flex.justify-content-center.flex-wrap {
    flex-direction: column;
    align-items: center;
    gap: 0;
  }
}

/* Tablets (481px - 768px) */
@media (min-width: 481px) and (max-width: 768px) {
  .position-absolute .btn {
    padding: 0.55rem 1rem;
    font-size: 0.9rem;
    min-height: 46px;
  }
}

/* Medium screens (769px - 1000px) */
@media (min-width: 769px) and (max-width: 1000px) {
  .position-absolute .btn {
    padding: 0.6rem 1.1rem;
    font-size: 0.95rem;
    min-height: 48px;
  }
}

/* Desktop (1001px+) */
@media (min-width: 1001px) {
  .position-absolute .btn {
    padding: 0.65rem 1.25rem;
    font-size: 1rem;
    min-height: 48px;
  }
}

/* ====== CAROUSEL CONTROLS ====== */
.carousel-control-prev,
.carousel-control-next {
  z-index: 10;
  pointer-events: auto;
  width: 15%;
}


.carousel-control-prev-icon,
.carousel-control-next-icon {
  pointer-events: none;
  width: 2.75rem !important;
  height: 2.75rem !important;
  border-radius: 50%;
  background-color: rgba(0, 0, 0, 0.45) !important;
  background-size: 100% 100% !important;
  backdrop-filter: blur(2px);
  transition: all 0.3s ease;
}

.carousel-control-prev-icon {
  background-image: url("data:image/svg+xml,%3Csvg fill='%23FFFFFF' viewBox='0 0 8 8' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M5.25 0l-4 4 4 4L6 7.25 2.75 4 6 .75z'/%3E%3C/svg%3E") !important;
}
.carousel-control-next-icon {
  background-image: url("data:image/svg+xml,%3Csvg fill='%23FFFFFF' viewBox='0 0 8 8' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M2.75 0l4 4-4 4L2 7.25 5.25 4 2 .75z'/%3E%3C/svg%3E") !important;
}

/* Hover effect — gold arrow on dark background */
.carousel-control-prev-icon:hover,
.carousel-control-next-icon:hover {
  background-color: rgba(0, 0, 0, 0.65) !important;
  background-image: url("data:image/svg+xml,%3Csvg fill='%23FCA311' viewBox='0 0 8 8' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M5.25 0l-4 4 4 4L6 7.25 2.75 4 6 .75z'/%3E%3C/svg%3E") !important;
  transform: scale(1.1);
}

/* General area tweak */
.carousel-control-prev,
.carousel-control-next {
  width: 7%;
  opacity: 0.9;
}
.carousel-control-prev:hover,
.carousel-control-next:hover {
  opacity: 1;
}

/* Make controls more visible and touchable on mobile */
@media (max-width: 768px) {
  .carousel-control-prev,
  .carousel-control-next {
    width: 20%;
  }
  
  .carousel-control-prev-icon,
  .carousel-control-next-icon {
    width: 30px;
    height: 30px;
  }
}

.carousel-indicators li {
  background-color: rgba(255, 255, 255, 0.4);
  border-radius: 50%;
  width: 10px;
  height: 10px;
  margin: 3px;
  transition: background-color 0.3s ease;
}

/* Active dot (highlighted) */
.carousel-indicators .active {
  background-color: #FCA311; /* your CCNY gold */
}

.carousel-indicators {
  z-index: 3;
  bottom: 0.75rem;
  pointer-events: auto;
}

/* iPhone SE - smaller indicators */
@media (max-width: 375px) {
  .carousel-indicators {
    bottom: 0.5rem;
  }
  
  .carousel-indicators li {
    width: 6px;
    height: 6px;
    margin: 0 3px;
  }
}

/* All mobile devices */
@media (max-width: 768px) {
  .carousel-indicators li {
    width: 8px;
    height: 8px;
    margin: 0 4px;
  }
}

/* Safe area for notched devices */
@supports (padding: env(safe-area-inset-bottom)) {
  .position-absolute.w-100.text-white.text-center.px-3 {
    padding-bottom: calc(env(safe-area-inset-bottom) + 1rem) !important;
  }
}

.carousel-indicators {
  z-index: 3;
  bottom: 0.75rem;
  pointer-events: auto;
}

/* iPhone SE - smaller indicators */
@media (max-width: 375px) {
  .carousel-indicators {
    bottom: 0.5rem;
  }
  
  .carousel-indicators li {
    width: 6px;
    height: 6px;
    margin: 0 3px;
  }
}

/* All mobile devices */
@media (max-width: 768px) {
  .carousel-indicators li {
    width: 8px;
    height: 8px;
    margin: 0 4px;
  }
}

/* Safe area for notched devices */
@supports (padding: env(safe-area-inset-bottom)) {
  .position-absolute.w-100.text-white.text-center.px-3 {
    padding-bottom: calc(env(safe-area-inset-bottom) + 1rem) !important;
  }
}

#btn-lavender {
  border-color: #7a5ac8;
  color: #7a5ac8;
  transition: all 0.2s ease;
}

#btn-lavender:hover {
  background-color: #7a5ac8;
  color: #fff;
  transform: translateY(-2px);
}
