/* =========================================================
   BEAUTIFUL STORIES PAGE - HARVARD STYLE WITH SCROLL ANIMATIONS
   ========================================================= */

/* Reset and Base Styles */
* {
    box-sizing: border-box;
}

/* Main Stories Section */
.stories-main {
    font-family: 'Georgia', serif;
    background-color: #ffffff;
    color: #1b1b1b;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    overflow-x: hidden;
    padding-top: 0;
}

/* Dramatic Stories Banner */
.stories-banner {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-top: 0;
}

.banner-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

/* Slideshow Container */
.slideshow-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 2s cubic-bezier(0.4, 0.0, 0.2, 1);
}

.slide.active {
    opacity: 1;
}

.slide.fade-out {
    opacity: 0;
}

.banner-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transform: scale(1.05);
    transition: transform 20s ease-out;
}

.slide.active .banner-image {
    transform: scale(1);
}

/* Dramatic Black Vignette Effect */
.banner-vignette {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(ellipse at center, transparent 15%, rgba(0,0,0,0.2) 35%, rgba(0,0,0,0.6) 70%, rgba(0,0,0,0.9) 95%),
        linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.3) 25%, transparent 50%),
        linear-gradient(to bottom, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0.2) 20%, transparent 40%),
        linear-gradient(to right, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.3) 15%, transparent 30%),
        linear-gradient(to left, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.3) 15%, transparent 30%);
    pointer-events: none;
    z-index: 5;
}

/* Enhanced particle overlay effect */
.banner-vignette::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 20% 30%, rgba(241, 196, 0, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(241, 196, 0, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 40% 80%, rgba(255, 255, 255, 0.05) 0%, transparent 30%);
    animation: subtleFloat 8s ease-in-out infinite;
    pointer-events: none;
}

/* Cinematic light rays effect */
.banner-vignette::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: 
        linear-gradient(45deg, transparent 48%, rgba(241, 196, 0, 0.03) 49%, rgba(241, 196, 0, 0.06) 50%, rgba(241, 196, 0, 0.03) 51%, transparent 52%),
        linear-gradient(-45deg, transparent 48%, rgba(255, 255, 255, 0.02) 49%, rgba(255, 255, 255, 0.04) 50%, rgba(255, 255, 255, 0.02) 51%, transparent 52%);
    animation: lightRays 15s linear infinite;
    pointer-events: none;
}

.banner-content {
    position: relative;
    z-index: 10;
    text-align: center;
    color: #ffffff;
    max-width: 900px;
    padding: 0 40px;
    margin: 0 auto;
    animation: bannerFadeIn 1.2s ease-out;
    backdrop-filter: blur(2px);
    background: rgba(0, 0, 0, 0.1);
    border-radius: 20px;
    padding: 60px 40px;
    border: 1px solid rgba(241, 196, 0, 0.2);
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.banner-title {
    font-size: 4.5rem;
    font-weight: 700;
    margin: 0 0 30px 0;
    font-family: 'Georgia', serif;
    text-shadow: 
        2px 2px 20px rgba(0,0,0,0.9), 
        0 0 30px rgba(0,0,0,0.8),
        0 0 60px rgba(241, 196, 0, 0.3);
    letter-spacing: 2px;
    color: #ffffff;
    animation: titleSlideUp 1s ease-out 0.3s both;
    position: relative;
}

.banner-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, transparent, #F1C400, transparent);
    animation: lineGlow 2s ease-in-out infinite alternate;
}

.banner-description {
    font-size: 1.3rem;
    line-height: 1.6;
    margin: 0 0 40px 0;
    font-family: 'Georgia', serif;
    text-shadow: 
        2px 2px 15px rgba(0,0,0,0.9), 
        0 0 20px rgba(0,0,0,0.7),
        0 0 40px rgba(255, 255, 255, 0.1);
    font-weight: 400;
    color: #ffffff;
    animation: descriptionSlideUp 1s ease-out 0.6s both;
    font-style: italic;
}

/* Elegant Scroll Indicator */
.scroll-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 40px;
    animation: scrollIndicatorFade 1s ease-out 1.2s both;
    cursor: pointer;
    transition: all 0.3s ease;
}

.scroll-indicator:hover {
    transform: translateY(-5px);
}

.scroll-arrow {
    width: 30px;
    height: 30px;
    border: 2px solid #F1C400;
    border-radius: 50%;
    position: relative;
    margin-bottom: 8px;
    animation: arrowBounce 2s ease-in-out infinite;
}

.scroll-arrow::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(45deg);
    width: 8px;
    height: 8px;
    border-right: 2px solid #F1C400;
    border-bottom: 2px solid #F1C400;
}

.scroll-text {
    color: #F1C400;
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    text-shadow: 0 0 10px rgba(241, 196, 0, 0.3);
}

/* Banner Animations */
@keyframes bannerFadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes titleSlideUp {
    from {
        opacity: 0;
        transform: translateY(50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes descriptionSlideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes subtleFloat {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
        opacity: 0.3;
    }
    50% {
        transform: translateY(-10px) rotate(1deg);
        opacity: 0.6;
    }
}

@keyframes lightRays {
    0% {
        transform: rotate(0deg);
        opacity: 0.3;
    }
    50% {
        opacity: 0.1;
    }
    100% {
        transform: rotate(360deg);
        opacity: 0.3;
    }
}

@keyframes lineGlow {
    from {
        box-shadow: 0 0 5px #F1C400;
        opacity: 0.8;
    }
    to {
        box-shadow: 0 0 20px #F1C400, 0 0 30px #F1C400;
        opacity: 1;
    }
}

@keyframes scrollIndicatorFade {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes arrowBounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-8px);
    }
}

@keyframes floatLeft {
    0%, 100% {
        transform: translateY(0px) translateX(0px) rotate(0deg);
        opacity: 0.3;
    }
    33% {
        transform: translateY(-20px) translateX(10px) rotate(2deg);
        opacity: 0.6;
    }
    66% {
        transform: translateY(10px) translateX(-5px) rotate(-1deg);
        opacity: 0.4;
    }
}

@keyframes floatRight {
    0%, 100% {
        transform: translateY(0px) translateX(0px) rotate(0deg);
        opacity: 0.2;
    }
    50% {
        transform: translateY(-30px) translateX(-15px) rotate(3deg);
        opacity: 0.5;
    }
}

.content-section {
    width: 90%;
    max-width: 1300px;
    margin: 0 auto;
    padding: 80px 0;
    position: relative;
}

/* Add floating background elements */
.content-section::before {
    content: '';
    position: absolute;
    top: 10%;
    left: -5%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(241, 196, 0, 0.03) 0%, transparent 70%);
    border-radius: 50%;
    animation: floatLeft 20s ease-in-out infinite;
    z-index: 0;
}

.content-section::after {
    content: '';
    position: absolute;
    bottom: 20%;
    right: -5%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(241, 196, 0, 0.02) 0%, transparent 70%);
    border-radius: 50%;
    animation: floatRight 25s ease-in-out infinite reverse;
    z-index: 0;
}

.section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 60px;
    opacity: 0;
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    z-index: 1;
    padding: 40px 0;
}

/* Add section background with subtle pattern */
.section::before {
    content: '';
    position: absolute;
    top: 0;
    left: -50px;
    right: -50px;
    bottom: 0;
    background: 
        linear-gradient(135deg, rgba(255, 255, 255, 0.02) 0%, transparent 50%),
        url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23F1C400' fill-opacity='0.02'%3E%3Ccircle cx='30' cy='30' r='1'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    border-radius: 20px;
    transition: all 0.8s ease;
    z-index: -1;
    opacity: 0;
}

.section:hover::before {
    opacity: 1;
    transform: scale(1.02);
}

/* Animation trigger class */
.section.animate-in {
    opacity: 1;
}

.section-top .image-container {
    order: 1;
}

.section-top .text-container {
    order: 2;
    margin-left: 60px;
}

.section-bottom .text-container {
    order: 1;
    margin-right: 60px;
}

.section-bottom .image-container {
    order: 2;
}

.image-container {
    position: relative;
    width: 50%;
    opacity: 0;
    overflow: visible;
    border-radius: 12px;
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    padding: 20px;
    border: 1px solid #F1C400;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
    backdrop-filter: blur(10px);
    box-shadow: 
        0 10px 40px rgba(0, 0, 0, 0.1),
        0 0 0 1px rgba(241, 196, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.image-container:hover {
    transform: translateY(-10px);
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.15),
        0 0 0 1px rgba(241, 196, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2),
        0 0 40px rgba(241, 196, 0, 0.1);
}

/* Image slide-in animations */
.section-top .image-container {
    transform: translateX(-80px);
}

.section-bottom .image-container {
    transform: translateX(80px);
}

.section.animate-in .image-container {
    opacity: 1;
    transform: translateX(0);
}

.image-container img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    object-fit: cover;
    height: auto;
    min-height: 400px;
    transition: all 0.5s ease;
    position: relative;
    display: block;
    filter: brightness(1.02) contrast(1.05) saturate(1.1);
}

.image-container:hover img {
    transform: scale(1.02);
    filter: brightness(1.05) contrast(1.08) saturate(1.15);
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.18);
}

/* Black gradient overlay at bottom of images */
.image-container::after {
    content: '';
    position: absolute;
    bottom: 20px;
    left: 20px;
    right: 20px;
    height: 120px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.4) 50%, transparent 100%);
    pointer-events: none;
    border-radius: 0 0 4px 4px;
}

.video-overlay {
    position: absolute;
    bottom: 40px;
    left: 40px;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.6) 100%);
    color: #fff;
    padding: 12px 24px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 0;
    z-index: 10;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 
        0 8px 24px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.video-overlay:hover {
    background: linear-gradient(135deg, rgba(241, 196, 0, 0.9) 0%, rgba(241, 196, 0, 0.8) 100%);
    color: #1b1b1b;
    transform: translateY(-3px) scale(1.05);
    box-shadow: 
        0 12px 32px rgba(241, 196, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.section.animate-in .video-overlay {
    opacity: 1;
    transition-delay: 0.4s;
}

.video-overlay:hover {
    background: rgba(0, 0, 0, 0.7);
    transform: translateY(-2px);
}

.play-button {
    font-size: 20px;
    margin-right: 10px;
    transition: transform 0.3s ease;
}

.video-overlay:hover .play-button {
    transform: scale(1.1);
}

.text-container {
    width: 50%;
    opacity: 0;
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    padding: 30px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0.01) 100%);
    border-radius: 16px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.text-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(241, 196, 0, 0.02) 0%, transparent 50%);
    border-radius: 16px;
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: -1;
}

.text-container:hover::before {
    opacity: 1;
}

/* Text slide-in animations */
.section-top .text-container {
    transform: translateX(80px);
}

.section-bottom .text-container {
    transform: translateX(-80px);
}

.section.animate-in .text-container {
    opacity: 1;
    transform: translateX(0);
}

.text-container h1 {
    font-size: 2.4rem;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 20px;
    color: #1b1b1b;
    font-family: 'Georgia', serif;
    opacity: 0;
    transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    background: linear-gradient(135deg, #1b1b1b 0%, #2c2c2c 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-container h1::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #F1C400, rgba(241, 196, 0, 0.3));
    transition: width 0.8s ease;
}

.text-container:hover h1::after {
    width: 60px;
}

.section.animate-in .text-container h1 {
    opacity: 1;
    transition-delay: 0.2s;
}

.text-container p {
    font-size: 1.05rem;
    color: #333;
    line-height: 1.6;
    margin-bottom: 25px;
    font-family: 'Georgia', serif;
    opacity: 0;
    transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.section.animate-in .text-container p {
    opacity: 1;
    transition-delay: 0.4s;
}

.learn-btn {
    background: linear-gradient(135deg, #F1C400 0%, #e6b800 100%);
    border: none;
    color: #1b1b1b;
    font-weight: 600;
    font-size: 1rem;
    padding: 14px 28px;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Georgia', serif;
    opacity: 0;
    position: relative;
    overflow: hidden;
    box-shadow: 
        0 8px 24px rgba(241, 196, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.9rem;
    text-decoration: none;
    display: inline-block;
}

.learn-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.5s ease;
}

.learn-btn:hover::before {
    left: 100%;
}

.learn-btn:hover {
    background: linear-gradient(135deg, #f5d442 0%, #F1C400 100%);
    transform: translateY(-3px);
    box-shadow: 
        0 12px 32px rgba(241, 196, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.4),
        0 0 20px rgba(241, 196, 0, 0.2);
}

.section.animate-in .learn-btn {
    opacity: 1;
    transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    transition-delay: 0.6s;
}

.learn-btn:hover {
    background: #dcdcdc;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Enhanced hover effects for images */
.image-container:hover img {
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* Staggered animation delays for multiple sections */
.section:nth-child(1) {
    transition-delay: 0s;
}

.section:nth-child(2) {
    transition-delay: 0.2s;
}

.section:nth-child(3) {
    transition-delay: 0.4s;
}

.section:nth-child(4) {
    transition-delay: 0.6s;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .stories-banner {
        height: 80vh;
        min-height: 500px;
    }
    
    .banner-title {
        font-size: 3.5rem;
    }
    
    .banner-description {
        font-size: 1.2rem;
    }
    
    .banner-content {
        padding: 0 30px;
    }
    
    .content-section {
        width: 95%;
        padding: 40px 0;
    }
    
    .section {
        margin-bottom: 50px;
    }
    
    .section-top .text-container {
        margin-left: 40px;
    }
    
    .section-bottom .text-container {
        margin-right: 40px;
    }
    
    .text-container h1 {
        font-size: 2.1rem;
    }
    
    .text-container p {
        font-size: 1rem;
    }
    
    /* Reduce slide distance on tablets */
    .section-top .image-container {
        transform: translateX(-50px);
    }
    
    .section-bottom .image-container {
        transform: translateX(50px);
    }
    
    .section-top .text-container {
        transform: translateX(50px);
    }
    
    .section-bottom .text-container {
        transform: translateX(-50px);
    }
}

@media (max-width: 768px) {
    .stories-banner {
        height: 70vh;
        min-height: 450px;
    }
    
    .banner-title {
        font-size: 2.8rem;
        margin-bottom: 20px;
    }
    
    .banner-description {
        font-size: 1.1rem;
        line-height: 1.5;
    }
    
    .banner-content {
        padding: 0 20px;
    }
    
    .content-section {
        padding: 30px 0;
    }
    
    .section {
        flex-direction: column;
        margin-bottom: 40px;
    }
    
    .section-top .image-container,
    .section-top .text-container,
    .section-bottom .image-container,
    .section-bottom .text-container {
        order: unset;
        width: 100%;
        margin: 0;
    }
    
    .section.animate-in .image-container,
    .section.animate-in .text-container {
        opacity: 1;
    }
    
    .section-top .text-container {
        margin-top: 30px;
    }
    
    .section-bottom .text-container {
        margin-bottom: 30px;
    }
    
    .image-container img {
        min-height: 300px;
    }
    
    .text-container h1 {
        font-size: 1.9rem;
        margin-bottom: 15px;
    }
    
    .text-container p {
        font-size: 0.95rem;
        margin-bottom: 20px;
    }
    
    .video-overlay {
        font-size: 16px;
        padding: 8px 16px;
    }
    
    .play-button {
        font-size: 18px;
    }
    
    .learn-btn {
        font-size: 0.9rem;
        padding: 10px 18px;
    }
}

@media (max-width: 480px) {
    .stories-banner {
        height: 60vh;
        min-height: 400px;
    }
    
    .banner-title {
        font-size: 2.2rem;
        margin-bottom: 15px;
        letter-spacing: 1px;
    }
    
    .banner-description {
        font-size: 1rem;
        line-height: 1.4;
    }
    
    .banner-content {
        padding: 0 15px;
        max-width: 100%;
    }
    
    .content-section {
        width: 100%;
        padding: 20px 15px;
    }
    
    .section {
        margin-bottom: 35px;
    }
    
    .image-container img {
        min-height: 250px;
        border-radius: 2px;
    }
    
    .text-container h1 {
        font-size: 1.6rem;
        line-height: 1.2;
    }
    
    .text-container p {
        font-size: 0.9rem;
        line-height: 1.5;
    }
    
    .video-overlay {
        bottom: 15px;
        left: 15px;
        font-size: 14px;
        padding: 6px 12px;
    }
    
    .play-button {
        font-size: 16px;
        margin-right: 8px;
    }
    
    .learn-btn {
        font-size: 0.85rem;
        padding: 8px 16px;
    }
}

/* Advanced Animation Keyframes */
@keyframes slideInFromLeft {
    from {
        opacity: 0;
        transform: translateX(-100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInFromRight {
    from {
        opacity: 0;
        transform: translateX(100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Parallax effect for images */
@media (min-width: 1024px) {
    .image-container img {
        transition: transform 0.1s ease-out;
    }
}

/* Focus states for accessibility */
.learn-btn:focus,
.video-overlay:focus {
    outline: 2px solid #007bff;
    outline-offset: 2px;
}

/* Print styles */
@media print {
    .stories-main {
        background-color: white;
    }
    
    .video-overlay {
        display: none;
    }
    
    .learn-btn {
        border: 1px solid #333;
    }
    
    .section {
        opacity: 1 !important;
        transform: none !important;
    }
}

/* Responsive Design */
@media (max-width: 1024px) {
    .content-section {
        width: 95%;
        padding: 40px 0;
    }
    
    .section {
        margin-bottom: 80px;
    }
    
    .section-top .text-container {
        margin-left: 40px;
    }
    
    .section-bottom .text-container {
        margin-right: 40px;
    }
    
    .text-container h1 {
        font-size: 2.1rem;
    }
    
    .text-container p {
        font-size: 1rem;
    }
}

@media (max-width: 768px) {
    .content-section {
        padding: 30px 0;
    }
    
    .section {
        flex-direction: column;
        margin-bottom: 60px;
    }
    
    .section-top .image-container,
    .section-top .text-container,
    .section-bottom .image-container,
    .section-bottom .text-container {
        order: unset;
        width: 100%;
        margin: 0;
    }
    
    .section-top .text-container {
        margin-top: 30px;
    }
    
    .section-bottom .text-container {
        margin-bottom: 30px;
    }
    
    .image-container img {
        min-height: 300px;
    }
    
    .text-container h1 {
        font-size: 1.9rem;
        margin-bottom: 15px;
    }
    
    .text-container p {
        font-size: 0.95rem;
        margin-bottom: 20px;
    }
    
    .video-overlay {
        font-size: 16px;
        padding: 8px 16px;
    }
    
    .play-button {
        font-size: 18px;
    }
    
    .learn-btn {
        font-size: 0.9rem;
        padding: 10px 18px;
    }
}

@media (max-width: 480px) {
    .content-section {
        width: 100%;
        padding: 20px 15px;
    }
    
    .section {
        margin-bottom: 50px;
    }
    
    .image-container img {
        min-height: 250px;
        border-radius: 2px;
    }
    
    .text-container h1 {
        font-size: 1.6rem;
        line-height: 1.2;
    }
    
    .text-container p {
        font-size: 0.9rem;
        line-height: 1.5;
    }
    
    .video-overlay {
        bottom: 15px;
        left: 15px;
        font-size: 14px;
        padding: 6px 12px;
    }
    
    .play-button {
        font-size: 16px;
        margin-right: 8px;
    }
    
    .learn-btn {
        font-size: 0.85rem;
        padding: 8px 16px;
    }
}

/* Animation enhancements */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.section {
    animation: fadeInUp 0.8s ease-out;
}

.section:nth-child(2) {
    animation-delay: 0.2s;
}

/* Hover effects for images */
.image-container {
    overflow: hidden;
    border-radius: 4px;
}

.image-container img {
    transition: transform 0.3s ease;
}

.image-container:hover img {
    transform: scale(1.02);
}

/* Website Link Styling */
.website-link {
    display: inline-block;
    margin-top: 20px;
    padding: 12px 30px;
    background: linear-gradient(135deg, #F1C400 0%, #d4a700 100%);
    color: #1b1b1b;
    text-decoration: none;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 6px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(241, 196, 0, 0.3);
    letter-spacing: 0.5px;
}

.website-link:hover {
    background: linear-gradient(135deg, #d4a700 0%, #F1C400 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(241, 196, 0, 0.4);
}

.website-link:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(241, 196, 0, 0.3);
}

/* Focus states for accessibility */
.learn-btn:focus,
.video-overlay:focus {
    outline: 2px solid #007bff;
    outline-offset: 2px;
}

/* Print styles */
@media print {
    .stories-main {
        background-color: white;
    }
    
    .video-overlay {
        display: none;
    }
    
    .learn-btn {
        border: 1px solid #333;
    }
}

/* Video Modal Styles */
.video-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.video-modal-content {
    background: white;
    border-radius: 24px;
    padding: 48px;
    max-width: 900px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    animation: slideUp 0.4s ease;
    position: relative;
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.video-modal-title {
    font-size: 2rem;
    font-weight: 700;
    color: #002B49;
    margin-bottom: 24px;
    text-align: center;
    font-family: 'Georgia', serif;
}

.video-player-container {
    background: #f0f0f0;
    border-radius: 16px;
    padding: 16px;
    margin-bottom: 20px;
    aspect-ratio: 16/9;
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-modal-description {
    text-align: center;
    color: #666;
    font-size: 0.95rem;
    margin-bottom: 24px;
    line-height: 1.6;
}

.video-close-btn {
    display: block;
    width: 100%;
    padding: 16px 32px;
    background: #007BFF;
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
}

.video-close-btn:hover {
    background: #0056b3;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 123, 255, 0.4);
}

.video-close-btn:active {
    transform: translateY(0);
}

@media (max-width: 768px) {
    .video-modal-content {
        padding: 32px 24px;
        width: 95%;
    }
    
    .video-modal-title {
        font-size: 1.5rem;
    }
    
    .video-player-container {
        padding: 12px;
    }
}