/*--------------------------------------------------------------
Page Header Section
--------------------------------------------------------------*/
.page-header-custom {
  position: relative;
  border-bottom: 10px solid #FFC928;
  background-image: url('../img/ds-sisda.png');
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  height: 250px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Overlay transparan di atas gambar */
.page-header-custom::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 1;
}

.page-header-custom h1 {
  color: #fff;
  font-weight: 700;
  font-size: 35px;
  letter-spacing: 2px;
  text-shadow: 3px 3px 5px rgba(0, 0, 0, 0.5);
  text-transform: uppercase;
  z-index: 2;
  position: relative;
  padding: 0 15px;
  transition: font-size 0.3s ease, transform 0.3s ease;
}

/* Garis dekoratif */
.garis1 {
  height: 5px;
  background-color: #f8b01c;
}

.garis2 {
  height: 10px;
  background-color: #1d2f58;
}

/* Responsif untuk layar lebih kecil */
@media (max-width: 768px) {
  .page-header-custom {
    height: 200px;
  }

  .page-header-custom h1 {
    font-size: 32px;
  }
}

@media (max-width: 576px) {
  .page-header-custom {
    height: 150px;
  }

  .page-header-custom h1 {
    font-size: 24px;
  }
}


/*--------------------------------------------------------------
# Sidebar Konten
--------------------------------------------------------------*/
.box-header {
  background-color: #1d2f58;
  color: #F7F9FC;
  padding: 10px 15px;
  font-size: 16px;
  font-weight: bold;
  border-bottom: 5px solid #f8b01c;
  border-radius: 5px 5px 0 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-transform: uppercase;
}

.btn-cari-artikel {
  font-weight: 600;
  padding: 6px 15px;
  font-size: 14px;
  border-radius: 25px;
  color: #233876;
  background-color: transparent;
  border: 2px solid #FACA15;
  display: inline-flex;
  align-items: center;
  transition: all 0.3s ease;
  text-decoration: none;
}

.btn-cari-artikel i {
  margin-right: 8px;
}

.btn-cari-artikel:hover {
  background-color: #FACA15;
  color: #1d2f58 !important;
  border-color: #FACA15;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.btn-cari-artikel:active {
  transform: translateY(1px);
  box-shadow: none;
}

.box-content {
  padding: 15px;
  background-color: #f9f9f9;
  border-radius: 0 0 5px 5px;
}

.box-content img {
  max-width: 100%;
  border-radius: 5px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.berita-item-sidebar {
  display: flex;
  align-items: flex-start;
  border-bottom: 1px solid #e0e0e0;
  padding-bottom: 10px;
  padding-top: 10px;
}

.berita-item-sidebar:last-child {
  border-bottom: none;
}

.berita-image-sidebar {
  width: 120px;
  height: 60px;
  object-fit: cover;
  border-radius: 5px;
  margin-right: 10px;
}

.berita-title-sidebar {
  font-size: 14px;
  /*color: #000;*/
  font-weight: bold;
  white-space: normal;
  line-height: 1.4;
  flex-grow: 1;
  overflow: hidden;
  text-overflow: ellipsis;
}

.berita-title-sidebar:hover {
  color: #02027a !important;
  text-decoration: none;
}

.berita-title a {
  color: inherit;
  text-decoration: none;
}

.berita-title a:hover {
  text-decoration: underline;
}

.text-muted {
  font-size: 13px;
  color: #6c757d;
}

.info-grafis-section {
  margin-top: 15px;
}

.carousel-inner-sidebar img {
  border-radius: 5px;
}

.pengumuman-item-beranda {
  display: grid;
  grid-template-rows: auto auto;
  gap: 5px;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid #e0e0e0;
}

.pengumuman-item-beranda:last-child {
  border-bottom: none;
}

.pengumuman-date-beranda {
  grid-column: 1 / span 2;
  font-size: 13px;
  color: #6c757d;
}

.pengumuman-title-beranda {
  font-size: 15px;
  color: #233876;
  font-weight: bold;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pengumuman-title-beranda a {
  color: inherit;
  text-decoration: none;
}

.pengumuman-views-beranda {
  font-size: 13px;
  color: #6c757d;
  text-align: right;
}

@media (max-width: 768px) {
  .sidebar-beranda-custom {
    padding-top: 25px;
  }
}

/*--------------------------------------------------------------
Pengumuman Rotator
--------------------------------------------------------------*/
.is-hidden {
  display: none;
}

.is-visible {
  display: inline;
}

/*--------------------------------------------------------------
Container untuk pencarian
--------------------------------------------------------------*/
.search-container {
  margin-top: 1rem;
}

/* Kotak pencarian */
.search-box {
  background-color: #F4F6F9;
  border: 1px solid #D1D5DB;
  border-radius: 8px;
  padding: 15px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
  transition: box-shadow 0.3s ease;
}

.search-box:hover {
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
}

/* Select dan input pencarian */
.search-inputs .form-select,
.search-inputs .form-control {
  border: 1px solid #D1D5DB;
  border-radius: 6px;
  padding: 8px;
  margin-right: 8px;
  transition: all 0.3s ease;
}

.search-inputs .form-select:focus,
.search-inputs .form-control:focus {
  border-color: #4A90E2;
  box-shadow: 0 0 5px rgba(74, 144, 226, 0.3);
}

/* Tombol pencarian */
.btn-search {
  background-color: #4A90E2;
  color: #fff;
  padding: 10px 20px;
  font-size: 15px;
  font-weight: bold;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
  text-decoration: none;
  border: none;
}

.btn-search:hover {
  background-color: #357ABD;
  box-shadow: 0 4px 8px rgba(74, 144, 226, 0.3);
}

.btn-search i {
  margin-right: 5px;
}

/* Responsif */
@media (max-width: 768px) {
  .search-inputs {
    flex-direction: column;
  }

  .btn-search {
    width: 100%;
    margin-top: 10px;
  }
}

/*--------------------------------------------------------------
Chatbox Whatsapp - Modern Design
--------------------------------------------------------------*/
svg {
  width: 24px;
  height: 24px;
  vertical-align: middle;
  fill: #fff;
}

.chatMenu,
.chatButton .svg-2 {
  display: none;
}

.chatButton {
  position: fixed;
  background: linear-gradient(135deg, #25d366, #20c157);
  bottom: 20px;
  left: 20px;
  border-radius: 50%;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  transition: all 0.3s ease-in-out;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
  cursor: pointer;
}

.chatButton:hover {
  transform: scale(1.1) rotate(20deg);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
}

.chatButton svg {
  margin: auto;
  fill: #fff;
}

/* Chatbox Appearance */
.chatBox {
  position: fixed;
  bottom: 90px;
  left: 20px;
  width: 360px;
  transition: all 0.4s ease-in-out;
  z-index: 21;
  opacity: 0;
  visibility: hidden;
  line-height: normal;
  border-radius: 15px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
  background-color: #fff;
  overflow: hidden;
}

.chatContent {
  overflow: hidden;
  background-color: #fff;
  border-radius: 15px;
}

.chatHeader {
  display: flex;
  align-items: center;
  padding: 15px 20px;
  background: linear-gradient(135deg, #25d366, #20c157);
  border-radius: 15px 15px 0 0;
  color: #fff;
  font-size: 18px;
  font-weight: bold;
}

.chatHeader svg {
  width: 36px;
  height: 36px;
  margin-right: 10px;
}

.chatHeader .chatTitle {
  flex-grow: 1;
}

.chatHeader .chatTitle span {
  font-size: 12px;
  font-weight: 400;
  opacity: 0.8;
}

/* Chat Message Styles */
.chatText {
  padding: 15px 20px;
  font-size: 14px;
  color: #333;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.chatText span {
  display: inline-block;
  padding: 10px 15px;
  background-color: #f0f4f8;
  border-radius: 15px 15px 0 15px;
  max-width: 70%;
  word-wrap: break-word;
  font-size: 14px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.chatText span:after {
  content: '• Just now';
  margin-left: 10px;
  font-size: 10px;
  color: #9b9b9b;
}

.chatText .typing {
  margin: 15px 0 0 auto;
  padding: 10px 20px;
  border-radius: 15px;
  background-color: #e8f5e9;
  font-style: italic;
  color: #8e8e8e;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* Start Message */
.chatStart {
  display: flex;
  align-items: center;
  margin-top: 15px;
  padding: 15px 20px;
  border-radius: 10px;
  background-color: #f9f9f9;
  font-size: 14px;
  color: #606060;
}

/* Interaction and Visibility */
.chatMenu:checked+.chatButton {
  transform: rotate(360deg);
  background: linear-gradient(135deg, #20c157, #25d366);
}

.chatMenu:checked+.chatButton .svg-1 {
  display: none;
}

.chatMenu:checked+.chatButton .svg-2 {
  display: block;
}

.chatMenu:checked~.chatBox {
  bottom: 100px;
  opacity: 1;
  visibility: visible;
}

/* Responsiveness */
@media (max-width: 768px) {
  .chatBox {
    width: 300px;
    bottom: 80px;
    left: 10px;
  }
  .chatButton {
    width: 50px;
    height: 50px;
  }
  .chatHeader {
    font-size: 16px;
    padding: 10px 15px;
  }
  .chatText span {
    padding: 8px 12px;
    font-size: 12px;
  }
}


/*--------------------------------------------------------------
Pagination Wrapper
--------------------------------------------------------------*/
.pagination-wrapper {
  margin-top: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.pagination {
  display: flex;
  list-style: none;
  padding-left: 0;
  margin-bottom: 0;
  flex-wrap: wrap;
}

.pagination li {
  margin: 0 5px;
}

.pagination .page-item a {
  color: #002060;
  background-color: #FFD200;
  border: 1px solid #FFD200;
  padding: 8px 16px;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 5px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease-in-out;
}

.pagination .page-item a:hover {
  background-color: #002060 !important;
  color: #FFD200 !important;
  border-color: #002060 !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2) !important;
}

.pagination .page-item.active a {
  background-color: #002060;
  color: #FFD200;
  border-color: #002060;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.pagination .page-item.disabled a {
  color: #ccc;
  background-color: #f8f9fa;
  border-color: #f8f9fa;
  cursor: not-allowed;
  box-shadow: none;
}

/* Responsive Design */
@media (max-width: 768px) {
  .pagination .page-item a {
    padding: 8px 12px;
    font-size: 0.8rem;
    border-radius: 5px;
  }
}

@media (max-width: 480px) {
  .pagination-wrapper {
    margin-top: 15px;
  }
  .pagination {
    gap: 3px;
  }
  .pagination .page-item a {
    padding: 6px 10px;
    font-size: 0.75rem;
  }
}

/*--------------------------------------------------------------
Pengumuman Rotator Styles
---------------------------------------------------------------*/
.pengumuman-section {
  background-color: #ffc107;
  color: #343a40;
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.pengumuman-container {
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.pengumuman-title {
  font-weight: 600;
  font-size: 16px;
  margin-right: 1rem;
}

#announcement-rotator {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-size: 15px;
  flex-grow: 1;
}

.announcement-item {
  display: inline-block;
  transition: opacity 0.5s ease;
}

.announcement-item.is-visible {
  opacity: 1;
}

.announcement-item.is-hidden {
  opacity: 0;
  position: absolute;
  pointer-events: none;
}

.announcement-item a {
  color: #343a40;
  text-decoration: none;
  font-weight: bold;
}

.announcement-item a:hover {
  color: #212529;
}

/* Responsive padding adjustments */
@media (max-width: 768px) { /* Tablet dan ke bawah */
  .pengumuman-section {
    padding-top: 0.5rem; /* Mengurangi padding atas */
    padding-bottom: 0.5rem; /* Mengurangi padding bawah */
  }
}

@media (max-width: 576px) { /* Mobile dan ke bawah */
  .pengumuman-section {
    padding-top: 0.5rem; /* Padding lebih kecil untuk perangkat kecil */
    padding-bottom: 0.5rem;
  }

  .pengumuman-title {
    font-size: 14px;
  }

  #announcement-rotator {
    font-size: 13px;
  }
}


.section-gradient-galeri {
  overflow: hidden;
  background: linear-gradient(rgba(233, 247, 254, 0.25), rgba(233, 247, 254, 0.75)),
    url(../img/our-faqs-bg.png) fixed center center;
  background-repeat: no-repeat;
  background-position: right bottom;
  padding: 100px 0 30px;
}

/*--------------------------------------------------------------
Custom Judul Halaman dan Berita
---------------------------------------------------------------*/
.custom-page-title {
    font-size: 26px;
    font-weight: bold;
    color: #12223B;
    text-transform: uppercase; 
    letter-spacing: 1px;
    margin-bottom: 14px;
    padding-bottom: 5px;
    width: 100%;
    position: relative;
    text-align: justify;
    text-align-last: left;
    word-spacing: 0.1rem;
}

/* Garis bawah pada judul */
.custom-page-title::before {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background-color: #000066;
}

/* Efek hover */
.custom-page-title:hover {
    color: #F8B01C; 
    transition: color 0.3s ease;
}

/* Responsif untuk tablet dan ponsel (max-width: 768px) */
@media (max-width: 768px) {
    .custom-page-title {
        font-size: 20px;
        padding-bottom: 5px;
        word-spacing: 0.1rem;
    }
}

/* Responsif untuk ponsel (max-width: 480px) */
@media (max-width: 480px) {
    .custom-page-title {
        font-size: 15px;
        padding-bottom: 5px;
        word-spacing: 0.1rem;
    }
}


/*--------------------------------------------------------------
Custom CSS template-frontend
---------------------------------------------------------------*/
.media .box {
  padding: 20px;
  background: #f9f9f9;
  text-align: center;
  border-radius: 8px;
  position: relative;
  overflow: auto;
  border: 2px solid #f9f9f9;
  transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.media .box:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.borderchat {
  border-bottom-left-radius: 40px;
  border-bottom-right-radius: 40px;
}

.pointer {
  cursor: pointer;
}

.tipe {
  position: absolute;
  text-transform: uppercase;
  font-weight: bold;
  font-size: 0.8rem;
  top: 3%;
  left: 5%;
  border-radius: 100px;
}

.tipe_inline {
  text-transform: uppercase;
  font-weight: bold;
  font-size: 0.8rem;
  border-radius: 100px;
}

.kategori {
  position: absolute;
  text-transform: uppercase;
  /* font-weight: bold; */
  font-size: 0.8rem;
  top: 3%;
  left: 5%;
  border-radius: 80px;
}

.kategori_inline {
  text-transform: uppercase;
  /* font-weight: bold; */
  font-size: 0.8rem;
  border-radius: 80px;
}

.ketberita {
  position: absolute;
  right: 15%;
  bottom: 20px;
  left: 15%;
  z-index: 10;
  padding-top: 20px;
  padding-bottom: 20px;
  color: #fff;
  text-align: center;
  text-shadow: 0 1px 2px rgba(0, 0, 0, .6);
}

.ketberita {
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0) 0%, #0a4ea2 100%);
  width: 100%;
  right: 0px;
  left: 0px;
  padding-top: 30px;
  padding-bottom: 10px;
  padding-left: 20px;
  padding-right: 10px;
  bottom: 0px;
  text-align: left;
}

.sinergi {
  padding: 0px 0;
  /* padding-bottom: 0%; */
  /* background: #fff; */
}

.sinergi .sinergi-logo {
  padding: 1px;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  height: 100px;
}

.sinergi .sinergi-logo img {
  transition: all 0.3s ease-in-out;
  height: 60px;
  filter: grayscale(100%);
}

.sinergi .sinergi-logo:hover img {
  filter: none;
  transform: scale(1.1);
}

.preloader {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.85);
  z-index: 99999;
  transition: all 500ms ease;
  -webkit-transition: all 500ms ease;
}

.preloader.out {
  opacity: 0;
  visibility: hidden;
  transition-delay: 1s;
}

.loader {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  -webkit-transform: translate(-50%, -50%);
  transition: all 500ms ease;
  -webkit-transition: all 500ms ease;
  transition-delay: 0.8s;
}

.preloader.out .loader {
  transform: translate(-50%, -100%);
  -webkit-transform: translate(-50%, -100%);
  opacity: 0;
}

.preloader.out .loader:before {
  border-color: #fff;
  transition-delay: 0.2s;
}

.loader img {
  position: relative;
  transition: all 500ms ease;
  -webkit-transition: all 500ms ease;
}

.loader:before {
  content: "";
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  -webkit-transform: translate(-50%, -50%);
  width: 150px;
  height: 150px;
  background: #222;
  border: 5px solid rgba(255, 255, 255, 0.1);
  border-top: 5px solid #fff;
  border-radius: 50%;
  -webkit-border-radius: 50%;
  animation: preloaderAnimation 1s linear infinite;
  -webkit-animation: preloaderAnimation 1s linear infinite;
  transition: all 500ms ease;
  -webkit-transition: all 500ms ease;
}

.carousel-inner .ketberita p {
  margin-bottom: 5px;
}

.carousel-inner .ketberita h5 {
  margin-top: 5px;
}

.berita-terbaru {
  display: flex;
  height: 400px;
  overflow-y: scroll;
}

.berita-terbaru .col-md-8 {
  height: 100%;
  overflow-y: scroll;
}

.berita-terbaru .col-md-4 {
  height: 100%;
}

@keyframes preloaderAnimation {
  0% {
    transform: translate(-50%, -50%) rotate(0deg);
  }

  100% {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

@-webkit-keyframes preloaderAnimation {
  0% {
    -webkit-transform: translate(-50%, -50%) rotate(0deg);
  }

  100% {
    -webkit-transform: translate(-50%, -50%) rotate(360deg);
  }
}

#beritautama .ketberita h5 {
  font-size: 1.3em;
}

@media (max-width: 767.98px) {
  #beritautama .ketberita h5 {
    font-size: 1.1em;
  }
}

/*--------------------------------------------------------------
Gambar Berita carousel
---------------------------------------------------------------*/
/* Wrapper untuk galeri */
.work-galeri-beranda {
    transition: transform 0.3s ease;
    position: relative;
    overflow: hidden;
    border-radius: 10px;
}

/* Gambar latar */
.work-galeri-beranda .img {
    transition: transform 0.3s ease, opacity 0.3s ease;
    background-size: cover;
    background-position: center;
    height: 230px;
}

/* Responsif: Menyesuaikan ukuran gambar di layar lebih kecil */
@media (max-width: 768px) {
    .work-galeri-beranda .img {
        height: 200px;
    }
}

/* Hover efek pada gambar */
.work-galeri-beranda .img:hover {
    transform: scale(1.05);
    opacity: 0.9;
    cursor: pointer;
}

/* Ikon pencarian */
.work-galeri-beranda .icon {
    background-color: rgba(0, 0, 0, 0.5);
    opacity: 0;
    transition: opacity 0.3s ease;
    cursor: pointer;
}

/* Menampilkan ikon ketika hover */
.work-galeri-beranda:hover .icon {
    opacity: 1;
}

/* Gaya untuk ikon */
.work-galeri-beranda .icon i {
    font-size: 2rem;
    color: white;
    cursor: pointer;
}

/* Hover efek pada ikon */
.work-galeri-beranda:hover .icon i {
    color: #f8b01c;
}

/* Teks di bawah gambar */
.work-galeri-beranda .text {
    padding-top: 15px;
}

/* Teks judul */
.work-galeri-beranda .text h3 a {
    color: #12223B;
    text-decoration: none;
    font-weight: bold;
    cursor: pointer;
}

/* Hover efek pada judul teks */
.work-galeri-beranda .text h3 a:hover {
    color: #f8b01c;
}

/* Teks kategori */
.work-galeri-beranda .text span {
    color: #6c757d;
}

/* Responsif: Mengubah tata letak galeri pada layar lebih kecil */
@media (max-width: 768px) {
    .featured-carousel .item {
        margin-bottom: 20px;
    }

    .work-galeri-beranda .text h3 {
        font-size: 1.2rem; 
    }

    .work-galeri-beranda .text span {
        font-size: 0.9rem;
    }
}
