/* Base */
*,
*::before,
*::after { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body {
  font-family: Georgia, serif;
  color: #ddd5f3;
  background-color: #1a001f;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Layout helpers */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 16px;
}

/* Navigation */
nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  background: #4B0082;
  margin: 0;
  padding: 0;
  overflow: hidden;
}
nav ul li { position: relative; }
nav ul li a {
  color: white;
  padding: 14px 20px;
  display: block;
  text-decoration: none;
}
nav ul li a:hover { background: #6A0DAD; }

/* Dropdown used by optional 'More' item */
.more ul.dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #4B0082;
  list-style: none;
  margin: 0;
  padding: 0;
  min-width: 150px;
}
.more:hover ul.dropdown { display: block; }
.more ul.dropdown li a:hover { background: #6A0DAD; }

/* Hero with person description */
.hero {
  width: 100%;
  height: min(60vh, 520px);
  min-height: 320px;
  position: relative;
  overflow: hidden;
}
.hero-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}
.hero-overlay {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 20px;
  background: rgba(26, 0, 31, 0.7);
  padding: 14px 20px;
  border-radius: 12px;
  max-width: min(92%, 1000px);
}
.profile-photo {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid #ffffff;
  flex: 0 0 auto;
}
.intro-text {
  color: #fff;
  text-shadow: 0 0 5px rgba(0,0,0,0.7);
  max-width: 70ch;
}
.intro-text h1 {
  margin: 0 0 8px 0;
  font-size: clamp(22px, 3.5vw, 36px);
}
.intro-text p {
  margin: 6px 0 0 0;
  font-size: clamp(14px, 2.3vw, 18px);
}

/* Contact & map */
.contact-info h2 { margin-top: 24px; }
.map-container iframe {
  width: 100%;
  height: 360px;
  border: 0;
  display: block;
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.25);
}

/* People / popular (other pages) */
.person-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 20px;
}
.person-image {
  width: 200px;
  height: auto;
  border-radius: 6px;
  margin-right: 12px;
  object-fit: cover;
}
.popular-image {
  width: 500px;
  height: auto;
  border-radius: 6px;
  margin-right: 12px;
  object-fit: cover;
}
.person-text a { color: #c5a3ff; text-decoration: none; }
.person-text a:hover { text-decoration: underline; }

hr {
  border: none;
  border-top: 1px solid #ccc;
  margin: 20px 0;
}

/* Links */
a { color: #c5a3ff; text-decoration: none; }
a:hover { color: #e0c8ff; text-decoration: underline; }

/* Mobile tweaks */
@media (max-width: 768px) {
  nav ul { flex-direction: column; }

  .hero {
    height: auto;
  }
  .hero-bg {
    height: 260px; /* visible banner height on phones */
  }
  .hero-overlay {
    position: static;
    transform: none;
    margin: -40px 16px 0; /* overlap card over the image a bit */
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 12px;
    padding: 12px 14px;
    max-width: 100%;
  }
  .profile-photo {
    width: 120px;
    height: 120px;
    border-width: 3px;
  }
  .intro-text { max-width: 100%; }
  .intro-text h1 { font-size: clamp(20px, 6vw, 28px); }
  .intro-text p { font-size: clamp(14px, 4vw, 16px); }

  .popular-image {
    width: 100%;
    height: auto;
    margin-right: 0;
  }

  .person-item {
    flex-direction: column;
    align-items: flex-start;
  }
  .person-image {
    margin-right: 0;
    margin-bottom: 8px;
    width: 100%;
    max-width: 320px;
  }

  .map-container iframe {
    height: 300px;
  }
}

/* Extra-small phones */
@media (max-width: 360px) {
  .hero-overlay {
    margin: -32px 8px 0;
    padding: 10px 12px;
  }
  .profile-photo {
    width: 100px;
    height: 100px;
  }
}



.event-tabs {margin-bottom: 20px;}
.tab-button {background:#4B0082; color:white; border:none; padding:10px 20px; cursor:pointer;}
.tab-button.active {background:#6A0DAD;}
.tab-content {display:none;}
.tab-content.active {display:block;}
.event-item {display:flex; align-items:center; margin-bottom:20px; border-bottom:1px solid #ccc; padding-bottom:10px;}
.event-text {flex:1;}
.event-image {width:300px; height:auto; margin-left:20px;}
@media (max-width:768px) {
  .event-item {flex-direction:column;}
  .event-image {margin-left:0; margin-top:10px; width:100%;}
}

footer {
  text-align: center;
}
