:root {
    --f-primary: #113946;
    --f-secondary: #10b981;
    --f-accent: #f59e0b;
    --f-bg: #f8fafc;
    --f-text: #1e293b;
    --f-text-light: #64748b;
    --f-white: #ffffff;
    --glass: rgba(255, 255, 255, 0.8);
    --shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background-color: var(--f-bg);
    color: var(--f-text);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Header & Nav */
.f-header {
    background: var(--f-primary);
    /* Dark primary color for a professional look */
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.f-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.f-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.f-logo {
    font-size: clamp(1rem, 2.5vw, 1.4rem);
    font-weight: 800;
    color: var(--f-white);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    white-space: nowrap;
}

.f-logo img {
    height: clamp(30px, 4vw, 40px);
    width: auto;
}

.f-menu {
    display: flex;
    list-style: none;
    gap: 30px;
}

.f-menu-link {
    text-decoration: none;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 600;
    transition: all 0.3s;
    font-size: 1.05rem;
}

.f-menu-link:hover,
.f-menu-link.active {
    color: var(--f-secondary);
}

.f-menu-link:hover .fa-gear {
    transform: rotate(90deg);
}

.fa-gear {
    transition: transform 0.5s ease;
}

.f-mobile-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--f-white);
}

/* Hero Section */
.f-hero {
    padding: 140px 0 100px;
    background: url('../../health_hero_bg.png') no-repeat center center/cover;
    position: relative;
    overflow: hidden;
}

.f-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(248, 250, 252, 0.4);
    /* Overlay putih tipis */
    backdrop-filter: blur(2px);
    /* Blur tambahan */
    z-index: 1;
}

.f-hero .f-container {
    position: relative;
    z-index: 2;
}

.f-hero-grid {
    display: grid;
    grid-template-columns: 0.75fr 1.25fr;
    /* Default: Text left (0.75), Image right (1.25) */
    align-items: center;
    gap: 20px;
    /* Reduced gap for home page */
}

/* Specific for About page where image is on the left */
.f-section-about .f-hero-grid {
    grid-template-columns: 1fr 1fr;
    /* Equal space for image and text */
    gap: 40px;
    /* Increased gap for a more spacious feel */
}

.f-section-about .f-hero-image {
    margin-left: auto;
    /* Align image to the right of its column to be closer to text */
    margin-right: 0;
}

.f-hero-content h1 {
    font-size: clamp(2.2rem, 5vw + 1rem, 3.5rem);
    line-height: 1.2;
    color: var(--f-primary);
    margin-bottom: 20px;
    font-weight: 900;
}

.f-hero-content p {
    font-size: 1.2rem;
    color: var(--f-text-light);
    margin-bottom: 35px;
}

.f-hero-image {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    height: auto;
    max-height: 600px;
    aspect-ratio: 4/5;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
}

.f-hero-image img {
    width: 100%;
    height: 100%;
    object-fit: fill;
    /* Fit entire image to the box without cropping (may stretch) */
    display: block;
}

.f-img-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    padding: 12% 10%;
    /* Posisi lebih presisi sesuai gambar referensi */
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    color: white;
    box-sizing: border-box;
    text-align: left;
}

.f-img-header {
    font-size: clamp(2.5rem, 6vw, 3.8rem);
    /* Ukuran sangat besar sesuai referensi */
    font-weight: 900;
    line-height: 0.95;
    margin-bottom: 25px;
    letter-spacing: -2px;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.f-img-desc {
    font-size: clamp(1rem, 2.5vw, 1.6rem);
    /* Ukuran sedang sesuai referensi */
    font-weight: 400;
    line-height: 1.2;
    opacity: 0.98;
    max-width: 60%;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    margin-bottom: 25px;
}

.f-img-logos {
    position: absolute;
    top: 30px;
    right: 30px;
    display: flex;
    gap: 15px;
    align-items: center;
    z-index: 10;
}

.f-img-logos img {
    height: 70px;
    /* Tetap besar namun proporsional */
    width: auto;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.2));
    object-fit: contain;
}

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

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

.f-img-overlay div {
    animation: fadeInUp 0.8s ease-out both;
}

.f-img-header {
    animation-delay: 0.1s;
}

.f-img-desc {
    animation-delay: 0.3s;
}

/* Buttons */
.f-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s;
    cursor: pointer;
    border: none;
}

.f-btn-primary {
    background: var(--f-secondary);
    color: white;
}

.f-btn-primary:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(16, 185, 129, 0.3);
}

.f-btn-danger {
    background: #ef4444;
    color: white;
}

.f-btn-danger:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(239, 68, 68, 0.3);
}

/* Features */
.f-section {
    padding: 100px 0;
}

.f-section-title {
    text-align: center;
    margin-bottom: 60px;
}

.f-section-title h2 {
    font-size: 2.5rem;
    color: var(--f-primary);
    margin-bottom: 15px;
}

.f-grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.f-card {
    background: var(--f-white);
    padding: 30px 35px;
    /* Reduced vertical padding */
    border-radius: 32px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.05);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(0, 0, 0, 0.02);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    overflow: hidden;
    height: 100%;
}

.f-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--f-secondary), var(--f-primary));
    opacity: 0;
    transition: opacity 0.3s;
}

.f-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 25px 50px rgba(17, 57, 70, 0.1);
    border-color: rgba(16, 185, 129, 0.1);
}

.f-card:hover::after {
    opacity: 1;
}

.f-card-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--f-primary) 0%, var(--f-secondary) 100%);
    color: white;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 20px;
    transition: all 0.3s;
    box-shadow: 0 8px 15px rgba(16, 185, 129, 0.2);
}

.f-card:hover .f-card-icon {
    transform: rotate(-5deg) scale(1.15);
    box-shadow: 0 12px 25px rgba(16, 185, 129, 0.3);
}

.f-card h3 {
    font-size: 1.4rem;
    color: var(--f-primary);
    margin-bottom: 15px;
    font-weight: 800;
}

.f-card p {
    color: var(--f-text-light);
    font-size: 1rem;
    line-height: 1.6;
}

/* Layanan Page Styles */
.layanan-box {
    background: white;
    padding: 40px;
    border-radius: 24px;
    box-shadow: var(--shadow);
    max-width: 800px;
    margin: 40px auto;
}

.q-item {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f1f5f9;
}

.q-item:last-child {
    border-bottom: none;
}

.q-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 15px;
    display: block;
}

.opt-group {
    display: flex;
    gap: 15px;
}

.opt-btn {
    flex: 1;
    padding: 12px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    background: white;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.opt-btn:hover {
    border-color: var(--f-secondary);
    background: #f0fdf4;
}

.opt-btn.active[data-val="ya"] {
    background: var(--f-secondary);
    color: white;
    border-color: var(--f-secondary);
}

.opt-btn.active[data-val="tidak"] {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

/* Footer */
.f-footer {
    background: var(--f-primary);
    color: white;
    padding: 80px 0 40px;
}

.f-footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 50px;
    margin-bottom: 50px;
}

.f-footer-logo {
    color: white;
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
}

.f-footer-desc {
    color: #94a3b8;
    max-width: 350px;
}

.f-footer-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 25px;
}

.f-footer-links {
    list-style: none;
}

.f-footer-link {
    margin-bottom: 15px;
}

.f-footer-link a {
    color: #94a3b8;
    text-decoration: none;
    transition: color 0.3s;
}

.f-footer-link a:hover {
    color: var(--f-secondary);
}

.f-copyright {
    text-align: center;
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #64748b;
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 1024px) {}

@media (max-width: 768px) {
    .f-hero-grid, .f-section-about .f-hero-grid {
        grid-template-columns: 1fr !important;
        text-align: center;
        gap: 30px;
    }

    .f-hero-content {
        order: 2; /* Text below image on mobile */
    }

    .f-hero-image {
        order: 1; /* Image on top on mobile */
        height: 350px; /* Adjusted height for mobile */
        max-width: 100% !important;
        width: 100%;
        margin: 0 auto;
        justify-self: center;
    }

    .f-section-about .f-hero-image {
        margin-bottom: 20px;
    }

    .f-menu {
        display: none;
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background: var(--f-primary);
        flex-direction: column;
        padding: 20px;
        gap: 15px;
        box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.2);
    }

    .f-menu.active {
        display: flex;
    }

    .f-menu-link {
        padding: 10px 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        display: block;
    }

    .f-menu li:last-child .f-menu-link {
        border-bottom: none;
    }

    .f-mobile-toggle {
        display: block;
    }

    .f-footer-grid {
        grid-template-columns: 1fr;
    }

    .layanan-box {
        padding: 20px;
        margin: 20px auto;
    }
}

@media (max-width: 480px) {
    .f-hero {
        padding: 100px 0 60px;
    }
    
    .f-hero-content h1 {
        font-size: 1.8rem;
    }

    .f-hero-content p {
        font-size: 1rem;
    }

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

    .f-hero-content div {
        flex-direction: column;
    }

    .f-grid-3 {
        grid-template-columns: 1fr;
    }

    .f-card {
        padding: 20px;
    }
}