
.homel-section {
  font-family: "Noto Sans", sans-serif;
  min-height: 90vh;           /* at least 75% of viewport height */
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
  position: relative;
  box-sizing: border-box;
  overflow: hidden;           /* prevent scrollbars if bg shifts */

  background-image: url('/images/learn.jpg');  /* background image */
  background-size: cover;                        /* cover entire container */
  background-position: center;                  /* center the image */
  background-repeat: no-repeat;                 /* don't tile */
}


.overlayl {
  color: white;
  max-width: 1200px;
  width: 100%;
  position: relative;          /* ❌ don’t keep absolute, it messes layout */
}

.homel-content {
  max-width: 800px;
  text-align: left;
}

.homel-content h1 {
  font-size: 3.5rem; /* ✅ scales smoothly */
  font-weight: 800;
  margin: 0;
  line-height: 1.3;
}

.homel-content h2 {
  font-size: 1rem; /* ✅ scales smoothly */
  font-weight: 300;
  line-height: 1.6;
  margin-bottom: 1rem;
}


.homel-button {
  padding: 15px 35px;
  font-size: 1rem;
  font-weight: 600;
  background-color: white;
  color: #bb1a1a;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.homel-button:hover {
  background-color:#bb1a1a;
  color: white;
}
/* ===== Tablet: max-width 768px ===== */
@media (max-width: 768px) {
  .homel-section {
    min-height: 70vh; /* slightly shorter for smaller screens */
    padding: 2rem;
  }

  .overlayl {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
  }

  .homel-content {
    text-align: center;
    max-width: 90%;
  }

  .homel-content h1 {
    font-size: 2.5rem;
  }

  .homel-content h2 {
    font-size: 0.9rem;
  }

  .homel-button {
    padding: 12px 28px;
    font-size: 0.95rem;
  }
}

/* ===== Mobile: max-width 486px ===== */
@media (max-width: 486px) {
  .homel-section {
    min-height: 60vh;
    padding: 1rem;
  }

  .overlayl {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
  }

  .homel-content {
    text-align: center;
    max-width: 95%;
  }

  .homel-content h1 {
    font-size: 2rem;
  }

  .homel-content h2 {
    font-size: 13px;
  }

  .homel-button {
    padding: 10px 25px;
    font-size: 14px;
  }
}

/* === Latest Insights Section === */
.L-latest-insights-section {
  padding: 60px 20px;
}

.L-latest-insights-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  
}
.L-content{
    padding: 5rem 0;
    justify-content: center;
}
/* Add underline to header */
.L-latest-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  padding: 16px;
  border-bottom: 2px solid #eee; /* <<< underline line */
}

.L-latest-header h2 {
  font-size:3rem;
  font-weight: 700;
}

.L-view-all-link {
    margin-bottom: -6rem;
  font-size: 1rem;
  color: #bb1a1a;
  text-decoration: none;
  font-weight: 500;
}

.L-insights-content {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.L-insights-main-image img {
  width: 100%;
  height: auto;
  max-width: 600px;
  border-radius: 4px;
  object-fit: cover;
}

.L-insights-main-article {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.L-insight-tags {
  display: flex;
  gap: 16px;
  font-size: 0.85rem;
  margin-bottom: 8px;
}

.L-tag {
  background: #f1f1f1;
  padding: 4px 10px;
  border-radius: 4px;
  font-weight: 500;
}

.L-readtime {
  color: #666;
}

.L-insight-title-button {
  display: inline-block;
  font-size: 2rem;
  font-weight: 700;
  color: black;
  text-decoration: none;
  transition: color 0.2s ease;
}

.L-insight-title-button:hover {
  color: #aa1e35;
}


.L-insight-author {
  font-size: 1rem;
  margin-bottom: 24px;
}

/* Remove border from related items, add separator line between them */
.L-related-insights {
  display: flex;
  flex-direction: column;
  gap: 0; /* remove spacing so lines act as separator */
  border-top: 1px solid #eee;
}

.L-related-item {
  text-decoration: none; /* remove underline from link */
  color: inherit; 
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 0;
  border-bottom: 1px solid #eee; /* separator line */
}

.L-related-item:last-child {
  border-bottom: none; /* clean ending */
}


.L-related-item:hover {
  background: #f9f9f9;
  text-decoration: none;
}
.L-related-thumb {
  width: 40px;
  height: 40px;
  border-radius: 4px;
  overflow: hidden;
  flex-shrink: 0;
  background: #ccc; /* fallback background */
}

.L-related-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}


.L-related-text {
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  color: #333;
  margin: 0;
}
/* Tablet screens (≤768px) */
@media (max-width: 900px) {
  .L-latest-insights-section {
    padding: 40px 16px;
  }

  .L-content{
    padding: 2rem 0;
}
  .L-latest-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .L-latest-header h2 {
    font-size: 2rem;
  }

  .L-view-all-link {
    margin-bottom: 0;
    font-size: 0.95rem;
  }

  .L-insights-content {
    flex-direction: column;
    gap: 32px;
  }

  .L-insights-main-image img {
    max-width: 100%;
  }

  .L-insight-title {
    font-size: 1.5rem;
  }

  .L-insight-author {
    font-size: 0.95rem;
  }

  .L-related-item {
    padding: 12px 0;
  }

  .L-related-text {
    font-size: 0.9rem;
  }
}

/* Small phone screens (≤480px) */
@media (max-width: 480px) {
  .L-latest-insights-section {
    padding: 32px 12px;
  }

  .L-latest-header h2 {
    font-size: 1.6rem;
  }

  .L-insight-title {
    font-size: 1.25rem;
  }

  .L-insight-author {
    font-size: 0.85rem;
  }

  .L-tag {
    font-size: 0.75rem;
    padding: 3px 8px;
  }

  .L-related-thumb {
    width: 36px;
    height: 36px;
  }

  .L-related-text {
    font-size: 0.85rem;
  }

  .L-view-all-link {
    font-size: 0.85rem;
  }
}

/* === Latest Events Section === */
.L-latest-events-section {
  padding: 20px;
  background: #fff;
}

.L-latest-events-wrapper {
  max-width: 1200px;
  margin: 0 auto;
}

.L-events-header {
  font-size: 3rem;
}

.L-events-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.L-event-card {
  display: flex;
  flex-direction: column;
  margin-bottom: 10rem;
}

.L-event-thumb {
  width: 100%;
  height: 250px;
  background: #ddd;
  border-radius: 4px;
}

.L-event-meta {
  font-size: 1rem;
  margin-top: 12px;
}

.L-event-title {
  font-size: 2rem;
  font-weight: 700;
  margin: 4px 0;
}

.L-event-desc {
  font-size: 1rem;
}

/* Tablet screens (≤768px) */
@media (max-width: 768px) {
  .L-latest-events-section {
    padding: 40px 16px;
  }

  .L-events-header {
    font-size: 2.2rem;
    text-align: center;
    margin-bottom: 24px;
  }

  .L-events-grid {
    display: flex;
    flex-direction: column;
    gap: 40px;
  }

  .L-event-card {
    margin-bottom: 0; /* Remove large bottom margin if stacked */
  }

  .L-event-thumb {
    height: 200px;
  }

  .L-event-title {
    font-size: 1.5rem;
  }

  .L-event-meta,
  .L-event-desc {
    font-size: 0.95rem;
  }
}

/* Small phone screens (≤480px) */
@media (max-width: 480px) {
  .L-latest-events-section {
    padding: 32px 12px;
  }

  .L-events-header {
    font-size: 1.8rem;
    text-align: center;
  }

  .L-event-thumb {
    height: 180px;
  }

  .L-event-title {
    font-size: 1.25rem;
  }

  .L-event-meta,
  .L-event-desc {
    font-size: 0.85rem;
  }

  .L-events-grid {
    gap: 32px;
  }
}
