/*=============== GOOGLE FONTS ===============*/
@import url("https://fonts.googleapis.com/css2?family=Syne:wght@400;500;600&display=swap");

/*=============== VARIABLES CSS ===============*/
:root {
  --header-height: 3.5rem;

  /*========== Colors ==========*/
  /*Color mode HSL(hue, saturation, lightness)*/
  --first-color: hsl(230, 75%, 56%);
  --title-color: hsl(230, 75%, 15%);
  --text-color: hsl(230, 12%, 40%);
  --body-color: hsl(230, 100%, 98%);
  --container-color: hsl(230, 100%, 97%);
  --border-color: hsl(230, 25%, 80%);

  /*========== Font and typography ==========*/
  /*.5rem = 8px | 1rem = 16px ...*/
  --body-font: "Syne", sans-serif;
  --h2-font-size: 1.25rem;
  --normal-font-size: .938rem;

  /*========== Font weight ==========*/
  --font-regular: 400;
  --font-medium: 500;
  --font-semi-bold: 600;

  /*========== z index ==========*/
  --z-fixed: 100;
  --z-modal: 1000;
}

/*========== Responsive typography ==========*/
@media screen and (min-width: 1023px) {
  :root {
    --h2-font-size: 1.5rem;
    --normal-font-size: 1rem;
  }
}

/*=============== BASE ===============*/
* {
  box-sizing: border-box;
  padding: 0;
  margin: 0;
}

html {
  scroll-behavior: smooth;
}
h1{
  font-family: var(--body-font);
  font-weight: bold;
  font-size: 70px;
  color: #fff;
  text-shadow: 1px;
}
body,
input,
button {
  font-family: var(--body-font);
  font-size: var(--normal-font-size);
}
body::-webkit-scrollbar {
  display: none;
}
/* section{
  padding: 0;
  margin: 0;
  height: 100vh;
} */
input,
button {
  border: none;
  outline: none;
}

ul {
  list-style: none;
}

a {
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

/*=============== REUSABLE CSS CLASSES ===============*/
.btn{
  display: inline-block;
  font-weight: var(--font-semi-bold);
  padding: 0.5rem 1rem;
  border-radius: 15px;
  cursor: pointer;
  transition: box-shadow .4s;
  outline: none;
}
.btn-success{
  background-color: #1fb826;
  border: none;

}
.btn-success:hover{
  background-color: #1eac25;
}
.btn-outline-light{
   padding: 0.4rem 1rem;
}
.btn i{
  font-weight: var(--font-regular);
}

/*=============== HEADER & NAV ===============*/
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  /* background-color: var(--body-color); */

  z-index: var(--z-fixed);
}

.header-scroll{
    box-shadow: 0 2px 16px hsla(230, 75%, 32%, .15);
}

.nav {
  box-shadow: 0 2px 16px hsla(230, 75%, 32%, .15);
  border-radius: 0 0 30px 30px;
  max-width: 80%;
  padding: 0 30px;
  background-color: #fff;
  height: var(--header-height);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav__logo {
  padding-left: 15px;
  color: var(--title-color);
  /* font-size: 18px; */
  font-weight:bold;
  transition: color .4s;
}

.nav__actions {
  display: flex;
  align-items: center;
  column-gap: 1rem;
}

.nav__search, 
.nav__login, 
.nav__, 
.nav__close {
  font-size: 1.25rem;
  color: var(--title-color);
  cursor: pointer;
  transition: color .4s;
}

:is(.nav__logo, .nav__search, .nav__login, .nav__toggle, .nav__link):hover {
  color: var(--first-color);
}

/* Navigation for mobile devices */
@media screen and (max-width: 1023px) {
  .nav__menu {
    position: fixed;
    top: -100%;
    left: 0;
    background-color: var(--body-color);
    box-shadow: 0 8px 16px hsla(230, 75%, 32%, .15);
    width: 100%;
    padding-block: 4.5rem 4rem;
    transition: top .4s;
  }
}

.nav__list {
  padding: 0 30px;
  margin: 0;
  display: flex;
  flex-direction: column;
  row-gap: 0.5rem;
}

.nav__link {
  color: var(--title-color);
  font-weight: var(--font-semi-bold);
  transition: color .4s;
}

.nav__close {
  position: absolute;
  top: 1.15rem;
  right: 1.5rem;
}

/* Show menu */
.show-menu {
  top: 0;
}

/*=============== MAIN ===============*/
/*=============== home ===============*/

.home {
  position: relative;
  height: 100vh;
  width: 100%;
  padding: 10px;
  overflow: hidden;
}

.home img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(60%);
}

.home .container {
  position: relative;
  z-index: 2;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.home h1 {
  color: white;
  font-size: 3.5rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.home p {
  color: white;
  font-size: 1.2rem;
  max-width: 800px;
  margin: 0 auto 2.5rem;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.home .btn i {
  vertical-align: middle;
  margin-left: 5px;
}

.row.align-items-center {
  margin-bottom: 2rem;
}

.login__button {
  display: none;
}

/* Show login */
.show-login {
  opacity: 1;
  pointer-events: initial;
}

.show-login .login__form {
  transform: translateY(0);
}

/* ================ visi misi=============== */

.package { padding-block:  60px; }

.package-card {
  background: hsl(0, 0%, 98%);;
  overflow: hidden;
  border-radius: 15px;
}

.package-card .card-banner { height: 250px;width: 400px; }

.package-card .card-banner img{
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.package-card .card-content { padding: 30px 20px; }

.package-card .card-title { margin-bottom: 15px; }

.package-card .card-text {
  line-height: 1.6;
  margin-bottom: 20px;
}

.card-meta-list {
  background: hsl(0, 0%, 100%);
  max-width: max-content;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  padding: 8px;
  box-shadow: 0 0 5px hsla(0, 0%, 0%, 0.15);
  border-radius: 50px;
}

.card-meta-item { position: relative; }

.card-meta-item:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 4px;
  right: -1px;
  bottom: 4px;
  width: 1px;
  background: hsla(0, 0%, 0%, 0.3);
}

.meta-box {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 5px;
  padding-inline: 9px;
  color: var(--black-coral);
  font-size: var(--fs-8);
}

.meta-box > ion-icon {
  color: var(--bright-navy-blue);
  font-size: 13px;
}

.package-card .card-price {
  background: var(--united-nations-blue);
  color: var(--white);
  padding: 25px 20px;
  text-align: center;
}

.package-card .card-price .wrapper {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 5px 15px;
  margin-bottom: 10px;
}

.package-card .card-price .reviews { font-size: var(--fs-5); }

.package-card .card-rating {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1px;
  font-size: 14px;
}

.package-card .card-rating ion-icon:last-child { color: hsl(0, 0%, 80%); }

.package-card .price {
  font-size: var(--fs-2);
  font-family: var(--ff-montserrat);
  font-weight: var(--fw-800);
  margin-bottom: 20px;
}

.package-card .price span {
  font-size: var(--fs-7);
  font-weight: initial;
}

.package .btn { margin-inline: auto; }

@media screen and (max-width: 768px) {
  .package-card {
    flex-direction: column;
  }

  .package-card .card-banner,
  .package-card .card-content {
    width: 100%;
  }

  .card-banner img {
    max-width: 100%;
    height: auto;
  }

  .card-content {
    padding: 20px 15px;
  }
}

@media screen and (max-width: 576px) {
  .container {
    padding: 0 15px;
  }

  .package-card {
    margin-bottom: 30px;
  }

  .h3.card-title {
    font-size: 1.5rem;
  }

  .card-text {
    font-size: 0.9rem;
  }
}



/* ================ trilogi =============== */
#info-pesantren h6 {
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 14px;
}

#info-pesantren .card {
  border-radius: 15px;
}

#info-pesantren .card img {
  /* width: 350px;*/
  max-height: 200px;
  border-top-left-radius: 15px;
  border-top-right-radius: 15px;
}

#info-pesantren .badge {
  font-size: 12px;
  padding: 5px 10px;
}
.card-img-top{
  object-fit: cover;
}
#info-pesantren .btn-success {
  padding: 10px 20px;
  border-radius: 25px;
}

#info-pesantren .card-text {
  max-height: 5em; /* Batas tinggi maksimal, sekitar 3-5 baris */
  overflow-y: auto; /* Menambahkan scroll hanya untuk vertikal */
  text-align: justify; /* Membuat teks lebih rapi */
  padding-right: 5px; /* Memberikan ruang untuk scrollbar */
}

/* Menghilangkan scrollbar overlay di browser modern */
#info-pesantren .card-text::-webkit-scrollbar {
  width: 6px; /* Lebar scrollbar */
}

#info-pesantren .card-text {
  max-height: 5em; /* Batas tinggi maksimal */
 /* Menyembunyikan teks yang melewati batas */
  text-align: justify; /* Membuat teks rapi */
  position: relative;
  padding-right: 5px; /* Ruang untuk scrollbar */
  
  /* Gradasi fade-out */
  -webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, 1) 70%, rgba(0, 0, 0, 0));
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 1) 70%, rgba(0, 0, 0, 0));
}
#info-pesantren .card-text::-webkit-scrollbar {
  display: none;
}

#info-pesantren .card-text::-webkit-scrollbar {
  width: 6px; /* Lebar scrollbar */
}

#info-pesantren .card-text::-webkit-scrollbar-thumb {
  background: #cccccc; /* Warna scrollbar */
  border-radius: 5px; /* Membuat sudut melengkung */
}

#info-pesantren .card-text::-webkit-scrollbar-thumb:hover {
  background: #999999; /* Warna saat di-hover */
}

/* ================ about =============== */
.about{
  margin-bottom: 40px;
}
.header-about {
  text-align: center;
  /* margin-bottom: 40px; */
  background-color: #28a745;
  padding: 30px 15px;
  color: #fff;
  border-radius: 12px;
}
.header-about h1 {
  font-weight: bold;
  /* margin: 20px 0; */
  font-size: calc(1.2rem + 1vw);
  color: #fff;
}
.header-about p {
  color:#f8f9fa;
  max-width: 800px;
  margin: 0 auto;
  font-size: calc(0.8rem + 0.3vw);
}
.faq-item {
  height: 100%;
  padding: 15px;
  background: #ffffff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s;
  margin-bottom: 15px;
  border: 1px solid rgba(23, 177, 105, 0.1);
}
.faq-item img{
  width: 100%;
  max-height: 150px;
  object-fit: cover;
}
/* .faq-item:hover {
  transform: translateY(-5px);
  border-color: #1eac25;
} */
.faq-item h3 {
  color: var(--primary-green);
  font-size: calc(0.9rem + 0.3vw);
  margin-bottom: 10px;
  font-weight: bold;
}
.faq-item p {
  color: var(--text-light);
  font-size: calc(0.75rem + 0.2vw);
  line-height: 1.4;
  margin-bottom: 0;
}

.faq-col {
  width: 50%;
  /* padding: 0 8px; */
  float: left;
}
.row:after {
  content: "";
  display: table;
  clear: both;
}
.section-title-about {
  color: var(--primary-green);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-align: center;
  margin-bottom: 10px;
}
.section-subtitle-about {
  color: var(--text-dark);
  font-size: 1.8rem;
  font-weight: bold;
  text-align: center;
  margin-bottom: 30px;
}



.chat-box {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 20px;
  background: #f9f9f9;
  border-radius: 15px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.bubble {
  padding: 15px 20px;
  border-radius: 25px;
  font-size: 16px;
  max-width: 80%;
  position: relative;
  margin-bottom: 10px;
}

.question {
  align-self: flex-start;
  background-color: #e0f7fa;
  color: #004d40;
}

.answer {
  align-self: flex-end;
  background-color: #ffecb3;
  color: #795548;
}

.bubble::before {
  content: "";
  position: absolute;
  width: 10px;
  height: 10px;
  background: inherit;
  transform: rotate(45deg);
}

.question::before {
  left: -5px;
  top: 15px;
}

.answer::before {
  right: -5px;
  top: 15px;
}

.time {
  display: block;
  font-size: 12px;
  color: #999;
  margin-top: 5px;
  text-align: right;
}

@media (max-width: 768px) {
  .bubble {
    max-width: 100%;
  }
}

/* ================ galeri =============== */

.gallery {
  background-color: #ffffffe6;
  padding:8px;
}

.gallery-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.gallery-image {
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.gallery-item:nth-child(3) { grid-area: 1 / 2 / 3 / 3; }

.gallery-image img {
  /* box-shadow: 0 2px 8px rgba(0,0,0,0.6); */
  /* border: 3px solid #fff; */
  border-radius: 10px;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* ================ FOOTER =============== */

.footer {
  background-color: #f8f7f7;
  padding: 60px 0 30px 0;
  color: #333;
}
.footer h5 {
  color: #28a745;
  font-weight: 600;
  margin-bottom: 25px;
  font-size: 1.2rem;
}
.footer-links {
  list-style: none;
  padding-left: 0;
}
.footer-links li {
  margin-bottom: 15px;
}
.footer-links a {
  color: #555;
  text-decoration: none;
  transition: color 0.3s;
}
.footer-links a:hover {
  color: #28a745;
}
.social-icons a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background-color: #28a745;
  color: white;
  margin-right: 10px;
  transition: all 0.3s;
}
.social-icons a:hover {
  background-color: #8257d6;
  transform: translateY(-3px);
}
.copyright {
  border-top: 1px solid #dee2e6;
  padding-top: 20px;
  margin-top: 40px;
}
.contact-info i {
  color: #28a745;
  width: 25px;
}
.btn-daftar {
  background-color: #28a745;
  color: white;
  padding: 10px 25px;
  border-radius: 5px;
  text-decoration: none;
  transition: all 0.3s;
}
.btn-daftar:hover {
  background-color: #8257d6;
  color: white;
}
/*=============== BREAKPOINTS ===============*/
/* For medium devices */
@media screen and (min-width: 576px) {
  .search,
  .login {
    padding-top: 10rem;
  }
  .nav__list {
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    row-gap: 2.5rem;
    text-align: center;
  }
  .search__form {
    max-width: 450px;
    margin-inline: auto;
  }

  .search__close,
  .login__close {
    width: max-content;
    top: 5rem;
    left: 0;
    right: 0;
    margin-inline: auto;
    font-size: 2rem;
  }

  .login__form {
    max-width: 400px;
    margin-inline: auto;
  }
  .login__button{
    display: inline-block;
    background-color: #1eac25;
    /* width: 100%; */
    color: #fff;
    font-weight: var(--font-semi-bold);
    padding: 0.5rem 1rem;
    border-radius: 15px;
    cursor: pointer;
    transition: box-shadow .4s;
  }
  .gallery { padding-bottom: calc(var(--section-padding * 2)); }

  .gallery-list {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }

  .gallery-image { border-radius: var(--radius-25); }

}

/* For large devices */
@media screen and (min-width: 1023px) {
  .nav {
    padding: 0 30px;
    /* height: calc(var(--header-height) + 2rem); */
    column-gap: 2rem;
  }
  .nav__close, 
  .nav__ {
    display: none;
  }
  .nav__menu {
    margin-left: auto;
  }
  .nav__list {
    flex-direction: row;
    column-gap: 3rem;
  }
  /* home */
  .home img{
    padding: 20px;
    border-radius: 55px;
  }
}

@media screen and (min-width: 1150px) {
  .container {
    margin-inline: auto;
  }
}