* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #0052CC;
    --secondary-color: #E8F0FE;
    --text-dark: #1F2937;
    --text-light: #6B7280;
    --white: #FFFFFF;
    --border-radius: 12px;
    --shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.15);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: var(--text-dark);
    background-color: var(--white);
    line-height: 1.6;
    padding-top: 80px;
}

/* ==================== Navbar ==================== */
.navbar {
    background-color: var(--white);
    box-shadow: var(--shadow);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
}

.navbar-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 600;
    color: var(--primary-color);
    text-decoration: none;
    font-size: 1rem;
}

.navbar-logo i {
    font-size: 1.5rem;
}

.navbar-logo img {
    width: 48px;
    height: 48px;
    object-fit: cover;
    border-radius: 12px;
}

.navbar-logo small {
    font-size: 0.65rem;
    display: block;
    line-height: 1.2;
    color: var(--text-light);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    flex: 1;
    margin-left: 3rem;
}

.nav-link {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    font-size: 0.95rem;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color);
}

.btn-masuk {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 0.6rem 1.5rem;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 0.95rem;
}

.btn-masuk:hover {
    background-color: #003d99;
}

/* ==================== Hero Section ==================== */
.hero {
    background: linear-gradient(135deg, #E8F0FE 0%, #F0F4FF 100%);
    padding: 4rem 2rem;
    min-height: 600px;
    display: flex;
    align-items: center;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    width: 100%;
}

.hero-content {
    padding-right: 2rem;
}

.breadcrumb {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
}

.hero-title .highlight {
    color: var(--primary-color);
}

.hero-description {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 2rem;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn {
    padding: 0.8rem 2rem;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
}

.btn-primary:hover {
    background-color: #003d99;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background-color: var(--white);
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.placeholder-illustration {
    width: 100%;
    height: 400px;
    background: linear-gradient(135deg, var(--primary-color) 0%, #0066CC 100%);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
}

/* ==================== Library Showcase Section ==================== */
.showcase {
    padding: 4rem 2rem;
    background: #f8fbff;
}

.showcase-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: center;
}

.showcase-content {
    max-width: 560px;
}

.showcase-content .breadcrumb {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.section-title {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.section-description {
    font-size: 1rem;
    color: var(--text-light);
    line-height: 1.8;
}

.showcase-image img {
    width: 100%;
    border-radius: var(--border-radius);
    object-fit: cover;
    box-shadow: var(--shadow-lg);
    min-height: 360px;
}

.hero-img {
    width: 100%;
    max-width: 100%;
    border-radius: var(--border-radius);
    object-fit: cover;
    box-shadow: var(--shadow-lg);
    min-height: 360px;
}

/* ==================== Book Example Section ==================== */
.book-examples {
    padding: 4rem 2rem;
    background: #f0f4ff;
}

.book-container {
    max-width: 1200px;
    margin: 0 auto;
}

.section-header {
    display: block;
    text-align: center;
    margin-bottom: 2rem;
}

.section-header > div {
    display: inline-block;
    text-align: center;
}

.book-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.book-card {
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
}

.book-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.book-card img {
    width: 100%;
    border-radius: 18px;
    height: 220px;
    object-fit: cover;
    margin-bottom: 1rem;
}

.book-card h4 {
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
    color: var(--text-dark);
}

.book-card p {
    color: var(--text-light);
    line-height: 1.7;
}

/* ==================== Categories Section ==================== */
.categories {
    padding: 4rem 2rem;
    background-color: var(--white);
}

.categories-container {
    max-width: 1200px;
    margin: 0 auto;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.category-card {
    background: linear-gradient(135deg, var(--primary-color) 0%, #0066CC 100%);
    border-radius: var(--border-radius);
    padding: 2.5rem 2rem;
    color: var(--white);
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow);
    min-height: 200px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    position: relative;
    overflow: hidden;
}

.category-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    transition: all 0.3s ease;
}

.category-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.category-card:hover::before {
    top: -30%;
    right: -30%;
}

.card-icon {
    font-size: 2.5rem;
    position: relative;
    z-index: 1;
}

.category-card h3 {
    font-size: 1.2rem;
    font-weight: 600;
    line-height: 1.4;
    position: relative;
    z-index: 1;
}

/* ==================== Profil Sekolah Section ==================== */
.profil-sekolah {
    padding: 4rem 2rem;
    background: linear-gradient(135deg, #f0f4ff 0%, #e8f0fe 100%);
}

.profil-container {
    max-width: 1200px;
    margin: 0 auto;
}

.profil-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.profil-item {
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    text-align: center;
}

.profil-item:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.profil-icon {
    font-size: 2.8rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 70px;
    height: 70px;
    background: var(--secondary-color);
    border-radius: 50%;
    margin-left: auto;
    margin-right: auto;
}

.profil-item h3 {
    font-size: 1.2rem;
    color: var(--text-dark);
    margin-bottom: 0.75rem;
}

.profil-item p {
    color: var(--text-light);
    line-height: 1.7;
    font-size: 0.95rem;
}

/* ==================== Features Section (Quick Links) ==================== */
.features-section {
    padding: 4rem 2rem;
    background-color: var(--white);
}

.features-container {
    max-width: 1200px;
    margin: 0 auto;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

.feature-card {
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 2.5rem 2rem;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    border-top: 4px solid var(--primary-color);
    text-align: center;
    display: flex;
    flex-direction: column;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.feature-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.feature-card h3 {
    font-size: 1.3rem;
    color: var(--text-dark);
    margin-bottom: 1rem;
    font-weight: 600;
}

.feature-card p {
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 1.5rem;
    flex: 1;
}

.feature-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    align-self: center;
}

.feature-link:hover {
    gap: 0.75rem;
    color: #003d99;
}

.feature-link i {
    font-size: 0.9rem;
}

/* ==================== Call-to-Action Section ==================== */
.cta-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, #0066CC 100%);
    padding: 4rem 2rem;
    text-align: center;
    color: var(--white);
}

.cta-container {
    max-width: 1200px;
    margin: 0 auto;
}

.cta-section h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.cta-section p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

.btn-large {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
}

.btn-large:hover {
    background-color: #003d99;
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

/* ==================== Footer ==================== */
.footer {
    background-color: var(--text-dark);
    color: var(--white);
    text-align: center;
    padding: 2rem;
    margin-top: 3rem;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
}

/* ==================== Responsive Design ==================== */
@media (max-width: 768px) {
    .navbar-container {
        flex-wrap: wrap;
        gap: 1rem;
    }

    .nav-menu {
        flex-basis: 100%;
        margin-left: 0;
        gap: 1rem;
        order: 3;
        justify-content: space-around;
    }

    .hero-container {
        grid-template-columns: 1fr;
        padding: 0;
    }

    .hero-content {
        padding-right: 0;
    }

    .hero-title {
        font-size: 2rem;
    }

    .placeholder-illustration {
        height: 300px;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }

    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .profil-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .profil-item {
        padding: 1.5rem;
    }

    .category-card {
        min-height: 150px;
        padding: 1.5rem;
    }

    .card-icon {
        font-size: 2rem;
    }

    .category-card h3 {
        font-size: 1rem;
    }

    .showcase-container,
    .book-grid,
    .profil-grid {
        grid-template-columns: 1fr;
    }

    .showcase-image img {
        min-height: 240px;
    }

    .book-card img {
        height: 200px;
    }
}

@media (max-width: 480px) {
    .navbar-container {
        padding: 1rem;
    }

    .navbar-logo {
        gap: 0.5rem;
    }

    .navbar-logo i {
        font-size: 1.25rem;
    }

    .nav-menu {
        gap: 0.5rem;
    }

    .nav-link {
        font-size: 0.85rem;
    }

    .hero {
        padding: 2rem 1rem;
        min-height: auto;
    }

    .hero-title {
        font-size: 1.5rem;
    }

    .hero-description {
        font-size: 0.95rem;
    }

    .btn {
        padding: 0.6rem 1.5rem;
        font-size: 0.9rem;
    }

    .categories-grid {
        grid-template-columns: 1fr;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .category-card {
        min-height: 120px;
        padding: 1.25rem 1rem;
    }

    .card-icon {
        font-size: 1.75rem;
    }

    .category-card h3 {
        font-size: 0.9rem;
    }
}
