
/* HERO */
.hero {
  display: flex;
  align-items: center;      /* vertical center */
  justify-content: center;
  position: relative;
  width: 100%;
  min-height: 20rem;
  height: clamp(20rem, 50vh, 35rem);
  overflow: hidden;
  color: var(--white);
}

.hero-carousel {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
}

.slide {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  display: flex;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.slide.active {
  opacity: 1;
}

.image-half {
  flex: 1;
  background-size: cover;  
  background-position: center;
}

.image-half.special {
  background-position: top center;
}

.hero-content {
  position: relative;
  display: flex;  
  flex-flow:column nowrap;             /* enable flex layout */
  align-items: center;         /* vertical center */
  justify-content: center; 
  z-index: 2;
  max-width: 600px;
  margin: 0 auto;
  padding: 1rem;
  width: 100%;
  text-align: center;

  border-radius: 8px;
}

.hero::after {
  /* Dark overlay on top of images */
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1;
}

/* Controls */
.control {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.5);
  border: none;
  color: white;
  font-size: 2rem;
  padding: 0.5rem 1rem;
  cursor: pointer;
  z-index: 3;
  border-radius: 50%;
}

.control.prev { left: 10px; }
.control.next { right: 10px; }
.control:hover { background: rgba(0,0,0,0.8); }

/* GGI Image */
.GGI-longer {
  width: clamp(280px, 80%, 600px);
  display: block;
  margin: 0 auto;
  padding: 1rem 1rem 0rem 1rem;
}

/* --------- Breakpoints --------- */

/* Small screens (mobile) */
@media (max-width: 767px) {
  .hero {
    min-height: 18rem;
    height: clamp(18rem, 55vh, 26rem);
    padding: 2rem 1rem;
  }
  .hero-content h1 {
    font-size: clamp(1.8rem, 6vw, 2.5rem);
  }
  .hero-buttons {
    flex-direction: column;
    gap: 0.75rem;
  }
  .control {
    font-size: 1.5rem;
    padding: 0.3rem 0.7rem;
  }
}

/* Tablet (768px - 1023px) */
@media (min-width: 768px) and (max-width: 1023px) {
  .hero {
    min-height: 22rem;
    height: clamp(22rem, 55vh, 30rem);
    padding: 3rem 2rem;
  }
  .hero-content h1 {
    font-size: clamp(2.2rem, 5vw, 3rem);
  }
  .control {
    font-size: 1.8rem;
  }
  .GGI-longer {
    width: clamp(250px, 50%, 500px);
  }
}

/* Desktop (1024px - 1439px) */
@media (min-width: 1024px) {
  .hero {
    height: clamp(25rem, 60vh, 35rem);
    padding: 4rem 3rem;
  }
  .hero-content h1 {
    font-size: clamp(2.8rem, 3.5vw, 4.5rem);
  }
}

/* Large desktops (1440px+) */
@media (min-width: 1440px) {
  .hero {
    min-height: 30rem;
    height: clamp(30rem, 70vh, 40rem);
    padding: 5rem 4rem;
  }
  .hero-content h1 {
    font-size: clamp(3.5rem, 3vw, 6rem);
  }
}

/* CONTENT SECTIONS */
@media (min-width: 768px) and (max-width: 1023px) {
  .highlight-writing {
    margin: 3rem; /* Reduce padding on smaller screens */
  }
}

@media (min-width: 1024px) {
   .highlight-writing {
    margin: 1rem 2rem;
  }
}

/* Base (mobile-first) */
.gradient {
  background: linear-gradient(
    to bottom,
    black 0%,
    black 10%,
    hsl(45, 70%, 10%) 32%,
    hsl(45, 40%, 35%) 60%,
    hsl(0, 0%, 87%) 80%
  );
  margin:0;
}

@media (max-width: 768px){
.gradient{
 background: linear-gradient(
   to bottom,
    black 0%,
    black 10%,
    hsl(45, 70%, 10%) 32%,
    hsl(45, 40%, 35%) 45%,
    hsl(0, 0%, 87%) 65%
);
  margin:0;
}
}

.content-section {
  display: flex;
  flex-direction: column; /* stack by default */
  align-items: center;
  text-align: center;
  gap: 1.5rem;
  margin: 0rem;
  padding: 2rem 1rem;

}

.content-writing {
  padding: 0rem;
  max-width: 600px;
}

.content-paragraph {
  text-align: left;
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.content-paragraph p {
  width: 100%;
  text-align: left;
}

@media (max-width: 480px) {
  .content-paragraph p {
    width: 100%;
    text-align: left;
  }

  .black{
    text-align:left;
  }
}

.content-image {
  width: 75%;
  max-width: 300px;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 8px;
  padding: .1rem;
}

@media (max-width: 480px) {
  .content-image {
    max-width: 90%;
  }

}

@media (min-width: 768px) and (max-width: 1023px) {
  .content-image {
     max-width: 27%;
    height: auto;
  }
  .content-section{
    padding:2rem;
  }
}

@media (min-width: 1024px) {
  .content-image {
    max-width: clamp(200px, 25vw, 375px);
    height: auto;
  }
  .content-section{
    padding:4rem;
  }
}

/* Tablet & Desktop alternating rows */
@media (min-width: 768px) {
  .content-section {
    flex-direction: row;
    justify-content: center;
    align-items: center;
    text-align: left;
    margin:0;
  }

  .content-section:nth-child(even) {
    flex-direction: row-reverse;
  }

  .content-paragraph {
    text-align: left;
    justify-content: flex-start;
  }
}

/* HIGHLIGHT SECTION */
.highlight-section {
  padding: 3rem 1rem 1rem 1rem;
  text-align: left;
}


@media (min-width: 768px) {
  .highlight-section {
    padding: 2rem;
    
  }
}

.highlight-section p{
  color:black;
}

.super-special {
  padding-bottom: 1rem;
}


.member{
  padding-top:1rem;
}


@media (min-width: 768px) {
  .membership-card{
    margin:1rem 2rem;
  }
  .highlight-writing{
    width: 600px;
  }
}

.membership-card{
  display:flex;
  flex-direction: column;
  flex-wrap: wrap;
  justify-content: center;
  align-content: center;
  margin:1rem .5rem;
  padding:2rem;
  border-radius: 5px;
}

.black {
  color:black;
}

@media (max-width: 480px) {
 .black{
  text-align: center;
 }
}

.membership-card .btn{
  margin-bottom:0;
}

.membership-card h4, .membership-card i, .membership-card span{
  color:var(--primary);
}

.membership-card p{
  color:var(--white);
  margin-bottom:.25rem;
  text-align: left;
}

.membership-logo {
  display: block;
  margin: 0 auto; /* centers it horizontally */
  width: 100px;
  height: auto;
}


.card-list{
  display:flex;
  flex-wrap: wrap;
  flex-direction: column;
}

.card-list li{
  text-align: left;
}

@media (min-width: 768px) and (max-width: 1023px) {
  .membership-card {
    margin: 1rem 10rem; /* optional, keeps them tidy */
  }
}

@media (min-width: 1024px) {
  .membership-row {
    display:flex;
    flex-flow: row nowrap;
    justify-content: center;
    margin-top: 2rem;
    justify-content: center; /* Centers content horizontally */
    align-items: center;     /* Centers content vertically */
    height: 100%;  
  }

}


@media (min-width: 768px) {
  .BTT{
    display: none;
  }

}

.BacktoTop{
  padding:1rem;
  display: flex;         /* Enables Flexbox */
  justify-content: center; /* Centers horizontally */
  align-items: center;  
}

@media (min-width: 768px) {
  .BacktoTop{
  display: flex;         /* Enables Flexbox */
  justify-content: left; /* Centers horizontally */
  padding:0rem;
  }
}


/* NEW INSPIRED CARD STYLE */
.membership-card.new-style {
  padding: 0;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}

/* Image header */
.card-hero {
  position: relative;
  background: url("../images/carousel-images/infielders-11.jpg") center / cover no-repeat;
  padding: 2rem;
  color: black;
}

/* subtle overlay for readability */
.card-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
}


.card-hero * {
  position: relative;
  z-index: 1;
}

.card-hero h3 {
  font-size: 1.75rem;
  margin-bottom: 0.5rem;
}

.price {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.price .term {
  font-size: 1rem;
  font-weight: 400;
}

.subtitle {
  font-size: 0.95rem;
}

/* Card body */
.card-body {
  padding: 1.75rem 2rem;
  background:black;
}

.card-body .card-list {
  padding-left: 1rem;
}

.card-body li {
  margin-bottom: 0.5rem;
}

/* Button alignment */
.card-body .btn {
  display: block;
  width: 100%;
  text-align: center;
}

/* Base: mobile-first */
.membership-card.new-style {
  width: 80%;
  max-width: 80%;
  margin: 2rem auto;
}

/* Inner sections always fill card */
.card-hero,
.card-body {
  width: 100%;
}

/* Desktop constraint */
@media (min-width: 1024px) {
  .membership-card.new-style {
    max-width: 500px;
  }
}

@media (hover: hover) {
  .membership-card.new-style:hover {
    transform: translateY(-4px);
    transition: transform 0.25s ease;
  }
}