/* ===== COMMON STYLES ===== */
body {
    background-color: #f8f9fa;
    font-family: 'Open Sans', sans-serif;
}

/* ===== BERANDA PAGE STYLES ===== */
/* Header & Hero Section */
.wave-shape {
    height: 70px;
    pointer-events: none;
}

.text-white-80 {
    color: rgba(255, 255, 255, 0.9);
}

/* Feature Cards */
.feature-card {
    border-radius: 12px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background: linear-gradient(to bottom, #ffffff, #f8f9fa);
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1) !important;
}

.icon-wrapper {
    transition: transform 0.3s ease;
}

.feature-card:hover .icon-wrapper {
    transform: scale(1.1);
}

/* Testimonial Section */
.testimonial-card {
    border-radius: 16px;
    transition: transform 0.3s ease;
}

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

.carousel-indicators button {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #0b5e91;
    opacity: 0.5;
    transition: all 0.3s ease;
    margin: 0 5px;
}

.carousel-indicators .active {
    background-color: #baa971;
    opacity: 1;
    transform: scale(1.2);
}

.avatar {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Article Cards */
.article-card {
    background-color: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    height: 100%;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.article-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.article-image {
    position: relative;
    overflow: hidden;
    height: 220px;
}

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

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

.article-category {
    position: absolute;
    top: 15px;
    left: 15px;
    z-index: 2;
}

.article-category span {
    background-color: #0b5e91;
    color: white;
    padding: 6px 14px;
    border-radius: 30px;
    font-size: 0.75rem;
    font-weight: 600;
    display: inline-block;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.article-content {
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.article-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #0b5e91;
    margin-bottom: 0.75rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-meta {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 1rem;
    font-size: 0.85rem;
    color: #6c757d;
}

.meta-item {
    display: flex;
    align-items: center;
    margin-right: 1rem;
    margin-bottom: 0.5rem;
}

.article-excerpt {
    color: #6c757d;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.read-more {
    color: #0b5e91;
    font-weight: 600;
    text-decoration: none;
    display: flex;
    align-items: center;
    margin-top: auto;
    transition: all 0.2s ease;
}

.read-more i {
    margin-left: 0.5rem;
    transition: transform 0.2s ease;
}

.read-more:hover {
    color: #083e61;
}

.read-more:hover i {
    transform: translateX(4px);
}

/* ===== ARTIKEL PAGE STYLES ===== */
.object-fit-cover {
    object-fit: cover;
    /* Gambar akan menyesuaikan tanpa distorsi */
    height: 100%;
    /* Tinggi gambar mengikuti tinggi container */
}

/* Styling untuk artikel terbaru */
.card {
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

/* ===== ARTIKEL DETAIL PAGE STYLES ===== */
/* Article Styling */
.article-section {
    background-color: #f8f9fa;
    background-image: radial-gradient(#0d6efd10 1px, transparent 1px);
    background-size: 20px 20px;
}

.article-container {
    border-left: 5px solid #0b5e91;
}

.content-text {
    color: #444;
}

.content-text p {
    margin-bottom: 1.5rem;
}

/* Sidebar Styling */
.icon-circle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.social-icon {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background-color: #f8f9fa;
    color: #0b5e91;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-icon:hover {
    background-color: #0b5e91;
    color: white;
    transform: translateY(-3px);
}

/* Breadcrumb Styling */
.breadcrumb-item+.breadcrumb-item::before {
    content: "›";
    font-size: 1.2rem;
    line-height: 1;
    vertical-align: middle;
}

/* ===== BERITA PAGE STYLES ===== */
/* News Section Styling */
.news-section {
    background-color: #f8f9fa;
    background-image: radial-gradient(#0d6efd10 1px, transparent 1px);
    background-size: 20px 20px;
}

/* News Card Styling */
.news-card {
    background-color: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    height: 100%;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    border-top: 4px solid #0b5e91;
}

.news-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.news-card-header {
    display: flex;
    justify-content: space-between;
    padding: 1rem 1.5rem;
    background-color: #f8f9fa;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.news-source, .news-date {
    display: flex;
    align-items: center;
    font-size: 0.85rem;
    color: #6c757d;
}

.news-source i, .news-date i {
    margin-right: 0.5rem;
    font-size: 0.9rem;
}

.news-card-body {
    padding: 1.5rem;
    flex-grow: 1;
}

.news-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #212529;
    margin-bottom: 1rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-summary {
    color: #6c757d;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-card-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    background-color: #f8f9fa;
}

.news-link {
    color: #0b5e91;
    font-weight: 600;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.2s ease;
}

.news-link i {
    transition: transform 0.2s ease;
}

.news-link:hover {
    color: #084c75;
}

.news-link:hover i {
    transform: translateX(4px);
}

/* Pagination Styling */
.pagination {
    gap: 0.5rem;
}

.page-item.active .page-link {
    background-color: #0b5e91;
    border-color: #0b5e91;
}

.page-link {
    color: #0b5e91;
    border-radius: 6px;
    border: none;
    padding: 0.5rem 0.75rem;
    font-weight: 500;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.page-link:hover {
    background-color: #e9ecef;
    color: #084c75;
}

/* Empty State */
.empty-state {
    background-color: #ffffff;
    border-radius: 12px;
    padding: 3rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

/* ===== PENGINGAT PAGE STYLES ===== */
/* General Styling */
.feature {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}


/* Custom Header Styling */
.header-custom {
    background-color: #0B5E91;
    overflow: hidden;
}

.header-icon {
    font-size: 4rem;
    color: white;
}

.header-icon i {
    font-size: 3rem;
    color: #0B5E91;
}

.header-shapes {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
}

.shape {
    position: absolute;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

.shape-1 {
    width: 100px;
    height: 100px;
    top: 20px;
    right: 50px;
}

.shape-2 {
    width: 150px;
    height: 150px;
    bottom: -50px;
    left: 30px;
}

.shape-3 {
    width: 80px;
    height: 80px;
    top: 80px;
    left: 80px;
}

/* Form Controls */
.form-control, .form-select {
    border: 1px solid #dee2e6;
    padding: 0.75rem 1rem;
    height: calc(3.5rem + 2px);
    font-size: 1rem;
    transition: all 0.2s ease-in-out;
}

.form-control:focus, .form-select:focus {
    border-color: #86b7fe;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

.form-floating>label {
    padding: 0.75rem 1rem;
}

/* Obat Card Styling */
.obat-card {
    border: 1px solid #dee2e6;
    border-radius: 0.5rem;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    background-color: #fff;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    position: relative;
    transition: all 0.3s ease;
}

.obat-card:hover {
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.obat-number {
    position: absolute;
    top: -10px;
    left: -10px;
    width: 30px;
    height: 30px;
    background-color: #0d6efd;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.remove-obat {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    color: #dc3545;
    font-size: 1.25rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.remove-obat:hover {
    transform: scale(1.2);
}

/* Button Styling */
.btn-submit {
    border-radius: 50px;
    font-weight: bold;
    box-shadow: 0 4px 6px rgba(13, 110, 253, 0.25);
    transition: all 0.3s ease;
}

.btn-submit:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(13, 110, 253, 0.3);
}

.btn-submit:active {
    transform: translateY(0);
}

/* Pop-up Styling */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    backdrop-filter: blur(5px);
}

.popup-content {
    background: #fff;
    border-radius: 1rem;
    padding: 2.5rem;
    width: 90%;
    max-width: 450px;
    box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.175);
    animation: fadeInUp 0.4s ease-out;
}

.popup-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #6c757d;
    cursor: pointer;
    transition: all 0.2s;
}

.popup-close:hover {
    color: #0b5e91;
    transform: rotate(90deg);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== TANYA JAWAB PAGE STYLES ===== */
/* FAQ Section Styling */
.faq-section {
    background-color: #f8f9fa;
    background-image: radial-gradient(#0d6efd10 1px, transparent 1px);
    background-size: 20px 20px;
}

/* Header Icon */
.faq-icon {
    width: 80px;
    height: 80px;
    background-color: #0b5e91;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    font-size: 2.5rem;
}

/* Search Bar */
.faq-search .input-group {
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
    border-radius: 50px;
    overflow: hidden;
}

.faq-search .input-group-text,
.faq-search .form-control {
    border-color: #e9ecef;
    padding: 0.75rem 1.25rem;
}

.faq-search .form-control:focus {
    box-shadow: none;
}

/* FAQ Categories */
.faq-categories {
    overflow-x: auto;
    white-space: nowrap;
    padding-bottom: 5px;
}

.faq-categories .nav-pills {
    display: inline-flex;
}

.faq-categories .nav-link {
    color: #495057;
    background-color: #f8f9fa;
    border-radius: 50px;
    padding: 0.5rem 1.25rem;
    margin-right: 0.5rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.faq-categories .nav-link:hover {
    background-color: #e9ecef;
}

.faq-categories .nav-link.active {
    background-color: #0b5e91;
    color: white;
}

/* FAQ Group */
.faq-group {
    background-color: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.faq-group-header {
    margin-bottom: 1.5rem;
}

/* Custom Accordion */
.custom-accordion .accordion-item {
    border: none;
    background-color: transparent;
    margin-bottom: 1rem;
}

.custom-accordion .accordion-button {
    background-color: #f8f9fa;
    border-radius: 8px !important;
    font-weight: 600;
    padding: 1.25rem;
    color: #212529;
    box-shadow: none;
}

.custom-accordion .accordion-button:not(.collapsed) {
    background-color: #0b5e91;
    color: white;
}

.custom-accordion .accordion-button:focus {
    box-shadow: none;
}

.custom-accordion .accordion-button::after {
    background-size: 1.25rem;
    width: 1.25rem;
    height: 1.25rem;
}

.custom-accordion .accordion-body {
    padding: 1.5rem;
    background-color: #f8f9fa;
    border-radius: 0 0 8px 8px;
    font-size: 1rem;
    line-height: 1.7;
}

/* Still Have Questions */
.still-have-questions {
    background-color: #e9f2ff;
    border-left: 5px solid #0b5e91;
}

/* Quick Links */
.quick-links {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.quick-link {
    display: flex;
    align-items: center;
    padding: 0.75rem;
    background-color: #f8f9fa;
    border-radius: 8px;
    color: #212529;
    text-decoration: none;
    transition: all 0.2s ease;
}

.quick-link:hover {
    background-color: #e9ecef;
    transform: translateX(5px);
}

.quick-link i {
    margin-right: 0.75rem;
    color: #0b5e91;
    font-size: 1.1rem;
}

/* ===== UNDUHAN PAGES STYLES ===== */
/* Download Section Styling */
.download-section {
    background-color: #f8f9fa;
    background-image: radial-gradient(#0d6efd10 1px, transparent 1px);
    background-size: 20px 20px;
}

/* Header Icon */
.download-icon {
    width: 80px;
    height: 80px;
    background-color: #0b5e91;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    font-size: 2.5rem;
}

/* Custom Breadcrumb */
.custom-breadcrumb {
    background-color: white;
    padding: 0.75rem 1.25rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    margin-bottom: 0;
}

.custom-breadcrumb .breadcrumb-item a {
    color: #0b5e91;
    text-decoration: none;
    transition: color 0.2s ease;
}

.custom-breadcrumb .breadcrumb-item a:hover {
    color: #084c75;
}

.custom-breadcrumb .breadcrumb-item.active {
    color: #6c757d;
}

.custom-breadcrumb .breadcrumb-item+.breadcrumb-item::before {
    content: "›";
    color: #6c757d;
}

/* Download Card Styling */
.download-card {
    background-color: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    height: 100%;
    transition: all 0.3s ease;
}

.download-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.download-card-image {
    position: relative;
    overflow: hidden;
    height: 240px;
}

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

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

.download-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(11, 94, 145, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.download-card:hover .download-overlay {
    opacity: 1;
}

.download-btn {
    width: 60px;
    height: 60px;
    background-color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0b5e91;
    font-size: 1.5rem;
    transform: scale(0.8);
    opacity: 0;
    transition: all 0.3s ease 0.1s;
}

.download-card:hover .download-btn {
    transform: scale(1);
    opacity: 1;
}

.download-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: #0b5e91;
    color: white;
    padding: 0.35rem 0.75rem;
    border-radius: 30px;
    font-size: 0.75rem;
    font-weight: 600;
    z-index: 2;
}

.download-card-content {
    padding: 1.5rem;
}

.download-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #212529;
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.download-description {
    color: #6c757d;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.download-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #e9ecef;
    padding-top: 1rem;
}

.download-info {
    display: flex;
    gap: 1rem;
}

.download-type, .download-size {
    display: flex;
    align-items: center;
    color: #6c757d;
    font-size: 0.85rem;
}

.download-type i, .download-size i {
    margin-right: 0.35rem;
}

.btn-download {
    display: flex;
    align-items: center;
    background-color: #0b5e91;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.btn-download:hover {
    background-color: #084c75;
    color: white;
}

.btn-download i {
    margin-left: 0.5rem;
    transition: transform 0.2s ease;
}

.btn-download:hover i {
    transform: translateY(2px);
}

/* ===== RESPONSIVE STYLES ===== */
/* Responsive Adjustments for all pages */
@media (max-width: 768px) {

    /* Artikel Detail */
    .article-container {
        padding: 1.5rem !important;
    }

    .article-header h1 {
        font-size: 1.75rem;
    }

    /* Berita */
    .news-card-header {
        flex-direction: column;
        gap: 0.5rem;
    }

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

    .news-summary {
        -webkit-line-clamp: 2;
    }

    /* Pengingat */
    .card-header {
        padding: 2rem 1rem;
    }

    .card-body {
        padding: 1.5rem;
    }

    .popup-content {
        padding: 1.5rem;
    }

    /* Tanya Jawab */
    .faq-group {
        padding: 1.5rem;
    }

    .custom-accordion .accordion-button {
        padding: 1rem;
        font-size: 0.95rem;
    }

    .custom-accordion .accordion-body {
        padding: 1rem;
    }

    /* Unduhan */
    .download-card-image {
        height: 180px;
    }

    .download-title {
        font-size: 1.1rem;
    }

    .download-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .btn-download {
        width: 100%;
        justify-content: center;
    }

    /* Beranda */
    .article-image {
        height: 180px;
    }
}

@media (max-width: 576px) {
    #headerCarousel .carousel-inner {
        height: 200px !important;
    }

    #headerCarousel img {
        height: 200px !important;
    }
}