@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;700&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Roboto:wght@400;700&display=swap");
* {
  font-family: "Poppins", sans-serif;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  outline: none;
  border: none;
  text-decoration: none;
  text-transform: capitalize;
}

:root {
  --main-color: #1f1f7c;
  --black: #222;
  --white: #fff;
  --box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.1);
  --border: 1rem solid var(--black);
}

html {
  overflow-x: hidden;
  scroll-behavior: smooth;
}

html::-webkit-scrollbar {
  width: 1rem;
}

html::-webkit-scrollbar-track {
  background-color: var(--white);
}

html::-webkit-scrollbar-thumb {
  background-color: var(--main-color);
}

body {
  padding: 20px;
}

@media (max-width: 600px) {
  body {
    padding: 10px;
  }
}

.header {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background-color: var(--white);
  display: flex;
  padding-top: 1rem;
  padding-bottom: 1rem;
  box-shadow: var(--box-shadow);
  align-items: center;
  justify-content: space-between;
}

.header .logo {
  font-size: 2.5rem;
  font-family: "Roboto", sans-serif;
  margin-left: 50px;
  color: var(--main-color);
  margin-left: 0.5rem;
  text-decoration: none;
}

.header .navbar a {
  font-family: "Roboto", sans-serif;
  font-size: 1.5rem;
  margin-right: 2rem;
  color: var(--black);
}

.header .navbar a:hover {
  color: var(--main-color);
}

#menu-btn {
  font-size: 2.5rem;
  cursor: pointer;
  color: var(--black);
  display: none;
}

@media (max-width: 768px) {
  .header .logo {
    font-size: 1.5rem;
  }
  .header .navbar a {
    font-size: 1rem;
  }
}

@media (max-width: 500px) {
  .heading h1 {
    font-size: 4rem;
  }
  #menu-btn {
    display: inline-block;
    transition: 0.2s linear;
  }
  #menu-btn.fa-times {
    transform: rotate(180deg);
  }
  .header .navbar {
    position: absolute;
    top: 99%;
    left: 0;
    right: 0;
    background-color: var(--white);
    border-top: var(--border);
    padding: 2rem;
    transition: 0.2s linear;
    clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
  }
  .header .navbar.active {
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0% 100%);
  }
  .header .navbar a {
    display: block;
    margin: 2rem;
    text-align: center;
  }
}

.mySlides {
  display: none;
}

img {
  vertical-align: middle;
  height: auto;
}

.slideshow-container {
  max-width: 100%;
  position: relative;
  margin: auto;
}

.prev,
.next {
  cursor: pointer;
  position: absolute;
  top: 50%;
  width: auto;
  margin-top: -30px;
  padding: 16px;
  color: white;
  font-size: 20px;
  transition: 0.6s ease;
  border-radius: 0 3px 3px 0;
  user-select: none;
}

.next {
  right: 0;
  border-radius: 3px 0 0 3px;
}

.prev:hover,
.next:hover {
  background-color: rgba(0, 0, 0, 0.8);
}

.mySlides img {
  height: 400px;
}

.dot {
  height: 15px;
  width: 15px;
  margin: 0 2px;
  background-color: #bbb;
  border-radius: 50%;
  display: inline-block;
  transition: background-color 0.6s ease;
}

.active {
  background-color: #717171;
}

.fade {
  animation-name: fade;
  animation-duration: 1.5s;
}

@keyframes fade {
  from {
    opacity: 0.4;
  }
  to {
    opacity: 1;
  }
}

@media (max-width: 500px) {
  .heading h1 {
    font-size: 4rem;
  }
  #menu-btn {
    display: inline-block;
    transition: 0.2s linear;
  }
  #menu-btn.fa-times {
    transform: rotate(180deg);
  }
  .header .navbar {
    position: absolute;
    top: 99%;
    left: 0;
    right: 0;
    background-color: var(--white);
    border-top: var(--border);
    padding: 2rem;
    transition: 0.2s linear;
    clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
  }
  .header .navbar.active {
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0% 100%);
  }
  .header .navbar a {
    display: block;
    margin: 2rem;
    text-align: center;
  }
}

#about-us {
  padding: 20px 0;
}

.card {
  display: flex;
  flex-direction: row;
  /* Change to row, not row-reverse */
  align-items: center;
  background-color: #fff;
  border: 2px solid var(--main-color);
  border-radius: 8px;
  padding: 20px;
  margin: 15px 10px;
  transition: transform 0.3s, box-shadow 0.3s;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.about-image {
  flex: auto;
  padding: 20px;
  text-align: center;
}

.about-image img {
  width: 600px;
  height: 600px;
  height: auto;
  border-radius: 8px;
}

.card:hover {
  transform: scale(1);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.about-heading {
  font-size: 2rem;
  text-align: center;
  margin-right: 20px;
  font-family: "Roboto", sans-serif;
  color: var(--main-color);
}

.about-content {
  padding: 20px;
  font-size: 1.2rem;
  line-height: 1.5;
}

@media (max-width: 768px) {
  .card {
    padding: 15px;
    margin: 10px 10px;
    flex-direction: column;
  }
  .about-heading,
  .about-content,
  .about-image {
    flex: auto;
    margin: 0;
  }
  .about-heading {
    margin-top: 20px;
    margin-bottom: 5px;
    font-size: 1.2rem;
  }
  .about-content {
    font-size: 0.8rem;
  }
  .about-image img {
    max-width: 100%;
  }
}

/* Photo Gallery Styles */

.gallery {
  background-color: #f8f8f8;
  padding: 3rem 0;
  text-align: center;
}

.gallery-heading {
  font-size: 2rem;
  margin-bottom: 2rem;
  color: #333;
}

.gallery-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

.gallery-item {
  background-color: #fff;
  border: 1px solid #ddd;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
  width: calc(33.33% - 2rem);
  max-width: 400px;
  margin: 1rem;
}

.gallery-item:hover {
  transform: scale(1);
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.5);
}

.gallery-item img {
  max-width: 100%;
  height: 280px;
  border-radius: 10px 10px 0 0;
}

@media (max-width: 500px) {
  .gallery-item {
    width: 100%;
    margin: 1rem 0;
  }
}

/* Blogs Section Styles */

#blogs {
  padding: 20px 0;
}

.blog_container {
  box-sizing: border-box;
  transition: transform 0.3s, box-shadow 0.3s;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  margin-bottom: 20px;
}

.blog_card {
  background-color: #fff;
  border: 2px solid var(--main-color);
  border-radius: 8px;
  padding: 20px;
  margin: 15px 10px;
  transition: transform 0.3s, box-shadow 0.3s;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.blog_card:hover {
  transform: scale(1);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.blog_img {
  width: 100%;
  border-radius: 8px 8px 0 0;
}

@media (min-width: 768px) {
  .blog_container {
    display: inline-block;
    width: 48%;
    margin-right: 2%;
  }
  .blog_container:last-child {
    margin-right: 0;
  }
  .blog-content {
    font-size: 0.8rem;
  }
}

/* Style the table container */

#students_list table {
  text-align: center;
  width: 80%;
  margin: 2rem auto;
  /* Center the table */
  border-collapse: collapse;
}

#students_list table th,
#students_list table td {
  border: 1px solid #ddd;
  padding: 1rem;
  text-align: left;
  font-size: 1.5rem;
}

#students_list table tr:hover {
  background-color: #a6d4f2;
}

#students_list table th {
  background: linear-gradient(to bottom, #3e9fdf, rgb(52, 83, 219));
  color: var(--white);
}

/* Responsive styles for the table */

@media (max-width: 600px) {
  #students_list table {
    overflow-x: auto;
    display: block;
  }
  #students_list table th,
  #students_list table td {
    font-size: 1rem;
  }
}

#students_list a {
  display: inline-block;
  margin-left: 10%;
  text-decoration: none;
  font-size: 1rem;
  color: var(--main-color);
  border: 1px solid var(--main-color);
  padding: 8px 16px;
  border-radius: 4px;
  transition: background-color 0.3s, color 0.3s;
}

#students_list a:hover {
  background-color: var(--main-color);
  color: #fff;
}

#all_students_list table {
  margin-top: 20px;
  margin-bottom: 20px;
  width: 100%;
  border-collapse: collapse;
}

#all_students_list form {
  margin-top: 20px;
  margin-bottom: 20px;
}

#all_students_list label {
  font-size: 1rem;
  margin-right: 10px;
}

#all_students_list input[type="text"] {
  font-size: 1rem;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 6px;
  width: 200px;
  margin-right: 10px;
}

#all_students_list input[type="submit"] {
  font-size: 1rem;
  padding: 10px 15px;
  background-color: var(--main-color);
  color: #fff;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.3s;
}

#all_students_list input[type="submit"]:hover {
  background-color: var(--black);
}

#all_students_list table th,
#all_students_list table td {
  padding: 12px;
  text-align: left;
  font-size: 1rem;
}

#all_students_list table tr:hover {
  background-color: #a6d4f2;
}

#all_students_list table th {
  background: linear-gradient(to bottom, #3e9fdf, rgb(52, 83, 219));
  color: var(--white);
}

#all_students_list {
  padding: 20px;
  margin: 20px;
}

@media (max-width: 600px) {
  #all_students_list input[type="text"] {
    width: 100%;
    margin-right: 0;
    margin-bottom: 10px;
  }
  #all_students_list table {
    overflow-x: auto;
    display: block;
  }
  #all_students_list table th,
  #all_students_list table td {
    font-size: 1rem;
  }
  #all_students_list {
    padding: 10px;
    margin: 10px;
  }
}

#contact {
  display: flex;
  flex-wrap: wrap;
  margin-top: 5px;
  padding: 20px;
}

#contact .form-container,
#contact .map-container {
  flex: 1;
  min-width: 300px;
  margin: 10px;
}

.contact-heading {
  margin-top: 20px;
  font-size: 2rem;
  text-align: center;
  font-family: "Roboto", sans-serif;
  color: var(--main-color);
}

#contact form {
  max-width: 100%;
  margin: 20px auto;
}

#contact form input,
#contact form textarea {
  font-size: 1rem;
  width: calc(100% - 24px);
  padding: 12px;
  margin-bottom: 16px;
  border: 1px solid #ccc;
  border-radius: 6px;
  box-sizing: border-box;
  transition: border-color 0.3s;
}

#contact form input:focus,
#contact form textarea:focus {
  border-color: var(--main-color);
}

#contact form button {
  font-size: 1rem;
  background-color: var(--main-color);
  color: #fff;
  padding: 12px 20px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.3s;
}

#contact form button:hover {
  background-color: var(--black);
  /* Darker shade for hover effect */
}

@media (max-width: 768px) {
  #contact .form-container,
  #contact .map-container {
    flex: 1 100%;
  }
  .contact-heading {
    margin-top: 20px;
    margin-bottom: 5px;
    font-size: 1.2rem;
  }
}

iframe {
  height: 400px;
  width: 100%;
  margin-top: 20px;
  border-radius: 8px;
}

@media (max-width: 600px) {
  iframe {
    height: 200px;
    width: 280px;
  }
}

@media (max-width: 600px) {
  body {
    padding: 10px;
    /* Reduce padding for smaller screens */
  }
  /* Additional styles for smaller screens */
  .header .logo {
    font-size: 1.5rem;
    margin-left: 10px;
  }
  .header .navbar {
    padding: 1rem;
  }
  .header .navbar a {
    margin-right: 1rem;
  }
  #about-us .card {
    flex-direction: column;
  }
  .about-heading {
    font-size: 1.5rem;
  }
  .about-content {
    font-size: 1rem;
  }
  .about-image {
    padding: 10px;
  }
  .about-image img {
    border-radius: 8px;
  }
  #blogs .blog_container {
    width: 100%;
    margin-right: 0;
  }
  table {
    margin-right: 0;
    margin-left: 0;
  }
  table th,
  table td {
    font-size: 1rem;
  }
  #contact .form-container,
  #contact .map-container {
    flex: 1 100%;
  }
  #contact form input,
  #contact form textarea {
    font-size: 1rem;
    width: calc(100% - 24px);
  }
  iframe {
    height: 300px;
  }
}
