* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  color: #222;
}

.container {
  width: 90%;
  max-width: 1300px;
  margin: auto;
}

.section-header {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    margin-bottom: 50px;
    text-align: center;
    letter-spacing: 4px;
    text-transform: uppercase;
}

.section-header h2, h2.section-header {
    margin: 0;
    font-size: 32px;
    font-weight: 400;
    letter-spacing: 5px;
}

.sub-nav {
  background: var(--primary-color);
}

.sub-nav ul {
  display: flex;
  justify-content: space-between;
  list-style: none;
  padding: 12px 0;
  flex-wrap: wrap;
}

.sub-nav a {
  color: white;
  text-decoration: none;
  font-size: 13px;
  text-transform: uppercase;
}

/* ================= TOP HEADER ================= */

.top-header {
  background: #f2f2f2;
  padding: 15px 0;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo img {
  height: 70px;
}

.search-box {
  position: relative;
  width: 350px;
}

.search-box input {
  width: 100%;
  padding: 10px 40px 10px 15px;
  border-radius: 6px;
  border: 1px solid #ccc;
}

.search-icon {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
}

.e-portal {
  font-weight: 600;
  color: var(--primary-color);
  text-decoration: none;
}

.socials a {
  display: inline-block;
  width: 30px;
  height: 30px;
  border: 1px solid var(--primary-color);
  text-align: center;
  line-height: 30px;
  border-radius: 5px;
  font-size: 12px;
  text-decoration: none;
  color: var(--primary-color);
}

#menu-toggle, .hamburger {
  display: none;
}

.nav-menu {
  position: absolute;
  top: 80px;
  left: 0;
  width: 100%;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
  z-index: 20;
}

/* ================= NAVBAR ================= */

.navbar, .nav-menu {
  background: var(--primary-color);
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 40px;
}

.nav-links li {
  position: relative;
}

.nav-links a {
  display: block;
  padding: 18px 0;
  color: white;
  text-decoration: none;
  font-weight: 500;
}

.nav-links a.active {
  border-bottom: 3px solid var(--secondary-color);
}

/* Dropdown */
.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  max-height: 0;
  background: #009245;
  display: none;
  flex-direction: column;
  min-width: 200px;
  z-index: 20;
  list-style: none;
}

.dropdown-menu li a {
  padding: 15px;
  display: block;
  color: white;
}

.dropdown-menu li a:hover {
  background: #007c3a;
}

.dropdown:hover .dropdown-menu {
  display: flex;
  max-height: 150px;
}

.btn {
  padding: 14px 28px;
  text-decoration: none;
  font-weight: 600;
  border-radius: 6px;
  width: 300px;
  text-align: center;
  font-family: var(--theme-font-family);
  transition: 0.3s ease;
  border: none;
}

.btn.primary {
  background: var(--primary-color);
  color: white;
}

.btn.primary:hover {
  background: var(--primary-color), linear-gradient(#00000050, #000000a0);
  color: white;
  transition: 0.3s ease;
}

.btn.secondary {
  color: white;
}

.btn-primary {
  background: var(--primary-color);
  color: white;
  padding: 14px 30px;
  text-decoration: none;
  border-radius: 6px;
  display: inline-block;
  font-weight: 500;
  transition: 0.3s ease;
  border: none;
}

.btn-primary:hover {
  background: linear-gradient(to right, var(--primary-color), #002b13);
  transition: 0.3s ease;
}

/* ================= HERO ================= */
.hero {
  height: 220px;
  background: var(--primary-color) url('../../assets/images/logo-3.png') top/90% 170% no-repeat;
  position: relative;
}

.hero-overlay {
  background: rgba(0, 0, 0, 0.85);
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-overlay h1 {
  color: white;
  letter-spacing: 3px;
  padding: 20px;
}

.sub-nav {
  background: var(--primary-color);
}

.sub-nav ul {
  display: flex;
  justify-content: space-between;
  list-style: none;
  padding: 12px 0;
  flex-wrap: wrap;
}

.sub-nav a {
  color: white;
  text-decoration: none;
  font-size: 13px;
  text-transform: uppercase;
}

/* ================= RESPONSIVE ================= */

@media (max-width: 992px) {
  .search-box {
      display: none;
  }

  .nav-links {
      gap: 20px;
  }
}

@media (max-width: 768px) {
  .navbar {
    display: none;
  }
  .nav-links {
      flex-direction: column;
      background: var(--primary-color);
  }
  .socials {
    display: none;
  }

  .hamburger {
      display: flex;
      flex-direction: column;
      cursor: pointer;
      gap: 5px;
  }

  .hamburger span {
      width: 25px;
      height: 3px;
      background: var(--primary-color);
      transition: 0.3s ease;
  }

  #menu-toggle:checked ~ .nav-menu {
    max-height: 100vh;
  }

  /* Animate Hamburger to X */
  #menu-toggle:checked + .hamburger span:nth-child(1) {
      transform: rotate(45deg) translate(5px, 5px);
  }

  #menu-toggle:checked + .hamburger span:nth-child(2) {
      opacity: 0;
  }

  #menu-toggle:checked + .hamburger span:nth-child(3) {
      transform: rotate(-45deg) translate(6px, -6px);
  }

  .dropdown-menu {
    position: relative;
  }

  .logo img {
    height: 30px;
  }

  .sub-nav {
    display: none;
  }

  .btn {
    width: auto;
  }

  .hero {
    height: 100px;
  }
}

/* ================= CONTACT ================= */
.contact-section {
  padding: 60px 0;
}

.contact-box {
  background: white;
  width: 90%;
  max-width: 700px;
  margin: auto;
  padding: 40px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.contact-box h2 {
  margin-bottom: 20px;
  letter-spacing: 3px;
}

.contact-box label {
  display: block;
}

.contact-box input,
.contact-box textarea {
  width: 100%;
  padding: 15px;
  margin-bottom: 25px;
  border: 1px solid #ccc;
}

.row {
  display: flex;
  gap: 15px;
}

.row div {
  width: 100%;
  flex: 1;
}

.contact-box button {
  background: var(--primary-color);
  color: white;
  padding: 12px;
  border: none;
  width: 100%;
  cursor: pointer;
}

@media(max-width: 768px) {  
  .row {
      flex-direction: column;
  }
}