* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: system-ui, sans-serif;
}

body, main {
  color: #b9ca00;
}

@font-face {
  font-family: "typo";
  src: url("Baby Monsta.otf");
}

main {
  min-height: 100vh;
  background-image: url("bg tphv new.jpg");
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

header {
  background: #b9ca00;
  position: relative;
  top: 0;
  z-index: 10;
  height: 90px;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 15px;
}

.logo {
  position: absolute;
  visibility: hidden;
}

.burger {
  position: absolute;
  right: 16px;
  top: 24px;
  font-size: 26px;
  background: none;
  border: none;
  cursor: pointer;
  color: #e1302f;
}

nav {
  position: absolute;
  top: 90px;
  width: 100%;
  display: none;
  flex-direction: column;
  background: #b9ca00;
  z-index: 1000;
}

nav a {
  padding: 12px 16px;
  color: white;
  text-decoration: none;
  border-top: 1px solid rgba(255,255,255,0.2);
}

nav a:hover,
.submenu-toggle:hover {
  color: #f6ff98;
}

.submenu-toggle {
  background: none;
  border: none;
  color: white;
  padding: 12px 16px;
  font-size: 16px;
  text-align: left;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.submenu {
  display: none;
  flex-direction: column;
  background: #8fb000;
}

.submenu a {
  padding: 10px 30px;
  color: white;
  text-decoration: none;
  font-size: 15px;
}

.has-submenu.open .submenu {
  display: flex;
}

h1 {
  position: absolute;
  font-size: 27px;
  left: 16px;
  top: 6px;
  font-family: "typo";
  color: #e1302f;
}

.courses {
  position: absolute;
  top: 36px;
  left: 16px;
  font-weight: bold;
  font-size: 14px;
  color: #646464;
}

.date {
  position: absolute;
  top: 54px;
  left: 16px;
  font-size: 18px;
  font-weight: bold;
  color: white;
}

.galeries {
  padding: 120px 18px 70px;
  background-color: #b9ca00;
}

.galeries-intro {
  max-width: 900px;
  margin: 0 auto 35px;
  text-align: center;
}

.galeries-intro h2 {
  font-family: "typo";
  font-size: 44px;
  color: black;
  margin-bottom: 12px;
  letter-spacing: 0.2rem;
}

.galeries-intro p {
  font-size: 18px;
  font-weight: 600;
  color: #444;
  display: inline-block;
  padding: 10px 18px;
}

.galeries-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
  max-width: 1200px;
  margin: auto;
}

.galerie-card {
  position: relative;
  display: block;
  height: 230px;
  overflow: hidden;
  border-radius: 14px;
  text-decoration: none;
  box-shadow: 0 10px 25px rgba(0,0,0,0.18);
  background: #333;
}

.galerie-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.55);
  transition: transform 0.3s ease, filter 0.3s ease;
}

.galerie-card span {
  position: absolute;
  left: 18px;
  bottom: 18px;
  color: white;
  font-size: 38px;
  font-weight: 900;
  text-shadow: 0 3px 12px rgba(0,0,0,0.7);
}

.galerie-card:hover img {
  transform: scale(1.06);
  filter: brightness(1);
}

footer {
  text-align: center;
  padding: 20px;
  background: #333;
  color: white;
  font-size: 14px;
}

footer p {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

footer a {
  color: white;
}

@media (min-width: 768px) {
  .has-submenu {
    position: relative;
  }

  .submenu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 200px;
    z-index: 20;
  }

  .has-submenu:hover .submenu {
    display: flex;
  }

  .burger {
    display: none;
  }

  header {
    height: 84px;
    background-image: linear-gradient(rgba(0,0,0,0.25), rgba(0,0,0,0.35)), url("ban.jpg");
    background-size: cover;
    background-position: center;
  }

  .logo {
    width: 60px;
    height: auto;
    top: 12px;
    left: 60px;
    visibility: visible;
    z-index: 10000;
  }

  nav {
    top: 6px;
    display: flex !important;
    flex-direction: row;
    justify-content: center;
    background-color: transparent;
  }

  nav a {
    border: none;
    font-size: 24px;
  }

  .submenu-toggle {
    font-size: 24px;
  }

 h1,
.courses,
.date {
  display: none;
}

  .galeries {
    padding: 70px 40px 90px;
  }

  .galeries-intro h2 {
    font-size: 64px;
  }

  .galeries-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  footer p {
    flex-direction: row;
    justify-content: center;
    flex-wrap: wrap;
    gap: 35px;
  }
}

@media (min-width: 1100px) {
  .galeries-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}