/* ===== Features Grid Section ===== */
.features-grid-section {
  padding: 80px 0;
  background-color: #f8fafc;
  font-family: 'Be Vietnam Pro', sans-serif;
}

.features-grid-container {
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 24px;
}

.features-grid-header {
  text-align: center;
  margin-bottom: 60px;
}

.features-grid-header h2 {
  font-size: 56px;
  font-weight: 500;
  line-height: 70px;
  color: rgb(13, 18, 34);
  margin-bottom: 24px;
}

/* Grid Layout */
.features-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

/* Card Styling (Using User Provided Styles) */
.feature-grid-card {
  background-color: rgb(255, 255, 255);
  border: 1px solid rgb(0, 122, 255);
  border-radius: 24px;
  box-shadow: rgba(71, 103, 136, 0.04) 0px 4px 5px 0px, 
              rgba(71, 103, 136, 0.03) 0px 8px 15px 0px, 
              rgba(71, 103, 136, 0.06) 0px 15px 30px 0px;
  padding: 40px;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  height: 100%;
}

.feature-grid-card:hover {
  transform: translateY(-8px);
  box-shadow: rgba(71, 103, 136, 0.1) 0px 10px 20px 0px, 
              rgba(71, 103, 136, 0.08) 0px 15px 35px 0px;
}

/* Icon Container */
.feature-icon-wrapper {
  position: absolute;
  top: 30px;
  right: 30px;
  width: 44px;
  height: 44px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.feature-icon-wrapper i {
  font-size: 20px;
  color: #fff;
}

/* Specific Card Highlight: Matter Management */
.feature-grid-card.active-blue {
  background-color: #0B3558; /* User Specified Dark Blue */
  color: #ffffff;
  border: none;
}

.feature-grid-card.active-blue h3,
.feature-grid-card.active-blue p,
.feature-grid-card.active-blue .feature-link {
  color: #ffffff;
}

.feature-grid-card.active-blue .feature-icon-wrapper {
  background-color: #f59e0b; /* CLM - Orange (Now in active card) */
}

/* Individual Icon Backdrops */
.feature-card-1 .feature-icon-wrapper { background-color: #3b82f6; } /* AI - Blue */
.feature-card-3 .feature-icon-wrapper { background-color: #8b5cf6; } /* Matter - Purple (Now in card 3) */
.feature-card-4 .feature-icon-wrapper { background-color: #ef4444; } /* Spend - Red */
.feature-card-5 .feature-icon-wrapper { background-color: #10b981; } /* Workflow - Green */
.feature-card-6 .feature-icon-wrapper { background-color: #0ea5e9; } /* Doc - Light Blue */
.feature-card-7 .feature-icon-wrapper { background-color: #22c55e; } /* Analytics - Green */
.feature-card-8 .feature-icon-wrapper { background-color: #4755ff; } /* Portal - Purple-ish Blue */
.feature-card-9 .feature-icon-wrapper { background-color: #f43f5e; } /* See More - Rose */

/* Card Content */
.feature-grid-card h3 {
  font-size: 20px;
  font-weight: 700;
  color: #0b3558;
  margin-bottom: 20px;
  max-width: 70%;
  line-height: 1.3;
}

.feature-grid-card p {
  font-size: 15px;
  color: #64748b;
  line-height: 1.6;
  margin-bottom: 30px;
  flex-grow: 1;
}

.feature-link {
  font-size: 14px;
  font-weight: 700;
  color: #0b3558;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: gap 0.2s;
}

.feature-link:hover {
  gap: 10px;
}

/* Responsive Breakpoints */
@media (max-width: 1024px) {
  .features-cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .features-grid-section {
    padding: 60px 0;
  }
  .features-cards-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .feature-grid-card {
    padding: 30px;
  }
  .feature-grid-card h3 {
    font-size: 18px;
    margin-bottom: 15px;
  }
}
