/* Base layout and typography */
body {
  font-family: Arial, sans-serif;
  background: #f4f4f4;
  margin: 0;
  padding: 20px;
  line-height: 1.7;
  color: #222;
}

a {
  color: #007BFF;
  text-decoration: none;
}
a:hover {
  text-decoration: none;
}

h1, h2, h3 {
  color: #222;
  margin: 0 0 0px;
}

.profile-figure {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 400px;
  margin: 0 auto;
}

.profile-img {
  width: 100%;
  height: auto;
  border-radius: 8px;
}

.profile-figure figcaption {
  font-size: 0.9rem;
  color: #555;
  text-align: center;
  margin-top: 8px;
}


.about-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  max-width: 800px;
  margin: 40px auto;
  padding: 20px;
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.profile-img {
  max-width: 300px;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
}

.text-content {
  flex: 1;
}


/* Header and Navigation */
header {
  background: #333;
  color: white;
  padding: 10px 20px;
}

nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 16px;
}
nav ul li a {
  color: white;
  font-weight: bold;
}

/* Responsive nav layout */
@media (max-width: 600px) {
  nav ul {
    flex-direction: column;
    align-items: center;
  }
}

/* Intro Section */
.intro {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  max-width: 900px;
  margin: 40px auto;
  background: white;
  padding: 24px;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}
.intro img {
  max-width: 240px;
  width: 100%;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
}
.text-content {
  flex: 1;
  min-width: 260px;
}

/* Section Title */
.section-title {
  text-align: center;
  font-size: 1.75rem;
  margin: 50px 0 20px;
  font-weight: bold;
}

/* Card Grid */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  max-width: 1000px;
  margin: 0 auto 60px;
  padding: 0 10px;
}
.card {
  background: white;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.08);
  transition: box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.card:hover {
  box-shadow: 0 6px 16px rgba(0,0,0,0.12);
}
.card h3 {
  font-size: 1.1rem;
  margin: 0 0 10px;
}
.card p {
  font-size: 0.95rem;
  color: #444;
  margin: 0;
}

/* Footer */
footer {
  text-align: center;
  padding: 20px;
  background: #333;
  color: white;
}

/* Pills and Tags */
.pill, .tag {
  display: inline-block;
  border-radius: 20px;
  padding: 4px 10px;
  font-size: 0.85em;
  margin: 6px 6px 0 0;
  text-decoration: none;
}
.pill {
  background: #e0e0e0;
  color: #333;
}
.pill:hover {
  background: #ccc;
}
.tag {
  background-color: #e0f0ff;
  color: #007BFF;
}

/* Containers */
.container {
  background: white;
  padding: 24px;
  border-radius: 8px;
  max-width: 800px;
  margin: 40px auto;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* Lists and Paragraphs */
ul, ol {
  padding-left: 1.4em;
  margin-bottom: 1.2em;
}
p {
  margin-bottom: 1.2em;
}

/* Buttons */
.button, .download-btn {
  display: inline-block;
  padding: 10px 14px;
  margin: 10px 0 0 0; /* Adjusted margin to ensure consistent spacing */
  background-color: #007BFF;
  color: white;
  border-radius: 6px;
  text-decoration: none;
  font-weight: bold;
  text-align: center; /* Ensures text is centered within the button */
}
.button:hover, .download-btn:hover {
  background-color: #0056b3;
}

/* Container for buttons (to control spacing) */
.button-links {
  margin: 15px 0; /* Add space above and below the button block */
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* Highlight Box */
.summary {
  background: #fff8e1;
  border-left: 5px solid #ffcc00;
  padding: 16px;
  margin: 30px 0;
  border-radius: 6px;
}
