/* Web Stories Page Styles */

/* Page Wrapper */
.web-stories-page-wrapper,
.archive-web-story-wrapper {
    padding: 40px 0 !important;
    background: #fff;
}

/* Container - Match site width margins */
.web-stories-page-wrapper,
.archive-web-story-wrapper {
    padding-left: 15px;
    padding-right: 15px;
    margin: 0px 70px;
}

/* Header Styles */
.web-stories-header,
.archive-web-story-header {
    text-align: center;
    margin-bottom: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.web-stories-title,
.archive-web-story-title {
    font-size: 26px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0;
    letter-spacing: -0.5px;
    text-align: left;
}

.web-stories-description {
    font-size: 14px;
    color: #666;
    max-width: 600px;
    margin: 0;
}

/* Web Stories Grid */
.web-stories-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

/* Web Story Card */
.web-story-card {
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 12px;
    overflow: hidden;
    height: 100%;
    transition: box-shadow 0.3s ease;
}

.web-story-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.web-story-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

/* Thumbnail */
.web-story-thumbnail {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

.web-story-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.web-story-card:hover .web-story-thumbnail img {
    transform: scale(1.05);
}

/* Placeholder */
.web-story-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    font-size: 16px;
    font-weight: 600;
}

/* Overlay */
.web-story-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.web-story-card:hover .web-story-overlay {
    opacity: 1;
}

.web-story-view {
    background: #fff;
    color: #333;
    padding: 10px 24px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Content */
.web-story-content {
    padding: 15px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.web-story-title {
    font-size: 16px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 8px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.web-story-title a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

.web-story-title a:hover {
    color: #5b47db;
}

.web-story-meta {
    font-size: 12px;
    color: #999;
    margin-top: auto;
    display: flex;
    align-items: center;
    gap: 10px;
}

.web-story-date {
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Pagination */
.web-story-pagination {
    grid-column: 1 / -1;
    margin-top: 40px;
    display: flex;
    justify-content: center;
}

.web-story-pagination .pagination-wrapper,
.web-story-pagination .nav-links {
    display: flex;
    gap: 10px;
}

.web-story-pagination .page-numbers {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: #fff;
    color: #333;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 1px solid #eee;
}

.web-story-pagination .page-numbers:hover,
.web-story-pagination .page-numbers.current {
    background: #333;
    color: #fff;
    border-color: #333;
}

.web-story-pagination .prev,
.web-story-pagination .next {
    width: auto;
    padding: 0 20px;
}

/* No Results */
.no-web-stories {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    color: #888;
    font-size: 18px;
}

/* Single Web Story */
.single-web-story-wrapper {
    padding: 40px 0 80px;
}

.single-web-story {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.single-web-story-featured-image {
    margin-bottom: 30px;
    border-radius: 12px;
    overflow: hidden;
}

.single-web-story-featured-image img {
    width: 100%;
    height: auto;
    display: block;
}

.single-web-story-header {
    text-align: center;
    margin-bottom: 40px;
}

.single-web-story-title {
    font-size: 36px;
    font-weight: 700;
    color: #333;
    margin-bottom: 20px;
    line-height: 1.3;
}

.single-web-story-meta {
    display: flex;
    justify-content: center;
    gap: 30px;
    color: #666;
    font-size: 14px;
}

.single-web-story-meta span {
    display: flex;
    align-items: center;
    gap: 8px;
}

.single-web-story-meta i {
    color: #888;
}

.single-web-story-content {
    font-size: 18px;
    line-height: 1.8;
    color: #444;
}

.single-web-story-content p {
    margin-bottom: 20px;
}

.single-web-story-footer {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid #eee;
}

.single-web-story-navigation {
    display: flex;
    justify-content: space-between;
}

.single-web-story-navigation a {
    color: #333;
    text-decoration: none;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: color 0.3s ease;
}

.single-web-story-navigation a:hover {
    color: #667eea;
}

.nav-previous,
.nav-next {
    max-width: 45%;
}

.nav-next {
    margin-left: auto;
    text-align: right;
}

/* Responsive */
@media (max-width: 1024px) {
    .web-stories-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
    }
}

@media (max-width: 991px) {
    .web-stories-page-wrapper,
    .archive-web-story-wrapper {
        margin: 0px 15px;
    }
}

@media (max-width: 768px) {
    .web-stories-page-wrapper,
    .archive-web-story-wrapper {
        padding: 20px 15px !important;
        margin: 0px 15px;
        background: #fff;
        border: 1px solid #e0e0e0;
        border-radius: 12px;
    }

    .web-stories-header,
    .archive-web-story-header {
        margin-bottom: 20px;
    }

    .web-stories-title,
    .archive-web-story-title {
        font-size: 22px;
        text-align: left;
    }

    .web-stories-description {
        font-size: 14px;
    }

    .web-stories-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .single-web-story-title {
        font-size: 24px;
    }

    .single-web-story-content {
        font-size: 16px;
    }

    .single-web-story-meta {
        flex-direction: column;
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .web-stories-page-wrapper,
    .archive-web-story-wrapper {
        padding: 20px 15px !important;
    }

    .web-stories-title,
    .archive-web-story-title {
        font-size: 20px;
        text-align: left;
    }

    .web-stories-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
}
