/* General Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Body and Font */
body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    background-color: #f4f4f9;
    color: #333;
}

/* Navbar */
.navbar {
    background-color: #241258;
    color: #fff;
    padding: 1rem 2rem;
    position: sticky;
    top: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 10;
}

.navbar h1 {
    font-size: 1.8rem;
}

.navbar ul {
    margin-top: 9px;
    margin-bottom: -10px;
    list-style: none;
    display: flex;
    gap: 1rem;
}

.navbar ul li a {
    text-decoration: none;
    color: #fff;
    font-weight: 500;
}

.navbar ul li a:hover {
    color: #f1c40f;
}

/* Icon Button */
.icon-button {
    background-color: transparent;
    border: none;
    color: #fff;
    cursor: pointer;
}

.icon-button i {
    font-size: 1.5rem;
}

/* Header Section */
header {
    background-image: url('../assets/sequence.jpg');
    background-size: cover;
    background-position: center;
    color: white;
    text-align: center;
    padding: 5rem 2rem;
    height: 400px; /* Ensure the header takes up full height of the viewport */
    display: flex;
    flex-direction: column;
    justify-content: center;
}

header h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

header p {
    font-size: 1.3rem;
    color: #fff;
    max-width: 800px;
    margin: 0 auto;
    font-weight: 300;
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    header {
        padding: 3rem 1.5rem; /* Reduce padding on smaller screens */
        height: auto; /* Allow the header to adjust its height based on content */
    }

    header h1 {
        font-size: 2.5rem;
    }

    header p {
        font-size: 1.1rem;
    }
}


/* Content Section */
section {
    padding: 3rem 2rem;
    background-color: #fff;
}

h2, h3 {
    font-size: 2rem;
    color: #333;
    margin-bottom: 1rem;
}

p, li {
    font-size: 1rem;
    margin-bottom: 1rem;
}

ul {
    padding-left: 20px;
}

pre {
    background-color: #2d2d2d;
    color: #fff;
    padding: 1rem;
    border-radius: 5px;
    overflow-x: auto;
    font-size: 1rem;
}

ol {
    padding-left: 20px;
}

/* Footer */
footer {
    background-color: #241258;
    color: white;
    text-align: center;
    padding: 1rem 0;
    font-size: 0.9rem;
}

footer p {
    margin: 0;
}

/* Video */
.video-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.video-item {
    width: 300px;  /* Increase width for larger thumbnails */
    text-align: center;
    margin-bottom: 20px;
    position: relative;  /* Make sure the container is positioned */
    overflow: hidden;    /* Ensure the image doesn't overflow */
}

.video-item img {
    width: 100%;  /* Make the image take the full width of its container */
    height: 200px;  /* Increase height for larger thumbnails */
    object-fit: cover; /* Ensure aspect ratio is maintained */
    border-radius: 8px;
    transition: transform 0.3s ease;  /* Smooth transition for zoom effect */
}

.video-item img:hover {
    transform: scale(1.1);  /* Zoom in effect on hover */
}

.video-item p {
    font-size: 14px;
    margin-top: 10px;
}

.video-item a {
    text-decoration: none;
    color: #2d2d2d;
}

.video-item a:hover {
    text-decoration: underline;
}



/* Mobile Adjustments */
@media (max-width: 768px) {
    .navbar h1 {
        font-size: 1.5rem;
    }

    header h1 {
        font-size: 2.5rem;
    }

    header p {
        font-size: 1.1rem;
    }

    section {
        padding: 2rem 1rem;
    }

    h2, h3 {
        font-size: 1.6rem;
    }

    pre {
        font-size: 0.9rem;
    }
}
