body {
    font-family: Arial, sans-serif;
    background-color: #00002c;
    color: #ffffff;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background-color: #00004e;
}

header input {
    padding: 10px;
    font-size: 16px;
}

nav.category-nav {
    padding: 10px 20px;
}

nav.category-nav ul {
    display: flex;
    list-style-type: none;
    padding: 0;
    margin: 0;
}

nav.category-nav ul li {
    margin-right: 20px;
}

nav.category-nav ul li a {
    color: #ffffff;
    text-decoration: none;
    font-size: 18px;
}

nav.category-nav ul li a:hover {
    text-decoration: underline;
}

main {
    padding: 20px;
}

.category {
    margin-bottom: 40px;
}

.category h2 {
    font-size: 24px;
    margin-bottom: 10px;
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); /* Ensure minimum width */
    gap: 20px; /* Space between grid items */
}

.video {
    width: 100%; /* Allow the grid to control width */
    padding-top: 60%; /* Aspect ratio 1280:1080 (height/width) */
    background-size: contain; /* Contain the image within the element */
    background-position: center center; /* Center the image */
    background-repeat: no-repeat; /* Prevent background repetition */
    border-radius: 8px; /* Rounded corners */
    position: relative;
    overflow: hidden; /* Hide overflow */
    box-sizing: border-box; /* Include padding in width and height calculations */
}

.video.show-all {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #333;  
    font-size: 20px;  
    color: #fff;  
    cursor: pointer;
}

.video-grid a {
    text-decoration: none;
}

.video.highlight::before {
    content: '';
    position: absolute;
    top: 0; /* Adjust as needed */
    left: 0; /* Adjust as needed */
    right: 0; /* Adjust as needed */
    bottom: 0; /* Adjust as needed */
    border: 2px solid rgba(255, 204, 0, 0.7); /* Semi-transparent yellow border */
    box-shadow: 0 0 15px rgba(255, 204, 0, 0.7); /* Glow effect */
    border-radius: 8px; /* Match border radius */
    pointer-events: none; /* Ensure interactions are not blocked */
    z-index: 1; /* Ensure this appears above background content */
}

.video.highlight:hover::before {
    box-shadow: 0 0 20px rgba(255, 204, 0, 1); /* Stronger glow on hover */
}
