html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    font-family: Poppins, sans-serif;
    color: #8C0000;

}

*{
    text-decoration: none;
    color: #8C0000;
}

a {
    text-decoration: none;
    color: #8C0000;
}

img {
  outline: none; /* Menghilangkan outline default */
}

img:focus {
  outline: none; /* Menghilangkan outline ketika elemen fokus */
}

img:active {
  outline: none; /* Menghilangkan outline saat elemen di-klik */
}

img:focus-visible {
  outline: none; /* Untuk browser yang mendukung focus-visible */
}

img:focus {
  outline: none;
  box-shadow: 0 0 5px rgba(0, 123, 255, 0.5); /* Fokus dengan bayangan biru */
}



.scrolled-down {
  transform: translateY(-100%);
  opacity: 0.8;
}

/* Ketika header kembali */
.scrolled-up {
  transform: translateY(0);
  opacity: 1;
}

.top-bar {
    padding: 10px 20px;
    box-sizing: border-box;
    width: 100vw;
    cursor: alias;

    position: fixed;

    z-index: 10001;

    background: white;
    transition: 0.4s all;

    display: flex; 
    justify-content: space-between;
}

.top-bar .contact-bar{
    display: flex;
    gap: 10px;
}

.top-bar i {
    color: white;
    padding: 10px;
    background: #8C0000;;
    padding: 3px;
    margin: 0 5px;
    border-radius: 50%;
    font-size: 10pt;

    cursor: pointer;

}
.top-bar span {
    color: #8C0000;
    font-size: 10pt;

}


header{
    width: 100vw;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 15px;

    padding: 10px 20px;
    box-sizing: border-box;

    background: #FFE6BF;

    position: fixed;

    z-index: 10000;

    transition: 0.4s all;
    margin-top: 43px;

}


header .logo{
    width: 100px;
}

header h1 {
    font-size: 12pt;
    width: 100%;
}

nav{
    display: flex;
/*    justify-content: space-around;*/

    padding: 10px 20px;
    color: #8C0000;

/*    width: 100%;*/
}

nav a{
    color: #8C0000;
    padding:  10px 20px;
    font-weight: 500;
    transition: 0.1s all lenear;
}

nav a:hover{
    color: #B10001;
    border-bottom: 0.3px solid #B10001;

}

nav a i {
    color: #8C0000;
}

.dropdown {
    position: relative;
    padding: 10px 0;
}

.dropdown-content {
    padding: 10px 0;
    min-width: 220px;

    position: absolute;
    background-color: #FFE6BF;
    box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.2);
    padding: 10px 0;
    z-index: 100;
    border-radius: 4px;

    display: none;
    flex-direction: column;

}

.icon {
    display: inline-block;
    transition: transform 0.3s ease;
}

.dropdown:hover .icon {
    transform: rotate(180deg);
}

.dropdown:hover .dropdown-content {
    display: flex;
}


.burger-menu{
    display: none;
}
.burger-menu i {
    color: #8C0000;
}

.mobile-nav{
    display: flex;
    flex-direction: column;
    background: #FFE6BF ;
    position: absolute;
    right: 0;
    top: 0;
    z-index: 100;
    margin-top: 70px;
    width: 70%;
    max-width: 300px;

}

section {
    width: 100vw;
    position: relative;
}

/*home*/

#home {
    padding-top: 110px;
}

.hero img{
    width: 100%;
}

/*profile*/


#profile{
    padding: 70px 20px;

    width: 100vw;
    display: flex;
    justify-content: space-around;
    align-items: center;
    gap: 20px;
    box-sizing: border-box;

    background: url('Images/newAssets/BG.png');
    background-repeat: no-repeat;
    background-size: cover;
}


.picture-profile {
    width: 40%;
    position: relative;
    columns: 2;
}

.picture-profile img {
    border-radius: 10px;
    width: 100%;
    cursor: pointer;
    transition: 0.5s ease all;
}

.picture-profile img:hover{
    opacity: 0.7;
}


#profile .container {
    margin-top: 12px;
    padding: 0 24px;
    max-width: 500px;
    text-align: center;
}

#profile .title{
    font-size: 24px;
    font-weight: 500;
}

#profile .sub-title{
    font-size: 20px;
    font-weight: 500;
}

#profile .capaian{
    width: 100%;
}

#profile .container .perubahan{
    width:150px;
    vertical-align: middle;
}

#profile .content{
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    width: 100%;

    box-sizing: border-box;
    margin-top: 10px;
}
#profile .content .cardProfile {
    background: #FFE6BF;
    height: 250px;
    width: 180px;

    text-align: center;

    border-top-right-radius: 20px;
    border-bottom-left-radius: 20px;
    padding: 20px;
    box-sizing: border-box;

}
#profile .content .cardProfile h2 {
    color: #8C0000;
    font-size: 15pt;
}
#profile .content .cardProfile p {
    color: #8C0000;
    font-size: 10pt;
}


/*gallery*/

#aksinyata{
    padding-top: 50px;
}
.roadmap{
    max-width: 1200px;
    padding: 20px;
    box-sizing: border-box;
    margin: 0 auto;
}

.roadmap .title{
    font-size: 24pt !important;
    font-weight: 700;
    text-align: center !important;
    margin-bottom: 10px;
}

.roadmap .aksinyata-swiper {
    width: 80%;
}
.roadmap .aksinyata-swiper swiper-slide {
    width: 100%;
}

.roadmap img{
    width: 100%;
}


.adpokasi .title{
    font-size: 24pt !important;
    font-weight: 700;
    text-align: center;
    margin-bottom: 10px;
}

.adpokasi{
    max-width: 1100px;

    min-height: 500px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
}


.suara-swipper {
    position: absolute;
    width: 100%;
    margin: 0 auto;
    max-width: 850px;
    min-width: 800px;

    left: 50%;
    top: 50%;
    transform: translate(-50%,-50%);
}

.suara-swipper swiper-slide {
    cursor: pointer;
}

.suara-swipper .suara-card{
    height: 400px;
    position: relative;

    transform: scale(0.9);
}

.suara-swipper .suara-card img{
    height: 100%;
    width: 260px;
}

.suara-swipper .suara-card .descript{
    position: absolute;

    z-index: 2;
    bottom: 0px;
    opacity: 0;
    left: 0;
    padding: 10px 20px;
    margin: 0 15px ;
    visibility: hidden;
    transition: 0.5s all;

    background: linear-gradient(
    rgba(0, 0, 0, 0.2), /* Transparan di bawah */
    rgba(0, 0, 0, 0.9) /* Gradasi blur ke atas */
  );

    border-bottom-left-radius: 20px;
    border-bottom-right-radius: 20px;
}

.suara-swipper .suara-card:hover .descript{
    visibility: visible;

    bottom: 20px;
    opacity: 1;
}

.suara-swipper .suara-card .descript p{
    color: white;
    font-size: 9pt;
}

.info .title{
    font-size: 24pt !important;
    font-weight: 700;
    text-align: center !important;
    margin-bottom: 10px;
}

.info{
    width: 100vw;
    min-height: 100vh;
    max-width: 1200px;
    margin: 0 auto;
    padding: 10px;
    box-sizing: border-box;
}

.info img{
    width: 100%;
}

.info-swipper{
    width: 100%;
    height: 100%;
}

.info-swipper .content{
    padding: 20px;
    text-align: center;
    min-height: 70vh;
}

#aspirasi {
    padding: 30px;
    padding-top: 70px;
    width: 100%;
    min-height: 670px;
    margin: 0;
    box-sizing: border-box;
    background: url('Images/newAssets/aspirasi.png');
    background-size: cover;
    background-repeat: no-repeat;

    overflow: hidden;

}


#aspirasi .title{
    font-size: 24pt !important;
    font-weight: 700;
    text-align: center;
    margin-bottom: 10px;

}


.testimoni-swipper {
    margin-top: 30px;
    width: 90%;
    max-width: 850px;
    min-width: 650px;

    position: absolute;

    left: 50%;
    transform: translateX(-50%);
}



.bg-aspirasi{
    width: 80%;
    height: 150px;
    background: white;
    border-radius: 20px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    text-align: center;
    padding: 10px 10px;

    position: absolute;
    margin: 0 auto;
    bottom: 30px;

    left: 50%;
    transform: translateX(-50%);

}


.bg-aspirasi img{
    width: 30px;
}

.aspirasi{
    cursor: pointer;
    border: 0.4px solid #8C0000;
    padding: 5px 50px;
    border-radius: 20px;
}

.aspirasi:hover{
    border: 1px solid #8C0000;
}


@media screen and (max-width:990px){
    #profile{
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }

    .picture-profile{
        width: 60%;
    }
}

@media screen and (max-width:850px){
    .suara-swipper .suara-card .descript{
        width: 195px;
    }
}

/*mobile version*/
@media screen and (max-width:750px){
    .burger-menu{
        display: flex;
    }
    nav {
        display: none;
    }

    .top-bar .contact-bar{
        display: none;
    }

    .hero-img {
        /*content: url('Images/newAssets/homeMobile.png');*/
      }

    .aksi-img{
        content: url('Images/newAssets/aksinyataMobile.html');
    }

    #profile .content {
        flex-wrap: wrap;
    }

    .picture-profile{
        width: 90%;
    }

    .suara-swipper {
        transform: translate(-51%,-50%);
    }
}


@media screen and (max-width:750px){
    .info-swipper .content{
        background-size: cover!important;
        background-position: bottom right!important;
        background: #F8F8F8;
        backdrop-filter: blur(10px); /* Efek blur */
        position: relative;
    }

    .info-swipper .content h2{
        position: absolute;
        background: white;
        padding: 20px;
        bottom: 50px;
        right: 0;
        width: 70%;

        font-size: 15pt;

    }

    .content-link{
        position: absolute;
        background: white;
        bottom: 10px;
        right: 0;
        padding: 5px 20px;

        width: 70%;

    }

    .content-txt {
        display: none;
    }


}

.card {
    max-width: 300px;

    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    text-align: left;

    height: 240px;
}

.card h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.stars {
    color: #FFA500;
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.card p {
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.card p {
    display: -webkit-box;
    -webkit-line-clamp: 4; /* Jumlah baris sebelum teks dipotong */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: normal;
}

.card span {
    font-size: 0.8rem;
}


/* Styling Form */

#aspirasiData {
  width: 100%;
  height: 100vh;

  background: rgba(0, 0, 0, 0.6);
  position: fixed;
  z-index: 10000;
  left: 0;
  top: 0;


  display: none;
  justify-content: center;
  align-items: center;


}

form#aspirasiForm {
  width: 100%;
  max-width: 500px;
  margin: 20px auto;
  padding: 20px 40px;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  background: white;

  transform: scale(0.8);

}

form#aspirasiForm label {
  display: block;
  margin-bottom: 4px;
  font-weight: bold;
}

form#aspirasiForm input,
form#aspirasiForm textarea,
form#aspirasiForm .submit-aspirasi {
  width: 100%;
  margin-bottom: 15px;
  padding: 10px;
  box-sizing: border-box;
  font-size: 16px;
  border: 1px solid #ddd;
  border-radius: 4px;
}

form#aspirasiForm textarea {
  resize: none;
  height: 100px;
}

form#aspirasiForm .submit-aspirasi {
  background-color: #007bff;
  color: white;
  border: none;
  cursor: pointer;
  transition: background-color 0.3s;
  text-align: center;
}

form#aspirasiForm .submit-aspirasi:hover {
  background-color: #0056b3;
}


.swiper-button-next,
.swiper-button-prev, .aksinyataNext, .aksinyataPrev {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  font-size: 20px;
  width: 40px;
  height: 40px;
  display: flex;
  justify-content: center;
  align-items: center;
  background: rgba(0, 0, 0, 0.1);
  border-radius: 50%;
  cursor: pointer;
}

.swiper-button-next, .aksinyataNext {
  right: 30px;
  color: #fff;

}

.swiper-button-prev ,.aksinyataPrev{
  left: 30px;
  color: #fff;

}

.swiper-button-next:hover,
.swiper-button-prev:hover {
  background: rgba(0, 0, 0, 0.2);
}

.swal2-zindex {
  z-index: 99999 !important; /* SweetAlert selalu di atas */
}
.swal2-container {
  z-index: 99999 !important; /* SweetAlert akan selalu tampil di atas */
}


@media screen and (max-width:600px){
    .bg-aspirasi{
        font-size: 12pt;
        background-size: 100%;
    }
}

#news{
    margin-bottom: 40px;
}

#news .title{
    padding-top: 60px;
    font-size: 24pt !important;
    font-weight: 700;
    text-align: center;
    margin-bottom: 10px;
}

#news .container {
    padding: 40px;
    max-width: 1100px;
    min-height: 350px;

    display: flex;
    justify-content: center;
    margin: 20px auto;

  overflow: hidden;

  position: relative;


}
/* Styling untuk Swiper Container */
.news-swiper {
/*  max-width: 1100px;*/
  max-width: 900px;

  position: absolute;

  left: 50%;
  transform: translateX(-50%);
}

/* Styling untuk News Item */
.news-item {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  text-align: center;
  display: flex;
  flex-direction: column;
  height: 100%;

  width: 250px;

  margin-bottom: 30px;


}

.news-item img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.news-item h3 {
  font-size: 13px;
  text-align: left;
  margin: 15px 10px;

  display: -webkit-box;
    -webkit-line-clamp: 2; /* Jumlah baris sebelum teks dipotong */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: normal;
}

.tags {
    display: flex;
    justify-content: space-between;
    padding: 5px 10px;

    font-size: 7pt;
}

.tags .tag {
    background: lightblue;
    opacity: 0.75;
    padding: 5px;
}

.news-item p {
  font-size: 10px;
  margin: 0 15px 15px;
  line-height: 1.5;
  text-align: justify;

  display: -webkit-box;
    -webkit-line-clamp: 3; /* Jumlah baris sebelum teks dipotong */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: normal;
}

.news-item a {
  font-size: 12px;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

.news-item a:hover {
  color: #ff5722;
}

/* Instagram Card Styling */
.instagram-card {
  padding: 0px !important;
  overflow: auto !important;
  position: relative;
}

.instagram-card .instagram-media {
  max-width: 100% !important;
  width: 100% !important;
  transform: scale(0.8);
  margin-left: -40px!important;
  margin-top: -65px!important;
}

.instagram-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  cursor: pointer;
  z-index: 10;
  background: transparent;
}

/* Instagram Media Responsive Styling */
.instagram-media {
  width: 100% !important;
  max-width: 500px !important;
  margin: 0 auto !important;
}

@media (max-width: 768px) {
  .instagram-media {
    width: 100% !important;
    max-width: 400px !important;
  }
}

@media (max-width: 480px) {
  .instagram-media {
    width: 100% !important;
    max-width: 300px !important;
  }
}







