/* Key Features Section Styles */
.key-features {
  padding: 6.521875rem 0 5.625rem; /* 104.35px 0 90px */
  position: relative;
}

.feature-card {
  /* background: rgba(55, 129, 141, 0.1); Moved to hover */
  background: rgba(55, 129, 141, 0.1);
  border-radius: 1.25rem; /* 20px */
  padding: 1.875rem; /* 30px */
  height: 100%;
  min-height: 13.375rem; /* 214px */
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  transition: all 0.3s ease;
}

/* .feature-card:hover {
    transform: translateY(-0.3125rem);
    background: rgba(55, 129, 141, 0.1);
} */

.feature-icon-wrapper {
  width: 3.75rem; /* 60px */
  height: 3.75rem; /* 60px */
  margin-bottom: 1.25rem; /* 20px */
  display: flex;
  align-items: center;
}

.feature-icon-wrapper img {
  width: 3.334rem; /* 60px */
  height: 3.625rem;
}

.feature-title {
  font-family:
    "Dubai", "Lexend", sans-serif; /* Fallback to Lexend if Dubai not loaded */
  font-style: normal;
  font-weight: 400;
  font-size: 1.375rem; /* 22px */
  line-height: 1.875rem; /* 30px */
  color: #000000;
  margin: 0;
}
.key-features .row {
  padding-right: 3.75rem;
  padding-left: 3.75rem;
}

.key-features .row > div {
  margin-top: 1.875rem;
}
/* Feature Slide Panel */
.feature-panel {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s ease-in-out;
  pointer-events: none;
}

.feature-panel.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: all;
}

.panel-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(5px);
}

.panel-content {
  position: relative;
  width: 100%;
  height: 100%;
  max-width: 1320px; /* Container width */
  margin: 0 auto;
  padding: 6.521875rem 0.75rem 5.625rem; /* Match section padding */
  display: flex;
  justify-content: center;
  align-items: center;
  transform: translateY(-100vh);
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.feature-panel.is-active .panel-content {
  transform: translateY(0);
}

.panel-body {
  display: flex;
  background: #ffffff;
  box-shadow: 0px 10px 30px rgba(0, 0, 0, 0.05);
  border-radius: 20px;
  overflow: hidden;
  width: 100%;
  max-width: 1000px; /* Limit width */
  min-height: 400px;
}

.panel-left {
  width: 45%;
  position: relative;
}

.panel-side-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.panel-right {
  width: 55%;
  padding: 3rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid #e5e5e5; /* Separator */
  padding-bottom: 1.5rem;
}

.panel-title {
  font-family: "Dubai", sans-serif;
  font-size: 2rem;
  color: #37818d;
  margin: 0;
}

.panel-icon-wrapper {
  width: 50px;
  height: 50px;
  padding: 10px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.panel-icon {
  width: 100%;
  height: auto;
}

.panel-description {
  font-family: "Dubai", sans-serif;
  font-size: 1.125rem;
  line-height: 1.6;
  color: #555;
}

.panel-close {
  position: absolute;
  top: 2rem;
  right: 2rem;
  background: none;
  border: none;
  font-size: 2.5rem;
  line-height: 1;
  color: #37818d;
  cursor: pointer;
  z-index: 20;
  transition: color 0.3s;
}

.panel-close:hover {
  color: #000;
}

/* =========================================
   Responsive Breakpoints
   ========================================= */

@media (min-width: 768px) and (max-width: 1024px) {
  .key-features {
    padding: 1.521875rem 0 0.625rem;
  }
  .key-features .col-md-6 {
    flex: 0 0 50%;
    max-width: 50%;
    padding-right: 0.9375rem; /* 15px */
    padding-left: 0.9375rem; /* 15px */
    margin-bottom: 1.5rem; /* 24px vertical gap */
  }
}

/* Small mobile devices (≤ 529px) */
@media (max-width: 529px) {
  .key-features {
    padding: 1.521875rem 0 0.625rem;
  }

  .key-features .row {
    gap: 2rem;
  }
}
