@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@500;600;700&family=Nunito:wght@400;500&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Nunito', sans-serif;
    background: #f8f9fa;
    color: #333;
}

.kpss-header {
    background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
    text-align: center;
    padding-top: 1rem;
    padding-bottom: 1rem;
    position: relative;
}

.kpss-header .btn {
    border-color: #ffffff;
    color: #ffffff;
    transition: all 0.3s;
}

.kpss-header .btn:hover {
    background-color: rgba(255, 255, 255, 0.2);
    border-color: #ffffff;
    color: #ffffff;
    transform: translateX(-5px);
}

.kpss-header .btn span.bi {
    font-size: 1.5rem;
}

.kpss-title {
    font-family: 'Poppins', sans-serif;
    font-size: 48px;
    font-weight: 700;
    letter-spacing: 3px;
    margin: 0;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
    color: #ffffff;
}

.kpss-title span {
    color: #fbbf24;
    font-weight: 600;
}

.main-container {
    display: flex;
    max-width: 1400px;
    margin: 30px auto;
    gap: 25px;
    padding: 0 20px;
}

.sidebar {
    width: 300px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    height: fit-content;
    overflow: hidden;
}

.category {
    border-bottom: 1px solid #e5e7eb;
}

.category:last-child {
    border-bottom: none;
}

.category-header {
    padding: 16px 20px;
    background: #f9fafb;
    cursor: pointer;
    font-weight: 600;
    font-size: 15px;
    color: #1e40af;
    border-left: 4px solid transparent;
    transition: all 0.3s;
    position: relative;
    font-family: 'Poppins', sans-serif;
}

.category-header:after {
    content: '▼';
    position: absolute;
    right: 20px;
    font-size: 10px;
    transition: transform 0.3s;
    color: #6b7280;
}

.category-header.active:after {
    transform: rotate(180deg);
}

.category-header:hover {
    background: #eff6ff;
    border-left-color: #2563eb;
}

.category-header.active {
    background: #dbeafe;
    border-left-color: #2563eb;
}

.category-items {
    display: none;
    background: white;
}

.category-items.active {
    display: block;
}

.subcategory {
    border-bottom: 1px solid #f3f4f6;
}

.subcategory:last-child {
    border-bottom: none;
}

.subcategory-header {
    padding: 12px 20px 12px 35px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    color: #4b5563;
    border-left: 3px solid transparent;
    transition: all 0.3s;
    position: relative;
    background: #fafafa;
}

.subcategory-header:after {
    content: '▸';
    position: absolute;
    right: 20px;
    font-size: 11px;
    transition: transform 0.3s;
    color: #9ca3af;
}

.subcategory-header.active:after {
    transform: rotate(90deg);
}

.subcategory-header:hover {
    background: #f0f9ff;
    color: #2563eb;
    border-left-color: #60a5fa;
}

.subcategory-header.active {
    background: #f0f9ff;
    color: #2563eb;
    border-left-color: #2563eb;
}

.subcategory-items {
    display: none;
    background: white;
}

.subcategory-items.active {
    display: block;
}

.content-item {
    padding: 10px 20px 10px 55px;
    cursor: pointer;
    font-size: 13px;
    color: #6b7280;
    border-left: 3px solid transparent;
    transition: all 0.3s;
    position: relative;
}

.content-item:before {
    content: '•';
    position: absolute;
    left: 40px;
    color: #d1d5db;
}

.content-item:hover {
    background: #f9fafb;
    color: #1e40af;
    border-left-color: #93c5fd;
}

.content-item.selected {
    background: #eff6ff;
    color: #1e40af;
    border-left-color: #2563eb;
    font-weight: 500;
}

.content-item.selected:before {
    color: #2563eb;
}

.content {
    flex: 1;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    min-height: 700px;
    overflow: hidden;
}

.content-header {
    padding: 25px 30px;
    border-bottom: 3px solid #2563eb;
    background: linear-gradient(to right, #eff6ff, #ffffff);
}

.content-header h2 {
    font-size: 24px;
    color: #1e40af;
    margin-bottom: 10px;
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
}

.content-meta {
    font-size: 14px;
    color: #6b7280;
    line-height: 1.6;
}

.content-meta p {
    margin: 5px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.content-meta i {
    color: #fbbf24;
    font-size: 16px;
}

.download-section {
    padding: 20px 30px;
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
}

.btn-download {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 24px;
    background: #2563eb;
    color: white;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    border-radius: 8px;
    transition: all 0.3s;
    box-shadow: 0 2px 4px rgba(37, 99, 235, 0.2);
}

.btn-download:hover {
    background: #1e40af;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(37, 99, 235, 0.3);
}

.btn-download i {
    font-size: 16px;
}

.pdf-container {
    padding: 20px 30px;
}

.pdf-frame {
    width: 100%;
    height: 70vh;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
}

.welcome {
    padding: 120px 30px;
    text-align: center;
    color: #6b7280;
}

.welcome h2 {
    color: #1e40af;
    font-size: 28px;
    margin-bottom: 15px;
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
}

.welcome p {
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 30px;
}

.welcome-icon {
    margin-top: 40px;
}

.welcome-icon i {
    font-size: 80px;
    color: #93c5fd;
    opacity: 0.6;
}
.sub-subcategory-header {
    padding: 8px 15px;
    cursor: pointer;
    background-color: #f0f0f0;
    border-left: 3px solid #007bff;
    margin: 5px 0;
    font-weight: 500;
}

.sub-subcategory-header:hover {
    background-color: #e0e0e0;
}

.sub-subcategory-items {
    display: none;
    padding-left: 20px;
}

.sub-subcategory-items.active {
    display: block;
}

/* Responsive Design */
@media (max-width: 992px) {
    .main-container {
        flex-direction: column;
    }
    .sidebar {
        width: 100%;
    }
    .pdf-frame {
        height: 500px;
    }
}

@media (max-width: 768px) {
    .kpss-title {
        font-size: 2rem;
    }
    .content-header {
        padding: 20px 20px;
    }
    .content-header h2 {
        font-size: 20px;
    }
    .download-section {
        padding: 15px 20px;
    }
    .pdf-container {
        padding: 15px 20px;
    }
    .pdf-frame {
        height: 400px;
    }
    .welcome {
        padding: 80px 20px;
    }
    .welcome h2 {
        font-size: 24px;
    }
}

@media (max-width: 576px) {
    .main-container {
        margin: 15px auto;
        padding: 0 10px;
        gap: 15px;
    }
    .kpss-header {
        padding: 1rem 0;
    }
    .kpss-title {
        font-size: 1.5rem;
        letter-spacing: 2px;
    }
    .category-header {
        padding: 14px 15px;
        font-size: 14px;
    }
    .subcategory-header {
        padding: 10px 15px 10px 30px;
        font-size: 13px;
    }
    .content-item {
        padding: 8px 15px 8px 45px;
        font-size: 12px;
    }
    .content-header h2 {
        font-size: 18px;
    }
    .content-meta {
        font-size: 13px;
    }
    .pdf-frame {
        height: 300px;
    }
    .welcome {
        padding: 60px 15px;
    }
    .welcome h2 {
        font-size: 20px;
    }
    .welcome-icon i {
        font-size: 60px;
    }
}