/* Basic Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Open Sans', sans-serif; /* Example of a clean, readable font */
    color: #333333; /* Dark grey color for text */
    background-color: #f4f4f4; /* Light background color */
    line-height: 1.6; /* Improving readability */
    font-size: 24px; /* size of all text */
}


header {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;

  /* Gradient overlay + background image in one property */
  background: url('main_gv/Auther_Seat.png') center/cover no-repeat; /* Background image */

  color: #fff;
  padding: 12px 0 40px;       /* less top padding so content sits higher */
  min-height: 320px;
  position: relative;

}


/* header::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 0;
} */


header > * { position: relative; z-index: 1; }

header h1 { color: #000000; } /* solid white text */

header > * {
  position: relative; /* ensure content sits above overlay */
  z-index: 1;
}




header img {
  width: 300px;
  height: auto;
  border-radius: 50%;
  display: block;
}


nav ul {
      list-style: none;
      background-color: #444;
      text-align: center;
      padding: 20px;
      margin: 0;
    }


nav ul li {
    display: inline;
}

nav ul li a {
    color: white;
    padding: 24px 22px;
    text-decoration: none;
    /* Increase font size for a larger appearance */
    font-size: 1.5rem;
}

nav ul li a:hover {
    background-color: #555;
}

main {
    padding: 20px; /* More whitespace around content */
}

/* Heading Styles */
h1, h2, h3, h4, h5, h6 {
    margin-top: 28px;
    margin-bottom: 16px;
    color: #4a4a4a; /* Slightly darker shade for headings */
}

section {
    margin: 20px 0;
    padding: 20px;
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
}

section h2 {
    color: #333;
    margin-bottom: 12px;
    /* font-size: 1.5rem;  */

}

ul {
    list-style-position: inside;
}

a {
    color: #06c;
    transition: color 0.3s; /* Smooth transition for hover states */
}

a:hover {
    text-decoration: underline;
    color: #0056b3; /* Darker shade on hover */
}

.highlighted-email {
    background-color: #eef;
    padding: 2px 6px;
    border-radius: 4px;
}


nav ul {
  position: sticky;
  top: 0;
  z-index: 1000;
}

@media only screen and (max-width: 768px) {
    /* Adjustments for smaller screens */
    body {
        padding: 15px;
    }

    header, nav, main {
        padding-left: 15px;
        padding-right: 15px;
    }
}


/* Responsive figure grid */
.figure-grid {
  display: grid;
  width: 60vw;           /* half the screen width */
  margin: 0.5rem auto;   /* center the gallery */
  grid-template-columns: 1fr; /* change to repeat(2, 1fr) if you want two items per row within the half-width container */
  gap: 45px;
}

.figure-grid figure { /* same as before */
  margin: 0;
  border: 2px solid #eee;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
}


.figure-grid a {
  text-decoration: none;
  color: inherit;
  display: block;
}

.figure-grid img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 8 / 3;     /* Uniform thumbnail height; remove if you prefer no cropping */
  object-fit: cover;
}

.figure-grid figcaption {
  font-size: 1.2rem;
  line-height: 1.85;
  padding: 10px 14px;
  color: #333;
}

.figure-grid .credit {
  display: block;
  font-size: 0.95rem;
  color: #666;
  margin-top: 6px;
}



/* Smooth anchor scrolling */
html {
  scroll-behavior: smooth;
}

/* Card grid for Research hub */
.card-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 5px;
  width: min(1150px, 128vw);
  margin: 0px auto 0;
}

@media (max-width: 1080px) {
  .card-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .card-grid { grid-template-columns: 1fr; }
}

.card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 10px;
  overflow: hidden;
}

.card img {
  width: 100%;
  height: 450px;
  object-fit: cover;
}

.card-body {
  padding: 18px 20px 22px;
}

.card-body p {
  font-size: 18px;
}


.card h3 {
  margin: 6px 0 8px;
  font-size: 1.35rem;
  color: #333;
}

.card p {
  color: #444;
  margin-bottom: 10px;
}

.card .button {
  display: inline-block;
  background: #06c;
  color: #fff;
  padding: 8px 12px;
  border-radius: 6px;
  text-decoration: none;
  transition: background .2s ease-in-out;
}
.card .button:hover { background: #0056b3; }



    /* The container holds all page content */
    #wrapper {
      transition: transform 0.2s ease;
      /* initial transform-origin will be updated dynamically */
      transform-origin: 0 0;
    }