/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
    background-color: #fff;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 80px 0;
}
.section-light { background-color: #f8f9fa; }
.section-dark { background-color: #2c3e50; color: white; }
.section-dark .section-title, .section-dark p { color: white; }


.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 3rem;
    color: #2c3e50;
}
.section-subtitle {
    font-size: 1.1rem;
    text-align: center;
    max-width: 700px;
    margin: -2rem auto 3rem;
    color: #555;
}
.section-dark .section-subtitle { color: #bdc3c7; }


.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    text-align: center;
    font-size: 1rem;
}


.btn-light {
    background: white;
    color: #C53A45;
    border: 2px solid white;
}
.btn-light:hover {
    background: rgba(255,255,255,0.8);
    color: #1f5f8b;
}

/* Header */
.header {
    position: fixed; top: 0; left: 0; width: 100%;
    background: rgba(255, 255, 255, 0.9); backdrop-filter: blur(10px);
    z-index: 1000; transition: all 0.3s ease; box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}
.nav { display: flex; justify-content: space-between; align-items: center; padding: 1rem 0; height: 70px; }
.nav-logo { height: 35px; }
.nav-list { display: flex; list-style: none; gap: 2.5rem; }
.nav-link { text-decoration: none; color: #2c3e50; font-weight: 500; transition: color 0.3s ease; padding-bottom: 5px; }
.nav-link:hover, .nav-link.active { color: #C53A45; border-bottom: 2px solid #C53A45; }
.nav-toggle { display: none; font-size: 1.5rem; cursor: pointer; color: #2c3e50; }


/* Hero with Background Video */
.hero-video-bg {
    position: relative;
    height: 80vh; /* Adjust height as needed */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden; /* Important for video containment */
    padding-top: 70px; /* Account for fixed header */
}
.video-background-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1; /* Behind content */
}
.video-background-container video {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Cover the area, might crop */
}
.hero-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* Dark overlay for text readability */
    z-index: 0;
}
.hero-video-content {
    position: relative; /* Above overlay */
    z-index: 1;
    color: white;
    max-width: 800px;
}
.hero-video-content h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
}
.hero-video-content p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    color: #f0f0f0;
}

/* Featured Video Section */
.featured-video-section .container {
    max-width: 900px; /* Control max width of video container */
}
.featured-video-wrapper {
    position: relative;
    width: 100%;
    /* For 16:9 aspect ratio if needed, otherwise let video dictate */
    /* padding-bottom: 56.25%; height: 0; overflow: hidden; */
    border-radius: 10px;
    overflow: hidden; /* If video has its own radius */
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    background-color: #000; /* Fallback if poster doesn't load */
}
.featured-video-wrapper video {
    display: block; /* Remove extra space below video */
    width: 100%;
    height: auto; /* Maintain aspect ratio */
    border-radius: 10px; /* If not handled by wrapper */
}
.video-info {
    margin-top: 2rem;
    text-align: center;
}
.video-info h3 {
    font-size: 1.8rem;
    color: #2c3e50;
    margin-bottom: 0.5rem;
}
.video-info p {
    font-size: 1rem;
    color: #555;
    max-width: 700px;
    margin: 0 auto;
}

/* Video Grid Section */
.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}
.video-card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.video-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}
.video-thumbnail-container {
    position: relative;
    background-color: #000; /* Fallback */
}
.video-thumbnail-container video,
.video-thumbnail-container img.video-poster-thumb { /* For poster image fallback */
    width: 100%;
    height: 180px; /* Fixed height for thumbs */
    object-fit: cover;
    display: block;
}
.play-icon-overlay {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    font-size: 3rem;
    color: rgba(255,255,255,0.8);
    pointer-events: none; /* So it doesn't block video controls if they are there */
    opacity: 0.7;
    transition: opacity 0.3s ease;
}
.video-card:hover .play-icon-overlay {
    opacity: 1;
}
.video-card-content {
    padding: 1rem 1.25rem;
}
.video-card-content h4 {
    font-size: 1.2rem;
    color: #2c3e50;
    margin-bottom: 0.5rem;
}
.video-card-content p {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.5;
}

/* Video with Text (Split Layout) */
.split-layout-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}
.split-video-content video {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}
.split-text-content h3 {
    font-size: 2rem;
    color: #2c3e50;
    margin-bottom: 1rem;
}
.split-text-content p {
    margin-bottom: 1rem;
    color: #555;
}
.split-text-content ul {
    list-style: none;
    padding-left: 0;
}
.split-text-content ul li {
    margin-bottom: 0.5rem;
    padding-left: 1.5rem;
    position: relative;
}
.split-text-content ul li::before {
    content: "\f00c"; /* Font Awesome check icon */
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    left: 0;
    color: #27ae60; /* Green check */
}
.section-dark .split-text-content h3, .section-dark .split-text-content p { color: white; }
.section-dark .split-text-content ul li { color: #e0e0e0; }
.section-dark .split-text-content ul li::before { color: #2ecc71; }


/* YouTube Embed Section */
.youtube-embed-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}
.youtube-embed-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}


/* Responsive Adjustments */
@media (max-width: 992px) {
    .split-layout-container { grid-template-columns: 1fr; }
    .split-video-content { margin-bottom: 2rem; } /* Add space when stacked */
        .hero-video-content h1 { font-size: 2.8rem; }
    .hero-video-content p { font-size: 1.1rem; }
}
@media (max-width: 768px) {
    .nav-menu {
        position: fixed; top: 70px; left: -100%; width: 100%; height: calc(100vh - 70px);
        background: white; flex-direction: column; justify-content: center; align-items: center;
        transition: left 0.3s ease; padding-top: 1rem; box-shadow: 0 5px 10px rgba(0,0,0,0.1);
    }
    .nav-menu.active { left: 0; }
    .nav-list { flex-direction: column; gap: 2rem; }
    .nav-toggle { display: block; }

    .section-title { font-size: 2rem; }
    .section-subtitle { font-size: 1rem; margin-bottom: 2rem;}
    .hero-video-content h1 { font-size: 2.2rem; }
    .hero-video-content p { font-size: 1rem; }
    .btn { padding: 10px 22px; font-size: 0.9rem;}
}
@media (max-width: 480px) {
    .container { padding: 0 15px; }
    .section-title { font-size: 1.8rem; }
    .hero-video-content h1 { font-size: 1.8rem; }
    .video-grid { grid-template-columns: 1fr; } /* Stack cards on very small screens */
    .footer-content { grid-template-columns: 1fr; text-align: center; }
    .social-links { justify-content: center; }
    .footer-bottom { flex-direction: column; text-align: center; }
}
