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

html {
    height: 100%;
    width: 100%;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #ffffff;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

header {
    background-color: #ffffff;
    border-bottom: 1px solid #e0e0e0;
    padding: 2rem 0;
    text-align: center;
    margin-bottom: 3rem;
}

.header-logo {
    max-height: 80px;
    width: auto;
    margin-bottom: 1rem;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

header h1 {
    font-size: 2.5rem;
    font-weight: 300;
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

header p {
    font-size: 1.1rem;
    color: #7f8c8d;
    font-weight: 300;
}

main {
    flex: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.video-grid {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-bottom: 3rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.video-card {
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.video-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.section-heading {
    font-size: 1.8rem;
    font-weight: 600;
    color: #2c3e50;
    text-align: center;
    margin: 3rem 0 2rem 0;
    padding: 1rem 0;
    border-top: 2px solid #e0e0e0;
    position: relative;
}

.section-heading::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: linear-gradient(90deg, #3498db, #2c3e50);
}

/* Password Protection Styles */
.password-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.password-container {
    background-color: white;
    padding: 3rem;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    text-align: center;
    max-width: 400px;
    width: 90%;
}

.password-logo {
    max-height: 60px;
    width: auto;
    margin-bottom: 1.5rem;
}

.password-container h2 {
    color: #2c3e50;
    margin-bottom: 0.5rem;
    font-size: 1.8rem;
}

.password-container p {
    color: #7f8c8d;
    margin-bottom: 2rem;
    font-size: 1rem;
}

.password-container form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.password-container input {
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.password-container input:focus {
    outline: none;
    border-color: #3498db;
}

.password-container button {
    padding: 12px;
    background-color: #3498db;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.password-container button:hover {
    background-color: #2980b9;
}

.error-message {
    color: #e74c3c;
    font-size: 0.9rem;
    margin-top: 1rem;
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    background-color: #f0f0f0;
}

.custom-video-player {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-thumbnail {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: pointer;
    transition: opacity 0.3s ease;
    display: block;
    z-index: 1;
}

.video-thumbnail:hover {
    opacity: 0.8;
}

.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(0, 0, 0, 0.7);
    border-radius: 50%;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 3;
}

.play-button:hover {
    background-color: rgba(0, 0, 0, 0.9);
    transform: translate(-50%, -50%) scale(1.1);
}

.play-button svg {
    margin-left: 4px;
}

.fullscreen-button {
    position: absolute;
    bottom: 15px;
    right: 15px;
    background-color: rgba(0, 0, 0, 0.7);
    border-radius: 4px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 5;
}

.fullscreen-button:hover {
    background-color: rgba(0, 0, 0, 0.9);
    transform: scale(1.1);
}

.custom-video-player iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* Mobile fullscreen improvements */
@media (max-width: 768px) {
    .video-wrapper {
        position: relative;
        width: 100%;
        min-height: 250px;
    }
    
    .video-wrapper iframe {
        width: 100% !important;
        height: 100% !important;
        min-height: 250px;
    }
    
    /* iOS specific fixes */
    .video-wrapper iframe[src*="vimeo"] {
        -webkit-transform: translateZ(0);
        transform: translateZ(0);
    }
}

.video-info h3 {
    font-size: 1.3rem;
    color: #2c3e50;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.video-info p {
    color: #7f8c8d;
    font-size: 0.9rem;
    line-height: 1.5;
}

.coming-soon-heading {
    text-align: center;
    font-size: 1.8rem;
    font-weight: 600;
    color: #e74c3c;
    margin: 2rem 0 1rem 0;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.coming-soon-card {
    opacity: 0.7;
    position: relative;
}

.coming-soon-card:hover {
    transform: none;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.coming-soon-thumbnail {
    cursor: default;
    filter: grayscale(0.3);
}

.coming-soon-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 4;
}

.coming-soon-text {
    color: white;
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

footer {
    background-color: #f8f9fa;
    border-top: 1px solid #e0e0e0;
    padding: 2rem 0;
    text-align: center;
    margin-top: 3rem;
}

footer p {
    color: #7f8c8d;
    font-size: 0.9rem;
}

/* Responsive design */
@media (max-width: 768px) {
    header h1 {
        font-size: 2rem;
    }

    main {
        padding: 0 1rem;
    }
}

/* Desktop styles - default */
.video-info {
    padding: 2.5rem 3rem;
}

@media (max-width: 480px) {
    header {
        padding: 1.5rem 0;
        margin-bottom: 2rem;
    }

    header h1 {
        font-size: 1.8rem;
    }

    .video-info {
        padding: 1rem !important;
    }
}