*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  font-family: "Manrope", sans-serif;
  margin-left: auto;
  margin-right: auto;
  color: rgb(84, 78, 78);
  max-width: 1920px;
  padding-top: 80px;
  position: relative;
}

/* =====================
   HEADER STYLE
===================== */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 14px 60px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(49, 137, 126, 0.85); /* #31897e бүдэг */
  backdrop-filter: blur(6px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.35); /* бүдэг цагаан зураас */
  z-index: 1000;
}

/* LOGO */
header .logo img {
  height: 56px;
}

/* =====================
   NAV MENU
===================== */
.nav-menu {
  display: flex;
  gap: 14px;
}

/* Menu item */
.nav-menu a {
  color: #ffffff;
  text-decoration: none;
  font-size: 14px;
  padding: 8px 16px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 4px; /* дөрвөлжин */
  transition: all 0.3s ease;
}

/* Hover эффект */
.nav-menu a:hover {
  background: #ffffff;
  color: #31897e;
}

/* =====================
   FIRSTVIEW OFFSET
   (header дарагдахаас сэргийлнэ)
===================== */
.firstview {
  padding-top: 80px;
}

/* Mobile Menu - Hidden by default */
section {
  margin: 50px auto;
  padding-bottom: 50px;
  background-color: white;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1), 0 1px 3px rgba(0, 0, 0, 0.08);
  border-radius: 10px;
}
.firstview {
  position: relative;
  background: linear-gradient(
      to right,
      rgb(49, 137, 126) 0%,
      rgba(58, 143, 121, 0.75) 50%,
      rgba(181, 216, 195, 0.3) 100%
    ),
    url("images/ba.png");
  background-size: cover;
  background-position: center right;
  background-repeat: no-repeat;
  padding: 40px;
  color: #fff;
  border-radius: 12px;
  overflow: hidden;
  margin-top: -50px;
}

/* HERO TEXT */
.DescriptionBox {
  max-width: 720px;
  padding: 80px 60px 10px 60px;
  color: #ffffff;
  text-align: left; /* зүүн тийш */
}

/* Том гарчиг */
.hero-title {
  font-size: 50px;
  font-weight: 600;
  line-height: 1.25;
  margin-bottom: 10px;
  color: white;
  border-bottom: 1px solid rgba(255, 255, 255, 0.35); /* бүдэг цагаан зураас */
}

/* Жижиг тайлбар */
.hero-subtitle {
  font-size: 22px;
  font-weight: 400;
  opacity: 0.9;
  margin-bottom: 34px;
  max-width: 520px;
}
.construction {
  width: 100%;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
/* =====================
   3 BOX SECTION
===================== */

/* =====================
   MOBILE
===================== */
@media (max-width: 900px) {
  .info-box-container {
    grid-template-columns: 1fr;
  }
}

#SOIBTN_TuguldurSanhuuch {
  background: linear-gradient(135deg, #31897e 0%, #2a7669 100%);
  color: #ffffff;
  padding: 16px 40px;
  border: none;
  font: 600 18px "Manrope", sans-serif;
  cursor: pointer;
  border-radius: 8px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 14px rgba(49, 137, 126, 0.35);
  animation: fadeInUp 1.2s ease-out;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: block;
  margin: 10px auto 0 auto;
}

#SOIBTN_TuguldurSanhuuch:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(49, 137, 126, 0.45);
  background: linear-gradient(135deg, #2a7669 0%, #31897e 100%);
}

#deadline {
  margin-top: 50px;
  background: linear-gradient(135deg, #31897e 0%, #2a7669 100%);
  padding: 40px 50px 60px 50px;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(49, 137, 126, 0.2);
}

.deadline-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  margin-bottom: 30px;
}

.deadline-icon {
  font-size: 40px;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
}

#deadline h2 {
  font-size: 32px;
  padding: 0;
  color: #ffffff;
  margin: 0;
  text-align: center;
  font-weight: 700;
  letter-spacing: -0.5px;
  line-height: 1.3;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.warning {
  display: flex;
  flex-direction: column;
  text-align: left;
  background-color: #ffffff;
  color: #1f2937;
  margin: 30px auto 0 auto;
  font-size: 18px;
  padding: 40px;
  height: fit-content;
  border-radius: 12px;
  border: 2px solid #fee2e2;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  max-width: 900px;
}

.deadline-main-img {
  display: block;
  margin: 0 auto 30px auto;
  width: 350px;
  max-width: 100%;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
}

.warning-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.warning-list li {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  padding: 18px 0;
  text-align: left;
  border-bottom: 1px solid #f3f4f6;
  transition: background-color 0.3s ease;
}

.warning-list li:last-child {
  border-bottom: none;
}

.warning-list li:hover {
  background-color: #f9fafb;
  padding-left: 10px;
  padding-right: 10px;
  border-radius: 8px;
}

.warning-icon {
  font-size: 28px;
  flex-shrink: 0;
  margin-top: 2px;
}

.warning-text {
  flex: 1;
  color: #374151;
  font-size: 18px;
  line-height: 1.7;
  font-weight: 500;
}

h2 {
  font-size: 28px;
  color: #31897e;
  padding-bottom: 50px;
}

.problem {
  margin-top: 50px;
  display: block;
  text-align: center;
  padding: 30px;
}

.p-img {
  width: 200px;
  border-radius: 50%;
}
.problem-box {
  display: flex;
  flex-direction: row;
}

p {
  font-size: 20px;
  padding: 20px;
  font-weight: bold;
}

h3 {
  font-size: 30px;
  padding: 10px;
  background-color: #31897e;
  color: white;
  text-align: center;
  margin-bottom: 0px;
}

.triangle-down {
  width: 100px;
  height: 100px;
  border-left: 50px solid transparent;
  border-right: 50px solid transparent;
  border-top: 30px solid #31897e;
  margin-left: auto;
  margin-right: auto;
}

.service-img {
  width: 50%;
  height: 500px;
}

.number {
  width: 50px;
  margin: 10px;
}

.service-des {
  margin-top: 20px;
  padding: 30px;
  border: 1px solid black;
  width: 45%;
  height: fit-content;
}

.odd .service-des {
  border-left: none;
}

.even .service-des {
  border-right: none;
  position: absolute;
  margin-left: 5%;
}

.p1-class {
  align-items: center;
  display: flex;
}

.even {
  display: flex;
  position: relative;
  margin-bottom: 20px;
}

.odd {
  display: flex;
  margin-bottom: 20px;
}

.even .service-img {
  margin-left: 50%;
  height: 350px;
}

.merrit-class {
  background-image: url(images/11.png);
  background-size: 100%;
  text-align: center;
  padding: 10px;
  background-attachment: fixed;
}

.merrit {
  display: flex;
  justify-content: space-between;
}

.merrit-box {
  text-align: justify;
  width: 30%;
  background-color: white;
  margin: 20px;
  margin-bottom: 40px;
  border-radius: 5px;
  padding: 20px;
}

h4 {
  text-align: center;
  font-size: 18px;
}

p1 {
  font-size: 16px;
}

#QA {
  padding: 30px;
  text-align: center;
}

#QA h4:before {
  content: "Q";
  color: #31897e32;
  font-size: 130px;
  position: absolute;
  margin: -40px;
}
#QA p1::before {
  content: "A";
  color: #31897e32;
  font-size: 130px;
  position: absolute;
  margin: -40px;
}

#QA .merrit-box {
  background: none;
  margin-right: 40px;
  margin-left: 40px;
  margin-top: -40px;
}

.price {
  margin-top: 50px;
  text-align: center;
}

.price h4 {
  margin: 50px;
  margin-right: 20%;
  margin-left: 20%;
}

#address {
  padding: 30px;
  text-align: center;
  margin-bottom: -30px;
}

footer {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
  background-color: #31897e;
  color: white;
  min-height: 60px;
  padding: 20px;
  margin-bottom: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  border-radius: 0;
}

footer p {
  margin: 0;
  padding: 0;
  font-size: 16px;
  color: white;
  line-height: 1.5;
}
p {
  font-size: 18px;
}
p2 {
  float: inline-end;
  font-size: 12px;
  color: black;
  margin: 10px;
}
.contact {
  width: 40%;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
  display: flex;
  margin-bottom: 10px;
}

.contact a {
  transition: transform 0.3s ease;
}

.contact a:hover {
  transform: translateY(-5px);
}

@keyframes sparkle {
  0% {
    transform: scale(1);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  }
  50% {
    transform: scale(1.05);
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.2);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  }
}

@media only screen and (min-width: 431px) {
  .on-pc {
    display: block;
  }

  .on-mobile {
    display: none;
  }
}

@media only screen and (max-width: 430px) {
  .on-pc {
    display: none;
  }
  .on-phone {
    display: block;
  }
  body {
    margin-top: 10px;
    left: auto;
    right: auto;
  }

  /* Show the hamburger icon only on mobile */
  .dropdown {
    position: relative;
    display: inline-block;
    margin-right: -30px;
  }
  .dropdown-btn:hover {
    color: #333;
    text-decoration: none;
  }

  .dropdown-btn {
    background-color: inherit;
    color: white;
    padding: 0px;
    font-size: 30px;
    border: none;
    cursor: pointer;
  }

  .dropdown-content {
    display: none; /* Hidden by default */
    position: absolute;
    background-color: #31897e;
    min-width: 160px;
    z-index: 1;
    right: 0px;
  }
  .firstview {
    padding-top: 60px;
    margin-bottom: 10px;
    max-height: fit-content;
  }
  header {
    padding-left: 20px;
  }
  .dropdown-content a {
    color: white;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
  }

  .dropdown-content a:hover {
    color: #575757;
  }

  .dropdown.active .dropdown-content {
    display: block; /* Show dropdown when active */
  }

  #SOIBTN_TuguldurSanhuuch {
    padding: 14px 32px;
    font-size: 16px;
  }

  section {
    margin: 10px;
    height: fit-content;
  }
  .hero-title {
    font-size: 24px;
    padding: 10px;
  }

  h1 {
    font-size: 20px;
  }

  .hero-subtitle {
    font-size: 20px;
    padding: 10px;
  }

  .DescriptionBox {
    padding: 50px 30px 50px 0px;
  }
  #deadline {
    margin-top: 0px;
    padding: 30px 20px;
  }

  .deadline-header {
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
  }

  .deadline-icon {
    font-size: 32px;
  }

  #deadline h2 {
    font-size: 20px;
    margin: 0;
    padding: 0;
  }

  .warning {
    font-size: 16px;
    text-align: left;
    padding: 25px 20px;
    margin: 20px auto 0 auto;
  }

  .deadline-main-img {
    width: 70%;
    margin-bottom: 25px;
  }

  .warning-list li {
    padding: 15px 0;
    gap: 12px;
  }

  .warning-icon {
    font-size: 24px;
  }

  .warning-text {
    font-size: 16px;
  }

  #SOIBTN_TuguldurSanhuuch {
    font-size: 16px;
    padding: 14px 32px;
  }
  .problem {
    margin-top: 0px;
  }
  .problem-box {
    display: flex;
    flex-direction: column;
  }
  .problem h2 {
    font-size: 18px;
    padding: 10px;
  }

  .triangle-down {
    margin-bottom: -30px;
    margin-top: -20px;
  }
  .service-img {
    width: 100%;
    display: block;
  }
  .service-des {
    position: absolute;
    width: 90%;
    background-color: rgba(255, 255, 255, 0.824);
    justify-content: center;
  }
  .number {
    width: 50px;
    margin-right: -10px;
  }
  .even .service-img {
    margin-left: 0;
  }

  .merrit {
    display: flex;
    flex-direction: column;
  }

  .merrit-class h2 {
    font-size: 18px;
    padding-bottom: 0px;
  }

  .merrit-box {
    width: 100%;
    margin-right: auto;
    margin-left: auto;
    margin-bottom: 0px;
  }

  h3 {
    font-size: 20px;
  }

  h4 {
    font-size: 14px;
    margin: 20px;
  }

  p1 {
    font-size: 12px;
  }
  li {
    font-size: 12px;
  }

  #QA h2 {
    text-align: center;
    font-size: 18px;
    padding: 0px;
  }

  #QA h4 {
    position: relative;
    text-align: left;
    left: -80px;
    float: left;
    background-color: #c0c8c765;
    width: 80%;
    color: rgb(80, 78, 78);
    padding: 15px;
    border-radius: 20px;
  }

  #QA p1 {
    width: 80%;
    background-color: #31897e;
    float: right;
    margin-right: 20px;
    color: white;
    padding: 15px;
    border-radius: 20px;
    font-size: 14px;
    text-align: left;
  }

  #QA h4::before {
    display: none;
  }
  #QA p1::before {
    display: none;
  }
  p {
    font-size: 12px;
    padding-bottom: 50px;
  }
  .price {
    margin-top: 0px;
  }

  .contact {
    width: 60%;
  }
  footer {
    width: 100%;
    padding: 20px 15px;
    min-height: auto;
  }

  footer p {
    font-size: 14px;
  }
}