/* Reset default styles */
body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
}

h1, h2, h3 {
    color: #333;
}

p {
    margin-bottom: 20px;
}

/* Logo style */
#logo {
    max-width: 20%; /* Initial size for larger screens */
}

@media (max-width: 768px) {
    #logo {
        max-width: 90%; /* Adjust size for smaller screens */
    }
}

/* Main section styles */
#premiere-main {
    background-color: #f9f9f9;
    padding: 20px;
    text-align: center;
}

.main-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
}

.main-img {
    flex: 0 0 50%; /* Set image width to 50% */
    max-width: 50%;
    margin-right: 20px; /* Add some space between image and text */
}

.main-img img {
    max-width: 90%;
    border-radius: 5px;
}

.main-text {
    flex: 0 0 calc(50% - 20px); /* Set text width to 50% minus margin */
    max-width: calc(50% - 20px); /* Adjust for margin */
    text-align: left;
}

@media (max-width: 768px) {
    .main-img {
        flex: 0 0 100%; /* Full width on smaller screens */
        max-width: 100%;
        margin-right: 0; /* Remove margin on mobile */
        margin-bottom: 20px; /* Add space between image and text on mobile */
    }

    .main-text {
        flex: 0 0 100%; /* Full width on smaller screens */
        max-width: 100%;
        text-align: center; /* Center text on mobile */
    }
}

/* Video section styles */
.test-wrapper {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 20px auto;
}

.video-section {
    width: calc(33.33% - 20px); /* Adjust as needed for spacing */
    margin-bottom: 20px;
    text-align: center;
}

.video-section h3 {
    margin-bottom: 10px; /* Reduced space between titles and videos */
}

.video-section video {
    width: 100%;
    height: 360px; /* Adjusted height for responsiveness */
}

@media (max-width: 768px) {
    /* Responsive adjustments */
    .main-wrapper {
        flex-direction: column;
        align-items: center;
    }

    .main-img {
        margin-bottom: 20px;
    }

    .main-text {
        text-align: center;
        margin-bottom: 20px;
    }

    .test-wrapper {
        justify-content: center;
    }

    .video-section {
        width: 100%;
    }
}

/* Popup form styles */
.popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.popup-content {
    background-color: #f9f9f9;
    border-radius: 5px;
    padding: 20px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 300px;
}

.close {
    color: #aaaaaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover {
    color: #000;
}

.popup h3 {
    text-align: center;
    margin-bottom: 10px;
}

.popup p {
    text-align: center;
    margin-bottom: 20px;
}

.popup form {
    display: flex;
    flex-direction: column;
}

.popup input {
    margin-bottom: 10px;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.popup input[type="submit"] {
    background-color: #7566fe;
    color: #fff;
    cursor: pointer;
}

/* Footer styles */
footer {
    background-color: #f9f9f9;
    padding: 20px;
    text-align: center;
}

footer ul {
    list-style: none;
    padding: 0;
    display: flex;
    justify-content: center;
    margin-top: 20px; /* Increase space between About Us and buttons */
}

footer li {
    margin: 0 10px;
}

footer li a {
    text-decoration: none;
    color: #333;
    font-size: 16px;
    padding: 8px 16px;
    border-radius: 5px;
    background-color: #7566fe;
    color: #fff;
}

/* Additional styles */
.about-us {
    text-align: center;
    margin-bottom: 20px; /* Increase space below About Us */
}

@media screen and (max-width: 768px) {
    /* Additional mobile-specific adjustments */
    .about-us br {
        display: none; /* Hide the <br> tag on mobile */
    }
}