/* =========================
   INSIGHTS PAGE
========================= */

/* HERO */
.about-us-hero {
    position: relative;
    min-height: 550px;
    width: 98%;
    margin: 8px auto;
    border-radius: 20px;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
  }
  
  .hero-image-wrapper {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
  }
  
  .hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: left center; /* 👈 keeps left side visible */
    border-radius: 20px;
  }

  .hero-overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.55);
    z-index: 1;
    border-radius: 20px;
}
  
  .hero-content {
    position: relative;
    z-index: 2;
    color: #fff;
  }
  
  .insights-hero-title {
    font-size: clamp(4.5rem, 5vw, 4.5rem);
    display: inline-block;
  }
  
  .hero-subtitle {
    font-size: 24px;
    font-weight: 600;
    max-width: 700px;
    margin: 0 auto;
    margin-top: 24px;
    margin-bottom: 24px;
  }
  
  .rotating-word {
    display: inline-block;
    font-style: italic;
    white-space: nowrap;
    transition: transform 0.6s ease, opacity 0.6s ease;
  }
  
  .word-exit {
    opacity: 0;
    transform: translateY(20px);
  }
  
  .word-enter {
    opacity: 0;
    transform: translateY(-20px);
    transition: transform 0.6s ease, opacity 0.6s ease;
  } 
  
  /* Optional: first word starts earlier */
  .word-enter.first {
    transition-delay: 2s; /* adjust as needed */
  }

/* =========================
   BLOG SECTION
========================= */

.blog-section {
  padding: 80px 5%;
  background-color: #f9f9f9;
}

.blog-header { 
    max-width:800px; 
    margin:0 auto 80px; 
    text-align:center; 
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

/* Card */
.blog-card {
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border-radius: 16px;
  overflow: hidden;
  text-decoration: none;
  color: #111;
}

.blog-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

/* Image */
.blog-image img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

/* Content */
.blog-content {
  padding: 24px;
}

.blog-subheading {
  font-size: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #0a2472;
  margin-bottom: 8px;
  display: block;
}

.blog-heading {
  margin-bottom: 12px;
}

.blog-text {
  line-height: 1.6;
  color: #555;
  margin-bottom: 16px;
}

.read-more {
    display: inline-block; /* keeps it only as wide as text + padding */
    align-self: flex-start; /* prevents stretching in flex column */
    padding: 2px 8px;
    border: 1px solid #0a2472;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    color: #0a2472;
    white-space: nowrap; /* optional: keeps text on one line */
    margin-top: 12px;
}





/* =========================
   Responsive
========================= */
@media (max-width: 1024px) {
  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .blog-grid {
    grid-template-columns: 1fr;
  }

  .about-us-hero {
    height: 60vh; /* smaller height for mobile */
    min-height: 300px; /* optional minimum */
  }  

  .insights-hero-title {
    font-size: 48px;
  }

  .hero-subtitle { 
    font-size: 16px;  
  }
  
  .blog-header h2 { font-size:34px; }

}
