/* ------------------------
   BASE LAYOUT
------------------------- */
.concept-widget .cw-body {
  display: grid;
  grid-template-columns: 1fr 1.6fr 1fr;
  gap: 30px;
}

.concept-widget .cw-tabs{
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.concept-widget .cw-tabs .cw-tab-wrapper,
.concept-widget .cw-body .cw-tabs-right .cw-tab-wrapper {
  padding: 30px!important;
  background: #0B1222;
  border: 0;
  border-radius: 24px;
  cursor: pointer;
}

.concept-widget .cw-tab{
  text-align: left;
  font-weight: 400;
  font-size: 30px;
  line-height: 40px;
  color: #FAFAFA;
}
.concept-widget .cw-tab-wrapper.active{
  background: linear-gradient(90deg, #531A8B 0%, #223368 50%, #4050D0 100%)!important;
}
.concept-widget .cw-tab-wrapper.active .cw-tab{
  background: linear-gradient(270deg, #155DFC 0%, #00B8DB 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
}
.concept-widget .cw-tab-wrapper::before{
  content: '';
  position: absolute;
  top: 1px;
  left: 1px;
  width: calc(100% - 2px);
  height: calc(100% - 2px);
  border-radius: 24px;
  background-color: #020618;
}

.concept-widget .cw-content-panel {
  background: rgba(255, 255, 255, 0.05);
  padding: 10px;
  border-radius: 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.concept-widget .cw-panel-img {
  width: 100%;
  border-radius: 20px;
  display: block;
  position: relative;
}

/* INNER CARD */
.concept-widget .cw-content-inner {
  width: 100%;
  overflow: hidden;
}


/* TEXT AREA INSIDE CARD */
.concept-widget .cw-panel-content {
  padding-top: 20px;
}

.concept-widget .cw-panel-title {
  font-weight: 400;
  font-size: 34px;
  line-height: 43px;
  color: #FAFAFA;
}

.concept-widget .cw-panel-text {
  font-weight: 400;
  font-size: 16px;
  line-height: 23px;
  letter-spacing: 0%;
  color: #90A1B9;
  margin-top: 10px;
}

/* ------------------------
   DESKTOP
------------------------- */
@media (min-width: 1025px) {
  .concept-widget .cw-tabs-tablet {
    display: none !important;
  }

  .concept-widget .cw-content-panel {
    position: relative;
    overflow: hidden;
    padding: 0;
    /* remove padding for full bleed effect */
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    background: url('../img/concept-art-panel-bg.svg');
    background-size: cover;
    background-repeat: no-repeat;
  }
  .concept-widget .cw-content-panel::before{
    background: url('../img/above-line-desktop.svg');
    background-repeat: no-repeat;
    content: '';
    position: absolute;
    top: 10px;
    width: 200px;
    height: 1px;
    z-index: 1;
    background-position: center center;
  }

  .concept-widget .cw-content-panel::after{
    background: url('../img/below-line-desktop.svg');
    background-repeat: no-repeat;
    content: '';
    position: absolute;
    bottom: 10px;
    width: 400px;
    height: 1px;
    z-index: 1;
    left: 10px;
  }

  /* Image becomes background */
  .concept-widget .cw-content-panel .cw-panel-img {
    position: absolute;
    top: 10px;
    left: 10px;
    width: calc(100% - 20px);
    height: calc(100% - 20px);
    object-fit: cover;
    border-radius: 26px;
    z-index: 1;
  }

  /* Gradient overlay at bottom */
  .concept-widget .cw-panel-content {
    position: relative;
    z-index: 2;
    width: 100%;
    padding: 25px;
    background: transparent;
    border-radius: 0 0 20px 20px;
  }

}

/* ------------------------
   TABLET
------------------------- */
@media (max-width: 1024px) and (min-width: 769px) {

  .concept-widget .cw-body {
    grid-template-columns: 300px 1fr;
  }

  .concept-widget .cw-tabs-left,
  .concept-widget .cw-tabs-right {
    display: none !important;
  }

  .concept-widget .cw-tabs-tablet {
    display: flex !important;
    flex-direction: column;
    gap: 14px;
  }
  .concept-widget .cw-content-panel {
    position: relative;
    overflow: hidden;
    /* remove padding for full bleed effect */
    height: 100%;
    display: flex;
    flex-direction: column;
    background: url('../img/concept-art-tab-bg.svg');
    background-size: cover;
    background-repeat: no-repeat;
  }
  .concept-widget .cw-content-inner img::after{
    background: url('../img/below-line-desktop.svg');
    background-repeat: no-repeat;
    content: '';
    position: absolute;
    bottom: 0;
    width: 400px;
    height: 1px;
    z-index: 1;
    background-position: center center;
  }
}

/* ------------------------
   MOBILE
------------------------- */
@media (max-width: 768px) {
  .concept-widget .cw-body {
    display: none !important;
  }

  .concept-widget .cw-accordion {
    display: flex !important;
    flex-direction: column;
    gap: 20px;
  }


  .concept-widget .cw-acc-card {
    background: rgba(255, 255, 255, 0.05);
    padding: 20px;
    border-radius: 24px;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.3s ease;
  }

  .concept-widget .cw-acc-header {
    color: #FAFAFA;
    cursor: pointer;
    font-weight: 400;
    font-size: 22px;
    line-height: 28px;
    letter-spacing: 0.3px;
  }

  .concept-widget .cw-acc-body {
    display: none;
    margin-top: 12px;
  }

  .concept-widget .cw-acc-img {
    width: 100%;
    border-radius: 12px;
    margin-bottom: 10px;
  }

  .concept-widget .cw-acc-text {
    font-weight: 400;
    font-size: 18px;
    line-height: 28px;
    letter-spacing: -0.003em;
    color: #90A1B9;
  }

  /* highlight when open */
  .concept-widget .cw-acc-card.open {
    border: 1px solid #FAFAFA14;
    backdrop-filter: blur(6px);
    color: #FAFAFA05;
  }
  .concept-widget .cw-acc-card.open::before{
    content: '';
    position: absolute;
    top: 0;
    left: 20%;
    right: 40%;
    width: 227px;
    height: 1px;
    background: url('../img/above-line-desktop.svg');
    border-radius: 20px;
    z-index: -1;
  }

  .concept-widget .cw-acc-card.open{
    background: url('../img/gradient-down-cw.svg');
    background-repeat: no-repeat;
    background-size: cover;
    background-position: bottom left;
  }

  .concept-widget .cw-acc-card.open .cw-acc-header {
    background: linear-gradient(270deg, #155DFC 0%, #00B8DB 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
  }
}

.concept-widget .cw-accordion {
  display: none;
}

.concept-widget .cw-acc-btn {
  width: 100%;
  padding: 14px;
  background: rgba(255, 255, 255, 0.1);
  border: 0;
  border-radius: 10px;
  cursor: pointer;
  text-align: left;
}

.concept-widget .cw-acc-content {
  display: none;
  background: rgba(255, 255, 255, 0.05);
  margin-top: 8px;
  padding: 16px;
  border-radius: 10px;
}

/* May 1 */
.concept-widget .cw-tab-wrapper {
  position: relative;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.04);
  overflow: hidden;
}

/* INNER DARK CARD */
.concept-widget .cw-tab-wrapper::after {
  content: '';
  position: absolute;
  border-radius: 22px;
  z-index: 0;
  background: url('../img/concept-art-gradient.svg');
  bottom: 0;
  background-size: cover;
  right: 0;
  width: 100%;
  height: 100%;
}

/* CONTENT ABOVE EFFECTS */
.concept-widget .cw-tab-wrapper > * {
  position: relative;
  z-index: 2;
}