@import url('https://fonts.googleapis.com/css2?family=Merriweather:wght@400;700&family=Playfair+Display:wght@700&family=Poppins:wght@300;400;500;600;700&display=swap');

:root {
    --academic-navy: #002147;
    --antique-gold: #CFB53B;
    --paper-white: #F4F1EA;
    --text-dark: #2c3e50;
    --accent-blue: #1a4b8c;
    --shadow-soft: 0 10px 30px rgba(0,0,0,0.1);
    --shadow-dossier: 5px 5px 15px rgba(0,0,0,0.15);
}

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

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--paper-white);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

.institutional-header {
    background: var(--academic-navy);
    padding: 60px 0;
    text-align: center;
    color: white;
    border-bottom: 5px solid var(--antique-gold);
    position: relative;
    overflow: hidden;
}

.institutional-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('https://www.transparenttextures.com/patterns/natural-paper.png');
    opacity: 0.1;
}

.institutional-header h1 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    margin-bottom: 10px;
    letter-spacing: 1px;
}

/* Header Back Button */
.header-nav {
    display: flex;
    justify-content: flex-start;
    margin-bottom: 20px;
}

.btn-header-back {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
}

.btn-header-back:hover {
    background: var(--antique-gold);
    color: var(--academic-navy);
    border-color: var(--antique-gold);
    transform: translateX(-5px);
}

.institutional-header p {
    font-family: 'Merriweather', serif;
    font-style: italic;
    font-size: 1.1rem;
    opacity: 0.9;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Tabs Styling - Academic Journal Style */
.tabs-container {
    margin: -30px auto 40px;
    background: white;
    padding: 10px;
    border-radius: 50px;
    box-shadow: var(--shadow-soft);
    display: flex;
    justify-content: center;
    gap: 10px;
    position: relative;
    z-index: 10;
    width: fit-content;
}

.tab-btn {
    padding: 12px 35px;
    border: none;
    background: transparent;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    color: var(--academic-navy);
    cursor: pointer;
    border-radius: 40px;
    transition: all 0.3s ease;
}

.tab-btn.active {
    background: var(--academic-navy);
    color: var(--antique-gold);
}

.tab-btn:hover:not(.active) {
    background: rgba(0, 33, 71, 0.05);
}

/* Grid for Dossiers */
.reports-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 40px;
    padding: 40px 0;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
    display: none;
}

.reports-grid.active {
    display: grid;
    opacity: 1;
    transform: translateY(0);
}

/* Dossier Layout Refined */
.report-dossier {
    background: white;
    padding: 0;
    border-radius: 5px;
    box-shadow: var(--shadow-dossier);
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-left: 20px solid var(--academic-navy); /* Folder Spine */
}

.report-dossier:hover {
    transform: translateY(-10px) rotate(1deg);
    box-shadow: 10px 15px 25px rgba(0,0,0,0.2);
}

/* Tab effect for the folder */
.report-dossier::after {
    content: '';
    position: absolute;
    top: -15px;
    right: 20px;
    width: 100px;
    height: 15px;
    background: white;
    border-radius: 10px 10px 0 0;
    box-shadow: 0 -5px 10px rgba(0,0,0,0.05);
}

.dossier-content {
    padding: 30px;
}

.dossier-tag {
    display: inline-block;
    background: var(--paper-white);
    color: var(--academic-navy);
    padding: 5px 15px;
    border-radius: 3px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 20px;
    border-left: 3px solid var(--antique-gold);
}

.report-dossier h3 {
    font-family: 'Merriweather', serif;
    font-size: 1.4rem;
    color: var(--academic-navy);
    margin-bottom: 15px;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

.report-dossier p {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 25px;
}

.dossier-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px dotted #ccc;
    padding-top: 20px;
}

.file-info {
    font-size: 0.8rem;
    color: #888;
}

.file-info i {
    margin-right: 5px;
}

.btn-download {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--academic-navy);
    color: white;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 3px;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 1px solid var(--academic-navy);
}

.btn-download:hover {
    background: white;
    color: var(--academic-navy);
}

.btn-download i {
    color: var(--antique-gold);
}

.back-link {
    display: block;
    text-align: center;
    margin: 50px 0;
    color: var(--academic-navy);
    text-decoration: none;
    font-weight: 600;
}

.back-link:hover {
    text-decoration: underline;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.animate-fade {
    animation: fadeIn 0.8s ease forwards;
}

@media (max-width: 768px) {
    .institutional-header h1 {
        font-size: 1.8rem;
    }
    
    .tab-btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    .reports-grid {
        grid-template-columns: 1fr;
    }
}
