
/* ===== Case study ====*/
.case-page {
  font-family: "Noto Sans", sans-serif;
  padding: 40px 20px; /* side padding for mobile */
  box-sizing: border-box;
  color: black;
}

/* Center all inner content */
.case-page > * {
  max-width: 1000px;
  margin: 0 auto;
}

/* Main heading */

.case-heading {
  font-size: 56px;
  font-weight: 800;
  text-align: left;
  margin-bottom: 20px;
}

/* Main image */
.image-section {
  /* padding: 2rem; */
  display: flex;
  justify-content: center;
}

.case-image {
  width: 100%;
  max-width: 1000px;
  height: auto;
  border-radius: 0.5rem;
  outline: none;
}

/* Description paragraph */
.case-description {
  font-size: 13px;
  line-height: 1.7;
  margin-bottom: 60px;
}

.case-subheading {
  font-size: 40px;
  font-weight: 800;
  margin-top: 40px;
  margin-bottom: 10px;
  color: #bb1a1a;
}

.case-content p {
  font-size:1rem;
  line-height: 1.7;
  margin-bottom: 2rem;
}

.solution-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 10px;
  margin-top: 20px;
}

.solution-card {
color: black;
  text-decoration: none;
  padding: 20px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.148);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.solution-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
}

.solution-icon {
  width: 90px;
  height: 90px;
  object-fit: contain;
  margin-bottom: 12px;
  display: block;
}

.solution-title {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: black;
}

.case-paragraph {
  
  white-space: pre-line;
}

.solution-card p {
  font-size: 16px;
  columns: black;
  line-height: 1.6;
}

@media (max-width: 768px) {
  .case-page {
    padding: 50px;
  }

  .case-heading {
    font-size: 2rem;
    margin-bottom: 24px;
  }

  .image-section {
    padding: 0;
    margin-bottom: 50px;
  }

  .case-description {
    font-size: 15px;
    line-height: 1.65;
    margin-bottom: 10px;
  }


  .case-content p {
    font-size: 15px;
    margin-bottom: 1rem;
  }
  .solution-grid {
    display: flex;
    flex-direction: column; /* Stack items vertically */
    align-items: center; /* Center items horizontally */
    gap: 30px;
    margin-bottom: 1rem;
  }

  .solution-card {
    width: 100%;
    max-width: 400px; /* Optional: limit card width */
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.258);
  }

  .solution-icon {
    width: 60px !important;
    height: 60px !important;
    object-fit: contain;
    margin-bottom: 1px;
  }

  .solution-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 8px;
  }

  .solution-card p {
    font-size: 15px;
    line-height: 1.6;
  }
}


@media (max-width: 480px) {
  .case-page {
    padding: 30px;
  }

  .case-heading {
    font-size: 1.5rem;
  }

  .case-subheading {
    font-size: 1.2rem;
  }

  .case-content p,
  .case-description {
    font-size: 15px;
  }

  .solution-grid {
    padding: 20px;
    gap: 10px;
    margin-bottom: 1rem;
  }

  .solution-card {
    padding: 20px;
    max-width: 100%;
  }

  .solution-icon {
    width: 50px !important;
    height: 50px !important;
    margin-bottom: 1px;
  }

  .solution-title {
    font-size: 16px;
  }

  .solution-card p {
    font-size: 15px;
  }
}


/*--------------Vasi section --------------------------*/

.vasi-section {
  max-width: 1000px;
  margin: 0 auto;
  text-align: center;
  padding: 2rem;
}

.vasi-heading {
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 3rem;
  text-align: left;
}

.vasi-carousel {
  display: flex;
  gap: 2rem;
  overflow-x: auto;
  padding-bottom: 2rem;
  margin-bottom: 3rem;
  scroll-snap-type: x mandatory;
}

.vasi-card {
  flex: 0 0 auto;
  width: 450px;
  scroll-snap-align: start;
}

.vasi-image {
  width: 100%;
  height: 280px;
  object-fit: cover;
}

.vasi-info {
  text-align: left;
}

.vasi-info h3 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.vasi-info p {
  font-size: 16px;
}

.vasi-button {
  background: #000;
  color: #fff;
  border: none;
  text-decoration: none;
  padding:10px 1rem;
  font-size: 13px;
  cursor: pointer;
  transition: background 0.3s;
  font-family: "Noto Sans", sans-serif;
}

.vasi-button:hover {
  background: #717171;
}

/* ======================= */
/* 📱 RESPONSIVE BREAKPOINTS */
/* ======================= */

/* Large screens (up to 1440px) */
@media (max-width: 1440px) {
  .vasi-section {
    padding: 4rem 10rem;
  }

  .vasi-card {
    width: 500px;
  }

  .vasi-image {
    height: 250px;
  }
}

/* Medium screens (up to 1024px) */
@media (max-width: 1024px) {
  .vasi-section {
    padding: 4rem 5rem;
  }

  .vasi-card {
    width: 450px;
  }

  .vasi-info {
    padding: 13px;
  }

  .vasi-info h3 {
    font-size: 1.5rem;
  }

  .vasi-info p {
    font-size: 1rem;
  }

  .vasi-button {
    font-size: 14px;
  }
}

/* Responsive for tablets (max-width: 768px) */
@media (max-width: 768px) {
  .vasi-section {
    padding: 0 2rem;
  }

  .vasi-heading {
    font-size: 2rem;
    margin-bottom: 4rem;
    text-align: center; /* Center heading on smaller screens */
  }

  .vasi-carousel {
    gap: 2rem;
    padding-bottom: 0.75rem;
  }

  .vasi-card {
    width: 80vw; /* Make card width relative to viewport */
    max-width: 450px; /* Limit max width */
  }

  .vasi-image {
    height: 220px;
  }

  .vasi-info h3 {
    font-size: 1.3rem;
  }

  .vasi-info p {
    font-size: 1rem;
  }

  .vasi-button {
    font-size: 1rem;
    padding: 0.5rem 1.2rem;
  }
}

/* Responsive for phones (max-width: 480px) */
@media (max-width: 480px) {
  .vasi-section {
    padding: 0 2rem;
  }

  .vasi-heading {
    font-size: 2rem;
    margin-bottom: 1.2rem;
    text-align: center;
  }

  .vasi-carousel {
    gap: 1rem;
    padding-bottom: 0.5rem;
  }

  .vasi-card {
    width: 100vw; /* Almost full viewport width */
    max-width: 300px;
  }

  .vasi-image {
    height: 180px;
  }

  .vasi-info h3 {
    font-size: 1.1rem;
  }

  .vasi-info p {
    font-size: 15px;
  }

  .vasi-button {
    font-size: 14px;
    padding: 10px 24px;
  }
}


/* mk Section */
.mk-section {
  font-family: "Noto Sans", sans-serif;
  max-width: 1000px;
  margin: 0 auto;
}

.mk-title {
  font-size: 56px;
  font-weight: 800;
  padding: 2rem 0;
  margin-bottom: 20px;
  text-align: left;
}

.mk-image img {
  width: 100%;
  max-width: 1000px;
  height: auto;
  border-radius: 0.5rem;
  outline: none;
}

.mk-info p {
  font-size: 16px;
}

.mk-info strong {
  font-weight: 800;
}

/* Summary Section */
.summary-section {
  font-family: 'Noto Sans', sans-serif;
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 20px 10px;
}

.summary-title {
  font-size: 2rem;
  font-weight: 700;
  margin: 0;
  color: #000;
}

.summary-desc {
  margin-bottom: 25px;
  font-size: 16px;
}

/* Table Styling */
.summary-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 1rem;
  text-align: left;
}

.summary-table thead {
  background: #bb1a1a;
  color: #fff;
}

.summary-table th,
.summary-table td {
  padding: 14px 16px;
  border: 1px solid #ddd;
  vertical-align: top;
}

.summary-table .highlight {
  background-color: #ffe5e5;
}

.summary-table tbody tr:nth-child(even) {
  background: #fafafa;
}


/* case-content Section */
.case-content-section {
  max-width: 1000px;
  margin: 0 auto;
  padding:4rem 0;
}
.case-content-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin: 0;
  color: #bb1a1a;
}
/* Layout split for main section and quote */
.case-flex {
  display: flex;
  align-items: flex-start;
  gap: 2rem;
  flex-wrap: wrap;
}

.case-content-left {
  flex: 1;
  min-width: 300px;
}

/* Sticky Quote Card */
.case-quote-card {
  position: sticky;
  top: 100px;
  background-color: #bb1a1a;
  color: #000000;
  padding: 2rem;
  border-radius: 0;
  width: 320px;
  max-width: 100%;
  align-self: flex-start;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 40px), calc(100% - 40px) 100%, 0 100%);
}

.case-quote-card::after {
  content: "";
  position: absolute;
  bottom: 0;
  right: 0;
  border-width: 40px 40px 0 0;
  border-style: solid;
  border-color: #000000 transparent transparent transparent;
}

.quote-text {
  font-size: 1rem;
  font-style: italic;
  line-height: 1.6;
  color: white;
}

.quote-author {
  font-weight: 600;
  color: #fff;
  margin-top: 1rem;
}

/* Responsive handling */
@media (max-width: 900px) {
  .case-flex {
    flex-direction: column;
  }

  .case-quote-card {
    position: static;
    width: 100%;
    clip-path: none;
    border-radius: 12px;
  }

  .case-quote-card::after {
    display: none;
  }
}

.case-content-intro {
  font-size: 1rem;
  margin-bottom: 1rem;
}

.case-content-item {
  padding: 1rem 0;
}

.case-content-item h3 {
  font-size: 1.5rem;
  font-weight: 600;
  margin: 0;
}

.case-content-item p {
  margin-bottom: 10px;
  font-size: 1rem;
  line-height: 1.6;
}

.case-sub-item {
  padding: 1rem 0;
}

.case-sub-item h4 {
  font-size: 1rem;
  font-weight: 600;
  color: #222;
  margin: 0;
}

.sub-list {
  list-style-type: none;
  padding-left: 0px;
}

.sub-list li {
  margin-bottom: 16px;
  font-size: 1rem;
  line-height: 1.6;
}

.sub-list strong {
  color: #000;
}
/* ====== RESPONSIVE: ≤768px (tablets & small laptops) ====== */
@media (max-width: 900px) {
  /* MK section */
  .mk-section { padding: 0 16px; }
  .mk-title { font-size: 2.4rem; padding: 1.25rem 0; margin-bottom: 14px; }
  .mk-info p { font-size: 16px; }

  .mk-image img { border-radius: 8px; }

  /* Summary section */
  .summary-section { padding: 0 16px 12px; }
  .summary-title { font-size: 1.6rem; }
  .summary-desc { font-size: 16px; margin-bottom: 18px; }

  /* Make table scroll horizontally on small screens (no HTML change needed) */
  .summary-section { overflow-x: auto; }
  .summary-table { min-width: 340px; font-size: 1rem; }

  /* Case content */
  .case-content-section { padding: 2.5rem 16px; }
  .case-content-title { font-size: 2rem; }

  .case-flex { gap: 1.25rem; }
  .case-content-left { min-width: 0; }
  /* Content text */
  .case-content-intro,
  .case-content-item p,
  .sub-list li { font-size: 1rem; line-height: 1.55; }

  .case-content-item h3 { font-size: 1.25rem; }
  .case-sub-item{padding: 0;
  }
  .case-sub-item h4 { font-size: 1rem; }
}

/* ====== RESPONSIVE: ≤486px (phones) ====== */
@media (max-width: 486px) {
  /* MK section */
  .mk-section { padding: 0 14px; }
  .mk-title { font-size: 1.8rem; padding: 1rem 0; margin-bottom: 10px; }
  .mk-info p { font-size: 15px; }

  .mk-image img { border-radius: 6px; }

  /* Summary section */
  .summary-section { padding: 0 14px 10px; }
  .summary-title { font-size: 1.35rem; }
  .summary-desc { font-size: 15px; margin-bottom: 14px; }

  /* Table: keep scrollable and reduce paddings for readability */
  .summary-table { min-width: 300px; font-size: 13px; }
  .summary-table th,
  .summary-table td { padding: 10px; }

  /* Case content */
  .case-content-section { padding: 2rem 14px; }
  .case-content-title { font-size: 1.6rem; }

  /* Stack layout firmly on phones */
  .case-flex { flex-direction: column; gap: 1rem; }

  .quote-text { font-size: 15px; line-height: 1.5; }
  .quote-author { font-size: 15px; }

  .case-content-intro,
  .case-content-item p,
  .sub-list li { font-size: 0.98rem; line-height: 1.5; }

  .case-content-item { padding: 0.75rem 0; }
  .case-content-item h3 { font-size: 1.1rem; }
  .case-sub-item h4 { font-size: 0.95rem; }
}

/* Hide desktop quote on mobile */
.case-quote-card {
  display: block;
}

.mobile-quote {
  display: none;
}

/* Mobile styling */
@media (max-width: 900px) {
  .case-quote-card {
    display: none;
  }

  .mobile-quote {
    display: block;
    background-color: #bb1a1a;
    color: #fff;
    padding: 1.5rem;
    margin: 2rem 0;
  }

  .mobile-quote-content {
    display: flex;
    align-items: center;
    gap: 1rem;
  }

  .mobile-quote-logo {
    width: 100px;
    height: 100px;
    object-fit: cover;
    background-color: #fff;
    flex-shrink: 0;
  }

  .mobile-quote-quote {
    font-size: 15px;
    line-height: 1.5;
    font-weight: 400;
    margin-bottom: 0.5rem;
  }

  .mobile-quote-author {
    font-size: 15px;
    font-weight: 600;
  }
}



/* Mobile styling */
@media (max-width: 486px) {
  .case-quote-card {
    display: none;
  }

  .mobile-quote {
    display: block;
    background-color: #bb1a1a;
    color: #fff;
    padding: 1rem;
    margin: 1rem 0;
  }

  .mobile-quote-logo {
    width: 110px;
    height: 110px;
    object-fit: cover;
    background-color: #fff;
    flex-shrink: 0;
  }

  .mobile-quote-quote {
    font-size: 12px;
    line-height: 1.5;
    font-weight: 400;
    margin-bottom: 0.5rem;
  }

  .mobile-quote-author {
    font-size: 13px;
    font-weight: 600;
  }
}
