/* ======================= General ======================= */
body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  background: #fff;
  color: #555;
  scroll-behavior: smooth;
}

a {
  color: #4b0082;
  text-decoration: none;
}
a:hover {
  color: #9b30ff;
}

/* ======================= Navigation ======================= */
#navbar {
  position: fixed;
  top: 0;
  width: 100%;
  background: #4b0082;
  padding: 12px 0;
  z-index: 1000;
}

#navbar ul {
  list-style: none;
  display: flex;
  justify-content: center;
  margin: 0;
  padding: 0;
}

#navbar ul li {
  margin: 0 20px;
}

#navbar ul li a {
  color: #fff;
  font-weight: bold;
}

#navbar ul li a:hover {
  color: #9b30ff;
}

/* ======================= Banner ======================= */
#banner {
  text-align: center;
  padding: 100px 20px 50px 20px;
  background: #f9f9f9;
}

#banner h1 {
  font-size: 80px;
  margin: 10px 0;
  color: #4b0082;
}

#banner .full-name {
  font-size: 24px;
  margin: 10px 0;
  color: #333;
}

#banner .tagline {
  font-size: 18px;
  color: #555;
}

/* ======================= Sections ======================= */
section {
  max-width: 900px;
  margin: 50px auto;
  padding: 20px;
}

section h2 {
  color: #000;
  font-weight: bold;
  border-bottom: 3px solid #4b0082;
  display: inline-block;
  padding-bottom: 5px;
  margin-bottom: 15px;
}

/* ======================= Members Section ======================= */
.members-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  justify-items: center;
  margin-top: 30px;
}

.member-card {
  text-align: center;
  background: #f4f4f4;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  transition: transform 0.2s;
}

.member-card:hover {
  transform: translateY(-5px);
}

.member-card img {
  width: 140px;
  height: 140px;
  object-fit: cover;
  object-position: center 35%;
  border-radius: 50%;
  display: block;
  margin: 0 auto 15px auto;
}

.member-card h3 {
  margin: 10px 0 5px 0;
  color: #4b0082;
}

.member-card .role {
  font-weight: bold;
  color: #333;
  margin-bottom: 5px;
}

.member-card .affiliation {
  font-size: 14px;
  color: #555;
  margin-bottom: 5px;
}

.member-card .description {
  font-size: 14px;
  font-style: italic;
  color: #777;
}

/* ======================= Collaborators Section ======================= */
.collaborators-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-top: 30px;
}

.collab-card {
  text-align: center;
  background: #f4f4f4;
  padding: 15px 20px;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  transition: transform 0.2s;
}

.collab-card:hover {
  transform: translateY(-5px);
}

.collab-card h3 {
  color: #4b0082;
  margin-bottom: 5px;
}

.collab-card p {
  font-size: 14px;
  color: #555;
}

.collab-card .affiliation {
  font-style: italic;
  color: #555;
  font-size: 13px;
}

/* ======================= Goals Section ======================= */
#goals {
  background: #f4f4f4;
  padding: 20px 30px;
  border-radius: 12px;
  margin-top: 30px;
}

#goals h2 {
  color: #4b0082;
  border-bottom: 3px solid #4b0082;
  display: inline-block;
  padding-bottom: 5px;
  margin-bottom: 15px;
}

#goals .goal {
  margin-bottom: 20px;
}

#goals h3 {
  color: #4b0082;
  margin-bottom: 8px;
}

#goals ul {
  padding-left: 20px;
}

#goals ul li {
  margin-bottom: 6px;
  color: #555;
}

/* ======================= Seminar Cards ======================= */
.seminar-card {
  background: #f4f4f4;
  padding: 20px 25px;
  border-radius: 12px;
  margin-top: 20px;
  position: relative;
}

.seminar-card h3 {
  color: #4b0082;
  margin-bottom: 10px;
}

.seminar-card p {
  color: #555;
  line-height: 1.5;
}

.seminar-card .status {
  display: inline-block;
  font-size: 12px;
  font-weight: bold;
  padding: 3px 8px;
  border-radius: 12px;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.seminar-card.upcoming .status {
  background-color: #4b0082;
  color: #fff;
}

.seminar-card.past .status {
  background-color: #ccc;
  color: #555;
}

.program-btn {
  display: inline-block;
  margin-top: 12px;
  padding: 10px 18px;
  background-color: #4b0082;
  color: white;
  text-decoration: none;
  border-radius: 6px;
  font-weight: bold;
  transition: background-color 0.2s;
}

.program-btn:hover {
  background-color: #6a0dad;
}

/* ======================= News & Updates ======================= */
#updates {
  margin: 50px auto;
  padding: 20px;
}

.news-card {
  background: #f4f4f4;
  padding: 20px 25px;
  border-radius: 12px;
  margin-top: 20px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.news-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.12);
}

.news-card h3 {
  color: #4b0082;
  margin-bottom: 10px;
}

.news-card p {
  color: #555;
  line-height: 1.6;
}

/* ======================= Submit Case Section ======================= */
#submit-case {
  margin-top: 40px;
  padding: 20px;
  text-align: left;
}
#submit-case p {
  max-width: 600px;
  margin: 0 0 15px 0;
  font-size: 16px;
  color: #555;
}

#submit-case .program-btn {
  background-color: #4b0082;
  color: #fff;
  padding: 12px 20px;
  font-size: 16px;
  border-radius: 8px;
}

#submit-case .program-btn:hover {
  background-color: #6a0dad;
  transform: translateY(-2px);
}
/* ======================= Contact Section ======================= */
#contact {
  margin-top: 50px;
}

#contact .contact-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 30px;
  background: #f9f9f9;
  padding: 20px;
  border-radius: 12px;
  flex-wrap: wrap;
}

/* text side */
#contact .contact-info {
  flex: 1;
  min-width: 250px;
  text-align: left;
  font-size: 15px;
  color: #555;
}

#contact .contact-info p {
  margin: 6px 0;
}

/* logo side */
#contact .contact-logo {
  flex: 0 0 auto;
}

#contact .contact-logo img {
  width: 90px;   /* clean and controlled size */
  height: auto;
  object-fit: contain;
  display: block;
}

/* mobile fix */
@media (max-width: 768px) {
  #contact .contact-container {
    flex-direction: column;
    align-items: flex-start;
  }

  #contact .contact-logo img {
    width: 80px;
  }
}
/* ======================= Mobile Adjustments ======================= */
@media (max-width: 768px) {
  /* Navbar fix */
  #navbar ul {
    flex-wrap: nowrap;
    justify-content: space-between;
    padding: 0 10px;
  }
  #navbar ul li {
    margin: 0 6px;
  }
  #navbar ul li a {
  font-size: 12px;
  white-space: nowrap;
}

  /* Banner */
  #banner h1 {
    font-size: 50px;
  }
  #banner .full-name {
    font-size: 20px;
  }
  #banner .tagline {
    font-size: 16px;
  }

  /* Members */
  .members-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Contact */
  #contact .contact-container {
    flex-direction: column;
  }
  #contact .contact-container .logo {
    text-align: center;
    margin-top: 15px;
  }
}

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