body {
  margin: 0;
  font-family: "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #f9f9f9;
}

/* --- Header --- */
.site-header {
  background: #fff;
  padding: 1rem 2rem;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

.site-title {
  margin: 0;
  font-size: 1.5rem;
  font-weight: bold;
}

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 1.5rem;
}

.site-nav a {
  text-decoration: none;
  color: #333;
  font-weight: 500;
}

.site-nav a:hover {
  color: #555;
  text-decoration: underline;
}

/* --- Hero section --- */
.hero {
  position: relative;
  height: 56vh;
  min-height: 300px;
  max-height: 450px;
  background: url('/images/Hero.jpg') no-repeat center/cover;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
}

.hero-content {
  padding: 0;
}

.hero-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.hero-text h2 {
  font-size: 3rem;
  margin: 0;
}

.hero-text p {
  font-size: 1.5rem;
}

/* --- Sections --- */
section {
  padding: 2rem 1rem;
  text-align: center;
}

section h2 {
  font-size: 2rem;
  font-weight: bold;
  margin-bottom: 1rem;
}

section p {
  max-width: 700px;
  margin: 0 auto;
  font-size: 1.125rem;
  line-height: 1.6;
}

.about {
  background: #fff;
}

.about-text {
  text-align: left;
  max-width: 1000px;
  margin: 0 auto;
  font-size: 1.125rem;
  line-height: 1.6;
}

.about-text h1 {
  text-align: center;
  font-size: 2rem;
  font-weight: bold;
  margin-bottom: 1rem;
}

.view-all {
  /* Buttons on home page */
  margin-top: 1.5rem;
}

/* --- Recent Posts (Home Page) & Blog List --- */
/* Fix for "weird" text: remove default link styles from the card wrapper */
.recent-posts .post-grid,
.blog-list .post-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

article.post-card {
  text-align: center;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
}

article.post-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

/* Important: This fixes the "all text is underlined/blue" issue */
.post-card a {
  text-decoration: none;
  color: inherit;
  display: block;
  height: 100%;
}

article.post-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
  border-radius: 8px 8px 0 0;
  margin: 0;
  /* reset */
}

article.post-card .post-content {
  padding: 0.75rem;
  text-align: left;
}

article.post-card .post-date {
  margin: 0 0 0.5rem 0;
  color: #666;
  font-size: 0.9rem;
}

article.post-card h3 {
  margin: 0.5rem 0;
  font-weight: bold;
  color: #333;
  /* Ensure title color */
}

/* --- Blog List Specifics (reusing generic classes above) --- */
.blog-list {
  text-align: center;
}

.blog-list h2,
.blog-list p {
  margin-left: auto;
  margin-right: auto;
}

/* --- Individual Blog Post Page --- */
.blog-post.single-post {
  padding: 2rem 0;
}

.blog-post.single-post .container {
  max-width: 800px;
  margin: 0 auto;
}

.post-header {
  text-align: center;
  margin-bottom: 2rem;
}

.post-date {
  color: #666;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.blog-post.single-post h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.single-post img.post-hero-image {
  width: 100%;
  max-width: 700px;
  height: 400px;
  object-fit: cover;
  display: block;
  margin: 0 auto 2rem auto;
  border-radius: 8px;
}

.post-content {
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 3rem;
}

.post-content p {
  margin-bottom: 1.5rem;
}

.post-content h2 {
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.post-footer {
  border-top: 1px solid #ddd;
  padding-top: 2rem;
}

.back-link {
  color: #333;
  text-decoration: none;
  font-weight: 500;
}

.back-link:hover {
  color: #0066cc;
}

/* --- Buttons --- */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background: black;
  color: white;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background 0.3s ease;
}

.btn:hover {
  background: #333;
}

/* --- Footer --- */
.site-footer {
  text-align: center;
  padding: 2rem 1rem;
  background: #fff;
  color: #777;
  font-size: 0.9rem;
  border-top: 1px solid #eee;
}

.footer-link {
  color: #999;
  text-decoration: none;
  font-size: 0.85rem;
}

.footer-link:hover {
  color: #333;
  text-decoration: underline;
}

/* --- Single Pages (Privacy, etc.) --- */
.single-post {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem 1rem;
  text-align: center;
}

.single-post .post-content {
  text-align: left;
  margin: 0 auto;
}

/* --- Responsive --- */
@media (max-width: 768px) {
  .hero-text h2 {
    font-size: 2rem;
  }

  .hero-text p {
    font-size: 1rem;
  }

  .header-container {
    flex-direction: column;
    align-items: flex-start;
  }

  .site-nav ul {
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 1rem;
  }
}

/* ========== RESEARCH PAGE ========== */
.research-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem 1rem;
  text-align: center;
}

.research-title {
  font-size: 2.5rem;
  font-weight: bold;
  text-align: center;
  margin-bottom: 3rem;
  display: block;
}

.research-grid {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3rem;
}

.research-card {
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  border: 1px solid #eee;
  padding: 4rem;
  max-width: 850px;
  width: 100%;
  text-align: center;
  margin: 0 auto;
}

.research-card h3 {
  font-size: 1.4rem;
  font-weight: bold;
  margin-bottom: 2rem;
  color: #000;
  line-height: 1.2;
}

.research-main-image {
  width: 100%;
  max-width: 600px;
  height: auto;
  margin: 0 auto 2.5rem auto;
  display: block;
}

.research-description {
  font-size: 1.15rem;
  line-height: 1.6;
  color: #444;
  margin-bottom: 3rem;
  text-align: left;
}

.research-description p {
  text-align: left;
}

.research-icons {
  display: flex;
  justify-content: center;
  gap: 80px;
  margin-top: 1rem;
}

.icon-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: #333;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.icon-item:hover {
  transform: scale(1.1);
  opacity: 0.8;
}

.icon-item img {
  width: 60px;
  height: auto;
  display: block;
}

.icon-label {
  font-size: 0.9rem;
  font-weight: 500;
  color: #222;
  max-width: 150px;
}

@media (max-width: 768px) {
  .research-card {
    padding: 2rem;
    border-radius: 20px;
  }

  .research-icons {
    gap: 40px;
  }

  .icon-item img {
    width: 60px;
  }

  .research-card h3 {
    font-size: 1.8rem;
  }
}

/* ========== ABOUT PAGE ========== */
.about-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem 1rem;
  text-align: center;
}

.about-title {
  font-size: 2.5rem;
  font-weight: bold;
  text-align: center;
  margin-bottom: 3rem;
  display: block;
}

.about-grid {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3rem;
}

.about-card {
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  border: 1px solid #eee;
  padding: 4rem;
  max-width: 850px;
  width: 100%;
  text-align: left;
  margin: 0 auto;
  position: relative;
  /* For absolutely positioned profile pic */
  margin-top: 3rem;
  /* Ensure space for the overlapping image */
}

.about-profile-container {
  position: absolute;
  top: -90px;
  left: 50%;
  transform: translateX(-50%);
  width: 150px;
  height: 150px;
  background: #fff;
  padding: 5px;
  border-radius: 50%;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  /* Fix: strict clipping */
  z-index: 10;
}

.about-profile-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}

.about-card h1,
.about-card h2,
.about-card h3 {
  margin-top: 0;
  margin-bottom: 1.5rem;
}

.about-card h1 {
  font-size: 2.2rem;
}

.about-card p {
  font-size: 1.15rem;
  line-height: 1.6;
  color: #444;
  margin-bottom: 1.5rem;
  text-align: left;
}

@media (max-width: 768px) {
  .about-card {
    padding: 2rem;
    border-radius: 20px;
  }
}

/* --- About Page Social Icons --- */
.founder-links {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 2rem;
}

.founder-links img {
  width: 60px;
  height: 60px;
  border-radius: 0;
  object-fit: contain;
  display: block;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.founder-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: #333;
  gap: 8px;
}

.founder-item span {
  font-size: 0.9rem;
  font-weight: 500;
}

.founder-links a:hover img {
  transform: scale(1.1);
  opacity: 0.8;
}