/* style/user-stories.css */
:root {
    --primary-color: #1A73E8;
    --secondary-color: #FFD700;
    --text-color-light: #ffffff;
    --text-color-dark: #333333;
    --background-light: #f1f3f5;
    --background-dark: var(--dark-bg-1, #0d0d0d);
    --card-bg-light: #ffffff;
    --border-color: #e0e0e0;
    --shadow-color: rgba(0, 0, 0, 0.1);
}

.page-user-stories {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--text-color-dark);
    background: var(--background-light);
}

.page-user-stories__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 20px;
    padding-top: 180px; /* Desktop: Adjust based on fixed header height */
    background: linear-gradient(135deg, var(--primary-color), #0d0d0d);
    color: var(--text-color-light);
}

.page-user-stories__dark-bg {
    background: var(--background-dark);
    color: var(--text-color-light);
}

.page-user-stories__light-bg {
    background: var(--background-light);
    color: var(--text-color-dark);
}

.page-user-stories__hero-container {
    position: relative;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.page-user-stories__hero-image {
    width: 100%;
    max-width: 800px;
    height: auto;
    display: block;
    border-radius: 12px;
    object-fit: cover;
    margin-bottom: 40px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.page-user-stories__hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 100%;
}

.page-user-stories__main-title {
    font-size: 3.2em;
    font-weight: bold;
    margin-bottom: 20px;
    line-height: 1.2;
    color: var(--text-color-light);
}

.page-user-stories__hero-description {
    font-size: 1.2em;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: rgba(255, 255, 255, 0.9);
}

.page-user-stories__cta-button {
    display: inline-block;
    padding: 15px 40px;
    text-decoration: none;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: bold;
    margin-top: 20px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px var(--shadow-color);
}

.page-user-stories__btn-primary {
    background: var(--primary-color);
    color: var(--text-color-light);
    border: 2px solid transparent;
}

.page-user-stories__btn-primary:hover {
    background: darken(var(--primary-color), 10%);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.page-user-stories__btn-secondary {
    background: var(--secondary-color);
    color: var(--text-color-dark);
    border: 2px solid var(--secondary-color);
}

.page-user-stories__btn-secondary:hover {
    background: darken(var(--secondary-color), 10%);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.page-user-stories__section {
    padding: 80px 20px;
}

.page-user-stories__container {
    max-width: 1200px;
    margin: 0 auto;
}

.page-user-stories__section-title {
    font-size: 2.5em;
    font-weight: bold;
    text-align: center;
    margin-bottom: 40px;
    color: inherit; /* Inherit color from parent section (dark/light bg) */
}

.page-user-stories__text-block {
    font-size: 1.1em;
    line-height: 1.7;
    margin-bottom: 20px;
    text-align: justify;
    color: inherit;
}

.page-user-stories__text-block strong {
    font-weight: bold;
    color: inherit;
}

.page-user-stories__intro-section {
    background: var(--background-light);
    color: var(--text-color-dark);
}

.page-user-stories__stories-section {
    background: var(--background-dark);
    color: var(--text-color-light);
}

.page-user-stories__story-card {
    display: flex;
    align-items: center;
    background: var(--card-bg-light);
    border-radius: 12px;
    box-shadow: 0 4px 15px var(--shadow-color);
    margin-bottom: 40px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: var(--text-color-dark);
}

.page-user-stories__story-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.page-user-stories__story-card:nth-child(even) {
    flex-direction: row-reverse;
}

.page-user-stories__story-image {
    width: 40%;
    height: 400px;
    object-fit: cover;
    display: block;
}

.page-user-stories__story-content {
    width: 60%;
    padding: 40px;
}

.page-user-stories__story-title {
    font-size: 1.8em;
    font-weight: bold;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.page-user-stories__story-text {
    font-size: 1em;
    line-height: 1.7;
    margin-bottom: 15px;
    text-align: justify;
}

.page-user-stories__benefits-section {
    background: var(--background-light);
    color: var(--text-color-dark);
}

.page-user-stories__benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.page-user-stories__benefit-item {
    background: var(--card-bg-light);
    border-radius: 12px;
    box-shadow: 0 4px 15px var(--shadow-color);
    padding: 30px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: var(--text-color-dark);
}

.page-user-stories__benefit-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.page-user-stories__benefit-icon {
    width: 120px;
    height: 120px;
    object-fit: contain;
    margin: 0 auto 20px auto;
    display: block;
}

.page-user-stories__benefit-title {
    font-size: 1.5em;
    font-weight: bold;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.page-user-stories__benefit-description {
    font-size: 1em;
    line-height: 1.7;
}

.page-user-stories__advice-section {
    background: var(--background-dark);
    color: var(--text-color-light);
}

.page-user-stories__advice-list {
    list-style: none;
    padding: 0;
    margin: 0 auto 40px auto;
    max-width: 900px;
}

.page-user-stories__advice-item {
    background: rgba(255, 255, 255, 0.1);
    border-left: 5px solid var(--secondary-color);
    padding: 20px;
    margin-bottom: 15px;
    border-radius: 8px;
    font-size: 1.1em;
    line-height: 1.7;
}

.page-user-stories__advice-item strong {
    color: var(--secondary-color);
}

.page-user-stories__cta-wrapper {
    text-align: center;
    margin-top: 40px;
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.page-user-stories__testimonials-section {
    background: var(--background-light);
    color: var(--text-color-dark);
}

.page-user-stories__testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.page-user-stories__testimonial-card {
    background: var(--card-bg-light);
    border-radius: 12px;
    box-shadow: 0 4px 15px var(--shadow-color);
    padding: 30px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: var(--text-color-dark);
}

.page-user-stories__testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.page-user-stories__testimonial-quote {
    font-size: 1.1em;
    font-style: italic;
    margin-bottom: 20px;
    line-height: 1.8;
    color: #555555;
}

.page-user-stories__testimonial-author {
    font-weight: bold;
    color: var(--primary-color);
    text-align: right;
}

.page-user-stories__faq-section {
    background: var(--background-dark);
    color: var(--text-color-light);
}

.page-user-stories__faq-list {
    max-width: 900px;
    margin: 0 auto;
}

.page-user-stories__faq-item {
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.05);
}

.page-user-stories__faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease, opacity 0.4s ease;
    padding: 0 20px;
    opacity: 0;
    color: rgba(255, 255, 255, 0.8);
}

.page-user-stories__faq-item.active .page-user-stories__faq-answer {
    max-height: 2000px !important;
    padding: 20px !important;
    opacity: 1;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 0 0 8px 8px;
}

.page-user-stories__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    cursor: pointer;
    user-select: none;
    transition: background-color 0.3s ease, border-color 0.3s ease;
    position: relative;
}

.page-user-stories__faq-question:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.25);
}

.page-user-stories__faq-question:active {
    background: rgba(255, 255, 255, 0.2);
}

.page-user-stories__faq-question h3 {
    margin: 0;
    padding: 0;
    flex: 1;
    font-size: 1.1em;
    font-weight: 600;
    line-height: 1.5;
    pointer-events: none;
    color: var(--text-color-light);
}

.page-user-stories__faq-toggle {
    font-size: 24px;
    font-weight: bold;
    line-height: 1;
    color: var(--secondary-color);
    transition: transform 0.3s ease, color 0.3s ease;
    flex-shrink: 0;
    margin-left: 15px;
    pointer-events: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
}

.page-user-stories__faq-item.active .page-user-stories__faq-toggle {
    color: var(--primary-color);
    transform: rotate(45deg); /* Change + to X */
}

/* Responsive design */
@media (max-width: 1024px) {
    .page-user-stories__main-title {
        font-size: 2.8em;
    }
    .page-user-stories__section-title {
        font-size: 2em;
    }
    .page-user-stories__story-image {
        height: 300px;
    }
    .page-user-stories__story-content {
        padding: 30px;
    }
    .page-user-stories__story-title {
        font-size: 1.5em;
    }
    .page-user-stories__benefit-icon {
        width: 100px;
        height: 100px;
    }
    .page-user-stories__benefit-title {
        font-size: 1.3em;
    }
    .page-user-stories__advice-item {
        font-size: 1em;
    }
    .page-user-stories__testimonial-quote {
        font-size: 1em;
    }
    .page-user-stories__faq-question h3 {
        font-size: 1em;
    }
}

@media (max-width: 768px) {
    .page-user-stories__hero-section {
        padding-top: 140px !important; /* Mobile: Adjust based on mobile fixed header height */
        padding-bottom: 40px;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-user-stories__hero-image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        border-radius: 8px;
        margin-bottom: 30px;
    }
    .page-user-stories__main-title {
        font-size: 2.2em;
    }
    .page-user-stories__hero-description {
        font-size: 1em;
    }
    .page-user-stories__cta-button {
        padding: 12px 30px;
        font-size: 1em;
    }
    .page-user-stories__section {
        padding: 40px 15px;
    }
    .page-user-stories__container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-user-stories__section-title {
        font-size: 1.8em;
        margin-bottom: 30px;
    }
    .page-user-stories__text-block {
        font-size: 0.95em;
    }
    .page-user-stories__story-card {
        flex-direction: column;
        align-items: flex-start;
    }
    .page-user-stories__story-card:nth-child(even) {
        flex-direction: column;
    }
    .page-user-stories__story-image {
        width: 100%;
        height: 250px;
        border-radius: 8px 8px 0 0;
    }
    .page-user-stories__story-content {
        width: 100%;
        padding: 25px;
    }
    .page-user-stories__story-title {
        font-size: 1.3em;
        margin-bottom: 15px;
    }
    .page-user-stories__story-text {
        font-size: 0.9em;
    }
    .page-user-stories__benefits-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .page-user-stories__benefit-item {
        padding: 25px;
    }
    .page-user-stories__benefit-icon {
        width: 80px;
        height: 80px;
    }
    .page-user-stories__benefit-title {
        font-size: 1.2em;
    }
    .page-user-stories__advice-item {
        font-size: 0.9em;
        padding: 15px;
    }
    .page-user-stories__cta-wrapper {
        flex-direction: column;
        gap: 15px;
    }
    .page-user-stories__testimonial-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .page-user-stories__testimonial-card {
        padding: 25px;
    }
    .page-user-stories__testimonial-quote {
        font-size: 0.95em;
    }
    .page-user-stories__faq-question {
        padding: 15px;
    }
    .page-user-stories__faq-question h3 {
        font-size: 0.95em;
    }
    .page-user-stories__faq-toggle {
        font-size: 20px;
        width: 24px;
        height: 24px;
    }
    .page-user-stories__faq-item.active .page-user-stories__faq-answer {
        padding: 15px !important;
    }
    .page-user-stories img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
}

/* Ensure contrast for specific elements */
.page-user-stories__story-title, .page-user-stories__benefit-title {
    color: var(--primary-color);
}
.page-user-stories__story-text a, .page-user-stories__advice-item a, .page-user-stories__faq-answer a {
    color: var(--secondary-color);
    text-decoration: underline;
}
.page-user-stories__story-text a:hover, .page-user-stories__advice-item a:hover, .page-user-stories__faq-answer a:hover {
    color: darken(var(--secondary-color), 10%);
}

/* General image responsive styles */
.page-user-stories img {
    max-width: 100%;
    height: auto;
    display: block;
}
.page-user-stories__container, .page-user-stories__section, .page-user-stories__card {
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
}