.front-youtube {
    position: relative;
    height: 600px;
    width: 80% !important;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    background-image: url('../../../assets/images/noiseImg.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    margin-bottom: 96px;
}

.front-youtube::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    /* karartma efekti */
}

.youtube-overlay {
    position: absolute;
    z-index: 2;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.youtube-overlay h2 {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.youtube-overlay p {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
}

.youtube-play {
    position: relative;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: none;
    background: #fff;
    color: #8A0303;
    font-size: 28px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

/* Animasyonlu halkalar */
.youtube-play::before,
.youtube-play::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 60px;
    height: 60px;
    border: 2px solid #fff;
    border-radius: 50%;
    animation: pulse 2s linear infinite;
    opacity: 0;
}


.youtube-play::after {
    animation-delay: 2s;
}
.youtube-play:hover::after {
    animation-delay: 0.5s;
}
@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 0.8;
    }

    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}
.icon-play {
  width: 0;
  height: 0;
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
  border-left: 18px solid #8a03039d; /* üçgenin rengi */
  cursor: pointer;
  position: relative;
  left: 2px;
  transition: ease 0.3s;
}
.youtube-play:hover .icon-play{
    border-left: 18px solid #8a0303; 
}
.youtube-modal-content{
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
}
#youtubeFrame {
    width: 100%;
    height: 100%;
    border: none;
}
.youtube-close {
  position: absolute;
  top: -50px;
  right: 0;
  z-index: 101;
    background: #000;
    width:50px;
    height: 50px;
    transition: ease 0.3s;
    opacity: 0;
    visibility: hidden;
}

.icon-close {
  position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
  width: 36px;
  height: 36px;
  background: transparent;
  border: none;
  cursor: pointer;

}

.icon-close span {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 24px;
  height: 3px;
  background: #fff; /* Renk buradan değiştirilebilir */
  border-radius: 2px;
  transform-origin: center;
  transition: ease 0.3s;
}

.icon-close span:first-child {
  transform: translate(-50%, -50%) rotate(45deg);
}

.icon-close span:last-child {
  transform: translate(-50%, -50%) rotate(-45deg);
}
@media (max-width: 768px) {
    .front-youtube {
        height: 400px;
        width: 100% !important;
        margin-bottom: 0;
    }

    .youtube-overlay h2 {
        font-size: 1.5rem;
    }

    .youtube-overlay p {
        font-size: 1rem;
    }

    .youtube-play {
        width: 50px;
        height: 50px;
        font-size: 24px;
    }

    .youtube-play::before,
    .youtube-play::after {
        width: 50px;
        height: 50px;
    }
}