/* General Styling */
.case-study-hero {
  padding: calc(4rem + 120px) 2rem 4rem;
}
section {
  padding: 4rem 2rem;
}
main {
  width: 100%;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

article {
  width: 100%;
  max-width: 1200px;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  font-family: "DMSans", sans-serif;
  padding: 0;
}
h1 {
  color: var(--primary-color);
}
h2 {
  padding-bottom: 1rem;
  color: var(--primary-color);
}
h3 {
  color: var(--accent-color);
  font-family: "Space Mono", monospace;
  padding-bottom: 1rem;
}

/* Hero Section */
.case-study-hero {
  display: grid;
  grid-template-columns: 33% 66%;
  gap: 2rem;
  align-items: center;
  margin-bottom: 2rem;
  width: 100%;
}

.hero-left {
  position: relative;
}
.image-container {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}
.customer-logo {
  position: absolute;
  bottom: 10px;
  right: 10px;
  width: 25%;
  max-width: 100px;
}
.customer-img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 1rem;
}

.customer-name {
  text-align: center;
  margin-top: 1rem;
  font-size: 1.2rem;
}

.hero-right {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding-left: 1rem;
}
.case-study-title {
  font-size: 1.5rem;
  font-weight: bold;
  margin-bottom: 1rem;
}
.case-study-ingress {
  margin-top: 1rem;
  font-size: 1.2rem;
  color: var(--text-color);
}

/* Alternating Content Sections */
.case-study-content {
  display: grid;
  grid-template-columns: 33% 66%;
  gap: 2rem;
  margin-bottom: 2rem;
  width: 100%; /* Ensures content spans full container width */
}

.case-study-content .content-left {
  text-align: left;
  padding-right: 1rem;
}

.case-study-content .content-right {
  padding-left: 1rem;
  background-color: var(--neutral-color);
  color: var(--text-color);
}

/* Customer Review Section */
.case-study-review {
  text-align: center;
  margin-top: 3rem;
  padding: 2rem;
  width: 100%; /* Ensures review section spans full width */
  max-width: 800px; /* Optional: limits the review section width */
}

.review-header h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.review-content {
  font-size: 1rem;
  color: var(--text-color);
  text-align: left;
  font-family: "DMSans", sans-serif;
  font-style: italic;
}
.review-profile {
  display: flex;
  align-items: center;
  justify-content: start;
  margin-top: 2rem;
  padding-bottom: 2rem;
}
.profile-photo {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  margin-right: 1rem;
}
.profile-info {
  text-align: left;
}
.profile-info .employee-name {
  font-size: 1.2rem;
  font-weight: bold;
  margin: 0;
  color: var(--primary-color);
}
.profile-info .employee-title {
  font-size: 1rem;
  color: #777;
  margin-top: 0.5rem;
}

/* Call-to-Action Section */
.call-to-action {
  display: flex;
  flex-direction: column;
  background: var(--accent-blue);
  padding: 4rem 2rem;
  text-align: center;
}
.call-to-action .container {
  display: flex;
  flex-direction: column;
}

.call-to-action h2 {
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 1.5rem;
}

.call-to-action p {
  font-size: 1.2rem;
  color: var(--primary-color);
  margin-bottom: 2rem;
}

.call-to-action .btn {
  background: var(--secondary-color);
  color: var(--primary-color);
  padding: 1rem 2rem;
  font-size: 1.2rem;
}

.call-to-action .btn:hover {
  background: var(--accent-color);
  color: var(--neutral-color);
}

/* Responsive design */
@media (max-width: 768px) {
  .case-study-hero,
  .case-study-content {
    grid-template-columns: 1fr;
  }
}
