/* =========================================
   1. RESET DAN BASE STYLES (Pengaturan Dasar)
   ========================================= */
/* Reset dan Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    line-height: 1.65;
    color: #374151;
    background-color: #f8fafc;
    scroll-behavior: smooth;
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    width: 92%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 24px 0;
}

/* =========================================
   2. UTILITY CLASSES (Kelas Bantuan)
   ========================================= */
/* Batik Pattern Background (Latar Belakang Batik) */
.bg-batik-pattern {
    background-image: url('batik.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.bg-batik-pattern .section-title {
    background: rgba(255, 255, 255, 0.85);
    padding: 1rem;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(5px);
}

/* =========================================
   3. NAVIGATION STYLES (Gaya Navigasi)
   ========================================= */
/* Sticky Navbar Enhancement */
nav.sticky {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: #1e40af !important;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
    z-index: 1000;
    transition: none !important;
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Active Link Styles */
nav a.active {
    background: linear-gradient(135deg, #3b82f6, #8b5cf6) !important;
    color: white !important;
    border-radius: 0.375rem;
    font-weight: bold;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    transform: translateY(-2px);
    position: relative;
}

/* Smooth transitions for all interactive elements - excluding navbar to prevent flickering */
* {
    transition-property: background-color, border-color, color, fill, stroke, opacity, box-shadow, transform;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
}

/* Remove transitions from navbar to prevent flickering */
#navbar {
    transition: none !important;
}

/* Remove transitions from navbar elements */
#navbar * {
    transition: none !important;
}



/* =========================================
   4. SECTION STYLES (Gaya Per Bagian)
   ========================================= */
/* Section Styles (Pengaturan Umum Section) */
section {
    padding: 5rem 0;
    border-bottom: 1px solid #e2e8f0;
}

section:nth-child(even) {
    background-color: #f8fafc;
}

.section-title {
    text-align: center;
    margin-bottom: 2.5rem;
    font-size: 2.25rem;
    color: #5b21b6;
    position: relative;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    letter-spacing: -0.025em;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: linear-gradient(to right, #3b82f6, #f59e0b);
    margin: 15px auto;
    border-radius: 2px;
    box-shadow: 0 2px 5px rgba(59, 130, 246, 0.3);
    position: relative;
    overflow: hidden;
}

.section-title::before {
    content: '';
    display: block;
    width: 15px;
    height: 15px;
    background: #3b82f6;
    border-radius: 50%;
    margin: 0 auto 5px;
    box-shadow: 0 2px 5px rgba(59, 130, 246, 0.3);
}

/* --- Tentang Section --- */
/* Tentang Section */
#tentang .content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

#tentang .section-title {
    color: #5b21b6;
}

#tentang p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    line-height: 1.8;
}

/* --- Visi Misi Section --- */
/* Visi Misi Section */
.visi-misi-container {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
}

.visi, .misi {
    flex: 1;
    min-width: 300px;
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.visi h3, .misi h3 {
    color: #1e3c72;
    margin-bottom: 1.5rem;
    text-align: center;
    font-size: 1.5rem;
}

.visi p {
    font-size: 1.1rem;
    line-height: 1.7;
    text-align: center;
    font-style: italic;
}

.misi ul {
    list-style-type: none;
}

.misi li {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
    position: relative;
    line-height: 1.6;
}

.misi li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: #2a5298;
    font-weight: bold;
}

/* --- Sambutan Section --- */
/* Sambutan Section */
#sambutan {
    background-attachment: fixed;
    padding: 3rem 0;
    position: relative;
    overflow: hidden;
}

#sambutan::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(22, 163, 74, 0.05) 0%, rgba(26, 122, 194, 0.05) 100%);
    z-index: 0;
}

#sambutan > .container {
    position: relative;
    z-index: 1;
}

.sambutan-container {
    display: flex;
    flex-wrap: wrap;
    gap: 3rem;
    align-items: center;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 3rem;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(22, 163, 74, 0.1);
}

.sambutan-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background: linear-gradient(to bottom, #16a34a, #1e40af);
}

.sambutan-text {
    flex: 2;
    min-width: 300px;
}

.sambutan-text p {
    margin-bottom: 1.5rem;
    text-align: justify;
    line-height: 1.9;
    font-size: 1.1rem;
    color: #333;
    position: relative;
}

.sambutan-text p:first-child {
    font-size: 1.3rem;
    font-weight: 700;
    color: #166534;
    text-align: center;
    margin-bottom: 1.5rem;
    padding: 0.8rem;
    background: rgba(22, 163, 74, 0.08);
    border-radius: 8px;
    border-left: 4px solid #16a34a;
}

.sambutan-text p:last-child {
    font-size: 1.3rem;
    font-weight: 700;
    color: #166534;
    text-align: center;
    margin-top: 1rem;
    margin-bottom: 0;
    padding: 0.8rem;
    background: rgba(22, 163, 74, 0.08);
    border-radius: 8px;
    border-left: 4px solid #16a34a;
}

.sambutan-text p:nth-child(2) {
    font-size: 1.15rem;
    line-height: 2;
    font-weight: 500;
    color: #1e3c72;
}

.sambutan-text .greeting-start {
    font-size: 1.3rem;
    font-weight: 700;
    color: #5b21b6;
    text-align: center;
    margin-bottom: 1.5rem;
    padding: 0.8rem;
    background: rgba(59, 130, 246, 0.08);
    border-radius: 8px;
    border-left: 4px solid #3b82f6;
}

.sambutan-text .intro-text {
    font-size: 1.15rem;
    line-height: 2;
    font-weight: 500;
    color: #1e3c72;
}

.sambutan-text .greeting-end {
    font-size: 1.3rem;
    font-weight: 700;
    color: #5b21b6;
    text-align: center;
    margin-top: 1rem;
    margin-bottom: 0;
    padding: 0.8rem;
    background: rgba(59, 130, 246, 0.08);
    border-radius: 8px;
    border-left: 4px solid #3b82f6;
}

.kabid-foto {
    flex: 1;
    min-width: 280px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.foto-placeholder {
    width: 100%;
    max-width: 250px;
    height: 300px;
    border-radius: 50%;
    margin-bottom: 1.5rem;
    overflow: hidden;
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.2);
    border: 5px solid #fff;
    position: relative;
    transition: all 0.4s ease;
    background: linear-gradient(145deg, #e6e6e6, #ffffff);
}

.foto-placeholder:hover {
    transform: translateY(-8px) scale(1.03);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
    border-color: #3b82f6;
}

.foto-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.kabid-foto .nama h3 {
    color: #1e3c72;
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
    font-weight: 700;
    position: relative;
}

.kabid-foto .nama h3::after {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    background: #16a34a;
    margin: 0.5rem auto;
    border-radius: 2px;
}

.kabid-foto .nama p {
    color: #666;
    font-style: italic;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.kabid-foto .jabatan {
    background: linear-gradient(135deg, #16a34a, #22c55e);
    color: white;
    padding: 0.6rem 1.2rem;
    border-radius: 30px;
    font-weight: 600;
    font-size: 1rem;
    margin-top: 0.5rem;
    box-shadow: 0 6px 15px rgba(22, 163, 74, 0.4);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.95rem;
}

/* --- Kegiatan Section --- */
/* Kegiatan Section */
.kegiatan-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2.5rem;
    padding: 2rem 0;
}

.kegiatan-item {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.4s ease;
    border: 1px solid #e2e8f0;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.kegiatan-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(to right, #3b82f6, #f59e0b);
}

.kegiatan-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(59, 130, 246, 0.25);
    border-color: #3b82f6;
}

.kegiatan-icon {
    font-size: 3rem;
    color: #3b82f6;
    margin-bottom: 1.5rem;
    transition: transform 0.3s ease;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: block;
    margin: 0 auto 1.5rem;
}

.kegiatan-item:hover .kegiatan-icon {
    transform: scale(1.2);
}

.kegiatan-item h3 {
    color: #5b21b6;
    margin-bottom: 1rem;
    font-size: 1.4rem;
    font-weight: 700;
}

.kegiatan-item p {
    color: #444;
    line-height: 1.7;
    font-size: 1.05rem;
}

/* --- SIPJAKI/Website Section --- */
/* SIPJAKI Section */
.sipjaki-container {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
}

.sipjaki-item {
    flex: 1;
    min-width: 300px;
    background: white;
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    border: 1px solid #e2e8f0;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.sipjaki-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(59, 130, 246, 0.2);
    border-color: #3b82f6;
}

.sipjaki-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(to right, #16a34a, #22c55e);
}

.sipjaki-item h3 {
    color: #166534;
    margin-bottom: 0.5rem;
    font-size: 1.6rem;
    font-weight: 700;
}

.sipjaki-item > p:first-of-type {
    color: #16a34a;
    font-weight: 600;
    margin-bottom: 1rem;
    font-style: italic;
}

.sipjaki-item .fitur {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px dashed #dcfce7;
}

.sipjaki-item .fitur h4 {
    color: #5b21b6;
    margin-bottom: 1rem;
    font-weight: 600;
}

.sipjaki-item ul {
    list-style-type: none;
}

.sipjaki-item li {
    margin-bottom: 0.6rem;
    padding-left: 1.5rem;
    position: relative;
    color: #444;
}

.sipjaki-item li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: #3b82f6;
    font-weight: bold;
}

/* --- Gallery/Dokumentasi Section --- */
/* Gallery Section */
.gallery-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    padding: 2rem 0;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.show-more-container {
    grid-column: 1 / -1;
    display: flex;
    justify-content: center;
}

#dokumentasi .gallery-item {
    aspect-ratio: 4/3;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.4s ease;
    will-change: transform;
    position: relative;
    border: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8fafc;
    flex-direction: column;
    height: 100%;
}

#dokumentasi .gallery-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(59, 130, 246, 0.25);
    border-color: #3b82f6;
    cursor: pointer;
}

#dokumentasi .gallery-placeholder {
    height: 100%;
}

#dokumentasi .gallery-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

#dokumentasi .gallery-item:hover .gallery-placeholder img {
    transform: scale(1.05);
}

@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 1.5rem;
    }
}

.selengkapnya-btn {
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    color: white;
    padding: 0.25rem 1rem;
    border-radius: 9999px;
    border: none;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.selengkapnya-btn:hover {
    background: linear-gradient(135deg, #5b21b6, #3b82f6);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

@media (max-width: 480px) {
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

.gallery-slider-container {
    position: relative;
    padding: 2rem 0;
}

.gallery-slider {
    position: relative;
    overflow: hidden;
    border-radius: 1rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.gallery-slider-wrapper {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.gallery-slide {
    flex: 0 0 auto;
    padding: 0 1rem;
}

#gallery .gallery-item {
    height: 20rem;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

#gallery .gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.gallery-prev, .gallery-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 10;
}

.gallery-prev:hover, .gallery-next:hover {
    background: white;
    transform: translateY(-50%) scale(1.1);
}

.gallery-prev {
    left: 1rem;
}

.gallery-next {
    right: 1rem;
}

.gallery-indicators {
    display: flex;
    justify-content: center;
    margin-top: 1.5rem;
}

.indicator {
    width: 0.75rem;
    height: 0.75rem;
    border-radius: 50%;
    background: #3b82f6;
    margin: 0 0.25rem;
    transition: opacity 0.3s ease;
    cursor: pointer;
}

.indicator.opacity-100 {
    opacity: 1;
}

.indicator.opacity-50 {
    opacity: 0.5;
}

.gallery-item {
    aspect-ratio: 4/3;
    background: #e9ecef;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6c757d;
    transition: all 0.3s ease;
    will-change: transform;
    height: 300px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.gallery-item:hover {
    transform: scale(1.03);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.gallery-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 12px;
    z-index: 1;
}

.gallery-item:hover::before {
    opacity: 1;
}

.gallery-placeholder i {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    display: block;
    position: relative;
    z-index: 2;
}

.pagination-container {
    grid-column: 1 / -1;
    display: flex;
    justify-content: center;
    margin-top: 1.5rem;
}

.pagination-btn {
    margin: 0 0.25rem;
    cursor: pointer;
}

/* Footer Styles */
footer {
    background: linear-gradient(135deg, #5b21b6, #7e22ce);
    color: white;
    padding: 2rem 0 1rem;
    box-shadow: 0 -5px 15px rgba(0, 0, 0, 0.1);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
    align-items: start;
    padding: 0 1rem;
}

.footer-section {
    min-width: 200px;
    text-align: left;
    padding: 0 1rem;
}

.footer-section h3 {
    margin-bottom: 1.25rem;
    color: #fff;
    font-size: 1.25rem;
    position: relative;
    font-weight: 600;
    display: flex;
    align-items: center;
}

.footer-section h3::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 30px;
    height: 2px;
    background: #f59e0b;
    border-radius: 1px;
}

.footer-section p {
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
}

.footer-section i {
    margin-right: 0.8rem;
    color: #f59e0b;
    width: 20px;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: #e2e8f0;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: #f59e0b;
}

.social-links {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
    justify-content: flex-start;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.social-links a:hover {
    background: #f59e0b;
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
}

.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    border-radius: 50%;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(59, 130, 246, 0.3);
    margin: 0 0.25rem;
}

.social-icon:hover {
    background: linear-gradient(135deg, #5b21b6, #3b82f6);
    transform: translateY(-5px) scale(1.15);
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.4);
}

.footer-logo h3 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    color: #93c5fd;
}

.footer-logo p {
    color: #ddd;
    font-style: italic;
}

.footer-logo-img {
    max-height: 60px;
    width: auto;
    display: block;
    margin: 1rem auto 0 auto;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #aaa;
    font-size: 0.9rem;
}

/* Responsive Design - Minimal custom styles, Tailwind handles most */
@media (max-width: 768px) and (min-width: 481px) {
    .gallery-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .sambutan-container {
        padding: 2rem;
    }
}

@media (max-width: 480px) {
    .section-title {
        font-size: 1.6rem;
    }
    
    .sambutan-container {
        flex-direction: column;
        padding: 1.5rem;
    }
    
    .sambutan-text p {
        font-size: 1rem;
    }
    
    .sambutan-text p:first-child,
    .sambutan-text p:last-child {
        font-size: 1.1rem;
    }
    
    .foto-placeholder {
        max-width: 100%;
        height: 280px;
    }
    
    .kegiatan-grid {
        grid-template-columns: 1fr;
    }
    
    .gallery-container {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
}
* {margin:0;padding:0;box-sizing:border-box;}
body {font-family:'Segoe UI',Arial,sans-serif;background:#f8fafc;color:#1e293b;padding:40px 20px;}
h1 {text-align:center;margin-bottom:10px;color:#1e40af;}
h2 {text-align:center;font-weight:400;color:#475569;margin-bottom:40px;}
.container {max-width:1200px;margin:0 auto;}
.level {margin:70px 0;text-align:center;}
.level-title {font-size:1.1em;color:#64748b;margin-bottom:20px;}
.cards {display:flex;flex-wrap:wrap;gap:24px;justify-content:center;}
.card {
  background:#fff;width:280px;border-radius:14px;overflow:hidden;
  box-shadow:0 6px 18px rgba(0,0,0,0.08);cursor:pointer;
  transition:transform .35s ease,box-shadow .35s ease;
}
.card:hover {transform:translateY(-14px);box-shadow:0 24px 48px rgba(0,0,0,0.18);}
.card img {width:100%;height:300px;object-fit:cover;background:#e2e8f0;}
.card-content {padding:20px 16px;}
.name {font-weight:700;font-size:1.15em;line-height:1.3;}
.nip {font-size:0.85em;color:#94a3b8;margin-top:6px;}
.title {font-size:0.95em;color:#64748b;margin-top:4px;font-style:italic;}

/* Warna tingkatan */
.level-1 .card {border-top:9px solid #8B1E2E;}
.level-2 .card {border-top:9px solid #1E40AF;}
.level-3 .card {border-top:9px solid #15803D;}
.level-4 .card {border-top:7px solid #FCD34D;width:260px;}
.level-4 .card:hover {transform:translateY(-10px);}

/* Struktur Organisasi Section */
#struktur-organisasi {
  background-color: #f8fafc;
  padding: 4rem 0;
}

#struktur-organisasi .section-title {
  color: #1e40af;
}

#struktur-organisasi h3 {
  font-size: 1.2rem;
  line-height: 1.6;
}

@media (max-width:768px){
  .card, .level-4 .card {width:100%;max-width:340px;}
  #struktur-organisasi h3 {
    font-size: 1rem;
  }
}

/* Map Section Styles */
#lokasi {
  padding: 4rem 0;
  background-color: white;
}

#lokasi .section-title {
  color: #1e3c72;
  margin-bottom: 2rem;
}

.map-container {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  margin-top: 1rem;
}

.map-container iframe {
  width: 100%;
  height: 450px;
  border: none;
}

.map-container p {
  font-size: 0.9rem;
  line-height: 1.5;
}

@media (max-width: 768px) {
  .map-container iframe {
    height: 300px;
  }
}

@media (max-width: 480px) {
  .map-container iframe {
    height: 250px;
  }
}

/* Pagination Styles */
.pagination-btn {
    background: linear-gradient(135deg, #3b82f6, #8b5cf6) !important;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    font-size: 0.875rem;
}

.pagination-btn:hover {
    background: linear-gradient(135deg, #5b21b6, #3b82f6) !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.pagination-btn.bg-green-600 {
    background: linear-gradient(135deg, #3b82f6, #8b5cf6) !important;
}

.pagination-btn.bg-green-700 {
    background: linear-gradient(135deg, #5b21b6, #3b82f6) !important;
}

/* Mobile Responsive Enhancements */

/* Mobile menu adjustments */
.mobile-menu-button {
    display: none;
    padding: 0.5rem;
}

#mobile-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(30, 64, 175, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 0 0 8px 8px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

@media (max-width: 768px) {
    .section-title {
        font-size: 1.8rem;
        padding: 0 1rem;
    }
    
    .section {
        padding: 3rem 0;
    }
    
    .container {
        padding: 0 1rem;
    }
    
    /* Navbar adjustments */
    nav {
        padding: 0.5rem 1rem;
    }
    
    .nav-links {
        flex-direction: column;
        gap: 0.5rem;
        align-items: flex-start;
    }
    
    .nav-links li {
        width: 100%;
    }
    
    .nav-links a {
        padding: 0.75rem 1rem;
        width: 100%;
    }
    
    /* Mobile menu button */
    .mobile-menu-button {
        display: block;
        z-index: 1001;
    }
    
    /* Hero section adjustments */
    .hero-content {
        padding: 1rem;
    }
    
    h1 {
        font-size: 1.8rem;
        line-height: 1.2;
    }
    
    /* Content adjustments */
    #tentang p, .sambutan-text p {
        font-size: 1rem;
        line-height: 1.6;
    }
    
    /* Visi Misi adjustments */
    .visi-misi-container {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .visi, .misi {
        min-width: 100%;
        padding: 1.5rem;
    }
    
    /* Sambutan section */
    .sambutan-container {
        flex-direction: column;
        padding: 1.5rem;
        gap: 1.5rem;
    }
    
    .kabid-foto {
        order: -1; /* Move photo above text on mobile */
    }
    
    /* Kegiatan section */
    .kegiatan-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .kegiatan-item {
        flex-direction: column;
        text-align: center;
    }
    
    .kegiatan-item .image-container {
        margin-right: 0;
        margin-bottom: 1rem;
        width: 100%;
    }
    
    /* Dokumentasi section */
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 1rem;
    }
    
    #dokumentasi .gallery-item {
        min-height: 140px;
    }
    
    .dokumentasi-container {
        padding: 1rem;
    }
    
    /* Footer adjustments */
    .footer-content {
        flex-direction: column;
        gap: 2rem;
    }
    
    .footer-section {
        text-align: center;
    }
    
    .social-links {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .section-title {
        font-size: 1.5rem;
    }
    
    h1 {
        font-size: 1.5rem;
    }
    
    h2 {
        font-size: 1.25rem;
    }
    
    /* Further reduce padding on small screens */
    section {
        padding: 2rem 0;
    }
    
    .sambutan-container {
        padding: 1rem;
    }
    
    .visi, .misi {
        padding: 1rem;
    }
    
    /* Adjust dokumentasi gallery for very small screens */
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: 0.75rem;
    }
    
    /* Adjust dokumentasi gallery items */
    .gallery-item {
        min-height: 120px;
    }
    
    /* Adjust card sizes */
    .kegiatan-item {
        padding: 1rem;
    }
    
    /* Footer links */
    .footer-section ul {
        padding-left: 0;
    }
    
    .footer-section li {
        margin-bottom: 0.5rem;
    }
}
