/* ===== 1. INTRO SECTION ===== */


.capabilities-intro.section--gray {
  background: #f2f1f1;
  color: var(--brand-blue);
}

.capabilities-intro .intro-wrap {
  display: flex;
  justify-content: center;
}

.capabilities-intro .intro-text {
  max-width: 900px;
  text-align: left;
}

.capabilities-intro h1 {
  font-size: 2.5rem;
  font-weight: 100;
  margin-bottom: 1rem;
  color: var(--brand-blue);
}

.capabilities-intro .intro-desc {
  font-size: 1.2rem;
  font-weight: 100;
  line-height: 1.7;
  color: var(--brand-blue);
}

/* ===== 2. CORE CAPABILITIES OVERVIEW ===== */

.core-capabilities.section--white {
  background: #ffffff;
  color: var(--brand-blue);
}

.capabilities-tiles {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  margin-top: 18px;
}

@media (max-width: 1200px) {
  .capabilities-tiles { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 700px) {
  .capabilities-tiles { grid-template-columns: 1fr; }
}

.capability-tile {
  text-align: left;
  background: #ffffff;
  border: 1px solid #e7eaf0;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(0,0,0,0.06);
  transition: transform .18s ease, box-shadow .18s ease;
}

.capability-tile:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 26px rgba(0,0,0,0.10);
}

.capability-img-wrap {
  aspect-ratio: 16 / 9;
  background: #f3f6fb;
  overflow: hidden;
}

.capability-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.capability-heading {
  font-size: 1.15rem;
  margin: 14px 16px 6px;
  color: #0c2440;
}

.capability-copy {
  font-size: 0.98rem;
  color: #2c3b4e;
  margin: 0 16px 18px;
  line-height: 1.55;
}

/* ===========================
   CosmicLens Capabilities Page
   =========================== */

.capabilities-intro {
  background: #ffffff;
  color: var(--brand-blue);
  padding: 100px 20px 60px;
  text-align: center;
}

.capabilities-intro h1 {
  font-size: 2.5rem;
  margin-bottom: 20px;
}

.capabilities-intro p {
  max-width: 800px;
  margin: 0 auto;
  font-size: 1.1rem;
  color: var(--brand-blue);
}

.capabilities-grid {
  background: #f2f1f1;
  padding: 80px 20px;
}

.capabilities-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 40px;
}

.cap-card {
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  text-align: left;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  

  display: flex;
  flex-direction: column;
  height: 100%;
  padding-bottom: 20px; 
}

.cap-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.12);
}

.cap-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.cap-card h3 {
  font-size: 1.25rem;
  color: #0c2440;
  margin: 18px 16px 8px;
}

.cap-card p {
  font-size: 0.98rem;
  color: #2c3b4e;
  margin: 0 16px;
  line-height: 1.5;
  flex-grow: 1; 
}

.learn-more {
  display: inline-block;
  margin: 16px; /* consistent side and bottom spacing */
  color: var(--brand-blue);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none; /* no default underline */
  position: relative;
  align-self: flex-start;
  transition: color 0.3s ease;
}

/* Create the underline element */
.learn-more::after {
  content: "";
  position: absolute;
  bottom: -3px; /* just below text */
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--brand-blue);
  transform: scaleX(0);
  transform-origin: left; /* animate from left to right */
  transition: transform 0.3s ease;
}

/* On hover — line grows left to right */
.learn-more:hover::after {
  transform: scaleX(1);
}

.learn-more:hover {
  color: #004d85;
}

/* --------------------------
   Capability Page Hero (1, 2, 3, 4, 5)
--------------------------- */
.capability-hero {
  position: relative;
  height: 70vh;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-align: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.hero-text {
  position: relative;
  z-index: 1;
  max-width: 800px;
  padding: 0 20px;
}

.hero-subtitle {
  font-size: 0.9rem;
  letter-spacing: 2px;
  font-weight: 600;
  color: #66d9ff;
  margin-bottom: 12px;
}

.hero-title {
  font-size: 2.8rem;
  font-weight: 600;
  margin-bottom: 15px;
  line-height: 1.2;
}

.hero-desc {
  font-size: 1.2rem;
  font-weight: 300;
  color: #e0e0e0;
}

/* --------------------------
   Content Section
--------------------------- */
.capability-content {
  padding: 100px 20px;
  text-align: left;
}

.capability-content .container {
  max-width: 950px;
  margin: 0 auto;
  color: var(--brand-blue);
  line-height: 1.9;
  font-size: 1.3rem; 
  font-weight: 300;
}

.capability-content p + p {
  margin-top: 28px;
}

@media (max-width: 768px) {
  .capability-content .container {
    font-size: 1.15rem; /* still readable on mobile */
    line-height: 1.8;
  }
}





