/* General Styles */
body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  background-color: #e0dcdc;
  color: #333;
}
#name {
  font-family: "Times New Roman", Times, serif;
  font-size: 50px;
}
a {
  text-decoration: none;
  color: #fff;
}

ul {
  list-style-type: none;
  padding: 0;
}

header,
footer {
  background-color: #070288;
  color: white;
  padding: 10px 0;
  text-align: center;
}

header .logo-container {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
}

header .logo-container img {
  height: 100px;
  margin-right: 10px;
}

nav ul {
  display: flex;
  justify-content: center;
  background-color: #0347f5;
  margin: 0;
}

nav ul li {
  position: relative;
}

nav ul li a {
  display: block;
  padding: 10px 20px;
  color: white;
}

nav ul li:hover {
  background-color: #25057e;
  /* border: 1px solid white; */
  /* border-radius: 5px; */
}
nav ul li ul li:hover{
  border-radius: 5px;
}
nav ul li ul {
  border-radius: 5px;
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: #00509e;
  z-index: 1000;
 
}

nav ul li:hover ul {
  display: block;

}

nav ul li ul li {
  width: 200px;
}

nav ul li ul li a {
  padding: 10px;
}

/* Sliding Images */
.slider {
  position: relative;
  width: 100%;
  height: 800px;
  overflow: hidden;
  margin-bottom: 20px;
}

.slider img {
  width: 100%;
  height: 200px;
  object-fit: contain;
}

.slider .slide {
  display: flex;
  transition: transform 0.5s ease-in-out;
}

.slider .slides img {
  width: 100%;
}

.slider .controls {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  transform: translateY(-50%);
}

.slider .controls button {
  background-color: rgba(0, 0, 0, 0.5);
  border: none;
  color: white;
  padding: 10px;
  cursor: pointer;
}

/* Courses Section */
.courses {
  padding: 20px;
}

.courses h2 {
  text-align: center;
  margin-bottom: 20px;
}

.course-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.course-card {
  background-color: rgb(248, 248, 248);
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  padding: 20px;
  text-align: center;
}
.course-card:hover {
  background-color: rgb(255, 255, 255);
  border: 1px solid black;
  color: black;
  cursor: pointer;
  
}

.course-card h3 {
  margin: 0;
  color: #003366;
}

/* Contact Form */
.contact {
  padding: 20px;
}

.contact form {
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
}

.contact form label {
  margin-bottom: 5px;
}

.contact form input,
.contact form textarea {
  margin-bottom: 10px;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
  /* font-size:10px; */
}

.contact form button {
  padding: 10px;
  background-color: #00509e;
  border: none;
  color: white;
  cursor: pointer;
  border-radius: 4px;
}

.contact form button:hover {
  background-color: #003366;
}
footer section i img{
width: 20px;
height: 20px;
/* color: white; */
}
footer section i img:hover {
  box-sizing: border-box;
  background-color: #000000;
  border: 1px solid rgb(255, 0, 0);
  border-radius: 5px;
  
}

/* Login Forms */
.login {
  padding: 20px;
}

.login form {
  max-width: 400px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
}

.login form label {
  margin-bottom: 5px;
}

.login form input {
  margin-bottom: 10px;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
}

.login form button {
  padding: 10px;
  background-color: #00509e;
  border: none;
  color: white;
  cursor: pointer;
  border-radius: 4px;
}

.login form button:hover {
  background-color: #003366;
}
/* gallery section */
.gallery h2{
  text-align: center;
  color: rgb(0, 0, 0);

}
.gallery-grid .gallery-card img{
  width: 700px;
  height: 500px;
  border-radius: 10px;
}

.gallery-grid {
  /* width: 100%; */
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  justify-items: center;
  /* display: grid;
  grid-template-columns: repeat(auto-fit, minmax(600px, 1fr));
  gap: 30px; */
}

.gallery-card {
  /* height: 400px;
  width:700px; */
  /* background-color: rgb(0, 0, 0); */
   /* box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); */
  padding: 1px;
  text-align: center; 
  margin: 5px;
  border-radius: 10px;
}
/* .pic {
  display: flex;
  justify-items: center;
  justify-content: center;
  flex-wrap: wrap;
}
.pic img {
  width: 80%;
  border: 2px solid black;
  margin: 50px 0px;
} */

/* Footer */
footer {
  padding: 20px;
  text-align: center;
}

footer section {
  margin-bottom: 20px;
}

footer h3 {
  margin-bottom: 10px;
}

footer p {
  margin: 0;
}

/* Media Queries */
@media (max-width: 768px) {
  nav ul {
    flex-direction: column;
  }

  nav ul li {
    text-align: center;
  }
}
