/* topheader */
.berita-container {
    position: relative;
    overflow: hidden;
    height: 26px;
    width: 240px;
}

.berita-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    flex-direction: column;
    animation: slideBerita 9s infinite ease-in-out;
}

.berita-container a {
    display: block;
    height: 26px;
    line-height: 26px;
    color: #0d6efd;
    font-weight: 600;
    text-decoration: none;
    text-transform: uppercase;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

@keyframes slideBerita {
    0%, 20% { transform: translateY(0); }
    33%, 53% { transform: translateY(-26px); }
    66%, 86% { transform: translateY(-52px); }
    100% { transform: translateY(0); }
}

@media (max-width: 576px) {
    .berita-container {
        width: 100%;
        height: 28px;
        margin: 0 auto;
    }

    .berita-wrapper {
        top: 0;
        left: 0;
        width: 100%;
        animation: slideBeritaHP 9s infinite ease-in-out;
    }

    .berita-container a {
        text-align: center;
        font-size: 14px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    @keyframes slideBeritaHP {
        0%, 20% { transform: translateY(0); }
        33%, 53% { transform: translateY(-28px); }
        66%, 86% { transform: translateY(-56px); }
        100% { transform: translateY(0); }
    }
}


/* responsive maps */
.responsive-maps {
    width: 700px;
    height: 450px;
}

.postingan .card {
    height: 500px;
    max-height: 500px;
}

.postingan .card-img-container {
    position: relative;
    overflow: hidden;
}

.postingan .card img {
    width: 100%;
    height: 180px;
    min-height: 180px;
    max-height: 180px;
}

.postingan .card-img-top {
    width: 100%;
    height: auto;
    transition: transform 0.6s ease, opacity 0.1s ease;
}

.postingan .card-img-container:hover .card-img-top {
    transform: scale(1.2);
    opacity: 0.9;
}

.postingan .card .none-file {
    padding: 20px;
}

.postingan .card .card-middle {
    padding: 2px 5px 0;
}

.postingan .card .card-body h5.card-title {
    font-family: "Fira Sans", sans-serif;
    font-weight: bold;
    font-style: normal;
    font-size: 20px;
    line-height: 1.2;
}

.postingan .card .card-body .card-text {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    max-height: calc(6 * 10em);
}

.features .col-md-12 .owl-carousel .postingpusat {
    height: 480px !important;
    max-height: 480px !important;
}

.col-md-12 .postingpusat .card-header img {
    width: 100%;
    height: 180px;
    max-height: 180px;
}

.col-md-12 .postingpusat .card-text {
    /* overflow: hidden;
    text-overflow: ellipsis;
    max-width: 250px;
    height: 150px; */

    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    max-height: calc(6 * 10em);
}

.postingan .card .card-body p {
    font-family: "Fira Sans", sans-serif;
    font-weight: 500;
    font-style: normal;
    font-size: 16px;
}

.postingan .card .card-body {
    margin-top: -5px;
}

/* lokasi */

.location {
    position: relative;
    width: 100%;
    /* Full width of the parent */
    padding-bottom: 56.25%;
    /* This gives a 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
}

.responsive-maps {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

header.header {
  width: 100%;
}

.header .logo img {
  max-height: 70px;
  height: auto;
  transition: all 0.3s ease;
}


@media only screen and (max-width: 768px) {
  .header .container-xl {
    max-width: 100%;
    padding-left: 0;
    padding-right: 0;
  }

  .header .logo {
    justify-content: center; 
    width: 100%;
  }

  .header .logo img {
    width: 100%;         
    max-width: 100%;     
    height: auto;         
    object-fit: contain;  
  }

  .header .sitename {
    display: none; 
  }
}

/* Untuk perangkat Android */
@media (max-width: 768px) {

    .responsive-maps {
        width: 100%;
        /* Menggunakan lebar penuh */
        height: 300px;
        /* Tinggi bisa disesuaikan */
    }
}

.linkhome {
    color: black;
}

@media (max-width: 768px) {
    .bg-1 {
        height: 10px !important;
        background-image: url("../img/lata.png");
        background-position: center;
        background-repeat: no-repeat;
        background-size: contain;
        background-size: 100% 100%;
    }

    .responsive-maps {
        width: 100%;
        height: 300px;
    }
}

.linkhome {
    color: black;
}

.waves {
    display: block;
    width: 100%;
    height: 60px;
    max-height: 60px;
    margin: 0;
    z-index: 5;
    bottom: 0;
    position: absolute;
    left: 0px;
    float: left;
}

.parallax>use {
    animation: move-forever 25s cubic-bezier(0.55, 0.5, 0.45, 0.5) infinite;

    &:nth-child(1) {
        animation-delay: -2s;
    }
}

.parallax>use:nth-child(1) {
    animation: move-forever2 8s linear infinite;

    &:nth-child(1) {
        animation-delay: -2s;
    }
}

.parallax>use:nth-child(2) {
    animation: move-forever3 6s linear infinite;

    &:nth-child(1) {
        animation-delay: -2s;
    }
}

.parallax>use:nth-child(3) {
    animation: move-forever3 6s linear infinite;

    &:nth-child(1) {
        animation-delay: -2s;
    }
}

.parallax>use:nth-child(4) {
    animation: move-forever4 4s linear infinite;

    &:nth-child(1) {
        animation-delay: -2s;
    }
}

@keyframes move-forever1 {
    0% {
        transform: translate(85px, 0%);
    }

    100% {
        transform: translate(-90px, 0%);
    }
}

@keyframes move-forever2 {
    0% {
        transform: translate(-90px, 0%);
    }

    100% {
        transform: translate(85px, 0%);
    }
}

@keyframes move-forever3 {
    0% {
        transform: translate(85px, 0%);
    }

    100% {
        transform: translate(-90px, 0%);
    }
}

@keyframes move-forever4 {
    0% {
        transform: translate(-90px, 0%);
    }

    100% {
        transform: translate(85px, 0%);
    }
}

/*Shrinking for mobile*/

@media (max-width: 768px) {
    .waves {
        height: 40px;
        min-height: 40px;
    }
}

.text iframe {
    width: 85%;
    height: 1123px;
    transition: transform 0.3s ease-in-out;
    transform: scale(1.2);
    transform-origin: top left;
    overflow: hidden;
    padding-bottom: 200px;
}


.modal .mowidth {
    width: 95%;
    margin: 0 auto;
}

.modaliklan {
    background-color: transparent !important;
}

.mowidth .modal-content {
    margin-top: 120px;
    background: none;
    /* background-color: rgba(0, 0, 0, 0.1) !important; */
}

.modal-body .btn-close-iklan {
    position: absolute;
    right: 25px;
    top: 25px;
}

.modal-body .image-content {
    width: 100%;
    height: 100px;
}

.modal-body .image-content img {
    width: 100%;
    height: 600px;
}

.modal-body .image-content .image-mobile {
    display: none;
}

@media (max-width: 767px) {}

/* Untuk perangkat Android */
@media (max-width: 768px) {

    .responsive-maps {
        width: 100%;
        /* Menggunakan lebar penuh */
        height: 300px;
        /* Tinggi bisa disesuaikan */
    }

    .modal-body .image-content .image-desktop {
        display: none;
    }

    .modal-body .image-content .image-mobile {
        display: block;
    }
}

.linkhome {
    color: black;
}


/* berita carousel */

.news-card {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
}

.news-card img {
    transition: transform 0.6s ease, opacity 0.3s ease;
    width: 100%;
    height: 400px;
    object-fit: cover;
    opacity: 0;
}

.news-card img.loaded {
    opacity: 1;
}

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

.overlay {
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0));
}

.news-card .overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    color: #fff;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0));
}

.news-card .overlay h3 {
    font-size: 22px;
    font-weight: 700;
    margin: 10px 0;
    text-transform: uppercase;
}

.news-card .overlay h3 a:hover {
    opacity: 0.8;
    text-decoration: underline;
}

.news-card .overlay small {
    display: block;
    font-size: 14px;
    color: #ddd;
}

.news-card .overlay .badge {
    background: #dc3545;
    font-size: 12px;
    font-weight: 600;
    padding: 5px 10px;
    border-radius: 4px;
}

/* Responsive */
@media (max-width: 768px) {
    .news-card img {
        height: 250px;
    }

    .news-card .overlay h3 {
        font-size: 16px;
    }

    .news-card .overlay small {
        font-size: 12px;
    }
}

/* aplikasi */

.section-services {
    position: relative;
}

.text-gradient {
    background: linear-gradient(90deg, #004aad, #00b4d8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.divider {
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #004aad, #00b4d8);
    border-radius: 2px;
    margin-top: 12px;
}

.service-card {
    background: #fff;
    border: 1px solid #eee;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.05);
    transition: all 0.35s ease;
    text-align: center;
    height: 150px;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
}

.service-logo {
    max-height: 80px;
    width: auto;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.service-card:hover .service-logo {
    transform: scale(1.05);
}

/* Nama Aplikasi */
.service-name {
    font-weight: 600;
    color: #333;
    font-size: 0.9rem;
    letter-spacing: 0.3px;
}

/* Responsif */
@media (max-width: 576px) {
    .service-logo {
        max-height: 80px;
    }

    .service-card {
        height: 130px;
    }
}

/* berita */

.news-card1 {
    position: relative;
    overflow: hidden;
    border-radius: 6px;
}

.news-card1 img {
    /* width: 100%;
    height: 192px;
    border-radius: 6px;
    display: block; */
     width: 100%;
    height: 192px;
    border-radius: 6px;
    display: block;
    object-fit: cover;
}

.news-card1 .overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    color: #fff;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0));
}

.news-card1 .overlay h3 {
    font-size: clamp(14px, 2vw, 18px);
    font-weight: 700;
    margin-bottom: 10px;
    color: #fff;
    font-family: "Nunito", sans-serif;
}

.news-card1 .overlay h3 a:hover {
    opacity: 0.8;
    text-decoration: underline;
}

.news-card1 .overlay small {
    display: block;
    font-size: 14px;
    color: #ddd;
}

.news-card1 .overlay .badge {
    background: #dc3545;
    font-size: 12px;
    font-weight: 600;
    padding: 5px 10px;
    border-radius: 4px;
}

@media only screen and (max-width: 768px) {
    .news-card1 img {
        height: auto; 
        aspect-ratio: 16 / 9;
    }

    .news-card1 .overlay h3 {
        font-size: 20px;
    }
    
}

.text-truncate-2 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.news-section-header {
    padding: 0rem 0rem 1rem;
    position: relative;
    overflow: hidden;
}

.news-section-header::before {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100px;
    height: 4px;
    border-radius: 2px;
    background: linear-gradient(90deg, #007bff, #00bcd4);
}

.news-title {
    font-family: "Poppins", sans-serif;
    font-size: 2rem;
    font-weight: 800;
    color: #111827;
    letter-spacing: -0.5px;
}

.news-subtitle {
    font-family: "Inter", sans-serif;
    color: #6b7280;
    font-size: 0.95rem;
    margin-top: 4px;
}

.see-all-btn {
    font-weight: 600;
    font-family: "Inter", sans-serif;
    display: inline-flex;
    align-items: center;
    transition: all 0.3s ease;
}

.see-all-btn:hover {
    transform: translateY(-2px);
}

/* Responsif */
@media (max-width: 768px) {
    .news-section-header {
        flex-direction: column;
        align-items: flex-start;
        padding: 1.2rem 1.5rem;
    }

    .see-all-btn {
        margin-top: 1rem;
        width: 100%;
        justify-content: center;
    }

    .news-title {
        font-size: 1.6rem;
    }

    .image-wrapper {
        height: 240px !important;
    }
}


.news-card3 {
    border-radius: 12px;
    transition: all 0.3s ease;
    overflow: hidden;
}

.news-card3:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}

.image-wrapper {
    height: 220px;
    overflow: hidden;
}

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

.news-card3:hover .news-img {
    transform: scale(1.05);
}

.news-card3 .badge {
    font-size: 0.75rem;
    letter-spacing: 0.5px;
}

.news-card3 h5 a {

    font-family: "Merriweather", "Nunito Sans", sans-serif;
    font-weight: 700;
    font-size: 1.2rem;
    line-height: 1.5;
    color: #212529;
    letter-spacing: 0.3px;
    text-decoration: none;
    transition: color 0.2s ease-in-out;
}

.news-card3 h5 a:hover {
    color: #0056b3 !important;
}

@media (max-width: 767px) {
    .image-wrapper {
        height: 180px;
    }

    .news-card3 h5 a {
        font-size: 1.1rem;
        line-height: 1.5;
    }
}


/* detail berita */
#detail-berita {
    font-family: "Poppins", sans-serif;
}

.herodetaipost {
    border-radius: 1rem;
}

.heroheader h1 {
    font-size: 1.8rem;
    line-height: 1.3;
}

.post-content img {
    max-width: 100%;
    border-radius: 0.75rem;
    margin: 1rem 0;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.hover-zoom {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-zoom:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.main-news-image {
    max-height: 500px;
    width: 100%;
    object-fit: cover;
    display: block;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .heroheader h1 {
        font-size: 1.5rem;
    }

    .main-news-image {
        max-height: 300px;
    }
}

.list-group-item {
    transition: all 0.2s ease-in-out;
    border: none;
    border-bottom: 1px solid #f1f1f1;
}

.list-group-item:hover {
    background-color: #f8f9fa;
    transform: translateX(4px);
}

.hover-text:hover {
    color: #0d6efd;
}
