/* Hero Slider - Boxed */
#landingHero {
    padding: 0;
    margin-bottom: 20px;
}

#landingHero .container {
    padding: 0;
    border-radius: 8px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.39);
}

.section-animation {
    margin-top: 100px;
}

.img-animation {
    width: 100%;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.hero-slider {
    position: relative;
    height: 500px;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.hero-slider .swiper-slide {
    position: relative;
    height: 500px;
}

.hero-slider .swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-slider .slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.3),
        rgba(0, 0, 0, 0.6)
    );
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-slider .slide-content {
    text-align: center;
    color: var(--white);
    padding: 20px;
    max-width: 800px;
}

.hero-slider .slide-content h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-slider .slide-content p {
    font-size: 1.1rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

/* Layanan Grid - Tangerang Kota Style */
.layanan-kota {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 15px;
}

@media (max-width: 1200px) {
    .layanan-kota {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 768px) {
    .layanan-kota {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }

    .section-animation {
        margin-top: 90px;
    }
}

@media (max-width: 480px) {
    .layanan-kota {
        grid-template-columns: repeat(2, 1fr);
    }

    .section-animation {
        margin-top: 75px;
    }
}

.layanan-item {
    text-align: center;
    text-decoration: none;
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}

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

.layanan-item-box {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px 15px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    margin-bottom: 10px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100px;
    border: 1px solid #e0e0e0;
}

.layanan-item:hover .layanan-item-box {
    box-shadow: 0 4px 16px rgba(0, 153, 150, 0.15);
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.layanan-item-box img {
    width: 85px;
    height: 85px;
    object-fit: contain;
    transition: filter 0.3s ease;
}

/* .layanan-item:hover .layanan-item-box img {
    filter: brightness(0) invert(1);
} */

.layanan-item-box i {
    font-size: 3rem;
    color: var(--primary-color);
    transition: color 0.3s ease;
}

.layanan-item:hover .layanan-item-box i {
    color: var(--white);
}

.layanan-item-desc {
    color: var(--text-dark);
    font-size: 0.85rem;
    font-weight: 500;
    text-align: center;
    line-height: 1.3;
}

.layanan-item:hover .layanan-item-desc {
    color: var(--primary-color);
}

/* Berita Section - Carousel Style */
.berita-header-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.berita-carousel-nav {
    display: flex;
    gap: 10px;
}

.berita-nav-btn {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: none;
    background: var(--white);
    color: var(--primary-color);
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.berita-nav-btn:hover {
    background: var(--primary-color);
    color: var(--white);
    box-shadow: 0 4px 12px rgba(0, 153, 150, 0.3);
    transform: translateY(-2px);
}

.berita-carousel-wrapper {
    position: relative;
    overflow: hidden;
    margin-bottom: 20px;
}

.berita-carousel {
    display: flex;
    gap: 15px;
    transition: transform 0.5s ease;
}

.berita-card {
    flex: 0 0 calc((100% - 40px) / 3);
    min-width: calc((100% - 40px) / 3);
}

.berita-card-link {
    text-decoration: none;
    display: block;
}

.berita-card-image {
    position: relative;
    aspect-ratio: 1 / 1;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.berita-card-image:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    transform: translateY(-5px);
}

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

.berita-card-image:hover img {
    transform: scale(1.1);
}

.berita-card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.95) 0%,
        rgba(0, 0, 0, 0.7) 50%,
        transparent 100%
    );
    padding: 30px 20px 20px;
    transition: all 0.3s ease;
}

.berita-card-content {
    color: var(--white);
}

.berita-card-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--white);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.berita-card-date {
    font-size: 0.85rem;
    opacity: 0.9;
    display: flex;
    align-items: center;
}

/* GPR Kominfo Section */
.gpr-kominfo-wrapper {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 12px;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

#gpr-kominfo-widget-container {
    width: 100%;
}

/* Responsive Berita Carousel */
@media (max-width: 768px) {
    .berita-header-wrapper {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .berita-carousel {
        gap: 15px;
    }

    .berita-card {
        flex: 0 0 calc((100% - 15px) / 2);
        min-width: calc((100% - 15px) / 2);
    }

    .berita-card-title {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .berita-carousel {
        gap: 15px;
    }

    .berita-card {
        flex: 0 0 100%;
        min-width: 100%;
    }
}

/* Layanan Card */
.layanan-card-wrapper {
    margin-top: 30px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
}

.layanan-card-wrapper h5 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.layanan-card-item {
    margin-bottom: 10px;
}

.layanan-card-item a {
    display: block;
    padding: 10px 15px;
    background: var(--white);
    border-radius: 6px;
    text-decoration: none;
    color: var(--text-dark);
    font-size: 0.9rem;
    transition: all 0.3s ease;
    border-left: 3px solid var(--primary-color);
}

.layanan-card-item a:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: translateX(5px);
}

/* News Card */
.news-card {
    border: none;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    height: 100%;
}

.news-card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-5px);
}

.news-card .card-img-top {
    height: 200px;
    object-fit: cover;
}

.news-card .card-body {
    padding: 20px;
}

.news-card .card-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Contact Info Card */
.contact-info-card {
    border: none;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.contact-info-card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-5px);
}

.contact-info-card .contact-icon {
    width: 60px;
    height: 60px;
    background: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin: 0 auto 20px;
}

/* Buttons */
.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    padding: 12px 30px;
    font-weight: 500;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 153, 150, 0.3);
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
    padding: 10px 25px;
    font-weight: 500;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--white);
}

/* Calendar Section */
.calendar-wrapper {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.calendar-header h4 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--primary-color);
    margin: 0;
}

.calendar-nav {
    display: flex;
    gap: 10px;
}

.calendar-nav button {
    background: var(--primary-color);
    color: var(--white);
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.calendar-nav button:hover {
    background: var(--primary-dark);
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 5px;
}

.calendar-day-header {
    text-align: center;
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--text-muted);
    padding: 10px 5px;
}

.calendar-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--white);
    border-radius: 4px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.calendar-day:hover {
    background: var(--primary-light);
    color: var(--white);
}

.calendar-day.today {
    background: var(--primary-color);
    color: var(--white);
    font-weight: 600;
}

.calendar-day.has-event {
    background: #e8f5f5;
    color: var(--primary-color);
    font-weight: 600;
}

.calendar-day.empty {
    background: transparent;
    cursor: default;
}

.event-list {
    margin-top: 20px;
}

.event-item {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 6px;
    margin-bottom: 10px;
    border-left: 4px solid var(--primary-color);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.event-item h6 {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 5px;
}

.event-item p {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin: 0;
}

/* Slick Slider Customization */
.slick-prev,
.slick-next {
    width: 40px;
    height: 40px;
    background: var(--primary-color) !important;
    border-radius: 50%;
    z-index: 10;
}

.slick-prev {
    left: 10px;
}

.slick-next {
    right: 10px;
}

.slick-prev:hover,
.slick-next:hover {
    background: var(--primary-dark) !important;
}

.slick-prev:before,
.slick-next:before {
    font-size: 20px;
    color: var(--white);
}

.slick-dots {
    bottom: 20px;
}

.slick-dots li button:before {
    font-size: 12px;
    color: var(--white);
    opacity: 0.5;
}

.slick-dots li.slick-active button:before {
    color: var(--white);
    opacity: 1;
}

/* Slider Berita Utama Specific */
.slider-berita-utama {
    border-radius: 12px;
    overflow: hidden;
}

.slider-berita-utama .slick-list,
.slider-berita-utama .slick-track {
    height: 100%;
}

/* Swiper Customization */
.swiper-button-next,
.swiper-button-prev {
    color: var(--primary-color);
    background: var(--white);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    box-shadow: var(--shadow);
}

.swiper-button-next:after,
.swiper-button-prev:after {
    font-size: 20px;
}

.swiper-pagination-bullet {
    background: var(--primary-color);
}

.swiper-pagination-bullet-active {
    background: var(--primary-color);
}

/* Map Container */
.map-container {
    height: 100%;
    min-height: 400px;
    border-radius: 12px;
    overflow: hidden;
}

.map-container iframe {
    width: 100%;
    height: 100%;
}

/* Testimonial Card */
.testimonial-card {
    border: none;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.testimonial-card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-5px);
}

/* Responsive */
@media (max-width: 768px) {
    .hero-slider {
        height: 300px;
    }

    .hero-slider .swiper-slide {
        height: 300px;
    }

    .hero-slider .slide-content h1 {
        font-size: 1.5rem;
    }

    .title1 {
        font-size: 1.5rem;
    }
}

/* Utility Classes */
.text-primary {
    color: var(--primary-color) !important;
}
