/* ======================================================
   css/style.css
   Combined styles: your original CSS blocks kept intact,
   plus minimal helper rules for preloader, sticky navbar,
   reveal animations, and scroll-to-top.
   Place at: /kdee-website/css/style.css
   ====================================================== */

.kdee-page {
  --accent:#47cff8;
  --muted:#6b7280;
  --bg:#f8fafb;
  --card:#ffffff;
  --radius:16px;
  --container: var(--max-content, 1600px);
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  color:#0f1724;
  background:linear-gradient(180deg,#fbfdff 0%, #f3f7f9 100%);
}

.kdee-page * { box-sizing:border-box; }
.kdee-wrap { max-width:var(--container); margin:0 auto; padding:28px; }

/* ---------- ABOUT SECTION ---------- */
.about {
  position: relative;
  padding: 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 60px;
  overflow: hidden;
  isolation: isolate;
}

/* ---------- TEXT ---------- */
.about-text { flex: 1; z-index: 2; }
.about-text h4 {
  font-size: 0.95em;
  letter-spacing: 2px;
  color: #23A6DD;
  text-transform: uppercase;
  margin-bottom: 10px;
  font-weight: 700;
}
.accent-line {
  width: 70px;
  height: 3px;
  background: linear-gradient(90deg, #00b894, #ffb300);
  border-radius: 2px;
  margin-bottom: 14px;
}
.about-text h2 {
  font-size: 1.8em;
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: 18px;
  background: linear-gradient(90deg, #00b894, #f39c12, #ffee58);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.about-text p {
  color: #555;
  font-size: 1.05em;
  line-height: 1.75;
  margin-bottom: 14px;
  max-width: 520px;
}
.about-nav {
  display: flex;
  gap: 12px;
  margin-left: -35px;
  padding-left: 0;
  margin-bottom: 20px;
  margin-top: 10px;
  flex-wrap: wrap;
  width: auto !important;
  max-width: none !important;
  justify-content: flex-start !important;
}
.about-nav a {
  color: #23A6DD;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: all 0.3s ease;
}
.about-nav a:hover, .about-nav a:focus-visible {
  color: #00b894;
  border-color: #00b894;
  transform: translateY(-2px);
}
.know-more {
  display: inline-block;
  font-weight: 600;
  color: #23A6DD;
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: color 0.3s ease, transform 0.3s ease;
}
.know-more:hover, .know-more:focus-visible {
  color: #00b894;
  border-color: #00b894;
  transform: translateX(4px);
}

/* ---------- IMAGES ---------- */
.about-images {
  flex: 1;
  position: relative;
  min-height: 360px;
  display: grid; /* Changed to grid */
  grid-template-columns: repeat(2, 1fr); /* Two columns */
  gap: 20px; /* Gap between images */
  align-items: center; /* Center items vertically */
  justify-items: center; /* Center items horizontally */
}
.about-images img {
  position: static; /* Changed from absolute for grid layout */
  width: 100%; /* Make images fill their grid area */
  max-width: 250px; /* Control max width for better aesthetic */
  height: 160px; /* Fixed height for consistency */
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.12);
  transition: transform 0.5s ease, box-shadow 0.3s ease;
  object-fit: cover;
  border: 4px solid #fff;
  transform: none !important; /* Reset any default rotations/transforms */
}
.about-images img:hover {
  transform: scale(1.03);
  box-shadow: 0 15px 40px rgba(0,0,0,0.18);
}
/* Removed individual img1, img2 positioning as they are now in a grid */
.image-glow {
  position: absolute;
  inset: 0;
  border-radius: 25px;
  background: linear-gradient(120deg, rgba(0,184,148,0.12), rgba(255,179,0,0.08));
  filter: blur(50px);
  animation: pulse 6s infinite alternate;
  z-index: 0;
}
@keyframes pulse {
  0% { opacity: 0.25; transform: scale(1); }
  100% { opacity: 0.45; transform: scale(1.05); }
}

/* ---------- SECTIONS ---------- */
.kdee-section { margin-top: 60px; }
.kdee-section-header { display:flex; justify-content:space-between; align-items:end; flex-wrap:wrap; gap:10px; }
.kdee-section-header h2 { margin:0; font-size:22px; }
.kdee-gradient-text {
  background: linear-gradient(90deg,#00b894, #f39c12, #ffee58);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight:700;
  display: inline-block;
}

/* --- Responsive Adjustments --- */

/* For screens smaller than 992px (typical for tablets and smaller desktops) */
@media (max-width: 768px) {
  .about {
    flex-direction: column; /* Stack text and images vertically */
    gap: 40px; /* Reduce gap */
    padding: 15px; /* Adjust padding */
  }

  .about-text {
    text-align: center; /* Center align text */
  }

  .about-text h2 {
    font-size: 1.6em; /* Slightly reduce heading size */
  }

  .about-text p {
    max-width: 100%; /* Allow paragraphs to take full width */
  }

  .accent-line {
    margin-left: auto;
    margin-right: auto; /* Center the accent line */
  }

  .about-nav {
    justify-content: center; /* Center nav links */
    margin-left: 0; /* Remove negative margin */
  }

  .know-more {
    margin-top: 15px; /* Add some space above the button */
  }

  .about-images {
    min-height: auto; /* Allow height to adjust based on content */
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); /* Adjust grid for images */
    gap: 15px; /* Smaller gap between images */
  }

  .about-images img {
    max-width: 100%; /* Ensure images don't overflow */
    height: 120px; /* Reduce image height */
  }

  .image-glow {
    filter: blur(30px); /* Reduce blur effect */
  }
}

/* For screens smaller than 768px (typical for larger phones) */
@media (max-width: 768px) {
  .kdee-wrap {
    padding: 15px; /* Reduce overall wrapper padding */
  }

  .about-text h4 {
    font-size: 0.9em;
  }

  .about-text h2 {
    font-size: 1.4em; /* Further reduce heading size */
  }

  .about-text p {
    font-size: 1em; /* Adjust paragraph font size */
  }

  .about-nav {
    flex-direction: column; /* Stack nav links vertically */
    align-items: center; /* Center stacked nav links */
    gap: 8px; /* Reduce gap between stacked links */
  }

  .about-images {
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); /* Adjust grid for images on smaller screens */
    gap: 10px;
  }

  .about-images img {
    height: 100px; /* Further reduce image height */
    border-radius: 15px; /* Slightly smaller border-radius */
  }
}

/* For screens smaller than 480px (typical for most phones) */
@media (max-width: 480px) {
  .about {
    padding: 10px;
    gap: 30px;
  }

  .about-text h2 {
    font-size: 1.2em; /* Even smaller heading size */
    margin-bottom: 15px;
  }

  .about-text p {
    font-size: 0.9em;
    line-height: 1.6;
  }

  .about-nav {
    gap: 6px;
  }

  .know-more {
    font-size: 0.9em;
  }

  .about-images {
    grid-template-columns: 1fr; /* Stack images in a single column */
    gap: 10px;
  }

  .about-images img {
    height: auto; /* Auto height to maintain aspect ratio in single column */
    max-width: 250px; /* Limit individual image width for better appearance */
    margin: 0 auto; /* Center individual images when stacked */
  }
}

   /*--------------------------------------------------/About us----------------------------------------------*/
     
   
  .kd-global-reach-isolated {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 80px 20px;
    background-color: #fff;
    color: #333;
    line-height: 1.6;
    text-align: center;
}
.kd-global-reach-isolated .container {
    max-width: var(--max-content, 1600px);
    margin: 0 auto;
    padding: 0 20px;
}
.kd-global-reach-isolated .section-header { margin-bottom: 60px; }
.kd-global-reach-isolated .section-title {
    font-size: 2em;
    font-weight: bold;
    color: #23A6DD;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}
.kd-global-reach-isolated .section-title .slash {
    font-size: 0.9em;
    font-weight: normal;
    background: linear-gradient(90deg,#00b894, #f39c12, #ffee58);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
}
.kd-global-reach-isolated .section-description {
    font-size: 1em;
    max-width: 850px;
    margin: 0 auto 50px auto;
    color: #555;
    line-height: 1.5;
}
.kd-global-reach-isolated .stats-grid {
    display: grid;
   /* grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));*/
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-top: 40px;
}
.kd-global-reach-isolated .stat-item { text-align: center; }
.kd-global-reach-isolated .stat-value {
    font-size: 2.2em;
    font-weight: bold;
    color: #23A6DD;
    margin: 0 0 5px 0;
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 5px;
}
.kd-global-reach-isolated .stat-value .slash {
    font-size: 0.8em;
    font-weight: normal;
    background: linear-gradient(90deg,#00b894, #f39c12, #ffee58);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
}
.kd-global-reach-isolated .stat-label {
    font-size: 1.05em;
    font-weight: normal;
    margin: 0;
    color: #555;
}

@media (max-width: 768px) {
    .kd-global-reach-isolated { padding: 60px 15px; }
    .kd-global-reach-isolated .section-title { font-size: 2em; }
    .kd-global-reach-isolated .section-description {
        font-size: 1.1em;
        margin-bottom: 40px;
    }
    .kd-global-reach-isolated .stat-value { font-size: 1.8em; }
    .kd-global-reach-isolated .stat-label { font-size: 0.95em; }
}

@media (max-width: 480px) {
    .kd-global-reach-isolated { padding: 40px 10px; }
    .kd-global-reach-isolated .section-title { font-size: 1.7em; }
    .kd-global-reach-isolated .section-description {
        font-size: 1em;
        margin-bottom: 30px;
    }
    .kd-global-reach-isolated .stats-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    .kd-global-reach-isolated .stat-value { font-size: 1.6em; }
    .kd-global-reach-isolated .stat-label { font-size: 0.9em; }
}
/*----------------company at glance------------------------------------------*/        

.kd-journey-section-isolated {
    font-family: 'Open Sans', Arial, sans-serif;
    margin: 0;
    padding: 15px 10px 20px;
    background-color: #f8f8f8;
    color: #333;
    line-height: 1.6;
    text-align: center;
}
.kd-journey-section-isolated .container {
    max-width: var(--max-dense, 1160px);
    margin: 0 auto;
    padding: 0 5px;
}
.kd-journey-section-isolated .journey-header {
    margin-bottom: 20px;
    text-align: center;
    max-width: var(--max-dense, 1160px);
    margin-left: auto;
    margin-right: auto;
}
.kd-journey-section-isolated .section-title {
    font-size: 2em;
    font-weight: 600;
    color: #23A6DD;
    margin-bottom: 20px;
    line-height: 1.2;
}
/*.kd-journey-section-isolated .section-title .slash {
    background: linear-gradient(90deg,#00b894, #f39c12, #ffee58);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
    margin-right: 5px;
}*/
.kd-journey-section-isolated .section-description {
    font-size: 1em;
    color: #555;
    line-height: 1.6;
    margin-bottom: 30px;
}
.kd-journey-section-isolated .legacy-text {
    font-size: 1.05em;
    color: #555;
    line-height: 1.6;
    margin-bottom: 40px;
}
.kd-journey-section-isolated .branding-details {
    text-align: left;
    font-size: 0.95em;
    color: #777;
    line-height: 1.4;
    margin-left: 20px;
    margin-bottom: 30px;
}
.kd-journey-section-isolated .highlight-year {
    font-size: 2.5em;
    font-weight: 700;
    background: linear-gradient(90deg,#00b894, #f39c12, #ffee58);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-align: left;
    margin-left: 20px;
    margin-top: 10px;
    margin-bottom: 60px;
}
.kd-journey-section-isolated .timeline-area {
    position: relative;
    padding: 0 50px;
    margin-bottom: 40px;
}
.kd-journey-section-isolated .timeline-scroll-container {
    display: flex;
    overflow-x: auto;
    scroll-behavior: smooth;
    -ms-overflow-style: none;
    scrollbar-width: none;
    padding: 70px 0;
    position: relative;
}
.kd-journey-section-isolated .timeline-scroll-container::-webkit-scrollbar { display: none; }
.kd-journey-section-isolated .timeline-line {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 2px;
    background-color: #ddd;
    z-index: 0;
}
.kd-journey-section-isolated .timeline-progress-line {
    position: absolute;
    top: 50%;
    left: 0;
    height: 2px;
    background-color: #23A6DD;
    z-index: 1;
    width: 0;
    transition: width 0.3s ease-out;
}
.kd-journey-section-isolated .timeline-item {
    flex: 0 0 250px;
    text-align: center;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0 15px;
    box-sizing: border-box;
    z-index: 2;
}
.kd-journey-section-isolated .timeline-item:first-child { margin-left: calc(50% - 125px); }
.kd-journey-section-isolated .timeline-item:last-child { margin-right: calc(50% - 125px); }
.kd-journey-section-isolated .timeline-dot {
    position: absolute;
    width: 14px;
    height: 14px;
    background-color: #23A6DD;
    border-radius: 50%;
    top: calc(50% - 7px);
    left: 50%;
    transform: translateX(-50%);
    border: 3px solid #f8f8f8;
    z-index: 3;
}
.kd-journey-section-isolated .timeline-year,
.kd-journey-section-isolated .timeline-description {
    position: relative;
    z-index: 3;
    white-space: nowrap;
    text-align: center;
}
.kd-journey-section-isolated .timeline-year {
    font-size: 2.2em;
    font-weight: 700;
    background: linear-gradient(90deg,#00b894, #f39c12, #ffee58);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.kd-journey-section-isolated .timeline-description {
    font-size: 0.9em;
    color: #777;
    margin-top: 0;
    line-height: 1.4;
}
.kd-journey-section-isolated .timeline-icon {
    width: 60px;
    height: 60px;
    fill: #23A6DD;
    position: relative;
    z-index: 3;
}
.kd-journey-section-isolated .timeline-icon svg {
    stroke: #fff;
    stroke-width: 2;
    width: 100%;
    height: 100%;
    fill: inherit;
}
.kd-journey-section-isolated .timeline-item:nth-child(odd) {
    flex-direction: column;
    padding-top: 70px;
    padding-bottom: 0;
}
.kd-journey-section-isolated .timeline-item:nth-child(odd) .timeline-year {
    margin-top: 0;
    margin-bottom: 15px;
}
.kd-journey-section-isolated .timeline-item:nth-child(odd) .timeline-icon {
    margin-top: 5px;
    margin-bottom: 10px;
}
.kd-journey-section-isolated .timeline-item:nth-child(even) {
    flex-direction: column-reverse;
    padding-bottom: 60px;
    padding-top: 0;
}
.kd-journey-section-isolated .timeline-item:nth-child(even) .timeline-year {
    margin-bottom: 10px;
    margin-top: 5px;
}
.kd-journey-section-isolated .timeline-item:nth-child(even) .timeline-icon {
    margin-bottom: 5px;
    margin-top: 0;
}
.kd-journey-section-isolated .timeline-nav-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    z-index: 10;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}
.kd-journey-section-isolated .timeline-nav-arrow:hover {
    background-color: #e9e9e9;
    border-color: #ccc;
}
.kd-journey-section-isolated .timeline-nav-arrow svg {
    width: 20px;
    height: 20px;
    fill: #666;
}
.kd-journey-section-isolated .arrow-left {
    left: 0;
    margin-left: -20px;
}
.kd-journey-section-isolated .arrow-right {
    right: 0;
    margin-right: -20px;
}
.kd-journey-section-isolated .timeline-progress-dots {
    display: flex;
    justify-content: center;
    margin-top: 30px;
    gap: 8px;
    position: relative;
    z-index: 1;
}
.kd-journey-section-isolated .progress-dot {
    width: 10px;
    height: 10px;
    background-color: #ccc;
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.3s ease;
}
.kd-journey-section-isolated .progress-dot.active { background-color: #23A6DD; }

@media (max-width: 992px) {
    .kd-journey-section-isolated .journey-header { text-align: center; }
    .kd-journey-section-isolated .branding-details,
    .kd-journey-section-isolated .highlight-year {
        text-align: center;
        margin-left: auto;
        margin-right: auto;
    }
    .kd-journey-section-isolated .section-title { font-size: 2.4em; }
    .kd-journey-section-isolated .section-description { font-size: 1em; }
    .kd-journey-section-isolated .timeline-nav-arrow {
        width: 35px;
        height: 35px;
        margin-left: -17px;
        margin-right: -17px;
    }
    .kd-journey-section-isolated .timeline-nav-arrow svg {
        width: 18px;
        height: 18px;
    }
}
@media (max-width: 768px) {
    .kd-journey-section-isolated { padding: 60px 15px 30px; }
    .kd-journey-section-isolated .section-title { font-size: 2em; }
    .kd-journey-section-isolated .timeline-item { flex: 0 0 180px; }
    .kd-journey-section-isolated .timeline-item:first-child { margin-left: calc(50% - 90px); }
    .kd-journey-section-isolated .timeline-item:last-child { margin-right: calc(50% - 90px); }
    .kd-journey-section-isolated .timeline-year { font-size: 1.8em; }
    .kd-journey-section-isolated .timeline-icon {
        width: 45px;
        height: 45px;
    }
    .kd-journey-section-isolated .timeline-description { font-size: 0.8em; }
    .kd-journey-section-isolated .timeline-scroll-container { padding: 60px 0; }
    .kd-journey-section-isolated .timeline-dot { top: calc(50% - 7px); }
    .kd-journey-section-isolated .timeline-area { padding: 0 10px; }
}
@media (max-width: 480px) {
    .kd-journey-section-isolated { padding: 40px 10px 20px; }
    .kd-journey-section-isolated .section-title { font-size: 1.7em; }
    .kd-journey-section-isolated .timeline-item:first-child { margin-left: calc(50% - 90px); }
    .kd-journey-section-isolated .timeline-item:last-child { margin-right: calc(50% - 90px); }
    .kd-journey-section-isolated .timeline-nav-arrow { display: none; }
    .kd-journey-section-isolated .timeline-progress-dots { display: none; }
}

/*-------------------------------------------------journey------------------------------*/
.container {
    max-width: var(--max-content, 1600px);
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}
.kd-informatic-section-isolated {
    padding: 80px 20px;
    background-color: #ffffff;
    color: #333;
    line-height: 1.6;
}
.kd-informatic-section-isolated .info-block {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 80px;
    gap: 40px;
}
.kd-informatic-section-isolated .info-block:last-child { margin-bottom: 0; }
.kd-informatic-section-isolated .info-block-content {
    flex: 1;
    text-align: left;
    max-width: 550px;
}
.kd-informatic-section-isolated .info-block-title {
    font-size: 2em;
    font-weight: 700;
    background: linear-gradient(90deg,#00b894, #f39c12, #ffee58);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 15px;
    line-height: 1.2;
}
.kd-informatic-section-isolated .info-block-description {
    font-size: 1em;
    color: #555;
    margin-bottom: 30px;
}
.kd-informatic-section-isolated .info-block-button {
    display: inline-block;
    padding: 12px 25px;
    background-color: #23A6DD;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    transition: background-color 0.3s ease;
}
.kd-informatic-section-isolated .info-block-button:hover { background-color: #23A6DD; }
.kd-informatic-section-isolated .info-block-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    min-width: 400px;
}
.kd-informatic-section-isolated .image-placeholder {
    width: 100%;
    max-width: 550px;
    height: 350px;
    background-color: #e0e0e0;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    font-size: 1.1em;
    font-weight: 600;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}
.kd-informatic-section-isolated .image-placeholder.green-gradient {
    background: linear-gradient(135deg, #23A6DD 0%, #0da3e4 100%);
    color: rgba(255, 255, 255, 0.8);
    position: relative;
}
.kd-informatic-section-isolated img.responsive-image {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

@media (max-width: 768px) {
    .container { padding: 0 15px; }
    .kd-informatic-section-isolated .info-block {
        flex-direction: column;
        text-align: center;
        margin-bottom: 60px;
        gap: 30px;
    }
    .kd-informatic-section-isolated .info-block-content {
        max-width: 100%;
        margin-bottom: 0;
    }
    .kd-informatic-section-isolated .info-block-image {
        min-width: unset;
        max-width: 100%;
        order: unset;
    }
    .kd-informatic-section-isolated .info-block:nth-child(2) .info-block-image { order: -1; }
    .kd-informatic-section-isolated .info-block-title { font-size: 2.2em; }
    .kd-informatic-section-isolated .info-block-description { font-size: 1em; }
}
@media (max-width: 768px) {
    .kd-informatic-section-isolated { padding: 60px 15px; }
    .kd-informatic-section-isolated .info-block-title { font-size: 2em; }
    .kd-informatic-section-isolated .info-block-button {
        padding: 10px 20px;
        font-size: 0.9em;
    }
    .kd-informatic-section-isolated .image-placeholder { height: 300px; }
}
@media (max-width: 480px) {
    .kd-informatic-section-isolated { padding: 40px 10px; }
    .kd-informatic-section-isolated .info-block-title { font-size: 1.7em; }
    .kd-informatic-section-isolated .info-block-description { font-size: 0.9em; }
    .kd-informatic-section-isolated .image-placeholder { height: 250px; }
}
/*-------------------------------------------------informatic--------------------------------------*/
.kd-services-section-isolated .container {
        max-width: var(--max-container, 1240px);
        margin: 0 auto;
        padding: 40px 10px 80px;
        /*padding: 10 100px;*/
    }


/* Ensure the overall section-header aligns content to the left */
.kd-services-section-isolated .section-header {
    margin-bottom: 60px;
    text-align: left; /* Keep this for description text */
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    /* Remove any flex properties from section-header if they were added.
       It should primarily act as a container for left-aligned text blocks. */
    display: block; /* Ensure it behaves as a block */
}

.kd-services-section-isolated .section-title {
    font-size: 2em;
    font-weight: bold;
    color: #23A6DD;
    /* margin-bottom will be handled by the line's spacing or a combined bottom margin */
    margin-bottom: 20px; /* Keep initial margin-bottom for space below the H2 */
    line-height: 1.2;
    display: flex; /* Make the H2 itself a flex container */
    align-items: center; /* Vertically center the text and the line */
    gap: 15px; /* Space between the title text and the line */
    /* Remove width: fit-content and auto margins here.
       The H2 will now naturally expand to its parent's width. */
    position: relative; /* Keep this for positioning the ::after */
    padding-bottom: 0; /* No padding needed here for the line */
    text-align: left; /* Ensure the text within the flex container is left-aligned */
}

.kd-services-section-isolated .section-title::after {
    content: ''; /* Required for pseudo-elements */
    display: block; /* Make it a block element */
    flex: 1; /* Allow the line to take up all remaining space */
    height: 3px; /* Thickness of the gradient line */
    background: linear-gradient(90deg, #00b894, #f39c12, #ffee58); /* Your gradient */
    border-radius: 2px;
    opacity: 0.9;
    min-width: 50px; /* Ensure a minimum width for the line */
    /* No absolute positioning needed here, it's a flex item now */
}

/* Ensure the description remains a block-level element below the title */
.kd-services-section-isolated .section-description {
    font-size: 1em;
    color: #555;
    line-height: 1.6;
    margin-bottom: 20px;
    display: block; /* Explicitly ensure it's a block */
    clear: both; /* Clear any floats if that was an issue */
}

/* --- Media Query for Centering (Adjusted) --- 
@media (max-width: 992px) {
    .kd-services-section-isolated .section-header {
        text-align: center; /* Center for the description etc. 
    }
    .kd-services-section-isolated .section-title {
        /* To center the flex H2 itself within the text-align:center parent: 
        justify-content: center; /* Center the items within the flex H2 
        margin-left: auto; /* Center the H2 block itself 
        margin-right: auto; /* Center the H2 block itself 
        width: fit-content; /* Make the H2 only as wide as its content (text + line) 
        text-align: center; /* Center the text inside the H2 if it wraps 
    }
     .kd-services-section-isolated .section-title::after {
        min-width: 30px; /* Reduce minimum line width for smaller screens 
        flex-grow: 0;   /* Prevent it from growing too much when centered 
        width: 50px; /* Fixed width when centered to prevent excessive length 
    }
}*/

@media (max-width: 768px) {
    .kd-services-section-isolated .section-title {
        gap: 10px; /* Smaller gap on mobile */
    }
     .kd-services-section-isolated .section-title::after {
        min-width: 20px; /* Even smaller min width*/ 
        width: 30px; /* Fixed width when centered */
    }
}


   /* .kd-services-section-isolated .section-header {
        margin-bottom: 60px;
        text-align: left; 
        max-width: 900px; 
        margin-left: auto;
        margin-right: auto;

        
    }

    .kd-services-section-isolated .section-title {
        font-size: 2em;
        font-weight: bold; 
        color: #23A6DD; 
        margin-bottom: 20px;
        line-height: 1.2;
    }*/

   


    /*.kd-services-section-isolated .section-title .slash {
       
         background: linear-gradient(90deg,#00b894, #f39c12, #ffee58);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
        color: transparent; 
        margin-right: 1px;
    }*/

    .kd-services-section-isolated .section-description {
        font-size: 1em;
        color: #555;
        line-height: 1.6;
        margin-bottom: 20px;
        
    }

    .kd-services-section-isolated .services-grid {

        display: grid;
        grid-template-columns: repeat(5, 1fr);
        gap: 20px;
        /*display: flex;
        grid-template-columns: repeat(5, minmax(180px, 1fr))!important; Explicit 5 columns */
        gap: 8px;
        justify-content: center;
        /*min-width: 1600px;  Minimum width for horizontal layout 
        overflow-x: auto;  Allow horizontal scrolling */
        padding-bottom: 10px; /* Space for scrollbar */
    }

    .kd-services-section-isolated .service-card {
        background-color: #fff;
        border-radius: 8px;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
        overflow: hidden;
        height: 280px;
        perspective: 900px;
        width: 180px;
        /*max-width: 250px;  Keep cards from becoming too wide */
    }

    .kd-services-section-isolated .card-inner {
        width: 100%;
        height: 100%;
        transition: transform 0.6s;
        transform-style: preserve-3d;
        position: relative;
    }

    .kd-services-section-isolated .service-card:hover .card-inner {
        transform: rotateY(180deg);
    }

    .kd-services-section-isolated .card-front,
    .kd-services-section-isolated .card-back {
        position: absolute;
        width: 100%;
        height: 100%;
        -webkit-backface-visibility: hidden;
        backface-visibility: hidden;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding: 4px;
        box-sizing: border-box;
        text-align: center;
    }

    .kd-services-section-isolated .card-front {
        background-color: #fff;
        z-index: 2;
    }

    .kd-services-section-isolated .card-back {
        background-color: #f0f7f2; /* A consistent, light back color */
        transform: rotateY(180deg);
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        padding: 14px;
    }

    .kd-services-section-isolated .card-back p {
        font-size: 0.65em;
        color: #666;
        line-height: 1.5;
        margin: 0;
    }

    .kd-services-section-isolated .service-icon {
        margin-bottom: 15px;
        width: 45px;
        height: 45px;
        line-height: 45px;
    }

    /* --- SVG Icon Styles (using currentColor for easier control) --- */
    .kd-services-section-isolated .service-icon svg {
        width: 100%;
        height: 100%;
        fill: currentColor; /* Allows color to be set by parent */
    }

    /* Specific icon colors (matched to original image's accents) */
    .kd-services-section-isolated .service-card:nth-child(1) .service-icon { color: #23A6DD; } /* Green */
    .kd-services-section-isolated .service-card:nth-child(2) .service-icon { color: #23A6DD; } /* Grey */
    .kd-services-section-isolated .service-card:nth-child(3) .service-icon { color: #23A6DD; } /* Blue */
    .kd-services-section-isolated .service-card:nth-child(4) .service-icon { color: #23A6DD; } /* Grey */
    .kd-services-section-isolated .service-card:nth-child(5) .service-icon { color: #23A6DD; } /* Yellow */


    .kd-services-section-isolated .service-name {
        font-size: 1.3em;
        font-weight: 250;
        color: #333;
        margin-bottom: 25px;


    }

    .kd-services-section-isolated .more-details-btn {
        display: inline-flex;
        align-items: center;
        padding: 8px 15px;
        border-radius: 5px;
        text-decoration: none;
        color: green;
        font-weight: 400; /* Slightly less bold than title */
        transition: all 0.3s ease; /* Smooth transition for hover effects */
        font-size: 0.95em;
        position: absolute;
        bottom: 15px;
        left: 50%;
        transform: translateX(-50%);
        white-space: nowrap;
        /* Gradient Background for buttons - Matching original image */
        background: linear-gradient(to right, #28a745, #1d963c); /* Default green gradient */
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2); /* Subtle shadow for depth */
    }

    .kd-services-section-isolated .more-details-btn:hover {
        transform: translateX(-50%) translateY(-3px) scale(1.02); /* Slight lift and scale */
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3); /* Enhanced shadow on hover */
    }

    .kd-services-section-isolated .more-details-btn svg {
        margin-left: 10px;
        height: 8px;
        width: 8px;
        fill: currentColor;
        transition: transform 0.3s ease;
    }

    .kd-services-section-isolated .more-details-btn:hover svg {
        transform: translateX(3px);
    }

    /* Specific Button Gradients - Matching original image's accents */
    .kd-services-section-isolated .service-card:nth-child(1) .more-details-btn { background: #fff;  } /* Green */
    .kd-services-section-isolated .service-card:nth-child(2) .more-details-btn { background: #fff;  } /* Grey */
    .kd-services-section-isolated .service-card:nth-child(3) .more-details-btn { background: #fff; } /* Blue */
    .kd-services-section-isolated .service-card:nth-child(4) .more-details-btn { background: #fff; } /* Grey - assuming same as second */
    .kd-services-section-isolated .service-card:nth-child(5) .more-details-btn { background: #fff; } /* Yellow/Orange */


    /* Responsive Adjustments 
    @media (max-width: 1250px) {
        .kd-services-section-isolated .services-grid {
          
            grid-template-columns: repeat(3, 1fr);
            min-width: unset; 
            overflow-x: hidden; 
        }
    }*/  /* grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));  Allow wrapping */
   /* @media (max-width: 992px) {

        .services-grid {
        grid-template-columns: repeat(3, 1fr);
        }

        .kd-services-section-isolated .section-title {
            font-size: 2.4em;
        }
        .kd-services-section-isolated .section-header {
            text-align: center;
        }
        .kd-services-section-isolated .services-grid {
            flex-wrap: wrap; 
            gap: 20px; 
        }
        .kd-services-section-isolated .service-card {
            width: calc(50% - 10px); 
        }
    }*/

    @media (max-width: 768px) {
        .kd-services-section-isolated {
            padding: 60px 15px 70px;
        }
        .kd-services-section-isolated .section-title {
            font-size: 2em;
        }
        .kd-services-section-isolated .section-description {
            font-size: 1em;
        }
        .kd-services-section-isolated .services-grid {
            /*grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));*/
            grid-template-columns: repeat(2, 1fr);
            gap: 25px;
        }
        .kd-services-section-isolated .service-card {
            width: 100%; /* Full width on smaller screens */
            max-width: 300px; /* Optional: cap max width for very wide phones */
            margin: 0 auto; /* Center cards */
        }
    }

    @media (max-width: 480px) {
        .kd-services-section-isolated {
            padding: 40px 10px 50px;
        }
        .kd-services-section-isolated .section-title {
            font-size: 1.7em;
        }
        .kd-services-section-isolated .section-description {
            font-size: 0.95em;
        }
        .kd-services-section-isolated .services-grid {
            grid-template-columns: 1fr;
            gap: 20px;
        }
        .kd-services-section-isolated .service-card {
             width: 100%; /* Ensure full width on very small screens */
        }
        .kd-services-section-isolated .more-details-btn {
            padding: 10px 20px;
            font-size: 0.9em;
        }
    }

    


/*------------------------------------------services---------------------------------------*/

/* Enterprise responsive grid baseline for KD pages */
@media (min-width: 901px) {
  .kd-services-section-isolated .container {
    max-width: var(--max-container, 1240px);
  }

  .kd-services-section-isolated .services-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 20px;
  }

  .kd-services-section-isolated .service-card {
    width: 100%;
    max-width: none;
    min-width: 0;
  }
}

@media (min-width: 769px) and (max-width: 900px) {
  .kd-services-section-isolated .services-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
  }

  .kd-services-section-isolated .service-card {
    width: 100%;
    max-width: none;
  }
}

@media (max-width: 768px) {
  .kd-services-section-isolated .services-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
  }

  .kd-services-section-isolated .service-card {
    width: 100%;
    max-width: none;
  }
}

@media (max-width: 480px) {
  .kd-services-section-isolated .services-grid {
    grid-template-columns: 1fr;
  }
}




