/* ==========================================================================
   Ras’tani Creatives — Web Design Page CSS (CLEAN REWRITE)
   Delete your old CSS and replace with this file.
   Includes: Intro, Wink, Web Services, Services Links, Carousel (Apple Wheel),
             Custom Features, Mini Case Studies, No Extra Cost + Process,
             Testimonials, Packages, FAQs, CTA
   ========================================================================== */

html {
  scrollbar-gutter: stable;
}

/* --------------------------------------------------------------------------
   Intro
-------------------------------------------------------------------------- */

.rc-web-design__intro {
  margin-top: 10rem;
  margin-bottom: 10rem;
  text-align: center;
}

.rc-web-design__intro h1 {
  text-transform: uppercase;
}

.rc-web-design__wink {
  margin-bottom: 5rem;
}

.rc-web-design__wink span {
  color: var(--rc-green);
}

/* --------------------------------------------------------------------------
   Web Services (Hero / Matrix / Links)
-------------------------------------------------------------------------- */

.rc-web-design__web-services .rc-outer {
  background: linear-gradient(180deg, #000320 0%, #000744 72.6%, #000e86 100%);
  padding: 7rem 0 5rem;
}

.rc-web-design__services-matrix {
  display: grid;
  grid-template-columns: 1fr;
  justify-items: center;
  gap: 2rem;
  margin-bottom: 6rem;
}

.rc-web-design__services-item {
  width: 100%;
  max-width: 360px;
}

.rc-web-design__services-item h3 {
  font-weight: 600;
  font-size: 18px;
}

.rc-web-design__web-services-header h2 {
  margin: 0;
  padding-bottom: 1rem;
  text-align: center;
  color: #fff;
  font-size: clamp(2.4rem, 4vw, 4rem);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.01em;
}

.rc-web-design__web-services-header p {
  max-width: 470px;
  margin: 0 auto 5rem;
  text-align: center;
  color: #f4f7ff;
}

/* Services links row */
.rc-web-design__services-links {
  margin-top: 0;
  border-top: 1px solid rgba(206, 222, 255, 0.18);
  border-bottom: 1px solid rgba(206, 222, 255, 0.18);
  display: grid;
  grid-template-columns: 1fr;
}

.rc-web-design__services-link {
  min-height: 88px;
  padding: 0 1.25rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.9rem;
  text-decoration: none;
  color: #e7eeff;
  font-size: clamp(1.05rem, 1.3vw, 1.32rem);
  border-bottom: 1px solid rgba(206, 222, 255, 0.18);
}

.rc-web-design__services-link:last-child {
  border-bottom: 0;
}

.rc-web-design__services-link span:last-child {
  color: #22c55e;
  font-size: 2rem;
  line-height: 1;
}

.rc-web-design__services-link:hover {
  color: #ffffff;
  text-decoration: none;
}

/* --------------------------------------------------------------------------
   Custom Features
-------------------------------------------------------------------------- */

.rc-web-design__custom-features {
  margin-top: 2rem;
}

.rc-web-design__custom-features .rc-outer {
  background: linear-gradient(180deg, #dceef8 0%, #e6f3fa 53.85%, #ffffff 100%);
  padding: 10rem 0;
}

.rc-web-design__custom-card {
  border: 1px solid rgba(15, 23, 42, 0.14);
  border-radius: 14px;
  background: #f5f5f6;
  box-shadow:
    0 1px 2px rgba(0, 0, 0, 0.1),
    0 10px 24px rgba(15, 23, 42, 0.09);
  padding: 2rem 1.25rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.rc-web-design__custom-intro h3 {
  margin: 0;
  color: #090c11;
  font-size: clamp(2.2rem, 4.5vw, 4.4rem);
  line-height: 1.05;
  font-weight: 700;
  max-width: 12ch;
}

.rc-web-design__custom-intro p {
  margin: 1.2rem 0 0;
  max-width: 34ch;
  color: #343842;
  font-size: clamp(1rem, 1.2vw, 1.35rem);
  line-height: 1.45;
}

.rc-web-design__custom-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 1rem;
}

.rc-web-design__custom-list li {
  position: relative;
  padding-left: 1.65rem;
  color: #353945;
  font-size: clamp(1rem, 1.2vw, 1.32rem);
  line-height: 1.4;
}

.rc-web-design__custom-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.28rem;
  width: 1rem;
  height: 1rem;
  background: url("/assets/img/ui/check-icon.png") center / contain no-repeat;
}

.rc-web-design__custom-link {
  margin-top: 1.8rem;
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  text-decoration: none;
  color: #06855e;
  font-weight: 700;
  font-size: clamp(1.15rem, 1.5vw, 1.75rem);
  font-size: clamp(0.75rem, 1.6vw, 1.1rem);
}

.rc-web-design__custom-link:hover {
  text-decoration: underline;
}

.rc-web-design__custom-link span:last-child {
  font-size: 1.9rem;
  line-height: 1;
}

@media (min-width: 640px) {
  .rc-web-design__services-matrix {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    justify-items: stretch;
  }
}

@media (min-width: 960px) {
  .rc-web-design__custom-card {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 2.4rem;
    align-items: start;
    padding: 4rem 3.25rem 3rem;
  }

  .rc-web-design__custom-list-wrap {
    padding-top: 0.6rem;
  }
}

@media (min-width: 1024px) {
  .rc-web-design__services-matrix {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .rc-web-design__services-links {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .rc-web-design__services-link {
    border-bottom: 0;
    border-right: 1px solid rgba(206, 222, 255, 0.18);
  }

  .rc-web-design__services-link:last-child {
    border-right: 0;
  }
}

/* --------------------------------------------------------------------------
   Mini Case Studies
-------------------------------------------------------------------------- */

.rc-web-design__mini-case-studies {
  background: #fff;
  padding: 4rem 0;
  margin-top: 2rem;
}

.rc-web-design__mini-header {
  max-width: 640px;
  margin: 0 auto 2rem;
  text-align: center;
}

.rc-web-design__mini-header h2 {
  margin: 0 0 0.75rem;
  font-size: clamp(2rem, 4vw, 3rem);
  color: #1f2027;
}

.rc-web-design__mini-header p {
  margin: 0;
  font-size: clamp(1.15rem, 2vw, 1.55rem);
  color: #3f4147;
}

.rc-mini-case-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.rc-mini-case-card {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 344px;
  margin-inline: auto;
  padding: 1.15rem 1.15rem 1.35rem;
  border: 1px solid rgba(27, 30, 37, 0.14);
  border-radius: 16px;
  background: #f5f5f6;
  box-shadow:
    0 1px 2px rgba(0, 0, 0, 0.12),
    0 10px 28px rgba(15, 23, 42, 0.08);
  margin-bottom: 5rem;
}

.rc-mini-case-card__banner {
  min-height: 190px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  /* background: radial-gradient(circle at 15% 20%, #92d8c8, #24c39a 70%); */
  /* background-image: linear-gradient(120deg, #fdfbfb 0%, #ebedee 100%); */
  background-image: linear-gradient(to top, #09203f 0%, #537895 100%);
}

.rc-mini-case-card__logo {
  display: block;
  width: auto;
  max-width: min(76%, 230px);
  max-height: 120px;
  height: auto;
  object-fit: contain;
}

.rc-mini-case-card__brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 120px;
  line-height: 1;
}

.rc-mini-case-card__brand-top {
  font-size: clamp(2.6rem, 5vw, 4rem);
  font-weight: 900;
  color: #f5252e;
  letter-spacing: 0.02em;
}

.rc-mini-case-card__brand-main {
  margin-top: 0.1em;
  font-size: clamp(2.4rem, 5vw, 3.7rem);
  font-weight: 900;
  color: #1f4f9f;
  letter-spacing: 0.03em;
}

.rc-mini-case-card__brand-sub {
  margin-top: 0.85rem;
  font-size: clamp(0.8rem, 1.7vw, 1rem);
  font-weight: 700;
  color: #ed1f31;
  letter-spacing: 0.02em;
}

.rc-mini-case-card h3 {
  margin: 1.6rem 0 1.1rem;
  padding-bottom: 1.2rem;
  border-bottom: 1px solid #c8ccd0;
  color: #343741;
  font-size: clamp(1rem, 2.5vw, 1.5rem);
}

.rc-mini-case-card__detail {
  margin-bottom: 1.4rem;
}

.rc-mini-case-card__detail h4 {
  margin: 0 0 0.45rem;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  color: #101217;
  font-size: clamp(0.8rem, 1.5vw, 1.2rem);
}

.rc-mini-case-card__detail h4::before {
  content: "";
  width: 1rem;
  height: 1rem;
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
}

.rc-mini-case-card__detail--case h4::before {
  background-image: url("/assets/img/ui/briefcase.png");
}

.rc-mini-case-card__detail--solution h4::before {
  background-image: url("/assets/img/ui/notepad.png");
}

.rc-mini-case-card__detail--outcome h4::before {
  background-image: url("/assets/img/ui/star.png");
}

.rc-mini-case-card__detail p {
  margin: 0;
  margin-bottom: 1.25rem;
  color: #3f434e;
  font-size: clamp(1rem, 1.2vw, 1.15rem);
  line-height: 1.5;
}

.rc-mini-case-card__link {
  margin-top: auto;
  padding-top: 0.75rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #118d5f;
  text-decoration: none;
  font-weight: 400;
  font-size: clamp(0.75rem, 1.6vw, 1.1rem);
}

.rc-mini-case-card__link:hover {
  text-decoration: underline;
}

.rc-mini-case-card__link span:last-child {
  font-size: 1.25rem;
  line-height: 1;
}

@media (max-width: 720px) {
  .rc-web-design__mini-case-studies {
    padding: 3rem 0;
  }

  .rc-mini-case-card {
    padding: 0.85rem;
  }

  .rc-mini-case-card__banner {
    min-height: 160px;
  }
}

@media (min-width: 960px) {
  .rc-mini-case-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2rem;
  }

  .rc-mini-case-card h3 {
    min-height: 120px;
  }

  .rc-mini-case-card__detail {
    min-height: 148px;
  }
}

/* --------------------------------------------------------------------------
   No Extra Cost + Process
-------------------------------------------------------------------------- */

.rc-web-design__no-extra-cost {
  background: #fff;
  padding: 4rem 0;
}

.rc-web-design__no-extra-cost h2 {
  margin: 0;
  padding-bottom: 1rem;
  border-bottom: 1px solid #cfd2d7;
  color: #1d1f26;
  font-size: clamp(2rem, 3vw, 3.2rem);
}

.rc-web-design__no-extra-grid {
  margin-top: 1.8rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

.rc-web-design__no-extra-item {
  width: 100%;
  max-width: 360px;
}

.rc-web-design__no-extra-item h3 {
  margin: 0 0 0.55rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: clamp(1.1rem, 1.7vw, 1.35rem);
  color: #111318;
}

.rc-web-design__no-extra-item h3 img {
  width: 1rem;
  height: 1rem;
  object-fit: contain;
}

.rc-web-design__no-extra-item p {
  margin: 0;
  color: #2f333d;
  line-height: 1.45;
  font-size: clamp(0.98rem, 1.2vw, 0.9rem);
}

/* Process */
.rc-web-design__process {
  margin-top: 3.5rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.rc-web-design__process > h3 {
  margin: 0;
  color: #07090d;
  font-size: clamp(2rem, 4vw, 3.8rem);
}

.rc-web-design__process-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.rc-web-design__process-list li {
  display: grid;
  grid-template-columns: 68px minmax(0, 1fr);
  column-gap: 1.1rem;
  margin-bottom: 1.15rem;
}

.rc-web-design__process-step {
  margin: 0;
  color: #11141a;
  font-weight: 600;
}

.rc-web-design__process-list li > div {
  border-left: 1px solid #c9cdd2;
  padding-left: 1rem;
  padding-bottom: 1.25rem;
}

.rc-web-design__process-list h4 {
  margin: 0 0 0.3rem;
  color: #101319;
  font-size: clamp(1.1rem, 1.6vw, 1.45rem);
}

.rc-web-design__process-list li > div p {
  margin: 0;
  color: #2e323c;
  line-height: 1.45;
  font-size: clamp(0.95rem, 1.1vw, 1.1rem);
}

.rc-web-design__process-list li:last-child > div {
  padding-bottom: 0;
}

@media (min-width: 960px) {
  .rc-web-design__no-extra-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
  }

  .rc-web-design__process {
    margin-top: 6.5rem;
    grid-template-columns: minmax(0, 533px) minmax(0, 1fr);
    align-items: start;
    column-gap: 2rem;
  }

  .rc-web-design__process > h3 {
    max-width: 533px;
  }

  .rc-web-design__process-list li {
    column-gap: 1.25rem;
    margin-bottom: 0;
  }

  .rc-web-design__process-list li > div {
    padding-left: 1.25rem;
    padding-bottom: 1.25rem;
    margin-bottom: 0.85rem;
  }
}

/* --------------------------------------------------------------------------
   Testimonials
-------------------------------------------------------------------------- */

.rc-web-design__testimonials {
  background: #fff;
  padding: 16rem 0;
}

.rc-web-design__testimonials-head {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.85rem;
}

.rc-web-design__testimonials-head h2 {
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: #0f1116;
  font-size: clamp(2.1rem, 3.5vw, 3.3rem);
}

.rc-web-design__testimonials-head h2 span {
  color: #1d9fff;
}

.rc-web-design__testimonials-nav {
  display: inline-flex;
  gap: 0.9rem;
}

.rc-web-design__testimonials-arrow {
  width: 2.65rem;
  height: 2.65rem;
  border: 0;
  border-radius: 999px;
  background: #95979d;
  color: #fff;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
}

.rc-web-design__testimonials-arrow:disabled {
  background: #c7c8cc;
  color: #f6f7f8;
  cursor: default;
}

.rc-web-design__testimonials-divider {
  margin-top: 1rem;
  border-top: 1px solid #c7c9ce;
}

.rc-web-design__testimonials-slides {
  margin-top: 1.8rem;
}

.rc-web-design__testimonial-slide {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.rc-web-design__testimonial-slide[hidden] {
  display: none;
}

.rc-web-design__testimonial-media {
  width: 100%;
  max-width: 360px;
  margin-inline: auto;
  border-radius: 12px;
  background: #f1f1f3;
  padding: 1.35rem;
  display: grid;
  place-items: center;
}

.rc-web-design__testimonial-media img {
  width: min(100%, 180px);
  height: auto;
  border-radius: 14px;
  display: block;
}

.rc-web-design__testimonial-placeholder {
  width: min(100%, 240px);
  aspect-ratio: 1 / 1;
  border-radius: 14px;
  border: 1px dashed #b6bac4;
  background: repeating-linear-gradient(
    -45deg,
    #f5f6f8,
    #f5f6f8 12px,
    #eceef2 12px,
    #eceef2 24px
  );
  color: #5d6370;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 1rem;
}

.rc-web-design__testimonial-content {
  display: flex;
  flex-direction: column;
  gap: 1.35rem;
}

.rc-web-design__testimonial-quote {
  margin: 0;
  color: #373b44;
  font-size: clamp(1.05rem, 1.3vw, 1.22rem);
  line-height: 1.55;
}

.rc-web-design__testimonial-person {
  border-radius: 12px;
  background: #e5e5e8;
  padding: 1rem 1.25rem;
}

.rc-web-design__testimonial-name {
  margin: 0;
  color: #111317;
  font-size: clamp(1.35rem, 2vw, 1.9rem);
  font-weight: 700;
}

.rc-web-design__testimonial-role {
  margin: 0.15rem 0 0;
  color: #20242d;
  font-size: clamp(1.1rem, 1.5vw, 1.5rem);
}

@media (min-width: 960px) {
  .rc-web-design__testimonials-head {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }

  .rc-web-design__testimonials-slides {
    margin-top: 2rem;
  }

  .rc-web-design__testimonial-slide {
    grid-template-columns: minmax(0, 390px) minmax(0, 1fr);
    gap: 2.2rem;
    align-items: center;
  }

  .rc-web-design__testimonial-media img {
    width: min(100%, 250px);
  }

  .rc-web-design__testimonial-placeholder {
    width: min(100%, 250px);
  }
}

/* --------------------------------------------------------------------------
   Packages
-------------------------------------------------------------------------- */

.rc-web-design__packages {
  padding: 15rem 0;
  background: linear-gradient(
    180deg,
    rgba(245, 245, 245, 0.1) 0%,
    rgba(220, 238, 248, 0.5) 12.98%,
    rgba(133, 204, 220, 0.698103) 30.77%,
    rgba(34, 164, 189, 0.922619) 49.52%,
    #000e86 100%
  );
}

.rc-web-design__packages-header {
  max-width: 760px;
  margin: 0 auto 10rem;
}

.rc-web-design__packages-header h2 {
  margin: 0 0 1.7rem;
  color: #1d1f26;
  font-size: clamp(2rem, 3vw, 3.2rem);
  font-weight: 700;
}

.rc-web-design__packages-header p {
  margin: 0;
  color: #2f3239;
  font-size: clamp(1rem, 1.2vw, 1.15rem);
  font-weight: 400;
  line-height: 1.45;
}

.rc-web-design__packages-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

.rc-web-design__package-card {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 360px;
  height: 750px;
  margin-inline: auto;
  min-height: 100%;
  padding: 1rem;
  border: 1px solid rgba(16, 19, 25, 0.12);
  border-radius: 12px;
  background: #f4f4f6;
  box-shadow:
    0 1px 2px rgba(0, 0, 0, 0.12),
    0 10px 22px rgba(15, 23, 42, 0.08);
}

.rc-web-design__package-head {
  min-height: 88px;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid #cfd2d7;
}

.rc-web-design__package-head h3 {
  margin: 0;
  color: #121419;
  font-size: clamp(1.45rem, 2.2vw, 1.9rem);
  font-weight: 700;
}

.rc-web-design__package-price {
  margin: 0.45rem 0 0;
  color: #171a20;
  font-size: clamp(1rem, 1.25vw, 1.15rem);
  font-weight: 600;
}

.rc-web-design__package-best {
  margin: 0;
  padding: 2rem 0;
  border-bottom: 1px solid #cfd2d7;
  color: #181b21;
  font-size: clamp(1rem, 1.2vw, 1.12rem);
  font-weight: 600;
  line-height: 1.45;
}

.rc-web-design__package-list {
  margin: 2rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.35rem;
  flex: 1 1 auto;
}

.rc-web-design__package-list li {
  position: relative;
  padding-left: 1.5rem;
  color: #232730;
  font-size: clamp(0.98rem, 1.1vw, 1.06rem);
  font-weight: 400;
  line-height: 1.65;
}

.rc-web-design__package-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.35rem;
  width: 1rem;
  height: 1rem;
  background: url("/assets/img/ui/check-icon.png") center / contain no-repeat;
}

.rc-web-design__package-cta {
  margin-top: 1.2rem;
  width: 100%;
  min-height: 48px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
}

.rc-web-design__packages-note {
  margin: 2.2rem 0 0;
  text-align: center;
  color: #f6fbff;
  font-size: clamp(0.98rem, 1.1vw, 1.05rem);
  font-weight: 400;
  line-height: 1.55;
}

@media (min-width: 960px) {
  .rc-web-design__packages-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
  }

  .rc-web-design__package-card {
    padding: 1.2rem;
  }
}

/* --------------------------------------------------------------------------
   FAQs
-------------------------------------------------------------------------- */

.rc-web-design__faqs {
  background: #fff;
  padding: 16rem 0;
}

.rc-web-design__faqs h2 {
  margin: 0;
  padding-bottom: 2rem;
  color: #0f1218;
  font-size: 30pt;
  font-weight: 700;
  border-bottom: 1px solid #d5d7dc;
}

/* --------------------------------------------------------------------------
   CTA
-------------------------------------------------------------------------- */

.rc-web-design__cta {
  padding: 7rem 0 10rem;
  background: #f5f5f6;
}

.rc-web-design__cta-card {
  border-radius: 16px;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr;
  background: #120f97;
}

.rc-web-design__cta-media img {
  width: 100%;
  height: 100%;
  min-height: 260px;
  object-fit: cover;
  display: block;
}

.rc-web-design__cta-info {
  padding: 3rem 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: fit-content;
  max-width: 100%;
  margin-inline: auto;
  color: #f3f6ff;
}

.rc-web-design__cta-info h2 {
  margin: 0;
  max-width: 16ch;
  font-size: 36px;
  line-height: 1;
  font-weight: 700;
  color: #fafafa;
}

.rc-web-design__cta-info p {
  margin: 1.5rem 0 0;
  max-width: 34ch;
  font-size: 1rem;
  line-height: 1.5;
  font-weight: 400;
  color: #fafafa;
}

.rc-web-design__cta-info .rc-btn {
  margin-top: 1.5rem;
  width: 100%;
  max-width: 360px;
  min-height: 48px;
}

@media (min-width: 960px) {
  .rc-web-design__cta-card {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }

  .rc-web-design__cta-info {
    padding: 3rem 3rem;
  }
}
/* --------------------------------------------------------------------------
   Ras'tani Fan Carousel (Apple Wheel) — Drop-in
-------------------------------------------------------------------------- */

.rc-web-design__carousel {
  position: relative;
  width: 100%;
  height: 50vh;
  overflow: hidden;
  background-color: #ffffff; /* Match your page bg */
  user-select: none;
}

/* .rc-web-design__carousel .container {
  width: 100vw;
  height: 100vh;
  position: absolute;
  left: 0;
  top: 0;
} */

.rc-web-design__carousel .center {
  height: 100vh;
  position: absolute;
  left: 50%;
  top: 30%; /* Adjust this to move the entire wheel up/down */
  transform: translate(-50%, 0);
}

.rc-web-design__carousel .items {
  position: relative;
  /* Pivot point is 200vh below the center to create the large arc */
  transform-origin: center 200vh;
  transform: rotate(0deg);
  display: flex;
  align-items: center;
  justify-content: center;
}

.rc-web-design__carousel .item {
  position: absolute; /* Essential to prevent spiraling */
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 430px;
  cursor: grab;
  will-change: transform;
}

.rc-web-design__carousel .item:active {
  cursor: grabbing;
}

.rc-web-design__carousel .rc-card {
  display: block;
  width: 100%;
  height: 610px;
  border-radius: 17px;
  overflow: hidden;
  position: relative;
  border: 10px solid #000000;
  background: #f5f5f6;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
}

.rc-web-design__carousel .image {
  height: 100%;
  width: 100%;
  object-fit: cover;
  filter: grayscale(100%);
  transition: filter 0.5s ease;
  pointer-events: none;
}

.rc-web-design__carousel .item:hover .image {
  filter: grayscale(0%);
}

/* Responsive adjustments for smaller screens */
@media screen and (max-height: 1000px) {
  .rc-web-design__carousel .item {
    width: 350px;
  }
  .rc-web-design__carousel .rc-card {
    height: 497px;
  }
}

@media screen and (max-height: 800px) {
  .rc-web-design__carousel .item {
    width: 300px;
  }
  .rc-web-design__carousel .rc-card {
    height: 400px;
  }
}

@media screen and (max-width: 640px) {
  .rc-web-design__carousel .item {
    width: 260px;
  }
  .rc-web-design__carousel .rc-card {
    height: 360px;
    border-width: 6px;
  }
}
