/* ================================
   BLOG STYLES
   ================================ */

/* No overrides needed - use default breadcrumb styles from style-general.css */

/* Hero Section */
.blog-hero {
    position: relative;
    width: 100%;
    height: 60vh;
    min-height: 400px;
    overflow: hidden;
}

.blog-hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.blog-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.7));
    display: flex;
    align-items: center;
    justify-content: center;
}

.blog-hero-content {
    text-align: center;
    color: white;
    max-width: 800px;
    padding: 0 20px;
}

.blog-category-badge {
    background-color: #4CAF50;
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    display: inline-block;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.blog-hero-title {
    font-family: 'Roboto Condensed', sans-serif;
    font-size: 3rem;
    font-weight: 700;
    margin: 0 0 20px 0;
    line-height: 1.2;
}

.blog-meta {
    display: flex;
    justify-content: center;
    gap: 30px;
    font-size: 16px;
    opacity: 0.9;
}

.blog-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}


/* Main Content */
.blog-content {
    padding: 60px 0;
    background-color: #fff;
}

.blog-content-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    gap: 40px;
}

/* Left Column - Main Content */
.blog-main {
    flex: 0 0 65%;
}

/* Gallery Section */
.blog-gallery-section {
    margin-bottom: 40px;
    background: #f8f9fa;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.blog-gallery-main {
    position: relative;
    width: 100%;
    height: 400px;
    overflow: hidden;
}

.blog-gallery-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-navigation {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
    pointer-events: none;
}

.gallery-btn {
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 24px;
    color: #333;
    cursor: pointer;
    transition: all 0.3s ease;
    pointer-events: all;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.gallery-btn:hover {
    background: white;
    transform: scale(1.1);
}

.blog-gallery-thumbnails {
    display: flex;
    gap: 8px;
    padding: 20px;
    background: white;
    overflow-x: auto;
}

.gallery-thumbnail {
    flex: 0 0 80px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    border: 3px solid transparent;
    transition: all 0.3s ease;
}

.gallery-thumbnail.active {
    border-color: #4CAF50;
}

.gallery-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-thumbnail:hover {
    transform: scale(1.05);
}

/* Article Header */
.blog-article-header {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #e9ecef;
}

.blog-article-title {
    font-family: 'Roboto Condensed', sans-serif;
    font-size: 2.5rem;
    font-weight: 300;
    color: #2c3e50;
    margin: 0 0 15px 0;
    line-height: 1.3;
}

.blog-article-excerpt {
    font-size: 1.2rem;
    color: #6c757d;
    line-height: 1.6;
    font-style: italic;
    margin: 0;
}

/* Article Content */
.blog-article-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #495057;
    margin-bottom: 40px;
}

.blog-article-content p {
    margin-bottom: 20px;
}

/* Share Section */
.blog-share-section {
    background: #f8f9fa;
    padding: 25px 30px;
    border-radius: 12px;
    text-align: left;
}

.blog-share-section h3 {
    font-family: 'Roboto Condensed', sans-serif;
    font-size: 1.1rem;
    font-weight: 300;
    color: #2c3e50;
    margin: 0 0 15px 0;
}

.blog-share-buttons {
    display: flex;
    justify-content: flex-start;
    gap: 12px;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    font-size: 18px;
}

.share-btn.facebook {
    background-color: #3b5998;
    color: white;
}

.share-btn.instagram {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    color: white;
}

.share-btn.twitter {
    background-color: #000000;
    color: white;
}

.share-btn.linkedin {
    background-color: #0077b5;
    color: white;
}

.share-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Right Column - Sidebar */
.blog-sidebar {
    flex: 0 0 35%;
}

.sidebar-section {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
    overflow: hidden;
}

.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    background: white;
    border-bottom: 1px solid #e9ecef;
}

.sidebar-header-vertical {
    flex-direction: column;
    align-items: stretch;
    gap: 15px;
}

.sidebar-title {
    font-family: 'Roboto Condensed', sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: #2c3e50;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Category Filter Select */
.category-filter-select {
    padding: 8px 12px;
    font-size: 14px;
    font-weight: 500;
    color: #2c3e50;
    background-color: white;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    outline: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%232c3e50' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    padding-right: 35px;
    min-width: 150px;
}

.sidebar-header-vertical .category-filter-select {
    width: 100%;
}

.category-filter-select:hover {
    border-color: #c8a882;
}

.category-filter-select:focus {
    border-color: #c8a882;
    box-shadow: 0 0 0 3px rgba(200, 168, 130, 0.1);
}

.category-filter-select option {
    padding: 10px;
    font-weight: 500;
    background-color: white;
    color: #2c3e50;
}

.category-filter-select option:hover {
    background-color: #f8f9fa;
    color: #2c3e50;
}

.category-filter-select option:checked {
    background-color: #f8f9fa;
    color: #2c3e50;
}

/* Latest News Styles */
.latest-news {
    padding: 25px;
}

.news-item {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e9ecef;
}

.news-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.news-image {
    flex: 0 0 80px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-content h4 {
    font-size: 1rem;
    font-weight: 600;
    color: #2c3e50;
    margin: 0 0 8px 0;
    line-height: 1.4;
}

.news-content h4 a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.news-content h4 a:hover {
    color: #4CAF50;
}

.news-date {
    font-size: 0.85rem;
    color: #6c757d;
    margin-bottom: 5px;
}

.news-excerpt {
    font-size: 0.9rem;
    color: #6c757d;
    line-height: 1.5;
}

/* Categories Styles */
.categories-list {
    padding: 25px;
}

.category-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #e9ecef;
    transition: all 0.3s ease;
}

.category-item:last-child {
    border-bottom: none;
}

.category-item:hover {
    background-color: #f8f9fa;
    margin: 0 -25px;
    padding-left: 25px;
    padding-right: 25px;
}

.category-name {
    font-weight: 500;
    color: #2c3e50;
    text-decoration: none;
    transition: color 0.3s ease;
    cursor: pointer;
}

.category-item.active {
    background-color: #f8f9fa;
    margin: 0 -25px;
    padding-left: 25px;
    padding-right: 25px;
    border-left: 3px solid #c8a882;
}

.category-item.active .category-name {
    color: #c8a882;
    font-weight: 600;
}

.view-all-btn {
    display: none;
    font-size: 13px;
    color: #c8a882;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    white-space: nowrap;
    padding: 5px 10px;
    border-radius: 4px;
}

.view-all-btn:hover {
    color: #a88a6a;
    background-color: #f8f9fa;
}

.category-name:hover {
    color: #4CAF50;
}

.category-count {
    background-color: #e9ecef;
    color: #6c757d;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 500;
}

/* Loading State */
.loading {
    text-align: center;
    padding: 20px;
    color: #6c757d;
    font-style: italic;
}

/* ================================
   ARCHIVE BLOG POSTS LIST
   ================================ */

.archive-posts-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.archive-post-item {
    display: flex;
    gap: 25px;
    padding-bottom: 30px;
    margin-bottom: 30px;
    border-bottom: 1px solid #e9ecef;
}

.archive-post-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.archive-post-image {
    flex: 0 0 250px;
    height: 180px;
    border-radius: 12px;
    overflow: hidden;
}

.archive-post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.archive-post-image:hover img {
    transform: scale(1.05);
}

.archive-post-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.archive-post-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 12px;
    font-size: 0.875rem;
}

.post-category {
    color: #4CAF50;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.post-date {
    color: #6c757d;
}

.archive-post-title {
    font-family: 'Roboto Condensed', sans-serif;
    font-size: 1.75rem;
    font-weight: 600;
    color: #2c3e50;
    margin: 0 0 12px 0;
    line-height: 1.3;
}

.archive-post-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.archive-post-title a:hover {
    color: #4CAF50;
}

.archive-post-excerpt {
    color: #6c757d;
    font-size: 1rem;
    line-height: 1.6;
    margin: 0 0 15px 0;
    flex: 1;
}

.archive-read-more {
    display: inline-flex;
    align-items: center;
    color: #4CAF50;
    font-weight: 600;
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.archive-read-more:hover {
    color: #388E3C;
    transform: translateX(5px);
}

/* Blog Archive Styles */
.blog-filters {
    background-color: white;
    border-bottom: 1px solid #e9ecef;
    padding: 30px 0;
}

.blog-filters-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.search-box form {
    display: flex;
    gap: 10px;
    max-width: 400px;
}

.search-box input[type="text"] {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid #e9ecef;
    border-radius: 25px;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

.search-box input[type="text"]:focus {
    outline: none;
    border-color: #4CAF50;
}

.search-box button {
    background: #4CAF50;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 25px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.search-box button:hover {
    background: #388E3C;
}

.category-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.filter-btn {
    padding: 8px 16px;
    background: #f8f9fa;
    color: #495057;
    text-decoration: none;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.filter-btn:hover {
    background: #e9ecef;
    color: #2c3e50;
}

.filter-btn.active {
    background: #4CAF50;
    color: white;
    border-color: #4CAF50;
}

/* Blog Grid */
.blog-grid-section {
    padding: 60px 0;
    background-color: #f8f9fa;
}

.blog-grid-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.blog-posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.blog-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.blog-card-image {
    position: relative;
    height: 250px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.blog-card-category {
    position: absolute;
    top: 15px;
    left: 15px;
    background: #4CAF50;
    color: white;
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.blog-card-content {
    padding: 25px;
}

.blog-card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    font-size: 13px;
    color: #6c757d;
}

.blog-card-title {
    margin: 0 0 15px 0;
    line-height: 1.4;
}

.blog-card-title a {
    color: #2c3e50;
    text-decoration: none;
    font-size: 1.25rem;
    font-weight: 600;
    transition: color 0.3s ease;
}

.blog-card-title a:hover {
    color: #4CAF50;
}

.blog-card-excerpt {
    color: #6c757d;
    line-height: 1.6;
    margin: 0 0 20px 0;
    font-size: 0.95rem;
}

.blog-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid #e9ecef;
}

.blog-card-author {
    font-size: 13px;
    color: #6c757d;
}

.blog-card-btn {
    background: #4CAF50;
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.blog-card-btn:hover {
    background: #388E3C;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 40px;
}

.pagination-btn {
    padding: 10px 16px;
    background: white;
    color: #495057;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 1px solid #dee2e6;
}

.pagination-btn:hover {
    background: #f8f9fa;
    color: #2c3e50;
}

.pagination-btn.active {
    background: #4CAF50;
    color: white;
    border-color: #4CAF50;
}

/* No Posts */
.no-posts {
    text-align: center;
    padding: 80px 20px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.no-posts h3 {
    font-family: 'Roboto Condensed', sans-serif;
    font-size: 2rem;
    color: #2c3e50;
    margin: 0 0 15px 0;
}

.no-posts p {
    color: #6c757d;
    font-size: 1.1rem;
    margin: 0 0 30px 0;
}

.blog-btn {
    display: inline-block;
    background: #4CAF50;
    color: white;
    padding: 12px 30px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.blog-btn:hover {
    background: #388E3C;
}

/* ================================
   LIGHTBOX MODAL
   ================================ */

.lightbox {
    display: none;
    position: fixed;
    z-index: 99999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(5px);
}

.lightbox.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-content {
    position: relative;
    margin: auto;
    padding: 20px;
    width: 90%;
    max-width: 1200px;
    max-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-image {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8);
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.3s ease;
}

.lightbox-image.loaded {
    opacity: 1;
    transform: scale(1);
}

.lightbox-close {
    position: absolute;
    top: 30px;
    right: 40px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 100000;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.lightbox-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.lightbox-navigation {
    position: absolute;
    width: 100%;
    display: flex;
    justify-content: space-between;
    pointer-events: none;
}

.lightbox-prev,
.lightbox-next {
    pointer-events: all;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    font-size: 2rem;
    color: #2c3e50;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 100000;
}

.lightbox-prev {
    margin-left: 40px;
}

.lightbox-next {
    margin-right: 40px;
}

.lightbox-prev:hover,
.lightbox-next:hover {
    background: white;
    transform: scale(1.1);
}

.lightbox-counter {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 10px 20px;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 500;
}

/* Responsive Design */
@media (max-width: 992px) {
    .blog-content-container {
        flex-direction: column;
        gap: 30px;
    }
    
    .blog-main {
        flex: none;
    }
    
    .blog-sidebar {
        flex: none;
    }
    
    .blog-hero-title {
        font-size: 2.5rem;
    }
    
    .blog-article-title {
        font-size: 2rem;
        font-weight: 300;
    }
    
    .blog-posts-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
    
    .blog-filters-container {
        gap: 15px;
    }
    
    .archive-post-item {
        flex-direction: column;
        gap: 20px;
    }
    
    .archive-post-image {
        flex: none;
        width: 100%;
        height: 250px;
    }
    
    .archive-post-title {
        font-size: 1.5rem;
    }
}

@media (max-width: 768px) {
    .blog-meta {
        flex-direction: column;
        gap: 10px;
    }
    
    .blog-hero-title {
        font-size: 2rem;
    }
    
    .blog-article-title {
        font-size: 1.8rem;
    }
    
    .blog-share-buttons {
        flex-direction: column;
        gap: 10px;
    }
    
    .blog-gallery-main {
        height: 300px;
    }
    
    .gallery-btn {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
    
    .archive-post-image {
        height: 200px;
    }
    
    .archive-post-title {
        font-size: 1.4rem;
    }
    
    .archive-post-excerpt {
        font-size: 0.95rem;
    }
}

@media (max-width: 576px) {
    .blog-content {
        padding: 40px 0;
    }
    
    .blog-content-container {
        padding: 0 15px;
    }
    
    .blog-hero-title {
        font-size: 1.8rem;
    }
    
    .blog-article-title {
        font-size: 1.5rem;
    }
    
    .news-item {
        flex-direction: column;
        gap: 10px;
    }
    
    .news-image {
        flex: none;
        height: 150px;
    }
    
    .archive-post-image {
        height: 180px;
    }
    
    .archive-post-title {
        font-size: 1.3rem;
    }
}

/* Lightbox Responsive */
@media (max-width: 768px) {
    .lightbox-close {
        top: 15px;
        right: 15px;
        width: 50px;
        height: 50px;
        font-size: 30px;
    }
    
    .lightbox-prev,
    .lightbox-next {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }
    
    .lightbox-prev {
        margin-left: 15px;
    }
    
    .lightbox-next {
        margin-right: 15px;
    }
    
    .lightbox-counter {
        bottom: 15px;
        padding: 8px 16px;
        font-size: 0.875rem;
    }
    
    .lightbox-content {
        padding: 10px;
    }
    
    .lightbox-image {
        max-height: 70vh;
    }
}