/* ==========================================================================
   Landing Case Page Styles — 上岸案例
   Uses CSS custom properties from shared variables.css
   ========================================================================== */

/* --------------------------------------------------------------------------
   Header / Hero Banner
   -------------------------------------------------------------------------- */
.landing-case-header {
  width: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-image: url(/images/landing-case/lc_bg.png);
  aspect-ratio: 2.5;
}

@media (min-width: 768px) {
  .landing-case-header {
    aspect-ratio: 3;
  }
}

/* --------------------------------------------------------------------------
   Content Container
   -------------------------------------------------------------------------- */
.landing-case-content {
  width: 100%;
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: 0.75rem;
  padding-right: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

@media (min-width: 768px) {
  .landing-case-content {
    padding-left: 0;
    padding-right: 0;
    gap: 2.5rem;
  }
}

/* --------------------------------------------------------------------------
   Title Area — "上岸案例" with decorative "LANDING CASE" behind
   -------------------------------------------------------------------------- */
.landing-case-title-area {
  width: 100%;
  position: relative;
  margin-bottom: 2rem;
}

@media (min-width: 768px) {
  .landing-case-title-area {
    margin-bottom: 3.75rem;
  }
}

.landing-case-bg-text {
  position: absolute;
  bottom: 1.25rem;
  left: 50%;
  transform: translateX(-50%);
  color: var(--coolgray-200);
  font-size: 1.875rem;
  white-space: nowrap;
}

@media (min-width: 768px) {
  .landing-case-bg-text {
    font-size: 2.25rem;
  }
}

@media (min-width: 1280px) {
  .landing-case-bg-text {
    font-size: 3rem;
  }
}

.landing-case-main-title {
  font-size: 1.5rem;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
  text-align: center;
}

@media (min-width: 640px) {
  .landing-case-main-title {
    font-size: 1.875rem;
  }
}

@media (min-width: 768px) {
  .landing-case-main-title {
    font-size: 2.25rem;
  }
}

@media (min-width: 1280px) {
  .landing-case-main-title {
    font-size: 3rem;
  }
}

/* --------------------------------------------------------------------------
   Case Grid Section
   -------------------------------------------------------------------------- */
.case-grid-section {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* First row: left side (2+2 cards) + right side (bg image) */
.case-row-top {
  display: flex;
  flex-direction: row;
  gap: 1rem;
}

.case-row-left {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.case-row-inner {
  flex: 1;
  display: flex;
  flex-direction: row;
  gap: 1rem;
}

.case-row-desktop {
  display: none;
}

@media (min-width: 768px) {
  .case-row-desktop {
    display: flex;
    flex-direction: row;
    gap: 1rem;
  }
}

.case-row-bg {
  flex: 1;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-radius: 0.125rem;
  overflow: hidden;
}

@media (min-width: 768px) {
  .case-row-bg {
    border-radius: 0.375rem;
  }
}

/* Second row: 4 cards in a row */
.case-row {
  width: 100%;
  display: flex;
  flex-direction: row;
  gap: 1rem;
}

/* In .case-row, show only first 2 items on mobile, all 4 on md+ */
.case-row .case-grid-item:nth-child(n+3) {
  display: none;
}

@media (min-width: 768px) {
  .case-row .case-grid-item:nth-child(n+3) {
    display: block;
  }
}

.case-grid-item {
  flex: 1;
}

/* --------------------------------------------------------------------------
   Case Cards — Golden Ratio aspect
   -------------------------------------------------------------------------- */
.case-card-bg {
  width: 100%;
  padding-bottom: 61.8%;
  border: 4px solid #ffffff;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-radius: 0.125rem;
  transition: transform 0.5s;
}

@media (min-width: 768px) {
  .case-card-bg {
    border-radius: 0.375rem;
  }
}

.case-card-bg:hover {
  transform: scale(1.05);
}

.case-card-title {
  margin-top: 0.25rem;
  font-size: 0.75rem;
  color: var(--gray-500);
  text-align: center;
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
  padding-left: 0.25rem;
  padding-right: 0.25rem;
}

/* --------------------------------------------------------------------------
   Swiper Area
   -------------------------------------------------------------------------- */
.case-swiper-area {
  width: 100%;
}

/* Portrait slides (up cases) */
.case-up-slide {
  /* Wrapper for portrait image + title */
}

.case-up-img {
  padding-bottom: 141.4%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-radius: 0.125rem;
  transition: transform 0.5s;
}

.case-up-img:hover {
  transform: scale(1.05);
}

/* Landscape slides (down cases) */
.case-down-slide {
  /* Wrapper for landscape image + title */
}

.case-down-img {
  padding-bottom: 61.8%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-radius: 0.125rem;
  transition: transform 0.5s;
}

.case-down-img:hover {
  transform: scale(1.05);
}
