/* General Styles */
html, body {
    font-family: sans-serif;
    line-height: 1.6;
    background-color: #f4f4f4;
    color: #333;
    margin: 5px;
    height: 100%;
}

h1, h2, h3 {
    color: black;
    margin-bottom: 15px;
}


.card{ 
    width: 100px;
    height: 100px;
    max-width: 50px;
    max-height: 200px;
}

a {
    color: red;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 10px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.banner{
    
}

.form-container {
    width: 80%;
    margin: 20px auto;
    padding: 20px;
    border: 1px solid #ccc;
    border-radius: 5px;
    background-color: #f9f9f9;
}

label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

input[type="text"],
input[type="email"],
input[type="number"],
input[type="password"],
input[type="url"],
textarea,
select {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box;
}

button[type="submit"],
.button {
    background-color: darkred;
    color: white;
    padding: 10px 15px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
}

button[type="submit"]:hover,
.button:hover {
    background-color: grey;
}





.error {
    color: red;
    margin-bottom: 10px;
}

.success {
    color: green;
    margin-bottom: 10px;
}

/* Navigation Styles (Basic) */
nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
}

nav ul li {
    margin-right: 15px;
}

nav ul li:last-child {
    margin-right: 0;
}

/* Footer Styles (Basic) */
footer {
    text-align: center;
    margin-top: 20px;
    padding: 10px;
    background-color: #333;
    color: white;
    border-radius: 4px;
    position: fixed;
    bottom: 0;
}

 /* Styles for search bar (if you had them previously) */
        .search-bar {
            text-align: center;
            margin-bottom: 20px;
        }

        .search-bar input[type="text"] {
            padding: 10px;
            border: 1px solid #ccc;
            border-radius: 5px;
            width: 50%;
            max-width: 400px;
        }

        .course-grid {
        display: grid;
        grid-template-columns: repeat(5, 1fr); /* 5 columns */
        grid-row-gap: 20px; /* Gap between rows */
        grid-column-gap: 20px; /* Gap between columns */
        margin-bottom: 20px;
    }

    .course-card {
        border: 1px solid #ddd;
        padding: 15px;
        border-radius: 8px;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
        text-align: center;
    }

    .course-card img {
        max-width: 100%;
        height: auto;
        border-radius: 4px;
        margin-bottom: 10px;
    }


        .pagination {
            display: flex;
            justify-content: center;
            margin-top: 20px;
        }

        .pagination a, .pagination span {
            padding: 8px 12px;
            margin: 0 5px;
            border: 1px solid #ccc;
            text-decoration: none;
            border-radius: 4px;
        }

        .pagination a:hover {
            background-color: #f0f0f0;
        }

        .pagination .current {
            background-color: #007bff;
            color: white;
            border-color: #007bff;}


           



            article, aside, figcaption, figure, footer, header, hgroup, main, nav, section {
  display: block;

}
  .login-container {
            width: 300px;
            margin: 50px auto;
            padding: 20px;
            border: 1px solid #ccc;
            border-radius: 5px;
            background-color: #f9f9f9;
        }
        h2 {
            text-align: center;
            margin-bottom: 20px;
        }
        label {
            display: block;
            margin-bottom: 5px;
            font-weight: bold;
        }
        input[type="email"],
        input[type="password"] {
            width: 100%;
            padding: 10px;
            margin-bottom: 15px;
            border: 1px solid #ddd;
            border-radius: 4px;
            box-sizing: border-box;
        }
        button[type="submit"] {
            background-color: darkred;
            color: white;
            padding: 10px 15px;
            border: none;
            border-radius: 4px;
            cursor: pointer;
            font-size: 16px;
        }
        .error {
            color: red;
            margin-top: 10px;
            text-align: center;
        }

              .banner-container {
            width: 100%; /* Span the full width of the screen */
            height: 25vh; /* 15% of the viewport height */
            max-height: 225px;
            overflow: hidden; /* Prevent image from overflowing */
            margin-bottom: 20px; /* Add some space below the banner */
        }

        .banner-image {
            display: block; /* Remove any extra spacing below the image */
            width: 100%; /* Make the image span the width of the container */
            height: auto; /* Maintain aspect ratio */
            object-fit: cover; /* Cover the container, potentially cropping */
        }
        
        
        .search-container {
  display: flex;
  gap: 15px;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 1200px;
  margin: 12px auto;
  padding: 0 15px;
  box-sizing: border-box;
}

.search-container input {
  flex: 1;
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-size: 16px;
}

.search-container p {
  margin: 0;
  font-size: 16px;
  color: #333;
}

.search-container button {
  padding: 12px 20px;
  background-color: crimson;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 16px;
  transition: background-color 0.3s ease;
}

.search-container button:hover {
  background-color: #b31217;
}

#search-results {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
  box-sizing: border-box;
}

/* Mobile adjustments */
@media (max-width: 767px) {
  .search-container {
    flex-direction: column;
    gap: 10px;
    padding: 0 10px;
  }

  .search-container input {
    width: 100%;
    font-size: 14px;
  }

  .search-container p {
    font-size: 14px;
    text-align: center;
  }

  .search-container button {
    width: 100%;
    padding: 10px;
    font-size: 14px;
  }
}

/* Tablet and Desktop adjustments */
@media (min-width: 768px) {
  .search-container {
    flex-direction: row;
    gap: 20px;
  }

  .search-container input {
    max-width: 60%;
  }

  .search-container button {
    width: auto;
    min-width: 120px;
  }
}




