/* Single Pages Styles */

/* Single Post (General) */
.single-post-wrapper {
    background: #f8f9fa;
    padding: 2rem 0;
    min-height: 100vh;
}

/* More specific selector to avoid affecting sidebar items */
.single-post .site-main > article,
.single-post article.post,
.single-post article.type-post {
    background: white;
    border-radius: 0.625rem; box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    overflow: hidden;
    margin-bottom: 2.5rem; }

/* Exclude sidebar items explicitly */
.single-post article.event-item-sidebar,
.single-post article.news-item-sidebar {
    background: transparent;
    border-radius: 0;
    box-shadow: none;
    overflow: visible;
    margin-bottom: 0.75rem;
}

.single-post .site-main > article .entry-content,
.single-post article.post .entry-content,
.single-post article.type-post .entry-content {
    padding: 2.5rem 1.875rem; line-height: 1.8;
    font-size: 1rem; }

.single-post .site-main > article .post-thumbnail,
.single-post article.post .post-thumbnail,
.single-post article.type-post .post-thumbnail {
    margin-bottom: 0;
}

.single-post .site-main > article .post-thumbnail img,
.single-post article.post .post-thumbnail img,
.single-post article.type-post .post-thumbnail img {
    width: 100%;
    height: auto;
    display: block;
}

.single-post .site-main > article .entry-header,
.single-post article.post .entry-header,
.single-post article.type-post .entry-header {
    padding: 1.875rem 1.875rem 0; }

.single-post .site-main > article .entry-title,
.single-post article.post .entry-title,
.single-post article.type-post .entry-title {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #2c3e50;
}

.single-post .site-main > article .entry-meta,
.single-post article.post .entry-meta,
.single-post article.type-post .entry-meta {
    font-size: 0.875rem; color: #6c757d;
    margin-bottom: 1.25rem; }

/* Unified sidebar styles matching news/events */
.single-post-wrapper .col-lg-4 {
    padding-left: 1.25rem; }

/* Responsive */
@media (max-width: 991.98px) {
    .single-post-wrapper {
        padding: 1rem 0;
    }
    
    .single-post .site-main > article .entry-content,
    .single-post article.post .entry-content,
    .single-post article.type-post .entry-content {
        padding: 1.25rem; }
    
    .single-post-wrapper .col-lg-4 {
        padding-left: 0.9375rem; margin-top: 1.875rem; }
}

/* Single News Page */
.news-single {
    padding: 1.25rem 0; }

.news-post {
    background: white;
    border-radius: 0.625rem; box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    overflow: hidden;
    margin-bottom: 2.5rem; }

/* .news-header styling now handled by unified-breadcrumbs.css */

.news-meta-top {
    display: flex;
    gap: 1.25rem; margin-bottom: 1.25rem; font-size: 0.875rem; opacity: 0.9;
}

.news-date,
.news-category {
    display: flex;
    align-items: center;
    gap: 0.3125rem; }

.news-single .news-title,
.news-post .news-title {
    font-size: 2.5rem;
    margin: 0;
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.news-featured-image {
    margin-bottom: 1.5625rem; text-align: center;
}

.featured-image-container {
    position: relative;
    display: inline-block;
}

.news-featured-image img {
    border-radius: 0.5rem; max-height: 400px;
    width: auto;
}

.news-date-overlay {
    top: 15px;
    left: 15px;
    z-index: 10;
}

.news-date-overlay .news-date {
    background: rgba(0, 123, 255, 0.95) !important;
    backdrop-filter: blur(5px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border: none;
    padding: 0.5rem 1rem; font-size: 0.875rem; font-weight: 600;
}

.image-caption {
    margin-top: 0.625rem; font-size: 0.875rem; opacity: 0.8;
    font-style: italic;
}

.news-single .news-content,
.news-post .news-content {
    padding: 2.5rem 1.875rem; line-height: 1.8;
    font-size: 1rem; }

.news-single .news-content h2,
.news-single .news-content h3,
.news-post .news-content h2,
.news-post .news-content h3 {
    color: #2c3e50;
    margin-top: 35px;
    margin-bottom: 1.25rem; }

.news-single .news-content p,
.news-post .news-content p {
    margin-bottom: 1.25rem; }

.news-single .news-content img,
.news-post .news-content img {
    max-width: 100%;
    height: auto;
    border-radius: 0.3125rem; margin: 20px 0;
}

.page-links {
    margin-top: 1.875rem; padding: 20px;
    background-color: #f8f9fa;
    border-radius: 0.3125rem; text-align: center;
}

.news-tags {
    padding: 20px 30px;
    background-color: #f8f9fa;
    border-top: 1px solid #eee;
    display: flex;
    align-items: center;
    gap: 0.625rem; flex-wrap: wrap;
}

.tags-label {
    font-weight: 600;
    color: #495057;
}

.news-tags a {
    background-color: #007bff;
    color: white;
    padding: 0.25rem 0.75rem; border-radius: 15px;
    text-decoration: none;
    font-size: 0.8125rem; transition: all 0.3s ease;
}

.news-tags a:hover {
    background-color: #0056b3;
    text-decoration: none;
    transform: translateY(-1px);
}

.news-meta {
    padding: 1.875rem; background-color: #f8f9fa;
    border-top: 1px solid #dee2e6;
}

.news-meta-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.25rem; font-size: 0.875rem; color: #6c757d;
}

.author-info,
.updated-info {
    display: flex;
    align-items: center;
    gap: 0.3125rem; }

.news-actions {
    display: flex;
    gap: 0.9375rem; justify-content: center;
}

.btn {
    display: inline-block;
    padding: 0.75rem 1.5625rem; border: 2px solid;
    text-decoration: none;
    border-radius: 0.3125rem; font-weight: 500;
    transition: all 0.3s ease;
}

.btn-outline-primary {
    border-color: #007bff;
    color: #007bff;
}

.btn-outline-primary:hover {
    background-color: #007bff;
    color: white;
    text-decoration: none;
}

.btn-outline-secondary {
    border-color: #6c757d;
    color: #6c757d;
}

.btn-outline-secondary:hover {
    background-color: #6c757d;
    color: white;
    text-decoration: none;
}

.news-navigation {
    background: white;
    border-radius: 0.625rem; box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    padding: 1.875rem; }

.nav-title {
    color: #2c3e50;
    margin-bottom: 1.5625rem; text-align: center;
    font-size: 1.5rem;
}

.nav-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem; }

.nav-link {
    display: block;
    padding: 20px;
    background-color: #f8f9fa;
    border-radius: 0.5rem; text-decoration: none;
    color: #495057;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.nav-link:hover {
    background-color: #e9ecef;
    text-decoration: none;
    color: #007bff;
    border-color: #007bff;
    transform: translateY(-2px);
}

.nav-direction {
    display: block;
    font-size: 0.875rem; font-weight: 600;
    color: #007bff;
    margin-bottom: 8px;
}

.nav-link .nav-title {
    display: block;
    font-weight: 600;
    margin-bottom: 5px;
    font-size: 1rem; }

.nav-date {
    display: block;
    font-size: 0.75rem; color: #6c757d;
}

.nav-previous {
    text-align: left;
}

.nav-next {
    text-align: right;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .news-title {
        font-size: 2rem;
    }
    
    .news-header,
    .news-content,
    .news-meta,
    .news-navigation {
        padding: 1.25rem; }
    
    .news-meta-top {
        flex-direction: column;
        gap: 0.625rem; }
    
    .news-meta-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.625rem; }
    
    .news-actions {
        flex-direction: column;
    }
    
    .nav-links {
        grid-template-columns: 1fr;
        gap: 0.9375rem; }
    
    .nav-next {
        text-align: left;
    }
}

/* Gallery Styles */
.news-gallery {
    border-top: 2px solid #e9ecef;
    padding-top: 2rem;
    margin-top: 2rem;
}

.gallery-title {
    color: var(--bs-primary, #0d6efd);
    font-weight: 600;
    text-align: center;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 0.5rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.gallery-image-container {
    position: relative;
    overflow: hidden;
    border-radius: 0.5rem;
    aspect-ratio: 1;
}

.gallery-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    color: white;
    font-size: 1.5rem;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-item:hover .gallery-thumbnail {
    transform: scale(1.1);
}

.gallery-info {
    text-align: center;
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 0.5rem;
    border-left: 4px solid var(--bs-primary, #0d6efd);
}

.gallery-link-container {
    border-top: 1px dashed #dee2e6;
    padding-top: 1rem;
}

/* Fancybox customization */
.fancybox__container {
    --fancybox-bg: rgba(0, 0, 0, 0.9);
}

.fancybox__caption {
    background: rgba(0, 0, 0, 0.8);
    color: white;
    font-size: 0.9rem;
    padding: 1rem;
    text-align: center;
}

/* Events Sidebar Styles */
.events-sidebar {
    background: #ffffff;
    border-radius: 0.625rem; box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    padding: 25px;
    margin-bottom: 1.875rem; border: 1px solid #e9ecef;
}

.events-sidebar-header {
    border-bottom: 2px solid #007bff;
    padding-bottom: 15px;
    margin-bottom: 1.5625rem; }

.sidebar-title {
    color: #2c3e50;
    font-size: 1.3rem;
    font-weight: 600;
    margin: 0 0 10px 0;
}

.view-all-link {
    display: inline-block;
    color: #007bff;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: color 0.3s ease;
}

.view-all-link:hover {
    color: #0056b3;
    text-decoration: none;
}

.events-list {
    display: flex;
    flex-direction: column;
    gap: 1.25rem; }

.events-sidebar .event-item,
.single-post .event-item {
    display: flex;
    align-items: flex-start;
    gap: 0.9375rem; padding: 15px;
    background: #f8f9fa;
    border-radius: 0.5rem; border-left: 4px solid #007bff;
    transition: all 0.3s ease;
}

.events-sidebar .event-item:hover,
.single-post .event-item:hover {
    background: #e9ecef;
    transform: translateX(5px);
}

.event-date {
    flex-shrink: 0;
}

.date-block {
    background: #007bff;
    color: white;
    text-align: center;
    border-radius: 0.5rem; padding: 0.5rem 0.75rem; min-width: 50px;
    box-shadow: 0 2px 8px rgba(0, 123, 255, 0.3);
}

.date-block .day {
    display: block;
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1;
}

.date-block .month {
    display: block;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    opacity: 0.9;
}

.event-content {
    flex: 1;
    min-width: 0;
}

.event-title {
    font-size: 0.95rem;
    font-weight: 600;
    margin: 0 0 8px 0;
    line-height: 1.3;
}

.event-title a {
    color: #2c3e50;
    text-decoration: none;
    transition: color 0.3s ease;
}

.event-title a:hover {
    color: #007bff;
    text-decoration: none;
}

.event-excerpt {
    font-size: 0.85rem;
    color: #6c757d;
    line-height: 1.4;
    margin: 0;
}

.no-events {
    text-align: center;
    padding: 30px 20px;
    background: #f8f9fa;
    border-radius: 0.5rem; border: 2px dashed #dee2e6;
}

.no-events p {
    margin-bottom: 0.9375rem; font-size: 0.9rem;
}

/* Responsive adjustments */
@media (max-width: 991.98px) {
    .events-sidebar {
        margin-top: 40px;
    }
    
    .event-item {
        padding: 12px;
    }
    
    .date-block {
        min-width: 45px;
        padding: 6px 10px;
    }
    
    .date-block .day {
        font-size: 1.1rem;
    }
}

/* ================================================
   SINGLE INTERESTING POST STYLES
   ================================================ */

/* Container */
.single-interesting .site-main .container {
    padding: 40px 20px;
}

/* Back Button */
.interesting-back-btn {
    display: inline-flex;
    align-items: center;
    padding: 12px 24px;
    background: var(--category-color, #95a5a6);
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 500;
    transition: all 0.3s ease;
    margin-bottom: 1.875rem; }

.interesting-back-btn:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    color: white;
    text-decoration: none;
}

.interesting-back-btn svg {
    margin-right: 8px;
}

/* Category Badge */
.interesting-category-badge {
    display: inline-block;
    background: var(--category-color, #95a5a6);
    color: white;
    padding: 0.5rem 1rem; border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 1.25rem; }

/* Article Container */
.single-interesting article {
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
}

/* Featured Image Section */
.interesting-featured-image {
    position: relative;
    height: 300px;
    overflow: hidden;
}

.interesting-featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.interesting-image-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0) 100%);
    padding: 1.875rem; }

.interesting-image-overlay h1 {
    color: white;
    font-size: 2.2rem;
    font-weight: 600;
    margin: 0;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

/* No Image Header */
.interesting-no-image-header {
    background: linear-gradient(135deg, var(--category-color, #95a5a6), var(--category-color-light, #95a5a688));
    padding: 50px 30px;
    text-align: center;
}

.interesting-no-image-header .icon {
    font-size: 4rem;
    margin-bottom: 1.25rem; }

.interesting-no-image-header h1 {
    color: white;
    font-size: 2.2rem;
    font-weight: 600;
    margin: 0;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

/* Content Body */
.interesting-content-body {
    padding: 40px;
}

/* Primary Action Button Section */
.interesting-action-box {
    text-align: center;
    margin-bottom: 1.875rem; padding: 25px;
    background: var(--category-color-bg, rgba(149,165,166,0.1));
    border-radius: 0.625rem; border: 2px solid var(--category-color-border, rgba(149,165,166,0.3));
}

.interesting-action-box-title {
    margin-bottom: 0.9375rem; color: var(--category-color, #95a5a6);
    font-weight: 600;
    font-size: 1.1rem;
}

.interesting-primary-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.625rem; background: var(--category-color, #95a5a6);
    color: white;
    padding: 15px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.interesting-primary-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
    color: white;
    text-decoration: none;
}

.interesting-action-note {
    margin-top: 0.625rem; color: #666;
    font-size: 0.9rem;
}

/* Content Text */
.interesting-text-content {
    color: #333;
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1.875rem; }

/* YouTube Embed */
.interesting-youtube-wrapper {
    margin-bottom: 1.875rem; }

.interesting-youtube-container {
    background: #000;
    border-radius: 0.625rem; overflow: hidden;
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
}

.interesting-youtube-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.interesting-youtube-link {
    text-align: center;
    margin-top: 15px;
}

.interesting-youtube-link a {
    color: var(--category-color, #95a5a6);
    text-decoration: none;
    font-size: 0.9rem;
}

.interesting-youtube-link a:hover {
    text-decoration: underline;
}

/* Meta Information Grid */
.interesting-meta-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.25rem; margin-top: 1.875rem; padding: 25px;
    background: #f8f9fa;
    border-radius: 0.625rem; }

.interesting-meta-item {
    display: flex;
    align-items: center;
    gap: 0.625rem; }

.interesting-meta-icon {
    background: var(--category-color, #95a5a6);
    color: white;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.interesting-meta-content .label {
    font-weight: 600;
    color: #333;
}

.interesting-meta-content .value {
    color: #666;
    font-size: 0.9rem;
}

/* Secondary Action */
.interesting-secondary-action {
    text-align: center;
    margin-top: 1.875rem; padding-top: 25px;
    border-top: 1px solid #e0e0e0;
}

.interesting-secondary-action p {
    color: #666;
    margin-bottom: 0.9375rem; }

.interesting-secondary-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--category-color, #95a5a6);
    text-decoration: none;
    font-weight: 500;
    border: 2px solid var(--category-color, #95a5a6);
    padding: 12px 24px;
    border-radius: 25px;
    transition: all 0.3s ease;
    background: transparent;
}

.interesting-secondary-btn:hover {
    background: var(--category-color, #95a5a6);
    color: white;
    text-decoration: none;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .single-interesting .site-main .container {
        padding: 20px 15px;
    }
    
    .interesting-image-overlay h1,
    .interesting-no-image-header h1 {
        font-size: 1.8rem;
    }
    
    .interesting-meta-grid {
        grid-template-columns: 1fr;
        gap: 0.9375rem; }
    
    .interesting-featured-image {
        height: 250px;
    }
    
    .interesting-primary-btn {
        padding: 12px 20px;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .interesting-back-btn {
        padding: 10px 16px;
        font-size: 0.9rem;
    }
    
    .interesting-category-badge {
        font-size: 0.8rem;
        padding: 6px 12px;
    }
}
