/* ===========================================
   MODERN MINIMAL SERVICE CARDS (OPTION E)
   Thin Border Animation + Soft Hover Scale
=========================================== */

.services-modern {
  padding: 15px 0;
  background: #f8f9fb;
}

/* CARD WRAPPER */
.service-card {
  width: 100%;
  background: linear-gradient(308deg, #38726a, #34d2bd);
  border-radius: 18px;
  padding: 28px;
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: 0.35s ease;
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.04);
}

/* -------------------------------------------
   CLEAN MODERN HOVER
------------------------------------------- */
.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.08);
}

/* -------------------------------------------
   BORDER ANIMATION
------------------------------------------- */
.service-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 2px;
  background: linear-gradient(145deg, #505b59, #15b89a);
  transform: scale(0);
  transition: 0.5s ease;
  z-index: 0;
  pointer-events: none;
  opacity: 0;
}

.service-card:hover::before {
  transform: scale(1);
  opacity: 1;
  animation: borderFlow 6s linear infinite;
  text-decoration: none;
}

/* Border gradient animation */
@keyframes borderFlow {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

/* CONTENT ABOVE BORDER */
.service-card * {
  position: relative;
  z-index: 2;
}

/* -------------------------------------------
   IMAGE WRAPPER
------------------------------------------- */
.img-wrapper {
  border-radius: 14px;
  overflow: hidden;
  position: relative;
  margin-bottom: 18px;
}

.main-img {
  width: 100%;
  height: auto;
  display: block;
  transition: 0.45s ease;
}

.service-card:hover .main-img {
  transform: scale(1.05);
}

/* -------------------------------------------
   ICON (TOP RIGHT)
------------------------------------------- */
.icon-area {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 54px;
  height: 54px;
  border-radius: 12px;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: 0.45s ease;
}

.service-card:hover .icon-area {
  transform: scale(1.15);
}

.icon-img {
  width: 70%;
  height: 70%;
  object-fit: contain;
}

/* -------------------------------------------
   TEXT
------------------------------------------- */
.service-card h5 {
  font-size: 20px;
  font-weight: 700;
  color: #ffffff;
  transition: 0.3s ease;
}

.service-card:hover h5 {
  color: #111;
  text-decoration: none;
}

.service-card p {
  color: #2e1313;
  font-size: 15px;
  margin-top: 10px;
  line-height: 1.5;
  text-decoration: none;
}

/* -------------------------------------------
   ARROW BUTTON
------------------------------------------- */
.arrow-btn {
  position: absolute;
  bottom: 12px;
  right: 16px;
  width: 44px;
  height: 44px;
  background: #ffffff;
  border-radius: 50%;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: 0.35s ease;
}

.arrow-btn:hover {
  transform: translateY(-5px) scale(1.08);
}

/* -------------------------------------------
   RESPONSIVE OPTIMIZATION
------------------------------------------- */
@media (max-width: 768px) {
  .service-card {
    padding: 22px;
  }
  .icon-area {
    width: 48px;
    height: 48px;
  }
  .service-card h5 {
    font-size: 18px;
  }
}

/* LOGO */
.logo {
  height: 55px;
  width: 90%;
  margin-left: 30px;
}

/* LOGO RESPONSIVE */
@media (max-width: 290px) {
  .logo {
    margin-left: 0px;
  }
}

/* CLEAN FLASH */
.clean-flash {
  position: relative;
  display: inline-block;
  overflow: hidden;
}

.clean-flash img {
  display: block;
  width: 100%;
}

/* Shine bar */
.clean-flash::after {
  content: "";
  position: absolute;
  top: 0;
  left: -120%;
  width: 60%;
  height: 100%;
  background: linear-gradient(
    115deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.35) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  transition: left 0.6s ease;
  pointer-events: none;
}

/* On Hover */
.clean-flash:hover::after {
  left: 130%;
}

/* Education Section */
.section-title {
  font-weight: 700;
  font-size: 28px;
}

.section-underline {
  width: 70px;
  height: 3px;
  background: #0d6efd;
  margin: 8px auto;
  border-radius: 10px;
}

/* Ribbon Card */
.ribbon-card {
  position: relative;
  background: linear-gradient(45deg, #99c9c2, #3effe382);
  padding: 20px 55px 20px 40px;
  border-radius: 12px;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.08);
  transition: 0.3s ease;
}

.ribbon-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.12);
}

/* Ribbon Strip */
.ribbon {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 12px;
  background: linear-gradient(180deg, #7b7b7b, #373737);
  border-radius: 12px 0 0 12px;
}

/* Texts */
.ribbon-content h5 {
  font-size: 20px;
  font-weight: 600;
}

.ribbon-content p {
  font-size: 15px;
  color: #444;
}

/* Mobile Fix */
@media (max-width: 575px) {
  .ribbon-card {
    padding-left: 35px;
  }

  .ribbon {
    width: 10px;
  }
}

/* Gallery */
.gallery-one__card {
  height: 533px;
  width: 800px; /* Fixed height */
  overflow: hidden;
  border-radius: 16px;
  position: relative;
}

.gallery-one__card img {
  height: 533px;
  width: 800px;
  object-fit: cover; /* Keeps image aspect ratio */
  display: block;
}
.gallery-box img {
  cursor: zoom-in;
  transition: transform 0.4s ease;
}

.gallery-box:hover img {
  transform: scale(1.05);
}
