section h1 {
    font-size: 2em;
    margin-bottom: 20px;
}

section p, section ul {
    font-size: 1.1em;
    line-height: 1.6;
}

.hero-text {
    text-align: center;
    color: white;
}

.hero {
    position: relative;
    margin-top: 50px;
    height: 30vh;
    background-image: url('./img/wooden_bkg2.png');
    background-size: cover;
    background-attachment: fixed; /* Parallax effect */
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.15);
    z-index: 1;
    pointer-events: none; /* Ensure that the overlay does not interfere with user interactions */
}

.overlay-card {
    position: absolute;
    top: 0;
    left: 0;
    background-color: rgba(255, 255, 255, 0.8);
    pointer-events: none; /* Ensure that the overlay does not interfere with user interactions */
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: #111; /* Text color */
    opacity: 0; /* Initial opacity */
    animation: fadeIn 1.75s ease-in-out forwards; /* Fade-in animation */
    transform: translateY(0);
    animation: fadeInUp 2s ease-in-out forwards;
    margin-top: -50px;
}

@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(50px); /* Start slightly below */
    }
    100% {
        opacity: 1;
	transform: translateY(0); /* End at normal position */
    }
}

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

.blog-post-container {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    text-align: center;
    padding: 50px;
    gap: 40px;
    align-items: start;
    grid-auto-rows: auto;
}

:root {
    --card-bg: #fff;
    --card-radius: 8px;
    --card-shadow: rgba(0, 0, 0, 0.1) 0px 2px 8px;
    --primary: #1273eb;
    --text: #333;
    --muted: #555;
    --gap: 2rem;
  }
  
  .blog-card {
    background: var(--card-bg);
    border-radius: var(--card-radius);
    box-shadow: var(--card-shadow);
    display: flex;
    flex-direction: column;
    position: relative;
  }
  
  .blog-card__cover {
    width: 100%;
    height: 220px!important;
    object-fit: cover;
    border-radius: var(--card-radius) var(--card-radius) 0px 0px;
  }
  
  .blog-card__body {
    display: flex;
    flex-direction: column;
    padding: 1.75rem;
    flex: none;
  }
  
  .blog-card__meta {
    display: flex;
    gap: 1rem;
    font-size: 0.9rem;
    color: var(--muted);
    margin-bottom: 0.75rem;
  }
  
  .blog-card__meta i {
    width: 1em;
    height: 1em;
    vertical-align: middle;
    fill: var(--muted);
    margin-right: 0.25em;
  }
  
  .blog-card__title {
    font-size: 1.5rem;
    margin: 0 0 0.5rem;
    color: var(--text);
    line-height: 1.2;
  }
  
  .blog-card__title a {
    text-decoration: none;
    color: black;
  }
  
  .blog-card__excerpt {
    flex: none;
    color: var(--text);
    line-height: 1.5;
    margin-bottom: 1rem;
    overflow-wrap: anywhere;
  }
  
  .blog-card__readmore {
    display: inline-block;
    text-decoration: none;
    background: var(--primary);
    color: #fff;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    font-weight: 500;
    transition: background 0.2s;
    margin-top: 10px;
  }

    .blog-card__readmore:hover {
        background: #0f5bb5;
    }
  
  /* Responsive tweak */
  @media (max-width: 600px) {
    .blog-card__cover {
      height: 150px;
    }
  }
  
.contact-section {
    background-color: #f9f9f9;
    padding: 50px 0;
    text-align: center;
    color: #333;
}

.overlay-card {
  pointer-events: none;
}
.author-popup {
  pointer-events: auto;
}

.author-popup {
  position: fixed;
  top: 30%;
  left: 36%;
  width: 400px;
  height: auto;
  background: var(--card-bg);
  border-radius: var(--card-radius);
  box-shadow: var(--card-shadow);
  padding: 1.5rem;
  display: none;
  z-index: 100;
}

.author-popup.active {
  display: block;
}

/* 4. Headshot inside popup */
.author-popup__headshot img {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 0.5rem;
}

/* 5. Name & bio text */
.author-popup__bio h3 {
  margin: 0 0 0.5rem;
  font-size: 1.1rem;
}
.author-popup__bio p {
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.4;
}