/* === RESET & BASE === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
}

.container {
    max-width: 85%;
    margin: 0 auto;
    padding: 0 2rem;
}

/* === UTILITIES === */
.btn {
    padding: 15px 30px;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-primary {
    background: linear-gradient(135deg, #f39c12, #e67e22);
    color: white;
    box-shadow: 0 4px 15px rgba(243, 156, 18, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(243, 156, 18, 0.4);
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.btn-secondary:hover {
    background: white;
    color: #3498db;
}

.btn-outline {
    background: transparent;
    color: #3498db;
    border: 2px solid #3498db;
    padding: 12px 25px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn:hover,
.btn-outline:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

.btn-outline:hover {
    background: #3498db;
    color: white;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title h2 {
    font-size: 2.5rem;
    color: #2c3e50;
    margin-bottom: 1rem;
}

.section-title p {
    font-size: 1.1rem;
    color: #7f8c8d;
}

.scroll-animate {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease;
}

.scroll-animate.active {
    opacity: 1;
    transform: translateY(0);
}

/* === HEADER & NAVIGATION === */
.header {
    background: linear-gradient(135deg, #2c3e50, #3498db);
    color: white;
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-img {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.logo-text {
    font-size: 1.2em;
    font-weight: bold;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 5px;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: #f39c12;
    transform: translateY(-2px);
}

.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background: white;
    margin: 3px 0;
    transition: 0.3s;
}

/* === PAGE HEADER === */
.page-header {
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), 
                url('../images/header1.jpg');
    background-size: cover;
    background-position: center;
    height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    margin-top: 70px;
}

.page-header-content h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.page-header-content p {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 600px;
}

/* === BREADCRUMB === */
.breadcrumb {
    background: #f8f9fa;
    padding: 1rem 0;
    border-bottom: 1px solid #e9ecef;
}

.breadcrumb-content {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #6c757d;
    font-size: 0.9rem;
}

.breadcrumb-content a {
    color: #3498db;
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb-content a:hover {
    color: #2980b9;
}

/* === PROFILE SECTIONS === */
.profile-section {
    padding: 4rem 0;
}

.profile-section:nth-child(even) {
    background: #f8f9fa;
}

.profile-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    margin-bottom: 3rem;
}

.profile-text h3 {
    font-size: 2rem;
    color: #2c3e50;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.profile-text p {
    margin-bottom: 1.5rem;
    color: #555;
    text-align: justify;
    line-height: 1.8;
}

.profile-image {
            height: 350px;
            border-radius: 15px;
            background-size: cover;
            background-position: center;
            background-repeat: no-repeat; /* TAMBAHKAN INI */
            box-shadow: 0 10px 30px rgba(0,0,0,0.3);
            transition: transform 0.3s ease;
            border: 2px solid red; /* DEBUG: Border untuk melihat posisi div */
            margin: 20px 0;
        }

        .profile-image:hover {
            transform: scale(1.02);
        }
/* === VISION MISSION === */
.vision-mission {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 2rem;
}

.vision-card, .mission-card {
    background: white;
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    border-left: 5px solid #3498db;
    transition: transform 0.3s ease;
}

.vision-card:hover, .mission-card:hover {
    transform: translateY(-5px);
}

.vision-card h4, .mission-card h4 {
    color: #2c3e50;
    margin-bottom: 1rem;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.vision-card p, .mission-card p {
    color: #666;
    line-height: 1.7;
}

/* === DEMOGRAPHICS === */
.demographics {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    padding: 4rem 0;
}

.demo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.demo-item {
    background: rgba(255,255,255,0.1);
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
    transition: transform 0.3s ease;
}

.demo-item:hover {
    transform: translateY(-5px);
    background: rgba(255,255,255,0.15);
}

.demo-item i {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #f39c12;
}

.demo-item h4 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.demo-item p {
    opacity: 0.9;
}

/* === FACILITIES === */
.facilities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.facility-card {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.facility-card:hover {
    transform: translateY(-8px);
    border-color: #3498db;
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
}

.facility-icon {
    font-size: 2.5rem;
    color: #e67e22;
    margin-bottom: 0.8rem;
}

.facility-card h4 {
    color: #2c3e50;
    margin-bottom: 0.8rem;
    font-size: 1.1rem;
}

.facility-card p {
    color: #666;
    font-size: 0.85rem;
}

/* === GOVERNMENT STRUCTURE - PERBAIKAN === */
.government-structure {
    text-align: center;
    margin-top: 40px;
    padding: 2rem 0;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.structure-image {
    max-width: 90%;
    width: auto;
    height: auto;
    display: block;
    margin: 0 auto;
    border-radius: 15px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.structure-image:hover {
    transform: scale(1.02);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

/* === UMKM SECTION === */
/* === UMKM SECTION === */
#umkm {
    background: #f8f9fa;
}

.umkm-categories {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* Force 4 columns */
    gap: 1.5rem;
    margin-top: 2rem;
}

.umkm-category {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    min-height: 300px; /* Consistent height */
}

.umkm-category:hover {
    transform: translateY(-8px);
}

.umkm-category h4 {
    color: #2c3e50;
    margin-bottom: 0.8rem;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 8px;
    line-height: 1.3;
}

.umkm-category i {
    color: #e67e22;
    font-size: 1.3rem;
    flex-shrink: 0; /* Prevent icon shrinking */
}

.umkm-category p {
    font-size: 0.9rem;
    line-height: 1.4;
    color: #666;
    margin-bottom: 1rem;
}

.umkm-list {
    list-style: none;
    margin-top: 0.8rem;
}

.umkm-list li {
    padding: 0.4rem 0;
    border-bottom: 1px solid #eee;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #666;
    font-size: 0.85rem;
    line-height: 1.3;
}

.umkm-list li:last-child {
    border-bottom: none;
}

.umkm-list i {
    color: #3498db;
    font-size: 0.7rem;
    flex-shrink: 0;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .umkm-categories {
        grid-template-columns: repeat(2, 1fr); /* 2 columns on medium screens */
        gap: 1.2rem;
    }
    
    .umkm-category {
        padding: 1.3rem;
    }
}

@media (max-width: 768px) {
    .umkm-categories {
        grid-template-columns: 1fr; /* Single column on mobile */
        gap: 1rem;
    }
    
    .umkm-category {
        padding: 1.2rem;
        min-height: auto;
    }
    
    .umkm-category h4 {
        font-size: 1.05rem;
    }
    
    .umkm-list li {
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .umkm-category {
        padding: 1rem;
    }
    
    .umkm-category h4 {
        font-size: 1rem;
        gap: 6px;
    }
    
    .umkm-category i {
        font-size: 1.2rem;
    }
}

/* === LEADERSHIP === */
.leadership-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.leader-card {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.leader-card:hover {
    transform: translateY(-10px);
}

.leader-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3498db, #2980b9);
    margin: 0 auto 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: white;
}

.leader-card h4 {
    color: #2c3e50;
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.leader-card .position {
    color: #3498db;
    font-weight: bold;
    margin-bottom: 1rem;
}

.leader-card p {
    color: #666;
    font-size: 0.9rem;
}

/* === INFO CARDS === */
.info-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.info-card {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    border-left: 5px solid #e67e22;
}

.info-card:hover {
    transform: translateY(-5px);
}

.info-card h4 {
    color: #2c3e50;
    margin-bottom: 1rem;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.info-card i {
    color: #e67e22;
    font-size: 1.3rem;
}

.info-list {
    list-style: none;
}

.info-list li {
    padding: 0.3rem 0;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #666;
    font-size: 0.9rem;
}

.info-list i {
    color: #3498db;
    font-size: 0.7rem;
    width: 10px;
}

/* === IMPROVED COMPACT FOOTER (SAME AS ORIGINAL) === */
.footer {
    background: linear-gradient(135deg, #2c3e50, #34495e);
    color: white;
    padding: 2.5rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section {
    position: relative;
}

.footer-section h3 {
    color: #3498db;
    margin-bottom: 1rem;
    font-size: 1.1rem;
    font-weight: 700;
    border-bottom: 2px solid #3498db;
    padding-bottom: 0.3rem;
    display: inline-block;
}

.footer-info {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-info p {
    color: #bdc3c7;
    font-size: 0.9rem;
    line-height: 1.5;
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
}

.footer-info i {
    color: #3498db;
    width: 16px;
    text-align: center;
    font-size: 0.9rem;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-links a {
    color: #bdc3c7;
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 3px 0;
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: #3498db;
    padding-left: 8px;
}

.footer-links i {
    color: #3498db;
    width: 16px;
    text-align: center;
    font-size: 0.85rem;
}

.footer-hours {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.hours-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.3rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    font-size: 0.85rem;
}

.hours-item:last-child {
    border-bottom: none;
}

.hours-label {
    color: #3498db;
    font-weight: 600;
}

.hours-time {
    color: #bdc3c7;
}

.social-links {
    display: flex;
    gap: 0.8rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.social-links a {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    box-shadow: 0 3px 10px rgba(52, 152, 219, 0.3);
}

.social-links a:hover {
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 6px 20px rgba(52, 152, 219, 0.5);
}

.footer-bottom {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 2px solid #34495e;
    color: #bdc3c7;
}

.footer-bottom p {
    margin-bottom: 0.5rem;
    font-size: 0.85rem;
}

.footer-bottom-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.footer-bottom-links a {
    color: #bdc3c7;
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 0.8rem;
}

.footer-bottom-links a:hover {
    color: #3498db;
}

/* === RESPONSIVE DESIGN === */
@media (max-width: 1024px) {
    .government-structure {
        padding: 1.5rem 0;
    }
    
    .structure-image {
        max-width: 95%;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }

    .logo-img {
        width: 32px;
        height: 32px;
    }
    
    .logo-text {
        font-size: 1em;
    }

    .menu-toggle {
        display: flex;
    }

    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: #2c3e50;
        flex-direction: column;
        padding: 1rem;
        gap: 1rem;
        box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    }

    .nav-menu.active {
        display: flex;
    }

    .page-header-content h1 {
        font-size: 2.5rem;
    }

    .page-header-content p {
        font-size: 1rem;
    }

    .profile-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .government-structure {
        text-align: center;
        margin-top: 20px;
        padding: 1rem 0;
    }
    
    .structure-image {
        max-width: 98%;
        border-radius: 10px;
    }

    .vision-mission {
        grid-template-columns: 1fr;
    }

    .demo-grid,
    .facilities-grid,
    .leadership-grid,
    .info-cards {
        grid-template-columns: 1fr;
    }

    .umkm-categories {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .footer-bottom-links {
        flex-direction: column;
        gap: 0.8rem;
    }
}

@media (max-width: 480px) {
    .section-title h2 {
        font-size: 2rem;
    }

    .page-header-content h1 {
        font-size: 2rem;
    }

    .profile-text h3 {
        font-size: 1.5rem;
    }

    .government-structure {
        margin-top: 15px;
        padding: 0.5rem 0;
    }
    
    .structure-image {
        max-width: 100%;
        border-radius: 8px;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }
}