﻿/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  text-decoration: none;
}

/* Layout */
html, body {
  height: 100%;
  display: flex;
  flex-direction: column;
  background-color: white;
  font-family: corbel, arial, sans-serif;
}

body {
  padding-top: 80px;
}

.no-scroll {
  overflow: hidden;
}

/* Header */
header {
  position: relative;
  z-index: 1000;
}

#header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  width: 100%;
  padding: 10px 7%;
  background-color: #fff;
  box-shadow: 0 5px 5px rgba(0, 0, 0, 0.3);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
}

/* Logo */
.imglogo {
  height: 60px;
  width: auto;
}

.imgname {
  height: 60px;
  width: auto;
  margin: auto;
  transition: all 0.3s ease;
}

/* Hamburger Button */
.checkbtn {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 24px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1001;
}

.bar {
  height: 4px;
  width: 100%;
  background-color: #333;
  border-radius: 2px;
  transition: all 0.3s ease;
}

.checkbtn:hover .bar {
  background-color: red;
}

.checkbtn.active .bar:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.checkbtn.active .bar:nth-child(2) {
  opacity: 0;
}

.checkbtn.active .bar:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

.checkbtn.active .bar {
  background-color: red;
}

/* Overlay */
.overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 900;
}

.overlay.active {
  display: block;
}

/* Navbar */
.navbar {
  display: none;
  opacity: 0;
  transform: translateY(-20px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  position: fixed;
  top: 80px;
  left: 0;
  right: 0;
  background-color: #fff;
  padding: 10px 7%;
  z-index: 999;
}

.navbar.active {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

.navbar ul {
  list-style: none;
}

.navbar ul li {
  position: relative;
}

.navbar ul li a,
.navbar ul li span {
  font-size: 20px;
  padding: 10px;
  color: #333;
  display: block;
}

.navbar ul li a:hover,
.navbar ul li span:hover {
  background: #333;
  color: #fff;
}

/* Submenus */
.navbar ul li ul,
.navbar ul li ul li ul,
.navbar ul li ul li ul li ul {
  display: none;
  position: absolute;
  background: #fff;
  min-width: 180px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
  z-index: 999;
}

.navbar ul li:hover > ul,
.navbar ul li ul li:hover > ul,
.navbar ul li ul li ul li:hover > ul {
  display: block;
}

.navbar ul li ul {
  top: 100%;
  left: 0;
}

.navbar ul li ul li ul,
.navbar ul li ul li ul li ul {
  top: 0;
  left: 100%;
}

/* Responsive */
@media (max-width: 990px) {
  .imglogo {
    height: 50px;
  }

  .imgname {
    max-width: 50vw;
    height: auto;
    margin: auto;
  }

  .navbar ul {
    flex-direction: column;
  }
}

@media (min-width: 991px) {
  .navbar {
    display: block;
    opacity: 1;
    transform: none;
    position: static;
  }

  .checkbtn {
    display: none;
  }

  .navbar ul {
    display: flex;
    gap: 20px;
  }
}

@media (max-width: 420px) {
  .navbar ul li ul,
  .navbar ul li ul li ul,
  .navbar ul li ul li ul li ul {
    position: static;
    display: none;
    width: 100%;
    box-shadow: none;
  }

  .navbar ul li:hover > ul,
  .navbar ul li ul li:hover > ul,
  .navbar ul li ul li ul li:hover > ul {
    display: block;
  }

  .navbar ul li ul li {
    padding-left: 10px;
  }

  .navbar ul li ul li ul li {
    padding-left: 20px;
  }

  .navbar ul li ul li ul li ul li {
    padding-left: 30px;
  }
}

/* Main content */
.content {
  flex: 1;
  max-width: 1000px;
  margin: 0 auto;
  padding: 40px 20px;
  line-height: 1.6;
}

/* Footer */
.footer {
  text-align: center;
  padding: 20px;
  background-color: #f5f5f5;
  color: #666;
  font-size: 14px;
}