/* =============================================================================
   Case Study Page Styles
   ============================================================================= */

/* Hero banner */
.cs-hero {
  background: linear-gradient(135deg, #0A1628 0%, #0F2244 100%);
  padding: 60px 0 50px;
  margin-bottom: 0;
}

.cs-hero__inner {
  display: flex;
  align-items: center;
  gap: 32px;
}

.cs-hero__logo {
  flex: 0 0 auto;
  background: #fff;
  border-radius: 8px;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 160px;
  max-width: 220px;
}

.cs-hero__logo img {
  max-width: 180px;
  max-height: 100px;
  width: auto;
  height: auto;
  display: block;
}

.cs-hero__text {
  flex: 1;
}

.cs-hero__subtitle {
  color: #F58220;
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin: 0 0 10px;
}

.cs-hero__title {
  color: #fff;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 700;
  line-height: 1.2;
  margin: 0;
}

/* Two-column layout */
.cs-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 48px;
  padding-top: 48px;
  padding-bottom: 64px;
  align-items: start;
}

/* Body content */
.cs-body {
  min-width: 0;
}

.cs-body .field--name-body h3 {
  color: #F58220;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin: 40px 0 8px;
}

.cs-body .field--name-body h3:first-child {
  margin-top: 0;
}

.cs-body .field--name-body h2 {
  color: #0A1628;
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  font-weight: 700;
  line-height: 1.3;
  margin: 0 0 20px;
  border-bottom: 2px solid #E3EEFF;
  padding-bottom: 16px;
}

.cs-body .field--name-body p {
  color: #374151;
  line-height: 1.75;
  margin-bottom: 16px;
}

.cs-body .field--name-body hr {
  border: none;
  border-top: 1px solid #E5E7EB;
  margin: 32px 0;
}

/* Sidebar */
.cs-sidebar {
  position: sticky;
  top: 24px;
}

.cs-sidebar__inner {
  background: #F8FAFC;
  border: 1px solid #E5E7EB;
  border-radius: 8px;
  padding: 24px;
}

.cs-sidebar__heading {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #6B7280;
  margin: 0 0 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid #E5E7EB;
}

.cs-sidebar__list {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
}

.cs-sidebar__item {
  border-bottom: 1px solid #E5E7EB;
}

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

.cs-sidebar__link {
  display: block;
  padding: 12px 0;
  font-size: 0.875rem;
  font-weight: 500;
  color: #0066CC;
  text-decoration: none;
  line-height: 1.4;
  transition: color 0.2s;
}

.cs-sidebar__link:hover {
  color: #004A99;
  text-decoration: underline;
}

.cs-sidebar__link--current {
  color: #0A1628;
  font-weight: 600;
  cursor: default;
}

.cs-sidebar__link--current::before {
  content: '▶ ';
  color: #F58220;
  font-size: 0.6em;
}

.cs-sidebar__cta {
  background: #0A1628;
  border-radius: 6px;
  padding: 20px;
  text-align: center;
  margin-top: 8px;
}

.cs-sidebar__cta p {
  color: #CBD5E1;
  font-size: 0.8125rem;
  line-height: 1.5;
  margin: 0 0 14px;
}

.cs-sidebar__cta .btn-gdh-primary {
  display: block;
  width: 100%;
  background: #F58220;
  color: #fff;
  border: none;
  border-radius: 4px;
  padding: 10px 16px;
  font-size: 0.8125rem;
  font-weight: 600;
  text-decoration: none;
  text-align: center;
  transition: background 0.2s;
}

.cs-sidebar__cta .btn-gdh-primary:hover {
  background: #D96F10;
  color: #fff;
}

/* Responsive */
@media (max-width: 900px) {
  .cs-layout {
    grid-template-columns: 1fr;
  }

  .cs-sidebar {
    position: static;
  }
}

@media (max-width: 600px) {
  .cs-hero__inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }

  .cs-hero__logo {
    max-width: 160px;
  }
}

/* Override the global #content-main a { color: #e4232d } rule */
#content-main .cs-sidebar__link {
  color: #0066CC;
}

#content-main .cs-sidebar__link:hover {
  color: #004A99;
}

#content-main .cs-sidebar__link--current {
  color: #0A1628;
}

#content-main .cs-sidebar__cta .btn-gdh-primary {
  color: #fff;
}
