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

/* BODY */
body {
  font-family: 'Segoe UI', sans-serif;
  background: #f4f7fb;
  color: #333;
  line-height: 1.6;
  padding-top: 100px;
}

/* HEADER */
header {
  background: #0b3c5d;
  color: white;
  padding: 20px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

header {
  position: fixed;      /* fixes header at the top */
  top: 0;
  left: 0;
  width: 100%;
  z-index: 9999;        /* stays above everything */
}

.header-text h1 {
  font-size: 24px;
}

.header-text p {
  font-size: 14px;
  opacity: 0.8;
}

.header-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.header-top h1 a {
  text-decoration: none;
  color: inherit;
}

nav a {
  color: white;
  margin-left: 20px;
  text-decoration: none;
  font-size: 14px;
}

nav a:hover {
  text-decoration: underline;
}

.hero-banner-grid {
  position: relative;
  width: 100%;               /* full width */
  max-width: 100%;
  padding: 30px;             /* space from screen edges */
  box-sizing: border-box;
  background: linear-gradient(to right, #f0f0f0, #d9d9d9);
}

.row {
  display: grid;
  grid-template-columns: repeat(6, 1fr); /* 6 images per row */
  gap: 30px;                             /* spacing between images */
  margin-bottom: 20px;                   /* spacing between rows */
}

.grid-image {
  width: 100%;       /* fill each grid cell */
  height: 130px;
  object-fit: cover;
  transition: 0.3s;
  opacity: 0.7;
  Filter: blur(1px);
  transition: 0.3s;
}

.grid-image:hover {
  transform: translateY(-10px) scale(1.05);
  opacity: 1;
  filter: blur(10);
}


/* HERO TEXT */
.hero-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  padding: 20px 40px;
  border-radius: 12px;
  background: rgba(255,255,255,0.7);
  backdrop-filter: blur(4px);
  text-align: center;
}

.hero-text h1 {
  font-size: 3rem;
}

.hero-text p {
  font-size: 1.5rem;
}

/* CARDS */
.cards {
  display: flex;
  justify-content: center;
  gap: 25px;
  padding: 30px 20px;
  flex-wrap: wrap;
}

.card {
  background: white;
  padding: 25px;
  width: 260px;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.08);
  text-align: center;
  transition: 0.3s;
}

.card:hover {
  transform: translateY(-10px) scale(1.05);
}

.card h3 {
  color: #0b3c5d;
  margin-bottom: 10px;
}

.card p {
  margin: 0;
  text-align: center;       /* body text centered */
  text-align-last: center;  /* ensures last line is centered in some browsers */
  line-height: 1.5;         /* smooth spacing */
}

/* SECTIONS */
section {
  padding: 20px;
  max-width: 1000px;
  margin: auto;
}

section h2 {
  color: #0b3c5d;
  margin-bottom: 20px;
}

p {
  text-align: justify;
}

p + p {
  margin-top: 10px;
}

/* LISTS */
ul {
  padding-left: 20px;
  margin-top: 10px;
}

li {
  margin-bottom: 8px;
}

/* FORMS */

  .contact-section {
    max-width: 600px;
    margin: 50px auto;
    padding: 20px;
  }

  .contact-section h2 {
    text-align: center;
    margin-bottom: 20px;
  }

  .contact-form {
    display: flex;
    flex-direction: column;
  }

  .contact-form label {
    margin-top: 15px;
    font-weight: 600;
  }

  .contact-form input,
  .contact-form select,
  .contact-form textarea {
    margin-top: 5px;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 14px;
    transition: border 0.2s ease;
  }

  .contact-form input:focus,
  .contact-form select:focus,
  .contact-form textarea:focus {
    border-color: #007BFF;
    outline: none;
  }

  .contact-form button {
    margin-top: 20px;
    padding: 12px;
    border: none;
    border-radius: 6px;
    background-color: #007BFF;
    color: white;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.2s ease;
  }

  .contact-form button:hover {
    background-color: #0056b3;
  }

button {
  background: #0b3c5d;
  color: white;
  padding: 12px;
  border: none;
  width: 100%;
  border-radius: 6px;
  cursor: pointer;
}

button:hover {
  background: #092c44;
}

/* FOOTER */
footer {
  text-align: center;
  padding: 20px;
  background: #0b3c5d;
  color: white;
  margin-top: 40px;
}

/* TIMELINE */
.timeline {
  position: relative;
  max-width: 900px;
  margin: 60px auto;
}

/* CENTER LINE */
.timeline::before {
  content: '';
  position: absolute;
  width: 4px;
  background: #0b3c5d;
  top: 0;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  z-index: 0;
}

/* ITEMS */
.timeline-item {
  width: 50%;
  padding: 20px 40px;
  position: relative;
  z-index: 1;
}

.timeline-item .content {
  background: white;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* LEFT */
.timeline-item.left {
  left: 0;
}

.timeline-item.left::after {
  content: '';
  position: absolute;
  right: -10px;
  top: 25px;
  width: 20px;
  height: 20px;
  background: #0b3c5d;
  border-radius: 50%;
}

/* RIGHT */
.timeline-item.right {
  left: 50%;
}

.timeline-item.right::after {
  content: '';
  position: absolute;
  left: -10px;
  top: 25px;
  width: 20px;
  height: 20px;
  background: #0b3c5d;
  border-radius: 50%;
}

.content {
  color: #0b3c5d;
}

/* REMOVE ANIMATION */
.animate {
  opacity: 1;
  transform: none;
}

/* VIDEO (IMPORTANT FIX) */
  iframe {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
  }

.menu-toggle {
  display: none;
}

.publication {
    margin-bottom: 20px;
}

.publication-title {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 8px;
    color: #0b3c5d;
}

.publication-description {
    font-size: 15px;
    color: #545454;
    margin-bottom: 6px;
    text-align: justify;
}

.publication-authors {
    font-size: 15px;
    color: #545454;
    margin-bottom: 10px;
}

.read-more-btn {
    display: inline-block;
    padding: 6px 12px;
    background-color: #0b3c5d;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    font-size: 14px;
}

.read-more-btn:hover {
    background-color: #1666c1;
}

.about-img {
    width: 100%;       /* makes image take full width of container */
    max-width: 1000px;  /* optional: limits image size on big screens */
    height: auto;      /* maintains aspect ratio */
    display: block;    /* removes small gaps under images */
    margin: 0 auto;    /* centers image horizontally */
}

  #calendar {
    max-width: 900px;
    margin: 40px auto;
  }

  h2 {
    text-align: center;
  }

.award-timeline {
  position: relative;
  max-width: 900px;
  margin: 60px auto;
  padding-left: 80px;
}

/* ✅ SINGLE CONTINUOUS LINE (NOT tied to items) */
.timeline-line {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 30px;
  width: 4px;
  background: #0b3c5d;
  border-radius: 2px;
  z-index: 0;
}

/* ITEMS */
.award-timeline-item {
  margin-bottom: 40px;
  position: relative;
  z-index: 1;
}

/* CARD */
.award-content {
  background: #fff;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  margin-left: 60px;
  color: #0b3c5d;
}

.award-content h3 {
  padding-bottom: 10px;
  color: #0b3c5d;
}

.appointments {
  max-width: 800px;
  margin: 60px auto;
  padding: 0 20px;
}

/* ROW */
.appointment-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 24px;
}

/* LEFT COLUMN (DATE) */
.appointment-date {
  width: 140px;
  font-weight: 600;
  color: #0b3c5d;
  flex-shrink: 0;
}

/* RIGHT COLUMN */
.appointment-details h3 {
  margin: 0;
  font-size: 1.05rem;
  color: #222;
}

.appointment-details p {
  margin: 4px 0 0;
  color: #555;
}

.appointments h3 {
  padding-bottom: 20px;
}

/* MOBILE */
@media (max-width: 768px) {

  body {
    padding-top: 100px;
}

  nav {
    display: none;
    flex-direction: column;
    width: 100%;
    background: #0b3c5d;
    margin-top: 10px;
  }

  nav a {
    margin: 10px 0;
    padding: 10px;
    border-top: 1px solid rgba(255,255,255,0.2);
  }

  nav.show {
    display: flex;
  }

  header {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 20px;
  }

  .header-top {
    display: flex;
    align-items: center;
    gap: 12px;
  }

  .menu-toggle {
    display: block;
    font-size: 26px;
    cursor: pointer;
    order: 1;
    margin-right: 12px;
  }


  .header-text {
    order: 2;
  }

  .header-text h1 {
    font-size: 16px;
    margin: 0;
  }

  .header-text p {
    font-size: 11px;
    margin: 0;
  }

  /* TIMELINE MOBILE */
  .timeline::before {
    left: 20px;
  }

  .timeline-item {
    width: 100%;
    padding-left: 60px;
    padding-right: 20px;
    margin-bottom: 20px;
  }

  .timeline-item.left,
  .timeline-item.right {
    left: 0;
  }

  .timeline-item::after {
    left: 10px;
    right: auto;
  }

  iframe {
    width: 100%;
    aspect-ratio: 16/9;
  }

.hero-banner-grid {
  position: relative;
  margin-bottom: 10px;
}

/* keep your grid */
.hero-banner-grid .row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
}

.hero-banner-grid .grid-image {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

/* lighter overlay */
.hero-banner-grid::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.25);
  z-index: 1;
}

/* CENTER TEXT PROPERLY */
.hero-text {
  position: absolute;
  top: 50%;              /* center vertically */
  left: 50%;
  transform: translate(-50%, -50%);
  
  width: 85%;
  text-align: center;

  z-index: 2;
  color: #0b3c5d;
}

/* better sizing */
.hero-text h1 {
  font-size: 28px;
  margin-bottom: 10px;
}

.hero-text p {
  font-size: 15px;
}

.publication-title {
    font-size: 17px;

}

.award-timeline {
  position: relative;
  max-width: 700px;
  margin: 40px auto;
  padding-left: 50px;
}

/* CONTINUOUS LINE */
.timeline-line {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 20px;
  width: 3px;
  background: #0b3c5d;
  border-radius: 2px;
}

/* ITEMS */
.award-timeline-item {
  position: relative;
  margin-bottom: 30px;
}

/* CARD */
.award-content {
  background: #fff;
  padding: 16px 18px;
  border-radius: 10px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.08);
  margin-left: 30px;
}

/* TYPOGRAPHY */
.award-content h3 {
  margin: 0 0 6px 0;
  font-size: 1rem;
  color: #0b3c5d;
  line-height: 1.4;
}

.award-content p {
  margin: 2px 0;
  font-size: 0.9rem;
  color: #333;
}

.appointment-item {
  flex-direction: column;
  }

.appointment-date {
  margin-bottom: 4px;
  }

section {
  padding: 15px;
  margin: 0;
}

}