/* Reset some default styles for consistency */
body, h1, h2, h3, p, ul, li, a {
    margin: 0;
    padding: 0;
    list-style: none;
    text-decoration: none;
}

/* Set a background color for the body */
body {
    background-color: #f0f0f0;
    font-family: Arial, sans-serif;
}

/* Style the header */
header {
    background-color: #3c443c;
    color: red;
    padding: 20px;
    text-align: center;
}

header h1 {
    font-size: 28px;
    margin-bottom: 10px;
    color:white;
}

/* Navigation menu */
nav ul {
    list-style: none;
}

nav ul li {
    display: inline;
    margin-right: 20px;
}

nav a {
    justify-content: center;
    align-items:center;
    color: black;
    font-weight: bold;
    text-transform: uppercase;
    transition: color 0.3s ease;
    background: darkgrey;
    padding-top: 12px;
    padding-bottom: 12px;
    padding-left: 25px;
    padding-right: 25px;
    border: none;
    border-radius: 12px;
    
}

nav a:hover {
    justify-content: center;
    align-items:center;
    color: white;
    background: black;
    padding-top: 12px;
    padding-bottom: 12px;
    padding-left: 25px;
    padding-right: 25px;
    border: none;
    border-radius: 12px;
}

.menu-icon {
  padding-left: 27px;
  padding-right: 7px;
  margin-left: 20px;
  margin-right: 20px;
  background:grey;
  padding-top: 12px;
  padding-bottom: 12px;
  border: none;
  border-radius: 12px;
  align-items: center;
  justify-content: center;
}


.menu-icon-home {
  background:grey;
  padding-top: 12px;
  padding-bottom: 12px;
  border: none;
  border-radius: 12px;
}

.menu-icon-home:hover {
  background:grey;
  padding-left: 20px;
  padding-right: 20px;
  padding-top: 12px;
  padding-bottom: 12px;
  border: none;
  border-radius: 12px;
}

.menu-icon-categories {
  background:grey;
  padding-top: 12px;
  padding-bottom: 12px;
  border: none;
  border-radius: 12px;
  text: red;
}


.menu-icon-categories:hover {
  background:grey;
  padding-top: 12px;
  padding-bottom: 12px;
  border: none;
  border-radius: 12px;
  text: red;
}

/* Style the main content */
main {
    padding: 20px;
}

/* Style featured video section */
.video-section {
    background-color: #fff;
    padding: 20px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.video-section h2 {
    font-size: 24px;
    margin-bottom: 20px;
}

.video-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between; /* Prevent unnecessary gaps */
    gap: 16px; /* Adds spacing between items */
    box-shadow: rgba(0, 0, 0, 0.56) 0px 22px 70px 4px;
    border:none;
    border-radius:12.5px;
    
}

.video-card {
    background-color: #fff;
    border: 1px solid #e0e0e0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: 4px;
    width: calc(23.33% - 15px);
    text-align: center;
    flex: 1 1 calc(25% - 16px); /* Flexible layout */
    box-sizing: border-box;
    margin: 8px 0; /* Adjust vertical spacing */
    
}


.video-card video {
    margin-top: 14.5px;
    border: 2px solid black;
    border-radius: 18px;
    background: black;
    width: 88%; /* Responsive scaling */
    height: auto; /* Maintain aspect ratio */
    box-shadow: rgba(0, 0, 0, 0.56) 0px 22px 70px 4px;
}


video {
    margin-top: 14.5px;
    padding-left: 1.5px;
    padding-right: 1.5px;
    margin-right: 2px;
    margin-left: 2px;
    width: 200px;
    height: 10.5rem;
    min-height: 10.4rem;
    max-height: 10.4rem;
    box-shadow: rgba(0, 0, 0, 0.56) 0px 22px 70px 4px;
}


video:hover {
    border: 3.5px solid red;
    margin-right: 1px;
    margin-left: 0px;
    padding-left: 1px;
    padding-right: 1px;
    width: 97%; /* Responsive scaling */
    height: auto;
    min-height: 10.4rem;
    max-height: 10.4rem;
    controls: true;
    box-shadow: rgba(0, 0, 0, 0.56) 0px 22px 70px 4px;
}

.menu-icon img {
    
    margin-bottom: -3px;
    padding-bottom: -10px;
    justify-content: center;
    align-items:center;
    border: none;
    border-radius: 5px;
    
}


.menu-icon img:hover {
    
    margin-bottom: -2px;
    padding-bottom: -7px;
    justify-content: center;
    align-items:center;
    border: 1px solid black;
    border-radius: 5px;
    opacity: 75%;
    
}

.video-card img {
    max-width: 85%;
    height: auto;
    border: 5px solid #ddd;
    transform: 120px;
    transform: scale(1);
}

.video-card img:hover {
    max-width: 85%;
    height: auto;
    border: 5px solid black;
    transform: 120px;
    transform: scale(1.1);
}



.video-card h3 {
    font-size: 18px;
    margin: 10px 0;
}

.video-card p {
    font-size: 14px;
    color: #777;
}

.video-card a {
    box-shadow: rgba(0, 0, 0, 0.56) 0px 22px 70px 4px;
    margin-top: 9px;
    margin-bottom: 5px;
    display: inline-block;
    padding: 10px 20px;
    background-color: red;
    color: #fff;
    font-weight: bold;
    text-transform: uppercase;
    text-align: center;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.video-card a:hover {
    background-color: black;
     transform: scale(.90);
}



iframe {
    border: none;
    border-radius: 18px;
    width: 270px;
}


iframe:hover {
    border: 4px solid red;
    border-radius: 18px;
    width: 270px;
    transform: scale(1.009);
    background-color: #405D7F;
    transition: background-color 0.3s ease;
}


button {
    padding: 20px 20px;
    
    border-radius: 12px;
    color: #a58282;
    background: black;
    cursor: hand;
    margin-bottom: 15px;
}

button a {
    padding: 20px 20px;
    border: 2px solid grey;
    border-radius: 12px;
    color: white;
    background: black;
    cursor: hand;
}

button:hover {
    padding: 20px 20px;
    border: 3px solid black;
    border-radius: 12px;
    color: #fff;
    background:red;
    cursor: hand;
}



button a {
  
    color: #fff;
    cursor: hand;
   
}



button a:hover {
  
    color: yellow;
    cursor: hand;
   
}





/* Style the footer */
footer {
    background-color: #333;
    color: #fff;
    text-align: center;
    padding: 10px;
}

/* Responsive design for smaller screens */
@media screen and (max-width: 768px) {
    .video-card {
        width: calc(100% - 20px);
    }
}