/* ================================================================
   CW Case Study — style.css
   Matches ValueCoders case study layout (dark hero, 2-col body,
   card sidebar, amber bullets, yellow CTA)
================================================================ */

/* ---------- Tokens ---------- */
:root {
  --cs-navy:        #0d1b3e;
  --cs-navy-mid:    #1a2d55;
  --cs-blue-dark:   #0b2545;
  --cs-white:       #ffffff;
  --cs-off-white:   #f7f8fc;
  --cs-text:        #2c3351;
  --cs-muted:       #5a6278;
  --cs-amber:       #f5a623;
  --cs-amber-light: #fef3dc;
  --cs-yellow-cta:  #f7b731;
  --cs-border:      #e4e8f0;
  --cs-card-bg:     #ffffff;
  --cs-badge-bg:    #eef0f8;
  --cs-badge-text:  #2c3351;
  --cs-font-display:'Sora', sans-serif;
  --cs-font-body:   'DM Sans', sans-serif;
  --cs-hero-ht:        380px;
  --cs-navbar-height:  85px;
  --cs-sidebar-w:   300px;
  --cs-gap:         32px;
  --cs-radius:      10px;
}

.elementor-widget:not(:last-child) {
    margin-block-end: auto !important;
}

/* ---------- Reset within plugin wrapper ---------- */
/* .cw-cs-wrap *,
.cw-cs-wrap *::before,
.cw-cs-wrap *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
} */

.cw-cs-wrap {
    font-family: var(--cs-font-body);
    color: var(--cs-text);
    background: var(--cs-off-white);
    margin-top: var(--cs-navbar-height, 85px);
    position: absolute;
    width: 100%;
}

/* ================================================================
   HERO
================================================================ */
.cw-cs-hero {
  position: relative;
  min-height: var(--cs-hero-ht);
  background-color: var(--cs-navy);
  background-size: cover;
  background-position: center top;
  display: flex;
  align-items: flex-end;
  padding-bottom: 48px;
}

.cw-cs-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    160deg,
    rgba(10, 22, 60, 0.82) 0%,
    rgba(10, 22, 60, 0.70) 60%,
    rgba(5, 15, 40, 0.88) 100%
  );
}

.cw-cs-hero__inner {
  position: relative;
  z-index: 1;
  max-width: 1600px;
  margin: 0 auto;
  padding: 48px 40px 0;
  width: 100%;
}

/* Tech tags */
.cw-cs-tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.cw-cs-tech-tag {
  display: inline-block;
  padding: 3px 14px;
  border: 1px solid rgba(255,255,255,0.45);
  border-radius: 100px;
  font-family: var(--cs-font-body);
  font-size: 12px;
  font-weight: 500;
  color: rgba(255,255,255,0.88);
  letter-spacing: 0.02em;
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(4px);
}

.cw-cs-hero__title {
  font-family: var(--cs-font-display);
  font-size: clamp(26px, 4vw, 40px);
  font-weight: 700;
  color: var(--cs-white);
  line-height: 1.2;
  margin-bottom: 14px;
  max-width: 800px;
}

.cw-cs-hero__subtitle {
  font-size: 15px;
  color: rgba(255,255,255,0.80);
  max-width: 680px;
  line-height: 1.65;
}

/* ================================================================
   BODY GRID
================================================================ */
.cw-cs-body {
  max-width: 1600px;
  margin: 0 auto;
  padding: 40px 40px 80px;
  display: grid;
  grid-template-columns: 1fr var(--cs-sidebar-w);
  gap: var(--cs-gap);
  align-items: start;
}

/* ================================================================
   MAIN — SECTIONS
================================================================ */
.cw-cs-main {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.cw-cs-section {
  padding: 32px 0;
  border-bottom: 1px solid var(--cs-border);
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: relative;
  padding-left: 22px;
}

/* left dot accent */
.cw-cs-section::before {
  content: '';
  position: absolute;
  left: 0;
  top: 38px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--cs-border);
  border: 2px solid #c0c6d6;
}

.cw-cs-section:last-child {
  border-bottom: none;
}

.cw-cs-section__label {
  font-family: var(--cs-font-body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cs-muted);
}

.cw-cs-section__label--upper {
  font-size: 11px;
}

.cw-cs-section__heading {
  font-family: var(--cs-font-display);
  font-size: clamp(18px, 2.5vw, 24px);
  font-weight: 700;
  color: var(--cs-navy);
  line-height: 1.3;
}

.cw-cs-section__heading--impact {
  color: var(--cs-navy);
}

.cw-cs-section__body {
  font-size: 14.5px;
  line-height: 1.75;
  color: var(--cs-muted);
}

/* Deliverables list */
.cw-cs-deliverables {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 4px;
}

.cw-cs-deliverables li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: var(--cs-text);
  line-height: 1.5;
}

.cw-cs-deliverables li::before {
  content: '';
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin-top: 2px;
  border-radius: 50%;
  background: var(--cs-amber);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2 6l3 3 5-5' stroke='white' stroke-width='1.8' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 11px;
}

/* Impact stats */
.cw-cs-section--impact .cw-cs-section__heading {
  font-size: clamp(20px, 3vw, 28px);
}

.cw-cs-impact-stats {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.cw-cs-impact-stats li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 500;
  color: var(--cs-text);
}

.cw-cs-impact-stats li::before {
  content: '';
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--cs-amber);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2 6l3 3 5-5' stroke='white' stroke-width='1.8' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 11px;
}

/* ================================================================
   SIDEBAR — CARDS
================================================================ */
.cw-cs-sidebar {
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: sticky;
  top: 90px;
}

.cw-cs-card {
  background: var(--cs-card-bg);
  border: 1px solid var(--cs-border);
  border-radius: var(--cs-radius);
  padding: 20px;
}

.cw-cs-card__label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cs-muted);
  margin-bottom: 10px;
}

.cw-cs-card__title {
  font-family: var(--cs-font-display);
  font-size: 15px;
  font-weight: 600;
  color: var(--cs-navy);
  margin-bottom: 14px;
}

.cw-cs-card__text {
  font-size: 13.5px;
  line-height: 1.72;
  color: var(--cs-muted);
}

/* Project snapshot table */
.cw-cs-snapshot {
  width: 100%;
  border-collapse: collapse;
}

.cw-cs-snapshot tr {
  border-bottom: 1px solid var(--cs-border);
}

.cw-cs-snapshot tr:last-child {
  border-bottom: none;
}

.cw-cs-snapshot td {
  padding: 8px 0;
  font-size: 13px;
  vertical-align: top;
}

.cw-cs-snapshot__key {
  color: var(--cs-muted);
  width: 50%;
}

.cw-cs-snapshot__val {
  color: var(--cs-text);
  font-weight: 500;
  text-align: right;
}

/* Team structure */
.cw-cs-team {
  width: 100%;
  border-collapse: collapse;
}

.cw-cs-team tr {
  border-bottom: 1px solid var(--cs-border);
}

.cw-cs-team tr:last-child {
  border-bottom: none;
}

.cw-cs-team td {
  padding: 8px 0;
  font-size: 13px;
  vertical-align: middle;
}

.cw-cs-team__role {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--cs-muted);
}

.cw-cs-team__dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--cs-amber);
  flex-shrink: 0;
}

.cw-cs-team__tech {
  text-align: right;
}

.cw-cs-badge {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 4px;
  background: var(--cs-badge-bg);
  color: var(--cs-badge-text);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

/* Consultant */
.cw-cs-card--consultant {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cw-cs-consultant {
  display: flex;
  align-items: center;
  gap: 12px;
}

.cw-cs-consultant__avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.cw-cs-consultant__name {
  font-size: 14px;
  font-weight: 600;
  color: var(--cs-navy);
}

.cw-cs-consultant__role {
  font-size: 12px;
  color: var(--cs-muted);
  margin-top: 2px;
}

.cw-cs-quote {
  font-size: 13px;
  font-style: italic;
  color: var(--cs-muted);
  line-height: 1.65;
  border-left: 3px solid var(--cs-amber);
  padding-left: 12px;
}

/* Share */
.cw-cs-card--share {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
}

.cw-cs-card--share .cw-cs-card__label {
  margin: 0;
}

.cw-cs-share-icons {
  display: flex;
  gap: 12px;
}

.cw-cs-share-icons a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  color: var(--cs-muted);
  transition: color 0.2s;
  text-decoration: none;
}

.cw-cs-share-icons a:hover {
  color: var(--cs-navy);
}

.cw-cs-share-icons svg {
  width: 17px;
  height: 17px;
}

/* CTA box */
.cw-cs-cta-box {
  background: var(--cs-yellow-cta);
  border-radius: var(--cs-radius);
  padding: 24px 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.cw-cs-cta-box__heading {
  font-family: var(--cs-font-display);
  font-size: 15px;
  font-weight: 700;
  color: var(--cs-navy);
  line-height: 1.35;
}

.cw-cs-cta-box__sub {
  font-size: 12.5px;
  color: var(--cs-navy-mid);
  line-height: 1.6;
}

.cw-cs-cta-box__note {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cs-navy);
  opacity: 0.65;
  margin-top: 2px;
}

/* ================================================================
   BUTTONS
================================================================ */
.cw-cs-btn {
  display: inline-block;
  padding: 10px 18px;
  border-radius: 6px;
  font-family: var(--cs-font-body);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.15s;
  width: 100%;
}

.cw-cs-btn:hover {
  opacity: 0.88;
  transform: translateY(-1px);
}

.cw-cs-btn--primary {
  background: var(--cs-navy);
  color: var(--cs-white);
}

.cw-cs-btn--outline {
  background: transparent;
  color: var(--cs-navy);
  border: 1.5px solid var(--cs-navy-mid);
  font-size: 12px;
  padding: 8px 14px;
}

/* ================================================================
   RESPONSIVE
================================================================ */
@media ( max-width: 900px ) {
  .cw-cs-body {
    grid-template-columns: 1fr;
    padding: 24px 24px 60px;
  }

  .cw-cs-sidebar {
    position: static;
  }

  .cw-cs-hero__inner {
    padding: 32px 24px 0;
  }
}

@media ( max-width: 560px ) {
  :root {
    --cs-hero-ht: 280px;
  }

  .cw-cs-hero {
    padding-bottom: 32px;
  }

  .cw-cs-body {
    padding: 20px 16px 48px;
  }

  .cw-cs-section {
    padding-left: 16px;
  }
}

/* ================================================================
   CASE STUDY CARD GRID — styles for [cw_case_studies] shortcode
   (5-column responsive grid, matches the theme's .case-study-card2)
================================================================ */

.col-xl-5ths {
    position: relative;
    width: 20%;
    flex: 0 0 20%;
    max-width: 20%;
    padding-right: 12px;
    padding-left: 12px;
}

@media (max-width: 1400px) {
    .col-xl-5ths { width: 33.3333%; flex: 0 0 33.3333%; max-width: 33.3333%; }
}
@media (max-width: 991px) {
    .col-xl-5ths { width: 50%; flex: 0 0 50%; max-width: 50%; }
    .case-study-card2.three .case-study-img { display: block; width: 100%; }
    .case-study-card2.three .case-study-img img { width: 100%; height: 220px; object-fit: cover; display: block; }
}
@media (max-width: 768px) {
    .col-xl-5ths { width: 100%; flex: 0 0 100%; max-width: 100%; }
    .case-study-card2.three { display: flex !important; flex-direction: column !important; overflow: hidden; }
    .case-study-card2.three .case-study-img { display: block !important; width: 100% !important; flex-shrink: 0; }
    .case-study-card2.three .case-study-img img { width: 100% !important; height: 200px !important; object-fit: cover !important; display: block !important; }
    .case-study-card2.three .case-study-content-wrap { display: flex !important; flex-direction: column !important; align-items: flex-start !important; justify-content: flex-start !important; padding: 16px 18px !important; gap: 12px !important; width: 100% !important; }
    .case-study-card2.three .case-study-content { width: 100%; display: flex !important; gap: 14px !important; }
    .case-study-card2.three .case-study-logo { margin-bottom: 8px; }
    .case-study-card2.three .case-study-logo img { width: 30%; max-height: 32px !important; width: auto !important; }
    .case-study-card2.three .case-study-content h4 { text-wrap: nowrap; font-size: 16px; margin-bottom: 0; }
    .case-study-card2.three .deatails-btn { width: 100%; position: static !important; bottom: unset !important; left: unset !important; transform: none !important; margin: 0 !important; padding: 0 !important; }
    .case-study-card2.three .deatails-btn a { display: inline-flex !important; width: auto; }
    .case-study-page .mb-70 { margin-bottom: 30px !important; }
    .case-study-page .row.gy-5 { --bs-gutter-y: 1.5rem; }
}
@media (max-width: 600px) {
    .case-study-card2.three .case-study-img img { height: 180px !important; }
    .case-study-card2.three .case-study-content-wrap { padding: 14px 16px !important; }
    .case-study-card2.three .case-study-content h4 { font-size: 15px; }
    .case-study-card2.three .case-study-logo img { max-height: 28px !important; }
    .case-study-card2.three .case-study-content { display: flex !important; gap: 14px !important; }
}
@media (max-width: 380px) {
    .case-study-card2.three .case-study-img img { height: 160px !important; }
    .case-study-card2.three .case-study-content h4 { font-size: 14px; }
    .case-study-card2.three .case-study-content-wrap { padding: 12px 14px !important; }
    .case-study-card2.three .case-study-content { display: flex !important; gap: 14px !important; }
}
