/* Stories Hero Section */
.stories-hero {
    background: linear-gradient(rgba(40, 170, 225, 0.1), rgba(40, 170, 225, 0.05));
    padding: 6rem 1rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.stories-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../photos/pattern-dots.svg');
    background-size: 20px;
    opacity: 0.15;
    pointer-events: none;
}

.stories-hero .hero-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.stories-hero h1 {
    margin-bottom: 1.5rem;
    color: var(--text-color);
    font-size: 2.8rem;
    line-height: 1.2;
}

.stories-hero p {
    font-size: 1.25rem;
    color: var(--light-text);
    margin-bottom: 2rem;
}

/* Featured Story Section */
.featured-story {
    background-color: var(--background-color);
    padding: 4rem 1rem;
}

.featured-story-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.featured-story-image {
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(40, 170, 225, 0.15);
}

.featured-story-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

.featured-story-container:hover .featured-story-image img {
    transform: scale(1.05);
}

.featured-story-content {
    padding: 1rem 0;
}

.story-badge {
    display: inline-block;
    background-color: var(--primary-color);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 30px;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.featured-story-content h2 {
    color: var(--text-color);
    margin-bottom: 1.5rem;
    font-size: 2.2rem;
}

.story-quote {
    font-style: italic;
    font-size: 1.2rem;
    color: var(--primary-dark);
    border-left: 4px solid var(--primary-color);
    padding-left: 1.5rem;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

/* Stories Grid */
.stories-grid {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 1rem;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
}

.story-card {
    background-color: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(40, 170, 225, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--border-color);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.story-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(40, 170, 225, 0.15);
}

.story-image {
    position: relative;
    overflow: hidden;
    height: 200px;
}

.story-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.story-card:hover .story-image img {
    transform: scale(1.1);
}

.story-content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.story-content h3 {
    color: var(--primary-dark);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.story-content .story-quote {
    font-size: 1rem;
    margin-bottom: 1rem;
    border-left-width: 3px;
    padding-left: 1rem;
}

.story-content p {
    color: var(--light-text);
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.story-link {
    display: inline-flex;
    align-items: center;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease;
    margin-top: auto;
}

.story-link::after {
    content: "→";
    margin-left: 0.3rem;
    transition: transform 0.2s ease;
}

.story-link:hover {
    color: var(--primary-dark);
}

.story-link:hover::after {
    transform: translateX(3px);
}

/* Video Stories Section */
.video-stories {
    background-color: var(--light-background);
    padding: 4rem 1rem;
    text-align: center;
}

.video-stories h2 {
    margin-bottom: 1rem;
}

.video-stories > p {
    max-width: 600px;
    margin: 0 auto 3rem;
    color: var(--light-text);
}

.video-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.video-card {
    background-color: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(40, 170, 225, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--border-color);
}

.video-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(40, 170, 225, 0.15);
}

.video-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.video-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    border-radius: var(--border-radius) var(--border-radius) 0 0;
    border: 1px solid var(--border-color);
}

.placeholder-content {
    padding: 1rem;
}

.placeholder-content p {
    margin: 0;
    color: var(--light-text);
}

.placeholder-title {
    font-weight: 600;
    margin-top: 0.5rem !important;
    color: var(--primary-color) !important;
}

.video-card h3 {
    padding: 1.5rem 1.5rem 0.5rem;
    color: var(--primary-dark);
    font-size: 1.2rem;
}

.video-card p {
    padding: 0 1.5rem 1.5rem;
    color: var(--light-text);
}

/* Share Story Section */
.share-story {
    background-color: var(--primary-color);
    padding: 4rem 1rem;
    color: white;
    text-align: center;
}

.share-story-container {
    max-width: 800px;
    margin: 0 auto;
}

.share-story-content h2 {
    color: white;
    margin-bottom: 1.5rem;
}

.share-story-content p {
    margin-bottom: 2rem;
    font-size: 1.1rem;
    opacity: 0.9;
}

.share-story-content .cta-button {
    background-color: white;
    color: var(--primary-color);
    border: none;
    padding: 0.9rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.share-story-content .cta-button:hover {
    background-color: rgba(255, 255, 255, 0.9);
    transform: translateY(-3px);
}

/* Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.featured-story-container,
.story-card,
.video-card {
    animation: fadeInUp 0.6s ease-out forwards;
}

.story-card:nth-child(2),
.video-card:nth-child(2) {
    animation-delay: 0.2s;
}

.story-card:nth-child(3),
.video-card:nth-child(3) {
    animation-delay: 0.4s;
}

.story-card:nth-child(4) {
    animation-delay: 0.6s;
}

.story-card:nth-child(5) {
    animation-delay: 0.8s;
}

.story-card:nth-child(6) {
    animation-delay: 1s;
}

/* Responsive Adjustments */
@media (max-width: 992px) {
    .featured-story-container {
        grid-template-columns: 1fr;
    }
    
    .featured-story-image {
        margin-bottom: 2rem;
    }
}

@media (max-width: 768px) {
    .stories-hero {
        padding: 4rem 1rem;
    }

    .stories-hero h1 {
        font-size: 2rem;
    }

    .stories-hero p {
        font-size: 1.1rem;
    }
    
    .featured-story-content h2 {
        font-size: 1.8rem;
    }
    
    .story-quote {
        font-size: 1.1rem;
    }
    
    .stories-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }
}

@media (max-width: 480px) {
    .story-content .story-quote {
        font-size: 0.95rem;
    }
    
    .video-grid {
        grid-template-columns: 1fr;
    }
}

/* Accessibility - Prefers reduced motion */
@media (prefers-reduced-motion: reduce) {
    .featured-story-container,
    .story-card,
    .video-card {
        animation: none !important;
    }
    
    .featured-story-container:hover .featured-story-image img,
    .story-card:hover .story-image img {
        transform: none;
    }
    
    .story-card:hover,
    .video-card:hover,
    .share-story-content .cta-button:hover {
        transform: none;
    }
}

/* Portrait Video Override */
.portrait-video {
    position: relative;
    padding-bottom: 0 !important;
    height: auto !important;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #000;
}
.portrait-video video {
    width: auto !important;
    height: 570px !important;
    max-height: 80vh;
    max-width: 320px;
    display: block;
    margin: 0 auto;
    border-radius: 0.5rem;
    background: #000;
    object-fit: cover;
}
@media (max-width: 480px) {
    .portrait-video video {
        height: 340px !important;
        max-width: 95vw;
    }
} 