:root {
    --primary: #1a5f7a;
    --secondary: #2a9d8f;
    --accent: #57cc99;
    --dark: #264653;
    --light: #87c0cd;
    --bg-light: #f8f9fa;
    --bg-medium: #e9ecef;
    --text: #495057;
    --white: #ffffff;
    --shadow: 0 5px 15px rgba(0,0,0,0.08);
    --shadow-hover: 0 10px 25px rgba(0,0,0,0.12);
    --transition: all 0.3s ease;
    --radius: 12px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Cairo', sans-serif;
    line-height: 1.7;
    color: var(--text);
    background: linear-gradient(135deg, #f5f7fa 0%, #eef2f6 100%);
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

/* Header */
.header {
    background: linear-gradient(135deg, var(--primary), var(--dark));
    color: var(--white);
    padding: 40px;
    border-radius: var(--radius);
    margin-bottom: 30px;
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
}

.header::before {
    content: '🏛️'; /* Default icon, can be overridden per page */
    position: absolute;
    left: 20px;
    bottom: 20px;
    font-size: 120px;
    opacity: 0.1;
    color: var(--white);
}

.header h1 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 15px;
}

.header h1 span {
    color: var(--accent);
    background: rgba(255,255,255,0.1);
    padding: 5px 15px;
    border-radius: 50px;
    font-size: 1.5rem;
}

.header .info {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255,255,255,0.1);
    padding: 10px 20px;
    border-radius: 50px;
}

/* Navigation Tabs */
.tabs-container {
    background: var(--white);
    border-radius: var(--radius);
    padding: 20px;
    margin-bottom: 30px;
    box-shadow: var(--shadow);
}

.tab-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    border-bottom: 2px solid var(--bg-medium);
    padding-bottom: 15px;
    margin-bottom: 25px;
}

.tab-btn {
    padding: 12px 20px;
    background: var(--bg-light);
    border: none;
    border-radius: 30px;
    font-weight: 600;
    color: var(--text);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
}

.tab-btn i {
    color: var(--secondary);
}

.tab-btn:hover {
    background: var(--secondary);
    color: var(--white);
}

.tab-btn:hover i {
    color: var(--white);
}

.tab-btn.active {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: var(--white);
}

.tab-btn.active i {
    color: var(--white);
}

.tab-content {
    display: none;
    animation: fadeIn 0.5s ease;
}

.tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Cards */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
    margin: 30px 0;
}

.card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 25px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border-right: 4px solid var(--secondary);
    height: 100%;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.card-icon {
    font-size: 2rem;
    color: var(--secondary);
    margin-bottom: 15px;
}

.card h3 {
    color: var(--primary);
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.card ul {
    padding-right: 20px;
}

.card li {
    margin-bottom: 8px;
}

/* Tables */
.table-responsive {
    overflow-x: auto;
    margin: 25px 0;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

table {
    width: 100%;
    border-collapse: collapse;
    background: var(--white);
    font-size: 0.9rem;
}

th {
    background: linear-gradient(135deg, var(--primary), var(--dark));
    color: var(--white);
    padding: 15px;
    font-weight: 600;
    text-align: center;
}

td {
    padding: 12px 10px;
    border-bottom: 1px solid var(--bg-medium);
    text-align: center;
}

tr:hover {
    background: rgba(42, 157, 143, 0.05); /* Tint of secondary color */
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 25px;
    margin: 30px 0;
}

.stat-card {
    background: var(--white);
    padding: 25px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    text-align: center;
    border-bottom: 4px solid var(--secondary);
}

.stat-number {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 5px;
}

.stat-label {
    color: var(--text);
    font-weight: 600;
}

/* Laboratory / Facility Cards */
.lab-section, .facility-section {
    background: linear-gradient(135deg, var(--primary), var(--dark));
    color: var(--white);
    padding: 40px;
    border-radius: var(--radius);
    margin: 40px 0;
}

.lab-card, .facility-card {
    background: rgba(255,255,255,0.1);
    padding: 25px;
    border-radius: var(--radius);
    backdrop-filter: blur(5px);
    margin-bottom: 20px;
}

.lab-card i, .facility-card i {
    font-size: 2rem;
    color: var(--accent);
    margin-bottom: 15px;
}

.lab-card h3, .facility-card h3 {
    color: var(--white);
    margin-bottom: 10px;
}

.lab-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

/* Badges */
.badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.badge-primary {
    background: rgba(26, 95, 122, 0.1);
    color: var(--primary);
}

.badge-success {
    background: rgba(42, 157, 143, 0.1);
    color: var(--secondary);
}

.badge-warning {
    background: rgba(255, 193, 7, 0.1);
    color: #f39c12;
}

/* Timeline (for History/Steps) */
.timeline-item {
    background: var(--white);
    border-radius: var(--radius);
    padding: 20px;
    margin-bottom: 15px;
    border-right: 4px solid var(--accent);
    box-shadow: var(--shadow);
}

.timeline-date {
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 8px;
}

.timeline-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 5px;
}

/* Profile Links */
.profile-links {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

.profile-link {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: var(--bg-light);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
}

.profile-link:hover {
    background: var(--secondary);
    color: var(--white);
    transform: translateY(-3px);
}

/* Progress Bars */
.progress-container {
    margin: 20px 0;
}

.progress-item {
    margin-bottom: 20px;
}

.progress-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
}

.progress-bar {
    height: 8px;
    background: var(--bg-medium);
    border-radius: 10px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--secondary), var(--accent));
    border-radius: 10px;
    transition: width 1s ease;
}

/* Footer */
.footer {
    background: var(--dark);
    color: var(--white);
    padding: 40px;
    border-radius: var(--radius);
    margin-top: 50px;
    text-align: center;
}

/* Responsive */
@media (max-width: 992px) {
    .header h1 {
        font-size: 2rem;
    }
    
    .tab-buttons {
        flex-direction: column;
    }
    
    .tab-btn {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .header {
        padding: 25px;
    }
    
    .header h1 {
        font-size: 1.8rem;
    }
    
    .header h1 span {
        font-size: 1.2rem;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Zoonotic Unit Custom Styles */
.zoonotic-unit .header {
    background: linear-gradient(135deg, #0d5fa6 0%, #1a7d3c 100%);
}
.zoonotic-unit .header h1 {
    color: #fff;
}
.zoonotic-unit .header h1 span {
    color: #ffd700;
}
.zoonotic-unit .tab-btn.active {
    background: linear-gradient(135deg, #0d5fa6, #1a7d3c);
}
.zoonotic-unit th {
    background: linear-gradient(135deg, #0d5fa6, #1a7d3c);
}
.zoonotic-unit .section-title {
    color: #0d5fa6;
    border-bottom: 2px solid #1a7d3c;
    padding-bottom: 10px;
    margin-bottom: 20px;
}
.zoonotic-unit .research-card, 
.zoonotic-unit .publication-card, 
.zoonotic-unit .project-card, 
.zoonotic-unit .faculty-card {
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    border-top: 4px solid #0d5fa6;
    margin-bottom: 20px;
}
.zoonotic-unit .status-badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: bold;
    color: #fff;
}
.zoonotic-unit .status-ongoing { background-color: #f39c12; }
.zoonotic-unit .status-completed { background-color: #27ae60; }
.zoonotic-unit .status-planned { background-color: #3498db; }

.zoonotic-unit .researcher-img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #0d5fa6;
    margin-bottom: 10px;
}
