/* ==========================================================================
   1. Reset & Global Base Styles
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Helvetica Neue', Arial, sans-serif;
}

body {
    background-color: #f8fafc;
    color: #1e293b;
    line-height: 1.7;
}

/* Applies globally to ALL links on the page */
a, a:active, a:focus, a:visited {
  text-decoration: none;
  outline: none;
}
/* ==========================================================================
   2. Header & Branding Navigation
   ========================================================================== */
/* ==========================================================================
   2. Header & Branding Navigation
   ========================================================================== */
header {
    background-color: #003056; /* Official Goethe University Corporate Blue */
    border-bottom: 4px solid #b3a369; /* Academic Accent Gold */
    padding: 1rem 2rem; /* Adjusted slightly to balance the logo dimensions */
    position: sticky;
    top: 0;
    z-index: 1000;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

/* Flex container matching the logo graphic and text alignment */
.brand-container {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

/* Responsive constraints for the logo graphic */
.site-logo {
    height: 80px;
    width: auto;
    display: block;
    object-fit: contain;
}

.logo-area {
    color: #ffffff;
}

.logo-title {
    font-size: 1.25rem;
    font-weight: 400;
    letter-spacing: 0.5px;
    line-height: 1.2;
}

.logo-sub {
    font-size: 0.85rem;
    color: #cbd5e1;
    letter-spacing: 0.5px;
    line-height: 1.4;
    margin-top: 0.15rem;
}

/* Navigation Links */
.nav-links {
    display: flex;
    list-style: none;
    gap: 1.5rem;
}

.nav-links a {
    color: #cbd5e1;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    padding: 0.5rem 0.75rem;
    border-radius: 4px;
    transition: color 0.2s, background-color 0.2s;
}

.nav-links a:hover, 
.nav-links a.active {
    color: #ffffff;
    background-color: rgba(255, 255, 255, 0.1);
}
/* ==========================================================================
   3. Page Structural Layouts
   ========================================================================== */
main {
    max-width: 1200px;
    margin: 2.5rem auto;
    padding: 0 1.5rem;
    min-height: 75vh;
}

h2.section-title {
    color: #003056;
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem;
    font-size: 1.75rem;
}

.grid-layout {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

/* ==========================================================================
   4. Component Cards & Containers
   ========================================================================== */
.card {
    background: white;
    padding: 2rem;
    border-radius: 6px;
    border-left: 4px solid #003056;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02);
    transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.05);
}

.card h3 {
    color: #003056;
    margin-bottom: 0.75rem;
    font-size: 1.25rem;
}

.member-meta {
    font-size: 0.9rem;
    color: #64748b;
    margin-bottom: 0.5rem;
    font-style: italic;
}

/* ==========================================================================
   5. Main Page Hero Banner (With Publication Background Texture)
   ========================================================================== */
.inst-hero {
    /* Merges deep blue overlays with a fallback publication illustration texture */
    background: linear-gradient(rgba(0, 48, 86, 0.90), rgba(0, 75, 135, 0.94)), 
                url('https://www.gsi.de/fileadmin/_processed_/8/9/csm_SPS_Resonance_structure_e205fc6c89.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: white;
    padding: 5rem 2.5rem;
    border-radius: 6px;
    margin-bottom: 3rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.inst-hero h1 {
    font-size: 2.6rem;
    margin-bottom: 1rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.inst-hero p {
    font-size: 1.2rem;
    color: #f1f5f9;
    max-width: 900px;
    line-height: 1.8;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

/* ==========================================================================
   6. Specialized Executive Profiles (Members Page)
   ========================================================================== */
.leader-profile {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-left: 6px solid #b3a369;
    padding: 2.5rem;
    border-radius: 6px;
    margin-bottom: 3rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.03);
}

.leader-title {
    color: #003056;
    font-size: 1.9rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.leader-subtitle {
    font-size: 0.95rem;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1.25rem;
    font-weight: 600;
}

/* ==========================================================================
   7. Academic Publications Track List
   ========================================================================== */
.pub-list {
    list-style: none;
}

.pub-item {
    background: white;
    padding: 1.5rem;
    margin-bottom: 1rem;
    border-radius: 6px;
    border-left: 3px solid #cbd5e1;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.01);
}

.pub-authors {
    font-weight: 600;
    color: #334155;
}

.pub-title {
    font-style: italic;
    color: #0f172a;
}

/* ==========================================================================
   8. Input Forms & Structural Contact Columns
   ========================================================================== */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.form-group {
    margin-bottom: 1.25rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    font-size: 0.95rem;
    color: #334155;
}

input, textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #cbd5e1;
    border-radius: 4px;
    background-color: #fff;
    font-size: 1rem;
    color: #1e293b;
    transition: border-color 0.2s;
}

input:focus, textarea:focus {
    outline: none;
    border-color: #003056;
}

button {
    background-color: #003056;
    color: white;
    padding: 0.75rem 2rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    font-size: 1rem;
    transition: background-color 0.2s;
}

button:hover {
    background-color: #004b87;
}

/* ==========================================================================
   9. Institutional Global Footer
   ========================================================================== */
footer {
    background-color: #0f172a;
    color: #94a3b8;
    text-align: center;
    padding: 2.5rem 1.5rem;
    font-size: 0.9rem;
    border-top: 4px solid #b3a369;
    margin-top: 4rem;
}

/* ADD THESE NEW RULES FOR THE LINKS */
footer a {
    color: #cbd5e1;
    text-decoration: underline;
    text-underline-offset: 2px;
    transition: color 0.2s;
}

footer a:hover {
    color: #b3a369;
}
/* ==========================================================================
   10. Media Queries for Responsive Viewports
   ========================================================================== */
@media (max-width: 768px) {
    header {
        padding: 1.25rem 1rem;
    }

    nav {
        flex-direction: column;
        gap: 1.25rem;
        text-align: center;
    }

    .brand-container {
        flex-direction: column;
        gap: 0.75rem;
    }

    .site-logo {
        height: 50px; /* Slightly scaled up for a unified vertical mobile view */
    }

    .nav-links {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
        gap: 0.75rem;
    }

    .nav-links a {
        font-size: 0.9rem;
        padding: 0.4rem 0.6rem;
    }
}
