/* ==========================================
   INVESTOR RELATIONS PAGE STYLES
   ========================================== */

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

/* Main Section */
.investor-section {
    width: 100%;
    min-height: 100vh;
    padding: 80px 0 120px 0;
    background-color: white;
}

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

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

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

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

.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 === */
.investor-content {
    flex: 1;
    min-width: 0;
}

.content-section {
    display: none;
}

.content-section.active {
    display: block;
    animation: fadeIn 0.4s 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;
    color: #000000;
    margin: 0 0 40px 0;
    line-height: 1.3;
    position: relative;
    padding-bottom: 12px;
}

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

.section-description {
    font-family: "Poppins", sans-serif;
    font-size: 16px;
    font-weight: 400;
    color: #71717a;
    margin: -32px 0 40px 0;
    line-height: 1.6;
}

/* === ANNUAL REPORTS GRID === */
.annual-reports-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px 30px;
    margin: 40px 0;
}

.annual-report-item {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.annual-report-cover {
    width: 100%;
    aspect-ratio: 225/318;
    border: 1px solid #000000;
    overflow: hidden;
    background-color: #f5f5f4;
}

.annual-report-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.annual-report-year {
    font-family: "Poppins", sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: #a1a1aa;
    margin: 0;
}

.annual-report-title {
    font-family: "Poppins", sans-serif;
    font-size: 16px;
    font-weight: 500;
    color: #000000;
    margin: 0;
    line-height: 1.4;
}

.annual-report-actions {
    display: flex;
    gap: 12px;
    margin-top: 8px;
}

.view-btn,
.download-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-family: "Poppins", sans-serif;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    padding: 10px 20px;
    border-radius: 8px;
    border: 1px solid #000;
    background-color: #000;
    color: #fff;
}

.view-btn:hover,
.download-btn:hover {
    background-color: #fff;
    color: #000;
    border-color: #000;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.view-btn svg,
.download-btn svg {
    width: 18px;
    height: 18px;
}

/* === CAROUSEL NAVIGATION === */
.carousel-nav {
    display: flex;
    gap: 12px;
    align-items: center;
    justify-content: flex-start;
    margin-top: 60px;
}

.carousel-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    background-color: #000000;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.carousel-btn:hover:not(:disabled) {
    background-color: #27272a;
    transform: scale(1.1);
}

.carousel-btn:disabled {
    background-color: rgba(0, 0, 0, 0.3);
    cursor: not-allowed;
    opacity: 0.5;
}

.carousel-icon {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: white;
    color: white;
}

/* === REPORTS GRID === */
.reports-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
    margin-bottom: 40px;
}

.report-card {
    background: #ffffff;
    border: 1px solid #e4e4e7;
    border-radius: 12px;
    padding: 28px;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-height: 280px;
}

.report-card:hover {
    border-color: #000000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

.report-icon {
    width: 48px;
    height: 48px;
    background-color: #f5f5f4;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #000000;
}

.report-icon svg {
    width: 28px;
    height: 28px;
}

.report-title {
    font-family: "Poppins", sans-serif;
    font-size: 18px;
    font-weight: 600;
    color: #000000;
    margin: 0;
    line-height: 1.4;
}

.report-date {
    font-family: "Poppins", sans-serif;
    font-size: 14px;
    font-weight: 400;
    color: #71717a;
    margin: 0;
}

.report-download-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background-color: #000000;
    color: #ffffff;
    border: 1px solid #000000;
    border-radius: 8px;
    font-family: "Poppins", sans-serif;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    width: fit-content;
    margin-top: auto;
}

.report-download-btn svg {
    width: 18px;
    height: 18px;
}

.report-download-btn:hover {
    background-color: #ffffff;
    color: #000000;
    border-color: #000000;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* === STOCK INFORMATION GRID === */
.stock-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
    margin-bottom: 40px;
}

.stock-card {
    background: #f5f5f4;
    border-radius: 12px;
    padding: 32px 28px;
    text-align: center;
    transition: all 0.3s ease;
}

.stock-card:hover {
    background: #000000;
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.stock-card:hover .stock-label,
.stock-card:hover .stock-value {
    color: #ffffff;
}

.stock-label {
    font-family: "Poppins", sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: #71717a;
    margin: 0 0 12px 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: color 0.3s ease;
}

.stock-value {
    font-family: "Poppins", sans-serif;
    font-size: 24px;
    font-weight: 600;
    color: #000000;
    margin: 0;
    line-height: 1.3;
    transition: color 0.3s ease;
}

/* === TIMELINE (Corporate Actions) === */
.timeline {
    position: relative;
    padding-left: 40px;
    margin-top: 40px;
}

.timeline::before {
    content: "";
    position: absolute;
    left: 12px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #e4e4e7;
}

.timeline-item {
    position: relative;
    padding-bottom: 40px;
    width: 100%;
}

.timeline-item:last-child {
    padding-bottom: 0;
}

.timeline-marker {
    position: absolute;
    left: -33px;
    top: 4px;
    width: 24px;
    height: 24px;
    background: #000000;
    border: 4px solid #ffffff;
    border-radius: 50%;
    box-shadow: 0 0 0 2px #e4e4e7;
}

.timeline-content {
    background: #f5f5f4;
    border-radius: 12px;
    padding: 24px;
    transition: all 0.3s ease;
    width: 100%;
    box-sizing: border-box;
}

.timeline-content:hover {
    background: #ffffff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transform: translateX(4px);
}

.timeline-title {
    font-family: "Poppins", sans-serif;
    font-size: 18px;
    font-weight: 600;
    color: #000000;
    margin: 0 0 8px 0;
    line-height: 1.4;
}

.timeline-date {
    font-family: "Poppins", sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: #71717a;
    margin: 0 0 12px 0;
}

.timeline-description {
    font-family: "Poppins", sans-serif;
    font-size: 15px;
    font-weight: 400;
    color: #52525b;
    margin: 0;
    line-height: 1.6;
}

/* === REPORT CARD ACTION BUTTONS === */
.report-actions {
    display: flex;
    gap: 12px;
    margin-top: auto;
}

.report-action-btn {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 16px;
    border-radius: 8px;
    font-family: "Poppins", sans-serif;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid #000;
    background-color: #000;
    color: #ffffff;
}

.report-action-btn svg {
    width: 18px;
    height: 18px;
}

.report-action-btn:hover {
    background-color: #fff;
    color: #000;
    border-color: #000;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* Specific buttons - inherit from report-action-btn */
.read-btn {
    background-color: #000;
    color: #ffffff;
    border-color: #000;
}

.read-btn:hover {
    background-color: #fff;
    color: #000;
    border-color: #000;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* === TIMELINE ACTION BUTTONS === */
.timeline-actions {
    display: flex;
    gap: 12px;
    margin-top: 16px;
}

.timeline-actions .report-action-btn {
    flex: 0 1 auto;
    min-width: 120px;
    background-color: #000;
    color: #ffffff;
    border: 1px solid #000;
}

.timeline-actions .report-action-btn:hover {
    background-color: #fff;
    color: #000;
    border-color: #000;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

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

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

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

    .investor-container {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 0 1rem;
    }

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

    .investor-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);
    }

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

    .section-description {
        font-size: 15px;
        margin-bottom: 30px;
    }

    .annual-reports-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .reports-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .stock-info-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .stock-card {
        padding: 24px 20px;
    }

    .stock-value {
        font-size: 20px;
    }

    .timeline {
        padding-left: 30px;
    }

    .timeline-marker {
        left: -26px;
        width: 20px;
        height: 20px;
    }

    .timeline-content {
        padding: 20px;
    }

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

    .carousel-nav {
        justify-content: center;
        margin-top: 40px;
    }

    .carousel-btn {
        width: 40px;
        height: 40px;
    }

    .carousel-icon {
        width: 18px;
        height: 18px;
    }

    .pagination {
        justify-content: center;
        margin-top: 40px;
    }

    .report-actions {
        flex-direction: column;
    }

    .report-action-btn {
        width: 100%;
    }

    .timeline-actions {
        flex-direction: column;
    }

    .timeline-actions .report-action-btn {
        width: 100%;
        min-width: auto;
    }

    .annual-report-actions {
        flex-direction: column;
        gap: 8px;
    }

    .view-btn,
    .download-btn {
        width: 100%;
        justify-content: center;
    }
}

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

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

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

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

    .section-description {
        font-size: 14px;
    }

    .report-card {
        padding: 20px;
    }

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

    .report-download-btn {
        width: 100%;
        justify-content: center;
        padding: 12px 20px;
    }

    .stock-info-grid {
        grid-template-columns: 1fr;
    }

    .stock-card {
        padding: 20px;
    }
}
/* === SUSTAINABILITY REPORTS GRID (Same style as Annual Reports) === */
.sustainability-reports-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px 30px;
    margin: 40px 0;
}

.sustainability-report-item {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.sustainability-report-cover {
    width: 100%;
    aspect-ratio: 225/318;
    border: 1px solid #000000;
    overflow: hidden;
    background-color: #f5f5f4;
}

.sustainability-report-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sustainability-report-year {
    font-family: "Poppins", sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: #a1a1aa;
    margin: 0;
}

.sustainability-report-title {
    font-family: "Poppins", sans-serif;
    font-size: 16px;
    font-weight: 500;
    color: #000000;
    margin: 0;
    line-height: 1.4;
}

.sustainability-report-actions {
    display: flex;
    gap: 12px;
    margin-top: 8px;
}

/* Buttons already defined in annual report section, will be reused */

/* === RESPONSIVE FOR SUSTAINABILITY REPORTS === */
@media (max-width: 768px) {
    .sustainability-reports-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .sustainability-report-actions {
        flex-direction: column;
        gap: 8px;
    }
}

/* ==========================================
   INVESTOR YEAR FILTER
   ========================================== */

.investor-year-filter {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 2rem;
}

.investor-dropdown {
    position: relative;
    min-width: 160px;
}

.investor-dropdown .dropdown-button {
    width: 100%;
    padding: 0.75rem 1.125rem;
    font-family: "Poppins", sans-serif;
    font-size: 0.925rem;
    font-weight: 500;
    color: #000;
    background: white;
    border: 2px solid #e4e4e7;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    outline: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.investor-dropdown .dropdown-button:hover {
    border-color: #dc2626;
    box-shadow: 0 2px 8px rgba(220, 38, 38, 0.15);
    transform: translateY(-1px);
}

.investor-dropdown.open .dropdown-button {
    border-color: #dc2626;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

.investor-dropdown .dropdown-value {
    flex: 1;
    text-align: left;
}

.investor-dropdown .dropdown-arrow {
    width: 18px;
    height: 18px;
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.investor-dropdown.open .dropdown-arrow {
    transform: rotate(180deg);
}

.investor-dropdown .dropdown-menu {
    position: absolute;
    top: calc(100% + 0.4rem);
    left: 0;
    right: 0;
    background: white;
    border: 2px solid #e4e4e7;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all 0.25s ease;
    z-index: 100;
    overflow: hidden;
    max-height: 240px;
    overflow-y: auto;
}

.investor-dropdown.open .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.investor-dropdown .dropdown-item {
    padding: 0.75rem 1.125rem;
    font-family: "Poppins", sans-serif;
    font-size: 0.925rem;
    font-weight: 500;
    color: #000;
    background: white;
    cursor: pointer;
    transition: all 0.2s ease;
    border-bottom: 1px solid #f4f4f5;
}

.investor-dropdown .dropdown-item:last-child {
    border-bottom: none;
}

.investor-dropdown .dropdown-item:hover {
    background: #dc2626;
    color: white;
}

.investor-dropdown .dropdown-item.active {
    font-weight: 600;
    color: #dc2626;
}

.investor-dropdown .dropdown-item.active:hover {
    color: white;
}

@media (max-width: 768px) {
    .investor-year-filter {
        justify-content: flex-start;
        margin-bottom: 1.5rem;
    }

    .investor-dropdown {
        min-width: 140px;
    }
}
