body {
    font-family: 'Arial', sans-serif;
    background-color: #121212; /* Dark background color */
    color: #fff; /* White text color for contrast */
    margin: 0;
    padding: 0;
}

header {
    background: #1e1e1e; /* Dark background for the header */
    padding: 10px 20px;
}

nav .nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

nav .logo {
    color: #fff;
    font-size: 28px;
    font-weight: bold;
    text-decoration: none;
}

nav .nav-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
}

nav .nav-links li {
    margin-left: 20px;
}

nav .nav-links a {
    color: #fff;
    text-decoration: none;
    font-size: 16px;
    transition: color 0.3s;
}

nav .nav-links a:hover {
    color: #f4a261; /* Light color for hover effect */
}

.welcome-section {
    text-align: center;
    padding: 40px 20px;
    background: #1e1e1e; /* Matching background to header */
    border-bottom: 2px solid #f4a261; /* Highlight with a border */
}

.welcome-section h1 {
    font-size: 32px;
    margin: 0;
}

.welcome-section p {
    font-size: 18px;
    margin: 10px 0 0;
}

.video-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between; /* Align items to have 3 per line */
    padding: 20px;
}

.video-item {
    background: #1e1e1e; /* Slightly lighter dark background for video items */
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    margin: 10px;
    width: calc(33.333% - 20px); /* Adjust width to fit 3 items per line */
    cursor: pointer;
    transition: transform 0.3s;
}

.video-item:hover {
    transform: scale(1.05);
}

.video-item img {
    width: 100%;
    height: auto;
}

.video-details {
    padding: 10px;
}

.video-details h3 {
    margin: 0;
    font-size: 16px;
}

.video-details p {
    margin: 5px 0 0;
    color: #bbb; /* Light grey for date */
}

footer {
    background: #1e1e1e; /* Dark background for footer */
    color: #bbb; /* Light grey text color */
    text-align: center;
    padding: 10px 20px;
    position: fixed;
    width: 100%;
    bottom: 0;
    border-top: 2px solid #f4a261; /* Highlight with a border */
}


/* Base styling for all screens */
body {
    font-family: 'Arial', sans-serif;
    background-color: #121212; /* Dark background color */
    color: #fff; /* White text color for contrast */
    margin: 0;
    padding: 0;
}

header {
    background: #1e1e1e; /* Dark background for the header */
    padding: 10px 20px;
}

nav .nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

nav .logo {
    color: #fff;
    font-size: 28px;
    font-weight: bold;
    text-decoration: none;
}

/* Base styles for nav links */
nav .nav-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
}

nav .nav-links li {
    margin-left: 20px;
}

nav .nav-links a {
    color: #fff;
    text-decoration: none;
    font-size: 16px;
    transition: color 0.3s;
}

nav .nav-links a:hover {
    color: #f4a261; /* Light color for hover effect */
}

/* Styling for burger icon */
.burger-icon {
    display: none;
    font-size: 30px;
    color: #fff;
    cursor: pointer;
}

/* Welcome section styling */
.welcome-section {
    text-align: center;
    padding: 40px 20px;
    background: #1e1e1e; /* Matching background to header */
    border-bottom: 2px solid #f4a261; /* Highlight with a border */
}

.welcome-section h1 {
    font-size: 32px;
    margin: 0;
}

.welcome-section p {
    font-size: 18px;
    margin: 10px 0 0;
}

/* Video container and items */
.video-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    padding: 20px;
}

.video-item {
    background: #1e1e1e;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    margin: 10px;
    width: calc(33.333% - 20px); /* Fit 3 items per row */
    cursor: pointer;
    transition: transform 0.3s;
}

.video-item:hover {
    transform: scale(1.05);
}

.video-item img {
    width: 100%;
    height: auto;
}

.video-details {
    padding: 10px;
}

.video-details h3 {
    margin: 0;
    font-size: 16px;
}

.video-details p {
    margin: 5px 0 0;
    color: #bbb; /* Light grey for date */
}

footer {
    background: #1e1e1e;
    color: #bbb;
    text-align: center;
    padding: 10px 20px;
    position: fixed;
    width: 100%;
    bottom: 0;
    border-top: 2px solid #f4a261;
}

/* Media queries for responsiveness */

/* Base styling for mobile screens (phones) */
@media (max-width: 768px) {
    body {
        font-size: 16px; /* Adjust base font size for readability */
    }

    header {
        padding: 15px;
    }

    /* Make the navigation flex into a column for small screens */
    nav .nav-container {
        flex-direction: column;
        align-items: flex-start;
    }

    nav .burger-icon {
        display: block; /* Show the burger icon */
    }

    nav .nav-links {
        display: none; /* Hide nav links on mobile by default */
        flex-direction: column;
        position: absolute;
        top: 60px; /* Adjust according to header height */
        left: 0;
        width: 100%;
        background-color: #1e1e1e; /* Same as header background */
        padding: 10px 0;
    }

    nav .nav-links.nav-open {
        display: flex; /* Show nav links when burger icon is clicked */
    }

    nav .nav-links li {
        margin: 10px 0;
    }

    nav .nav-links a {
        padding: 10px;
        display: block;
        text-align: center;
    }

    /* Adjust the welcome section padding and text size */
    .welcome-section {
        padding: 20px 10px;
    }

    .welcome-section h1 {
        font-size: 28px;
    }

    .welcome-section p {
        font-size: 16px;
    }

    /* Video container adjusts to a single column layout */
    .video-container {
        flex-direction: column;
        padding: 10px;
    }

    .video-item {
        width: 100%; /* Make video items take full width on small screens */
        margin: 10px 0; /* Add space between video items */
    }

    /* Adjust the footer padding and fix layout for small screens */
    footer {
        padding: 15px 10px;
        font-size: 14px;
    }
}

/* Styling for extra small screens (phones with smaller resolutions) */
@media (max-width: 480px) {
    .welcome-section h1 {
        font-size: 24px;
    }

    .welcome-section p {
        font-size: 14px;
    }

    .video-details h3 {
        font-size: 14px;
    }

    .video-details p {
        font-size: 12px;
    }
}
