/* styles.css */

body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  background: rgb(240, 240, 240);
}

header {
  top: 0;
  padding: 0;
  background: rgb(6, 70, 6);
  width: 100%;
  color: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0px 20px;
  position: fixed;
  z-index: 100;
}
.header-container {
  margin: 0% auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0 20px;
}

.burger {
  display: none;
  background: none;
  border: none;
  font-size: 2rem;
  cursor: pointer;
  margin-left: -7%;
  position: relative;
  z-index: 10;
  color: white;
}

.logo {
  display: flex;
  align-items: center;
}

.logo img {
  width: 50px;
  height: 50px;
  margin-right: 10px;
}

nav ul {
  list-style: none;
  margin: 0 25px;
  padding: 0;
  display: flex;
}

nav ul li {
  font-size: small;
  margin: 0 10px;
  text-align:left;
}

nav ul li a {
  color: white;
  text-decoration: none;
  padding: 10px 15px;
  transition: background 0.3s;
}

nav ul li a:hover {
  color: black;
  border-radius: 5px;
  background-color: yellow;
}
nav ul ul {
  visibility: hidden;
  margin-top: 1%;
  margin-left: -10px;
  width: 130px;
  background-color: rgb(6, 70, 6);
  display: block;
  position: absolute;
}
nav ul ul li {
  margin-top: 5px;
  margin-bottom: 15px;
  display: list-item;
}
nav ul li:hover > ul {
  visibility: visible;
}
li > a::after {
  content: "";
}
li > a:only-child::after {
  content: "";
}

.jumbotron {
  background: url("banner.jpg") no-repeat center center/cover;
  height: 300px;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: white;
  position: relative;
}
.jumbotronbawah {
  background:  rgba(245, 40, 145, 0.8);
  height:300px;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: green;
  position: relative;
 
}
.jumbotron-overlay {
  position: absolute;
  width: 60%;
  left: 15%;

  top: 250px;
  margin: center;
  transform: translateY(-50%);
  background: rgba(36, 35, 35, 0.7);
  padding: 20px;
  border-radius: 10px;

  color: white;
  animation: fadeIn 2s ease-in-out;
  z-index: 10;
}
.jumbotron-overlay h2 {
  font-size: 2rem;
  margin: 0 0 10px 0;
  animation: slideIn 1.5s ease-in-out;
}
.jumbotron-overlay p {
  font-size: 1.2rem;
  margin: 0;
  animation: slideIn 2s ease-in-out;
}
.slideshow-container {
  display: flex;
  width: 300%;

  animation: slide 30s infinite;
}

.slide {
  width: 100%;
  flex-shrink: 0;
}

.slide img {
  width: 100%;
  display: block;
  padding-top: 3%;
}
@keyframes slide {
  0% {
    transform: translateX(0%);
  }

  33% {
    transform: translateX(-100%);
  }

  66% {
    transform: translateX(-200%);
  }

  100% {
    transform: translateX(0%);
  }
}

@keyframes slideIn {
  from {
    transform: translateX(-50px);
    opacity: 0;
  }

  to {
    transform: translateX(0);
    opacity: 1;
  }
}

main {
  display: flex;
  flex-wrap: wrap;
  /*margin: 0px;*/
}

article {
  flex: 2;
  background: white;
  padding: 15px;
  border-radius: 10px;

  /* box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1); */
  z-index: 6;
}

aside {
  flex: 1;
  /* background: azure; */
  padding: 30px;
  margin-left: 1px;
  border-radius: 10px;
  /* box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1); */
}

.menuside {
  margin: 3% auto;
  padding: 1px 3%;
  width: 95%;
  background-color: white;
  border-radius: 3%;
  display: flex;
  gap: 1%;
}
.menuside img {
  margin: 0% 1%;
  width: 10%;
}
.kategori {
  color: black;
  display: flex;
  background-color: rgba(247, 151, 42, 0.2);
  padding: 1px 3%;
  border-left: 3px solid rgba(70, 68, 68, 0.7);
}
.menusidenews {
  margin: 3% auto;
  padding: 5px 3%;
  width: 95%;
  background-color: rgb(250, 247, 247);
  border-radius: 3%;
}
.menusidenews a {
  font-size: 10px;
  color: #2c3e50;
  text-decoration: none;
}
.menusidenews :hover {
  color: rgb(9, 161, 9);
}

.jumbotron {
  margin-top: 0%;
  padding-top: 10%;
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.slideshow-container {
  display: flex;
  width: 300%;

  animation: slide 30s infinite;
}

.slide {
  width: 100%;
  flex-shrink: 0;
}

.slide img {
  width: 100%;
  display: block;
  padding-top: 3%;
}
.containbox {
  margin-top: 0%;
  display: flex;
  gap: 5%; /* Jarak antar div */
}
.boximage,
.boximage2,
.boximage3 {
  padding: 1% auto;
  /* background-color: rgb(59, 59, 59); */
  padding-top: 3%;
  text-align: center;
  border: 5px solid rgb(252, 249, 249);
  border-radius: 5%;
  box-shadow: 0 10px 12px rgba(19, 18, 18, 0.2);
  transition: transform 0.3s ease-in-out;
}

.boximage:hover,
.boximage2:hover,
.boximage3:hover {
  transform: scale(1.1);
}
.boximage img,
.boximage2 img,
.boximage3 img {
  width: 100%;
}

footer {
  background: #2c3e50;
  color: white;
  text-align: center;
  padding: 20px;
  margin-top: 20px;
}
quote {
  font-size: small;
  font-style: italic;
  color: black;
}

h1 {
  text-align: center;
  color: green;
}
h5 {
  font-size: small;
}
p {
  font-size: small;
  text-align: justify;
}
.p1 {
  text-align: center;
  color: black;
}
.profile2 {
  margin: 5% auto;
}
.myDropcap {
  font-size: 25px;
  line-height: 1.4em;
  font-weight: bold;
  vertical-align: middle;
  background-color: bisque;
  padding: 1px;
}
.ramadhan,
.ziarahtouring,
.harlahansor {
  display: none;
}
.videoramadhan {
  display: flex;
}
.video {
  display: flex;
  width: 400;
}
/* gallery */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  grid-gap: 15px;
  padding: 20px;
}
/* Kartu Gallery */
.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  /* Untuk sedikit animasi naik ketika hover */
  transition: transform 0.3s ease;
}
.gallery-item:hover {
  transform: translateY(-5px);
}
/* Gambar di dalam gallery item */
.gallery-item img {
  width: 100%;
  display: block;
  transition: transform 0.5s ease;
}
/* Efek zoom pada gambar */
.gallery-item:hover img {
  transform: scale(1.1);
}
/* Efek overlay transparan */
.gallery-item::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.3);
  opacity: 0;
  transition: opacity 0.4s ease;
}
.gallery-item:hover::after {
  opacity: 1;
}
/* Caption yang muncul dari bawah */
.caption {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 15px;
  color: white;
  text-align: center;
  font-size: 12px;
  background: rgba(0, 0, 0, 0.5);
  transform: translateY(100%);
  transition: transform 0.4s ease;
}
.gallery-item:hover .caption {
  transform: translateY(0);
}
.containersyarat {
  /* background-image: linear-gradient(to right, #65b2d600, #189ad6); */
  margin-top: 20px;
  margin-bottom: 0px;
  margin-left: 20%;
  padding: 20px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  max-width: 100%;
}
.containersyarat-j {
  background-image: linear-gradient(to right, #65b2d600, #189ad6);
  margin-top: 20px;

  padding: 20px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  display: flex;
  flex-wrap: wrap;
  max-width: 100%;
  justify-content: center;
}
p {
  text-align: justify;
}
a {
  text-decoration: none;
}

/*/.....pengurus...........*/

  

    @keyframes gradientBG {
        0% {
            background-position: 0% 50%;
        }

        50% {
            background-position: 100% 50%;
        }

        100% {
            background-position: 0% 50%;
        }
    }

    header_p {
        margin-top: 50px;
        text-align: center;
        padding: 30px 10px;
    }

    header_p h1 {
        font-size: 2.5em;
        margin: 0;
        text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
    }

    .gallery_p {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
        gap: 25px;
        padding: 30px;
        max-width: 1200px;
        margin: auto;
    }

    .card_p {
        background: #ffffff10;
        border-radius: 20px;
        overflow: hidden;
        text-align: center;
        padding: 15px;
        transition: transform 0.4s ease, box-shadow 0.4s ease;
        position: relative;
        perspective: 1000px;
        /* penting agar efek flip 3D terlihat */
    }

    .card_p:hover {
        transform: translateY(-10px);
        box-shadow: 0 15px 25px rgba(0, 0, 0, 0.3);
    }

    .frame_p {
        border: 8px solid transparent;
        border-image: linear-gradient(45deg, #ff6a00, #ee0979, #00c6ff, #00ff95);
        border-image-slice: 1;
        border-radius: 50%;
        padding: 5px;
        display: inline-block;
        transition: transform 0.6s ease;
        transform-style: preserve-3d;
    }

    .card_p:hover .frame {
        transform: rotateY(180deg);
        /* flip horizontal ke kiri */
    }

    .frame_p img {
        width: 150px;
        height: 150px;
        border-radius: 50%;
        object-fit: cover;
        backface-visibility: hidden;
        /* supaya sisi belakang tak terlihat */
    }

    .caption_p {
        margin-top: 15px;
    }

    .caption_p h3 {
        margin: 8px 0 3px;
        font-size: 1.2em;
        color: #fff;
    }

    .caption_p {
        margin: 0;
        font-size: 0.9em;
        color: #ddd;
    }

/*......//pengurus.//.................*/

@media (max-width: 768px) {
  header {
    flex-direction: column;
    text-align: center;
    position: fixed;
  }
  
  body {
  overflow-x: hidden;
}
  
  .burger {
    display: block;
    
  }

  .header-container {
    justify-content: start;
    width: 95%;
  }

  .logo {
    flex-grow: 1;
    /* Agar menyesuaikan ukuran layar */
    text-align: center;
  }

  nav ul {
    flex-direction: column;
    padding: 10px 0;
  }

  nav ul li {
    margin: 5px 0;

  }

  main {
    flex-direction: column;
  }

  aside {
    margin-left: 0;
    margin-top: 25px;
  }

  .jumbotron-overlay {
    position: absolute;
    width: 60%;
    left: 15%;

    top: 60%;
    margin: center;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.7);
    padding: 20px;
    border-radius: 10px;
    color: white;
    animation: fadeIn 2s ease-in-out;
    z-index: 5;
  }

  .jumbotron-overlay h2 {
    font-size: 2rem;
    margin: 0 0 10px 0;
    animation: slideIn 1.5s ease-in-out;
  }

  .jumbotron-overlay p {
    font-size: 1.2rem;
    margin: 0;
    animation: slideIn 2s ease-in-out;
  }

  @keyframes fadeIn {
    from {
      opacity: 0;
    }

    to {
      opacity: 1;
    }
  }

  @keyframes slideIn {
    from {
      transform: translateX(-50px);
      opacity: 0;
    }

    to {
      transform: translateX(0);
      opacity: 1;
    }
  }
  #navbar {
    display: none;
    flex-direction: column;
    background: #2c3e50;
    position: absolute;
    top: 60px;
    left: 0;
    width: 100%;
    padding: 10px 0;
    z-index: 100;
  }
  nav ul ul {
    margin-top: -27px;
    margin-left: 70px;
    background-color: rgb(6, 70, 6);
    
  }
  nav ul li a:hover > ul {
    display: block;
    position: relative;
    
  }

  #navbar.active {
    display: flex;
    position: absolute;
    top: 60px;
    left: 10px;
    background: rgb(6, 70, 6);
    width: auto;
    padding: 10px;
    border-radius: 5px;
    
  }

  .jumbotron-overlay {
    width: 60%;
  }

  .jumbotron {
    padding-top: 0%;
    width: 100%;
  }
  .profile2 {
    margin: 10% auto;
  }
  /* gallery */
  .caption {
    font-size: 1em;
    padding: 10px;
  }
}
