/* --- Hero Banner --- */
.compliance-hero {
    background: linear-gradient(rgba(0, 34, 68, 0.9), rgba(0, 34, 68, 0.9)), 
                url('https://images.unsplash.com/photo-1554224155-8d04cb21cd6c?q=80&w=2070&auto=format&fit=crop') center/cover no-repeat;
    padding: 6rem 0;
    text-align: center;
    color: #ffffff;
    border-bottom: 5px solid #d9232d;
}

.compliance-hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    letter-spacing: 1px;
}

.compliance-hero p {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto;
    color: #e6f2ff;
}

.divider {
    height: 3px;
    width: 60px;
    background-color: #d9232d;
    margin: 1.5rem auto;
}

.small-divider-left {
    height: 3px;
    width: 50px;
    background-color: #d9232d;
    margin: 1rem 0 1.5rem 0;
}

/* --- Reports Section --- */
.reports-section {
    padding: 5rem 0 7rem;
    background-color: #f4f7f6;
}

.reports-container {
    background-color: #ffffff;
    padding: 3.5rem;
    border-radius: 8px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.06);
    border-top: 5px solid #002244;
    max-width: 1100px; /* Slightly wider to accommodate sidebar */
    margin: 0 auto;
}

.reports-header-text {
    margin-bottom: 3rem;
    border-bottom: 1px solid #eeeeee;
    padding-bottom: 2rem;
}

.reports-header-text h2 {
    color: #002244;
    font-size: 2rem;
}

.reports-header-text p {
    color: #555;
    font-size: 1.05rem;
    line-height: 1.7;
}

/* --- NEW: VERTICAL TAB LAYOUT --- */
.reports-layout {
    display: grid;
    grid-template-columns: 220px 1fr; /* Left sidebar is 220px, table fills the rest */
    gap: 3rem;
    align-items: start;
}

/* Sidebar for Tab Buttons */
.tab-sidebar {
    display: flex;
    flex-direction: column;
    gap: 8px;
    border-right: 2px solid #f0f0f0;
    padding-right: 1.5rem;
}

.tab-btn {
    background-color: transparent;
    color: #555;
    border: none;
    border-left: 4px solid transparent; /* Highlight strip on the left */
    outline: none;
    cursor: pointer;
    padding: 14px 20px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 4px;
    text-align: left;
    transition: all 0.3s ease;
}

.tab-btn:hover {
    background-color: #f8f9fa;
    color: #002244;
    border-left-color: #cccccc;
}

.tab-btn.active {
    background-color: #f0f7ff;
    color: #002244;
    border-left-color: #d9232d; /* Red highlight for active year */
    box-shadow: 2px 2px 8px rgba(0,0,0,0.02);
}

/* Hide tabs by default (JS handles showing them) */
.tab-content {
    display: none;
    animation: fadeEffect 0.5s; 
}

@keyframes fadeEffect {
    from {opacity: 0;}
    to {opacity: 1;}
}

/* --- The Table Styling --- */
.table-responsive {
    overflow-x: auto;
}

.compliance-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    border: 1px solid #eeeeee;
    border-radius: 6px;
    overflow: hidden;
}

.compliance-table th {
    background-color: #002244; /* Dark header to contrast with vertical layout */
    color: #ffffff;
    padding: 1.2rem;
    font-size: 1.05rem;
    font-weight: 600;
}

.compliance-table td {
    padding: 1.2rem;
    border-bottom: 1px solid #eeeeee;
    color: #444;
    vertical-align: middle;
}

.compliance-table tr:last-child td {
    border-bottom: none;
}

.compliance-table tr:hover td {
    background-color: #fdfdfd;
}

/* --- Status Badge --- */
.status-badge {
    display: inline-block;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
}

.status-badge.published {
    background-color: #e6f7eb;
    color: #28a745;
    border: 1px solid #28a745;
}

/* --- Download / View Button --- */
.download-btn {
    display: inline-block;
    padding: 0.5rem 1.2rem;
    background-color: #ffffff;
    color: #d9232d;
    border: 2px solid #d9232d;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.download-btn:hover {
    background-color: #d9232d;
    color: #ffffff;
}

/* Responsive Adjustments for Mobile */
@media (max-width: 850px) {
    .reports-layout {
        grid-template-columns: 1fr; /* Stacks the sidebar on top of the table */
        gap: 2rem;
    }
    .tab-sidebar {
        flex-direction: row;
        flex-wrap: wrap;
        border-right: none;
        border-bottom: 2px solid #f0f0f0;
        padding-right: 0;
        padding-bottom: 1rem;
    }
    .tab-btn {
        flex: 1 1 30%;
        text-align: center;
        border-left: none;
        border-bottom: 4px solid transparent;
    }
    .tab-btn.active {
        border-left-color: transparent;
        border-bottom-color: #d9232d;
    }
    .reports-container {
        padding: 2rem 1.5rem;
    }
}