/* ========================================
   KPF NIAGA - MAIN STYLE SHEET VERSION 4
   CSS konsisten untuk semua halaman
   Version: 4.0 (Tanpa FAB)
   ======================================== */

/* ========================================
   CSS Variables & Reset - KONSISTEN
   ======================================== */
:root {
    /* Color Palette - KONSISTEN untuk semua halaman */
    --primary-maroon: #8B0000;           /* Maroon utama */
    --dark-maroon: #691B1B;             /* Maroon gelap */
    --orange: #FF8C00;                  /* Oren */
    --light-orange: #FFE4B5;            /* Oren muda */
    --white: #FFFFFF;                   /* Putih */
    --light-gray: #F5F5F5;              /* Kelabu muda untuk latar */
    --dark-gray: #333333;               /* Kelabu gelap untuk teks */
    --shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 10px 30px rgba(0, 0, 0, 0.2);
    --transition: all 0.3s ease;
    --transition-slow: all 0.5s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--light-gray);
    color: var(--dark-gray);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    overflow-x: hidden;
}

/* ========================================
   SIDEBAR NAVIGATION - KONSISTEN
   ======================================== */
.sidebar {
    width: 280px;
    background: linear-gradient(180deg, var(--primary-maroon) 0%, var(--dark-maroon) 100%);
    min-height: 100vh;
    position: fixed;
    left: 0;
    top: 0;
    z-index: 1000;
    transition: var(--transition);
    box-shadow: 3px 0 20px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    border-right: 3px solid var(--orange);
}

.sidebar-logo {
    padding: 30px 20px;
    text-align: center;
    border-bottom: 2px solid rgba(255, 140, 0, 0.2);
    background: linear-gradient(45deg, rgba(139, 0, 0, 0.9), rgba(105, 27, 27, 0.9));
    position: relative;
    overflow: hidden;
}

.sidebar-logo::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 140, 0, 0.1) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
}

.logo-container {
    position: relative;
    z-index: 1;
}

.sidebar-logo a {
    color: var(--white);
    font-size: 32px;
    font-weight: 800;
    text-decoration: none;
    display: block;
    letter-spacing: 2px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    transition: var(--transition);
    position: relative;
    z-index: 1;
}

.sidebar-logo a:hover {
    color: var(--orange);
    transform: scale(1.05);
    text-shadow: 0 0 20px rgba(255, 140, 0, 0.5);
}

.logo-subtitle {
    color: var(--orange);
    font-size: 14px;
    margin-top: 8px;
    letter-spacing: 3px;
    font-weight: 300;
    position: relative;
    z-index: 1;
    text-transform: uppercase;
}

.sidebar-nav {
    flex: 1;
    padding: 30px 0;
    overflow-y: auto;
}

.sidebar-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-nav li {
    margin-bottom: 5px;
    position: relative;
}

.sidebar-nav li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, rgba(255, 140, 0, 0.1), transparent);
    transition: var(--transition);
}

.sidebar-nav li:hover::before {
    width: 100%;
}

.sidebar-nav li a {
    display: flex;
    align-items: center;
    color: rgba(255, 255, 255, 0.95);
    text-decoration: none;
    padding: 18px 25px;
    font-size: 16px;
    font-weight: 500;
    transition: var(--transition);
    border-left: 5px solid transparent;
    position: relative;
    z-index: 1;
}

.sidebar-nav li a i {
    font-size: 20px;
    margin-right: 15px;
    width: 24px;
    text-align: center;
    transition: var(--transition);
}

.sidebar-nav li a:hover {
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--orange);
    border-left-color: var(--orange);
    padding-left: 30px;
    transform: translateX(5px);
}

.sidebar-nav li a:hover i {
    transform: scale(1.2);
    color: var(--orange);
}

.sidebar-nav li a.active {
    background: linear-gradient(90deg, rgba(255, 140, 0, 0.15), transparent);
    color: var(--orange);
    border-left-color: var(--orange);
    font-weight: 600;
    box-shadow: inset 0 0 10px rgba(255, 140, 0, 0.1);
}

.sidebar-nav li.has-submenu > a::after {
    content: '▸';
    margin-left: auto;
    transition: transform 0.3s ease;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
}

.sidebar-nav li.has-submenu.active > a::after {
    transform: rotate(90deg);
    color: var(--orange);
}

.submenu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    background-color: rgba(0, 0, 0, 0.15);
    border-left: 3px solid var(--orange);
    margin-left: 15px;
    border-radius: 0 0 10px 0;
}

.submenu.show {
    max-height: 500px;
}

.submenu li a {
    padding-left: 50px !important;
    font-size: 14px;
    opacity: 0.9;
    border-left: 3px solid transparent;
}

.submenu li a:hover {
    opacity: 1;
    background-color: rgba(255, 255, 255, 0.03);
    border-left-color: var(--orange);
}

.sidebar-footer {
    padding: 25px 20px;
    border-top: 1px solid rgba(255, 140, 0, 0.2);
    text-align: center;
    background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.2));
}

.sidebar-footer p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 13px;
    margin: 8px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.sidebar-footer p i {
    color: var(--orange);
    font-size: 14px;
}

.sidebar-toggle {
    display: none;
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 1100;
    background: linear-gradient(45deg, var(--primary-maroon), var(--dark-maroon));
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 22px;
    box-shadow: 0 4px 15px rgba(139, 0, 0, 0.3);
    transition: var(--transition);
    animation: pulse 2s infinite;
}

.sidebar-toggle:hover {
    background: linear-gradient(45deg, var(--dark-maroon), var(--primary-maroon));
    transform: scale(1.1);
    box-shadow: 0 0 20px rgba(255, 140, 0, 0.5);
}

/* ========================================
   MAIN CONTENT - KONSISTEN
   ======================================== */
.main-content {
    flex: 1;
    margin-left: 280px;
    min-height: 100vh;
    transition: var(--transition);
    background-color: var(--light-gray);
}

/* ========================================
   TOP HEADER dengan Logo - KONSISTEN
   ======================================== */
.top-header {
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.98));
    backdrop-filter: blur(10px);
    padding: 20px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    position: sticky;
    top: 0;
    z-index: 900;
    border-bottom: 3px solid var(--orange);
}

.header-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.header-logo {
    display: flex;
    align-items: center;
}

.header-logo-img {
    height: 60px;
    width: auto;
    object-fit: contain;
    transition: var(--transition);
    filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.1));
}

.header-logo-img:hover {
    transform: scale(1.05);
    filter: drop-shadow(2px 2px 8px rgba(139, 0, 0, 0.3));
}

.header-text {
    display: flex;
    flex-direction: column;
}

.header-left h1 {
    color: var(--primary-maroon);
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 5px;
    background: linear-gradient(45deg, var(--primary-maroon), var(--dark-maroon));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
}

.header-left p {
    color: var(--dark-gray);
    font-size: 15px;
    opacity: 0.9;
    font-weight: 300;
    line-height: 1.4;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* ========================================
   SOCIAL MEDIA ICONS DI HEADER
   ======================================== */
.header-social-icons {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-right: 15px;
}

.header-social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(45deg, var(--primary-maroon), var(--dark-maroon));
    color: white;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 16px;
    box-shadow: 0 3px 10px rgba(139, 0, 0, 0.2);
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.header-social-icon::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.header-social-icon:hover::before {
    width: 150%;
    height: 150%;
}

.header-social-icon:hover {
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 8px 20px rgba(139, 0, 0, 0.3);
    background: linear-gradient(45deg, var(--dark-maroon), var(--primary-maroon));
    border-color: var(--orange);
}

.header-social-icon.facebook:hover {
    background: linear-gradient(45deg, #1877F2, #0A5BC4);
    box-shadow: 0 8px 20px rgba(24, 119, 242, 0.3);
}

.header-social-icon.twitter:hover {
    background: linear-gradient(45deg, #1DA1F2, #0C8BD6);
    box-shadow: 0 8px 20px rgba(29, 161, 242, 0.3);
}

.header-social-icon.instagram:hover {
    background: linear-gradient(45deg, #E4405F, #C13584);
    box-shadow: 0 8px 20px rgba(228, 64, 95, 0.3);
}

.header-social-icon.linkedin:hover {
    background: linear-gradient(45deg, #0A66C2, #084D9E);
    box-shadow: 0 8px 20px rgba(10, 102, 194, 0.3);
}

/* Tooltip untuk ikon */
.header-social-icon::after {
    content: attr(title);
    position: absolute;
    bottom: -35px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
}

.header-social-icon:hover::after {
    opacity: 1;
    visibility: visible;
    bottom: -30px;
}

/* Responsive untuk header social icons */
@media (max-width: 1200px) {
    .header-social-icon {
        width: 34px;
        height: 34px;
        font-size: 15px;
    }
}

@media (max-width: 992px) {
    .header-social-icons {
        display: none;
    }
}

@media (max-width: 768px) {
    .top-header {
        flex-direction: column;
        gap: 15px;
        padding: 15px 20px;
    }
    
    .header-left {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 10px;
    }
    
    .header-right {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .header-social-icons {
        display: flex;
        order: 2;
        margin: 10px 0 0 0;
        justify-content: center;
        width: 100%;
        gap: 15px;
    }
    
    .header-social-icon {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }
    
    .admin-btn {
        order: 1;
    }
}

@media (max-width: 480px) {
    .header-social-icons {
        gap: 10px;
    }
    
    .header-social-icon {
        width: 36px;
        height: 36px;
        font-size: 16px;
    }
}

/* ========================================
   ADMIN BUTTON STYLE
   ======================================== */
.admin-btn {
    padding: 10px 20px !important;
    font-size: 14px !important;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
}

/* ========================================
   CONTENT CONTAINER - KONSISTEN
   ======================================== */
.content-container {
    padding: 40px;
    max-width: 1600px;
    margin: 0 auto;
}

/* ========================================
   BUTTONS - KONSISTEN
   ======================================== */
.btn {
    display: inline-block;
    background: linear-gradient(45deg, var(--primary-maroon), var(--dark-maroon));
    color: white;
    padding: 15px 35px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    font-size: 16px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(139, 0, 0, 0.3);
    border: 2px solid transparent;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.btn:hover::before {
    left: 100%;
}

.btn:hover {
    background: linear-gradient(45deg, var(--dark-maroon), var(--primary-maroon));
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(139, 0, 0, 0.4);
    border-color: var(--orange);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary-maroon);
    color: var(--primary-maroon);
}

.btn-outline:hover {
    background: var(--primary-maroon);
    color: white;
}

.btn-view-more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    background: linear-gradient(45deg, var(--orange), #ffb347);
    color: var(--primary-maroon);
    padding: 18px 45px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    font-size: 18px;
    box-shadow: 0 10px 30px rgba(255, 140, 0, 0.5);
    position: relative;
    overflow: hidden;
    z-index: 1;
    min-width: 300px;
    border: 3px solid rgba(255, 255, 255, 0.4);
    animation: pulse 2s infinite;
}

.btn-view-more::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.8s ease;
    z-index: -1;
}

.btn-view-more:hover::before {
    left: 100%;
}

.btn-view-more:hover {
    background: linear-gradient(45deg, #ffb347, var(--orange));
    transform: translateY(-8px) scale(1.05);
    box-shadow: 0 15px 40px rgba(255, 140, 0, 0.7);
    color: var(--white);
    border-color: var(--white);
    animation: none;
}

.btn-read-more {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(45deg, var(--primary-maroon), var(--dark-maroon));
    color: white;
    padding: 12px 25px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    font-size: 14px;
    box-shadow: 0 3px 10px rgba(139, 0, 0, 0.2);
}

.btn-read-more:hover {
    background: linear-gradient(45deg, var(--dark-maroon), var(--primary-maroon));
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(139, 0, 0, 0.3);
    gap: 15px;
}

/* ========================================
   SECTION HEADERS - KONSISTEN
   ======================================== */
.section-header {
    text-align: center;
    margin-bottom: 60px;
    position: relative;
}

.section-title {
    font-size: 42px;
    color: var(--primary-maroon);
    margin-bottom: 15px;
    font-weight: 800;
    position: relative;
    display: inline-block;
    padding-bottom: 20px;
}

.section-title::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 150px;
    height: 6px;
    background: linear-gradient(90deg, transparent, var(--orange), transparent);
    border-radius: 3px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 6px;
    background-color: var(--primary-maroon);
    border-radius: 3px;
}

.section-subtitle {
    color: var(--dark-gray);
    font-size: 20px;
    max-width: 800px;
    margin: 0 auto;
    opacity: 0.8;
    font-weight: 300;
}

/* ========================================
   FOOTER - KONSISTEN
   ======================================== */
.footer {
    background: linear-gradient(180deg, var(--primary-maroon) 0%, var(--dark-maroon) 100%);
    color: white;
    padding: 40px 20px;
    text-align: center;
    margin-top: 80px;
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--orange), var(--primary-maroon), var(--orange));
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.footer-logo {
    margin-bottom: 20px;
}

.footer-logo-img {
    height: 60px;
    width: auto;
    filter: brightness(0) invert(1);
}

.footer-description {
    max-width: 600px;
    margin: 10px auto;
    opacity: 0.9;
    line-height: 1.6;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin: 20px 0;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.social-links a:hover {
    background: var(--orange);
    color: var(--primary-maroon);
    transform: translateY(-3px);
    border-color: var(--orange);
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin: 20px 0;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--light-orange);
    text-decoration: none;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-links a:hover {
    color: var(--orange);
    transform: translateY(-2px);
}

.copyright {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 14px;
    opacity: 0.9;
}

.copyright p {
    margin: 5px 0;
}

.update-date {
    margin-top: 5px;
    font-size: 13px;
}

/* ========================================
   SPECIAL ELEMENTS - KONSISTEN (TANPA FAB)
   ======================================== */

/* ========================================
   ANIMATIONS - KONSISTEN (TANPA FLOAT)
   ======================================== */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from { transform: translateY(30px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(255, 140, 0, 0.6); }
    70% { box-shadow: 0 0 0 15px rgba(255, 140, 0, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 140, 0, 0); }
}

@keyframes iconSlideIn {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ========================================
   RESPONSIVE DESIGN - KONSISTEN
   ======================================== */
@media (max-width: 1200px) {
    .sidebar {
        width: 250px;
    }
    .main-content {
        margin-left: 250px;
    }
    .header-logo-img {
        height: 50px;
    }
    .header-left h1 {
        font-size: 24px;
    }
    .section-title {
        font-size: 38px;
    }
}

@media (max-width: 992px) {
    .sidebar {
        transform: translateX(-100%);
        width: 300px;
        box-shadow: none;
    }
    .sidebar.show {
        transform: translateX(0);
        box-shadow: 0 0 50px rgba(0, 0, 0, 0.5);
    }
    .main-content {
        margin-left: 0;
    }
    .sidebar-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
    }
    .section-title {
        font-size: 36px;
    }
    .header-left {
        gap: 15px;
    }
    .header-logo-img {
        height: 45px;
    }
    .header-left h1 {
        font-size: 22px;
    }
    .header-left p {
        font-size: 14px;
    }
    .footer-links a {
        padding: 10px 12px;
        font-size: 14px;
    }
    .footer-links a i {
        font-size: 16px;
    }
}

@media (max-width: 768px) {
    .top-header {
        padding: 15px 20px;
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    .header-left {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 10px;
    }
    .header-text {
        align-items: center;
    }
    .header-right {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
    }
    .section-title {
        font-size: 30px;
    }
    .content-container {
        padding: 20px;
    }
    .footer {
        padding: 30px 15px;
        margin-top: 60px;
    }
    .footer-logo-img {
        height: 50px;
    }
    .footer-description {
        font-size: 14px;
    }
    .footer-links {
        gap: 20px;
        flex-direction: column;
    }
    .social-links a {
        width: 35px;
        height: 35px;
        font-size: 14px;
    }
    .btn-view-more {
        padding: 16px 35px;
        font-size: 16px;
        min-width: 250px;
    }
}

@media (max-width: 480px) {
    .section-title {
        font-size: 26px;
    }
    .footer {
        padding: 25px 10px;
    }
    .footer-logo-img {
        height: 40px;
    }
    .footer-links {
        gap: 15px;
    }
    .footer-links a {
        font-size: 14px;
    }
    .social-links a {
        width: 32px;
        height: 32px;
        font-size: 13px;
    }
    .copyright p {
        font-size: 13px;
    }
    .update-date {
        font-size: 12px;
    }
    .btn-view-more {
        padding: 14px 25px;
        font-size: 15px;
        min-width: 200px;
    }
}

/* ========================================
   UTILITY CLASSES - KONSISTEN
   ======================================== */
.text-center { text-align: center; }
.text-orange { color: var(--orange); }
.text-maroon { color: var(--primary-maroon); }
.text-gray { color: var(--dark-gray); }
.mt-20 { margin-top: 20px; }
.mt-30 { margin-top: 30px; }
.mt-40 { margin-top: 40px; }
.mb-20 { margin-bottom: 20px; }
.mb-30 { margin-bottom: 30px; }
.mb-40 { margin-bottom: 40px; }