@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@500;700&family=Poppins:wght@400;500&display=swap');

.header-box {
    position: relative;
    text-align: center;
    padding: 60px 20px;
    color: white;
    font-family: 'Montserrat', sans-serif;

    /* Background gambar */
    background: url('background-title.jpg') no-repeat center center/cover;
    background-attachment: fixed;
}

/* Overlay warna tetap tipis supaya teks terlihat, tapi jangan mengganggu shadow */
.header-box::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1;
}

/* Judul */
.header-box h2 {
    position: relative;
    z-index: 2;
    font-family: 'Montserrat', sans-serif;
    font-size: 30px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #ffffff;
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.7);
    margin: 0 0 12px 0;
}

/* Breadcrumb */
.breadcrumb {
    position: relative;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    color: #f0f0f0;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.7);
    /* shadow supaya terlihat */
}

.breadcrumb a {
    color: #ffffff;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.breadcrumb a:hover {
    color: #00c3ff;
}

.breadcrumb .separator {
    color: #ccc;
}

.breadcrumb .current {
    font-weight: 500;
    color: #f0f0f0;
}

.carousel-item img {
  transition: transform 6s ease;
}

/* Sedikit zoom */
.carousel-item.active img {
  /* transform: scale(1.05); */
}

/* .carousel-item::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 40%;
  background: linear-gradient(to top, rgba(0,0,0,0.5), transparent);
  z-index: 1;
} */

.carousel-control-prev-icon,
.carousel-control-next-icon {
  filter: drop-shadow(0 0 3px rgba(0,0,0,0.5));
  transition: transform 0.3s ease;
}

.carousel-control-prev-icon:hover,
.carousel-control-next-icon:hover {
  transform: scale(1.3);
}

.carousel-indicators [data-bs-target] {
  background-color: #fff;
  border: 1px solid #01a3a4;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  opacity: 0.7;
  transition: all 0.3s;
}

.carousel-indicators .active {
  background-color: #01a3a4;
  opacity: 1;
}

.visi-misi-section .text-content {
    text-align: center;
}

.visi-misi-section .text-content h2 {
    font-size: 1.3em;
    font-weight: 700;
}

.visi-misi-section .text-content h3 {
    font-size: 1.2em;
    margin-bottom: 0;
    color: #333;
}

.visi-misi-section .text-content p,
.visi-misi-section .text-content div {
    font-size: 1em;
    line-height: 1.6;
    color: #555;
}

.visi-misi-section .text-content ul {
    text-align: left;
    padding-left: 20px;
}

.visi-misi-section .text-content ul li {
    margin-bottom: 5px;
}

.tupoksi-section {
    max-width: 1100px;
    margin: auto;
}

.tabs-wrapper {
    display: flex;
    gap: 20px;
}

 .album-card {
    overflow: hidden;
    border-radius: 0.75rem;
    margin-bottom: 10px;
}

.album-img {
    width: 100%;
    height: 225px;
    object-fit: cover;
    transition: transform 0.5s ease, box-shadow 0.5s ease;
}

.album-card:hover .album-img {
    transform: scale(1.08);
    box-shadow: 0 0.8rem 1.5rem rgba(0, 0, 0, 0.25);
}

.photo-card {
    overflow: hidden;
    border-radius: 0.75rem;
}

.photo-thumb {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.photo-thumb:hover {
    transform: scale(1.05);
    box-shadow: 0 0.8rem 1.2rem rgba(0, 0, 0, 0.25);
}

.judul-detail {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 1px;
    color: #222;
}

.pagination {
    justify-content: center;
    margin-top: 2rem;
    gap: 0.25rem;
}

.pagination .page-link {
    border-radius: 8px;
    border: 1px solid #ddd;
    background-color: #fff;
    color: #333;
    min-width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 500;
    transition: all 0.25s ease-in-out;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.pagination .page-link:hover {
    background-color: #01a3a4;
    border-color: #01a3a4;
    color: #fff;
    transform: translateY(-2px);
}

.pagination .page-item.active .page-link {
    background-color: #01a3a4;
    border-color: #01a3a4;
    color: #fff;
    box-shadow: 0 4px 10px rgba(1, 163, 164, 0.3);
    transform: translateY(-1px);
}

.pagination .page-item.disabled .page-link {
    background-color: #f1f1f1;
    border-color: #ddd;
    color: #aaa;
    cursor: not-allowed;
}

.pagination .page-link svg {
    width: 16px;
    height: 16px;
}

/* Tabs vertikal */
.tabs-vertical {
    display: flex;
    flex-direction: column;
    min-width: 200px;
    max-width: 300px;
    width: 100%;
    border-right: 2px solid #ddd;
    flex-shrink: 0;
}

.tab {
    padding: 12px 15px;
    cursor: pointer;
    background: #f8f9fa;
    border-left: 4px solid transparent;
    transition: all 0.3s ease;
    margin-bottom: 5px;
    border-radius: 5px 0 0 5px;
    word-wrap: break-word;
}

.tab:hover {
    background: #e9ecef;
}

.tab.active {
    background: #fff;
    font-weight: bold;
    border-left: 4px solid #007bff;
    color: #007bff;
}

/* Konten kanan */
.tab-content-wrapper {
    flex: 1;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    padding: 15px;
}

.tab-content h3 {
    margin-top: 0;
    font-size: 1.3em;
    color: #007bff;
}


/* ====================== Judul ========================= */

/* .box-layanan {
  text-align: center;
  background: linear-gradient(135deg, #078585, #09d3d6);
  padding: 10px 10px 15px 10px;
  color: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  position: relative;
} */

.box-layanan {
  text-align: center;
  background-image: url('https://png.pngtree.com/thumb_back/fh260/background/20240528/pngtree-fluid-gradient-with-light-sphere-combination-business-tech-sense-poster-image_15824445.jpg');
  background-size: cover;
  background-position: center;
  position: relative;
  padding: 15px 10px;
  color: #fff;
  border-radius: 12px;
  overflow: hidden;
}

.box-layanan::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(7, 176, 206, 0.7);
  z-index: 1;
}

.judul-layanan {
  position: relative;
  font-size: 1.3rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #fff;
  letter-spacing: 1px;
  text-shadow: 1px 2px 5px rgba(0, 0, 0, 0.5);
  margin-bottom: 1rem;
  display: inline-block;
  z-index: 2;
}

/* .judul-layanan::after {
  content: "";
  position: absolute;
  width: 45px;
  height: 3px;
  background-color: #fff;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 4px;
  transition: width 0.3s ease;
}

.judul-layanan:hover::after {
  width: 65px;
} */


/* ===================== Layanan ======================== */
.card.card-layanan {
  width: 100%;
  border-radius: 15px;
  background-color: #fff;
  padding: 0.5rem;
  border-top: 4px solid #018f90;
  border-bottom: 2px solid #018f90;
  box-shadow: 3px 4px 3px rgba(90, 90, 92, 0.3);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}


.card.card-layanan:hover {
  transform: translateY(-5px);
}

.card.card-layanan img {
  text-align: center;
  max-width: 50%;
  height: auto;
  transition: transform 0.3s ease;
}

.card.card-layanan:hover img {
  transform: scale(1.05);
}

.card.card-layanan .card-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: #018f90;
  margin-bottom: 0.5rem;
}

.card.card-layanan .btn-layanan {
  background-color: #027d7e;
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 0.3rem 1.2rem;
  font-size: 0.9rem;
  font-weight: 400;
  text-decoration: none;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.btn-layanan:hover {
  background-color: #025f5f;
  transform: scale(1.05);
  color: #fff;
}

/* ==================== Berita ====================== */
.section-wrapper {
    margin-bottom: 30px;
}

.judul-informasi {
    font-size: 1.4rem;
    font-weight: 700;
    color: #01a3a4;
    margin-bottom: 25px;
    position: relative;
    text-transform: uppercase;
}

.judul-informasi::after {
    content: '';
    position: absolute;
    width: 60px;
    height: 4px;
    background-color: #01a3a4;
    left: 0;
    bottom: -8px;
    border-radius: 4px;
    transition: width 0.3s ease;
}

.judul-informasi:hover::after {
    width: 90px;
}

.custom-news-row {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
}

.custom-news-col-berita {
    flex: 1 1 57%;
}

.custom-news-col-pengumuman {
    flex: 1 1 38%;
}

.berita-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.berita-item {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #d6d3d3;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06),
        0 6px 20px rgba(0, 0, 0, 0.05);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
    position: relative;
    z-index: 1;
}

.berita-item:hover .berita-img {
    transform: scale(1.05);
    filter: brightness(1.1);
}

.berita-img-wrapper {
    position: relative;
    overflow: hidden;
}

.berita-img {
    transition: transform 0.5s ease;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.berita-date-overlay {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background-color: rgba(1, 163, 164, 0.9);
    color: #fff;
    font-size: 0.75rem;
    padding: 3px 6px;
    border-radius: 4px;
}

.berita-body {
    padding: 10px 15px 15px 15px;
    font-family: Tahoma, Helvetica, Verdana, sans-serif !important;
    font-size: 14px !important;
    text-align: justify !important;
}

.berita-body h3 {
    font-size: 14px;
    line-height: 1.5;
    font-family:Tahoma, Helvetica, Verdana, sans-serif;
    font-weight: 600;
    color: #333;
    margin-bottom: 6px;
    text-decoration: none;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.berita-body p,
.berita-body span {
    font-family: Tahoma, Helvetica, Verdana, sans-serif !important;
    font-size: 14px !important;
    text-align: justify !important;
    color: #333;
}

.berita-text {
    font-family: Tahoma, Helvetica, Verdana, sans-serif !important;
    font-size: 14px !important;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 15px;
}

.berita-text p,
.berita-text span {
    font-family: Tahoma, Helvetica, Verdana, sans-serif !important;
    font-size: 14px !important;
    text-align: justify !important;
    color: #333;
}

.berita-lain-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    margin-bottom: 25px;
}

.berita-lain-thumb {
    position: relative;
    flex: 0 0 175px;
}

.berita-lain-thumb img {
    object-fit: cover;
    border-radius: 8px;
}

.berita-lain-date {
    position: absolute;
    bottom: 5px;
    right: 5px;
    background-color: rgba(1, 163, 164, 0.9);
    color: #fff;
    font-size: 0.7rem;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 10px;
}

.berita-lain-content {
    flex: 1;
}

.berita-lain-title {
    font-family: Tahoma, Helvetica, Verdana, sans-serif !important;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    color: #222;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 6px;
}

.berita-lain-title:hover {
    color: #007bff;
}

/* Batasi isi berita hanya 3 baris */
.berita-lain-text {
    font-family: Tahoma, Helvetica, Verdana, sans-serif !important;
    font-size: 14px !important;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    max-height: 4.8em;
    text-align: justify;
}

.berita-lain-text p,
.berita-lain-text span {
    font-family: Tahoma, Helvetica, Verdana, sans-serif !important;
    font-size: 14px !important;
    text-align: justify !important;
    color: #333;
}

/* Pengumuman */
.pengumuman-card {
    display: flex;
    flex-direction: column;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.pengumuman-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* ===== Gambar / Logo ===== */
.pengumuman-image {
    position: relative;
    overflow: hidden;
    height: 175px;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #e6f7f2;
}

.pengumuman-image img {
    max-width: 150px;
    height: auto;
    object-fit: contain;
}

/* ===== Overlay Tombol Hover ===== */
.overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(40, 166, 236, 0);
    transition: background-color 0.3s ease;
}

.pengumuman-image:hover .overlay {
    background-color: rgba(40, 166, 236, 0.85);
}

.overlay-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 35px;
    height: 35px;
    border: 1.5px solid #fff;
    border-radius: 50%;
    color: #fff;
    text-decoration: none;
    opacity: 0;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
}

.search-btn {
    left: -50px;
}

.share-btn {
    right: -50px;
}

.pengumuman-image:hover .search-btn {
    left: 38%;
    opacity: 1;
}

.pengumuman-image:hover .share-btn {
    right: 38%;
    opacity: 1;
}

.overlay-btn i {
    font-size: 1rem;
}

.overlay-btn:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

/* ===== Body Card ===== */
.pengumuman-body {
    padding: 15px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.pengumuman-title {
    font-size: 15px;
    margin-bottom: 5px;
}

.pengumuman-date {
    font-size: 14px;
    color: #6c757d;
    margin-bottom: 15px;
}

.pengumuman-body-content {
    font-size: 15px;
    line-height: 1.7;
    margin-top: 20px;
    text-align: left;
}

.pengumuman-body-files a {
    display: block;
    margin-top: 8px;
    color: #28a6ec;
    text-decoration: underline;
}

/* ===== Pengumuman Lainnya ===== */
.pengumuman-lain-item {
    display: flex;
    align-items: center;
    padding-left: 10px;
    /* vertikal tengah */
    margin-bottom: 15px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: left;
}

.pengumuman-lain-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.pengumuman-lain-thumb {
    width: 75px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pengumuman-lain-thumb img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.pengumuman-lain-content {
    padding: 10px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.pengumuman-lain-title {
    font-size: 14px;
    font-weight: 500;
    color: #333;
    text-decoration: none;
    line-height: 1.2;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pengumuman-lain-title:hover {
    color: #28a6ec;
}

.pengumuman-lain-date {
    font-size: 12px;
    color: #6c757d;
    margin-top: 3px;
}

/* Responsive */
@media (max-width: 576px) {
    .pengumuman-lain-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .pengumuman-lain-thumb {
        width: 100%;
    }

    .pengumuman-lain-thumb img {
        max-width: 80px;
    }
}

/* ===== Custom Popup Gambar ===== */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(15, 15, 15, 0.8);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1050;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.popup-content {
    position: relative;
    animation: zoomIn 0.35s ease;
}

@keyframes zoomIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* Ukuran popup gambar dikurangi agar tidak terlalu besar */
.popup-image {
    max-width: 60vw;
    max-height: 70vh;
    border: 4px solid #fff;
    border-radius: 10px;
    background-color: #f8f8f8;
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.3);
}

/* Tombol close separuh keluar dari gambar */
.popup-close {
    position: absolute;
    top: 0;
    right: 0;
    transform: translate(40%, -40%);
    background-color: #000;
    border: 1.5px solid #fff;
    color: #fff;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.popup-close:hover {
    background-color: #fff;
    color: #000;
}

.btn-selengkapnya {
    padding: 5px 12px;
    font-size: 13px;
    font-weight: 500;
    border: 1.5px solid #28a6ec;
    color: #28a6ec;
    background-color: transparent;
    text-decoration: none;
    border-radius: 5px;
    text-align: center;
    transition: all 0.3s ease;
}

.btn-selengkapnya:hover {
    background-color: #28a6ec;
    color: #fff;
}

/* Responsif: gambar pindah ke atas pada layar kecil */
@media (max-width: 375px) {
    .berita-lain-item {
        flex-direction: column;
    }

    .berita-lain-thumb {
        width: 100%;
    }
}



/* ================== Welcome ====================== */
.section-overlay {
    position: relative;
    background-image: url('background-bapeg.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    /* height: 100vh; */
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
    overflow: hidden;
    margin-bottom: 20px
}

.section-overlay::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(8, 68, 68, 0.75);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    padding-top: 30px;
    padding-bottom: 40px;
}

.logo-hero {
    width: 130px;
    margin-bottom: 0.5rem;
    filter: drop-shadow(1px 1px 1px rgb(254, 255, 255));
}

.hero-content h1 {
    font-size: 2rem;
    margin-bottom: 1.3rem;
    font-weight: bold;
    color: #fff;
    text-shadow:
        -1px -1px 2px rgba(0, 0, 0, 0.7),
        1px -1px 2px rgba(0, 0, 0, 0.7),
        -1px 1px 2px rgba(0, 0, 0, 0.7),
        1px 1px 2px rgba(0, 0, 0, 0.7);
}

.hero-content h2 {
    font-family: 'Dancing Script', cursive;
    font-size: 1.8rem;
    margin-bottom: 0;
    font-style: italic;
    font-weight: bold;
    color: #fff;
    text-shadow:
        -1px -1px 2px rgba(0, 0, 0, 0.7),
        1px -1px 2px rgba(0, 0, 0, 0.7),
        -1px 1px 2px rgba(0, 0, 0, 0.7),
        1px 1px 2px rgba(0, 0, 0, 0.7);
}

/* =================== Galeri ======================= */
.gallery-container {
    display: flex;
    gap: 1rem;
}

.gallery-video {
    width: 65%;
    /* height: 100%; */
}

.gallery-album {
    width: 35%;
    display: flex;
    flex-direction: column;
    gap: 1.6rem;
    height: 100%;
}

.video-wrapper {
    width: 100%;
    height: 100%;
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.video-wrapper iframe {
    width: 100%;
    height: 100%;
    border: none;
    object-fit: cover;
}

.album-item {
    flex: 1;
    position: relative;
    overflow: hidden;
    border-radius: 0.75rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.album-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease, filter 0.4s ease;
}

.album-item:hover img {
    transform: scale(1.05);
    filter: contrast(1.2);
}

.album-label {
    position: absolute;
    top: 0;
    left: 0;
    background-color: #01a3a4;
    color: #fff;
    padding: 0.3rem 0.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    border-bottom-right-radius: 0.5rem;
    z-index: 2;
}

.album-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 0.5rem;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(15px);
    color: #fff;
    z-index: 1;
    text-align: center;
    transition: color 0.3s ease;
}

.album-overlay .title {
    font-weight: 600;
    font-size: 0.8rem;
    line-height: 1.2;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color 0.3s ease;
}

.album-item:hover .album-overlay .title {
    color: #fcd34d;
}

.video-card {
    display: block;
    overflow: hidden;
    transition: transform 0.5s ease, box-shadow 0.5s ease;
    position: relative;
}

.video-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.video-card img {
    transition: transform 0.5s ease;
}

.video-card:hover img {
    transform: scale(1.05);
}

/* Icon video di tengah */
.icon-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

/* Overlay bawah untuk judul */
.overlay-bottom {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 10px;
    background: rgba(0, 0, 0, 0.7);
    /* gelap */
    backdrop-filter: blur(6px);
    opacity: 0;
    transition: opacity 0.5s ease;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.video-card:hover .overlay-bottom {
    opacity: 1;
}

.overlay-bottom h5 {
    margin: 0;
    font-size: 0.8rem;
    line-height: 1.2;
    color: #fff;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

.file-card {
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 15px 20px;
    transition: 0.3s;
    width: 100%;
    background-color: #fff;
    display: flex;
    align-items: center;
    gap: 15px;
}

.file-card:hover {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transform: translateY(-3px);
}

.file-image {
    flex-shrink: 0;
    height: 70px;
    width: 70px;
    object-fit: contain;
}

.file-info {
    text-align: left;
}

.file-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 4px;
}

.file-date {
    color: #777;
    font-size: 0.9rem;
}

@media (max-width: 1200px) {
    .gallery-container {
        height: 360px;
    }
}

@media (max-width: 991.8px) {
    .gallery-container {
        height: 300px;
    }

    .hero-content h1 {
        font-size: 1.8rem;
    }

    .hero-content h2 {
        font-size: 1.6rem;
    }

    .custom-news-col-berita,
    .custom-news-col-pengumuman {
        flex: 1 1 100%;
    }
}

@media (max-width: 768px) {
    .logo-hero {
        width: 100px;
    }

    .header-box h2 {
        font-size: 26px;
    }

    .judul-detail {
        font-size: 1.3rem;
    }

    .hero-content h1 {
        font-size: 1.3rem;
        margin-bottom: 0.7rem;
    }

    .hero-content h2 {
        font-size: 1.2rem;
    }

    .tabs-wrapper {
        flex-direction: column;
    }

    .tabs-vertical {
        border-right: none;
        border-bottom: 2px solid #ddd;
        max-width: 100%;
    }

    .tab {
        border-radius: 5px;
        border-left: 4px solid transparent;
    }

    .tab.active {
        border-left: 4px solid #007bff;
        border-bottom: none;
    }

    .tab-content-wrapper {
        max-height: unset;
        padding: 20px;
    }

    .gallery-container {
        flex-direction: column;
        height: auto;
    }

    .gallery-video {
        width: 100%;
        height: 300px;
    }

    .gallery-album {
        width: 100%;
        height: auto;
    }
}

@media (max-width: 576px) {
    .gallery-video {
        width: 100%;
        height: 250px;
    }

    .judul-detail {
        font-size: 1.2rem;
    }

    .logo-hero {
        width: 75px;
    }

    .hero-content h1 {
        font-size: 1rem;
        margin-bottom: 0.8rem;
    }

    .hero-content h2 {
        font-size: 1rem;
    }

    .judul-informasi {
        text-align: center;
    }

    .judul-informasi::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .berita-grid {
        grid-template-columns: 1fr;
    }

    .file-card {
        flex-direction: column;
        text-align: center;
    }

    .file-info {
        text-align: center;
    }
}

@media (max-width: 375px) {
    .gallery-video {
        width: 100%;
        height: 200px;
    }

     .header-box h2 {
        font-size: 24px;
    }
}

/* ================== Link Terkait ================== */
.judul-link {
    position: relative;
    display: inline-block;
    font-size: 1.5rem;
    font-weight: 700;
    color: #01a3a4;
    padding-bottom: 8px;
    transition: all 0.3s ease;
}

.judul-link::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 75px;
    height: 4px;
    background-color: #01a3a4;
    transform: translateX(-50%);
    transition: width 0.5s ease;
    border-radius: 2px;
}

.judul-link:hover::after {
    width: 120px;
}



.swiper-slide {
    display: flex;
    justify-content: center;
}

.link-card {
    width: 100%;
    height: 180px;
    background: linear-gradient(145deg, #ffffff, #eef8f8);
    border-radius: 1rem;
    border: 1px solid #ddd;
    padding: 1.5rem 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.link-card img {
    max-height: 75px;
    max-width: 75px;
    object-fit: contain;
    margin-bottom: 0.75rem;
    transition: transform 0.3s ease, filter 0.3s ease;
    filter: brightness(0.95) contrast(97%);
}

.link-card .link-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: #333;
    text-align: center;
    z-index: 1;
}

/* Hover effect */
.link-card:hover {
    border-color: #b0c4de;
    background: linear-gradient(145deg, #ffffff, #f5f5f5);
}

.link-card:hover img {
    transform: translateY(-4px) scale(1.05);
    filter: brightness(1.1) contrast(105%);
}

/* Optional glow or shimmer effect — non-heavy */
.link-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center, rgba(255, 255, 255, 0.25), transparent 60%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 0;
}

.link-card:hover::before {
    opacity: 1;
}


/* =================== Footer ======================= */
.footer {
  font-size: 0.95rem;
  color: #ffffff;
}

.footer-main {
  background-color: #01a3a4;
  padding: 2rem 0;
}

.footer h5 {
  font-weight: 700;
  color: #ffffff;
}

.footer p {
  margin-bottom: 0.4rem;
  color: #eafafa;
}

/* Footer bawah */
.footer-bottom {
  background-color: #047e7e;
  color: #ffffff;
  font-size: 0.9rem;
}

.footer-table {
  width: 100%;
  border-collapse: collapse;
  background-color: #ffffff;
  color: #333;
  font-size: 0.9rem;
}

.footer-table tr {
  border-bottom: 1px solid #3ddfdf; /* Border tipis antar baris */
}

.footer-table td {
  padding: 0.3rem 0.75rem;
  border: none;
}

/* Striping baris */
.footer-table tr:nth-child(odd) {
  background-color: #d4f5f5;
}

.footer-table tr:nth-child(even) {
  background-color: #ffffff;
}

/* Rata kiri untuk kolom pertama */
.footer-table td:first-child {
  text-align: left;
}

/* Rata kanan untuk kolom kedua */
.footer-table td:last-child {
  text-align: right;
}

.footer .footer-list {
  list-style-type: disc;
  padding-left: 1.2rem;
}

.footer .footer-list li {
  margin-bottom: 0.6rem;
  line-height: 1.2rem;
  color: #f0f0f0;

}

.footer .footer-list li a {
  color: #f0f0f0;
  text-decoration: none;
  width: 100%;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.footer .footer-list li a:hover {
  text-decoration: underline;
  color: #ffffff;
}



