/* Story Page Specific Styles */
.story-header {
    text-align: center;
    padding: 3rem 0;
    background: linear-gradient(135deg, #5EADF5 0%, #FF8A5B 100%);
    color: white;
    margin-bottom: 2rem;
}

.story-header h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.story-meta {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    opacity: 0.9;
}

.story-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 1.5rem 4rem;
}

.synopsis-section {
    background: #fff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    margin-bottom: 2.5rem;
}

.synopsis-section h2 {
    color: var(--primary);
    margin-bottom: 1rem;
}

.synopsis-section .story-meta {
    display: flex;
    gap: 1.5rem;
    margin-top: 1.5rem;
    color: #7f8c8d;
    font-size: 0.9rem;
}

.synopsis-section .story-meta i {
    margin-right: 0.5rem;
    color: var(--primary);
}

.comments-section {
    background: #fff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    margin-bottom: 3rem;
}

.comment-form {
    margin: 2rem 0;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #34495e;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
}

.form-group textarea {
    min-height: 120px;
    resize: vertical;
}

.comment {
    border-bottom: 1px solid #eee;
    padding: 1.5rem 0;
}

.comment:last-child {
    border-bottom: none;
}

.comment-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.comment-date {
    color: #7f8c8d;
    font-size: 0.9rem;
}

.story-section {
    margin-bottom: 3rem;
}

.story-section h2 {
    color: var(--primary);
    margin-bottom: 1.5rem;
    position: relative;
    display: inline-block;
    font-weight: 700;
}

.story-section h2::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 60%;
    height: 3px;
    background-color: var(--primary);
    border-radius: 2px;
}

.story-media {
    margin: 2rem 0;
    border-radius: var(--border-radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.story-media img {
    width: 100%;
    height: auto;
    display: block;
}

/* Video Container */
.video-container {
    margin: 2rem 0;
    background: white;
    padding: 1.5rem;
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-sm);
}

.video-wrapper {
    position: relative;
    height: 450px;
    overflow: hidden;
    margin-top: 1rem;
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 8px;
}

/* Audio Player */
.audio-player {
    background: white;
    padding: 1.5rem;
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-sm);
    margin: 2rem 0;
}

.audio-player h3 {
    margin-bottom: 1rem;
    color: var(--accent);
}

.audio-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 1rem;
}

.play-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--primary);
    border: none;
    color: var(--dark);
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.play-btn:hover {
    transform: scale(1.1);
    box-shadow: var(--shadow-md);
}

.progress-container {
    flex-grow: 1;
    height: 6px;
    background-color: #e0e0e0;
    border-radius: 3px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.progress-bar {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0%;
    background-color: var(--accent);
    transition: width 0.1s linear;
}

.time-display {
    font-size: 0.8rem;
    color: var(--text-light);
    min-width: 80px;
    text-align: right;
}

.story-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #eee;
}

.nav-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    border: none;
    cursor: pointer;
}

.nav-btn.prev {
    background-color: var(--light);
    color: var(--dark);
}

.nav-btn.next {
    background-color: var(--primary);
    color: white;
}

.nav-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.nav-btn.next:hover {
    background-color: var(--secondary);
    color: white;
}

.nav-btn.prev:hover {
    background-color: #e0e0e0;
}

        /* You Might Also Like Section */
.stories-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

/* Story Slideshow */
.story-slideshow {
    margin: 2rem 0;
    background: white;
    padding: 1.5rem;
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-sm);
}

.slideshow-container {
    position: relative;
    max-width: 100%;
    margin: 1rem 0;
    overflow: hidden;
    border-radius: 8px;
    height: 400px;
}

.slide {
    position: absolute;
    width: 100%;
    height: 100%;
    text-align: center;
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.5s ease-in-out;
}

.slide.active {
    opacity: 1;
    transform: translateX(0);
    z-index: 1;
}

.slide.prev {
    transform: translateX(-100%);
}

.slide img {
    max-width: 100%;
    max-height: 400px;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.slideshow-container {
    position: relative;
    min-height: 450px;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

.slideshow-prev, .slideshow-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    color: white;
    font-weight: bold;
    font-size: 20px;
    transition: all 0.3s ease;
    border: none;
    background-color: rgba(0, 0, 0, 0.4);
    cursor: pointer;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.slideshow-prev:hover, .slideshow-next:hover {
    background-color: rgba(0, 0, 0, 0.7);
    transform: translateY(-50%) scale(1.05);
}

.slideshow-prev {
    left: 1rem;
}

.slideshow-next {
    right: 1rem;
}
/* Responsive adjustments for Story page */
@media (max-width: 1024px) {
    /* Hide inline ad sidebars on tablets and phones */
    .left-sidebar-ad,
    .right-sidebar-ad {
        display: none !important;
    }

    /* Let story content take full width */
    .story-content {
        max-width: 100%;
        padding: 0 1rem;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    /* Make video player responsive 16:9 */
    .video-wrapper {
        height: 0;
        padding-top: 56.25%; /* 16:9 */
    }
    .video-wrapper iframe {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
    }

    /* Responsive slideshow height */
    .slideshow-container {
        height: 55vw; /* proportional to viewport width */
        min-height: 240px;
        max-height: 360px;
    }
    .slide img {
        object-fit: contain;
        max-height: 100%;
    }

    /* Navigation buttons size */
    .slideshow-prev, .slideshow-next {
        width: 38px;
        height: 38px;
        font-size: 18px;
    }

    /* You Might Also Like -> 1 column on small screens */
    .featured-stories .stories-grid,
    .stories-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .synopsis-section {
        padding: 1.25rem;
    }
}

@media (max-width: 480px) {
    .nav-btn {
        padding: 0.6rem 1rem;
        font-size: 0.95rem;
    }
}
