/* =========================================
   BLOG - Bento Grid Style (Fixed Mobile)
   ========================================= */

:root {
  --bento-primary: #1a237e;
  --bento-accent: #ff8a65;
  --bento-bg: #f8f9fa;
  --bento-card-bg: #ffffff;
  --bento-text: #222;
  --bento-muted: #555;
  --bento-border: #e0e0e0;
  --gap: 24px;
  --radius-lg: 24px;
  --radius-sm: 12px;
}

body {
  background-color: var(--bento-bg);
  overflow-x: hidden;
}

/* --- 1. MARQUEE --- */
.marquee-strip {
  background: var(--bento-primary);
  color: #fff;
  padding: 10px 0;
  overflow: hidden;
  white-space: nowrap;
  position: relative;
  z-index: 50;
  font-size: 0.85rem;
  font-weight: 600;
}
.marquee-content {
  display: inline-block;
  animation: marquee 30s linear infinite;
  padding-left: 100%;
}
.marquee-content span {
  display: inline-block;
}
.marquee-content .separator {
  margin: 0 25px;
  color: var(--bento-accent);
}
@keyframes marquee {
  0% {
    transform: translate(0, 0);
  }
  100% {
    transform: translate(-100%, 0);
  }
}

/* --- 2. HERO & HEADER --- */
.blog-wrapper {
  padding: 40px 0 80px;
  max-width: 100vw;
}
.bento-header {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 30px;
  padding: 0 20px;
}
.bento-header h1 {
  font-size: 3.5rem;
  color: var(--bento-primary);
  margin-bottom: 15px;
  font-weight: 800;
  line-height: 1.1;
}
.bento-header p {
  font-size: 1.1rem;
  color: var(--bento-muted);
}

/* --- 3. MOBILE FILTER STRIP (Default Hidden) --- */
.mobile-filter-strip {
  display: none;
}

/* --- 4. BENTO GRID --- */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(2, 300px);
  gap: var(--gap);
  margin-bottom: 80px;
}

.bento-item {
  background: var(--bento-card-bg);
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  transition: all 0.3s ease;
  border: 1px solid rgba(0, 0, 0, 0.04);
  transform: translateZ(0);
  cursor: pointer;
}
.bento-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(26, 35, 126, 0.1);
}

/* Grid Area Definitions */
.main-feature {
  grid-column: span 2;
  grid-row: span 2;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.tall-feature {
  grid-column: span 1;
  grid-row: span 2;
  display: flex;
  flex-direction: column;
}
.stat-card {
  grid-column: span 1;
  grid-row: span 1;
  background: var(--bento-primary);
  color: white;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 20px;
}
.link-card {
  grid-column: span 1;
  grid-row: span 1;
  background: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 30px;
  text-decoration: none;
  color: var(--bento-primary);
  gap: 15px;
}

/* Content Styling */
.bento-img {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.bento-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.bento-item:hover .bento-img img {
  transform: scale(1.08);
}
.overlay-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.85) 0%,
    rgba(0, 0, 0, 0) 60%
  );
  z-index: 1;
}

.main-feature .bento-content {
  position: relative;
  z-index: 2;
  padding: 40px;
  color: white;
}
.main-feature h2 {
  font-size: 2rem;
  line-height: 1.2;
  margin: 0 0 20px 0;
  color: white;
}
.badge-pill {
  background: var(--bento-accent);
  color: var(--bento-primary);
  padding: 6px 16px;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  display: inline-block;
  margin-bottom: 15px;
}
.btn-arrow {
  width: 50px;
  height: 50px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.2rem;
  transition: background 0.3s;
    text-decoration: none;
}
.bento-item:hover .btn-arrow {
  background: var(--bento-accent);
  color: var(--bento-primary);
}

.tall-feature .bento-img {
  position: relative;
  height: 55%;
  flex-shrink: 0;
}
.tall-feature .bento-content {
  padding: 30px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: #fff;
  height: 45%;
}
.tall-feature h3 {
  font-size: 1.4rem;
  color: var(--bento-primary);
  margin: 0 0 10px 0;
}
.tall-feature p {
  font-size: 0.95rem;
  color: #666;
}

.stat-number {
  font-size: 3.5rem;
  font-weight: 800;
  margin-bottom: 5px;
  color: var(--bento-accent);
}
.stat-desc {
  font-size: 1rem;
  opacity: 0.9;
}

.link-card h4 {
  font-size: 1.2rem;
  margin: 0;
}
.link-icon-circle {
  width: 70px;
  height: 70px;
  background: #f4f6f9;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  color: var(--bento-accent);
  transition: transform 0.3s;
}
.link-card:hover .link-icon-circle {
  transform: rotate(45deg) scale(1.1);
  background: var(--bento-accent);
  color: white;
}

/* --- 5. FEED LAYOUT (Updated to Vertical Grid) --- */
.content-split {
  display: block;
  width: 100%;
}

.blog-sidebar {
  display: none;
} /* Explicitly hide sidebar if presents */

/* Grid Container for Vertical Cards */
.article-feed {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* 3 Columns */
  gap: 30px;
}

/* Vertical Card Style */
.feed-item {
  display: flex;
  flex-direction: column; /* Image top, text bottom */
  background: var(--bento-card-bg);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 0;
  transition: transform 0.3s ease;
  border: 1px solid rgba(0, 0, 0, 0.03);
  height: auto;
}

.feed-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08);
}

.feed-img {
  width: 100%;
  height: 220px; /* Fixed image height */
  flex-shrink: 0;
  position: relative;
}

.feed-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.feed-info {
  padding: 25px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  flex: 1;
}

.feed-tag {
  color: var(--bento-accent);
  font-weight: 700;
  font-size: 0.75rem;
  text-transform: uppercase;
  margin-bottom: 10px;
  display: block;
}

.feed-info h2 {
  font-size: 1.4rem;
  margin: 0 0 10px 0;
  color: var(--bento-primary);
  line-height: 1.3;
}

.feed-info p {
  color: var(--bento-muted);
  line-height: 1.6;
  margin: 0 0 20px 0;
  font-size: 0.95rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.read-link {
  text-decoration: none;
  color: var(--bento-text);
  font-weight: 700;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: gap 0.2s;
  margin-top: auto; /* Push to bottom */
}

.read-link:hover {
  gap: 10px;
  color: var(--bento-accent);
}
.blog-container{
    padding: 50px;
}

/* =========================================
   RESPONSIVE: TABLET & MOBILE
   ========================================= */

@media (max-width: 1024px) {
  .bento-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: auto;
    gap: 20px;
  }
  .main-feature {
    grid-column: span 2;
    height: 400px;
  }
  .tall-feature,
  .stat-card,
  .link-card {
    grid-column: span 1;
    height: 300px;
  }
  .tall-feature .bento-img,
  .tall-feature .bento-content {
    height: 50%;
  }

  /* 2 Column Feed on Tablet */
  .article-feed {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .bento-header h1 {
    font-size: 2.5rem;
  }
  .bento-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 40px;
  }
  .main-feature,
  .tall-feature,
  .stat-card,
  .link-card {
    grid-column: span 1;
    height: auto;
    min-height: 250px;
  }
  .main-feature {
    height: 350px;
  }

  /* 1 Column Feed on Mobile */
  .article-feed {
    grid-template-columns: 1fr;
  }

  .feed-img {
    height: 200px;
  }
  .container {
    padding: 0 20px;
  }
  .blog-container{
    padding: 20px;
}
.main-feature h2{
    font-size: 1rem;
}
.btn-arrow{
    width: 30px;
    height: 30px;
  
}
}
