body {
  font-family: "Lato", sans-serif;
  line-height: 1.6;
}

b,
strong {
  font-weight: 900;
}

a:hover {
  text-decoration: underline;
}

/* Header & Navbar */
header {
  background-color: #ffffff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.navbar {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px 20px;
}

.nav-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  padding: 0;
  text-align: center;
}

.nav-links li a {
  font-weight: bold;
  color: #222;
  text-decoration: none;
}

.nav-links li a:hover {
  color: #3338a0;
}

.logo {
  display: flex;
  align-items: center;
  font-weight: bold;
  font-size: 1.2rem;
  gap: 0.5rem; 
  cursor: pointer;
}

.logo-img {
  width: 40px;
  height: auto; 
}

.logo span {
  color: #3338a0;
}

.lang-switch {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: bold;
}

.lang-switch select {
  padding: 0.4rem 2rem 0.4rem 0.8rem;
  border-radius: 8px;
  background: #f8f8f8;
  cursor: pointer;

  /* hide native arrow */
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;

  /* add space for custom arrow */
  background-image: url("data:image/svg+xml;charset=UTF-8,<svg fill='black' height='16' viewBox='0 0 24 24' width='16' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/></svg>");
  background-repeat: no-repeat;
  background-position: right 0.6rem center;
  background-size: 1rem;
}

.hero {
  position: relative;
  padding: 2rem;
  text-align: center;
  background-color: #3338a0;
  color: #fff;
  overflow: hidden;
  z-index: 1;
}

h2 {
  font-size: 24px;
}

.hero p {
  font-style: italic;
}

/* Video Presentation */
.video-presentation {
  padding: 2.5rem 1rem;
  background: #f7f7fb;
  color: #222;
}

.video-presentation h2 {
  max-width: 72ch;
  margin: 0 auto 1.25rem;
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  line-height: 1.3;
  text-align: center;
  color: #33338f;
}

/* Keeps video responsive at 16:9; works for <video> and <iframe> */
.video-wrapper {
  max-width: 960px;
  margin: 0 auto;
  border-radius: 14px;
  overflow: hidden;
  background: #000;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
  aspect-ratio: 16 / 9; 
  position: relative;
}

/* For browsers without aspect-ratio support */
.video-wrapper::before {
  content: "";
  display: block;
  padding-top: 56.25%; 
}

.video {
  position: absolute; 
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  border: 0; 
  object-fit: cover; 
}

.about {
  padding: 2rem 1rem;
  background: #fff;
}

.about__container {
  max-width: 1100px;
  margin: 0 auto;
  display: grid; 
  gap: 1.5rem;
}

/* Sidebar card */
.about__sidebar {
  background: #e6e6f2;
  border: 1px solid #eee;
  border-radius: 16px;
  padding: 1rem;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
}

.about__media {
  margin: 0;
  display: grid;
  place-items: center;
}

.about__img {
  width: min(220px, 80vw);
  aspect-ratio: 1 / 1.25;
  object-fit: cover;
  object-position: top center; 
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.about__title {
  font-size: clamp(1.5rem, 4vw, 1rem);
  margin-bottom: 1rem;
  font-weight: bold;
  text-align: center;
}
.about__subtitle {
  font-size: 1.15rem;
  margin-top: 1.25rem;
  margin-bottom: 0.5rem;
  color: #3338a0;
  font-weight: bolder;
  text-decoration: underline;
}

.about__list {
  list-style-type: disc;
  padding-left: 1.25rem;
  margin: 0 0 1.5rem;
}

.teaching-card {
  border: 1px solid #3338a0; 
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
  background: #fff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  margin: 0 2rem 1.5rem;
  animation: border-lightning 3s linear infinite;
}

@keyframes border-lightning {
  0% {
    border-color: #3338a0;
  }
  25% {
    border-color: #00c3ff;
  }
  50% {
    border-color: rgb(114, 15, 214);
  }
  75% {
    border-color: rgb(165, 17, 138);
  }
  100% {
    border-color: #f00;
  }
}

.teaching-card h3 {
  margin-top: 0; 
  margin-bottom: 0.5rem;
  font-size: 1.2rem;
  color: #3338a0;
  font-weight: bold;
}

.teaching-card p {
  margin: 0 0 1rem; 
}

.teaching-card p:last-child {
  margin-bottom: 0; 
}

.contact {
  max-width: 100%;
  padding: 15px 30px 30px 30px;
  background: #e6e6f2;
  text-align: center;
}

.contact h2 {
  font-weight: bold;
  text-align: center;
  margin-bottom: 10px;
}
/* Contact Form */
.contact form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 500px;
  margin: 0 auto;
}

.submitform {
  display: flex;
  justify-content: center;
  width: 100%;
}

.text-input {
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  width: 100%;
  border-radius: 6px;
  padding: 12px 15px;
  font-size: 14px;
  cursor: pointer;
  box-sizing: border-box;
}

textarea.text-input {
  height: 120px;
  resize: none;
}

button[type="submit"] {
  width: 100%;
  margin-bottom: 1rem;
  padding: 0.75rem;
  background-color: #3338a0;
  color: white;
  border: none;
  font-size: 1rem;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

button[type="submit"]:hover {
  background-color: #fcc61d;
}

.gallery {
  margin-bottom: 20px;
  padding: 0;
  text-align: center;
}

.gallery h2 {
  font-weight: bold;
  text-align: center;
  margin: 15px 0 15px 0;
}

.gallery-container {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.gallery-container button {
  cursor: pointer;
  border: none;
  background: #fff;
  font-size: 27px;
}

.gallery-container img {
  width: 65%;
  height: auto;
  max-height: 500px;
  object-fit: contain;
  border-radius: 10px;
}

/* Footer */
footer {
  text-align: center;
  background: #e6e6f2;
  color: #222;
  padding: 1rem;
  font-size: 0.9rem;
}

.footer-content {
  text-align: center;
  padding: 1em;
  font-size: 0.9rem;
}

.youtube-link {
  margin-left: 10px;
  color: #ff0000;
  font-size: 1rem;
}

.youtube-link:hover {
  cursor: pointer;
}

@media (min-width: 768px) {
  header {
    background: #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
  }

  .navbar {
    flex-direction: row;
    justify-content: space-around;
    align-items: center;
  }
  .nav-links {
    flex-direction: row;
    margin: 0;
  }
  .nav-links li {
    margin: 0 15px;
  }

  .about__container {
    grid-template-columns: 360px 1fr; 
    align-items: start;
    gap: 2rem;
  }

  .about__sidebar {
    position: sticky; 
    top: 2rem;
  }

  .about__img {
    width: 100%;
    height: auto;
    aspect-ratio: auto; 
    object-fit: contain; 
    object-position: top center; 
    border-radius: 16px;
  }

  .gallery {
    padding: 0 20px 20px;
  }

  .gallery-container img {
    width: 700px;
    height: 500px;
    object-fit: contain;
  }
}
