/**
 * =====================================================
 * Success Stories & News/Events Section
 * Path: assets/css/stories-news.css
 * =====================================================
 */

.stories-news-section {
  padding: 60px 0;
  background-color: #f8faf9;
}

/* 2-Column Outer Grid Container */
.stories-news-grid {
  display: grid;
  grid-template-columns: 1fr 1.8fr;
  gap: 30px;
  align-items: stretch;
}

/* SECTION LABELS */
.section-label {
  display: block;
  font-size: 14px;
  font-weight: 800;
  color: #004b2d; /* Primary Dark Green */
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 15px;
}

/* =====================================================
   SUCCESS STORIES (SPLIT SIDE-BY-SIDE LAYOUT)
   ===================================================== */

.success-stories-card {
  background-color: #f2f7f4 !important;
  border-radius: 12px !important;
  position: relative !important;
  overflow: hidden !important; /* Clips rounded corners */
  display: grid !important;
  grid-template-columns: 1.1fr 0.9fr !important; /* Text on left, Image on right */
  align-items: end !important;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03) !important;
  height: 100% !important;
  box-sizing: border-box !important;
}

/* Text Content Area */
.stories-content {
  position: relative !important;
  z-index: 2 !important;
  padding: 30px 20px 30px 30px !important;
  align-self: center !important;
}

.quote-icon {
  font-size: 24px;
  color: #00843d;
  margin-bottom: 10px;
}

.story-quote {
  font-size: 15px !important;
  font-weight: 700 !important;
  line-height: 1.4 !important;
  color: #1a1a1a !important;
  margin: 0 0 12px 0 !important;
  padding: 0 !important;
  border: none !important;
}

.story-author {
  font-size: 12px !important;
  color: #555555 !important;
  font-style: italic !important;
  margin-bottom: 20px !important;
}

.btn-stories {
  display: inline-block !important;
  background-color: #004b2d !important;
  color: #ffffff !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  padding: 9px 18px !important;
  border-radius: 5px !important;
  text-decoration: none !important;
  transition: background-color 0.3s ease !important;
}

.btn-stories:hover {
  background-color: #00843d !important;
}

/* Image Wrapper (Locked to Right Side and Bottom Flush) */
.stories-image-wrapper {
  position: relative !important;
  width: 100% !important;
  height: 100% !important;
  min-height: 250px !important;
  display: flex !important;
  align-items: flex-end !important;
  justify-content: flex-end !important;
}

.stories-img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: top center !important;
  display: block !important;
}

/* Responsive adjustment for Mobile */
@media (max-width: 600px) {
  .success-stories-card {
    grid-template-columns: 1fr !important; /* Stacks text above image on small screens */
  }
}

/* Image Container locked strictly to the lower grid slot */
.stories-image-wrapper {
  position: relative !important;
  width: 100% !important;
  height: 100% !important;
  min-height: 220px !important;
  margin: 0 !important;
  padding: 0 !important;
  line-height: 0 !important;
  overflow: hidden !important;
  align-self: end !important;
}

.stories-img {
  position: absolute !important;
  bottom: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: top center !important;
  display: block !important;
}

/* =====================================================
   RIGHT COLUMN: NEWS & EVENTS
   ===================================================== */

.news-events-container {
  background-color: #f2f7f4 !important;
  border-radius: 12px !important;
  padding: 30px !important;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03) !important;
  box-sizing: border-box !important;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
  margin-top: 15px;
}

.news-card {
  background-color: #ffffff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.news-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
}

.news-thumb {
  width: 100%;
  height: 125px;
  overflow: hidden;
}

.news-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.news-body {
  padding: 15px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.news-date {
  font-size: 11px;
  color: #777777;
  margin-bottom: 8px;
  display: block;
}

.news-title {
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
  color: #1a1a1a;
  margin: 0 0 8px 0;
}

.news-excerpt {
  font-size: 12px;
  color: #666666;
  line-height: 1.4;
  margin: 0 0 15px 0;
  flex-grow: 1;
}

.news-link {
  font-size: 12px;
  font-weight: 700;
  color: #00843d !important;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.news-link i {
  font-size: 10px;
  transition: transform 0.2s ease;
}

.news-link:hover i {
  transform: translateX(3px);
}

/* =====================================================
   RESPONSIVE DESIGN
   ===================================================== */

@media (max-width: 1024px) {
  .stories-news-grid {
    grid-template-columns: 1fr;
  }
  
  .stories-image-wrapper {
    min-height: 260px !important;
  }
}

@media (max-width: 768px) {
  .news-grid {
    grid-template-columns: 1fr;
  }
}