@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');



/* ---------- Data Science Page: Hero + Grid ---------- */

/* HERO */
.ds-hero {
  width: 100%;
  height: 68vh;
  min-height: 420px;
  background-image: url('images/data11.jpg');
  background-size: cover;
  background-position: center;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 900;
  font-family: "Poppins", sans-serif;
  font-style: normal;
   font-size: 2rem;
}

.ds-hero__overlay {
  width: 100%;
  height: 100%;
  /* background: rgba(12, 18, 31, 0.55); darker overlay for readability */
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
 color: #fff;
}



.data-science-section {
  margin-top: 80px; /* space from the banner image above */
  padding: 60px 20px;
  background: #f9fafc;
}

.data-science-section h2 {
  text-align: center;
  font-size: 2rem;
  color: #083358;
  margin-bottom: 40px;
}

.data-cards {
  display: flex;
  justify-content: center;
  align-items: stretch;
  gap: 30px;
  flex-wrap: wrap;
}

.data-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  flex: 1 1 400px;
  max-width: 500px;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease;
}

.data-card:hover {
  transform: translateY(-8px);
}

.data-card img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.card-text {
  padding: 20px;
  flex-grow: 1;
}

.card-text h3 {
  color: #083358;
  font-size: 1.25rem;
  margin-bottom: 10px;
}

.card-text p {
  font-size: 1rem;
  color: #333;
  line-height: 1.6;
}

/* ✅ Responsive Fix for small screens */
@media (max-width: 768px) {
  .data-card {
    flex: 1 1 100%;
    max-width: 100%;
  }

  .data-card img {
    height: 200px;
  }

  .card-text {
    padding: 15px;
  }

  .card-text h3 {
    font-size: 1.1rem;
  }

  .card-text p {
    font-size: 0.95rem;
    line-height: 1.5;
    display: block;
    overflow: visible;
    white-space: normal;
  }
}

@media (max-width: 480px) {
  .data-science-section {
    padding: 40px 15px;
  }

  .data-science-section h2 {
    font-size: 1.5rem;
  }
}


.ds-hero__content {
  max-width: 1100px;
  color: #fff;
  text-align: center;
  line-height: 1.5;
  border-radius: 8px;
}

.ds-hero__content p{
 font-style: normal;
  font-size: 2rem;
   font-family: "Poppins", sans-serif;
    font-weight: 900;
    margin-bottom: 30px;
}

.ds-hero__line {
  margin: 0 0 18px;
  font-size: 1.22rem;
  font-weight: 400;
}

/* slightly larger first line on big screens */
@media (min-width: 992px) {
  .ds-hero__line:first-child { font-size: 1.45rem; font-weight: 500; }
  .ds-hero__line { margin-bottom: 22px; }
}

/* ---------- Container + Header ---------- */
.ds-container {
  background: #f6f7fb; /* light background per request */
  padding: 48px 4% 80px;
}

.ds-section-header {
  max-width: 1100px;
  margin: 0 auto 28px;
  text-align: center;
}

.ds-section-header h2 {
  margin: 0 0 8px;
  font-size: 28px;
  color: #0f1724;
}

.ds-section-header .ds-lead {
  margin: 0;
  color: #475569;
  font-size: 15px;
}

/* ---------- Grid ---------- */
.ds-grid {
  max-width: 1200px;
  margin: 18px auto 0;
  display: grid;
  gap: 22px;
  grid-template-columns: repeat(1, 1fr);
  padding: 0 12px;
}

/* Card */
.ds-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(12,18,31,0.06);
  display: flex;
  flex-direction: column;
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.ds-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 14px 36px rgba(12,18,31,0.10);
}

.ds-card__media {
  height: 150px;
  background-size: cover;
  background-position: center;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ds-card__icon {
  background: rgba(255,255,255,0.92);
  width: 66px;
  height: 66px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  color: #0b1220;
  box-shadow: 0 6px 18px rgba(12,18,31,0.08);
}

.ds-card__body {
  padding: 18px 18px 22px;
}

.ds-card__body h3 {
  margin: 0 0 8px;
  font-size: 18px;
  color: #081228;
}

.ds-card__body p {
  margin: 0;
  color: #475569;
  font-size: 14px;
  line-height: 1.5;
}

/* ---------- Responsive grid columns ---------- */
@media (min-width: 640px) {
  .ds-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 992px) {
  .ds-grid { grid-template-columns: repeat(3, 1fr); }
}

/* Extra-large - 4 columns */
@media (min-width: 1280px) {
  .ds-grid { grid-template-columns: repeat(4, 1fr); }
}

/* Card media height adjust on larger screens */
@media (min-width: 992px) {
  .ds-card__media { height: 170px; }
}

/* small screens: tighter spacing */
@media (max-width: 420px) {
  .ds-hero__line { font-size: 0.98rem; }
  .ds-card__icon { width: 56px; height: 56px; font-size: 22px; }
  .ds-card__media { height: 140px; }
  .ds-hero__content p{ margin-bottom: 50px; margin-top: 50px; font-size: 1.2rem;}
}

/* Utility */
.ds-card a { color: inherit; text-decoration: none; }
