/* File: assets/css/style.css
   Deskripsi: Mengatur desain global website dengan nuansa biru dan abu-abu soft.
*/

:root {
    --primary-blue: #007BFF;       /* Biru utama */
    --soft-blue: #E3F2FD;          /* Biru sangat muda untuk background */
    --soft-grey: #F4F7F6;          /* Abu-abu sangat muda */
    --dark-grey: #4A4A4A;          /* Warna teks utama */
    --white: #FFFFFF;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: var(--soft-grey);
    color: var(--dark-grey);
    line-height: 1.6;
}

/* --- NAVBAR STICKY --- */
.navbar {
    position: sticky;
    top: 0;
    background-color: var(--white);
    padding: 1rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    z-index: 1000;
}

.navbar .logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-blue);
    text-decoration: none;
}

.nav-links {
    list-style: none;
    display: flex;
}

.nav-links li {
    margin-left: 20px;
}

.nav-links a {
    text-decoration: none;
    color: var(--dark-grey);
    font-weight: 500;
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--primary-blue);
}

/* --- HERO SECTION --- */
.hero {
    height: auto;
    min-height: 80vh;
    background: linear-gradient(135deg, var(--soft-blue) 0%, #ffffff 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 60px 20px;
    position: relative;
    overflow: hidden;
}

.hero-decorations {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
    top: 0;
    left: 0;
}

.decoration {
    position: absolute;
    animation: float 6s ease-in-out infinite;
}

.decoration-1 {
    animation-delay: 0s;
}

.decoration-2 {
    animation-delay: 1s;
}

.decoration-3 {
    animation-delay: 2s;
}

.decoration-4 {
    animation-delay: 3s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(5deg);
    }
}

.hero-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    max-width: 1200px;
    width: 100%;
    position: relative;
    z-index: 10;
    align-items: center;
}

.hero-content {
    padding: 40px 30px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 30px;
    box-shadow: 0 24px 70px rgba(0, 123, 255, 0.12);
    border: 1px solid rgba(0, 123, 255, 0.12);
    backdrop-filter: blur(10px);
    text-align: center;
}

.hero-icon-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary-blue) 0%, #0056b3 100%);
    border-radius: 50%;
    color: white;
    font-size: 36px;
    margin: 0 auto 25px;
    animation: bounceIn 0.8s ease;
    box-shadow: 0 8px 25px rgba(0, 123, 255, 0.3);
    display: flex;
    justify-content: center;
}

.hero h1 {
    font-size: 2.4rem;
    color: var(--primary-blue);
    margin-bottom: 15px;
    animation: fadeInDown 1s ease;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.hero-divider {
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-blue), #e3f2fd);
    border-radius: 2px;
    margin: 20px auto;
    animation: slideInCenter 1.2s ease;
}

.hero-main-text {
    font-size: 1.15rem;
    color: var(--primary-blue);
    font-weight: 600;
    margin-bottom: 15px;
    animation: fadeInUp 1s ease;
}

.hero p {
    font-size: 0.95rem;
    max-width: 100%;
    margin: 0 0 15px 0;
    line-height: 1.85;
    animation: fadeInUp 1.2s ease;
    color: #555;
}

.hero-subtitle {
    font-size: 0.9rem;
    color: #666;
    margin: 0 0 30px 0;
    line-height: 1.8;
    animation: fadeInUp 1.4s ease;
}

.hero-features {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin: 30px 0 35px 0;
    animation: fadeInUp 1.5s ease;
}

.feature-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: linear-gradient(135deg, var(--soft-blue) 0%, #d0e8f9 100%);
    color: var(--primary-blue);
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    border: 1px solid var(--primary-blue)15;
}

.feature-pill i {
    color: #28a745;
    font-size: 0.85rem;
}

.btn-hero {
    animation: fadeInUp 1.6s ease;
    box-shadow: 0 8px 25px rgba(0, 123, 255, 0.25);
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-hero:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 35px rgba(0, 123, 255, 0.35);
}

.hero-info-cards {
    display: flex;
    flex-direction: column;
    gap: 20px;
    animation: fadeInRight 1.2s ease;
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.hero-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 25px;
    box-shadow: 0 8px 30px rgba(0, 123, 255, 0.08);
    border: 1px solid rgba(0, 123, 255, 0.08);
    text-align: left;
    transition: all 0.3s ease;
}

.hero-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(0, 123, 255, 0.15);
}

.hero-card h3 {
    font-size: 1.1rem;
    color: var(--primary-blue);
    margin: 0 0 15px 0;
    font-weight: 700;
    display: flex;
    align-items: center;
}

.hero-card ol,
.hero-card ul {
    margin: 0;
    padding-left: 20px;
    color: #555;
}

.hero-card li {
    font-size: 0.9rem;
    margin-bottom: 10px;
    line-height: 1.6;
    color: #666;
}

.hero-card li:last-child {
    margin-bottom: 0;
}

/* Responsive */
@media (max-width: 1024px) {
    .hero-wrapper {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero-content {
        padding: 30px 25px;
    }
}

@media (max-width: 768px) {
    .hero {
        min-height: auto;
        padding: 40px 15px;
    }
    
    .hero-wrapper {
        gap: 20px;
    }
    
    .hero h1 {
        font-size: 1.8rem;
    }
    
    .hero-info-cards {
        gap: 15px;
    }
    
    .feature-pill {
        font-size: 0.75rem;
        padding: 6px 12px;
    }
}

/* --- BUTTONS --- */
.btn {
    padding: 12px 30px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: bold;
    transition: var(--transition);
    display: inline-block;
}

.btn-primary {
    background-color: var(--primary-blue);
    color: var(--white);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,123,255,0.3);
}

/* --- ANIMATIONS --- */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: scale(0.3);
    }
    50% {
        opacity: 1;
        transform: scale(1.05);
    }
    70% {
        transform: scale(0.9);
    }
    100% {
        transform: scale(1);
    }
}

@keyframes slideInCenter {
    from {
        width: 0;
        opacity: 0;
    }
    to {
        width: 60px;
        opacity: 1;
    }
}

/* --- FOOTER --- */
footer {
    background-color: var(--white);
    padding: 40px 5%;
    text-align: center;
    border-top: 1px solid #eee;
    margin-top: 50px;
}

/* --- CONTAINER --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- STATS SECTION --- */
.stats-section {
    padding: 60px 5%;
    background-color: #f8f9fa;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    text-align: center;
}

.stat-item {
    padding: 30px;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--primary-blue);
    display: block;
    margin-bottom: 10px;
}

.stat-label {
    color: var(--dark-grey);
    font-size: 1rem;
}

/* --- PENYAKIT SECTION --- */
.penyakit-section {
    padding: 60px 5%;
    background-color: var(--white);
}

.penyakit-section > .container > h2 {
    text-align: center;
    font-size: 2.5rem;
    color: var(--primary-blue);
    margin-bottom: 10px;
}

.section-subtitle {
    text-align: center;
    color: var(--dark-grey);
    margin-bottom: 40px;
    font-size: 1.1rem;
}

.penyakit-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    margin-bottom: 30px;
}

.penyakit-card {
    background: var(--white);
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 25px;
    transition: var(--transition);
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.penyakit-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 25px rgba(0,123,255,0.2);
    border-color: var(--primary-blue);
}

.card-header {
    margin-bottom: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-category {
    background-color: #E3F2FD;
    color: var(--primary-blue);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    display: inline-block;
}

.penyakit-card h3 {
    color: var(--dark-grey);
    margin-bottom: 12px;
    font-size: 1.3rem;
}

.penyakit-card p {
    color: #666;
    margin-bottom: 15px;
    line-height: 1.6;
    font-size: 0.95rem;
}

.card-link {
    color: var(--primary-blue);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
}

.card-link:hover {
    gap: 12px;
}

/* --- QUICK LINKS SECTION --- */
.quick-links-section {
    padding: 60px 5%;
    background: linear-gradient(135deg, var(--soft-blue) 0%, #ffffff 100%);
}

.quick-links-section h2 {
    text-align: center;
    font-size: 2.5rem;
    color: var(--primary-blue);
    margin-bottom: 40px;
}

.quick-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.quick-link-card {
    background: var(--white);
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    text-decoration: none;
    color: var(--dark-grey);
    transition: var(--transition);
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.quick-link-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.quick-link-card i {
    font-size: 2.5rem;
    color: var(--primary-blue);
    margin-bottom: 15px;
    display: block;
}

.quick-link-card h3 {
    margin: 15px 0 10px;
    font-size: 1.2rem;
}

.quick-link-card p {
    color: #999;
    font-size: 0.9rem;
}

/* --- PAGE HEADER --- */
.page-header {
    background: linear-gradient(135deg, var(--primary-blue) 0%, #0056b3 100%);
    color: var(--white);
    padding: 60px 5%;
    text-align: center;
}

.page-header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.page-header p {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* --- DETAIL PAGE --- */
.breadcrumb-section {
    padding: 20px 5%;
    background-color: #f8f9fa;
    border-bottom: 1px solid #e0e0e0;
}

.breadcrumb {
    font-size: 0.9rem;
    color: #666;
}

.breadcrumb a {
    color: var(--primary-blue);
    text-decoration: none;
    transition: color 0.3s;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.detail-section {
    padding: 50px 5%;
    background-color: var(--soft-grey);
}

.detail-grid {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 30px;
}

.detail-main {
    display: flex;
    flex-direction: column;
}

.detail-card {
    background: var(--white);
    padding: 35px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    margin-bottom: 20px;
}

.detail-header h1 {
    color: var(--primary-blue);
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.detail-category {
    margin-bottom: 20px;
}

.badge-primary {
    background-color: #E3F2FD;
    color: var(--primary-blue);
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    display: inline-block;
}

.detail-section-content {
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 1px solid #e0e0e0;
}

.detail-section-content h2 {
    color: var(--primary-blue);
    font-size: 1.5rem;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.content-text {
    color: var(--dark-grey);
    line-height: 1.8;
    white-space: pre-wrap;
    word-wrap: break-word;
}

.detail-meta {
    display: flex;
    gap: 30px;
    font-size: 0.9rem;
    color: #666;
}

.meta-item {
    display: flex;
    gap: 10px;
}

.meta-label {
    font-weight: 600;
}

.detail-navigation {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.nav-btn {
    color: var(--primary-blue);
    text-decoration: none;
    padding: 10px 20px;
    border: 2px solid var(--primary-blue);
    border-radius: 25px;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.nav-btn:hover {
    background-color: var(--primary-blue);
    color: var(--white);
}

/* --- SIDEBAR --- */
.detail-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.sidebar-card {
    background: var(--white);
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.sidebar-card h3 {
    color: var(--primary-blue);
    margin-bottom: 15px;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.related-list,
.quick-nav {
    list-style: none;
}

.related-list li,
.quick-nav li {
    margin-bottom: 10px;
}

.related-list a,
.quick-nav a {
    color: var(--dark-grey);
    text-decoration: none;
    transition: color 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.related-list a:hover,
.quick-nav a:hover {
    color: var(--primary-blue);
}

.info-box {
    background: linear-gradient(135deg, var(--soft-blue) 0%, #E3F2FD 100%);
}

.info-box p {
    color: var(--dark-grey);
    line-height: 1.6;
}

/* --- TREATMENT/PREVENTION SECTION --- */
.treatment-list,
.prevention-list {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.treatment-card,
.prevention-card {
    background: var(--white);
    padding: 30px;
    border-radius: 12px;
    border-left: 4px solid var(--primary-blue);
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    transition: var(--transition);
}

.treatment-card:hover,
.prevention-card:hover {
    box-shadow: 0 10px 25px rgba(0,123,255,0.2);
}

.treatment-header,
.prevention-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e0e0e0;
}

.treatment-header h2,
.prevention-header h2 {
    color: var(--primary-blue);
    font-size: 1.5rem;
    margin: 0;
}

.treatment-category,
.prevention-category {
    background-color: #E3F2FD;
    color: var(--primary-blue);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

.treatment-description,
.prevention-description {
    margin-bottom: 20px;
}

.treatment-description h3,
.prevention-description h3 {
    color: var(--dark-grey);
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.treatment-description p,
.prevention-description p {
    color: #666;
    line-height: 1.6;
}

.treatment-methods,
.prevention-methods {
    margin-bottom: 20px;
    background-color: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
}

.treatment-methods h3,
.prevention-methods h3 {
    color: var(--primary-blue);
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.treatment-content,
.prevention-content {
    color: var(--dark-grey);
    line-height: 1.8;
    white-space: pre-wrap;
    word-wrap: break-word;
}

.treatment-link,
.prevention-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary-blue);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.treatment-link:hover,
.prevention-link:hover {
    gap: 12px;
}

/* --- CATEGORY FILTER --- */
.category-section {
    padding: 50px 5%;
    background-color: var(--white);
}

.category-filter {
    margin-bottom: 50px;
}

.category-filter h2 {
    color: var(--primary-blue);
    margin-bottom: 20px;
    font-size: 1.3rem;
}

.category-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.cat-btn {
    background-color: #f0f0f0;
    color: var(--dark-grey);
    padding: 10px 20px;
    border: 2px solid transparent;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    cursor: pointer;
}

.cat-btn:hover,
.cat-btn.active {
    background-color: var(--primary-blue);
    color: var(--white);
    border-color: var(--primary-blue);
}

.kategori-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: 25px;
    border: 1px solid transparent;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.kategori-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}

.category-title {
    color: var(--primary-blue);
    font-size: 1.5rem;
    margin: 30px 0 20px 0;
    padding-top: 20px;
    border-top: 2px solid #e0e0e0;
}

/* --- CONTENT SECTION --- */
.content-section {
    padding: 50px 5%;
    background-color: var(--white);
}

/* --- EMPTY MESSAGE --- */
.empty-message {
    text-align: center;
    padding: 60px 20px;
    background-color: #f8f9fa;
    border-radius: 12px;
    border: 2px dashed #e0e0e0;
}

.empty-message i {
    font-size: 3rem;
    color: #ccc;
    display: block;
    margin-bottom: 20px;
}

.empty-message p {
    color: #666;
    font-size: 1.1rem;
}

/* --- BACK LINK SECTION --- */
.back-link-section {
    padding: 30px 5%;
    text-align: center;
    background-color: #f8f9fa;
}

/* --- HERO CONTENT --- */
.hero-content {
    z-index: 10;
    animation: fadeInUp 0.8s ease;
}

/* --- RESPONSIVE --- */
@media (max-width: 968px) {
    .detail-grid {
        grid-template-columns: 1fr;
    }
    
    .detail-sidebar {
        order: -1;
    }
}

@media (max-width: 768px) {
    .navbar { padding: 1rem 20px; }
    .nav-links { display: none; }
    .hero h1 { font-size: 2rem; }
    .page-header h1 { font-size: 1.8rem; }
    .penyakit-grid { grid-template-columns: 1fr; }
    .stats-grid { grid-template-columns: 1fr; }
    .treatment-header,
    .prevention-header {
        flex-direction: column;
        align-items: flex-start;
    }
    .category-buttons {
        gap: 8px;
    }
    .cat-btn {
        padding: 8px 15px;
        font-size: 0.9rem;
    }
}