/*assets/css/style.css*/
:root {
    --green: #2E7D32;
    --green-light: #4CAF50;
    --green-dark: #1B5E20;
    --white: #fff;
    --light-gray: #f5f5f5;
    --text: #333;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    color: var(--text);
    background-color: var(--light-gray);
}

/* Main Content Layout */
.main-content {
    display: flex;
    padding: 20px;
    gap: 20px;
}

.content {
    flex: 3;
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.sidebar {
    flex: 1;
    background: white;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    align-self: flex-start;
    position: sticky;
    top: 20px;
}

.sidebar h3 {
    color: var(--green);
    border-bottom: 2px solid var(--green-light);
    padding-bottom: 8px;
    margin-top: 0;
}

/* Header Layout */
header {
    background-color: var(--green);
    color: white;
    padding: 0;
}

.header-container {
    display: flex;
    flex-direction: column;
    padding: 0 2rem;
    height: 140px; /* Doubled height */
}

/* Top Bar: Logo + Site Name | Controls */
.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
    width: 100%;
}

/* Logo + Site Name */
.logo-section a {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: white;
}
.logo-section img {
    height: 50px;
    margin-right: 12px;
}
.site-name {
    font-size: 1.6em;
    font-weight: bold;
}

/* Right-Aligned Controls (Top Right) */
.header-controls {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* User Actions */
.user-actions {
    font-size: 0.9em;
}
.user-actions a {
    color: #e0f0e0;
    text-decoration: none;
    margin: 0 4px;
}

/* Search Bar */
.search-bar form {
    display: flex;
    align-items: center;
    gap: 4px;
}
.search-bar input,
.search-bar button {
    padding: 4px 6px;
    border: none;
    border-radius: 3px;
    font-size: 0.85em;
}
.search-bar button {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    cursor: pointer;
}
.search-bar button:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Language Switcher (Full Names) */
.lang-switcher {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    max-width: 300px;
}
.lang-switcher a {
    display: inline-block;
    padding: 2px 6px;
    font-size: 0.75em;
    color: #d0f0d0;
    text-decoration: none;
    border-radius: 3px;
    white-space: nowrap;
}
.lang-switcher a:hover {
    background: rgba(255, 255, 255, 0.15);
    color: white;
}
.lang-switcher a.active {
    background: white;
    color: var(--green);
    font-weight: bold;
}

/* Bottom Bar: Centered Main Navigation */
.bottom-bar {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 70px;
    width: 100%;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Main Navigation (Centered) */
.main-nav {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    justify-content: center;
}
.main-nav a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95em;
    padding: 6px 10px;
    border-radius: 4px;
}
.main-nav a:hover {
    background: rgba(255, 255, 255, 0.15);
}

/* Authentication Forms */
.auth-container {
    max-width: 400px;
    margin: 50px auto;
    padding: 20px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.auth-container input {
    width: 100%;
    padding: 10px;
    margin: 5px 0;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
}

.auth-container button {
    width: 100%;
    padding: 10px;
    background: var(--green);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
}

/* Publications & Resources */
.publication-card img {
    border-radius: 4px;
}

.resource-tabs {
    margin: 15px 0;
}
.resource-tabs a {
    display: inline-block;
    padding: 6px 12px;
    margin-right: 8px;
    text-decoration: none;
    background: #eee;
    border-radius: 4px;
}
.resource-tabs a.active {
    background: var(--green);
    color: white;
}

.resource-list li,
.search-results li {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

/* Thematic Explorer */
.theme-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.theme-card {
    padding: 15px;
    border-radius: 8px;
    background: #f9f9f9;
}
.theme-card.core {
    border-left: 4px solid var(--green);
}
.theme-card.supporting {
    border-left: 4px solid #FFA000;
}
.theme-card.cross {
    border-left: 4px solid #1976D2;
}
.theme-card a {
    display: inline-block;
    margin-top: 10px;
    color: var(--green);
    text-decoration: none;
    font-weight: 500;
}

/* Advisory Board */
.advisor-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 20px;
}
.advisor-card {
    text-align: center;
}
.advisor-card img {
    margin-bottom: 10px;
    border-radius: 50%;
    border: 2px solid #eee;
}

/* Tables */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}
th,
td {
    padding: 10px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}
th {
    background-color: #f0f0f0;
}

/* Footer */
footer {
    background: #333;
    color: white;
    text-align: center;
    padding: 15px;
    margin-top: 40px;
}