* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', 'Helvetica', sans-serif;
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.6;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 30px 40px;
    background-color: white;
}

/* Header */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e0e0e0;
}

.company-name {
    font-size: 32px;
    font-weight: bold;
    color: #1E88E5;
    letter-spacing: 0.5px;
}

.logo {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.logo-circle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: #1E88E5;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 20px;
    margin-bottom: 5px;
}

.logo-text {
    font-size: 10px;
    font-weight: bold;
    color: #1E88E5;
    letter-spacing: 1px;
}

/* Main Title */
.main-title {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 30px;
    color: #333;
    text-transform: capitalize;
}

/* Top Section */
.top-section {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
    margin-bottom: 30px;
}

.chart-container, .participation-container {
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.chart-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 15px;
    color: #333;
}

#cumulative-chart, #participation-chart, #apy-chart {
    height: 300px;
}

/* Summary Boxes */
.summary-boxes {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

.summary-box {
    background-color: #1565C0;
    color: white;
    padding: 18px;
    border-radius: 6px;
    text-align: center;
}

.summary-label {
    font-size: 13px;
    opacity: 0.9;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.summary-value {
    font-size: 24px;
    font-weight: bold;
}

/* Middle Section */
.middle-section {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
    margin-bottom: 40px;
}

.apy-chart-container {
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.investor-details {
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.details-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
    color: #333;
}

.details-table {
    width: 100%;
    border-collapse: collapse;
}

.details-table td {
    padding: 12px 0;
    border-bottom: 1px solid #e0e0e0;
    font-size: 14px;
}

.details-table td:first-child {
    color: #666;
    font-weight: 500;
}

.details-table td:last-child {
    text-align: right;
    font-weight: 600;
    color: #333;
}

.details-table tr:last-child td {
    border-bottom: none;
}

/* Research Section */
.research-section {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 2px solid #e0e0e0;
}

.research-title {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 30px;
    color: #333;
}

.depin-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
}

.article-image-container {
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
    min-height: 260px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.flywheel-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120px;
    height: 120px;
    background-color: #1E88E5;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 16px;
    z-index: 10;
    text-align: center;
    padding: 10px;
}

.flywheel-segment {
    position: absolute;
    width: 180px;
    padding: 15px;
    background-color: #E3F2FD;
    border: 2px solid #1E88E5;
    border-radius: 8px;
    text-align: center;
}

.flywheel-segment.top {
    top: 0;
    left: 50%;
    transform: translateX(-50%);
}

.flywheel-segment.right {
    right: 0;
    top: 50%;
    transform: translateY(-50%);
}

.flywheel-segment.bottom {
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
}

.flywheel-segment.left {
    left: 0;
    top: 50%;
    transform: translateY(-50%);
}

.segment-text {
    font-size: 12px;
    color: #333;
    line-height: 1.4;
}

.flywheel-arrows {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.arrow {
    position: absolute;
    font-size: 24px;
    color: #1E88E5;
    font-weight: bold;
}

.arrow-1 {
    top: 80px;
    right: 100px;
    transform: rotate(45deg);
}

.arrow-2 {
    bottom: 100px;
    right: 80px;
    transform: rotate(135deg);
}

.arrow-3 {
    bottom: 80px;
    left: 100px;
    transform: rotate(225deg);
}

.arrow-4 {
    top: 100px;
    left: 80px;
    transform: rotate(315deg);
}

.research-text {
    padding: 20px 0;
    min-height: 220px;
}

.article-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
    line-height: 1.4;
}

.research-text p {
    font-size: 14px;
    line-height: 1.8;
    color: #666;
    margin-bottom: 20px;
}

.read-more-btn {
    display: inline-block;
    background-color: #757575;
    color: white;
    text-decoration: none;
    padding: 12px 24px;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.read-more-btn:hover {
    background-color: #616161;
    color: white;
    text-decoration: none;
}

.pdf-button {
    padding: 8px 16px;
    background-color: #1E88E5;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s;
}

.pdf-button:hover {
    background-color: #1565C0;
}

/* Footer */
.footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid #e0e0e0;
}

.footer-contact {
    display: flex;
    gap: 30px;
}

.contact-item a {
    color: #1E88E5;
    text-decoration: none;
    font-size: 14px;
}

.contact-item a:hover {
    text-decoration: underline;
}

.footer-social {
    display: flex;
    gap: 15px;
}

.social-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #1E88E5;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 14px;
    font-weight: bold;
    transition: background-color 0.3s;
}

.social-icon:hover {
    background-color: #1565C0;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .top-section, .middle-section, .depin-section {
        grid-template-columns: 1fr;
    }
    
    .depin-diagram {
        width: 100%;
        max-width: 400px;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 20px;
    }
    
    .summary-boxes {
        grid-template-columns: 1fr;
    }
    
    .footer {
        flex-direction: column;
        gap: 20px;
        align-items: flex-start;
    }
}

/* Print styles */
@media print {
    body {
        background-color: #ffffff;
    }

    .container {
        max-width: 100%;
        margin: 0;
        padding: 20px;
        box-shadow: none;
    }

    /* Hide interactive / navigation elements in PDF */
    .pdf-button,
    .header-right form,
    .header-right a[href*="logout"],
    .footer,
    .research-section {
        display: none !important;
    }

    /* Avoid awkward page breaks inside key sections */
    .top-section,
    .summary-boxes,
    .middle-section,
    .investor-details {
        break-inside: avoid;
        page-break-inside: avoid;
    }

    /* Ensure charts are fully visible */
    #cumulative-chart,
    #participation-chart,
    #apy-chart {
        height: 280px !important;
    }
}
