body {
    font-family: Georgia, serif;
    font-size: 16px;
    line-height: 1.5;
    color: #333;
    background-color: #fff;
    margin: 0;
    padding: 0;
}
#header {
    background-image: url('assets/keyword_cooccurrences_betweenness.png');
    background-size: contain; /* prevents stretching */
    background-repeat: no-repeat;
    background-position: center center; /* centres image horizontally */
    background-color: black;
    height: 400px;
    display: flex;
    align-items: center;
}
#header-content {
    display: flex;
    align-items: center;
    gap: 20px;
    background-color: rgba(0, 0, 0, 0.5);
    padding: 20px 30px;
    border-radius: 12px;
    width: 100%;
    max-width: 1000px;
    margin: 0 auto; /* centres this content block */
}
#intro-block {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    max-width: 800px;
    margin: 30px auto;
    padding: 0 1em;
    text-align: left;
}
#cv-download {
    text-align: center;
    margin: 20px 0;
}
#cv-download a {
    background-color: #8C1515;
    color: white;
    padding: 10px 20px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: bold;
}
#cv-download a:hover {
    background-color: #A42C2C;
}
#name-title h1, #name-title p {
    margin: 0;
}
#name-title h1 {
    font-size: 2em;
    font-weight: normal;
    color: #8C1515;
}
#name-title p {
    font-size: 1.1em;
    color: #8C1515;
}
#photo-container {
    flex-shrink: 0;
}
#profile-photo {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 3px solid #fff;
    object-fit: cover;
}
#name-title {
    color: white;
    text-align: left;
}
#name-title h1 {
    color: #8C1515;
    margin: 0;
    font-size: 2em;
    font-weight: normal;
}
#profile-photo {
    width: 100px;
    height: 100px;
    align-items: center;
    border-radius: 50%;
    border: 3px solid white;
    object-fit: cover;
}
#container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 1em;
}
#content {
    margin-bottom: 2em;
}
h1, h2 {
    font-weight: normal;
    color: #8C1515;
}
h2 {
    border-bottom: 1px solid #eee;
    padding-bottom: 3px;
}
a {
    color: #8C1515;
    text-decoration: none;
}
a:hover {
    text-decoration: underline;
}
#footer {
    font-size: 0.9em;
    color: #666;
    border-top: 1px solid #eee;
    padding-top: 1em;
    margin-top: 2em;
}
ul {
    padding-left: 1.5em;
}
ul li {
    margin-bottom: 10px;
}

/* Navigation menu styling for all pages */
.nav-menu {
    background-color: #f5f5f5;
    padding: 10px 0;
    margin-bottom: 30px;
}

.nav-container {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
}

.nav-menu a {
    margin: 0 15px;
    color: #8C1515;
    text-decoration: none;
    padding: 5px 10px;
    border-radius: 4px;
}

.nav-menu a:hover {
    background-color: #e9e9e9;
    text-decoration: none;
}

.nav-menu a.active {
    background-color: #8C1515;
    color: white;
}

/* Data Analysis Grid Layout */
.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(450px, 1fr));
    gap: 30px;
    margin-top: 10px;
    margin-bottom: 50px;
}

.analysis-card {
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.card-image {
    width: 100%;
    height: 100px;
    object-fit: contain;
    display: block;
}

.card-content {
    padding: 15px;
}

.card-content h3 {
    color: #8C1515;
    margin-top: 0;
    margin-bottom: 10px;
    font-weight: normal;
}

.card-content h3 a {
    color: #8C1515;
    text-decoration: none;
}

.card-content h3 a:hover {
    text-decoration: underline;
}

.card-content p {
    margin: 0;
    color: #555;
}

.card-content p a {
    color: #8C1515;
    text-decoration: none;
}

.card-content p a:hover {
    text-decoration: underline;
}

.card-header {
    cursor: pointer;
}

.card-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.toggle-arrow {
    transition: transform 0.3s ease;
    font-size: 1.2em;
    color: #8C1515;
}

/* Rotate arrow when open */
.analysis-card.open .toggle-arrow {
    transform: rotate(90deg);
}

.card-body {
    display: none;
    transition: all 0.3s ease;
}

.analysis-card.open .card-body {
    display: block;
}

/* In style.css */

/* --- Publication Card Styles --- */
.card-grid {
    display: grid;
    grid-template-columns: 1fr; /* Creates a single column grid */
    gap: 25px; /* Space between cards */
}

.publication-card {
    display: flex; /* Aligns image and text side-by-side */
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden; /* Keeps the rounded corners */
    text-decoration: none; /* Removes underline from the link */
    color: inherit;
    transition: box-shadow 0.3s ease;
}

.publication-card:hover {
    box-shadow: 0 4px 15px rgba(0,0,0,0.1); /* Adds a subtle shadow on hover */
}

.card-image {
    width: 200px;  /* Fixed width for the image */
    height: 150px; /* Fixed height for the image */
    object-fit: cover; /* Ensures the image covers the area without distortion */
}

.card-text {
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.card-text h3 {
    margin-top: 0;
    margin-bottom: 5px;
    font-size: 1.1em;
    color: #8C1515; /* Your theme color */
}

.card-text p {
    margin: 0;
    font-size: 0.9em;
    color: #555;
}

/* In style.css */

/* --- General Style Improvements --- */

/* Better default typography for the whole site */
body {
    font-family: Georgia, 'Times New Roman', Times, serif; /* Matches your serif headings */
    line-height: 1.6; /* More space between lines of text */
}

/* Consistent styling for all main headings */
#content h2 {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-weight: 300;
    font-size: 2em;
    color: #333;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
    margin-top: 20px;
    margin-bottom: 25px;
}

/* Refine the navigation menu container */
.nav-menu {
    border-bottom: 1px solid #ddd;
    margin-bottom: 30px; /* Add space below the menu */
}

/* A more distinct footer */
#footer {
    background-color: #f8f8f8;
    color: #777;
    text-align: center;
    padding: 20px 0;
    margin-top: 50px;
    border-top: 1px solid #eee;
    font-size: 0.9em;
}
