* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Georgia", serif;
  line-height: 1.6;
  color: #333;
}

/* Header/Navigation */
header {
  background: white;
  padding: 1rem 2rem;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.nav-container {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-section {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.logo {
  width: 50px;
  height: 50px;
  object-fit: contain;
}

.brand-text h1 {
  font-size: 1.5rem;
  color: #2a3d4e;
  font-style: italic;
  font-weight: bold;
}

.brand-text p {
  font-size: 0.9rem;
  color: #4a7c7e;
  font-style: italic;
}

nav ul {
  display: flex;
  list-style: none;
  gap: 2rem;
}

nav a {
  color: #2a3d4e;
  text-decoration: none;
  font-size: 1rem;
  font-weight: bold;
  transition: color 0.3s;
}

nav a:hover {
  color: #4a7c7e;
}

/* Profile Hero Section */
.profile-hero {
  background: linear-gradient(135deg, #4a6b7c 0%, #5a7b8c 100%);
  padding: 3rem 2rem;
  color: white;
  text-align: center;
}

.profile-hero h1 {
  font-size: 3rem;
  font-style: italic;
  margin-bottom: 0.5rem;
}

/* Profile Content Section */
.profile-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem 2rem;
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 3rem;
  align-items: start;
}

.profile-left {
  text-align: center;
}

.profile-image-container {
  background: white;
  padding: 1rem;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  margin-bottom: 2rem;
}

.profile-image-container img {
  width: 100%;
  max-width: 400px;
  border-radius: 5px;
}

.profile-title {
  background: #4a6b7c;
  color: white;
  padding: 1rem;
  border-radius: 5px;
  margin-bottom: 2rem;
}

.profile-title h2 {
  font-size: 1.3rem;
  text-transform: uppercase;
}

.contact-box {
  background: white;
  padding: 1.5rem;
  border-radius: 10px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
  text-align: left;
}

.contact-box p {
  margin-bottom: 1rem;
  font-size: 1rem;
}

.contact-box strong {
  color: #4a6b7c;
}

.profile-right {
  background: white;
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.profile-right h3 {
  font-size: 1.8rem;
  color: #4a6b7c;
  margin-bottom: 1rem;
  border-bottom: 2px solid #4a6b7c;
  padding-bottom: 0.5rem;
}

/* Update these specific styles for the right column */
.profile-right {
  background: white;
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.profile-right ol {
  list-style-position: inside; /* Keeps numbers flush with the text block */
  margin-left: 0;
  padding-left: 0;
  counter-reset: item;
  list-style-type: none; /* We will use custom numbering for better control */
}

.profile-right li {
  font-size: 1.05rem;
  line-height: 1.8;
  margin-bottom: 1.5rem; /* Space between paragraphs */
  text-align: justify;
  display: block;
}

/* Custom Numbering to match Picture 2 style */
.profile-right li::before {
  content: counter(item) ". ";
  counter-increment: item;
  font-weight: bold;
  color: #333;
}

.profile-right b,
.profile-right strong {
  color: #2a3d4e; /* Darker tone for names/titles */
}

/* Footer */
footer {
  background: white;
  padding: 3rem 2rem 1rem;
  color: #333;
  border-top: 1px solid #ddd;
}

.footer-container {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 3rem;
  margin-bottom: 2rem;
}

.footer-section h3 {
  margin-bottom: 1rem;
  font-size: 1.2rem;
  color: #2a3d4e;
}

.footer-section p {
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}

.footer-logo {
  width: 80px;
  height: 80px;
  object-fit: contain;
  margin-bottom: 1rem;
}

.social-links {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.social-icon {
  width: 40px;
  height: 40px;
  background: #c0c0c0;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-decoration: none;
  font-size: 1.2rem;
  transition: background 0.3s;
}

.social-icon:hover {
  background: #4a7c7e;
}

.contact-info-footer {
  font-size: 0.95rem;
}

.contact-info-footer p {
  margin-bottom: 0.3rem;
}

.copyright {
  text-align: center;
  padding-top: 1rem;
  font-size: 0.9rem;
  color: #666;
}

/* Responsive */
@media (max-width: 968px) {
  .profile-content {
    grid-template-columns: 1fr;
  }

  .profile-hero h1 {
    font-size: 2rem;
  }

  nav ul {
    flex-direction: column;
    gap: 0.5rem;
  }

  .nav-container {
    flex-direction: column;
    gap: 1rem;
  }
  /* Search Bar Styles */
  .search-container {
    position: relative;
    margin: 0 2rem;
  }

  .search-box {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 25px;
    padding: 0.5rem 1rem;
    min-width: 300px;
    transition: all 0.3s ease;
  }

  .search-box:focus-within {
    background: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  }

  #searchInput {
    flex: 1;
    border: none;
    background: transparent;
    outline: none;
    font-size: 0.9rem;
    color: #333;
    padding: 0.3rem;
  }

  #searchInput::placeholder {
    color: #666;
  }

  #searchButton {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.3rem;
    color: #4a7c7e;
    transition: color 0.3s ease;
  }

  #searchButton:hover {
    color: #2a3d4e;
  }

  /* Search Results Dropdown */
  .search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
    max-height: 300px;
    overflow-y: auto;
    display: none;
    z-index: 1001;
    margin-top: 0.5rem;
  }

  .search-results.active {
    display: block;
  }

  .search-result-item {
    padding: 1rem;
    border-bottom: 1px solid #eee;
    cursor: pointer;
    transition: background 0.2s ease;
  }

  .search-result-item:hover {
    background: #f8f9fa;
  }

  .search-result-item:last-child {
    border-bottom: none;
  }

  .search-result-item h4 {
    color: #2a3d4e;
    margin-bottom: 0.3rem;
    font-size: 1rem;
  }

  .search-result-item p {
    color: #666;
    font-size: 0.8rem;
    margin: 0;
  }

  .search-result-item .result-type {
    background: #4a7c7e;
    color: white;
    padding: 0.2rem 0.5rem;
    border-radius: 3px;
    font-size: 0.7rem;
    display: inline-block;
    margin-top: 0.3rem;
  }

  /* Shrink header adjustments for search bar */
  header.shrink .search-box {
    min-width: 250px;
    padding: 0.3rem 0.8rem;
  }

  header.shrink #searchInput {
    font-size: 0.8rem;
  }

  header.shrink #searchButton svg {
    width: 16px;
    height: 16px;
  }
}
