:root {
    --primary-color: #005293;
    --secondary-color: #00a859;
    --accent-color: #a6ffcb;
    --light-color: #f8f9fa;
    --dark-color: #343a40;
    --gradient-primary: linear-gradient(135deg, #005293 0%, #00a859 100%);
    --gradient-overlay: linear-gradient(
        135deg,
        rgba(0, 82, 147, 0.85),
        rgba(0, 168, 89, 0.8)
    );
}

body {
    font-family: "Inter", sans-serif;
    overflow-x: hidden;
}

/* Hero Section */
.hero-cover {
    position: relative;
    min-height: 100vh;
    background: url("../../../dewi/assets/img/back5.png") no-repeat center
        center;
    background-size: cover;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    padding-top: 0;
}

.hero-cover .overlay {
    position: absolute;
    inset: 0;
    background: var(--gradient-overlay);
    z-index: 0;
}

.hero-cover .container {
    position: relative;
    z-index: 1;
    padding-top: 2rem;
}

.hero-title {
    font-family: "Raleway", sans-serif;
    font-weight: 700;
    margin-bottom: 2rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.text-highlight {
    color: var(--accent-color);
    position: relative;
    display: inline-block;
}

.text-highlight::after {
    content: "";
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--accent-color);
    border-radius: 2px;
}

/* Card Styles */
.cards-container {
    margin-top: 2rem;
}

.square-card {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(12px);
    border-radius: 16px;
    padding: 1.5rem;
    text-align: center;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    transition: all 0.4s ease;
    height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.square-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.square-card:hover {
    transform: translateY(-10px) scale(1.03);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.25);
    border-color: rgba(255, 255, 255, 0.4);
}

.square-card:hover::before {
    opacity: 0.2;
}

.square-card img {
    width: 120px;
    height: 120px;
    object-fit: contain;
    margin-bottom: 15px;
    transition: transform 0.3s ease;
    /* filter: brightness(0) invert(1); */
}

.square-card:hover img {
    transform: scale(1.1);
}

.square-card .card-footer {
    background: transparent;
    border: none;
    font-size: 0.9rem;
    color: #fff;
    font-weight: 500;
    padding: 0;
}

/* Animations */
@keyframes fadeDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-title {
    animation: fadeDown 1s ease;
}

/* Modal Styles */
.modal-content {
    border-radius: 16px;
    border: none;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.modal-header {
    background: var(--gradient-primary);
    color: white;
    border-bottom: none;
    padding: 20px 25px;
}

.modal-title {
    font-weight: 600;
}

.btn-close {
    filter: invert(1);
}

.puskesmas-card {
    border-radius: 12px;
    transition: all 0.3s ease;
    height: 100%;
    border: none;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    align-items: center;
    padding: 1rem;
    background: white;
    cursor: pointer;
}

.puskesmas-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.15);
}

.puskesmas-icon-img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    margin-bottom: 15px;
}

.puskesmas-name {
    font-weight: 600;
    color: var(--primary-color);
    font-size: 0.9rem;
    margin-bottom: 5px;
}

.puskesmas-address {
    font-size: 0.75rem;
    color: #6c757d;
}

.modal-body {
    padding: 25px;
}

.search-container {
    position: relative;
    margin-bottom: 20px;
}

.search-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #6c757d;
}

.search-input {
    padding-left: 45px;
    border-radius: 50px;
    border: 1px solid #ced4da;
}

.modal-footer {
    border-top: 1px solid #e9ecef;
    padding: 15px 25px;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-title {
        font-size: 1.8rem;
    }

    .square-card {
        height: 150px;
        padding: 1rem;
    }

    .square-card img {
        width: 60px;
        height: 60px;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 1.5rem;
    }

    .square-card {
        height: 140px;
        border-radius: 12px;
    }

    .square-card img {
        width: 70px;
        height: 70px;
    }

    .puskesmas-icon-img {
        width: 60px;
        height: 60px;
    }
}


/* Aplikasi Kerja Digital Modal Styles */
.aplikasi-card {
    border-radius: 12px;
    transition: all 0.3s ease;
    height: 100%;
    border: none;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    align-items: center;
    padding: 1.5rem 1rem;
    background: white;
    cursor: pointer;
    border: 1px solid transparent;
    text-decoration: none;
    color: inherit;
    display: block;
}

.aplikasi-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.15);
    border-color: var(--primary-color);
    text-decoration: none;
    color: inherit;
}

.aplikasi-icon {
    width: 140px;
    height: 90px;
    object-fit: contain;
    margin-bottom: 15px;
    transition: transform 0.3s ease;
    border-radius: 7%;
}

.aplikasi-card:hover .aplikasi-icon {
    transform: scale(1.1);
}

.aplikasi-name {
    font-weight: 600;
    color: var(--primary-color);
    font-size: 0.9rem;
    margin-bottom: 5px;
    line-height: 1.2;
}

.aplikasi-desc {
    font-size: 0.75rem;
    color: #6c757d;
    line-height: 1.3;
}

/* Tab Styles */
.nav-tabs {
    border-bottom: 2px solid #e9ecef;
}

.nav-tabs .nav-link {
    border: none;
    color: #6c757d;
    font-weight: 500;
    padding: 0.75rem 1.5rem;
    border-radius: 8px 8px 0 0;
    margin-right: 5px;
}

.nav-tabs .nav-link:hover {
    border: none;
    color: var(--primary-color);
}

.nav-tabs .nav-link.active {
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px 8px 0 0;
}

.tab-content {
    min-height: 300px;
}

/* Search functionality for aplikasi */
#searchAplikasi {
    padding-left: 45px;
    border-radius: 50px;
    border: 1px solid #ced4da;
}
