/* ======================================================
   Kratos Capabilities – HORIZONTAL ACCORDION (DESKTOP)
   ====================================================== */

/* ---------- VARIABLES ---------- */
:root {
  --bg-gradient: radial-gradient(circle at left center, #0f2e18 0%, #050805 55%);
  --green-main: #3CFF6B;
  --text-main: #ffffff;
  --text-muted: rgba(255,255,255,0.7);
  --line-color: rgba(255,255,255,0.15);
}

/* ======================================================
   MAIN WRAPPER
   ====================================================== */
.kratos-capabilities {
  position: relative;
  min-height: 600px;
  background: var(--bg-gradient);
  color: var(--text-main);
  overflow: hidden;
}

/* ======================================================
   DESKTOP ACCORDION
   ====================================================== */
.kc-accordion {
  display: flex;
  width: 100%;
  height: 100%;
  min-height: 600px;
}

/* ======================================================
   ACCORDION PANEL
   ====================================================== */
.kc-accordion-item {
  position: relative;
  display: flex;
  flex: 0 0 12%;
  transition: flex-basis 0.75s cubic-bezier(.22,.61,.36,1);
  overflow: hidden;
}

/* ACTIVE PANEL */
.kc-accordion-item.active {
  flex: 0 0 52%;
}

/* ======================================================
   TAB
   ====================================================== */
.kc-tab {
  width: 125px;
  height: 100%;
  padding: 60px 18px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  border-left: 1px solid var(--line-color);
  cursor: pointer;
  opacity: 0.45;
  transition: opacity 0.3s ease, background 0.3s ease;
}

.kc-tab span {
  font-weight: 700;
  font-size: 13px;
  line-height: 1.4;
  color: var(--text-muted);
}

/* BUTTON */
.kc-tab button {
  margin-top: 15px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1px solid var(--green-main);
  background: transparent;
  color: var(--green-main);
  position: relative;
  cursor: pointer;
}

/* PLUS / MINUS ICON */
.kc-tab button::before {
  content: '+';
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 600;
  transition: transform 0.3s ease;
}

.kc-accordion-item.active .kc-tab button::before {
  content: '−';
}

/* ACTIVE TAB */
.kc-accordion-item.active .kc-tab {
  opacity: 1;
  background: linear-gradient(to top, rgba(60,255,107,0.12), transparent);
}

.kc-accordion-item.active .kc-tab span {
  color: #ffffff;
}

.kc-accordion-item.active .kc-tab button {
  background: var(--green-main);
  color: #000;
}

/* ======================================================
   CONTENT AREA (FADE IN / OUT)
   ====================================================== */
.kc-content {
  position: absolute;
  inset: 0 0 0 120px;
  padding: 80px;
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
  transition:
    opacity 0.4s ease,
    transform 0.4s ease;
}

/* SHOW CONTENT */
.kc-accordion-item.active .kc-content {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* ======================================================
   IMAGE
   ====================================================== */
.kc-image-wrap {
  position: relative;
  margin-bottom: 20px;
}

.kc-image-wrap img {
  width: 60%;
  transform: translateX(-90px) scale(0.95);
  opacity: 0;
  transition:
    transform 0.9s cubic-bezier(.22,.61,.36,1),
    opacity 0.9s ease;
}

.kc-accordion-item.active .kc-image-wrap img {
  transform: translateX(110px) scale(1);
  opacity: 1;
}

/* GREEN RING */
.kc-image-wrap::before {
  content: '';
  position: absolute;
  width: 200px;
  height: 200px;
  border: 6px solid var(--green-main);
  border-radius: 50%;
  left: 225px;
  top: -50px;
  z-index: -1;
}

/* ======================================================
   TEXT
   ====================================================== */
.kc-text h3 {
  font-size: 30px;
  font-weight: 600;
  margin-bottom: 15px;
}

.kc-text p {
  max-width: 460px;
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-muted);
  margin-bottom: 22px;
}

/* READ MORE BUTTON */
.kc-read-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: white;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.35s ease 0.2s, transform 0.35s ease 0.2s;
}

.kc-accordion-item.active .kc-read-more {
  opacity: 1;
  transform: translateY(0);
}

.kc-read-more::after {
  content: '›';
  font-size: 18px;
}

/* ======================================================
   MOBILE (❌ UNTOUCHED)
   ====================================================== */
.kc-mobile {
  display: none;
}

@media (max-width: 991px) {

  .kc-accordion {
    display: none;
  }

  .kc-mobile {
    display: block;
    padding: 30px;
  }

  .kc-mobile-item {
    border-bottom: 1px solid var(--line-color);
  }

  .kc-mobile-title {
    display: flex;
    justify-content: space-between;
    padding: 18px 0;
    cursor: pointer;
  }

  .kc-mobile-content {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.5s ease, opacity 0.4s ease;
  }

  .kc-mobile-item.active .kc-mobile-content {
    max-height: 1000px;
    opacity: 1;
  }
}
