/* --- APPLICATIONS PAGE STYLES --- */
.svc-grid-4 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.app-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.app-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.15);
}

.app-img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  background-color: #eee;
}

.app-card-body {
  padding: 15px;
  text-align: left;
}

.app-category {
  font-weight: 700;
  color: #007bff;
  font-size: 0.9em;
}

.app-desc {
  font-size: 0.95em;
  color: #333;
  margin-top: 5px;
}

/* Alt section variant */
.svc-section-alt {
  background: #f8fafc;
  border-top: 1px solid #e5e7eb;
  border-bottom: 1px solid #e5e7eb;
}
/* MODERN APPLICATION SHOWCASE LAYOUT */
.app-showcase {
  padding: 80px 0;
}

.app-case {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 100px;
  border-radius: 20px;
  padding: 40px;
  transition: transform 0.3s ease;
}

.app-case:hover {
  transform: translateY(-5px);
}

.app-case.reverse {
  flex-direction: row-reverse;
}

.app-alt-bg {
  background: #f9fafb;
}

.app-case-text {
  flex: 1 1 45%;
  text-align: justify;
}

.app-case-text h3 {
  font-size: 1.5em;
  margin-bottom: 0.4em;
  color: #111;
  text-align: left;
}

.app-case-text p {
  font-size: 1em;
  line-height: 1.7;
  color: #444;
  margin-bottom: 0.8em;
}

.app-case-text ul {
  list-style: none;
  padding-left: 0;
  text-align: left;
}

.app-case-text ul li {
  margin-bottom: 4px;
  font-size: 0.95em;
  color: #333;
}

.app-case-img,
.app-case-gallery {
  flex: 1 1 50%;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  align-items: center;
}

.app-case-img.large img {

  aspect-ratio: 16 / 9;      /* ensures consistent height ratio */
  height: 200px;    
  border-radius: 14px;
  object-fit: cover;
  box-shadow: 0 6px 18px rgba(0,0,0,0.15);
}

.app-case-img.large-L img {
  width: 60%;
  aspect-ratio: 16 / 9;      /* ensures consistent height ratio */
  height: 400px;              /* auto works with aspect-ratio */
  border-radius: 14px;
  object-fit: cover;
  box-shadow: 0 6px 18px rgba(0,0,0,0.15);
}

.app-case-gallery img {
  width: 40%;                /* or use fixed width like 300px */
  aspect-ratio: 16 / 9;      /* ensures consistent height ratio */
  height: 200px;              /* auto works with aspect-ratio */
  border-radius: 14px;
  object-fit: cover;          /* crops images neatly */
  object-position: center;    /* keeps focus centered */
  box-shadow: 0 6px 18px rgba(0,0,0,0.15);
}


@media (max-width: 900px) {
  .app-case, .app-case.reverse {
    flex-direction: column;
    padding: 20px;
  }

  .app-case-img.large img, .app-case-img.large-L img,
  .app-case-gallery img {
    width: 100%;
  }
}
