/* ================= SERVICES SECTION ================= */
.services-bg{
  background:#f7f9fc;
}

/* ================= SERVICE CARD ================= */
.service-card{
  background: linear-gradient(
    160deg,
    rgba(13, 79, 163, 0.06),
    rgba(11, 42, 74, 0.04)
  );
  border: 1.5px solid rgba(13, 79, 163, 0.35);
  border-radius: 20px;

  /* Reduced padding for smaller height */
  padding: 22px 22px 18px;

  transition: all 0.35s ease;
  height: 100%;

  display: flex;
  flex-direction: column;

  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.35);

  /* Entry animation */
  animation: cardFadeUp 0.8s ease forwards;
  opacity: 0;
}

/* Hover */
.service-card:hover{
  background: linear-gradient(
    160deg,
    rgba(11, 42, 74, 0.92),
    rgba(13, 79, 163, 0.92)
  );
  transform: translateY(-6px);
  box-shadow: 0 18px 38px rgba(11,42,74,.28);
}

/* ================= IMAGE ================= */
.service-img{
  width:100%;
  height:135px;            /* ↓ reduced height */
  border-radius:14px;
  overflow:hidden;
  margin-bottom:12px;
}

.service-img img{
  width:100%;
  height:100%;
  object-fit:cover;
  transition:transform .6s ease;
}

.service-card:hover .service-img img{
  transform:scale(1.08);
}

/* ================= ICON ================= */
.icon-wrap{
  width:50px;
  height:50px;
  border-radius:50%;
  background:var(--red);
  display:flex;
  align-items:center;
  justify-content:center;
  color:#fff;
  font-size:21px;
  margin-bottom:12px;

  animation: floatIcon 4s ease-in-out infinite;
}

/* ================= TEXT ================= */
.service-card h5{
  color: var(--blue-dark);
  margin-bottom:6px;
}

.service-card p{
  color:#444;
  line-height:1.5;
  margin-bottom:12px;
}

.service-card:hover h5,
.service-card:hover p{
  color:#fff;
}
/* ================= READ MORE BUTTON ================= */
.read-more-btn{
  position: relative;
  align-self: flex-end;      /* move button to right */
  margin-top: auto;
  margin-bottom: 0;

  padding: 6px 14px;        /* shorter height & width */
  font-size: 0.85rem;
  font-weight: 600;

  color: #fff;
  text-decoration: none;
  border-radius: 22px;

  background: linear-gradient(
    135deg,
    #d32f2f,
    #e64a19,
    #b71c1c
  );
  background-size: 200% 200%;
  overflow: hidden;

  transition: all 0.3s ease;
}

/* Hover */
.read-more-btn:hover{
  background-position: right center;
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(211, 47, 47, 0.45);
  color:#fff;
}

/* Shine effect */
.read-more-btn::before{
  content:"";
  position:absolute;
  top:0;
  left:-80%;
  width:50%;
  height:100%;
  background:linear-gradient(
    120deg,
    rgba(255,255,255,0),
    rgba(255,255,255,0.45),
    rgba(255,255,255,0)
  );
  transform:skewX(-25deg);
}

.read-more-btn:hover::before{
  animation: shineMove .9s ease;
}

/* Arrow */
.read-more-btn i{
  margin-left:4px;
  font-size:0.75rem;
  transition:.3s;
}

.read-more-btn:hover i{
  transform:translateX(3px);
}


/* ================= ANIMATIONS ================= */
@keyframes cardFadeUp{
  from{
    opacity: 0;
    transform: translateY(30px);
  }
  to{
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes floatIcon{
  0%{ transform: translateY(0); }
  50%{ transform: translateY(-6px); }
  100%{ transform: translateY(0); }
}

@keyframes shineMove{
  from{ left:-80%; }
  to{ left:130%; }
}

/* ================= MOBILE OPTIMIZATION ================= */
@media (max-width:576px){
  .service-img{
    height:120px;
  }

  .service-card{
    padding:20px 18px 16px;
  }
}
/* ================= MOBILE CARD HEIGHT FIX ================= */
@media (max-width: 576px){

  /* Slightly increase overall card height */
  .service-card{
    padding: 26px 22px 22px;   /* more vertical space */
    min-height: 420px;         /* prevents cards from looking too short */
  }

  /* Image slightly taller for balance */
  .service-img{
    height: 155px;
    margin-bottom: 14px;
  }

  /* Text spacing improvement */
  .service-card p{
    margin-bottom: 16px;
    line-height: 1.6;
  }

  /* Button position stays bottom-right */
  .read-more-btn{
    margin-top: auto;
    align-self: flex-end;
  }
}
/* ================= AUTO HOVER ON SCROLL ================= */
.service-card.is-active{
  background: linear-gradient(
    160deg,
    rgba(11, 42, 74, 0.92),
    rgba(13, 79, 163, 0.92)
  );
  transform: translateY(-6px);
  box-shadow: 0 18px 38px rgba(11,42,74,.28);
}

.service-card.is-active h5,
.service-card.is-active p{
  color:#fff;
}

.service-card.is-active .service-img img{
  transform: scale(1.08);
}

/* ================= PERFECT MOBILE CENTER FIX ================= */

@media (max-width: 576px){

  /* Remove container side padding */
.services-bg .container{
  padding-left: 0;
  padding-right: 0;
}


  /* Remove Bootstrap row overflow */
  .services-bg .row{
    margin-left: 0;
    margin-right: 0;
  }

  /* Make column full width */
  .services-bg .col-12{
    padding-left: 0;
    padding-right: 0;
  }

  /* Card covers almost full screen */
  .service-card{
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    border-radius: 18px; /* still premium */
  }
}

/* ================= SERVICE MODAL ================= */

/* Modal backdrop blur */
.modal-backdrop.show{
  opacity: 0.75;
  backdrop-filter: blur(4px);
}

/* Modal dialog animation */
.modal.fade .modal-dialog{
  transform: translateY(40px) scale(0.96);
  transition: all .4s ease;
}

.modal.show .modal-dialog{
  transform: translateY(0) scale(1);
}

/* Modal content */
.modal-content{
  border-radius: 18px;
  border: none;
  overflow: hidden;
  box-shadow: 0 30px 70px rgba(0,0,0,.25);
  background: linear-gradient(
    180deg,
    #ffffff,
    #f4f7fb
  );
}

/* Header */
.modal-header{
  background: linear-gradient(
    135deg,
    #0d4fa3,
    #0b2a4a
  );
  color: #fff;
  border-bottom: none;
  padding: 18px 24px;
}

.modal-header h5{
  font-weight: 600;
  letter-spacing: .3px;
}

.modal-header .btn-close{
  filter: invert(1);
  opacity: .85;
}

.modal-header .btn-close:hover{
  opacity: 1;
}

/* Body */
.modal-body{
  padding: 26px 28px;
}

/* ================= SERVICE LIST ================= */
.service-list{
  list-style: none;
  padding: 0;
  margin: 0;
}

/* List item */
.service-list li{
  position: relative;
  padding: 14px 16px 14px 44px;
  margin-bottom: 12px;
  border-radius: 12px;
  background: #fff;
  color: #333;
  font-size: 0.95rem;
  line-height: 1.6;

  box-shadow: 0 6px 16px rgba(13,79,163,.08);

  animation: fadeSlideUp .45s ease both;
}

/* Check icon */
.service-list li::before{
  content: "✓";
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: linear-gradient(
    135deg,
    #d32f2f,
    #b71c1c
  );
  color: #fff;
  font-size: 12px;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Hover effect */
.service-list li:hover{
  transform: translateX(6px);
  box-shadow: 0 10px 22px rgba(13,79,163,.15);
  transition: .3s;
}

/* Stagger animation delay */
.service-list li:nth-child(1){ animation-delay:.05s; }
.service-list li:nth-child(2){ animation-delay:.1s; }
.service-list li:nth-child(3){ animation-delay:.15s; }
.service-list li:nth-child(4){ animation-delay:.2s; }
.service-list li:nth-child(5){ animation-delay:.25s; }
.service-list li:nth-child(6){ animation-delay:.3s; }
.service-list li:nth-child(7){ animation-delay:.35s; }
.service-list li:nth-child(8){ animation-delay:.4s; }

/* ================= ANIMATIONS ================= */
@keyframes fadeSlideUp{
  from{
    opacity: 0;
    transform: translateY(12px);
  }
  to{
    opacity: 1;
    transform: translateY(0);
  }
}

/* ================= MOBILE OPTIMIZATION ================= */
@media (max-width:576px){

  .modal-dialog{
    margin: 12px;
  }

  .modal-body{
    padding: 22px 20px;
  }

  .service-list li{
    font-size: .92rem;
    padding: 12px 14px 12px 42px;
  }
}
.read-more-btn{
  cursor: pointer;
}
:root{
  --blue-dark:#0b2a4a;
  --blue:#0d4fa3;
  --red:#e53935;
}

/* SECTION */
.vm-card-section{
  background:#f5fbff;
  padding:80px 20px;
}

/* GRID */
.vm-card-grid{
  max-width:1100px;
  margin:auto;
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(320px,1fr));
  gap:40px;
}

/* CARD */
.vm-card{
  background:#fff;
  border-radius:18px;
  padding:40px 35px;
  position:relative;
  box-shadow:0 20px 40px rgba(11,42,74,.12);
  transition:.35s ease;
}

.vm-card:hover{
  transform:translateY(-8px);
  box-shadow:0 30px 60px rgba(11,42,74,.2);
}

/* TOP ACCENT */
.vm-card::before{
  content:"";
  position:absolute;
  top:0;
  left:0;
  right:0;
  height:6px;
  border-radius:18px 18px 0 0;
  background:linear-gradient(90deg,var(--blue),var(--red));
}

/* ICON */
.vm-icon{
  width:72px;
  height:72px;
  border-radius:50%;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:28px;
  margin-bottom:20px;
  color:#fff;
}

/* ICON COLORS */
.vision-card .vm-icon{
  background:linear-gradient(135deg,var(--blue),var(--blue-dark));
}

.mission-card .vm-icon{
  background:linear-gradient(135deg,var(--red),#ff6b6b);
}

/* TITLE */
.vm-card h3{
  font-size:22px;
  font-weight:700;
  color:var(--blue-dark);
  margin-bottom:12px;
}

/* TEXT */
.vm-card p{
  font-size:15.5px;
  line-height:1.7;
  color:#555;
}


