/* ==========================================
   CORPORATE GOVERNANCE PAGE STYLES
   ========================================== */

/* Reset untuk body */
body {
    overflow-y: auto !important;
    overflow-x: hidden;
}

/* Main Content Section */
.corporate-section {
    width: 100%;
    min-height: calc(100vh - 96px - 384px);
    padding: 80px 0 120px 0;
    background-color: white;
}

.corporate-container {
    max-width: 1296px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 384px 1fr;
    gap: 3rem;
}

/* === SIDEBAR NAVIGATION === */
.corporate-sidebar {
    position: sticky;
    top: 120px;
    height: fit-content;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    max-width: 384px;
}

.sidebar-link {
    padding: 1rem 0;
    font-size: 1rem;
    font-weight: 400;
    color: #000;
    text-decoration: none;
    transition: all 0.3s ease;
    outline: none;
    position: relative;

    /* Fix teks panjang agar turun ke bawah, tidak overflow */
    white-space: normal;
    word-wrap: break-word;
    overflow-wrap: break-word;
    display: block;
    padding-right: 1.5rem;
}

.sidebar-link::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 85%;
    height: 1px;
    background: #000;
}

.sidebar-link.active {
    color: #dc2626;
    font-weight: 600;
}

.sidebar-link:hover {
    color: #dc2626;
    padding-left: 0.5rem;
}

.sidebar-link:focus {
    outline: none;
}

/* === MAIN CONTENT AREA === */
.corporate-content {
    flex: 1;
    min-width: 0;
}

.content-section {
    display: none;
}

.content-section.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

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

.section-title {
    font-family: "Poppins", sans-serif;
    font-size: 20px;
    font-weight: 600;
    line-height: 1.4;
    color: #000000;
    margin: 0 0 24px 0;
    padding-bottom: 12px;
    position: relative;
}

.section-title::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 56px;
    height: 3px;
    background-color: #dc2626;
}

.content-text {
    font-family: "Poppins", sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.8;
    color: #000000;
    text-align: justify;
}

.content-text p {
    margin: 0 0 24px 0;
}

.content-text p:last-child {
    margin-bottom: 0;
}

/* === RESPONSIVE DESIGN === */
@media (max-width: 1024px) {
    .corporate-container {
        padding: 0 2rem;
        grid-template-columns: 300px 1fr;
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .corporate-section {
        padding: 60px 0 80px 0;
    }

    .corporate-container {
        grid-template-columns: 1fr;
        padding: 0 1rem;
    }

    .corporate-sidebar {
        position: static;
        top: auto;
        order: 1;
        margin-top: 0;
    }

    .corporate-content {
        order: 2;
    }

    .sidebar-nav {
        max-width: 100%;
        background: white;
        border: 1px solid #e5e7eb;
        border-radius: 8px;
        padding: 0.5rem;
    }

    .sidebar-link {
        padding: 0.875rem 1rem;
        font-size: 0.9375rem;
        border-radius: 6px;
    }

    .sidebar-link::after {
        display: none;
    }

    .sidebar-link.active {
        background: rgba(220, 38, 38, 0.1);
    }

    .sidebar-link:hover {
        padding-left: 1rem;
        background: rgba(220, 38, 38, 0.05);
    }

    .content-text {
        font-size: 15px;
    }

    .section-title {
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    .corporate-section {
        padding: 40px 0 60px 0;
    }

    .corporate-container {
        padding: 0 1rem;
    }

    .sidebar-link {
        font-size: 0.9375rem;
    }

    .content-text {
        font-size: 14px;
        line-height: 1.6;
    }

    .section-title {
        font-size: 16px;
    }
}
