/* Story Detail Page Specific Styles */

/* Breadcrumb */
.story-breadcrumb {
    background: var(--bg-light);
    padding: 20px 0;
    border-bottom: 1px solid #eaeaea;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
}

.breadcrumb a {
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.3s;
}

.breadcrumb a:hover {
    color: var(--primary-color);
}

.breadcrumb i {
    color: var(--text-lighter);
    font-size: 12px;
}

.breadcrumb .current {
    color: var(--primary-color);
    font-weight: 600;
}

/* Story Hero */
.story-hero {
    padding: 60px 0 40px;
    background: linear-gradient(135deg, #f8fbff 0%, var(--primary-light) 100%);
}

.story-hero-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.story-hero .story-category {
    background: var(--primary-color);
    color: var(--text-white);
    padding: 8px 20px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: inline-block;
    margin-bottom: 25px;
}

.story-title {
    font-size: 48px;
    line-height: 1.2;
    margin-bottom: 30px;
    color: #222;
}

.story-meta-large {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 30px;
    margin-top: 30px;
}

.author {
    display: flex;
    align-items: center;
    gap: 15px;
}

.author-img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.author-info {
    display: flex;
    flex-direction: column;
}

.author-name {
    font-weight: 600;
    color: #222;
}

.author-role {
    font-size: 14px;
    color: var(--text-light);
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-light);
    font-size: 15px;
}

.meta-item i {
    color: var(--primary-color);
}

/* Featured Image */
.story-featured-image {
    position: relative;
    height: 600px;
    overflow: hidden;
}

.story-featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.image-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.7);
    color: var(--text-white);
    padding: 15px;
    font-size: 14px;
    text-align: center;
}

/* Story Content */
.story-content-container {
    padding: 80px 0;
}

.story-content-wrapper {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 60px;
}

.story-main-content {
    max-width: 800px;
}

/* Story Intro */
.story-intro .lead {
    font-size: 20px;
    line-height: 1.6;
    color: var(--text-color);
    margin-bottom: 50px;
    padding-bottom: 30px;
    border-bottom: 2px solid #eaeaea;
}

/* Story Sections */
.story-section {
    margin-bottom: 60px;
}

.story-section h2 {
    font-size: 32px;
    color: var(--primary-color);
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #eaeaea;
}

.story-section p {
    font-size: 18px;
    line-height: 1.7;
    margin-bottom: 25px;
    color: #444;
}

/* Quote */
.story-quote {
    background: #f0f7ff;
    border-left: 4px solid var(--primary-color);
    padding: 30px;
    margin: 40px 0;
    border-radius: 0 8px 8px 0;
}

.quote-icon {
    font-size: 24px;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.story-quote p {
    font-size: 20px;
    font-style: italic;
    color: var(--text-color);
    margin-bottom: 15px;
}

.quote-author {
    font-weight: 600;
    color: var(--primary-color);
}

/* Inline Images */
.story-image-inline {
    margin: 40px 0;
}

.story-image-inline img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 15px;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 40px 0;
}

.stat-item {
    background: #f8fbff;
    padding: 30px 20px;
    border-radius: 8px;
    text-align: center;
    border: 2px solid var(--primary-light);
    transition: transform 0.3s;
}

.stat-item:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
}

.stat-number {
    font-size: 42px;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1;
    margin-bottom: 10px;
}

.stat-label {
    font-size: 15px;
    color: var(--text-light);
    font-weight: 500;
}

/* Highlight Box */
.highlight-box {
    background: linear-gradient(135deg, var(--primary-light) 0%, #d5e6ff 100%);
    padding: 30px;
    border-radius: 8px;
    margin: 40px 0;
    border-left: 5px solid var(--primary-color);
}

.highlight-box h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.highlight-box p {
    font-size: 17px;
    margin-bottom: 0;
}

/* Initiatives List */
.initiatives-list {
    margin: 40px 0;
}

.initiative-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 25px;
    background: var(--bg-white);
    border-radius: 8px;
    margin-bottom: 20px;
    border: 2px solid #f0f7ff;
    transition: all 0.3s;
}

.initiative-item:hover {
    border-color: var(--primary-color);
    transform: translateX(5px);
}

.initiative-icon {
    width: 50px;
    height: 50px;
    background: var(--primary-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 20px;
    flex-shrink: 0;
}

.initiative-content h4 {
    color: #222;
    margin-bottom: 10px;
    font-size: 18px;
}

.initiative-content p {
    font-size: 16px;
    margin-bottom: 0;
    color: var(--text-light);
}

/* Outcomes */
.outcomes {
    background: #f9fff9;
    padding: 30px;
    border-radius: 8px;
    margin: 40px 0;
    border: 2px solid #e6ffe6;
}

.outcome-positive h4 {
    color: #2e7d32;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.outcome-positive ul {
    list-style: none;
    padding-left: 0;
}

.outcome-positive li {
    padding: 10px 0 10px 30px;
    position: relative;
    font-size: 17px;
}

.outcome-positive li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #2e7d32;
    font-weight: bold;
}

/* Testimonial */
.story-testimonial {
    background: var(--bg-white);
    padding: 40px;
    border-radius: 8px;
    margin: 50px 0;
    box-shadow: 0 10px 30px var(--shadow-color);
    border-top: 5px solid var(--primary-color);
}

.testimonial-content p {
    font-size: 20px;
    font-style: italic;
    color: var(--text-color);
    margin-bottom: 30px;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 20px;
}

.testimonial-author img {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    object-fit: cover;
}

.author-name {
    font-weight: 700;
    color: #222;
    font-size: 18px;
}

.author-title {
    color: var(--text-light);
    font-size: 15px;
}

/* Conclusion */
.story-conclusion {
    background: #f8fbff;
    padding: 40px;
    border-radius: 8px;
    margin: 60px 0;
}

.story-conclusion h2 {
    color: #222;
    border-bottom: none;
}

/* Tags */
.story-tags {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    margin: 50px 0;
    padding: 30px 0;
    border-top: 1px solid #eaeaea;
    border-bottom: 1px solid #eaeaea;
}

.tags-label {
    font-weight: 600;
    color: var(--text-color);
}

.tag {
    background: var(--primary-light);
    color: var(--primary-color);
    padding: 8px 20px;
    border-radius: 30px;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s;
}

.tag:hover {
    background: var(--primary-color);
    color: var(--text-white);
}

/* Share */
.story-share {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    margin: 40px 0;
}

.share-label {
    font-weight: 600;
    color: var(--text-color);
}

.share-buttons {
    display: flex;
    gap: 10px;
}

.share-btn {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-white);
    text-decoration: none;
    transition: transform 0.3s;
}

.share-btn:hover {
    transform: translateY(-3px);
}

.facebook { background: #3b5998; }
.twitter { background: #1da1f2; }
.linkedin { background: #0077b5; }
.whatsapp { background: #25d366; }
.email { background: #666; }

/* Author Bio */
.author-bio {
    display: flex;
    gap: 30px;
    padding: 40px;
    background: var(--bg-light);
    border-radius: 8px;
    margin: 60px 0;
    border-left: 5px solid var(--primary-color);
}

.author-bio-img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.author-bio-content h4 {
    color: #222;
    margin-bottom: 15px;
    font-size: 20px;
}

.author-bio-content p {
    margin-bottom: 20px;
    font-size: 16px;
}

.author-social {
    display: flex;
    gap: 15px;
}

.author-social a {
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.3s;
}

.author-social a:hover {
    color: var(--primary-color);
}

/* Sidebar */
.sidebar-section {
    background: var(--bg-white);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 20px var(--shadow-light);
    margin-bottom: 30px;
}

.sidebar-title {
    font-size: 20px;
    color: #222;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #eaeaea;
}

/* Related Stories */
.related-stories {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.related-story {
    display: flex;
    gap: 15px;
    text-decoration: none;
    color: inherit;
    transition: transform 0.3s;
}

.related-story:hover {
    transform: translateX(5px);
}

.related-story img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 6px;
    flex-shrink: 0;
}

.related-content h4 {
    font-size: 16px;
    color: #222;
    margin-bottom: 5px;
    line-height: 1.3;
}

.related-date {
    font-size: 13px;
    color: var(--text-lighter);
}

/* Impact Stats */
.impact-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.impact-stat {
    text-align: center;
    padding: 20px 15px;
    background: #f8fbff;
    border-radius: 8px;
    border: 2px solid var(--primary-light);
}

.impact-number {
    font-size: 32px;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1;
    margin-bottom: 10px;
}

.impact-label {
    font-size: 13px;
    color: var(--text-light);
    font-weight: 500;
}

/* Sidebar CTA */
.sidebar-cta {
    background: linear-gradient(135deg, #fdb03c 0%, var(--accent-color) 100%);
    padding: 30px;
    border-radius: 8px;
    color: var(--text-white);
    text-align: center;
}

.sidebar-cta h4 {
    font-size: 22px;
    margin-bottom: 15px;
}

.sidebar-cta p {
    opacity: 0.9;
    margin-bottom: 25px;
    font-size: 15px;
}

.cta-btn {
    display: block;
    width: 100%;
    padding: 15px;
    background: var(--bg-white);
    color: var(--primary-color);
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    margin-bottom: 15px;
    transition: all 0.3s;
}

.cta-btn:hover {
    background: #f0f7ff;
    transform: translateY(-3px);
}

.cta-btn i {
    margin-right: 10px;
}

.cta-btn.secondary {
    background: transparent;
    border: 2px solid var(--bg-white);
    color: var(--text-white);
}

.cta-btn.secondary:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Responsive */
@media (max-width: 992px) {
    .story-content-wrapper {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .story-title {
        font-size: 36px;
    }
}

@media (max-width: 768px) {
    .story-featured-image {
        height: 400px;
    }
    
    .story-title {
        font-size: 30px;
    }
    
    .story-meta-large {
        flex-direction: column;
        gap: 20px;
    }
    
    .story-section h2 {
        font-size: 28px;
    }
    
    .story-section p {
        font-size: 17px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .author-bio {
        flex-direction: column;
        text-align: center;
    }
    
    .author-bio-img {
        margin: 0 auto;
    }
}

@media (max-width: 576px) {
    .stats-grid,
    .impact-stats {
        grid-template-columns: 1fr;
    }
    
    .story-share {
        flex-direction: column;
        align-items: flex-start;
    }
}