
/* ===============================
   Content grid layout
=============================== */

.content-section {
  padding: 60px 20px;
}

.section-label {
  font-size: 28px;
  font-weight: 600;
  font-family: 'Georgia', serif;
  color: var(--ink);
  margin-bottom: 24px;
  border-bottom: 2px solid var(--border);
  display: inline-block;
}

/* Animate section labels and cards on scroll */
.section-label,
.highlight-animate {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease;
  will-change: opacity, transform;
}

.section-label.visible,
.highlight-animate.visible {
  opacity: 1;
  transform: translateY(0);
}

.content-highlight-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 20px;
}

.content-large {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  cursor: pointer;
  height: 100%;
}

.content-large img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
  transition: transform 0.3s ease;
}

.content-large:hover img {
  transform: scale(1.03);
}

.content-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  max-width: 100%;
  padding: 24px;
  color: white;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.75), rgba(0,0,0,0.1));
  font-family: 'Georgia', serif;
  box-sizing: border-box;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  transition: background 0.3s ease;
}

.content-overlay h2 {
  margin: 0 0 8px;
  font-size: 24px;
  color: white;
  border-bottom: 2px solid rgba(255, 255, 255, 0.5);
  display: inline-block;
  transition: color 0.3s ease, border-color 0.3s ease;
}

.content-overlay p {
  margin: 4px 0;
  font-size: 15px;
  color: #f0f0f0;
  transition: color 0.3s ease;
}

.content-large:hover .content-overlay {
  background: linear-gradient(to top, rgba(0, 0, 0, 0.85), rgba(0,0,0,0.15));
}

.content-large:hover .content-overlay h2,
.content-large:hover .content-overlay p {
  color: #ffffff;
  border-bottom-color: #ffffff;
}

/* Keep reading time untouched — just align date inline-right */
.content-overlay .content-reading-time {
  position: relative; /* allows absolute positioning inside */
}

.content-overlay .content-date {
  position: absolute;
  right: 0;                /* aligns it neatly to the right edge */
  top: 0;                  /* same vertical line as reading time */
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 15px;
  color: #ffffff;
}

.content-overlay .content-date i {
  color: #ffffff;
  font-size: 14px;
  margin-right: 2px;
}


/* optional fade hover */
.content-large:hover .content-overlay .content-date {
  opacity: 0.9;
  transition: opacity 0.3s ease;
}

@media (max-width: 768px) {

  .content-overlay .content-date {
    position: static;
    display: block;
    margin-top: 6px;
    font-size: 13px;
    text-align: left;
    color: #ffffff;
  }
}

.content-right {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.content-small {
  background: var(--panel-0);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow-m);
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.content-small:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-l);
}

.content-small img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.3s ease;
}

.content-small:hover img {
  transform: scale(1.02);
}

.content-meta {
  padding: 10px;
}

.content-meta h3 {
  margin: 0 0 6px;
  color: var(--ink);
  font-size: 18px;
  transition: color 0.3s ease;
}

.content-small:hover h3 {
  color: var(--accent-3);
}

/* Optional subtle paragraph text inside cards */
.content-meta p {
  color: var(--text-2);
  font-size: 14px;
  line-height: 1.5;
}


.content-reading-time {
  font-size: 13px;
  color: var(--text-3);
  margin: 2px 0;
}

.content-date {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  color: var(--text-3);
}

.content-date i {
  color: var(--text-3);
  font-size: 13px;
}

.content-description-small {
  font-size: 14px;              /* slightly larger than 13px */
  color: var(--text-3);
  margin: 4px 0;                /* a touch more breathing room */
  line-height: 1.5;             /* improves readability */
  font-family: var(--font-serif);
  margin-top: 8px;   
}

.content-text-card {
  padding: 12px;
  border-bottom: 1px solid #ddd;
  cursor: pointer;
  transition: all 0.3s ease;
  border-radius: 4px;
}

.content-text-card:hover {
  background-color: #f9f9f9;
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.content-text-card h3 {
  margin: 0;
  font-size: 18px;
  color: var(--ink);
  transition: color 0.3s ease;
}

.content-text-card:hover h3 {
  color: #000;
}
/* === VIEW ALL WRAPPER === */
.view-all-wrapper {
  margin-top: 60px;
  text-align: center;
  /* A nice subtle separator */
  border-top: 1px solid var(--hairline);
  padding-top: 40px;
}

/* === THE BUTTON === */
.view-all-button {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  
  /* Typography */
  font-family: var(--font-serif);
  font-size: 1rem;
  letter-spacing: 0.05em;
  color: var(--ink);
  text-decoration: none;
  
  /* Shape & Borders */
  background: transparent;
  border: 1px solid var(--ink);
  border-radius: 100px; /* Full Pill Shape */
  padding: 14px 32px;   /* Generous padding feels luxurious */
  
  /* The Magic: Smooth Transition */
  transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
  position: relative;
  overflow: hidden;
}

/* The Arrow */
.view-all-button::after {
  content: "→";
  display: block;
  transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

/* === HOVER EFFECT === */
.view-all-button:hover {
  /* High Contrast Flip */
  background-color: var(--ink);
  color: var(--bg-0); /* Text turns white (or black in dark mode) */
  
  /* subtle lift */
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.view-all-button:hover::after {
  /* Arrow slides forward */
  transform: translateX(6px);
}

.view-all-button:active {
  transform: translateY(0);
  box-shadow: none;
}

/* Mobile responsiveness */
@media (max-width: 900px) {
  .content-highlight-grid {
    grid-template-columns: 1fr;
  }

  .content-large {
    aspect-ratio: auto;
  }

  .content-overlay {
    padding: 16px;
  }

  .content-overlay h2 {
    font-size: 20px;
  }

  .content-overlay p {
    font-size: 14px;
  }

  .content-right {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 12px;
  }

  .content-small {
    flex: 1 1 calc(50% - 6px);
  }

  .content-text-card {
    flex-basis: 100%;
  }
}
