/* Base Styles */
:root {
    --primary-pink: #ffcfd4;
    --primary-blue: #f0f7ff;
    --text-color: #1d3666;
    --text-light: #4a5568;
    --background-light: #ffffff;
    --white: #ffffff;
    --gray-100: #f7fafc;
    --gray-200: #edf2f7;
    --gray-300: #e2e8f0;
    --gray-400: #cbd5e0;
    --border-color: #e2e8f0;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --border-radius: 8px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--background-light);
}

.container {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 20px;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700 !important;
    line-height: 1.3 !important;
    margin-bottom: 1rem !important;
    color: var(--text-color) !important;
}

h1 {
    font-size: 2.5rem !important;
    margin-bottom: 0.5rem !important;
}

h2 {
    font-size: 1.875rem !important;
    margin-top: 2.5rem !important;
    margin-bottom: 1.25rem !important;
    position: relative !important;
    padding-bottom: 0.75rem !important;
}

h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background-color: var(--primary-pink);
}

h3 {
    font-size: 1.5rem !important;
    margin-bottom: 1rem !important;
}

p {
    margin-bottom: 1.5rem !important;
    color: var(--text-color) !important;
}

a {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #2a4a8f;
}

ul,
ol {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

li {
    margin-bottom: 0.75rem;
    color: var(--text-color);
}

img {
    max-width: 100%;
    height: auto;
}

/* Button Styles */
.btn-primary,
.btn-secondary {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-primary {
    background-color: var(--primary-pink) !important;
    color: var(--text-color) !important;
    border: none !important;
}

.btn-primary:hover {
    background-color: #ffc0c6 !important;
    transform: translateY(-2px) !important;
    box-shadow: var(--shadow) !important;
}

.btn-secondary {
    background-color: transparent !important;
    color: var(--text-color) !important;
    border: 2px solid var(--text-color) !important;
}

.btn-secondary:hover {
    background-color: var(--primary-blue) !important;
    transform: translateY(-2px) !important;
}

/* Hero Section */
.hero {
    background-color: var(--primary-blue);
    padding: 3rem 0;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 300px;
    height: 300px;
    background-color: var(--primary-pink);
    border-radius: 50%;
    opacity: 0.3;
    transform: translate(150px, -150px);
}

.breadcrumbs {
    margin-bottom: 1.5rem;
    color: var(--text-color);
    font-size: 0.875rem;
}

.breadcrumbs a {
    color: var(--text-color);
    margin: 0 0.5rem;
}

.breadcrumbs a:first-child {
    margin-left: 0;
}

.breadcrumbs a:hover {
    color: #2a4a8f;
}

.case-study-content ul,
.case-study-content ol {
    margin-bottom: 1.5rem !important;
    padding-left: 1.5rem !important;
}

.case-study-content ul {
    list-style-type: disc;
}

.subtitle {
    font-size: 1.25rem;
    color: var(--text-color);
    max-width: 800px;
    margin-bottom: 2rem;
}

/* Case Study Content */
.case-study {
    padding: 3rem 0;
}

.case-study-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
}

.case-study-content {
    background-color: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    padding: 2.5rem;
}

.case-study-intro {
    font-size: 1.125rem;
    border-left: 4px solid var(--primary-pink);
    padding-left: 1.5rem;
    margin-bottom: 2.5rem;
}

.case-study-section {
    margin-bottom: 2.5rem;
}

.case-study-section:last-child {
    margin-bottom: 0;
}

.case-study-conclusion {
    background-color: var(--primary-blue);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    margin-top: 2.5rem;
}

.case-study-conclusion p {
    font-weight: 500;
    margin-bottom: 1rem;
}

.case-study-conclusion ul {
    margin-bottom: 1rem;
}

.case-study-conclusion p:last-child {
    margin-top: 1rem;
    font-weight: 700;
    margin-bottom: 0;
}

/* Stats Container */
.stats-container {
    display: flex;
    justify-content: space-between;
    margin: 2rem 0;
    flex-wrap: wrap;
}

.stat-box {
    background-color: var(--primary-blue);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    text-align: center;
    flex: 1;
    min-width: 150px;
    margin: 0.5rem;
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat-box:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-color);
    font-weight: 500;
}

/* Sidebar */
.case-study-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.sidebar-card {
    background-color: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    padding: 1.5rem;
}

.sidebar-card h3 {
    margin-top: 0;
    font-size: 1.25rem;
    position: relative;
    padding-bottom: 0.75rem;
    margin-bottom: 1.25rem;
}

.sidebar-card h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: var(--primary-pink);
}

.result-item {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.result-item:last-child {
    margin-bottom: 0;
}

.result-icon {
    color: var(--primary-pink);
    margin-right: 1rem;
    flex-shrink: 0;
}

.result-text {
    font-size: 0.9375rem;
}

.cta-card {
    background-color: var(--primary-pink);
    margin-top: auto;
}

.cta-card .btn-primary {
    margin-top: 1rem;
    width: 100%;
    background-color: var(--white) !important;
}

.cta-card .btn-primary:hover {
    background-color: var(--gray-100) !important;
}

/* CTA Section */
.cta-section {
    background-color: var(--text-color);
    color: var(--white);
    padding: 4rem 0;
    text-align: center;
}

.cta-content {
    max-width: 800px;
    margin: 0 auto;
}

.cta-section h2 {
    color: var(--white) !important;
    margin-bottom: 1.5rem !important;
}

/* Remove the line after h2 in the CTA section */
.cta-section h2::after {
    display: none;
}

.cta-section p {
    color: var(--gray-200) !important;
    margin-bottom: 2rem !important;
    font-size: 1.125rem !important;
}

.cta-section .btn-primary {
    background-color: var(--primary-pink);
    color: var(--text-color);
    margin-right: 1rem;
}

.cta-section .btn-primary:hover {
    background-color: #ffc0c6 !important;
}

.cta-section .btn-secondary {
    border-color: var(--white) !important;
    color: var(--white)  !important;
}

.cta-section .btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.1) !important;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .case-study-grid {
        grid-template-columns: 1fr;
    }

    .case-study-sidebar {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }

    .cta-card {
        grid-column: 1 / -1;
    }
}

@media (max-width: 768px) {
    .stats-container {
        flex-direction: column;
    }

    .stat-box {
        margin-bottom: 1rem;
    }

    .cta-section .btn-primary,
    .cta-section .btn-secondary {
        display: block;
        margin: 0 auto 1rem;
        max-width: 250px;
    }
}

@media (max-width: 576px) {
    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    .case-study-content {
        padding: 1.5rem;
    }

    .case-study-sidebar {
        grid-template-columns: 1fr;
    }
}

/* Print Styles */
@media print {
    body {
        background-color: var(--white);
        color: #000;
    }

    .container {
        max-width: 100%;
        padding: 0;
    }

    .hero {
        background-color: transparent;
        padding: 1rem 0;
    }

    .hero::before {
        display: none;
    }

    .case-study-grid {
        grid-template-columns: 1fr;
    }

    .case-study-content {
        box-shadow: none;
        padding: 0;
    }

    .case-study-sidebar {
        display: none;
    }

    .cta-section {
        display: none;
    }

    h2::after {
        background-color: #000;
    }

    .btn-primary,
    .btn-secondary {
        display: none;
    }

    .stat-box {
        background-color: transparent;
        box-shadow: none;
    }

    .case-study-conclusion {
        background-color: transparent;
        border: 1px solid #000;
    }
}

/* ==================== Case Studies (listing) page ==================== */

body.case-studies-page {
    background-color: #f0f7ff;
}

.case-studies-page .container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 10px;
}

/* Hero Section */
.hero-section {
  background: linear-gradient(135deg, #f0f7ff 0%, #e6f3ff 100%);
  padding: 25px 0;
  text-align: center;
}

.hero-content h1 {
  font-size: 3.5rem;
  font-weight: 700;
  color: #1d3666;
  margin-bottom: 20px;
}

.hero-content p {
  font-size: 1.2rem;
  color: #1d3666;
  opacity: 0.8;
  max-width: 600px;
  margin: 0 auto;
}

/* Case Studies Section */
.case-studies-section {
  padding: 100px 0;
}

.case-studies-grid {
  display: grid;
  gap: 60px;
}

.case-study-card {
  background: white;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(29, 54, 102, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: grid;
  grid-template-columns: 400px 1fr;
  gap: 40px;
  padding: 40px;
  align-items: start;
}

.case-study-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 60px rgba(29, 54, 102, 0.15);
}

.case-study-image {
  width: 400px;
  height: 400px;
  border-radius: 15px;
  overflow: hidden;
  position: relative;
}

.case-study-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.case-study-card:hover .case-study-image img {
  transform: scale(1.05);
}

.case-study-content h3 {
  font-size: 2rem;
  font-weight: 600;
  color: #1d3666;
  margin-bottom: 15px;
}

.hospital-description {
  font-size: 1rem;
  line-height: 1.7;
  color: #1d3666;
  opacity: 0.8;
  margin-bottom: 30px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 30px;
}

.stat-item {
  text-align: center;
  padding: 20px;
  background: linear-gradient(135deg, #ffcfd4 0%, #ffe0e3 100%);
  border-radius: 12px;
  transition: transform 0.3s ease;
}

.stat-item:hover {
  transform: translateY(-3px);
}

.case-studies-page .stat-number {
  display: block;
  font-size: 1.8rem;
  font-weight: 700;
  color: #1d3666;
  margin-bottom: 5px;
}

.case-studies-page .stat-label {
  font-size: 0.9rem;
  color: #1d3666;
  opacity: 0.7;
  font-weight: 500;
}

.achievements h4 {
  font-size: 1.3rem;
  font-weight: 600;
  color: #1d3666;
  margin-bottom: 15px;
}

.achievements ul {
  list-style: none;
}

.achievements li {
  position: relative;
  padding-left: 25px;
  margin-bottom: 10px;
  color: #1d3666;
  opacity: 0.8;
}

.achievements li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #ffcfd4;
  font-weight: bold;
  font-size: 1.1rem;
}

/* <CHANGE> Added Read More button styles */
.read-more-container {
  margin-top: 30px;
  text-align: left;
}

.read-more-btn {
  background: linear-gradient(135deg, #1d3666 0%, #2a4a7a 100%);
  color: white;
  border: none;
  padding: 15px 30px;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  text-decoration: none;
}

.read-more-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(29, 54, 102, 0.3);
}

.read-more-btn .arrow {
  transition: transform 0.3s ease;
  font-size: 1.2rem;
}

.read-more-btn:hover .arrow {
  transform: translateX(5px);
}

/* <CHANGE> Updated testimonials section with carousel styles */
/* Testimonials Section */
.testimonials-section {
  background: white;
  padding: 100px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-header h2 {
  font-size: 2.5rem;
  font-weight: 700;
  color: #1d3666;
  margin-bottom: 15px;
}

.section-header p {
  font-size: 1.1rem;
  color: #1d3666;
  opacity: 0.7;
  max-width: 600px;
  margin: 0 auto;
}

.testimonials-carousel {
  position: relative;
  display: flex;
  align-items: center;
  gap: 20px;
}

.testimonials-container {
  flex: 1;
  overflow: hidden;
  border-radius: 15px;
}

.testimonials-track {
  display: flex;
  transition: transform 0.5s ease;
  gap: 20px;
}

.testimonial-card {
  background: #f0f7ff;
  border-radius: 15px;
  padding: 30px;
  text-align: center;
  transition: transform 0.3s ease;
  flex: 0 0 calc(33.333% - 14px);
  min-width: 0;
}

.testimonial-card:hover {
  transform: translateY(-5px);
}

.video-container {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 20px;
}

.video-container iframe {
  width: 100%;
  height: 100%;
}

.testimonial-info h4 {
  font-size: 1.2rem;
  font-weight: 600;
  color: #1d3666;
  margin-bottom: 5px;
}

.testimonial-info p {
  font-size: 0.95rem;
  color: #1d3666;
  opacity: 0.7;
}

.carousel-btn {
  background: linear-gradient(135deg, #1d3666 0%, #2a4a7a 100%);
  color: white;
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  font-size: 1.5rem;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.carousel-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 5px 20px rgba(29, 54, 102, 0.3);
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 30px;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #e0e0e0;
  cursor: pointer;
  transition: all 0.3s ease;
}

.dot.active {
  background: #1d3666;
  transform: scale(1.2);
}

/* CTA Section */
.case-studies-page .cta-section {
  background: linear-gradient(135deg, #1d3666 0%, #2a4a7a 100%);
  padding: 80px 0;
  text-align: center;
}

.cta-content h2 {
  font-size: 2.5rem;
  font-weight: 700;
  color: white;
  margin-bottom: 20px;
}

.cta-content p {
  font-size: 1.1rem;
  color: white;
  opacity: 0.9;
  max-width: 600px;
  margin: 0 auto 40px;
}

.cta-button {
  background: linear-gradient(135deg, #ffcfd4 0%, #ff9faa 100%);
  color: #1d3666;
  border: none;
  padding: 18px 40px;
  font-size: 1.1rem;
  font-weight: 600;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(255, 207, 212, 0.4);
}

/* <CHANGE> Enhanced mobile responsiveness */
/* Mobile Responsiveness */
@media (max-width: 1024px) {
  .case-study-card {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .case-study-image {
    width: 300px;
    height: 300px;
    margin: 0 auto;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .testimonial-card {
    flex: 0 0 calc(50% - 10px);
  }
}

@media (max-width: 768px) {
  .hero-content h1 {
    font-size: 2.5rem;
  }

  .case-study-image {
    width: 250px;
    height: 250px;
  }

  .case-study-card {
    padding: 30px 20px;
  }

  .stats-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .stat-item {
    padding: 15px;
  }

  .section-header h2 {
    font-size: 2rem;
  }

  .cta-content h2 {
    font-size: 2rem;
  }

  /* <CHANGE> Mobile-specific testimonial carousel styles */
  .testimonials-carousel {
    gap: 10px;
  }

  .testimonial-card {
    flex: 0 0 100%;
    margin: 0;
  }

  .carousel-btn {
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
  }

  .testimonials-track {
    gap: 0;
  }
}

@media (max-width: 480px) {
  .case-studies-page .container {
    padding: 0 15px;
  }

  .hero-content h1 {
    font-size: 2rem;
  }

  .case-study-image {
    width: 200px;
    height: 200px;
  }

  .case-studies-section {
    padding: 60px 0;
  }

  .testimonials-section {
    padding: 60px 0;
  }

  .case-studies-page .cta-section {
    padding: 60px 0;
  }

  .read-more-btn {
    padding: 12px 25px;
    font-size: 0.9rem;
  }

  .carousel-btn {
    width: 35px;
    height: 35px;
    font-size: 1rem;
  }
}