* {
  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: 150px;
  height: 150px;
  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: 768px) {
  /* Navigation */
  .nav-container {
    flex-direction: column;
    gap: 1rem;
    padding: 0.5rem;
  }

  nav ul {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
  }

  /* Search Bar */
  .search-container {
    order: 3;
    margin: 0;
    width: 100%;
  }

  .search-box {
    min-width: 100%;
    margin: 0.5rem 0;
  }

  /* Hero Section */
  .hero-content h2 {
    font-size: 2.5rem;
  }

  .hero-content h3 {
    font-size: 1.8rem;
  }

  .hero-content p {
    font-size: 1.2rem;
  }

  /* Expertise Section - KEEP IN ROWS */
  .expertise-grid {
    grid-template-columns: repeat(2, 1fr); /* 2 columns on tablet */
    gap: 1.5rem;
  }

  /* About Section */
  .about-container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .about-images {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .about-image.large {
    grid-column: span 1;
    height: 300px;
  }

  /* Contact Section */
  .contact-container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  /* Team Section */
  .team-grid {
    grid-template-columns: repeat(2, 1fr); /* 2 columns on tablet */
    gap: 1.5rem;
  }

  /* Shrink header adjustments for mobile */
  header.shrink .search-container {
    display: none;
  }

  header.shrink .nav-container {
    flex-direction: row;
    flex-wrap: nowrap;
  }

  header.shrink nav {
    display: none; /* Hide nav on mobile when shrunk */
  }
}

@media (max-width: 480px) {
  /* Mobile phones */
  .nav-container {
    flex-direction: column;
    gap: 0.8rem;
  }

  .logo-section {
    flex-direction: column;
    text-align: center;
    gap: 0.5rem;
  }

  nav ul {
    gap: 0.8rem;
  }

  nav a {
    font-size: 0.9rem;
  }

  /* Search Bar */
  .search-box {
    min-width: 100%;
  }

  /* Hero Section */
  .hero-content h2 {
    font-size: 2rem;
  }

  .hero-content h3 {
    font-size: 1.5rem;
  }

  .hero-content p {
    font-size: 1rem;
  }

  /* Expertise Section - STILL IN ROWS but single column */
  .expertise-grid {
    grid-template-columns: 1fr; /* 1 column on mobile */
    gap: 1rem;
  }

  .expertise-card {
    padding: 0.8rem;
  }

  .expertise-card img {
    height: 120px;
  }

  /* Team Section - single column on mobile */
  .team-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .team-member {
    padding: 0.8rem;
  }

  .member-photo {
    width: 150px;
    height: 180px;
  }

  /* About Images */
  .about-image {
    height: 200px;
  }

  .about-image.large {
    height: 250px;
  }

  .year-overlay {
    font-size: 2.5rem;
  }

  /* Contact Form */
  .contact-form h2 {
    font-size: 2rem;
  }

  /* Footer */
  .footer-container {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }

  /* Hide search on mobile when shrunk */
  header.shrink .search-container {
    display: none;
  }
}

/* Additional breakpoint for very small screens */
@media (max-width: 360px) {
  .expertise-grid {
    grid-template-columns: 1fr;
  }

  .team-grid {
    grid-template-columns: 1fr;
  }

  nav ul {
    gap: 0.5rem;
  }

  nav a {
    font-size: 0.8rem;
  }
}
