/* --------------- Portfolio Detail (Case Study) --------------- */

.right-side .case-overview.section-padding,
.right-side .case-main.section-padding,
.right-side .case-gallery.section-padding,
.right-side .case-deliver.section-padding,
.right-side .case-related.section-padding,
.right-side .case-cta.section-padding {
  padding-left: 80px;
  padding-right: 80px; }

@media (max-width: 991px) {
  .right-side .case-overview.section-padding,
  .right-side .case-main.section-padding,
  .right-side .case-gallery.section-padding,
  .right-side .case-deliver.section-padding,
  .right-side .case-related.section-padding,
  .right-side .case-cta.section-padding {
    padding-left: 48px;
    padding-right: 48px; } }

@media (max-width: 767px) {
  .right-side .case-overview.section-padding,
  .right-side .case-main.section-padding,
  .right-side .case-gallery.section-padding,
  .right-side .case-deliver.section-padding,
  .right-side .case-related.section-padding,
  .right-side .case-cta.section-padding {
    padding-left: 24px;
    padding-right: 24px; } }

/* Hero */
.case-hero {
  position: relative;
  height: 560px;
  overflow: hidden;
  margin-left: 80px;
  margin-right: 80px; }
  @media (max-width: 991px) {
    .case-hero {
      margin-left: 48px;
      margin-right: 48px;
      height: 480px; } }
  @media (max-width: 767px) {
    .case-hero {
      margin-left: 24px;
      margin-right: 24px;
      height: 420px; } }

.case-hero-img {
  position: absolute;
  inset: 0; }
  .case-hero-img img {
    width: 100%;
    height: 100%;
    object-fit: cover; }

.case-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0.1) 45%, rgba(0, 0, 0, 0.88) 100%); }

.case-hero-content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 40px 80px 130px; }
  @media (max-width: 991px) {
    .case-hero-content {
      padding: 32px 48px 115px; } }
  @media (max-width: 767px) {
    .case-hero-content {
      padding: 24px 24px 100px; } }

.case-breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.05em; }
  .case-breadcrumb a {
    color: rgba(255, 255, 255, 0.55);
    transition: color 0.3s; }
    .case-breadcrumb a:hover {
      color: #fff; }
  .case-breadcrumb .sep {
    color: rgba(255, 255, 255, 0.3);
    font-size: 10px; }
  .case-breadcrumb span:last-child {
    color: var(--main-color); }

.case-hero-bottom {
  position: relative;
  z-index: 4;
  transform: translateY(22px); }

.case-hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px; }

.case-tag {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 6px 14px;
  border-radius: 20px;
  background: var(--main-color);
  color: #fff;
  font-weight: 600; }

.case-tag-outline {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #fff; }

.case-hero-title {
  font-size: clamp(32px, 5vw, 56px);
  line-height: 1.08;
  font-weight: 600;
  color: #fff;
  max-width: 800px;
  margin-bottom: 10px; }

.case-hero-client {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.5);
  margin: 0; }

/* Overview card */
.case-overview {
  margin-top: -75px;
  position: relative;
  z-index: 3; }

.case-overview-card {
  background: #fff;
  color: #212121;
  padding: 36px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2); }
  @media (max-width: 991px) {
    .case-overview-card {
      flex-direction: column;
      align-items: flex-start;
      padding: 28px 32px; } }

.case-overview-lead {
  font-size: 17px;
  line-height: 1.7;
  color: #555;
  margin: 0;
  max-width: 640px;
  flex: 1; }

.case-overview-results {
  display: flex;
  gap: 36px;
  flex-shrink: 0; }
  @media (max-width: 575px) {
    .case-overview-results {
      gap: 24px;
      flex-wrap: wrap; } }

.case-result {
  text-align: center; }
  .case-result strong {
    display: block;
    font-size: 32px;
    font-weight: 600;
    color: var(--main-color);
    line-height: 1; }
  .case-result span {
    display: block;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #999;
    margin-top: 6px; }

/* Main layout */
.case-main-row {
  align-items: flex-start; }

.case-body {
  font-size: 17px;
  line-height: 1.85;
  color: rgba(255, 255, 255, 0.75); }
  .case-body h2,
  .case-body h3 {
    color: #fff;
    margin-top: 36px;
    margin-bottom: 14px;
    line-height: 1.3; }
  .case-body h2 {
    font-size: 26px; }
  .case-body h3 {
    font-size: 20px; }
  .case-body p {
    margin-bottom: 18px; }
  .case-body ul,
  .case-body ol {
    margin-bottom: 22px;
    padding-left: 22px; }
  .case-body li {
    margin-bottom: 8px; }
  .case-body blockquote {
    margin: 28px 0;
    padding: 24px 28px;
    border-left: 3px solid var(--main-color);
    background: rgba(255, 255, 255, 0.04);
    border-radius: 0 12px 12px 0;
    color: #fff;
    font-style: italic;
    font-size: 18px; }

.case-sidebar {
  position: sticky;
  top: 30px; }

.case-info-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 32px 28px;
  color: #fff; }
  .case-info-card h4 {
    font-size: 18px;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08); }

.case-info-list {
  margin-bottom: 24px; }

.case-info-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06); }
  .case-info-row:last-child {
    border-bottom: none; }
  .case-info-row dt {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.4);
    flex-shrink: 0; }
  .case-info-row dd {
    font-size: 14px;
    color: #fff;
    text-align: right;
    margin: 0; }

.case-live-btn {
  margin-top: 20px;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.35); }
  .case-live-btn:hover {
    border-color: var(--main-color);
    color: #fff; }

/* Section head */
.case-section-head h2 {
  font-size: clamp(24px, 3vw, 36px);
  color: #fff;
  margin-bottom: 8px; }

/* Gallery */
.case-gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px; }
  @media (max-width: 767px) {
    .case-gallery-grid {
      grid-template-columns: 1fr; } }

.case-gallery-item {
  overflow: hidden;
  aspect-ratio: 16 / 10; }
  .case-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s; }
  .case-gallery-item:hover img {
    transform: scale(1.03); }

.case-gallery-wide {
  grid-column: span 2;
  aspect-ratio: 21 / 9; }
  @media (max-width: 767px) {
    .case-gallery-wide {
      grid-column: span 1;
      aspect-ratio: 16 / 10; } }

/* Deliverables */
.case-deliver-box {
  background: #fff;
  color: #212121;
  padding: 52px 56px 56px;
  position: relative;
  overflow: hidden; }
  @media (max-width: 767px) {
    .case-deliver-box {
      padding: 36px 24px 40px; } }

.case-deliver-box .case-section-head {
  position: relative;
  z-index: 1; }
  .case-deliver-box .case-section-head h2 {
    color: #212121; }
  .case-deliver-box .case-section-head .sub-color {
    color: #888; }

.case-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  position: relative;
  z-index: 1; }
  .case-steps::before {
    content: "";
    position: absolute;
    top: 22px;
    left: calc(12.5% + 12px);
    right: calc(12.5% + 12px);
    height: 2px;
    background: linear-gradient(90deg, rgba(248, 68, 56, 0.15), var(--main-color), rgba(248, 68, 56, 0.15));
    pointer-events: none; }
  @media (max-width: 991px) {
    .case-steps {
      grid-template-columns: repeat(2, 1fr);
      gap: 28px 20px; }
      .case-steps::before {
        display: none; } }
  @media (max-width: 575px) {
    .case-steps {
      grid-template-columns: 1fr;
      gap: 0;
      padding-left: 8px; }
      .case-steps::before {
        display: block;
        top: 22px;
        bottom: 22px;
        left: 21px;
        right: auto;
        width: 2px;
        height: auto;
        background: linear-gradient(180deg, rgba(248, 68, 56, 0.15), var(--main-color), rgba(248, 68, 56, 0.15)); } }

.case-step {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 0 16px;
  position: relative; }
  @media (max-width: 991px) {
    .case-step {
      padding: 20px 18px;
      background: #fafafa;
      border: 1px solid rgba(0, 0, 0, 0.06);
      border-radius: 16px;
      transition: border-color 0.25s, box-shadow 0.25s, transform 0.25s; }
      .case-step:hover {
        border-color: rgba(248, 68, 56, 0.35);
        box-shadow: 0 12px 32px rgba(0, 0, 0, 0.06);
        transform: translateY(-2px); } }
  @media (max-width: 575px) {
    .case-step {
      flex-direction: row;
      align-items: flex-start;
      gap: 18px;
      padding: 0 0 28px 0;
      background: transparent;
      border: none;
      border-radius: 0;
      box-shadow: none;
      transform: none; }
      .case-step:last-child {
        padding-bottom: 0; }
      .case-step:hover {
        border: none;
        box-shadow: none;
        transform: none; } }

.case-step-marker {
  position: relative;
  z-index: 1;
  margin-bottom: 22px; }
  @media (max-width: 991px) {
    .case-step-marker {
      margin-bottom: 14px; } }
  @media (max-width: 575px) {
    .case-step-marker {
      margin-bottom: 0;
      flex-shrink: 0; } }

.case-step .step-num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #fff;
  background: var(--main-color);
  box-shadow: 0 0 0 6px #fff, 0 8px 20px rgba(248, 68, 56, 0.28);
  line-height: 1; }
  @media (max-width: 991px) {
    .case-step .step-num {
      box-shadow: 0 6px 16px rgba(248, 68, 56, 0.22); } }

.case-step-body {
  width: 100%; }
  .case-step-body h6 {
    font-size: 17px;
    font-weight: 600;
    color: #212121;
    margin: 0 0 8px;
    line-height: 1.35; }
  .case-step-body p {
    font-size: 14px;
    color: #888;
    margin: 0;
    line-height: 1.55; }

@media (min-width: 992px) {
  .case-step:hover .step-num {
    transform: scale(1.06);
    transition: transform 0.25s; }
  .case-step .step-num {
    transition: transform 0.25s; }
  .case-step:hover .case-step-body h6 {
    color: var(--main-color);
    transition: color 0.25s; }
  .case-step-body h6 {
    transition: color 0.25s; } }

/* Related */
.case-related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px; }
  @media (max-width: 991px) {
    .case-related-grid {
      grid-template-columns: 1fr; } }

.case-related-card {
  display: block;
  color: inherit;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  overflow: hidden;
  transition: all 0.35s; }
  .case-related-card:hover {
    border-color: rgba(248, 68, 56, 0.4);
    transform: translateY(-4px); }
    .case-related-card:hover h5 {
      color: var(--main-color); }
  .case-related-card .rel-img {
    aspect-ratio: 16 / 10;
    overflow: hidden; }
    .case-related-card .rel-img img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      transition: transform 0.5s; }
  .case-related-card:hover .rel-img img {
    transform: scale(1.04); }
  .case-related-card .rel-body {
    padding: 20px 22px 24px; }
    .case-related-card .rel-cat {
      display: block;
      font-size: 11px;
      text-transform: uppercase;
      letter-spacing: 0.08em;
      color: var(--main-color);
      margin-bottom: 6px; }
    .case-related-card h5 {
      font-size: 16px;
      color: #fff;
      margin: 0;
      transition: color 0.3s; }

.case-back {
  margin-top: 36px; }

.butn.case-back-btn {
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.35); }
  .butn.case-back-btn:hover {
    border-color: var(--main-color);
    color: #fff; }

/* Container alignment */
.right-side .case-overview .container,
.right-side .case-main .container,
.right-side .case-gallery .container,
.right-side .case-deliver .container,
.right-side .case-related .container,
.right-side .case-cta .container {
  max-width: 100%;
  padding-left: 0;
  padding-right: 0; }

.right-side .case-overview .row.sm-marg,
.right-side .case-main .row.sm-marg,
.right-side .case-gallery .row.sm-marg,
.right-side .case-deliver .row.sm-marg,
.right-side .case-related .row.sm-marg,
.right-side .case-cta .row.sm-marg {
  margin-left: 0;
  margin-right: 0; }

.right-side .case-main .row.sm-marg > .col-lg-8 {
  padding-left: 0;
  padding-right: 48px; }
  @media (max-width: 991px) {
    .right-side .case-main .row.sm-marg > .col-lg-8 {
      padding-right: 0; } }

.right-side .case-overview .row.sm-marg > .col-12,
.right-side .case-main .row.sm-marg > .col-lg-4,
.right-side .case-gallery .row.sm-marg > .col-12,
.right-side .case-deliver .row.sm-marg > .col-12,
.right-side .case-related .row.sm-marg > .col-12,
.right-side .case-cta .row.sm-marg > .col-12 {
  padding-left: 0;
  padding-right: 0; }

@media (max-width: 991px) {
  .case-sidebar {
    position: static;
    margin-top: 40px; } }
