/* style/success-stories.css */
:root {
    --primary-color: #1A202C;
    --secondary-color: #FFD700;
    --text-light: #F7FAFC;
    --text-dark: #1A202C;
    --background-dark: #1A202C;
    --background-light: #FFFFFF;
    --border-color: #3A4750;
    --accent-dark: #CCAA00;
}

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

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

.page-success-stories section {
    padding: 60px 0;
    text-align: center;
}

.page-success-stories section:nth-of-type(even) {
    background-color: #2D3748; /* Slightly lighter dark for contrast */
}

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

.page-success-stories h1 {
    font-size: 3.2em;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

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

.page-success-stories h3 {
    font-size: 1.8em;
    color: var(--text-light);
    margin-top: 25px;
    margin-bottom: 15px;
}

.page-success-stories p {
    font-size: 1.1em;
    color: var(--text-light);
    margin-bottom: 20px;
}

.page-success-stories a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-success-stories a:hover {
    color: var(--accent-dark);
    text-decoration: underline;
}

.page-success-stories .cta-button {
    display: inline-block;
    padding: 15px 40px;
    background: var(--secondary-color);
    color: var(--text-dark);
    text-decoration: none;
    border-radius: 8px;
    font-size: 1.2em;
    font-weight: bold;
    margin-top: 30px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4);
}

.page-success-stories .cta-button:hover {
    background: var(--accent-dark);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.6);
}

/* Hero Section */
.page-success-stories .hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 80px 20px;
    background: linear-gradient(135deg, var(--background-dark), #2D3748);
}

.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-bottom: 30px;
}

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

.page-success-stories .hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 100%;
}

.page-success-stories .hero-content h1 {
    color: var(--secondary-color);
    font-size: 3.8em;
    margin-bottom: 25px;
}

.page-success-stories .hero-content p {
    font-size: 1.3em;
    max-width: 900px;
    margin: 0 auto 30px auto;
    color: var(--text-light);
}

/* Introduction Section */
.page-success-stories .introduction-section {
    background-color: var(--background-dark);
    padding: 80px 0;
}

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

.page-success-stories .feature-item {
    background-color: #2D3748;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.page-success-stories .feature-item img {
    width: 100%;
    max-width: 300px;
    height: auto;
    border-radius: 8px;
    margin-bottom: 20px;
    object-fit: cover;
}

.page-success-stories .feature-item h3 {
    color: var(--secondary-color);
    font-size: 1.6em;
}

.page-success-stories .feature-item p {
    font-size: 1em;
    color: var(--text-light);
}

/* Success Stories Grid */
.page-success-stories .success-stories-grid {
    background-color: #2D3748;
    padding: 80px 0;
}

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

.page-success-stories .story-card {
    background-color: var(--background-dark);
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    text-align: left;
    transition: transform 0.3s ease;
}

.page-success-stories .story-card:hover {
    transform: translateY(-5px);
}

.page-success-stories .story-card img {
    width: 100%;
    height: 250px; /* Fixed height for consistency */
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
}

.page-success-stories .story-card h3 {
    color: var(--secondary-color);
    font-size: 1.5em;
    margin-bottom: 15px;
}

.page-success-stories .story-card h3 a {
    color: var(--secondary-color);
    text-decoration: none;
}

.page-success-stories .story-card h3 a:hover {
    text-decoration: underline;
}

.page-success-stories .story-card p {
    font-size: 1em;
    color: var(--text-light);
}

/* Tips Section */
.page-success-stories .tips-section {
    background-color: var(--background-dark);
    padding: 80px 0;
}

.page-success-stories .tips-list {
    list-style: none;
    padding: 0;
    margin-top: 40px;
    text-align: left;
}

.page-success-stories .tips-list li {
    background-color: #2D3748;
    padding: 30px;
    border-radius: 10px;
    margin-bottom: 20px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.page-success-stories .tips-list li h3 {
    color: var(--secondary-color);
    font-size: 1.6em;
    margin-top: 0;
}

.page-success-stories .tips-list li p {
    font-size: 1.05em;
    color: var(--text-light);
}

/* CTA Bottom Section */
.page-success-stories .cta-bottom-section {
    background-color: #2D3748;
    padding: 80px 0;
}

.page-success-stories .cta-bottom-section h2 {
    color: var(--secondary-color);
}

.page-success-stories .cta-bottom-section p {
    max-width: 800px;
    margin: 0 auto 30px auto;
}

/* FAQ Section */
.page-success-stories .faq-section {
    background-color: var(--background-dark);
    padding: 80px 0;
}

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

.page-success-stories .faq-item {
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-success-stories .faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: #2D3748;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.page-success-stories .faq-question:hover {
    background: #3A4750;
    border-color: var(--secondary-color);
}

.page-success-stories .faq-question h3 {
    margin: 0;
    font-size: 1.2em;
    color: var(--text-light);
}

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

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

.page-success-stories .faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out, padding 0.4s ease-out;
    padding: 0 20px;
    background: var(--background-dark);
    color: var(--text-light);
    border-radius: 0 0 8px 8px;
}

.page-success-stories .faq-item.active .faq-answer {
    max-height: 500px; /* Sufficient height to show content */
    padding: 20px;
    border-top: 1px solid var(--border-color);
}

.page-success-stories .faq-answer p {
    margin-bottom: 0;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-success-stories h1 {
        font-size: 2.8em;
    }
    .page-success-stories h2 {
        font-size: 2.2em;
    }
    .page-success-stories h3 {
        font-size: 1.5em;
    }
    .page-success-stories .hero-content p {
        font-size: 1.1em;
    }
}

@media (max-width: 768px) {
    .page-success-stories section {
        padding: 40px 0;
    }
    .page-success-stories h1 {
        font-size: 2.2em;
    }
    .page-success-stories h2 {
        font-size: 1.8em;
    }
    .page-success-stories h3 {
        font-size: 1.3em;
    }
    .page-success-stories .hero-content p {
        font-size: 1em;
    }
    .page-success-stories .cta-button {
        padding: 12px 30px;
        font-size: 1em;
    }
    .page-success-stories .feature-grid, .page-success-stories .story-card-grid {
        grid-template-columns: 1fr;
    }
    .page-success-stories .story-card img {
        height: 200px;
    }
    .page-success-stories .faq-question {
        padding: 15px;
    }
    .page-success-stories .faq-question h3 {
        font-size: 1.1em;
    }
    .page-success-stories .faq-toggle {
        font-size: 20px;
    }
    .page-success-stories .faq-answer {
        padding: 0 15px;
    }
    .page-success-stories .faq-item.active .faq-answer {
        padding: 15px;
    }
}

@media (max-width: 480px) {
    .page-success-stories h1 {
        font-size: 1.8em;
    }
    .page-success-stories h2 {
        font-size: 1.5em;
    }
    .page-success-stories h3 {
        font-size: 1.1em;
    }
    .page-success-stories p {
        font-size: 0.95em;
    }
    .page-success-stories .hero-image img {
        border-radius: 8px;
    }
}