/* 
   SCES Group Modern Design System
   Aesthetics: Premium, Academic, Professional
*/

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;700&display=swap');

:root {
    --primary-blue: #1e293b; /* Slate 800 */
    --accent-blue: #2563eb;  /* Blue 600 */
    --accent-gold: #d97706;  /* Amber 600 */
    --bg-light: #f8fafc;     /* Slate 50 */
    --text-main: #0f172a;    /* Slate 900 */
    --text-muted: #64748b;   /* Slate 500 */
    --card-bg: rgba(255, 255, 255, 0.8);
    --nav-bg: rgba(30, 41, 59, 0.95);
    --border-color: #e2e8f0; /* Slate 200 */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    color: var(--text-main);
    background-color: var(--bg-light);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, .navbar-brand {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
}

/* Navbar Modernization */
.navbar-inverse {
    background-color: var(--nav-bg);
    border: none;
    backdrop-filter: blur(8px);
    transition: all 0.3s ease;
    box-shadow: var(--shadow-md);
}

.navbar-inverse .navbar-nav > li > a {
    color: #e2e8f0;
    font-weight: 500;
    padding: 20px 15px;
    transition: color 0.2s ease, background-color 0.2s ease;
}

.navbar-inverse .navbar-nav > li > a:hover,
.navbar-inverse .navbar-nav > li > a:focus {
    color: #fff;
    background-color: rgba(255, 255, 255, 0.1);
}

.navbar-inverse .navbar-nav > .open > a,
.navbar-inverse .navbar-nav > .open > a:hover,
.navbar-inverse .navbar-nav > .open > a:focus {
    background-color: rgba(255, 255, 255, 0.15);
    color: #fff;
}

/* Dropdown Menu */
.dropdown-menu {
    border-radius: 8px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-lg);
    padding: 8px;
    margin-top: 5px;
}

.dropdown-menu > li > a {
    border-radius: 6px;
    padding: 10px 15px;
    transition: all 0.2s ease;
}

.dropdown-menu > li > a:hover {
    background-color: #f1f5f9;
    color: var(--accent-blue);
}

/* Layout Containers */
.page-header {
    border-bottom: 2px solid var(--accent-blue);
    margin-top: 40px;
    padding-bottom: 10px;
}

.page-header h2 {
    color: var(--primary-blue);
    letter-spacing: -0.025em;
}

/* Publication & News Cards */
.publication-card, .news-item {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: var(--shadow-sm);
}

.publication-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: var(--accent-blue);
}

.publication-title {
    font-weight: 600;
    color: var(--text-main);
    display: block;
    margin-bottom: 8px;
}

.publication-authors {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.publication-journal {
    font-style: italic;
    color: var(--accent-blue);
}

.publication-links {
    margin-top: 12px;
}

.btn-link-academic {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    border-radius: 20px;
    background: #eff6ff;
    color: var(--accent-blue);
    font-size: 0.85rem;
    font-weight: 500;
    text-decoration: none;
    margin-right: 8px;
    transition: all 0.2s ease;
}

.btn-link-academic:hover {
    background: var(--accent-blue);
    color: #fff;
    text-decoration: none;
}

/* Footer */
.footer {
    background-color: var(--primary-blue);
    color: #94a3b8;
    border-top: 1px solid rgba(255,255,255,0.1);
    height: auto;
    padding: 40px 0;
    position: relative;
    margin-top: 80px;
}

.footer a {
    color: #fff;
    font-weight: 500;
}

/* Responsive Logo Fix */
.logo-container {
    max-width: 100%;
    margin: 10px 0;
}

.logo-container img {
    height: auto;
    max-height: 80px;
    width: auto;
}

/* Typography Overrides */
.lead {
    font-weight: 500;
    color: var(--accent-blue);
}

/* Person Cards */
.person-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 24px;
    display: flex;
    align-items: flex-start;
    gap: 20px;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
}

.person-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent-blue);
}

.person-image {
    width: 110px;
    height: 133px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    flex-shrink: 0;
}

.person-info {
    flex-grow: 1;
}

.person-info h4 {
    margin-top: 0;
    margin-bottom: 8px;
    color: var(--primary-blue);
    font-size: 1.25rem;
}

.person-info p {
    margin-bottom: 4px;
    font-size: 0.95rem;
    color: var(--text-main);
}

.person-info .email {
    display: inline-block;
    margin-top: 10px;
    font-size: 0.9rem;
    color: var(--accent-blue);
    text-decoration: none;
    font-weight: 500;
}

.section-title {
    margin-top: 60px;
    margin-bottom: 30px;
    padding-left: 15px;
    border-left: 4px solid var(--accent-blue);
}

@media (max-width: 768px) {
    .person-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .person-image {
        margin-bottom: 15px;
    }
}

/* Fixes for legacy markup */
i { font-style: italic; }
b { font-weight: 700; }
