/* my code */
/* Base Styles and Reset */
:root {
    --secondary: #f4f0e6;
    --primary: #ff3c00;
    --white: white;
    --black: black;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html,
body {
    height: 100%;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    line-height: 20px;
    color: #333;
}

body {
    background-color: var(--black);
    min-height: 100%;
}

.logo {
    color: white;
}

img {
    max-width: 100%;
    vertical-align: middle;
    display: inline-block;
}

a {
    text-decoration: none;
    color: inherit;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    margin-bottom: 10px;
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
}

p {
    margin-top: 0;
    margin-bottom: 10px;
    font-family: 'Poppins', sans-serif;
}

.heading-4 {
    color: var(--primary);
    text-align: left;
    font-family: 'Poppins', sans-serif;
    font-size: 3rem;
    font-weight: 700;
    line-height: 3.2rem;
    display: inline-block;
    position: relative;
    margin-bottom: 25px;
  }

  .heading-4::after {
    content: "";
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 60px;
    height: 3px;
    background-color: var(--primary);
  }

  .paragraph {
    color: var(--white);
    font-family: 'Poppins', sans-serif;
    font-size: 1.2rem;
    font-weight: 400;
    line-height: 1.8rem;
    margin-bottom: 20px;
    transition: transform 0.3s ease;
  }

  .container-600 .paragraph:hover {
    transform: translateX(5px);
  }

  .container-600 .paragraph:first-of-type {
  font-weight: 500;
}

.container-600 .paragraph:last-of-type {
    border-left: 2px solid var(--primary);
    padding-left: 15px;
    font-style: italic;
  }

.hero-heading {
    color: var(--primary);
    text-align: center;
    letter-spacing: 2px;
    margin-top: 0;
    margin-bottom: 0;
    padding-top: 0;
    font-family: 'Poppins', sans-serif;
    font-size: 18.5vw;
    line-height: 14vw;
    font-weight: 700;
    position: relative;
    z-index: 2;
    opacity: 0;
}

/* Alternate letters coming from left and right */
.hero-heading._1 {
    animation: slideInFromLeft 0.8s ease forwards;
    animation-delay: 0.1s;
}

.hero-heading._2 {
    animation: slideInFromRight 0.8s ease forwards;
    animation-delay: 0.2s;
}

.hero-heading._3 {
    animation: slideInFromLeft 0.8s ease forwards;
    animation-delay: 0.3s;
}

.hero-heading._4 {
    animation: slideInFromRight 0.8s ease forwards;
    animation-delay: 0.4s;
}

.hero-subheading {
    color: var(--primary);
    text-transform: uppercase;
    font-family: 'Poppins', sans-serif;
    font-size: 2rem;
    font-weight: 500;
    line-height: 2rem;
    position: relative;
    z-index: 2;
    opacity: 0;
    animation: slideInFromBottom 0.6s ease forwards;
}

.heading-subwrapper .hero-subheading:nth-child(1) {
    animation-delay: 1.2s;
}

.heading-subwrapper .hero-subheading:nth-child(2) {
    animation-delay: 1.6s;
}

/* Layout */
.main {
    background-color: var(--black);
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.section {
    background-color: var(--black);
    width: 100%;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.section-contact {
    background-color: var(--black);
    width: 100%;
    margin: 50px 0;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
}

#about {
    background-color: var(--black);
    position: relative;
}

/* Subtle pattern or texture to the background */
#about::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(var(--primary) 1px, transparent 1px);
    background-size: 40px 40px;
    opacity: 0.03;
    pointer-events: none;
}

.container-600 {
    max-width: 600px;
    display: flex;
    flex-direction: column;
    align-items: center;
    grid-gap: 40px;
}

/* Hero Section */
.hero-absolute {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.hero-absolute::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    /* Semi-transparent overlay */
    z-index: 1;
}

.heading-container {
    z-index: 1;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding-bottom: 40px;
    position: relative;
}

.heading-wrapper {
    width: 100%;
    display: flex;
}

.heading-subwrapper {
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding-left: 60px;
    padding-right: 60px;
    position: relative;
    z-index: 2;
}

/* Hero background fade-in animation */
@keyframes fadeIn {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

.img-absolute {
    z-index: 0;
    width: 100%;
    height: 100vh;
    position: absolute;
    background-image: url("./images/88young/88young-3.jpeg");
    background-position: 50%;
    background-size: cover;
    opacity: 0; /* Start invisible */
    animation: fadeIn 2s ease-in-out forwards; /* Smooth fade in */
    animation-delay: 1.5s; /* Start after a short delay */
}



/* Social Icons */
.social-wrapper {
    z-index: 2;
    width: 100%;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: flex-end;
    padding-bottom: 40px;
    grid-gap: 10px;
    position: relative;
}

.link-social {
    width: 40px;
    height: 40px;
    border: 1px solid rgba(244, 240, 230, 0.7);
    border-radius: 300rem;
    padding: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.link-social::before {
    content: "";
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--primary);
    transition: top 0.3s ease;
    z-index: -1;
}

.link-social:hover::before {
    top: 0;
}

.img-social {
    z-index: 5;
    filter: invert();
    position: relative;
    transition: filter 0.3s ease;
}

.link-social:hover .img-social {
    filter: invert(0);
}

/* Singles Section */
#singles {
    position: relative;
    width: 100%;
    height: 100vh; /* Use viewport height to ensure it fills screen */
    overflow: hidden;
}

.slider {
    position: relative;
    width: 100%;
    height: 100%;
    z-index: 5;
}

.slider-mask {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

/* Slide Styling */

/* Make single wrapper standard size without responsive constraints */
.single-wrapper {
    width: 500px;
    height: 500px;
}

/* Make text 100% opacity on active slide, 0% on inactive */
.single-info {
    transition: opacity 0.3s ease;
}

.slide:not(.active) .single-info {
    opacity: 0;
}

.slide.active .single-info {
    opacity: 1;
}

/* Single Item Styles */

.single-wrapper {
    width: min(500px, 80vw); /* Responsive but capped at 500px */
    height: min(500px, 80vw); /* Same as width to keep square */
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.single-wrapper:hover {
    transform: scale(1.02);
}

.shape-out {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 0.5px solid rgba(244, 240, 230, 0.5);
    border-radius: 100rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
}
  
.single-wrapper:hover .shape-out {
    border-color: var(--primary);
    box-shadow: 0 0 20px rgba(255, 60, 0, 0.2);
}

.shape-out-wrapper {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.shape-in {
    position: absolute;
    width: 100px;
    height: 100px;
    border: 0.5px solid rgba(244, 240, 230, 0.5);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
}

/* Singles Section (continued) */
.single-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin-left: auto;
    margin-right: auto;
}

.single-info.single {
    width: auto;
    height: 100%;
    grid-gap: 10px;
}

.text-wrapper {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    grid-gap: 0;
}

.logos-wrapper {
    display: flex;
    justify-content: center;
    grid-gap: 5px;
}

.single-link {
    width: 36px;
    height: 36px;
    padding: 5px;
    display: block;
    justify-content: center;
    align-items: center;
}

.logo {
    filter: invert();
    width: 100%;
    height: 100%;
}

.single-front {
    width: 150px;
    height: 150px;
    border-radius: 0.5rem;
    background-position: center;
    background-size: cover;
    transition: transform 0.3s ease;
        transform-origin: center center;
        will-change: transform;
        backface-visibility: hidden;
        transform: translateZ(0);
      
}

.album-rotating {
    /* The animation is defined in the JavaScript */
  }

.single-wrapper:hover .single-front {
    transform: scale(1.05);
}

.play {
    width: 30px;
    height: 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    touch-action: manipulation;
}

.play-icon {
    z-index: 100;
    width: 30px;
    height: 30px;
    position: absolute;
}

.stop-icon {
    z-index: 100;
    width: 30px;
    height: 30px;
    display: none;
    position: absolute;
}

.play-icon, .stop-icon {
    z-index: 100;
    width: 30px;
    height: 30px;
    position: absolute;
    transition: transform 0.3s ease, opacity 0.3s ease;
  }

.play:hover .play-icon, .play:hover .stop-icon {
    transform: scale(1.2);
  }
  
  /* Now playing animation effect */
  @keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 0.8;
        box-shadow: 0 0 0 0 rgba(255, 60, 0, 0.3);
    }
    50% {
        transform: scale(1.1);
        opacity: 1;
        box-shadow: 0 0 20px 10px rgba(255, 60, 0, 0.3);
    }
    100% {
        transform: scale(1);
        opacity: 0.8;
        box-shadow: 0 0 0 0 rgba(255, 60, 0, 0.3);
    }
}

  .playing .shape-in {
    animation: pulse 2s infinite ease-in-out;
    border-color: var(--primary);
  }

  .img-wrapper {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 1;
}

.img-cover {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.62);
    backdrop-filter: blur(2px);
    z-index: 1;
}

.slider-img {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    object-fit: cover; /* Forces image to cover area */
    opacity: 0;
}

.slider-img.active {
    opacity: 1;
}

.slider-img._1 {
    z-index: 11;
    object-fit: fill;
    object-position: 50% 50%;
}

.slider-img._2 {
    z-index: 10;
}

.slider-img._3 {
    z-index: 9;
}

/* Slider Controls */
.slider-arrow-left,
.slider-arrow-right {
    cursor: pointer;
    color: #fff;
    width: 80px;
    position: absolute;
    top: 0;
    bottom: 0;
    margin: auto;
    font-size: 40px;
    overflow: hidden;
    user-select: none;
}

.slider-arrow-left {
    z-index: 3;
    left: 0;
    right: auto;
}

.slider-arrow-right {
    z-index: 4;
    right: 0;
    left: auto;
}

.slider-arrow-icon-left,
.slider-arrow-icon-right {
    width: 1em;
    height: 1em;
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    margin: auto;
}

.slider-arrow-icon-left:before {
    content: "←";
}

.slider-arrow-icon-right:before {
    content: "→";
}

.slider-nav {
    z-index: 2;
    text-align: center;
    height: 40px;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding-top: 10px;
    margin: auto;
    display: flex;
    justify-content: center;
    gap: 10px;
  }
  
  .slider-dot {
    cursor: pointer;
    width: 10px;
    height: 10px;
    margin: 0 3px;
    background-color: rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    display: inline-block;
    position: relative;
    transition: all 0.3s ease;
  }
  
  .slider-dot.active {
    background-color: var(--primary);
    transform: scale(1.2);
  }
  
  .slider-dot:hover {
    background-color: rgba(255, 255, 255, 0.8);
  }
  
  /* Enhanced slider arrows */
  .slider-arrow-left,
  .slider-arrow-right {
    cursor: pointer;
    color: #fff;
    width: 50px;
    height: 50px;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 20px;
    background-color: rgba(0, 0, 0, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    overflow: hidden;
  }
  
  .slider-arrow-left {
    z-index: 3;
    left: 20px;
  }
  
  .slider-arrow-right {
    z-index: 4;
    right: 20px;
  }
  
  .slider-arrow-left:hover,
  .slider-arrow-right:hover {
    background-color: var(--primary);
    transform: translateY(-50%) scale(1.1);
  }

/* Contact Section and Accordion */
.div-block-10 {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
    grid-gap: 0;
}

.div-block-11 {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
}

.accordion-item {
    width: 100%;
    max-width: none;
    justify-content: center;
    align-items: center;
    margin-bottom: 0;
    border-bottom: 1px solid var(--primary);
}

.accordion-tab {
    width: 100%;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    padding: 40px;
    cursor: pointer;
}

.arrow-wrapper {
    width: 180px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.arrow-icon {
    transform: rotate(-90deg);
    transition: transform 0.3s ease;
}

.accordion-heading {
    color: var(--primary);
    text-align: left;
    width: 100%;
    margin-top: 0;
    margin-bottom: 0;
    padding-top: 7px;
    padding-bottom: 7px;
    padding-left: 0;
    font-family: Proteststrike, sans-serif;
    font-size: 5rem;
    font-weight: 500;
    line-height: 5rem;
    transition: font-size 0.2s;
}

.accordion-open {
    overflow: hidden;
    height: 0;
    transition: height 0.3s ease-out;
}

.accordion-open-container {
    display: flex;
    justify-content: flex-start;
    padding: 0 40px 20px;
    margin-bottom: 5px;
    border-bottom-right-radius: 10px;
    border-bottom-left-radius: 10px;
}

.accordion-text {
    color: var(--primary);
    text-align: left;
    width: 100%;
    font-family: Tahoma, Verdana, Segoe, sans-serif;
    font-size: 1.1rem;
    font-weight: 300;
    line-height: 1.7;
}

/* Footer */
.div-block-16 {
    display: flex;
    justify-content: space-around;
    width: 100%;
}

.row {
    width: 100%;
    height: auto;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-start;
    padding: 0;
    position: relative;
    overflow: hidden;
    grid-gap: 40px;
    border-radius: 0.8rem;
}

.row.hotizontal {
    flex-direction: row;
    flex: 0 auto;
    justify-content: space-between;
    padding-top: 20px;
    padding-bottom: 20px;
    grid-gap: 20px;
}

.row.hotizontal.footer {
    z-index: 10;
    padding-left: 40px;
    padding-right: 40px;
}

.footer-text {
    color: var(--primary);
    font-family: Tahoma, Verdana, Segoe, sans-serif;
    font-size: 1em;
    line-height: 1em;
}

.link-2 {
    color: var(--primary);
    text-decoration: underline;
}

.link-2:hover {
    color: #fa9c80;
}

.img-wrapper-absolute {
    z-index: auto;
    background-color: transparent;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    height: 100%;
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: auto;
}

.image {
    height: 100%;
    position: relative;
    top: 0;
    right: 0;
    bottom: 0;
    left: auto;
}

.footer-logo {
    width: 250px;
    padding-top: 50px;
}
/* Preloader */
.preloader {
    z-index: 200;
    background-color: transparent;
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: absolute;
    overflow: hidden;
}

.preloader-container {
    z-index: 300;
    width: 150%;
    display: flex;
    align-items: center;
    position: absolute;
    transform: rotate(90deg);
    grid-gap: 30px;
}

.preloader-line {
    background-color: var(--secondary);
    width: 100%;
    height: 1px;
}

.image-3 {
    width: 30px;
    height: 20px;
    position: absolute;
}

.reveal {
    background-color: var(--primary);
    width: 100%;
    height: 100%;
}

/* Responsive Styles */
@media screen and (max-width: 991px) {

    .social-wrapper {
        padding-bottom: 140px;
    }

    .heading-container {
        padding-top: 140px;
        padding-bottom: 0;
    }

    .paragraph.light.m-hide {
        display: none;
    }

    .slider-img._1 {
        object-fit: cover;
        width: 100%;
        max-width: none;
        height: 100%;
    }

    .img-cover {
        margin-top: 0;
    }

    .accordion-heading {
        font-size: 3.5rem;
    }

    .row.hotizontal.footer {
        min-height: auto;
        padding-bottom: 20px;
        padding-left: 40px;
        padding-right: 40px;
    }

    .preloader {
        height: 100svh;
    }
}

@media screen and (max-width: 767px) {
    .img-wrapper {
        height: 100vw; /* Full viewport width makes it square */
    }
    
    #singles {
        padding-top: 50px;
        padding-bottom: 50px;
    }
    
    .single-container {
        margin-top: 0;
    }

    .slide {
        position: static; /* Change from absolute to static */
    }
    
    .slider-img {
        object-fit: cover;
        height: 100%;
    }

    .section {
        height: auto;
        padding-left: 0;
        padding-right: 0;
        overflow: visible;
    }

    .heading-container {
        padding-top: 140px;
        padding-bottom: 0;
    }

    .heading-subwrapper {
        flex-direction: column;
        align-items: center;
        padding-left: 20px;
        padding-right: 20px;
        gap: 10px;
    }

    .heading-wrapper {
        justify-content: center;
        flex-wrap: wrap;
    }

    .hero-heading {
        font-size: 16vw;
        line-height: 14vw;
    }

    .paragraph.light.m-hide {
        display: none;
    }

    .container-600 {
        padding: 60px 20px;
    }
      
      .heading-4 {
        font-size: 2.5rem;
        line-height: 2.8rem;
      }
      
      .paragraph {
        font-size: 1.1rem;
        line-height: 1.7rem;
      }

    .single-info.single {
        grid-gap: 10px;
    }

    .img-wrapper-absolute {
        align-items: flex-end;
        width: 100%;
        height: auto;
        position: relative;
    }

    .image {
        object-fit: scale-down;
        width: 100%;
        height: auto;
    }

    .div-block-11 {
        flex-direction: column;
        justify-content: space-between;
        align-items: center;
        padding-bottom: 0;
    }

    .slider {
        padding-top: 60px;
        padding-bottom: 60px;
    }

    .single-wrapper {
        width: 400px;
        height: 400px;
    }

    .accordion-heading {
        font-size: 1.5rem;
        line-height: 1;
    }

    .accordion-open-container {
        grid-gap: 20px;
        padding-left: 20px;
        padding-right: 20px;
    }

    .accordion-tab {
        grid-gap: 20px;
        padding: 40px 20px;
    }

    .row.hotizontal.footer {
        flex-direction: column;
        justify-content: flex-end;
        padding-bottom: 40px;
    }
}

@media screen and (max-width: 479px) {

    .heading-4 {
        font-size: 2rem;
        line-height: 2.3rem;
      }
      
      .paragraph {
        font-size: 1rem;
        line-height: 1.6rem;
      }

    .heading-subwrapper {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 5px;
    }

    .hero-subheading {
        font-size: 1.5rem;
        line-height: 1.5rem;
        margin-top: 5px;
    }

    .social-wrapper {
        padding-bottom: 180px;
    }

    .heading-container {
        width: 100%;
        padding-top: 140px;
        padding-bottom: 0;
    }

    .paragraph.light.bg {
        font-size: 1rem;
    }

    .paragraph.light.m-hide {
        display: none;
    }

    .container-600 {
        padding: 50px 20px
    }

    .single-info.single {
        grid-gap: 10px;
    }

    .heading-wrapper {
        width: 100%;
        display: flex;
        position: relative;
        z-index: 2;
        justify-content: center;
    }

    .img-absolute {
        object-position: 50% 50%;
        height: 100%;
    }

    .single-wrapper {
        width: 250px;
        height: 250px;
    }

    .shape-out {
        grid-gap: 60px;
    }

    .shape-in {
        width: 60px;
        height: 60px;
    }

    .single-front {
        border-radius: 0.2rem;
        width: 80px;
        height: 80px;
    }

    .play-icon {
        width: 20px;
    }

    .arrow-wrapper {
        width: 15%;
        padding-right: 10px;
    }

    .accordion-heading {
        padding-left: 0;
        font-size: 2rem;
    }

    .accordion-open-container {
        padding-bottom: 0;
        padding-left: 10px;
        padding-right: 10px;
    }

    .accordion-tab {
        padding-top: 60px;
        padding-bottom: 60px;
        padding-left: 20px;
    }

    .accordion-text {
        width: 90%;
        font-size: 0.9rem;
        line-height: 2;
    }

    .row.hotizontal {
        flex-direction: column;
    }

    .row.hotizontal.footer {
        padding-bottom: 40px;
        padding-left: 20px;
        padding-right: 20px;
    }

    .preloader-container {
        width: 150vh;
    }
}

/* Animation Keyframes */
@keyframes slideInFromLeft {
    0% {
        transform: translateX(-100vw);
        opacity: 0;
    }

    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideInFromRight {
    0% {
        transform: translateX(100vw);
        opacity: 0;
    }

    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideInFromBottom {
    0% {
        transform: translateY(50px);
        opacity: 0;
    }

    100% {
        transform: translateY(0);
        opacity: 1;
    }
}


/* Video Section Styles with 250px width thumbnails scaling down */
#videos {
    background-color: var(--black);
    padding: 80px 0;
    min-height: 70vh;
    max-height: 80vh;
}

.container-videos {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.video-grid {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin-top: 40px;
}

.video-row {
    display: flex;
    gap: 20px;
    justify-content: center;
}

/* Stagger the rows */
.top-row {
    padding: 0 10%;
}

.bottom-row {
    padding: 0 5%;
}

.video-thumbnail {
    width: 250px; /* Starting with 250px width */
    flex-shrink: 0; /* Prevent shrinking below specified width */
    transition: transform 0.3s ease;
}

.video-thumbnail:hover {
    transform: translateY(-5px);
}

.thumbnail-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    border-radius: 10px;
    overflow: hidden;
    background-color: #111;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    cursor: pointer;
}

.thumbnail-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.video-thumbnail:hover .thumbnail-img {
    transform: scale(1.05);
}

.play-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.3);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.video-thumbnail:hover .play-overlay {
    opacity: 1;
}

.thumbnail-play-icon {
    width: 50px;
    height: 50px;
    filter: brightness(0) invert(1);
}

/* Responsive adjustments */
@media screen and (max-width: 991px) {
    .video-thumbnail {
        width: 200px; /* Scale down to 200px on tablets */
    }
    
    .top-row, .bottom-row {
        padding: 0 5%;
    }
    
    .thumbnail-play-icon {
        width: 40px;
        height: 40px;
    }
}

@media screen and (max-width: 767px) {
    .top-row, .bottom-row {
        padding: 0;
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }
    
    .video-row {
        gap: 15px;
    }
}

@media screen and (max-width: 479px) {
    .video-thumbnail {
        width: 150px; /* Scale down to 150px on mobile */
    }
    
    .thumbnail-play-icon {
        width: 35px;
        height: 35px;
    }
}


.slide_viewer {
    height: 540px;
    overflow: hidden;
    position: relative;
  }
  
  .slide_group {
    height: 100%;
    position: relative;
    width: 100%;
  }
  
  
  
  .slide:first-child {
    display: block;
  }
  
  .slide:nth-of-type(1) {
    background-image: url("./images/88young/88young-1-square.jpeg");
  }
  
  .slide:nth-of-type(2) {
    background-image: url("./images/88young/88young-4.jpeg");
  }
  
  .slide:nth-of-type(3) {
    background: #C75534;
  }
  
  .slide:nth-of-type(4) {
    background: #D1D1D4;
  }
  
/* Fix slider navigation positioning and layout */
.slide_buttons {
    left: 0;
    position: absolute;
    right: 0;
    text-align: center;
    bottom: 20px; /* Move dots to bottom */
    z-index: 10; /* Ensure visibility */
}

a.slide_btn {
    color: rgba(255, 255, 255, 0.5); /* Change to white with transparency */
    font-size: 18px; /* Smaller dots */
    margin: 0 8px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.slide_btn.active, .slide_btn:hover {
    color: var(--primary); /* Match your theme color */
    cursor: pointer;
}

/* Fix directional navigation positioning */
/* Add or update these CSS rules */

.directional_nav {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 50;
    pointer-events: none; /* This makes it not block clicks through to elements below */
}

.previous_btn, .next_btn {
    pointer-events: auto; /* Make just the buttons clickable */
    z-index: 51;
}

.single-container {
    z-index: 10;
    position: relative;
}

.single-wrapper {
    position: relative;
    z-index: 20;
}

.shape-in {
    z-index: 40;
}

.shape-out {
    z-index: 30;
}

.single-front {
    z-index: 5;
    cursor: pointer;
    position: relative;
}

.play {
    z-index: 60;
    cursor: pointer !important;
    position: relative;
}

.play-icon, .stop-icon {
    z-index: 61;
}

/* Ensure slider dots are clickable */
.slide_buttons {
    z-index: 52;
    position: relative;
    pointer-events: auto;
}

.slider-dot, .slide_btn {
    pointer-events: auto;
}

.previous_btn {
    bottom: 0;
    left: 20px; /* Position left arrow */
    margin: auto;
    position: absolute;
    top: 0;
}

.next_btn {
    bottom: 0;
    margin: auto;
    position: absolute;
    right: 20px; /* Position right arrow */
    top: 0;
}

.previous_btn, .next_btn {
    cursor: pointer;
    height: 50px;
    width: 50px;
    opacity: 0.7;
    transition: all 0.3s ease;
    background-color: rgba(0, 0, 0, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.previous_btn:hover, .next_btn:hover {
    opacity: 1;
    background-color: var(--primary);
}

/* SVG color fix for navigation arrows */
.previous_btn svg path, .next_btn svg path {
    fill: white; /* Make arrows white */
}

/* Fix slide content positioning */
.single-container {
    position: relative; /* Change from absolute */
    background-color: rgba(0, 0, 0, 0.4); /* Semi-transparent background */
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2;
}

/* Fix slide viewer and structure */
.slide_viewer {
    height: 100vh; /* Full viewport height */
    max-height: 640px;
    overflow: hidden;
    position: relative;
    width: 100%;
}

.slide {
    background-position: center;
    background-size: cover;
    height: 640px;
}
  
  @media only screen and (max-width: 767px) {
    .previous_btn {
      left: 50px;
    }
    .next_btn {
      right: 50px;
    }
  }

  .single-front, .play {
    cursor: pointer !important;
  }
  
  /* Make the rotation animation faster */
  @keyframes albumRotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
  }
  
  .rotating {
    animation: albumRotate 12s linear infinite;
  }
  
  /* Add a playing indicator to show active state */
  .single-wrapper.playing .shape-out {
    border-color: var(--primary) !important;
    box-shadow: 0 0 20px rgba(255, 60, 0, 0.3) !important;
  }
  
  /* Make the play button more obvious on hover */
  .play:hover .play-icon, 
  .play:hover .stop-icon {
    transform: scale(1.3) !important;
    filter: drop-shadow(0 0 3px rgba(255, 60, 0, 0.7)) !important;
  }



  /* Video Modal Styles */
.video-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(5px);
  }
  
  .modal-content {
    position: relative;
    margin: auto;
    width: 90%;
    max-width: 800px;
    top: 50%;
    transform: translateY(-50%);
    animation: modalFadeIn 0.4s ease-out;
  }
  
  @keyframes modalFadeIn {
    from {opacity: 0; transform: translateY(-50%) scale(0.9);}
    to {opacity: 1; transform: translateY(-50%) scale(1);}
  }
  
  .close-modal {
    position: absolute;
    right: -40px;
    top: -40px;
    color: var(--white);
    font-size: 35px;
    font-weight: bold;
    cursor: pointer;
    z-index: 1010;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
  }
  
  .close-modal:hover {
    color: var(--primary);
    transform: scale(1.1);
  }
  
  .video-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    background-color: #000;
    border-radius: 8px;
    box-shadow: 0 0 30px rgba(255, 60, 0, 0.3);
  }
  
  .video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 8px;
    overflow: hidden;
  }
  
  /* Animation for modal opening/closing */
  .modal-fade-in {
    animation: fadeIn 0.3s ease-out forwards;
  }
  
  .modal-fade-out {
    animation: fadeOut 0.3s ease-out forwards;
  }
  
  @keyframes fadeIn {
    from {opacity: 0;}
    to {opacity: 1;}
  }
  
  @keyframes fadeOut {
    from {opacity: 1;}
    to {opacity: 0;}
  }
  
  /* Add responsive adjustments */
  @media screen and (max-width: 767px) {
    .modal-content {
      width: 95%;
    }
    
    .close-modal {
      right: 0;
      top: -50px;
    }
  }