
.container {
    position: relative;
    width: 100%;
    max-width: 900px;
    height: 100%;
    max-height: 700px;
    background: white;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    overflow: hidden;
}

video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background-color: black;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
    padding: 20px;
}

.header-text {
    background: rgba(0, 0, 0, 0.6);
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    font-size: 18px;
    font-weight: bold;
    text-align: center;
    margin-bottom: 10px;
    align-self: flex-start;
}

.action-buttons {
    background: transparent;
    border-radius: 8px;
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: flex-start;
    max-width: 220px;
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.button {
    padding: 12px 25px;
    font-size: 16px;
    border: 2px solid #ffffff;
    border-radius: 8px;
    cursor: pointer;
    width: 100%;
    text-align: center;
    transition: background-color 0.3s, transform 0.2s, border-color 0.3s;
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.button:hover {
    transform: translateY(-2px);
    background-color: rgba(255, 255, 255, 0.4);
    border-color: #ff5252;
}

.result {
    margin-top: 20px;
    padding: 15px;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    border-radius: 8px;
    font-size: 16px;
    text-align: center;
    flex-grow: 1;
    align-self: flex-start;
    max-width: 60%;
}

.hidden {
    display: none;
}

.center-wrapper {
    position: relative; 
    width: 100%;
    height: 100px;
    display: flex; /* Use flex to center the content */
    justify-content: center;
    align-items: center;
}


.open-btn {
    padding: 0.75rem 1.5rem;
    margin-bottom: 50px;
    background: #5a4fcf;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.open-btn:hover {
    background: #5041f4;
}


/* video sections */

.video-container {
    padding: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.section {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 3rem;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 1.5rem;
    background: #ffffff;
}

/* Reverse section for alternating content */
.section.reverse {
    flex-direction: row-reverse;
}

/* Ensure middle section video is always on the left */
.section.middle {
    flex-direction: row;
}

/* Text Styles */
.text {
    flex: 1;
    padding: 1rem;
}

.text h2 {
    font-size: 1.8rem;
    color: #5a4fcf;
    margin-bottom: 1rem;
}

.text p {
    font-size: 1rem;
    line-height: 1.6;
    color: #555;
}

/* Media Styles */
.media {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.media video,
.media img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Restrict height for portrait videos */
.media video {
    max-height: 400px;
    object-fit: cover; /* Crop the video to fit the container */
}

.media video:fullscreen {
    max-height: none;
    object-fit: contain; /* Ensures the entire video is displayed */
    width: 100%;
    height: 100%;
    border-radius: 0; /* Remove rounded corners in fullscreen */
    box-shadow: none; /* Remove shadow in fullscreen */
}


.media video:hover,
.media img:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

/* Responsive Design */
@media (max-width: 768px) {
    .section {
        flex-direction: column;
    }

    .text h2 {
        font-size: 1.5rem;
    }

    .text p {
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    .text h2 {
        font-size: 1.2rem;
    }

    .text p {
        font-size: 0.9rem;
    }
}


/* hero section CSS */

.hero-section {
    /* background: linear-gradient(to right, #6117b1, #2575fc); Gradient background */
    background-color: #5a4fcf;
    color: #fff;
    text-align: center;
    padding: 100px 20px;
    position: relative;
    overflow: hidden;
}

.hero-section:after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3); /* Optional overlay */
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2; /* Ensures content is above the overlay */
    max-width: 800px;
    margin: 0 auto;
}

.hero-title {
    font-size: 3rem;
    font-weight: bold;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 30px;
}

/* Make it responsive */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }
    .hero-subtitle {
        font-size: 1rem;
    }
}
