/* Color Palette & Base Styles */
:root {
    --primary-blue: #004a8d; /* ICS CAS Main Blue */
    --text-dark: #333;
    --grey-light: #f8f9fa;
    --border-color: #ddd;
}

* { box-sizing: border-box; }
body {
    font-family: 'Roboto', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    margin: 0;
    padding: 0;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header & Nav */
header {
    border-bottom: 4px solid var(--primary-blue);
    padding: 20px 0;
    background: #fff;
}

.inst-name { font-weight: bold; display: block; color: var(--primary-blue); font-size: 1.2rem; }
.cas-name { font-size: 0.9rem; color: #666; text-transform: uppercase; letter-spacing: 1px; }

nav ul { list-style: none; padding: 0; display: flex; gap: 20px; margin-top: 20px; }
nav a { text-decoration: none; color: var(--text-dark); font-weight: 500; font-size: 0.95rem; }
nav a:hover { color: var(--primary-blue); }

/* Sections */
.content-sec { padding: 60px 0; }
.bg-light { background-color: var(--grey-light); }

h1 { font-size: 2.5rem; color: var(--primary-blue); margin-bottom: 5px; }
.subtitle { font-size: 1.2rem; color: #666; margin-bottom: 40px; }
h2 { border-left: 5px solid var(--primary-blue); padding-left: 15px; margin-bottom: 30px; text-transform: uppercase; font-size: 1.3rem; }

/* Grid / List Layouts */
.scope-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.member-list { display: flex; flex-direction: column; gap: 15px; }
.member { border-bottom: 1px solid var(--border-color); padding-bottom: 10px; }
.member strong { display: block; font-size: 1.1rem; }

.pub-list { list-style: none; padding: 0; }
.pub-list li { margin-bottom: 20px; display: flex; gap: 20px; }
.year { font-weight: bold; color: var(--primary-blue); min-width: 50px; }

footer { background: var(--text-dark); color: #ccc; padding: 30px 0; font-size: 0.85rem; text-align: center; }

/* Mobile Responsive */
@media (max-width: 768px) {
    .scope-grid { grid-template-columns: 1fr; }
    nav ul { flex-direction: column; gap: 10px; }
}

/* Publications Grouping */
.pub-year-group {
    display: flex;
    gap: 40px;
    margin-bottom: 30px;
    border-bottom: 1px solid #eee;
    padding-bottom: 20px;
}

.year-label {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary-blue);
    min-width: 60px; /* Ensures all years align vertically */
    flex-shrink: 0;
}

.pub-entries {
    flex-grow: 1;
}

.pub-item {
    margin-bottom: 15px;
    line-height: 1.5;
    position: relative;
}

/* Optional: add a small bullet or dash before each paper */
.pub-item::before {
    content: "—";
    color: var(--primary-blue);
    margin-right: 10px;
    font-weight: bold;
}

/* Mobile Tweak: Stack the year on top of the list for small screens */
@media (max-width: 600px) {
    .pub-year-group {
        flex-direction: column;
        gap: 10px;
    }
    .year-label {
        border-bottom: 2px solid var(--primary-blue);
        display: inline-block;
        width: auto;
    }
}

/* Seminar Text Styles */
.seminar-text-content {
    max-width: 800px; /* Limits line length for better readability */
    font-size: 1.05rem;
}

.seminar-text-content p {
    margin-bottom: 20px;
}

/* Highlight Box (Matching the ICS blue branding) */
.info-box {
    margin-top: 30px;
    padding: 20px;
    background-color: #fff;
    border: 1px solid var(--primary-blue);
    border-left: 10px solid var(--primary-blue);
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.info-box p {
    margin: 0;
    font-size: 0.95rem;
}

.info-box a {
    color: var(--primary-blue);
    font-weight: bold;
    text-decoration: underline;
}

.info-box a:hover {
    text-decoration: none;
}


/* Custom Link Styling */
a {
    color: var(--primary-blue); /* Uses the #004a8d from the header */
    text-decoration: none;      /* Removes the default underline */
    transition: color 0.2s ease, border-bottom 0.2s ease;
    border-bottom: 1px solid transparent; /* Prepared for hover effect */
}

a:hover {
    color: #003366;             /* Slightly darker shade on hover */
    border-bottom: 1px solid #003366; /* Clean, thin underline appears */
}

/* Specific styling for links inside the Publication or Member lists */
.pub-item a, .member a {
    font-weight: 500;
    font-size: 0.9em;
    text-transform: uppercase; /* Makes [DOI] or [PDF] look like small buttons */
    letter-spacing: 0.5px;
}

