  /* Homepage Specific Styles */

/* News Section (migrated from banner/css/news-style.css) */
.News {
  margin-top: 50px;
  margin-bottom: 50px;
}

@media (max-width: 768px) {
  .News {
    margin-top: 40px;
    margin-bottom: 40px;
  }
}

@media (max-width: 480px) {
  .News {
    margin-top: 30px;
    margin-bottom: 30px;
  }
}

.News-content {
  padding-left: 100px;
  margin-top: 10px;
  margin-bottom: 20px;
}

@media (max-width: 1200px) {
  .News-content {
    padding-left: 80px;
  }
}

.News-content-inner {
  display: inline-block;
  text-align: center;
}

@media (max-width: 768px) {
  .News-content-inner {
    text-align: left;
  }
}

.Gold {
  color: #daae6b;
  font-family: "Bricolage Grotesque", sans-serif;
  font-size: 4rem;
  font-weight: 700;
  margin-bottom: 0;
}

.Red {
  color: #781c1b;
  font-family: "Bricolage Grotesque", sans-serif;
  font-size: 1.5rem;
  margin-bottom: 0;
}

.News-content span {
  color: #781c1b;
  margin-left: 1rem;
}

/* Red line styling */
.line-case {
  display: flex;
  justify-content: space-between;
}

.line-case .Start {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  width: 45%;
}

.line-case .End {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  width: 45%;
}

@media (max-width: 1200px) {
  .line-case .Start,
  .line-case .End {
    width: 42%;
  }
}

.red-line-top,
.red-line-bottom {
  background-color: var(--ypads-brand);
  height: 6px;
}

.line-case .One {
  width: 60%;
}

.line-case .Two {
  width: 25%;
}

.line-case .Three {
  width: 40%;
}

.line-case .Four {
  width: 50%;
}

.line-end {
  width: 6px;
  height: 20px;
  background-color: var(--ypads-brand);
  border-radius: 20px;
}


/* News Cards Carousel - Full Width with Flexbox */
.ypads-news-carousel-wrapper {
  position: relative;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  overflow-y: visible;
  margin: 2rem 0;
  padding: 2rem 0;
}

@media (max-width: 768px) {
  .ypads-news-carousel-wrapper {
    overflow-x: hidden;
    overflow-y: visible;
  }
}

@media (max-width: 768px) {
  .ypads-news-carousel-wrapper {
    margin: 1.5rem 0;
    padding: 1.5rem 0;
  }
}

@media (max-width: 480px) {
  .ypads-news-carousel-wrapper {
    margin: 1rem 0;
    padding: 1rem 0;
  }
}

.ypads-news-carousel {
  display: flex;
  flex-wrap: nowrap;
  margin: 0 auto;
  gap: 1.5rem;
  justify-content: flex-start;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE and Edge */
  padding: 0 2rem;
  width: 100%;
}

.ypads-news-carousel::-webkit-scrollbar {
  display: none; /* Chrome, Safari, Opera */
}

.ypads-news-carousel-item {
  flex: 0 0 calc((100% - 6rem) / 5); /* 5 cards visible on large screens with gap */
  min-width: 0;
  width: calc((100% - 6rem) / 5);
  max-width: calc((100% - 6rem) / 5);
  height: 450px;
  scroll-snap-align: start;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  background: linear-gradient(135deg, #8b1e1e 0%, #650a0b 100%);
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

.ypads-news-carousel-item:hover {
  transform: scale(1.02);
}

.ypads-news-carousel-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* About Highlight Section */
.ypads-about-highlight {
  padding: 3rem 20px 4rem;
  background-image: url('../elements/textured-background.png');
  background-repeat: repeat;
}

.ypads-about-highlight__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2.5rem;
  align-items: center;
  max-width: 1100px;
  margin: 0 auto;
}

.ypads-about-highlight__text {
  color: #4a1a1a;
  font-family: "Montserrat", sans-serif;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding-left: 1.5rem;
  height: min(315px, 67.5vw);
  justify-content: flex-start;
}

.ypads-about-highlight__title-row {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.ypads-about-highlight__text h2 {
  font-size: 2rem;
  font-family: "Bricolage Grotesque", sans-serif;
  color: #daae6b;
  margin: 0.75rem 0 1rem;
  white-space: nowrap;
}

@media (max-width: 768px) {
  .ypads-about-highlight__text h2 {
    white-space: normal;
  }
}

.ypads-about-highlight__text p {
  line-height: 1.6;
  margin: 0;
  font-size: 1rem;
}

.ypads-about-highlight__eyebrow {
  width: 300px;
  height: 6px;
  background-color: var(--ypads-brand);
  border-radius: 3px;
  margin: 0;
  flex-shrink: 0;
}

.ypads-about-highlight__slider {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
}

.about-slider {
  position: relative;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.about-slider__frame {
  width: min(420px, 90vw);
  aspect-ratio: 4 / 3;
  border-radius: 18px;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2);
  overflow: hidden;
  background: #000;
}


.about-slider__image {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.about-slider__control {
  border: none;
  background: var(--ypads-brand);
  color: #fff;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 1.35rem;
  cursor: pointer;
  transition: transform 0.2s ease, opacity 0.2s ease;
}


.about-slider__control:hover {
  transform: scale(1.05);
  opacity: 0.9;
}

.about-slider__dots {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
}

.about-slider__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: none;
  background-color: rgba(0, 0, 0, 0.2);
  cursor: pointer;
}

.about-slider__dot.active {
  background-color: var(--ypads-brand);
}

/* Achievements Highlight Section */
.ypads-achievements-highlight {
  padding: 3rem 20px 4rem;
  background-image: url('../elements/textured-background.png');
  background-repeat: repeat;
}


.ypads-achievements-highlight__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2.5rem;
  align-items: center;
  max-width: 1100px;
  margin: 0 auto;
}

.ypads-achievements-highlight__text {
  color: #4a1a1a;
  font-family: "Montserrat", sans-serif;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding-right: 1.5rem;
  height: min(315px, 67.5vw);
  justify-content: flex-start;
}

.ypads-achievements-highlight__title-row {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.ypads-achievements-highlight__text h2 {
  font-size: 2rem;
  font-family: "Bricolage Grotesque", sans-serif;
  color: #daae6b;
  margin: 0.75rem 0 1rem;
  white-space: nowrap;
}

@media (max-width: 768px) {
  .ypads-achievements-highlight__text h2 {
    white-space: normal;
  }
}

.ypads-achievements-highlight__text p {
  line-height: 1.6;
  margin: 0;
  font-size: 1rem;
}

.ypads-achievements-highlight__eyebrow {
  width: 300px;
  height: 6px;
  background-color: var(--ypads-brand);
  border-radius: 3px;
  margin: 0;
  flex-shrink: 0;
}

.ypads-achievements-highlight__slider {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
}

.achievements-slider {
  position: relative;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.achievements-slider__frame {
  width: min(420px, 90vw);
  aspect-ratio: 4 / 3;
  border-radius: 18px;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2);
  overflow: hidden;
  background: #000;
}


.achievements-slider__image {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.achievements-slider__control {
  border: none;
  background: var(--ypads-brand);
  color: #fff;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 1.35rem;
  cursor: pointer;
  transition: transform 0.2s ease, opacity 0.2s ease;
}



.achievements-slider__control:hover {
  transform: scale(1.05);
  opacity: 0.9;
}

.achievements-slider__dots {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
}

.achievements-slider__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: none;
  background-color: rgba(0, 0, 0, 0.2);
  cursor: pointer;
}

.achievements-slider__dot.active {
  background-color: var(--ypads-brand);
}

/* Responsive Design */
@media (min-width: 1400px) {
  .ypads-news-carousel-item {
    flex: 0 0 calc((100% - 6rem) / 5); /* 5 cards on extra large screens */
    width: calc((100% - 6rem) / 5);
    max-width: calc((100% - 6rem) / 5);
  }
}

@media (max-width: 1200px) {
  .ypads-news-carousel-item {
    flex: 0 0 calc((100% - 4.5rem) / 4); /* 4 cards on medium screens */
    width: calc((100% - 4.5rem) / 4);
    max-width: calc((100% - 4.5rem) / 4);
  }
}

@media (max-width: 900px) {
  .ypads-news-carousel {
    padding: 0 1.5rem;
    gap: 1.25rem;
  }

  .ypads-news-carousel-item {
    flex: 0 0 calc((100% - 3.75rem) / 3); /* 3 cards on tablets */
    width: calc((100% - 3.75rem) / 3);
    max-width: calc((100% - 3.75rem) / 3);
    min-width: 0;
    height: 400px;
  }
}

@media (max-width: 768px) {
  .ypads-news-carousel-wrapper {
    overflow: hidden;
    display: flex;
    justify-content: center;
  }
  
  .ypads-news-carousel {
    padding: 0;
    gap: 0;
    touch-action: none;
    -webkit-overflow-scrolling: none;
    overflow-x: auto;
    overflow-y: hidden;
    pointer-events: none;
    justify-content: flex-start;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    width: 100%;
  }

  .ypads-news-carousel-item {
    flex: 0 0 100%; /* 1 card takes full width */
    width: 100%;
    max-width: 100%;
    min-width: 100%;
    height: 380px;
    pointer-events: none;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    margin: 0;
    scroll-snap-align: start;
  }
  
  /* Show all items but only one visible at a time */
  .ypads-news-carousel-item {
    display: block;
  }
}

  .News-content {
    padding-left: 40px;
  }

  .Gold {
    font-size: 2.75rem;
  }

  .Red {
    font-size: 1.2rem;
  }

  .line-case .Start,
  .line-case .End {
    width: 40%;
  }
}

@media (max-width: 600px) {
  .ypads-news-carousel-wrapper {
    padding: 1.5rem 0;
    margin: 1.5rem 0;
    overflow: hidden;
    display: flex;
    justify-content: center;
  }

  .ypads-news-carousel {
    padding: 0;
    gap: 0;
    touch-action: none;
    -webkit-overflow-scrolling: none;
    overflow-x: auto;
    overflow-y: hidden;
    pointer-events: none;
    justify-content: flex-start;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    width: 100%;
  }

  .ypads-news-carousel-item {
    flex: 0 0 100%; /* 1 card takes full width */
    width: 100%;
    max-width: 100%;
    min-width: 100%;
    height: 320px;
    pointer-events: none;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    margin: 0;
    scroll-snap-align: start;
  }
  
  /* Show all items but only one visible at a time */
  .ypads-news-carousel-item {
    display: block;
  }
}

  .News {
    margin-top: 30px;
    margin-bottom: 30px;
  }

  .News-content {
    padding-left: 24px;
    margin-top: 5px;
    margin-bottom: 15px;
  }

  .Gold {
    font-size: 2.25rem;
  }

  .Red {
    font-size: 1rem;
  }

  .News-content span {
    margin-left: 0.5rem;
  }

  .line-case .Start,
  .line-case .End {
    width: 35%;
  }
}

@media (max-width: 768px) {
  .ypads-about-highlight__eyebrow {
    width: 200px;
  }

  .ypads-about-highlight__text h2 {
    font-size: 1.75rem;
  }

  .ypads-achievements-highlight__eyebrow {
    width: 200px;
  }

  .ypads-achievements-highlight__text h2 {
    font-size: 1.75rem;
  }
}

@media (max-width: 600px) {
  .ypads-about-highlight__eyebrow {
    width: 150px;
  }

  .ypads-about-highlight__text h2 {
    font-size: 1.5rem;
  }

  .ypads-about-highlight__title-row {
    gap: 0.75rem;
  }

  .ypads-achievements-highlight__eyebrow {
    width: 150px;
  }

  .ypads-achievements-highlight__text h2 {
    font-size: 1.5rem;
  }

  .ypads-achievements-highlight__title-row {
    gap: 0.75rem;
  }
}

@media (max-width: 480px) {
  .ypads-news-carousel-wrapper {
    overflow: hidden;
    display: flex;
    justify-content: center;
  }
  
  .ypads-news-carousel-item {
    flex: 0 0 100%; /* 1 card takes full width */
    width: 100%;
    max-width: 100%;
    min-width: 100%;
    height: 280px;
    pointer-events: none;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    margin: 0;
  }

  .ypads-news-carousel {
    padding: 0;
    gap: 0;
    touch-action: none;
    -webkit-overflow-scrolling: none;
    overflow-x: auto;
    overflow-y: hidden;
    pointer-events: none;
    justify-content: flex-start;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    width: 100%;
  }
  
  .ypads-news-carousel-item {
    flex: 0 0 100%; /* 1 card takes full width */
    width: 100%;
    max-width: 100%;
    min-width: 100%;
    height: 280px;
    pointer-events: none;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    margin: 0;
    scroll-snap-align: start;
  }
  
  /* Show all items but only one visible at a time */
  .ypads-news-carousel-item {
    display: block;
  }

  .News {
    margin-top: 20px;
    margin-bottom: 20px;
  }

  .News-content {
    padding-left: 16px;
    margin-top: 5px;
    margin-bottom: 10px;
  }

  .Gold {
    font-size: 1.75rem;
  }

  .Red {
    font-size: 0.9rem;
  }

  .News-content span {
    margin-left: 0.4rem;
  }

  .line-case .Start,
  .line-case .End {
    width: 30%;
  }

}

