/* case-studies.css */

/* Remove the grid layout and make each case study a full-width section */
#case-studies-list .case-study-grid {
    display: flex;
    flex-direction: column;
    gap: 5rem; /* More space between studies */
}

.case-study-item {
    border: none; /* Remove card border */
    padding: 2rem;
    background-color: #f9fafb; /* Subtle background to contain the study */
    border-radius: 12px;
    border: 1px solid var(--border-soft);
}

/* Bigger, more impactful titles */
.case-study-item h2 {
    font-size: 2.5rem; /* Larger font size */
    margin-bottom: 0.5rem;
    line-height: 1.2;
    color: var(--text-main);
}

/* Style the sub-headers */
.case-study-item h3 {
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #5C4033;
    margin-top: 2rem;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Add a decorative element to sub-headers */
.case-study-item h3::before {
    content: '';
    display: block;
    width: 20px;
    height: 2px;
    background-color: #5C4033;
}

/* Improve paragraph readability */
.case-study-item p {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--text-soft);
    max-width: 75ch; /* Optimal reading line length */
}

/* Make the quote stand out */
.case-study-item .quote { /* I will add this class to the quote <p> */
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--text-main);
    border-left: 4px solid var(--accent-cyan);
    padding-left: 1.5rem;
    margin-top: 2.5rem;
    font-style: italic;
    position: relative;
}

/* Add a large quote mark */
.case-study-item .quote::before {
    content: '“';
    font-family: 'Times New Roman', Times, serif;
    font-size: 5rem;
    color: var(--accent-cyan);
    opacity: 0.1;
    position: absolute;
    left: -10px;
    top: -10px;
}

.section.text-center {
    display: flex;
    flex-direction: column;
    align-items: center; /* To jest kluczowa właściwość, która wyśrodkuje elementy */
    padding-top: 3rem;
    padding-bottom: 3rem;
    margin-bottom: 3rem;
}

/* Dodatkowe upewnienie się, że tekst wewnątrz elementów też jest wyśrodkowany */
.section.text-center h1,
.section.text-center .subtitle {
    text-align: center;
}

@media (max-width: 768px) {
  .case-study-item h2 {
    font-size: 1.8rem; /* Zmniejszenie na mobile */
  }

  .case-study-item .quote {
    font-size: 1.2rem; /* Zmniejszenie cytatu */
  }
}

