/* ************************ COVER SLIDE - BEGIN ******************************* */
/* ---------- Слайдерийн үндсэн хэсэг ---------- */
#carousel-15 {
  position: relative;
  width: 100%;
  overflow: hidden;
}

#carousel-15 > div {
  position: relative;
}

/* ---------- Лого ба гарчиг ---------- */
#carousel-15 .slidelogo-15,
#carousel-15 h1 {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2; /* overlay-гийн дээр гаргах */
  text-align: center;
  color: white;
}

.slidelogo-15 {
  width: 160px;
  margin-bottom: 1rem;
}

#carousel-15 h1 {
  font-size: clamp(1.4rem, 2vw + 1rem, 2.4rem);
  font-weight: 400;
  margin-top: 80px; /* логотой бага зэрэг зайтай */
}

/* ---------- Слайдууд ---------- */
#carousel-15 picture img {
  width: 100%;
  height: auto;
  display: block;
}

/* Слайд бүр */
#carousel-15 [id^="slide-15-"] {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%; /* зураг бүрэн дүүрэн байх */
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

#carousel-15 [id^="slide-15-"].active {
  opacity: 1;
  position: relative;
}

/* ---------- Дэвсгэр (overlay) ---------- */
#carousel-15 [id^="slide-15-"]::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.7); /* 70% хар дэвсгэр */
  transition: background 0.4s ease;
  z-index: 1;
}

#carousel-15 [id^="slide-15-"]:hover::after {
  background: rgba(0, 0, 0, 0.2); /* hover үед 20% */
}

/* ---------- Товчлуурууд ---------- */
.prev-btn-15,
.next-btn-15 {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0);
  /* border: none; */
  border-style: solid;
  border-width: 1px;
  border-color: white;
  border-radius: 50%;
  font-size: 2rem;
  padding: 0.3rem 0.7rem;
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.3s;
  z-index: 5;
  color:white
}

.prev-btn-15:hover,
.next-btn-15:hover {
  background: rgba(255, 255, 255, 0.8);
}

.prev-btn-15 {
  left: 15px;
}

.next-btn-15 {
  right: 15px;
}

/* ---------- Responsive ---------- */
@media screen and (max-width: 768px) {
  .prev-btn-15,
  .next-btn-15 {
    font-size: 1.5rem;
    padding: 0.2rem 0.5rem;
  }

  .slidelogo-15 {
    width: 120px;
  }

  #carousel-15 h1 {
    font-size: 1.3rem;
  }
}

@media screen and (max-width: 480px) {
  #carousel-15 h1 {
    font-size: 1.2rem;
  }
}

/* ************************ COVER SLIDE - END ******************************* */

/* ************************ COVER IMG - BEGIN ******************************* */

.erka-parent {
  width: 100%;
  height: 700px; /*100vh*/
  position: relative;
  overflow: hidden;
}

/* Зураг дэлгэцийг дүүргэх */
.erka-background-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 0;
}

/* 🟩 Хар бараан overlay давхрага */
.erka-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8); /* 80% нэвтрэлттэй */
  z-index: 1;
  transition: background-color 0.4s ease; /* зөөлөн шилжилт */
}
/* 🖱️ Курсор очиход overlay зөөлөрнө */
.erka-parent:hover .erka-overlay {
  background-color: rgba(0, 0, 0, 0.3); /* 30% нэвтрэлт */
}

/* Доторх текст, лого төвд */
.erka-child {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1;
  text-align: center;
  color: white; /* зураг давхарганд уусгахын тулд */  
  
  /* Доторх H2,LOGO элементүүдийг төвд байрлуулах */
  display: flex;
  flex-direction: column; /* Лого → гарчиг дарааллаар */
  align-items: center;    /* Хэвтээ голлуулна */
  justify-content: center;/* Босоо голлуулна */
  text-align: center;
  color: white;
}
.tusliinlogo {
  margin-bottom: 1rem; /* эсвэл 20px */
  max-width: 200px;    /* хэмжээг тохируулж болно */
  /* 🟩 Сүүдэр нэмэх */
  filter: drop-shadow(3px 3px 8px rgba(0, 0, 0, 0.6));
}
.erka-child h2 {
  color: #fff; /* цагаан өнгө */
  font-size: 2rem; /* хэмжээ */
  font-weight: 700; /* бүдүүн */
  text-transform: uppercase; /* бүх үсгийг том болгож хувиргана */
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.6); /* сүүдэр */
  text-align: center; /* төвд байрлуулах */
  
  max-width: 99%; /* тодорхой уртанд хүрээд мөр авна */
  word-wrap: break-word; /* урт үг тасалж мөр авах */
  line-height: 1.2; /* мөр хоорондын зай */
  margin: 0 auto; /* төвд байрлуулах */
}

/* ************************ COVER IMG - END ******************************* */


/* ********************************** FOOTER-BEGIN ****************************** */

footer {
  background: #fff;
  color: #333;
  font-family: 'CeraPro', sans-serif;
  line-height: 1.7;
  padding: 60px 6vw 25px;
  border-top: 1px solid #e5e5e5;
  box-sizing: border-box;

}

/* -------------------- */
/* 🔹 Үндсэн footer layout */
#footer-main {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  margin-bottom: 40px;
}

/* -------------------- */
/* 🔹 Footer logo хэсэг */
#footer-logo {
  display: flex;
  align-items: flex-start;
}
#footer-logo img {
  width: 180px;
  max-width: 100%;
  height: auto;
}

/* -------------------- */
/* 🔹 Address хэсэг */
#footer-address h4 {
  font-size: 1.05rem;
  color: #0057b7;
  margin-bottom: 10px;
}

#footer-address-text {
  font-size: 0.95rem;
  margin-bottom: 10px;
}

#footer-address-text i {
  color: #0057b7;
  margin-right: 5px;
}

#footer-maplink a {
  color: #0057b7;
  text-decoration: none;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  transition: opacity 0.3s ease;
}

#footer-maplink a:hover {
  opacity: 0.7;
}

#footer-maplink a img {
  width: 35px;
  height: auto;
  margin-right: 6px;
  vertical-align: middle;
}




/* -------------------- */
/* 🔹 Projects phone numbers */
#footer-phones h4 {
  font-size: 1.05rem;
  color: #0057b7;
  margin-bottom: 10px;
}

#footer-phones article {
  margin-bottom: 8px;
}

#footer-phones article h5 {
  font-weight: 500;
  margin-bottom: 2px;
}

#footer-phones article a {
  color: #333;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  transition: color 0.3s ease;
}

#footer-phones article a:hover {
  color: #0057b7;
}

#footer-phones article a i {
  margin-right: 6px;
  font-size: 1.1rem;
}






/* -------------------- */
/* 🔹 Social contact */
#footer-social-contact {
  display: flex;
  flex-wrap: wrap; 
  flex-direction: column;
  gap: 15px;
}

/* Соц иконкуудын мөр */
#footer-social-contact .social-icons {
  display: flex;
  flex-direction: row;
}

/* Икон бүрийн хэлбэр */
#footer-social-contact .social-icons a {
  display: flex;
  text-decoration: none;
  width: 24px;
  height: 24px;
}

/* Икон бүрийн хэлбэр */
#footer-social-contact .social-icons a > i {
  width: 24px;
  height: 24px;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}

/* Hover үед өнгө өөрчлөгдөнө */
#footer-social-contact .social-icons a:hover {
  background-color: #0057b7;
  color: #fff;
  border-color: #0057b7;
}

/* Доорх email, цаг гэх мэт хэсэг */
#footer-social-contact div {
  margin-top: 10px;
  font-size: 0.9rem;
  display: flex;
  flex-direction: column;
  gap: 5px;
}






/* -------------------- */
/* 🔹 Footer copy хэсэг */
#footer-copy {
  border-top: 1px solid #e0e0e0;
  padding-top: 20px;
  text-align: center;
  font-size: 0.9rem;
  color: #666;
}
#footer-copy strong {
  color: #0057b7;
}

/* -------------------- */
/* 📱 Гар утас (≤480px): бүгд 1 багана */
@media screen and (max-width: 480.8px) {
  #footer-main {
    grid-template-columns: 1fr;
    gap: 25px;
  }
  #footer-logo {
    justify-content: center;
  }
  #footer-logo img {
    margin: 0 auto;
  }
  #footer-copy {
    font-size: 0.8rem;
  }
}


/* 📱 Таблет (481–768px): 2 багана */
@media screen and (min-width: 481px) and (max-width: 768.8px) {
  #footer-main {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
  }
}

/* 💻 Дунд дэлгэц (769–1198px): 3 багана */
@media screen and (min-width: 769px) and (max-width: 1198.8px) {
  #footer-main {
    grid-template-columns: repeat(3, 1fr);
    gap: 35px;
  }
}

/* 🖥️ Том дэлгэц (≥1199px): 4 багана */
@media screen and (min-width: 1199px) {
  #footer-main {
    width: 100%;
    max-width: 1140px;
    margin: 0 auto; /* төвд байрлуулах */
    grid-template-columns: repeat(4, 1fr);
  }
}


/* ******************************* FOOTER - END ********************************** */