/* Story Template Styles */

/* Story Hero Section */
.story-hero {
    background-color: white;
    padding: 2rem 0;
}

.story-hero-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 1024px) {
    .story-hero-grid {
        grid-template-columns: 70% 30%;
    }
}

/* Left Column */
.story-hero-left {
    padding: 1.5rem;
    background-color: #F9FAFB;
    border-radius: 0.75rem;
}

.embargo-notice {
    background-color: #FEF08A;
    padding: 0.5rem 1rem;
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 1.25rem;
    display: inline-block;
    border-radius: 0.375rem;
}

@media (min-width: 768px) {
    .embargo-notice {
        font-size: 1.25rem;
        margin-bottom: 1.5rem;
    }
}

.story-hero .title {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    line-height: 1.2;
    color: #111827;
}

@media (min-width: 768px) {
    .story-hero .title {
        font-size: 2.5rem;
        margin-bottom: 1rem;
    }
}

.story-hero .subtitle {
    font-size: 1.125rem;
    color: #4B5563;
    line-height: 1.4;
}

@media (min-width: 768px) {
    .story-hero .subtitle {
        font-size: 1.25rem;
    }
}

.story-meta {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

@media (min-width: 640px) {
    .story-meta {
        flex-direction: row;
        justify-content: space-between;
        align-items: flex-start;
    }
}

.assets-info, .media-contact {
    width: 100%;
}

/* Right Column */
.share-section {
    margin-bottom: 1.5rem;
}

.share-buttons {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

@media (min-width: 768px) {
    .share-section {
        margin-bottom: 2rem;
    }
    
    .share-buttons {
        gap: 1rem;
    }
}

/* Share button styles */
.share-button {
    width: 48px;
    height: 48px;
    border-radius: 9999px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.2s ease;
}

.share-button svg {
    width: 24px;
    height: 24px;
    color: white;
}

.share-button.facebook {
    background-color: #1877F2;
}

.share-button.twitter {
    background-color: #000000;
}

.share-button.linkedin {
    background-color: #0A66C2;
}

.share-button.email,
.share-button.more {
    background-color: #9C9D9D;
}

.share-button:hover {
    opacity: 0.9;
}

/* Usage rights */
.usage-rights {
    margin-bottom: 1rem;
}

.usage-rights h3 {
    font-size: 1rem;
    font-weight: 500;
    color: #6B7280;
    margin-bottom: 0.5rem;
}

.usage-rights-content {
    font-size: 1em;
    padding-top: 5px;
}

.usage-rights-content p {
    color: #6B7280;
    font-size: 0.875rem;
    line-height: 1.5;
}

/* Media Contact */
.media-contact {
    padding-bottom: 10px;
}
.media-contact h3 {
    font-size: 1rem;
    font-weight: 500;
    color: #6B7280;
    margin-bottom: 0.5rem;
}

.media-contact-content {
    background-color: #F9FAFB;
    border-radius: 0.5rem;
    overflow-y: auto;
    padding: 1rem;
}

.media-contact-content p {
    color: #6B7280;
    font-size: 0.875rem;
    line-height: 1.5;
}

/* Download Dropdown */
.download-dropdown {
    position: relative;
}

.download-button {
    background-color: var(--brand-color);
    color: white;
    width: 100%;
    padding: 0.875rem;
    border-radius: 0.75rem;
    font-size: 1.125rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: opacity 0.2s;
}

@media (min-width: 768px) {
    .download-button {
        padding: 1rem;
        font-size: 1.25rem;
        margin: 20px;
    }
}

.download-button:hover {
    opacity: 0.9;
}

.download-button svg {
    width: 1.5rem;
    height: 1.5rem;
    transition: transform 0.2s;
}

.download-dropdown.active .download-button svg {
    transform: rotate(180deg);
}

.dropdown-content {
    display: none;
    position: relative;
    background: white;
    border-radius: 0.75rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    z-index: 50;
    padding: 1.5rem;
    margin-top: 0.5rem;
        height:500px;
    overflow: scroll;
}

.download-dropdown.active .dropdown-content {
    display: block;
}

@media (min-width: 768px) {
    .dropdown-content {
        position: absolute;
        top: calc(100% + 0.5rem);
        left: 0;
        right: 0;
        margin-top: 0;
    }
}

.select-all {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #E5E7EB;
}

.select-all input[type="checkbox"] {
    width: 1.25rem;
    height: 1.25rem;
    border-radius: 0.25rem;
    border: 2px solid #D1D5DB;
    margin-top: 0.25rem;
}

.select-all-text h3 {
    font-size: 1rem;
    font-weight: 500;
    color: #111827;
    margin-bottom: 0.25rem;
}

.select-all-text p {
    font-size: 0.875rem;
    color: #6B7280;
}
/*
.download-section {
    margin-bottom: 1.5rem;
}
*/
.section-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.section-header svg {
    width: 1.25rem;
    height: 1.25rem;
    color: #6B7280;
}

.section-header h3 {
    font-size: 1rem;
    font-weight: 500;
    color: #111827;
}

.subsection {
    margin-left: 2rem;
    margin-bottom: 1rem;
}

.subsection-title {
    font-size: 0.875rem;
    font-weight: 500;
    color: #6B7280;
    margin-bottom: 0.5rem;
}

.download-option {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
    margin-left: 20px;
}

.download-option input[type="checkbox"] {
    width: 1rem;
    height: 1rem;
    border-radius: 0.25rem;
    border: 2px solid #D1D5DB;
}

.download-option span {
    font-size: 0.875rem;
    color: #111827;
}

.download-selected {
    background-color: var(--brand-color);
    color: white;
    width: 100%;
    padding: 1rem;
    border-radius: 0.75rem;
    font-size: 1rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: opacity 0.2s;
}

.download-selected:hover {
    opacity: 0.9;
}

.download-selected svg {
    width: 1.25rem;
    height: 1.25rem;
}

/* Main Content */
main {
    background-color: white;
}

/* Tab Navigation */
.tab-nav {
    display: flex;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
    white-space: nowrap;
    margin: 0 -1rem;
    padding: 0 1rem;
    margin-bottom: 24px;
    gap: 8px;
}

/* Hide scrollbar for Chrome, Safari and Opera */
.tab-nav::-webkit-scrollbar {
    display: none;
}

.tab-nav button {
    padding: 12px 32px;
    font-size: 18px;
    font-weight: 500;
    color: white;
    background-color: #9C9D9D;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

@media (min-width: 640px) {
    .tab-nav {
        margin: 0;
        padding: 0;
        margin-bottom: 24px;
    }
}

.tab-nav button.active {
    background-color: var(--brand-color);
}

.tab-nav button:hover:not(.active) {
    background-color: #D1D1D1;
}

/* Tab Content */
.tab-content {
    margin-bottom: 2rem;
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
}

/* Video Layout */
.video-container {
    display: grid;
    grid-template-columns: 70% 30%;
    gap: 2rem;
    margin-top: 0;
}

.asset-card {
    display: grid;
    grid-template-columns: 30% 40% 30%;
    gap: 1rem;
    margin-top: 0;
}

.asset-download-button {
    padding-top: 15px;
}



.asset-length {
    font-size: 0.75em;
    font-style: italic;
}

.asset-preview {
    text-align: center;
}

.video-main {
    position: relative;
}

.video-main .relative {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 16:9 Aspect Ratio */
    margin-bottom: 0;
    border-top-left-radius: 0.75rem;
    border-top-right-radius: 0.75rem;
    overflow: hidden;
}

.video-main .audio-relative {
    position: relative;
    width: 100%;
    padding-top: 26%;
    margin-bottom: 28%;
    border-top-left-radius: 0.75rem;
    border-top-right-radius: 0.75rem;
    overflow: hidden;
}

.video-main .relative > img,
.video-main .relative > button,
.video-main .relative > video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-top-left-radius: 0.75rem;
    border-top-right-radius: 0.75rem;
}

.video-thumbnails {
    position: relative;
    height: 100%;
}

.video-thumbs-container {
    /* Height calculation: 
       - 5 thumbnails × 96px each = 480px
       - 4 gaps × 12px each = 48px
       Total height = 528px */
    height: 625px;
    overflow: auto;
    background-color: #F9FAFB;
    border-radius: 0.5rem;
    padding: 1rem;
}

.video-thumbs-wrapper {
    height: 100%;
    overflow-y: auto;
    padding-right: 8px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.video-thumb {
    flex-shrink: 0;
    position: relative;
    min-height: 80px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    background-color: #ffffff;
    padding: 5px;
}

.video-thumb span {
    inset: 0;
    color: #000000;
    font-weight: 500;
    font-size: 1rem;
    z-index: 1;
}

.video-prev,
.video-next {
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #E5E7EB;
    border-radius: 0.375rem;
    background-color: white;
    transition: all 0.2s ease;
}

.video-prev:hover,
.video-next:hover {
    border-color: #D1D5DB;
    background-color: #F9FAFB;
}

/* Custom scrollbar styling */
.video-thumbs-wrapper::-webkit-scrollbar {
    width: 6px;
}

.video-thumbs-wrapper::-webkit-scrollbar-track {
    background: transparent;
}

.video-thumbs-wrapper::-webkit-scrollbar-thumb {
    background-color: #D1D5DB;
    border-radius: 3px;
}

.video-thumbs-wrapper {
    scrollbar-width: thin;
    scrollbar-color: #D1D5DB transparent;
}

.media-details {
    background-color: var(--brand-color);
    color: white;
    padding: 1.5rem 2rem;
    margin-top: 0;
    border-bottom-left-radius: 0.75rem;
    border-bottom-right-radius: 0.75rem;
}

.media-details-grid {
    display: grid;
    grid-template-columns: 2fr auto auto auto auto;
    gap: 3rem;
    align-items: start;
    padding-bottom: 10px;
}

.media-detail-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.media-detail-item.description {
    white-space: normal;
    min-width: 0;
    padding-right: 1rem;
}

.media-detail-label {
    font-weight: 600;
    font-size: 1rem;
    opacity: 1;
    white-space: nowrap;
}

.media-detail-value {
    font-size: 0.875rem;
    line-height: 1.4;
}

.download-asset-button {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
}

.download-asset-button:hover {
    opacity: 0.8;
}


/* Responsive styles for media details */
@media (max-width: 1024px) {
    .video-container {
        grid-template-columns: 1fr;
    }
    
    .video-thumbnails {
        height: auto;
    }
    
    .video-thumbs-container {
        height: 528px; /* Keep the same height on mobile */
    }
    
    .media-details-grid {
        grid-template-columns: 1fr auto auto auto;
        gap: 2rem;
    }

    .media-detail-item.description {
        grid-column: 1 / -1;
        margin-bottom: 1rem;
    }
}

@media (max-width: 768px) {
    .media-details {
        padding: 1.25rem;
    }

    .media-details-grid {
        grid-template-columns: 1fr 1fr;
        gap: 1.5rem;
    }

    .media-detail-item.description {
        grid-column: 1 / -1;
        margin-bottom: 1rem;
    }

    .download-asset-button {
        grid-column: 1 / -1;
        justify-content: flex-start;
        margin-top: 0.5rem;
    }
}

@media (max-width: 480px) {
    .media-details-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .media-detail-item {
        flex-direction: row;
        align-items: center;
        gap: 1rem;
    }

    .media-detail-item.description {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* Content Section */
.content-section {
    margin: 2rem 0;
    position: relative;
}

.truncated-content {
    position: relative;
    max-height: 200px;
    overflow: hidden;
    transition: max-height 0.5s ease;
}

.truncated-content.expanded {
    max-height: none;
}

.truncated-content p {
    margin-bottom: 1rem;
    line-height: 1.6;
    color: #374151;
}

.truncated-content::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100px;
    background: linear-gradient(to bottom, rgba(255,255,255,0) 0%, rgba(255,255,255,1) 100%);
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.truncated-content.expanded::after {
    opacity: 0;
}

.read-more-btn {
    display: block;
    margin: 1rem auto 0;
    padding: 0.75rem 2rem;
    background-color: var(--brand-color);
    color: white;
    border: none;
    border-radius: 0.5rem;
    font-weight: 500;
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.read-more-btn:hover {
    opacity: 0.9;
}

/* Related Stories Section */
.shadow-subtle {
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.hover\:shadow-hover:hover {
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.12), 0 10px 10px rgba(0, 0, 0, 0.08);
}

/* Story card hover effects */
.story-card-thumb {
    position: relative;
    overflow: hidden;
    border-radius: 0.375rem;
}

.story-card-thumb img.thumb-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.story-card-thumb::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(196, 196, 196, 0) 0%, rgba(118, 61, 158, 0.8) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.group:hover .story-card-thumb::before {
    opacity: 1;
}

/* Large story card hover effects */
.card-content {
    position: relative;
}

.card-content .story-img-container {
    position: relative;
    overflow: hidden;
}

.card-content .story-img-container::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(196, 196, 196, 0) 0%, rgba(196, 196, 196, 0.8) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.card-content:hover .story-img-container::before {
    opacity: 1;
}

.view-assets-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    width: 65px;
    height: 65px;
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 2;
}

.group:hover .view-assets-icon,
.card-content:hover .view-assets-icon {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

/* Newsletter Section */
.brand-color {
    color: var(--brand-color);
}

.bg-brand {
    background-color: var(--brand-color);
}

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

/* Brand Color Variable */
:root {
    --brand-color: #bb0000;
}

.video-thumb.selected::before {
    background: var(--brand-color);
}

.video-thumb.selected::after {
    content: '';
    position: absolute;
    inset: 0;
    border: 3px solid white;
    border-radius: 8px;
    pointer-events: none;
    z-index: 1;
}

.logo {
    height: 5rem;
}

header {
    position: sticky;
    top: 0;
    z-index: 999999;
}

