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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
}

body {
    font-family: 'Sen', sans-serif;
    line-height: 1.6;
    color: #333;
}

header {
    background-color: transparent;
    color: white;
    padding: 1rem 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    transition: all 0.3s ease;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: bold;
    text-decoration: none;
    color: white;
    font-family: 'Limelight', serif;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-img {
    height: 40px;
    width: auto;
    filter: brightness(0) invert(1);
}

nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
    flex-wrap: wrap;
}

nav a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.3s ease;
}

nav a:hover {
    opacity: 0.8;
    border-bottom: 2px solid #049343;
    padding-bottom: 0.5rem;
}

.hero {
    background: url('../img/hero.webp') center/cover no-repeat;
    color: white;
    padding: 4rem 2rem;
    text-align: center;
    height: 100vh;
    max-height: 1080px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 1;
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.hero-small {
    height: 50vh;
    max-height: 540px;
}

.hero-logo {
    height: 240px;
    width: auto;
    margin-bottom: 1rem;
    animation: fadeInDown 0.8s ease-out;
    filter: brightness(0) invert(1);
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 0rem;
    font-weight: 700;
    font-family: 'Limelight', serif;
    line-height: 1;
}

.hero .subtitle {
    font-size: 1.5rem;
    margin-bottom: 0rem;
    font-weight: 300;
}

.hero p {
    font-size: 1.1rem;
    margin: 0 auto 2rem;
    line-height: 1.8;
}

.cta-button {
    display: inline-block;
    background-color: white;
    color: #008FD5;
    padding: 0.8rem 2rem;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.3s ease;
    margin: 0.5rem;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section {
    padding: 3rem 0;
    border-bottom: 1px solid #eee;
}

.section h2 {
    color: #008FD5;
    font-size: 2rem;
    margin-bottom: 1.5rem;
    text-align: center;
    font-family: 'Limelight', serif;
}

.section h2 .highlight {
    border-bottom: 3px solid #049343;
    padding-bottom: 0.25rem;
}

.about-content {
    background-color: #f9f9f9;
    padding: 2rem;
    border-radius: 5px;
    text-align: justify;
    line-height: 1.8;
}

.categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.category-card {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 5px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
    min-height: 350px;
    display: flex;
    align-items: flex-start;
}

.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 200%;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.5) 0%,
        rgba(0, 0, 0, 0.5) 50%,
        rgba(0, 0, 0, 0) 100%
    );
    z-index: 1;
    transition: transform 0.3s ease;
    transform: translateY(-50%);
}

.category-card-pangan {
    background-image: url('../img/pangan-olahan.webp');
}

.category-card-obat {
    background-image: url('../img/obat-bahan-alam.webp');
}

.category-card-kosmetik {
    background-image: url('../img/kosmetik.webp');
}

.category-card-content {
    padding: 2rem;
    position: relative;
    z-index: 2;
    width: 100%;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,143,213,0.2);
}

.category-card:hover::before {
    transform: translateY(0%);
}

.category-card h3 {
    color: white;
    margin-bottom: 1rem;
    font-family: 'Limelight', serif;
    transition: opacity 0.3s ease;
}

.category-card p {
    color: white;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.category-card:hover p {
    opacity: 1;
}

.category-card a {
    color: white;
    text-decoration: none;
    font-weight: 600;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.category-card:hover a {
    opacity: 1;
}

.category-card a:hover {
    text-decoration: underline;
}

.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.stat-box {
    background-color: #f0f8ff;
    padding: 1.5rem;
    border-radius: 5px;
    text-align: center;
    border-top: 3px solid #008FD5;
}

.stat-number {
    font-size: 2rem;
    color: #008FD5;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.stat-label {
    color: #666;
    font-weight: 500;
}

footer {
    background-color: #333;
    color: white;
    padding: 2rem;
    text-align: center;
    margin-top: 3rem;
}

.contact-info {
    background-color: #f0f8ff;
    padding: 2rem;
    border-radius: 5px;
    margin: 2rem 0;
}

.contact-info p {
    margin-bottom: 0.5rem;
}

.contact-info strong {
    color: #008FD5;
}

/* Tim Section */
.tim-wrapper {
    display: grid;
    grid-template-columns: 33% 1fr;
    gap: 3rem;
    margin: 2rem 0;
}

.tim-column {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.tim-column-header {
    color: #008FD5;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    font-family: 'Limelight', serif;
    text-align: center;
}

.team-card {
    display: flex;
    flex-direction: column;
    text-align: center;
    margin-bottom: 1.5rem;
    width: 300px;
    margin-left: auto;
    margin-right: auto;
}

.team-photo {
    width: 100%;
    height: auto;
    border-radius: 5px 5px 0 0;
}

.team-info {
    background-color: #004B7A;
    padding: 1rem;
    border-radius: 0 0 5px 5px;
}

.team-info h4 {
    color: white;
    margin: 0;
    margin-bottom: 0.5rem;
    font-size: 1rem;
    font-weight: 600;
}

.team-info p {
    color: white;
    margin: 0;
    font-size: 0.9rem;
}

.team-cards-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

/* Persyaratan Section */
.persyaratan-content {
    margin: 2rem 0;
}

.persyaratan-box {
    background-color: #f9f9f9;
    padding: 2rem;
    border-radius: 5px;
    margin-bottom: 2rem;
    border-left: 4px solid #008FD5;
}

.persyaratan-box h3 {
    color: #008FD5;
    font-size: 1.3rem;
    margin-bottom: 1rem;
    font-family: 'Limelight', serif;
}

.persyaratan-box h4 {
    color: #004B7A;
    font-size: 1.1rem;
    margin: 1rem 0 0.5rem 0;
    font-weight: 600;
}

.persyaratan-list {
    list-style: none;
    padding: 0;
}

.persyaratan-list li {
    margin-bottom: 1.5rem;
    padding: 0;
}

.persyaratan-list li strong {
    color: #008FD5;
    display: block;
    margin-bottom: 0.5rem;
}

.persyaratan-list li p {
    color: #333;
    margin: 0;
    line-height: 1.6;
}

.tahap-description {
    color: #333;
    margin: 0 0 1rem 0;
    line-height: 1.6;
}

.dokumen-list {
    background-color: white;
    padding: 1.5rem;
    border-radius: 5px;
    margin: 1rem 0;
}

.dokumen-list h4 {
    color: #008FD5;
    margin-top: 0;
}

.dokumen-list ul,
.dokumen-list-nested {
    list-style: none;
    padding-left: 1rem;
}

.dokumen-list li,
.dokumen-list-nested li {
    color: #333;
    margin-bottom: 0.5rem;
    padding-left: 0;
}

.dokumen-list li::before,
.dokumen-list-nested li::before {
    content: '✓ ';
    color: #049343;
    font-weight: bold;
    margin-right: 0.5rem;
}

.contoh-dokumen {
    background-color: #f0f8ff;
    padding: 1rem;
    border-radius: 5px;
    margin: 1rem 0;
    color: #333;
}

.contoh-dokumen a {
    color: #008FD5;
    text-decoration: none;
}

.contoh-dokumen a:hover {
    text-decoration: underline;
}

.link-external {
    color: #008FD5;
    text-decoration: none;
}

.link-external:hover {
    text-decoration: underline;
}

.hasil-tahap {
    background: linear-gradient(135deg, #008FD5 0%, #004B7A 100%);
    color: white;
    padding: 1.5rem;
    border-radius: 5px;
    margin-top: 1rem;
    text-align: center;
}

.hasil-tahap strong {
    display: block;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.hasil-tahap p {
    margin: 0;
    font-size: 0.95rem;
}

.registrasi-section {
    background-color: white;
    padding: 1.5rem;
    border-radius: 5px;
    margin: 1rem 0;
    border-left: 3px solid #049343;
}

.lihat-contoh {
    color: #049343;
    text-decoration: none;
    font-weight: 600;
    margin-left: 0.5rem;
    font-size: 0.9rem;
}

.lihat-contoh:hover {
    text-decoration: underline;
}

/* Persyaratan Obat Bahan Alam Specific */
.persyaratan-list-obat {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.persyaratan-item {
    background-color: white;
    padding: 1.5rem;
    border-radius: 5px;
    border-left: 3px solid #008FD5;
}

.persyaratan-item h4 {
    color: #008FD5;
    margin: 0 0 0.75rem 0;
    font-size: 1.05rem;
    font-weight: 600;
}

.item-description {
    color: #333;
    margin: 0 0 1rem 0;
    line-height: 1.6;
}

.sub-requirements {
    list-style: none;
    padding-left: 1rem;
    margin: 1rem 0 0 0;
}

.sub-requirements li {
    color: #333;
    margin-bottom: 0.5rem;
    padding-left: 0;
}

.dokumen-list-obat {
    background-color: #f9f9f9;
    padding: 1rem;
    border-radius: 5px;
    margin: 1rem 0;
}

.dokumen-list-obat h5 {
    color: #008FD5;
    margin: 0 0 0.75rem 0;
    font-size: 1rem;
}

.dokumen-list-obat ul {
    list-style: none;
    padding-left: 0.5rem;
    margin: 0;
}

.dokumen-list-obat li {
    color: #333;
    margin-bottom: 0.5rem;
    padding-left: 0;
}

.hasil-tahap-obat {
    background: linear-gradient(135deg, #1B6BA8 0%, #003E5C 100%);
}

/* Roadmap Section */
.roadmap-content {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 2rem 0;
}

.roadmap-image {
    max-width: 100%;
    height: auto;
    border-radius: 5px;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Header Scroll Effect */
header.scrolled {
    background-color: white;
    color: #004B7A;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

header.scrolled .logo {
    color: #004B7A;
}

header.scrolled .logo-img {
    filter: none;
}

header.scrolled nav a {
    color: #004B7A;
}

header.scrolled nav a:hover {
    border-bottom-color: #049343;
}

@media (max-width: 768px) {
    nav ul {
        gap: 1rem;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero .subtitle {
        font-size: 1.2rem;
    }

    .header-container {
        flex-direction: column;
        gap: 1rem;
    }

    .section h2 {
        font-size: 1.5rem;
    }
}