/* =========================
   General Styles
========================= */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Crimson Text', serif;
    font-weight: 400;
    font-style: normal;
}

body {
    background-color: #f5f5f0;
    color: #434a56;
    line-height: 1.2;
    text-align: justify;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    font-size: 1.2rem;
}


/* =========================
   Header
========================= */
header {
    background-color: #474236;
    color: white;
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

header .header-container {
    display: flex;
    justify-content: space-between; /* logo on left, nav on right */
    align-items: center; /* vertical alignment */
    padding: 0 20px; /* optional horizontal padding */
}

header .logo {
    font-size: 1.5rem;
    font-weight: regular;
}

header nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.2rem
}

header .nav-links {
    list-style: none;
    display: flex;
    gap: 20px;
}

header .nav-links li a {
    color: white;
    text-decoration: none;
    padding: 6px 10px;
    transition: background 0.3s, color 0.3s;
}

header .nav-links li a:hover,
header .nav-links li a.active {
    background-color: #ffffff33;
    border-radius: 5px;
}

/* Mobile Menu */
.menu-toggle {
    display: none;
    font-size: 1.8rem;
    cursor: pointer;
}

/* =========================
   Hero Section
========================= */
.two-column {
  display: flex;
  gap: 40px; /* space between columns */
  align-items: stretch;
  padding: 60px 0;
  flex-wrap: wrap; /* makes it responsive */
  background-color: #f5f5f0;
  /*padding: 60px 0;
  text-align: center;*/
}

.image-column {
  flex: 1; /* 1 part of total 4 */
  /*min-width: 200px; /* prevents image from getting too small */
  max-width: 20%; /* ensures it doesn't exceed 1/4 */

}

.image-column img {
  width: 100%;
  height: 100%;     /* stretch to match column height */
  object-fit: cover; /* maintain aspect ratio and crop if necessary */
  border-radius: 8px;
}

.text-column {
  flex: 3; /* 3 parts of total 4 */
  /*min-width: 250px;*/
}

.text-column h1 {
  color: #990000;
  margin-bottom: 20px;
  font-size: 1.7rem;
}

.text-column p {
  font-size: 1.2rem;
  text-align: justify;
}

.text-links {
  display: flex;
  /*justify-content: center;*/
  gap: 20px;
  font-size: 1.2rem;
}

.btn {
  background-color: #f5f5f0;
  color: #434a56;
  text-decoration: none;
  padding: 10px 0px;
  border-radius: 5px;
  transition: background-color 0.3s ease;
}

.btn:hover {
  background-color: #474236;
  color: white;
}

.btn.secondary {
  background-color: #f5f5f0;
}

.btn.secondary:hover {
  background-color: #474236;
  color: white;
}

.divider {
  border: none;
  height: 1px;
  background-color: #444; /* faint grey */
  margin: 10px 0;
  opacity: 0.4;
}

/*==============
Hero
========*/

.hero {
    background-color: #f5f5f0;
    padding: 60px 0;
}

.hero img {
  display: block;   /* makes margin auto work */
    margin: 0 auto;   /* horizontally centers the image */
    width: 60%;
    height: auto;
    border-radius: 8px;
}

.hero h1 {
    color: #990000;
    margin-bottom: 20px;
    font-size: 1.7rem;
}

.hero p {
    font-size: 1.2rem;
    text-align: justify;
}
/* =====================
Research lines page
======================*/

.research-column {
  display: flex;
  gap: 40px; /* space between columns */
  align-items: stretch;
  padding: 20px 0;
  flex-wrap: wrap; /* makes it responsive */
  background-color: #f5f5f0;
  /*padding: 60px 0;
  text-align: center;*/
}

.research-image {
  flex: 1; /* 1 part of total 4 */
  /*min-width: 200px; /* prevents image from getting too small */
  max-width: 50%; /* ensures it doesn't exceed 1/4 */

}

.research-image img {
  width: 100%;
  height: auto;     /* stretch to match column height */
  object-fit: cover; /* maintain aspect ratio and crop if necessary */
  border-radius: 8px;
}

.research-text {
  flex: 1; /* 3 parts of total 4 */
  /*min-width: 250px;*/
}

.research-text h1 {
  color: #990000;
  margin-bottom: 20px;
  font-size: 1.7rem;
}

.research-text p {
  font-size: 1.2rem;
  text-align: justify;
}

/* =========================
   Content Section
========================= */
.two-column-section {
  display: flex;
  gap: 70px;
  padding: 40px 20px;
  flex-wrap: wrap; /* responsive stacking */
}

.two-column-section .column {
  flex: 1; /* equal width for both columns */
  min-width: 300px;
  justify-content: justify;
}

.two-column-section h1{
  color: #990000;
  margin-bottom: 20px;
  font-size: 1.7rem;
}

.two-column-section p{
  font-size: 1.2rem;
}


.two-column-section ul {
  padding-left: 40px; /* or margin-left: 40px; */
  list-style: none;
  line-height: 1.5;
  font-size: 1.2rem;

}

/* News ticker container */
.news-ticker {
  height: 250px; /* visible height */
  overflow: hidden;
  position: relative;
  border: 0px solid #ccc;
  padding: 10px;
  border-radius: 8px;
  /*background-color: #f9f9f9;*/
}

/* Auto-scrolling list */
.news-ticker ul {
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 1.2rem;
  animation: scroll-news 20s linear infinite; /* slow auto scroll */
}

.news-ticker li {
  margin-bottom: 20px;
  line-height: 1.5;
}

/* Keyframes for scrolling */
@keyframes scroll-news {
  0% {
    transform: translateY(0%);
  }
  100% {
    transform: translateY(-50%); /* adjust depending on list length */
  }
}


/*.content {
    padding: 10px 0;
}

.content h2 {
    color: #13263a;
    margin-bottom: 20px;
}

.content p {
    margin-bottom: 20px;
}

.content ul {
    list-style-type: disc;
    padding-left: 20px;
    margin-bottom: 30px;
}
*/
/* =========================
   Group Members Page
========================= */
.member-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin: 40px 0;
}

.member-card {
    background: white;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.member-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.member-card img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 15px;
}

.member-card h3 {
    color: #990000;
    margin-bottom: 8px;
}


.alumni-list {
    list-style-type: disc;
    padding-left: 20px;
    margin: 20px 0;
}

.alumni-list li {
    margin-bottom: 8px;
    font-size: 1.2rem;
}

.italic-text {
  font-style: italic;
}


/*======================
About
========================*/
.custom-table {
  border-collapse: collapse; /* removes spacing between cells */
  width: 100%;
  max-width: 1200px;
  margin: 10px auto;
}

.custom-table td {
  padding: 1px 1px;        /* spacing inside cells */
  line-height: 1;
  color: #434a56;
  font-size: 1.2rem;
}

.custom-table .small-col {
  width: 25%;               /* smaller column */
          /* optional, for labels */
}

.custom-table td:nth-child(2) {
  width: 75%;               /* larger column */
}

/* Optional: remove default table borders completely */
.custom-table,
.custom-table td {
  border: none;
}

/* =========================
   Publications Page
========================= */
.publication-list {
    list-style-type: decimal;
    padding-left: 25px;
    margin: 15px 0 40px 0;
    font-size: 1.2rem;
    color: #434a56;
}

.publication-list li {
    margin-bottom: 12px;
    padding-left: 15px;
    position: relative;
}

/*.publication-list li::before {
    content: "•";
    color: #003366;
    font-weight: bold;
    position: absolute;
    left: 0;
}*/

/* =========================
   Teaching Page Links
========================= */
.content ul a {
    color: #003366;
    text-decoration: none;
}

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

/* =========================
   Footer
========================= */
footer {
  background-color: #474236;
  color: white;
  padding: 20px 20px;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  border-bottom: 1px solid #444;
  padding-bottom: 15px;
  margin-bottom: 15px;
}

.footer-left,
.footer-right {
  flex: 1;
  min-width: 250px;
}

.footer-left {
  text-align: left;
}

.footer-right {
  text-align: right;
}

.footer-left h4,
.footer-right h4 {
  color: #fff;
  margin-bottom: 10px;
}

.footer-right a {
  color: #ccc;
  text-decoration: none;
}

.footer-right a:hover {
  color: #fff;
}

.footer-bottom {
  text-align: center;
  font-size: 0.9rem;
  color: #999;
}
/*
footer {
    background-color: #003366;
    color: white;
    text-align: center;
    padding: 20px 0;
}
*/
/* =========================
   Responsive Styles
========================= */
@media screen and (max-width: 768px) {
    header nav {
        flex-direction: column;
        align-items: flex-start;
    }

    .nav-links {
        flex-direction: column;
        width: 100%;
        display: none;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links li {
        width: 100%;
        text-align: left;
        margin: 5px 0;
    }

    .menu-toggle {
        display: block;
        color: white;
        align-self: flex-end;
    }
}
