/* style/success-stories.css */
:root {
    --primary-color: #0056B3; /* Deep Blue */
    --secondary-color: #FFD700; /* Gold */
    --text-dark: #2c3e50;
    --text-light: #ecf0f1;
    --bg-light: #f8f9fa;
    --bg-dark: #34495e;
    --accent-color: #e74c3c;
}

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

.page-success-stories .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.page-success-stories h1,
.page-success-stories h2,
.page-success-stories h3 {
    color: var(--primary-color);
    margin-bottom: 20px;
}

.page-success-stories h1 {
    font-size: 3em;
    text-align: center;
    color: var(--text-light);
}

.page-success-stories h2 {
    font-size: 2.5em;
    text-align: center;
    margin-top: 40px;
    margin-bottom: 30px;
}

.page-success-stories h3 {
    font-size: 1.8em;
    margin-bottom: 15px;
}

.page-success-stories p {
    font-size: 1.1em;
    margin-bottom: 15px;
}

.page-success-stories .hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 20px;
    background: linear-gradient(135deg, var(--primary-color), #003366);
    color: var(--text-light);
    overflow: hidden;
}

.page-success-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-success-stories .hero-image {
    width: 100%;
    margin-top: 30px;
    order: 2; /* Image below content on mobile */
}

.page-success-stories .hero-image img {
    width: 100%;
    height: auto;
    max-width: 100%;
    display: block;
    border-radius: 8px;
    object-fit: cover;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.page-success-stories .hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 100%;
    order: 1; /* Content above image on mobile */
}

.page-success-stories .hero-content p {
    font-size: 1.2em;
    max-width: 800px;
    margin: 20px auto 30px auto;
}

.page-success-stories .cta-button {
    display: inline-block;
    padding: 15px 40px;
    background: var(--secondary-color);
    color: var(--primary-color);
    text-decoration: none;
    border-radius: 5px;
    font-size: 1.2em;
    font-weight: bold;
    margin-top: 20px;
    transition: all 0.3s ease;
    border: 2px solid var(--secondary-color);
}

.page-success-stories .cta-button:hover {
    background: #e6c200;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.page-success-stories .section-intro {
    background-color: var(--bg-light);
    padding: 60px 0;
}

.page-success-stories .features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-success-stories .feature-item {
    background-color: #ffffff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-success-stories .feature-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.page-success-stories .feature-item h3 {
    color: var(--primary-color);
    font-size: 1.5em;
    margin-bottom: 15px;
}

.page-success-stories .feature-image {
    width: 100%;
    max-width: 400px;
    height: 250px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.page-success-stories .section-stories {
    background-color: #f0f4f8;
    padding: 80px 0;
}

.page-success-stories .story-card {
    display: flex;
    align-items: center;
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    margin-bottom: 40px;
    overflow: hidden;
}

.page-success-stories .story-card.reverse {
    flex-direction: row-reverse;
}

.page-success-stories .story-image {
    width: 45%;
    height: 400px;
    object-fit: cover;
}

.page-success-stories .story-content {
    width: 55%;
    padding: 40px;
}

.page-success-stories .story-content h3 {
    color: var(--primary-color);
    font-size: 2em;
}

.page-success-stories .story-content p {
    font-size: 1.1em;
    margin-bottom: 20px;
}

.page-success-stories .story-button {
    display: inline-block;
    padding: 12px 25px;
    background: var(--primary-color);
    color: var(--text-light);
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.page-success-stories .story-button:hover {
    background: #004085;
    transform: translateY(-2px);
}

.page-success-stories .section-advice {
    background-color: var(--bg-light);
    padding: 60px 0;
}

.page-success-stories .advice-list {
    list-style: none;
    padding: 0;
    margin-top: 40px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.page-success-stories .advice-list li {
    background-color: #ffffff;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
    border-left: 5px solid var(--secondary-color);
    transition: transform 0.3s ease;
}

.page-success-stories .advice-list li:hover {
    transform: translateY(-3px);
}

.page-success-stories .advice-list li h3 {
    color: var(--primary-color);
    font-size: 1.4em;
    margin-bottom: 10px;
}

.page-success-stories .section-cta-final {
    background: linear-gradient(90deg, #004085, var(--primary-color));
    padding: 80px 20px;
    text-align: center;
    color: var(--text-light);
}

.page-success-stories .section-cta-final h2 {
    color: var(--secondary-color);
    font-size: 2.8em;
    margin-bottom: 25px;
}

.page-success-stories .section-cta-final p {
    font-size: 1.3em;
    max-width: 900px;
    margin: 0 auto 30px auto;
}

.page-success-stories .cta-button.large {
    padding: 18px 50px;
    font-size: 1.4em;
    background: var(--secondary-color);
    color: var(--primary-color);
    border: 2px solid var(--secondary-color);
}

.page-success-stories .cta-button.large:hover {
    background: #e6c200;
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.4);
}

.page-success-stories .section-faq {
    background-color: var(--bg-light);
    padding: 80px 0;
}

.page-success-stories .faq-list {
    margin-top: 40px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.faq-item {
    margin-bottom: 15px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    background-color: #ffffff;
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    background: #fff;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.faq-question:hover {
    background: #f5f5f5;
}

.faq-question h3 {
    margin: 0;
    font-size: 1.2em;
    color: var(--primary-color);
}

.faq-toggle {
    font-size: 24px;
    font-weight: bold;
    color: var(--primary-color);
    transition: transform 0.3s ease;
}

.faq-item.active .faq-toggle {
    transform: rotate(45deg);
    color: var(--accent-color);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out, padding 0.4s ease-out;
    padding: 0 25px;
    background: #f9f9f9;
    border-top: 1px solid #eee;
}

.faq-item.active .faq-answer {
    max-height: 500px; /* Sufficient height for content */
    padding: 25px;
    border-radius: 0 0 8px 8px;
}

.faq-answer p {
    margin: 0;
    color: var(--text-dark);
}

/* Responsive Design */
@media (max-width: 992px) {
    .page-success-stories h1 {
        font-size: 2.5em;
    }
    .page-success-stories h2 {
        font-size: 2em;
    }
    .page-success-stories .story-card {
        flex-direction: column;
    }
    .page-success-stories .story-card.reverse {
        flex-direction: column;
    }
    .page-success-stories .story-image,
    .page-success-stories .story-content {
        width: 100%;
    }
    .page-success-stories .story-image {
        height: 300px;
    }
    .page-success-stories .story-content {
        padding: 30px;
    }
    .page-success-stories .section-cta-final h2 {
        font-size: 2.2em;
    }
    .page-success-stories .cta-button.large {
        font-size: 1.2em;
        padding: 15px 40px;
    }
}

@media (max-width: 768px) {
    .page-success-stories h1 {
        font-size: 2em;
    }
    .page-success-stories h2 {
        font-size: 1.8em;
    }
    .page-success-stories h3 {
        font-size: 1.4em;
    }
    .page-success-stories p {
        font-size: 1em;
    }
    .page-success-stories .hero-section {
        padding: 40px 15px;
    }
    .page-success-stories .hero-content p {
        font-size: 1em;
    }
    .page-success-stories .cta-button {
        padding: 12px 30px;
        font-size: 1em;
    }
    .page-success-stories .features-grid {
        grid-template-columns: 1fr;
    }
    .page-success-stories .story-content {
        padding: 20px;
    }
    .page-success-stories .story-image {
        height: 250px;
    }
    .page-success-stories .advice-list {
        grid-template-columns: 1fr;
    }
    .page-success-stories .section-cta-final h2 {
        font-size: 1.8em;
    }
    .page-success-stories .section-cta-final p {
        font-size: 1.1em;
    }
    .page-success-stories .cta-button.large {
        font-size: 1.1em;
        padding: 12px 30px;
    }
    .faq-question {
        padding: 15px 20px;
    }
    .faq-question h3 {
        font-size: 1.1em;
    }
    .faq-answer {
        padding: 0 20px;
    }
    .faq-item.active .faq-answer {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .page-success-stories h1 {
        font-size: 1.8em;
    }
    .page-success-stories h2 {
        font-size: 1.6em;
    }
    .page-success-stories .hero-image {
        margin-top: 20px;
    }
    .page-success-stories .story-image {
        height: 200px;
    }
    .page-success-stories .story-content h3 {
        font-size: 1.5em;
    }
    .page-success-stories .story-button {
        padding: 10px 20px;
        font-size: 0.9em;
    }
    .page-success-stories .section-cta-final h2 {
        font-size: 1.6em;
    }
    .page-success-stories .section-cta-final p {
        font-size: 1em;
    }
    .page-success-stories .cta-button.large {
        font-size: 1em;
        padding: 10px 25px;
    }
}