:root {
  --header-height: 0px;
  --bg:transparent;
  --panel: #111;
  --card: #161616;
  --border: #2a2a2a;
  --green: #47bc87;
  --muted: #b5b5b5;
}

/* MODULE */
.td-usecase-module {
  background: var(--bg);
  padding: 64px;
  color: #fff;
  font-family: system-ui, -apple-system, BlinkMacSystemFont;
}

/* TABS */
.td-tabs {
  display: flex;
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 56px;
}

.td-tab {
  flex: 1;
  padding: 16px;
  text-align: center;
  cursor: pointer;
  font-weight: 600;
  color: #fff;
}

.td-tab.active {
  background: rgba(71,188,135,0.15);
  color: var(--green);
}

/* PANELS */
.td-tab-panel { display: none; }
.td-tab-panel.active { display: block; }

/* CARDS */
.td-card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 36px;
}

.td-card {
  background: var(--card);
  border-radius: 20px;
  padding: 22px;
  transition: transform .3s ease, box-shadow .3s ease;
}

.td-card:hover {
  transform: translateY(-6px);
  box-shadow: box-shadow: 0 20px 50px rgba(80, 200, 120, 0.28);
}

.td-card img {
  width: 100%;
  border-radius: 14px;
  margin-bottom: 14px;
}

.td-card h4 {
  color: var(--green);
  margin-bottom: 14px;
  font-size: 22px;
  font-weight: bold;
}

.td-view-more {
  background: none;
  border: none;
  color: #fff;
  font-weight: 600;
  cursor: pointer;
}

/* DRAWER */
.td-left-drawer {
  position: fixed;
  top: var(--header-height);
  left: -100%;
  width: 100%;
  height:100%;
  background: var(--panel);
  z-index: 9990;
  transition: left .5s cubic-bezier(.4,0,.2,1);
}

.td-left-drawer.active { left: 0;bottom:40px; }

.td-left-drawer-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 56px;
  height: 100%;
  margin-top:120px;
  overflow-y: auto;
  position: relative;
}

.td-drawer-close {
  position: absolute;
  top: 24px;
  right: 32px;
  cursor: pointer;
}

/* DRAWER CONTENT */
.td-drawer-top {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 48px;
  margin-bottom: 64px;
}

.td-drawer-title {
  font-size: 28px;
  color: var(--green);
  margin-bottom: 16px;
}

.td-drawer-desc {
  color: var(--muted);
  line-height: 1.7;
}

.td-drawer-image {
    border-radius: 16px;
    max-height: 400px;
    object-fit: unset;
    width: 100%;
}

.td-drawer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.td-drawer-grid h5 {
  color: var(--green);
  font-size: 24px;
  margin-bottom: 10px;
  text-transform: uppercase;
  font-weight: bold;
  text-align: center;
}

/* ANIMATIONS */
.td-animate {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .6s ease, transform .6s ease;
}

.td-animate.is-visible {
  opacity: 1;
  transform: none;
}

/* TABLET */
@media (max-width: 1199px) {
  .td-card-grid { grid-template-columns: repeat(2, 1fr); }
  .td-drawer-top { grid-template-columns: 1fr; }
  .td-drawer-grid { grid-template-columns: repeat(2, 1fr); }
}

/* MOBILE */
@media (max-width: 767px) {
  .td-usecase-module { padding: 36px 20px; }

  .td-tabs {
    overflow-x: auto;
  }

  .td-tab {
    min-width: 160px;
    font-size: 14px;
  }

  .td-card-grid { grid-template-columns: 1fr; }

    .td-left-drawer-inner {
    padding: 24px 20px 140px 20px;
  }
  .td-left-drawer-inner {
    margin-bottom:50px!important;
  }

  .td-drawer-grid { grid-template-columns: 1fr; }

  .td-drawer-title { font-size: 22px; }
}
