/* Success Stories CSS */

/* Navigation with active state */
header nav ul li a {
    text-decoration: none;
    color: var(--text-color);
    padding: 5px 0;
    transition: color 0.3s ease;
}

header nav ul li a:hover,
header nav ul li a.active {
    color: var(--primary-color);
}

/* Removed the old success-story-hero styles that were using background-image */

/* Success stories grid */
.success-stories-navigation {
    padding: 60px 0;
    background-color: var(--complementary-color-lighter);
}

.stories-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    margin-top: 40px;
}

.story-card {
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    text-decoration: none;
    color: var(--text-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.story-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.story-image {
    height: 200px;
    overflow: hidden;
}

.story-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.story-card:hover .story-image img {
    transform: scale(1.05);
}

.story-card h3 {
    padding: 15px 20px 5px;
    font-size: 1.3rem;
    color: var(--primary-color-dark);
}

.story-card p {
    padding: 0 20px 20px;
    color: #666;
}

/* Individual success story page styles */
.single-story-hero {
    position: relative;
    width: 100%;
    height: 350px;
    overflow: hidden;
}

.single-story-hero picture {
    width: 100%;
    height: 100%;
}

.single-story-hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.story-details {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 20px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0));
    color: white;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.story-detail {
    display: flex;
    align-items: center;
    font-size: 0.9rem;
}

.story-detail img {
    width: 16px;
    height: 16px;
    margin-right: 5px;
}

/* Story content section */
.story-content {
    padding: 60px 0;
    background-color: white;
}

.story-overview {
    display: flex;
    flex-direction: column;
    gap: 40px;
    margin-bottom: 60px;
}

.story-sidebar {
    background-color: var(--complementary-color-lighter);
    border-radius: 8px;
    padding: 25px;
}

.project-specs, 
.project-goals {
    margin-bottom: 30px;
}

.project-specs:last-child, 
.project-goals:last-child {
    margin-bottom: 0;
}

.story-sidebar h3 {
    margin-bottom: 15px;
    color: var(--primary-color-dark);
    position: relative;
    padding-bottom: 10px;
}

.story-sidebar h3::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background-color: var(--primary-color);
}

.story-sidebar ul {
    list-style: none;
    padding: 0;
}

.story-sidebar li {
    margin-bottom: 10px;
    padding-left: 20px;
    position: relative;
}

.story-sidebar li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--primary-color);
}

.story-main-content {
    flex: 1;
}

.story-intro, 
.story-challenge, 
.story-solution, 
.story-results {
    margin-bottom: 40px;
    text-align: left;
}

.story-main-content h2 {
    color: var(--primary-color-dark);
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.story-main-content h2::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 80px;
    height: 3px;
    background-color: var(--primary-color);
}

.story-main-content p {
    margin-bottom: 20px;
    line-height: 1.8;
}

.story-main-content ul {
    margin-left: 20px;
    margin-bottom: 20px;
}

.story-main-content li {
    margin-bottom: 10px;
}

.story-image-gallery {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin: 30px 0;
}

.gallery-image {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.gallery-image img {
    width: 100%;
    height: auto;
    display: block;
}

.gallery-image p {
    padding: 10px 15px;
    background-color: #f5f5f5;
    font-size: 0.9rem;
    color: #666;
    margin: 0;
}

.client-testimonial {
    background-color: var(--complementary-color-lighter);
    border-radius: 8px;
    padding: 25px;
    margin-top: 30px;
    position: relative;
}

.client-testimonial blockquote {
    font-style: italic;
    margin: 0 0 15px 0;
    position: relative;
    padding-left: 20px;
    border-left: 3px solid var(--primary-color);
}

.testimonial-author {
    font-weight: 600;
    text-align: right;
    margin: 0;
}

.story-navigation {
    margin-top: 60px;
}

.story-navigation h3 {
    margin-bottom: 30px;
    text-align: center;
}

.stories-grid-small {
    grid-template-columns: 1fr;
}

.simplified-project {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin-bottom: 40px;
}

.project-images {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.main-project-image {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.main-project-image img {
    width: 100%;
    height: auto;
    display: block;
}

.secondary-images {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.secondary-image {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.secondary-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.project-description {
    background-color: var(--complementary-color-lighter);
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.project-description h2 {
    color: var(--primary-color-dark);
    margin-bottom: 15px;
    position: relative;
    padding-bottom: 10px;
}

.project-description h2::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background-color: var(--primary-color);
}

.project-description p {
    line-height: 1.7;
    margin-bottom: 20px;
}

.project-details {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
    background-color: white;
    padding: 20px;
    border-radius: 8px;
}

.detail-item {
    display: flex;
    flex-direction: column;
}

.detail-item strong {
    color: var(--primary-color-dark);
    margin-bottom: 5px;
}

/* Responsive adjustments */
@media (min-width: 768px) {
    .stories-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .single-story-hero {
        height: 450px;
    }
    
    .story-image-gallery {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .gallery-image.full-width {
        grid-column: span 2;
    }
    
    .stories-grid-small {
        grid-template-columns: repeat(2, 1fr);
    }

    .project-details {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1024px) {
    .stories-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .single-story-hero {
        height: 550px;
    }
    
    .story-overview {
        flex-direction: row;
    }
    
    .story-sidebar {
        width: 300px;
        flex-shrink: 0;
    }
    
    .story-main-content {
        padding-left: 40px;
    }
    
    .client-testimonial {
        margin-left: 20px;
        margin-right: 20px;
    }

    .simplified-project {
        flex-direction: row;
    }
    
    .project-images {
        flex: 1;
    }
    
    .project-description {
        flex: 1;
    }
}

@media (min-width: 1440px) {
    .single-story-hero {
        height: 650px;
    }
    
    .story-sidebar {
        width: 350px;
    }
    
    .story-main-content {
        padding-left: 60px;
    }
    
    .story-image-gallery {
        gap: 30px;
    }
}