/* =========================
   LPPM PAGE STYLES
   ========================= */

/* Main Container Layout */
.lppm-page .container {
    display: flex;
    max-width: 1200px;
    margin: 80px auto 20px auto; /* Top margin for navbar */
    border: 1px solid #e0e0e0;
    border-radius: 15px;
    overflow: hidden;
    background-color: white;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

/* Sidebar Styling */
.lppm-page .sidebar {
    width: 30%;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 30px;
    border-right: 2px solid #dee2e6;
    position: relative;
}

.lppm-page .sidebar h2 {
    margin-bottom: 25px;
    font-weight: bold;
    color: #003f91;
    font-size: 24px;
    border-bottom: 3px solid #003f91;
    padding-bottom: 10px;
    position: relative;
}

.lppm-page .sidebar h2::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(135deg, #0066cc 0%, #003f91 100%);
    border-radius: 2px;
}

.lppm-page .sidebar ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

.lppm-page .sidebar li {
    padding: 12px 16px;
    cursor: pointer;
    position: relative;
    margin-bottom: 8px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.lppm-page .sidebar li:not(:last-child)::after {
    content: '';
    display: block;
    height: 1px;
    background: linear-gradient(90deg, #dee2e6 0%, transparent 100%);
    margin: 8px 0;
}

.lppm-page .sidebar a {
    text-decoration: none;
    color: #333;
    display: block;
    font-weight: 500;
    transition: all 0.3s ease;
}

.lppm-page .sidebar a:hover {
    color: #003f91;
    transform: translateX(5px);
}

/* Make Hubungi Kami bold by default */
.lppm-page .sidebar a[href*="hubungi"] {
    font-weight: bold !important;
    color: #003f91;
}

.lppm-page .sidebar li:hover {
    background: linear-gradient(135deg, rgba(0, 63, 145, 0.1) 0%, rgba(0, 102, 204, 0.1) 100%);
    transform: translateX(5px);
}

.lppm-page .sidebar li.active {
    background: linear-gradient(135deg, #003f91 0%, #0066cc 100%);
}

.lppm-page .sidebar li.active a {
    color: white;
    font-weight: bold;
}

/* Main Content Styling */
.lppm-page .main-content {
    width: 70%;
    padding: 40px;
    position: relative;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
}

.lppm-page .main-content h1 {
    color: #003f91;
    margin-bottom: 25px;
    font-size: 28px;
    font-weight: bold;
    border-bottom: 3px solid #003f91;
    padding-bottom: 15px;
    position: relative;
}

.lppm-page .main-content h1::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 80px;
    height: 3px;
    background: linear-gradient(135deg, #0066cc 0%, #003f91 100%);
    border-radius: 2px;
}

/* Hero Section */
.lppm-page .hero {
    position: relative;
    background: url('../Assets/llpm/Header LPPM.webp') no-repeat center center/cover;
    height: 60vh;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    text-align: center;
    color: rgb(0, 0, 0);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    border-bottom-left-radius: 30px;
    border-bottom-right-radius: 30px;
    overflow: hidden;
    animation: fadeIn 1s ease-in-out;
    margin-bottom: 30px;
}

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

.lppm-page .hero-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 2rem;
    font-weight: bold;
    color: #333;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    animation: slideIn 1.2s ease-out;
}

@keyframes slideIn {
    from { transform: translate(-50%, -70%); opacity: 0; }
    to { transform: translate(-50%, -50%); opacity: 1; }
}

.lppm-page .hero-button {
    position: absolute;
    z-index: 9999;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #e74c3c;
    color: white;
    border: none;
    padding: 15px 30px;
    font-size: 1rem;
    border-radius: 5px;
    cursor: pointer;
}

.lppm-page .hero-button:hover {
    background-color: #c0392b;
}

/* Services Section */
.lppm-page .services {
    position: relative;
    margin-top: -50px;
    padding: 40px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    background-color: #f4f4f4;
    border-radius: 50px;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
    max-width: 95%;
    margin-left: auto;
    margin-right: auto;
    z-index: 10;
}

.lppm-page .service-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 180px;
    text-align: center;
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
}

.lppm-page .service-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 15px;
    padding: 15px;
    transition: all 0.3s ease;
}

/* Active state for open item */
.lppm-page .service-item.active {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    background-color: rgba(0, 63, 145, 0.1);
    border-radius: 15px;
    padding: 15px;
    border: 2px solid #003f91;
}

.lppm-page .service-item img {
    width: 120px;
    height: auto;
    max-height: 120px;
    object-fit: contain;
    transition: transform 0.2s ease;
}

.lppm-page .service-item img:hover {
    transform: scale(1.2);
    filter: brightness(1.1);
    transition: all 0.3s ease;
}



/* Details Container */
.lppm-page #details-container {
    margin-top: 20px;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 12px;
    background-color: #f9f9f9;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.lppm-page #details-title {
    text-align: left;
    color: #23397e;
    border-bottom: 2px solid #23397e;
    padding-bottom: 10px;
}

.lppm-page #details-content {
    text-align: left;
    line-height: 1.6;
}

.lppm-page #details-container button {
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin: 5px;
}

.lppm-page button[onclick="hideDetails()"] {
    background-color: #e74c3c;
    color: white;
}

.lppm-page button[onclick="hideDetails()"]:hover {
    background-color: #c0392b;
}

/* Link styling */
.lppm-page a {
    color: #23397e;
    text-decoration: none;
    transition: color 0.3s ease;
}

.lppm-page a:hover {
    color: #3498db;
    text-decoration: underline;
}

/* Button hover effects */
.lppm-page button {
    transition: all 0.3s ease;
}

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

/* Responsive Design */
@media (max-width: 768px) {
    .lppm-page .container {
        flex-direction: column;
        margin: 80px 15px 20px 15px;
    }
    
    .lppm-page .sidebar {
        width: 100%;
        border-right: none;
        border-bottom: 2px solid #dee2e6;
        padding: 20px;
    }
    
    .lppm-page .main-content {
        width: 100%;
        padding: 25px;
    }
    
    .lppm-page .hero {
        height: 30vh;
    }
    
    .lppm-page .services {
        margin-top: -20px;
        padding: 20px;
        border-radius: 30px;
    }
    
    .lppm-page .service-item {
        width: 140px;
    }
    
            .lppm-page .service-item img {
            width: 80px;
            height: auto;
            max-height: 80px;
            object-fit: contain;
        }
    
    .lppm-page .sidebar h2 {
        font-size: 20px;
    }
    
    .lppm-page .main-content h1 {
        font-size: 24px;
    }
}

@media (max-width: 480px) {
    .lppm-page .container {
        margin: 80px 10px 15px 10px;
        border-radius: 10px;
    }
    
    .lppm-page .sidebar {
        padding: 15px;
    }
    
    .lppm-page .main-content {
        padding: 20px;
    }
    
    .lppm-page .hero {
        height: 20vh;
    }
    
    .lppm-page .services {
        margin-top: -15px;
        padding: 20px;
    }
    
    .lppm-page .service-item {
        width: 120px;
    }
    
            .lppm-page .service-item img {
            width: 70px;
            height: auto;
            max-height: 70px;
            object-fit: contain;
        }
    

    
    .lppm-page .sidebar h2 {
        font-size: 18px;
    }
    
    .lppm-page .main-content h1 {
        font-size: 20px;
    }
}

/* iPhone specific */
@media only screen 
and (min-device-width: 375px) 
and (max-device-width: 812px) 
and (-webkit-min-device-pixel-ratio: 3) { 
    .lppm-page .hero {
        height: 18vh;
    }
}

/* Very small devices */
@media (max-width: 320px) {
    .lppm-page .hero {
        height: 15vh;
    }
    
    .lppm-page .services {
        margin-top: -10px;
        padding: 10px;
        gap: 8px;
    }
    
    .lppm-page .service-item {
        width: 80px;
    }
    
            .lppm-page .service-item img {
            width: 60px;
            height: auto;
            max-height: 60px;
            object-fit: contain;
        }
    
    
}

/* Landscape mode */
@media (max-width: 896px) and (orientation: landscape) {
    .lppm-page .hero {
        height: 60vh;
    }
    
    .lppm-page .services {
        margin-top: -25px;
        padding: 20px;
        gap: 15px;
    }
    
    .lppm-page .service-item {
        width: 120px;
    }
    
    .lppm-page .service-item img {
        width: 80px;
        height: auto;
        max-height: 80px;
        object-fit: contain;
    }
}
