/* ==========================================================================
   SERVICE — MICROSOFT DYNAMICS 365 PAGE
   Dedicated stylesheet; depends on shared tokens in style.css
   ========================================================================== */

/* -----------------------------------------------------------------------
   1. SERVICES BANNER
   ----------------------------------------------------------------------- */
.svc-banner {
  position: relative;
  min-height: 140px;
  background-image: url('../images/service/Service-SAP-banner.avif');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.svc-banner__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.1);
  pointer-events: none;
}

.svc-banner__label {
  position: relative;
  z-index: 2;
  font-size: 3rem;
  font-weight: 800;
  letter-spacing: 4px;
  color: #ffffff;
  text-align: center;
  padding: 28px 0 56px;   /* extra bottom padding leaves room for tab bar */
}

/* -----------------------------------------------------------------------
   2. SERVICE TAB BAR
   ----------------------------------------------------------------------- */
.svc-tab-bar {
  position: relative;
  z-index: 10;
  margin-top: -14px;       /* pull up so it overlaps the banner slightly */
}
.svc-tab-row {
  display: flex;
  overflow: hidden;
  box-shadow: 0 10px 26px rgba(16, 42, 92, 0.22);
  gap: 1.5%;
  width: calc(100% - 4.2%);
  margin: auto;
}

.svc-tab {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 10px;
  border-radius: 10px 10px 0 0;
  background: linear-gradient(180deg, #9BBFF9 100%, #266AD9 100%);
  border-right: 1px solid rgba(255, 255, 255, 0.55);
  text-decoration: none;
  transition: background 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
  cursor: pointer;
}

.svc-tab:last-child {
  border-right: none;
}

.svc-tab:hover {
  background: linear-gradient(180deg, #b2d0ff 100%, #7fadf6 100%);
}

.svc-tab--active {
  background: linear-gradient(180deg, #ffffff 0%, #BED7FF 100%);
  box-shadow: 0 14px 26px rgba(16, 42, 92, 0.22);
  position: relative;
  z-index: 2;
}

.svc-tab-logo {
  height: 60px;
  width: auto;
  object-fit: contain;
}

.svc-tab-logo--oracle {
  height: 30px;
}

.svc-tab-logo--staff {
  height: 80px;
}

.svc-tab-label {
  font-size: 0.8rem;
  font-weight: 700;
  color: #16305c;
  line-height: 1.25;
  white-space: nowrap;
}

.svc-tab--active .svc-tab-label {
  color: #0f2a5c;
}

/* -----------------------------------------------------------------------
   3D Perspective for below menu
   ----------------------------------------------------------------------- */

.perspective-container {
  width: 100%;
  height: 15px;
  perspective: 50px; /* Adjust this value to make the 3D effect stronger or weaker */
  perspective-origin: center;
}

.box-3d {
  width: 100%;
  height: 100%;
  background:linear-gradient(0deg, #b9d4ff 0%, #a9c9ff 100%);
  transform: rotateX(15deg); /* Example 3D transform */
  transform-style: preserve-3d;
}



/* -----------------------------------------------------------------------
   3. MICROSOFT DYNAMICS 365 INTRO SECTION
   ----------------------------------------------------------------------- */
.msd-intro {
  padding: 50px 0 44px;
}

/* Top row: logo + lead text */
.msd-intro__top {
  display: flex;
  align-items: flex-start;
  gap: 28px;
  padding-bottom: 20px;
  width: 70%;
  margin: auto;
  text-align: center;
  font-weight: bold;
  font-size: 18px;
}

.msd-intro__logo-wrap {
  flex-shrink: 0;
  display: flex;
  align-items: flex-start;
  padding-top: 6px;
}

.msd-intro__logo {
  width: 100%;
  height: auto;
  object-fit: contain;
}

.msd-intro__lead {
  flex: 1;
}

.msd-intro__title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 3vw, 2.1rem);
  font-weight: 700;
  color: var(--primary-blue);
  margin-bottom: 10px;
  line-height: 1.2;
}

.msd-intro__desc {
  font-size: 0.97rem;
  line-height: 1.75;
  color: #374151;
}

/* Two-column body text */
.msd-intro__body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}

.msd-intro__body-col p {
  font-size: 0.93rem;
  line-height: 1.8;
  color: #475467;
}

/* -----------------------------------------------------------------------
   4. ECOSYSTEM DIAGRAM
   ----------------------------------------------------------------------- */
.msd-ecosystem {
  padding: 0 0 50px;

}

.msd-ecosystem__img-wrap {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  border-radius: 16px;
  overflow: hidden;
  background: #f3f7fe;
  box-shadow: 0 6px 28px rgba(16, 42, 92, 0.08);
}

.msd-ecosystem__img {
  width: 100%;
  height: auto;
  display: block;
}

/* -----------------------------------------------------------------------
   5. CAPABILITIES AT A GLANCE — 2×2 GRID
   ----------------------------------------------------------------------- */
.msd-glance {
  padding: 40px 0 40px;
  background: #fff;
}

.msd-glance__title {
  font-family: var(--font-heading);
  font-size: clamp(1.4rem, 2.5vw, 1.85rem);
  font-weight: 800;
  color: var(--primary-blue);
  text-align: center;
  margin-bottom: 60px;
  line-height: 1.25;
}

.msd-glance__title-sub {
  display: block;
  font-weight: 800;
  color: var(--primary-blue);
}

/* 2-column grid */
.msd-glance__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

/* Individual capability card */
.msd-glance-card {
  display: flex;
  gap: 0;
  background: #ffffff;
  border: 1px solid #e0ecfa;
  border-radius: 12px;
  box-shadow: 0 3px 14px rgba(16, 42, 92, 0.06);
  transition: box-shadow 0.28s ease, transform 0.28s ease;
  margin-bottom: 40px;
}

.msd-glance-card:hover {
  box-shadow: 0 10px 32px rgba(16, 42, 92, 0.12);
  transform: translateY(-4px);
}

.msd-glance-card-bg1{
  background-color: #F9E5D5;
}
.msd-glance-card-bg2{
  background-color: #CFE1FF;
}
.msd-glance-card-bg3{
  background-color: #D7EED4;
}
.msd-glance-card-bg4{
  background-color: #CDD2FF;
}

/* Left: image column */
.msd-glance-card__img-col {
  position: relative;
  width: 160px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px 12px;
  margin-top: -80px;
}

.msd-glance-card__img {
  width: 120px;
  height: 140px;
  object-fit: contain;
  display: block;
}

/* Number badge — bottom right of image column */
.msd-glance-card__num {
  position: absolute;
  bottom: 10px;
  right: 10px;
  width: 28px;
  height: 28px;
  background: var(--primary-blue);
  color: #ffffff;
  border-radius: 50%;
  font-size: 0.82rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

/* Right: text content */
.msd-glance-card__content {
  flex: 1;
  padding: 20px 20px 20px 18px;
}

.msd-glance-card__title {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 10px;
  line-height: 1.3;
}
.finance{
  color:#D24F23;
  }
.supply{
  color:#2365D2;
  }
.business{
  color:#5B9253;
}
.manufacture{
  color:#5B59FF;
}
.msd-glance-card__list {
  list-style: disc;
  padding-left: 18px;
  margin: 0;
}

.msd-glance-card__list li {
  font-size: 0.84rem;
  line-height: 1.65;
  color: #475467;
  margin-bottom: 4px;
}

.msd-glance-card__list li:last-child {
  margin-bottom: 0;
}

/* -----------------------------------------------------------------------
   6. RESPONSIVE BREAKPOINTS
   ----------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .msd-glance__grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 840px) {
  .svc-tab-label {
    display: none;      /* hide text labels; show only logos on small screens */
  }

  .msd-intro__top {
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 90%;
  }
  .msd-intro__body {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .msd-glance-card__img-col {
    width: 130px;
  }

  .msd-glance-card__img {
    width: 100px;
    height: 110px;
  }
}

@media (max-width: 600px) {
  .svc-banner__label {
    font-size: 1.25rem;
    letter-spacing: 2px;
  }

  .svc-tab {
    padding: 12px 8px;
  }

  .msd-glance-card {
    flex-direction: column;
  }

  .msd-glance-card__img-col {
    width: 100%;
    padding: 20px;
    flex-direction: row;
    justify-content: flex-start;
    gap: 12px;
  }

  .msd-glance-card__img {
    width: 80px;
    height: 90px;
  }

  .msd-glance-card__num {
    bottom: auto;
    top: 10px;
    right: 10px;
  }
  /*-----Service menus----------*/
  .svc-tab {
    padding: 12px 8px;
  }

  .sap-benefits__grid,
  .sap-why__grid,
  .sap-digital__grid {
    grid-template-columns: 1fr;
  }

  .sap-intro__title {
    font-size: 1.7rem;
  }
  .sap-split-col__title, .sap-split-col__desc, .sap-split-col__img-wrap {
    text-align: center; 
  }
  .sap-split-col__desc{
    padding-right: 0;
  }
  .svc-tab-logo--staff, .svc-tab-logo{
    height: 40px;
  }
}