.coursecard {
    width: 100%;
    max-width: 800px; /* Maximum width to contain the card */
    margin: 20px auto; /* Center the card with top and bottom margin */
    padding: 20px;
    border: 1px solid #000000; /* Light border */
    border-radius: 12px; /* Rounded corners for the card */
    background-color: #fff; /* White background for the card */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1); /* Soft shadow for depth */
  }
  
.coursecard .row {
    display: flex;
    align-items: center;
  }
  
.coursecard .col-6 {
    padding: 15px;
  }
  
.coursecard h5 {
    margin-top: 10px;
    margin-bottom: 10px;
    color: #333; /* Text color */
  }
  
  .container.coursecard p {
    color: #666;
    font-size: 14px; /* Font size for the description */
  }



.video-button {
    position: relative;
    display: inline-block;
    border-radius: 50%;
    overflow: hidden;
    width: 150px;
    height: 150px;
    background-color: #FFCD01;
    color: #fff;
    text-align: center;
    line-height: 150px;
    font-size: 24px;
    cursor: pointer;
    transition: transform 0.3s ease-in-out;
}

.mentor{
    background-image: url('assets/images/team/Ali Yılmaz.png');
    background-color: #0b3feb;
}

.video-button i {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 48px;
}

.video-button span {
    position: absolute;
    bottom: 10px;
    width: 100%;
    text-align: center;
    font-size: 18px;
}

.video-button:hover {
        transform: scale(1.1); /* Slightly enlarge on hover */
    }

.video-button.animate-pop {
            transform: scale(3); /* Slightly enlarge */
            width: 200px; /* Change to a square shape */
            height: 200px; /* Change to a square shape */
            border-radius: 10px; /* Change to square shape */
        }

    /* Centering the YouTube iframe */
.youtube-iframe {
        width: 100%;
        height: 400px;
    }

    .video-button-container {
            display: flex;
            justify-content: center; /* Center buttons horizontally */
            flex-wrap: wrap; /* Allow wrapping on smaller screens */
        }


.video-button2 {
    position: relative;
    display: inline-block;
    overflow: hidden;
    width: 150px;
    height: 150px;
    background-color: #FFCD01;
    color: #fff;
    text-align: center;
    line-height: 150px;
    font-size: 24px;
    cursor: pointer;
    transition: transform 0.3s ease-in-out;
}

.video-button2 i {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 48px;
}

.video-button2 span {
    position: absolute;
    bottom: 10px;
    width: 100%;
    text-align: center;
    font-size: 18px;
}

.video-button2:hover {
        transform: scale(1.1); /* Slightly enlarge on hover */
    }

 .video-button2.animate-pop {
            transform: scale(3); /* Slightly enlarge */
            width: 200px; /* Change to a square shape */
            height: 200px; /* Change to a square shape */
            border-radius: 10px; /* Change to square shape */
        }

    /* Centering the YouTube iframe */
.youtube-iframe2 {
        width: 100%;
        height: 400px;
    }

.video-button2-container {
            display: flex;
            justify-content: center; /* Center buttons horizontally */
            flex-wrap: wrap; /* Allow wrapping on smaller screens */
        }


.video-container {
            position: relative;
            width: 350px;
            height: 200px;
            background-image: url('assets/images/python.png');
            background-size: cover;
            border: 2px solid #ddd;
            cursor: pointer;
            margin: 50px auto;
            border-radius: 10px;
        }

.play-button {
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            width: 80px;
            height: 80px;
            background-color: rgba(255, 255, 255, 0.7);
            border-radius: 50%;
            display: flex;
            justify-content: center;
            align-items: center;
        }

.play-button::before {
            content: '';
            display: block;
            width: 0;
            height: 0;
            border-left: 30px solid black;
            border-top: 15px solid transparent;
            border-bottom: 15px solid transparent;
        }

        /* Popup styles */
.popup {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.8);
            justify-content: center;
            align-items: center;
            z-index: 1000;
        }

        .popup-content {
            width: 70%;
            height: 70%;
            position: relative;
        }

        .popup-content iframe {
            width: 100%;
            height: 100%;
            border: none;
        }

        .close-popup {
            position: absolute;
            top: -30px;
            right: -30px;
            background: red;
            color: white;
            font-size: 20px;
            width: 40px;
            height: 40px;
            border-radius: 50%;
            display: flex;
            justify-content: center;
            align-items: center;
            cursor: pointer;
            z-index: 1000;
        }

        @media only screen and (max-width: 768px) {
        .video-container {
            max-width: 100%; /* Remove max-width constraint on smaller screens */
            padding-top: 56.25%; /* Maintain aspect ratio */
        }

        .popup-content {
            width: 100%;
            height: auto;
        }

        .close-popup {
            width: 25px;
            height: 25px;
            font-size: 18px;
        }
    }

    @media only screen and (max-width: 480px) {
        .popup {
            background-size: cover; /* Change back to cover for very small screens */
            background-position: center; /* Center the image again */
            padding: 10px; /* Reduce padding */
        }

        .popup-content {
            width: 95%;
            height: auto;
        }
    }

