/* General Reset */
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Open Sans', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f9fbfd;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    overflow-x: hidden; /* Important: Prevents side-scrolling on mobile */
}

/* Typography & Links */
a { text-decoration: none; color: inherit; transition: 0.3s; }
h1, h2, h3 { font-family: 'Poppins', sans-serif; color: #0056b3; }

/* Navigation */
.navbar {
    background-color: #ffffff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 1.2rem; /* Adjusted for better mobile fit */
    font-weight: 700;
    color: #0056b3;
}
.logo { height: 45px; width: auto; }

.nav-links { list-style: none; display: flex; gap: 20px; }
.nav-links a { font-weight: 600; color: #555; font-size: 0.95rem; }
.nav-links a:hover, .nav-links a.active { color: #0056b3; }

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #0056b3, #00d4ff);
    color: white;
    text-align: center;
    padding: 3rem 1rem;
}
.hero h1 { color: white; margin-bottom: 10px; font-size: 2.2rem; }

/* Container */
.container { max-width: 1200px; margin: 0 auto; padding: 2rem 1rem; width: 100%; }

/* --- RESPONSIVE VIDEO SLIDER --- */
.slider-container {
    position: relative;
    width: 100%;
    overflow: hidden; 
    padding: 20px 0;
}

.slider-track {
    display: flex; 
    gap: 20px; /* This gap is critical for the math below */
    transition: transform 0.5s ease-in-out; 
}

.video-card {
    /* MOBILE DEFAULT: 1 card takes full width */
    min-width: 100%; 
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    flex-shrink: 0;
}

/* TABLET: 2 cards per row (50% minus half the gap) */
@media (min-width: 768px) {
    .video-card { min-width: calc(50% - 10px); } 
}

/* DESKTOP: 3 cards per row (33.33% minus 2/3 of the gap) */
@media (min-width: 1024px) {
    .video-card { min-width: calc(33.333% - 13.33px); } 
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    background: #000;
}
.video-wrapper iframe {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%; border: 0;
}
.video-card h3 { padding: 15px; text-align: center; font-size: 1rem; }

/* Content Pages (Articles/About) */
.text-content { background: white; padding: 40px; border-radius: 8px; box-shadow: 0 2px 5px rgba(0,0,0,0.05); }
.text-content h2 { margin-top: 20px; margin-bottom: 10px; font-size: 1.5rem; border-bottom: 2px solid #eee; padding-bottom: 10px;}
.text-content p { margin-bottom: 15px; color: #555; }
.text-content ul { margin-left: 20px; margin-bottom: 20px; color: #555; }

/* Footer */
footer {
    background-color: #222;
    color: #aaa;
    text-align: center;
    padding: 30px 20px;
    margin-top: auto;
}
.footer-links {
    margin-top: 10px;
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}
.footer-links a { color: #fff; font-size: 0.9rem; }
.footer-links a:hover { color: #00d4ff; text-decoration: underline; }

/* --- SLIDER ARROW STYLES --- */
.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%); 
    background-color: rgba(0, 0, 0, 0.6); 
    color: white;
    border: none;
    font-size: 1.5rem; 
    padding: 15px 12px;
    cursor: pointer;
    z-index: 10; 
    border-radius: 4px; /* Changed to slight curve for modern look */
    transition: background-color 0.3s ease;
    outline: none; 
}

.slider-arrow:hover {
    background-color: #0056b3; 
}

/* Arrow Positions */
.prev { left: 10px; }
.next { right: 10px; }

/* Adjust arrow positions on Mobile so they don't cover the video too much */
@media (max-width: 768px) {
    .slider-arrow {
        padding: 10px 8px; /* Smaller buttons on mobile */
        font-size: 1.2rem;
    }
    .slider-container {
        padding: 20px 0; /* Remove extra padding, let arrows sit on top of video edge */
    }
    .prev { left: 0; border-radius: 0 5px 5px 0; }
    .next { right: 0; border-radius: 5px 0 0 5px; }
}