/* Koike Laboratory - Modern Academic Design */
:root {
    --primary: #003f58;
    --primary-light: #0a5a7a;
    --accent: #4c95bc;
    --accent-hover: #3a7da3;
    --purple: #5e42ad;
    --gold: #d69e2e;
    --text: #1a202c;
    --text-light: #4a5568;
    --bg: #ffffff;
    --bg-alt: #f7fafc;
    --border: #e2e8f0;
    --shadow: rgba(0, 0, 0, 0.1);
    --darkMaincolor: #63b3ed;
}

* {
    box-sizing: border-box;
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}

html {
    color: var(--text);
    font-family:
        "Noto Sans JP",
        "Fira Sans",
        -apple-system,
        BlinkMacSystemFont,
        sans-serif;
    font-size: 16px;
    line-height: 1.8;
    scroll-behavior: smooth;
}

body {
    display: block;
    margin: 0;
    background: var(--bg);
}

::selection {
    background: var(--accent);
    color: #fff;
}

p {
    font-family: "Noto Sans JP", "Fira Sans", sans-serif;
    line-height: 1.8;
    margin-bottom: 1.5em;
}

hr {
    border: 0;
    border-top: 2px solid var(--border);
    margin: 2em 0;
}

blockquote {
    border-left: 4px solid var(--accent);
    color: var(--text-light);
    margin: 1.5em 0;
    padding: 0.5em 1.5em;
    background: var(--bg-alt);
    border-radius: 0 8px 8px 0;
}

a {
    color: var(--accent);
    text-decoration: none;
    border-bottom: 2px solid transparent;
    transition: all 0.2s ease;
}

a:hover {
    border-bottom-color: var(--accent);
    color: var(--accent-hover);
}

ul {
    list-style: none;
    padding-left: 0;
}

ul li {
    padding-left: 1.5em;
    position: relative;
    margin-bottom: 0.5em;
}

ul>li::before {
    content: "●";
    color: var(--accent);
    font-size: 0.6em;
    position: absolute;
    left: 0;
    top: 0.6em;
}

/* Images */
img {
    border-radius: 8px;
    max-width: 100%;
    box-shadow: 0 4px 6px var(--shadow);
}

figure {
    box-sizing: border-box;
    display: inline-block;
    margin: 1.5em 0;
    max-width: 100%;
}

figure img {
    max-height: 500px;
}

figure h4 {
    font-size: 0.9rem;
    color: var(--text-light);
    margin: 0.5em 0;
    font-weight: normal;
}

/* Code blocks */
code {
    background-color: var(--bg-alt);
    padding: 0.2em 0.4em;
    border-radius: 4px;
    font-family: "Roboto Mono", "IBM Plex Mono", monospace;
    font-size: 0.9em;
}

pre {
    background-color: #1a202c;
    color: #e2e8f0;
    line-height: 1.5;
    overflow-x: auto;
    padding: 1.5em;
    border-radius: 8px;
}

pre code {
    background-color: transparent;
    color: inherit;
    font-size: 100%;
    padding: 0;
}

/* Containers */
.content {
    margin: 0 auto;
    max-width: 1100px;
    padding: 0 2rem;
}

/* Header */
header {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--border);
    margin-bottom: 0;
}

header .main {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary);
}

header .main a {
    color: inherit;
    border-bottom: none;
}

header .main a:hover {
    color: var(--accent);
}

.site-logo-link {
    display: flex;
    align-items: center;
}

.site-banner {
    height: 2rem;
    width: auto;
    border-radius: 0;
    box-shadow: none;
}

header nav {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

header nav a {
    color: var(--text);
    font-weight: 500;
    padding: 0.5rem 0;
    border-bottom: 2px solid transparent;
}

header nav a:hover {
    color: var(--accent);
    border-bottom-color: var(--accent);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #4c95bc 0%, #003f58 50%, #5e42ad 100%);
    color: white;
    padding: 2rem 2rem;
    margin: 0 -2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.08'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: 3.5rem;
    color: white;
    font-weight: 800;
    margin: 0.5rem 0;
    letter-spacing: 0.05em;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.hero-banner {
    max-height: 8rem;
    width: auto;
    border-radius: 0;
    box-shadow: none;
    filter: brightness(0) invert(1);
}

.about-logo {
    text-align: center;
    margin: 1rem 0 2rem;
}

.about-logo img {
    max-width: 280px;
    width: 100%;
    height: auto;
    border-radius: 0;
    box-shadow: none;
}

.about-tagline {
    font-size: 0.95rem;
    font-style: italic;
    color: var(--text-light);
    margin: 1rem 0 0.2rem;
    letter-spacing: 0.02em;
    line-height: 1.6;
}

.about-tagline-ja {
    font-size: 0.85rem;
    color: var(--text-light);
    margin: 0;
}

.email-copy canvas {
    display: inline-block;
    vertical-align: middle;
}

.email-copy {
    display: inline-block;
    padding: 0.15em 0.5em;
    border: 1px dashed var(--accent);
    border-radius: 4px;
    color: var(--accent);
    font-family: monospace;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}

.email-copy:hover {
    background: var(--accent);
    color: #fff;
}

.click-copy {
    display: inline-block;
    padding: 0.1em 0.4em;
    border: 1px dashed var(--accent);
    border-radius: 3px;
    font-family: monospace;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}

.click-copy:hover {
    background: var(--accent);
    color: #fff;
}

.hero-title::before {
    content: none;
}

.hero-subtitle {
    font-size: 1rem;
    color: #cbd5e0;
    margin-top: 0.5rem;
}

/* Philosophy Section */
.philosophy {
    padding: 1rem 0;
    text-align: center;
}

.philosophy-content {
    max-width: 800px;
    margin: 0 auto;
}

.philosophy-quote {
    border: none;
    background: none;
    padding: 0;
    margin: 1rem 0;
}

.philosophy-quote p {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary);
    line-height: 1.5;
    position: relative;
}

.philosophy-quote p::before,
.philosophy-quote p::after {
    content: '"';
    color: var(--gold);
    font-size: 3rem;
    line-height: 0;
    vertical-align: middle;
}

.philosophy-quote p::before {
    margin-right: 0.2em;
}

.philosophy-quote p::after {
    margin-left: 0.2em;
}

.philosophy-description {
    font-size: 1.1rem;
    color: var(--text-light);
    line-height: 2;
}

/* Section Titles */
.section-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 2rem;
    position: relative;
    display: inline-block;
}

.section-title::before {
    content: none;
}

.section-title::after {
    content: "";
    position: absolute;
    bottom: -0.5rem;
    left: 0;
    width: 3rem;
    height: 4px;
    background: var(--gold);
    border-radius: 2px;
}

/* Research Highlights */
.research-highlights {
    background: var(--bg-alt);
    padding: 4rem 2rem;
    margin: 0 -2rem;
}

.highlight-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.highlight-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px var(--shadow);
    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
    text-align: center;
}

.highlight-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px var(--shadow);
}

.highlight-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.highlight-card h3 {
    font-size: 1.3rem;
    color: var(--primary);
    margin: 0 0 1rem;
}

.highlight-card h3::before {
    content: none;
}

.highlight-card p {
    color: var(--text-light);
    font-size: 0.95rem;
    margin: 0;
    line-height: 1.7;
}

/* About Section */
.about-section {
    padding: 4rem 0;
}

.about-content {
    line-height: 2;
}

.about-content h2 {
    font-size: 1.4rem;
    color: var(--primary);
    margin-top: 2rem;
}

.about-content h2::before {
    content: none;
}

/* Home Main Grid */
.home-main-grid {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

@media (min-width: 768px) {
    .home-main-grid {
        flex-direction: row;
        align-items: flex-start;
        gap: 0;
    }

    .home-content-wrapper {
        flex: 0 0 60%;
        padding-right: 2rem;
    }

    .news-section {
        flex: 0 0 40%;
        border-top: none;
        padding-left: 2rem;
        padding-right: 2rem;
    }
}

/* Home Content */
.home-content {
    padding: 1.5rem 0 1rem;
}

.home-section-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 1rem;
    border-bottom: 2px solid var(--accent);
    padding-bottom: 0.5rem;
}

.home-content p {
    line-height: 1.9;
    margin-bottom: 1rem;
}

.research-list {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
}

.research-list li {
    padding: 0.8rem 0 0.8rem 1rem;
    border-left: 3px solid var(--accent);
    margin-bottom: 0.8rem;
    background: var(--bg-alt);
    line-height: 1.7;
}

.research-list li::before {
    content: none;
}

.research-list strong {
    color: var(--accent);
}

/* News Section */
.news-section {
    padding: 0.5rem 0;
    border-top: 1px solid var(--border);
}

.news-section .section-title {
    font-size: 1.4rem;
    margin-bottom: 1rem;
}

.news-list {
    padding: 0;
    margin: 0;
}

.news-item {
    display: flex;
    align-items: baseline;
    gap: 1.5rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border);
}

.news-item::before {
    content: none;
}

.news-date {
    font-family: "Roboto Mono", monospace;
    font-size: 0.8rem;
    color: var(--text-light);
    white-space: nowrap;
}

.news-link {
    color: var(--text);
    font-weight: 500;
    font-size: 0.9rem;
}

.news-link:hover {
    color: var(--accent);
}

/* Standard headings */
h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--primary);
    line-height: 1.4;
    margin-top: 2em;
    margin-bottom: 0.5em;
}

h1 {
    font-size: 2rem;
}

h2 {
    font-size: 1.6rem;
}

h3,
h4,
h5,
h6 {
    font-size: 1.3rem;
}

h1::before,
h2::before,
h3::before,
h4::before,
h5::before,
h6::before {
    content: none;
}

/* Meta */
.meta {
    color: var(--text-light);
    font-size: 0.9rem;
}

/* Footer */
footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid var(--border);
    padding: 2rem 0;
    margin-top: 3rem;
    color: var(--text-light);
    font-size: 0.9rem;
}

.soc {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.soc a {
    color: var(--text-light);
    border-bottom: none;
}

.soc a:hover {
    color: var(--accent);
}

.footer-logo {
    height: 1.4rem;
    width: auto;
    vertical-align: middle;
    margin-right: 0.4rem;
    opacity: 0.6;
    border-radius: 0;
    box-shadow: none;
}

/* Posts */
article .title {
    margin-bottom: 1em;
}

.posts {
    padding: 0;
}

.post {
    padding: 1rem 0;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 1rem;
}

.post::before {
    content: none;
}

.post a {
    font-weight: 500;
    flex: 1;
}

.post .meta {
    flex-shrink: 0;
    text-align: right;
}

/* Tags */
.tags li::before {
    content: none;
}

.tags a {
    display: inline-block;
    background: var(--bg-alt);
    padding: 0.3em 0.8em;
    border-radius: 20px;
    font-size: 0.85rem;
    color: var(--text-light);
    border: 1px solid var(--border);
}

.tags a:hover {
    background: var(--accent);
    color: white;
    border-color: var(--accent);
}

/* Draft label */
.draft-label {
    color: white;
    background: var(--gold);
    padding: 0.2em 0.5em;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-left: 0.5rem;
}

/* Table */
table {
    border-spacing: 0;
    border-collapse: collapse;
    width: 100%;
    margin: 1.5em 0;
}

table th {
    padding: 1rem;
    background: var(--bg-alt);
    border: 1px solid var(--border);
    font-weight: 600;
    text-align: left;
}

table td {
    padding: 1rem;
    border: 1px solid var(--border);
}

table tr:hover td {
    background: var(--bg-alt);
}

/* Callout */
.callout {
    background: linear-gradient(135deg, var(--accent) 0%, var(--primary-light) 100%);
    color: white;
    padding: 1.5em;
    border-radius: 8px;
    margin: 1.5em 0;
}

.callout p {
    margin: 0;
}

.callout a {
    color: white;
    border-bottom: 2px solid rgba(255, 255, 255, 0.5);
}

.callout a:hover {
    border-bottom-color: white;
}

/* SVG icons */
svg {
    max-height: 18px;
    vertical-align: middle;
}

/* Footnotes */
.footnotes {
    margin-top: 0.5rem;
    padding-top: 0;
    font-size: 0.7rem;
    color: var(--text-light);
}

/* Remove duplicate border if footnotes already has border from parent */
.home-content .footnotes,
.research-content .footnotes {
    border-top: none;
    margin-top: 0.25rem;
    padding-top: 0;
}

/* Hide the hr tag inside footnotes */
.footnotes hr {
    display: none;
}

.footnotes ol {
    padding-left: 1.5rem;
    margin-top: 0.25rem;
    margin-bottom: 0;
}

.footnotes li {
    margin-bottom: 0.25rem;
    line-height: 1;
}

.footnotes li::before {
    content: none;
}

.footnotes li p {
    margin-bottom: 0;
    line-height: 1.4;
}

.footnotes a {
    color: var(--accent);
    font-size: 0.85rem;
}

/* Code syntax highlighting labels */
.highlight {
    position: relative;
    margin: 1.5em 0;
}

.highlight pre code[class*="language-"]::before {
    background: var(--accent);
    border-radius: 0 0 4px 4px;
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    padding: 0.2rem 0.6rem;
    position: absolute;
    right: 1rem;
    text-transform: uppercase;
    top: 0;
}

.highlight pre code[class="language-javaScript"]::before,
.highlight pre code[class="language-js"]::before {
    content: "js";
    background: #f7df1e;
    color: black;
}

.highlight pre code[class*="language-yml"]::before,
.highlight pre code[class*="language-yaml"]::before {
    content: "yaml";
    background: #f71e6a;
}

.highlight pre code[class*="language-shell"]::before,
.highlight pre code[class*="language-bash"]::before,
.highlight pre code[class*="language-sh"]::before {
    content: "shell";
    background: #4caf50;
}

.highlight pre code[class*="language-json"]::before {
    content: "json";
    background: #0288d1;
}

.highlight pre code[class*="language-python"]::before,
.highlight pre code[class*="language-py"]::before {
    content: "python";
    background: #3776ab;
}

.highlight pre code[class*="language-go"]::before {
    content: "go";
    background: #00add8;
}

/* TOC */
.toc {
    background: var(--bg-alt);
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid var(--accent);
}

/* What We Do Section */
.what-we-do {
    padding: 2rem 0;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.section-lead {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 1.5rem;
}

.section-description {
    font-size: 1.05rem;
    color: var(--text-light);
    line-height: 2;
}

/* Research Projects Section */
.research-projects {
    background: var(--bg-alt);
    padding: 2rem 2rem;
    margin: 0 -2rem;
}

.project-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.project-card {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px var(--shadow);
    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
    border-top: 4px solid var(--accent);
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px var(--shadow);
}

.project-name {
    font-family: "Roboto Mono", monospace;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 0.3rem;
}

.project-theme {
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 0.8rem;
}

.project-card p {
    font-size: 0.9rem;
    color: var(--text-light);
    margin: 0;
    line-height: 1.6;
}

/* Research Page */
.research-page h1 {
    margin-bottom: 1.5rem;
}

.project-cards-section {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
}

.project-cards-section .project-cards {
    margin-top: 0;
}

.paper-stats-section {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
}

.paper-stats-card-link {
    display: block;
    text-decoration: none;
    background: var(--bg-alt);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--border);
    color: inherit;
}

.paper-stats-card-link:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px var(--shadow);
    text-decoration: none;
    color: inherit;
}

.paper-stats-card-link .paper-stats {
    margin-top: 0;
}

.paper-stats-card-link .paper-stats-grid {
    margin-top: 0;
}

.paper-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 3rem;
    margin-top: 2rem;
    text-align: center;
}

@media (max-width: 1024px) {
    .paper-stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .paper-stats-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

.paper-stat-item {
    text-align: center;
}

.paper-stat-icon {
    font-size: 2.5rem;
    color: var(--accent);
    margin-bottom: 1rem;
}

.paper-stat-number {
    font-size: 4rem;
    font-weight: 700;
    color: var(--accent);
    line-height: 1.2;
    margin-bottom: 1rem;
    font-family: "Roboto Mono", monospace;
}

.paper-stat-label {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--primary);
}

.research-content h2 {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
}

.research-content h2:first-child {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
}

/* Three Entry Points Section */
.entry-points {
    padding: 2rem 0;
    text-align: center;
}

.entry-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.entry-card {
    display: block;
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px var(--shadow);
    border: 2px solid transparent;
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
}

.entry-card:hover {
    border-color: var(--accent);
    transform: translateY(-5px);
    box-shadow: 0 8px 25px var(--shadow);
}

.entry-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.entry-card h3 {
    font-size: 1.2rem;
    color: var(--primary);
    margin: 0 0 0.8rem;
}

.entry-card h3::before {
    content: none;
}

.entry-card p {
    font-size: 0.95rem;
    color: var(--text-light);
    margin: 0;
    line-height: 1.6;
}

/* Join Us Page */
.join-hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: white;
    padding: 4rem 2rem;
    margin: 0 -2rem 3rem;
    text-align: center;
    position: relative;
}

.join-hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
}

.join-hero-content {
    position: relative;
    z-index: 1;
}

.join-title {
    font-size: 3rem;
    font-weight: 800;
    margin: 0;
    letter-spacing: 0.05em;
}

.join-title::before {
    content: none;
}

.join-subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-top: 0.5rem;
}

.join-content {
    max-width: 800px;
    margin: 0 auto;
}

.join-content h2 {
    font-size: 1.6rem;
    color: var(--primary);
    margin-top: 3rem;
    padding-bottom: 0.5rem;
    border-bottom: 3px solid var(--gold);
}

.join-content h2::before {
    content: none;
}

.join-content h3 {
    font-size: 1.3rem;
    color: var(--primary-light);
    margin-top: 2rem;
}

.join-content h3::before {
    content: none;
}

.join-content ul li {
    padding-left: 1.5em;
    margin-bottom: 0.8em;
}

.join-content hr {
    margin: 3rem 0;
    border-top: 1px solid var(--border);
}

/* CTA Section */
.join-cta {
    margin: 4rem -2rem 0;
    padding: 4rem 2rem;
    background: var(--bg-alt);
}

.cta-box {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.cta-box h2 {
    font-size: 1.8rem;
    color: var(--primary);
    margin: 0 0 1rem;
}

.cta-box h2::before {
    content: none;
}

.cta-box p {
    color: var(--text-light);
    margin-bottom: 2rem;
}

.cta-button {
    display: inline-block;
    background: linear-gradient(135deg, var(--accent) 0%, var(--primary-light) 100%);
    color: white;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-family: inherit;
    font-weight: 600;
    font-size: 1.1rem;
    border: none;
    cursor: pointer;
    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(49, 130, 206, 0.4);
    color: white;
    border-bottom-color: transparent;
}

.cta-subject-hint {
    margin-top: 1rem;
    font-size: 0.9rem;
    color: var(--text-light);
}

/* Research Projects Table */
.project-table {
    margin: 2rem 0;
    overflow-x: auto;
}

.project-table table {
    min-width: 600px;
}

.project-table th:first-child {
    width: 100px;
    text-align: center;
}

.project-table td:first-child {
    font-weight: 700;
    color: var(--accent);
    text-align: center;
}

/* Members List Page */
.members-page h1 {
    margin-bottom: 2rem;
}

.members-page h1::before {
    content: none;
}

.members-section {
    margin-bottom: 3rem;
}

.members-section-title {
    font-size: 1.4rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--border);
}

.members-section-title::before {
    content: none;
}

/* Collapsible sections */
.members-section-collapsible {
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 0;
}

.members-section-collapsible > .members-section-title {
    cursor: pointer;
    padding: 1rem 1.5rem;
    margin-bottom: 0;
    border-bottom: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    list-style: none;
}

.members-section-collapsible > .members-section-title::-webkit-details-marker {
    display: none;
}

.members-section-collapsible > .members-section-title::after {
    content: "▶";
    font-size: 0.8rem;
    margin-left: auto;
    transition: transform 0.2s ease;
}

.members-section-collapsible[open] > .members-section-title::after {
    transform: rotate(90deg);
}

.members-section-collapsible[open] > .members-section-title {
    border-bottom: 1px solid var(--border);
}

.members-section-collapsible > .members-grid {
    padding: 1.5rem;
}

.members-count {
    font-size: 0.9rem;
    color: var(--secondary);
    font-weight: normal;
}

/* Join CTA */
.members-join-cta {
    margin-top: 3rem;
    padding: 2rem;
    text-align: center;
    background: var(--bg-alt);
    border-radius: 12px;
    border: 1px solid var(--border);
}

.members-join-cta p {
    margin: 0 0 1rem 0;
    font-size: 1.1rem;
    color: var(--secondary);
}

.members-join-button {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: var(--primary);
    color: var(--bg);
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    transition: opacity 0.2s ease;
}

.members-join-button:hover {
    opacity: 0.85;
}

/* Papers collapse */
.papers-hidden {
    display: none;
}

.papers-hidden.papers-visible {
    display: list-item;
}

.papers-toggle-btn {
    background: none;
    border: none;
    color: var(--secondary);
    font-size: 0.9rem;
    cursor: pointer;
    padding: 0.5rem 0;
    margin-left: 2.5rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.papers-toggle-btn:hover {
    color: var(--primary);
}

.papers-toggle-btn::before {
    content: "▶";
    font-size: 0.7rem;
    transition: transform 0.2s ease;
}

.papers-toggle-btn.papers-expanded::before {
    transform: rotate(90deg);
}

.members-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.member-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1.5rem;
    background: var(--bg-alt);
    border-radius: 12px;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.member-card:hover {
    border-color: var(--accent);
    transform: translateY(-5px);
    box-shadow: 0 8px 25px var(--shadow);
}

.member-card-photo {
    width: 120px;
    height: 120px;
    margin-bottom: 1rem;
}

.member-card-photo img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--accent);
}

.member-card-photo-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-alt);
    border: 3px solid var(--border);
    border-radius: 50%;
    font-size: 0.8rem;
    color: var(--text-light);
}

.member-card-info {
    text-align: center;
}

.member-card-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary);
    margin: 0 0 0.3rem;
}

.member-card-name::before {
    content: none;
}

.member-card-role {
    font-size: 0.9rem;
    color: var(--text-light);
    margin: 0;
}

.members-empty {
    color: var(--text-light);
    font-style: italic;
}

/* Collaborators */
.collaborators-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1rem;
    padding: 0;
}

.collaborators-list li {
    display: flex;
    flex-direction: column;
    padding: 1rem;
    background: var(--bg-alt);
    border-radius: 8px;
    border-left: 3px solid var(--accent);
}

.collaborators-list li::before {
    content: none;
}

.collaborator-name {
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 0.3rem;
}

.collaborator-affiliation {
    font-size: 0.9rem;
    color: var(--text-light);
}

@media screen and (max-width: 900px) {
    .members-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (max-width: 500px) {
    .members-grid {
        grid-template-columns: 1fr;
    }
}

/* Member Profile Page */
.member-profile {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 0;
}

.member-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 3rem;
    margin-bottom: 3rem;
}

.member-info {
    flex: 1;
}

.member-name {
    font-size: 2rem;
    color: var(--primary);
    margin: 0 0 0.5rem;
}

.member-name::before {
    content: none;
}

.member-role {
    font-size: 1.2rem;
    color: var(--accent);
    font-weight: 600;
    margin: 0 0 0.3rem;
}

.member-affiliation {
    font-size: 1rem;
    color: var(--text-light);
    margin: 0;
}

.member-photo {
    flex-shrink: 0;
}

.member-photo img {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 4px 15px var(--shadow);
    border: 4px solid var(--accent);
}

.member-content {
    line-height: 1.9;
}

.member-content h2 {
    font-size: 1.4rem;
    margin-top: 2.5rem;
    color: var(--primary);
}

.member-content h2::before {
    content: none;
}

.member-links {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
}

.member-links h3 {
    font-size: 1.2rem;
    color: var(--primary);
    margin: 0 0 1rem;
}

.member-links h3::before {
    content: none;
}

.member-links ul {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.member-links li {
    padding-left: 0;
}

.member-links li::before {
    content: none;
}

.member-links a {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: var(--bg-alt);
    border-radius: 6px;
    border: 1px solid var(--border);
    transition: all 0.2s ease;
}

.member-links a:hover {
    background: var(--accent);
    color: white;
    border-color: var(--accent);
}

/* Responsive */
@media screen and (max-width: 768px) {
    .hero {
        padding: 3rem 1.5rem;
    }

    .hero-title {
        font-size: 2.2rem;
    }

    .philosophy-quote p {
        font-size: 1.4rem;
    }

    header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    header nav {
        gap: 1rem;
    }

    .news-item {
        flex-direction: column;
        gap: 0.3rem;
    }

    .content {
        padding: 0 1rem;
    }

    .hero,
    .research-highlights,
    .join-hero,
    .join-cta {
        margin-left: -1rem;
        margin-right: -1rem;
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }

    .join-title {
        font-size: 2rem;
    }

    .member-header {
        flex-direction: column-reverse;
        align-items: center;
        text-align: center;
        gap: 1.5rem;
    }

    .member-photo img {
        width: 150px;
        height: 150px;
    }
}
