/* style/success-stories.css */

/* Variables */
:root {
    --page-success-stories-primary-color: #0A2342; /* Deep Ocean Blue */
    --page-success-stories-secondary-color: #FFD700; /* Gold */
    --page-success-stories-text-light: #F8F8F8;
    --page-success-stories-text-dark: #333;
    --page-success-stories-bg-light: #FFFFFF;
    --page-success-stories-bg-dark: #0A2342;
    --page-success-stories-border-radius: 8px;
    --page-success-stories-transition-speed: 0.3s;
}

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

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

/* Hero Section */
.page-success-stories__hero {
    background: linear-gradient(135deg, var(--page-success-stories-primary-color) 0%, #1A3F6D 100%); /* Slightly lighter blue for gradient */
    color: var(--page-success-stories-text-light);
    padding: 100px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-success-stories__hero::before {
    content: '';
    position: absolute;
    top: -50px;
    left: -50px;
    width: 200px;
    height: 200px;
    background-color: rgba(255, 215, 0, 0.1);
    border-radius: 50%;
    filter: blur(50px);
}

.page-success-stories__hero::after {
    content: '';
    position: absolute;
    bottom: -50px;
    right: -50px;
    width: 250px;
    height: 250px;
    background-color: rgba(255, 215, 0, 0.15);
    border-radius: 50%;
    filter: blur(60px);
}

.page-success-stories__hero-title {
    font-size: 3.5em;
    margin-bottom: 20px;
    font-weight: bold;
    color: var(--page-success-stories-secondary-color);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.page-success-stories__hero-subtitle {
    font-size: 1.5em;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    font-weight: 300;
}

/* Buttons */
.page-success-stories__btn {
    display: inline-block;
    padding: 15px 30px;
    border-radius: var(--page-success-stories-border-radius);
    text-decoration: none;
    font-weight: bold;
    transition: all var(--page-success-stories-transition-speed) ease;
    font-size: 1.1em;
    cursor: pointer;
    border: none;
}

.page-success-stories__btn--primary {
    background-color: var(--page-success-stories-secondary-color);
    color: var(--page-success-stories-primary-color);
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4);
}

.page-success-stories__btn--primary:hover {
    background-color: #E6C200; /* Slightly darker gold */
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.6);
}

.page-success-stories__btn--secondary {
    background-color: var(--page-success-stories-primary-color);
    color: var(--page-success-stories-secondary-color);
    border: 2px solid var(--page-success-stories-secondary-color);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    margin-left: 15px;
}

.page-success-stories__btn--secondary:hover {
    background-color: var(--page-success-stories-secondary-color);
    color: var(--page-success-stories-primary-color);
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(255, 215, 0, 0.4);
}

.page-success-stories__text-link {
    color: var(--page-success-stories-primary-color);
    font-weight: bold;
    text-decoration: none;
    transition: color var(--page-success-stories-transition-speed) ease;
}

.page-success-stories__text-link:hover {
    color: var(--page-success-stories-secondary-color);
    text-decoration: underline;
}

/* Sections */
.page-success-stories__intro, 
.page-success-stories__stories-list, 
.page-success-stories__platform-value, 
.page-success-stories__conclusion {
    padding: 60px 0;
    background-color: var(--page-success-stories-bg-light);
}

.page-success-stories__section-title {
    font-size: 2.5em;
    color: var(--page-success-stories-primary-color);
    text-align: center;
    margin-bottom: 50px;
    position: relative;
    padding-bottom: 15px;
}

.page-success-stories__section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: 0;
    width: 80px;
    height: 4px;
    background-color: var(--page-success-stories-secondary-color);
    border-radius: 2px;
}

/* Story Grid */
.page-success-stories__story-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.page-success-stories__story-card {
    background-color: #FDFDFD;
    border-radius: var(--page-success-stories-border-radius);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform var(--page-success-stories-transition-speed) ease, box-shadow var(--page-success-stories-transition-speed) ease;
    display: flex;
    flex-direction: column;
}

.page-success-stories__story-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.page-success-stories__story-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
    border-bottom: 3px solid var(--page-success-stories-secondary-color);
}

.page-success-stories__story-card h3 {
    font-size: 1.5em;
    color: var(--page-success-stories-primary-color);
    margin: 20px 20px 10px;
    min-height: 60px; /* Ensure consistent card height */
}

.page-success-stories__story-card h3 a {
    text-decoration: none;
    color: inherit;
    transition: color var(--page-success-stories-transition-speed) ease;
}

.page-success-stories__story-card h3 a:hover {
    color: var(--page-success-stories-secondary-color);
}

.page-success-stories__story-description {
    padding: 0 20px;
    margin-bottom: 20px;
    flex-grow: 1;
    color: #555;
}

.page-success-stories__story-card .page-success-stories__btn--secondary {
    margin: 0 20px 20px;
    align-self: flex-start;
    padding: 10px 20px;
    font-size: 0.9em;
}

/* Platform Value Section */
.page-success-stories__platform-value {
    background-color: #F2F7FC; /* Light blue tint */
    text-align: center;
}

.page-success-stories__platform-value p {
    max-width: 900px;
    margin: 20px auto;
    font-size: 1.1em;
    color: #444;
}

.page-success-stories__cta-group {
    margin-top: 40px;
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

/* Conclusion Section */
.page-success-stories__conclusion {
    background-color: var(--page-success-stories-primary-color);
    color: var(--page-success-stories-text-light);
    padding: 80px 0;
    text-align: center;
}

.page-success-stories__conclusion .page-success-stories__section-title {
    color: var(--page-success-stories-secondary-color);
}

.page-success-stories__conclusion .page-success-stories__section-title::after {
    background-color: var(--page-success-stories-text-light);
}

.page-success-stories__conclusion p {
    max-width: 900px;
    margin: 20px auto;
    font-size: 1.1em;
    color: var(--page-success-stories-text-light);
}

.page-success-stories__conclusion .page-success-stories__text-link {
    color: var(--page-success-stories-secondary-color);
}

.page-success-stories__conclusion .page-success-stories__text-link:hover {
    color: #E6C200;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-success-stories__hero-title {
        font-size: 3em;
    }
    .page-success-stories__hero-subtitle {
        font-size: 1.3em;
    }
    .page-success-stories__section-title {
        font-size: 2em;
    }
    .page-success-stories__story-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}

@media (max-width: 768px) {
    .page-success-stories__hero {
        padding: 80px 0;
    }
    .page-success-stories__hero-title {
        font-size: 2.5em;
    }
    .page-success-stories__hero-subtitle {
        font-size: 1.1em;
    }
    .page-success-stories__btn {
        padding: 12px 25px;
        font-size: 1em;
    }
    .page-success-stories__btn--secondary {
        margin-left: 0;
        margin-top: 10px;
    }
    .page-success-stories__cta-group {
        flex-direction: column;
        gap: 15px;
    }
    .page-success-stories__story-image {
        height: 180px;
    }
    .page-success-stories__story-card h3 {
        font-size: 1.3em;
    }
    .page-success-stories__story-card .page-success-stories__btn--secondary {
        align-self: stretch;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .page-success-stories__hero {
        padding: 60px 0;
    }
    .page-success-stories__hero-title {
        font-size: 2em;
    }
    .page-success-stories__hero-subtitle {
        font-size: 1em;
    }
    .page-success-stories__btn {
        width: 100%;
        margin-left: 0;
        margin-right: 0;
    }
    .page-success-stories__section-title {
        font-size: 1.8em;
    }
    .page-success-stories__story-grid {
        grid-template-columns: 1fr;
    }
    .page-success-stories__story-card {
        margin: 0 10px;
    }
}