/* Enhanced Blog Section Styles */

/* Hero Section Enhancements */
.enhanced-blog-hero {
    position: relative;
    overflow: hidden;
}

.enhanced-blog-hero .hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(229, 174, 88, 0.8) 0%, rgba(18, 33, 54, 0.9) 100%);
    z-index: 1;
}

.enhanced-blog-hero .container {
    position: relative;
    z-index: 2;
}

.hero-badge {
    display: inline-block;
}

.hero-badge .badge-text {
    padding: 8px 20px;
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 25px;
    font-size: 0.875rem;
    letter-spacing: 2px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.enhanced-hero-title {
    font-size: 3.5rem !important;
    font-weight: 800 !important;
    color: white !important;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    margin-bottom: 1rem;
}

.hero-subtitle {
    font-size: 1.2rem;
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto;
    opacity: 0.9;
}

.enhanced-breadcrumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 25px;
    padding: 10px 20px;
    backdrop-filter: blur(10px);
}

.enhanced-breadcrumb .breadcrumb-item a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

.enhanced-breadcrumb .breadcrumb-item a:hover {
    color: var(--theme-color, #e5ae58);
}

.enhanced-breadcrumb .breadcrumb-item.active {
    color: white;
}

/* Hero Stats */
.hero-stats {
    margin-top: 2rem;
}

.stats-container {
    gap: 2rem;
}

.stat-item {
    text-align: center;
    color: white;
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.8;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Blog Listing Section */
.enhanced-blog-listing {
    background: linear-gradient(135deg, rgba(229, 174, 88, 0.02) 0%, rgba(18, 33, 54, 0.02) 100%);
}

/* Filter Section */
.blog-filters-section {
    padding: 2rem 0;
    border-bottom: 1px solid rgba(229, 174, 88, 0.1);
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.section-subtitle {
    font-size: 1.1rem;
    line-height: 1.6;
}

.enhanced-select {
    border: 2px solid rgba(229, 174, 88, 0.2);
    border-radius: 25px;
    padding: 10px 20px;
    background: white;
    font-weight: 500;
    transition: all 0.3s ease;
    min-width: 150px;
}

.enhanced-select:focus {
    border-color: var(--theme-color, #e5ae58);
    box-shadow: 0 0 0 0.2rem rgba(229, 174, 88, 0.25);
    outline: none;
}

/* Enhanced Search Input */
.search-input-container {
    position: relative;
}

.enhanced-search {
    border: 2px solid rgba(229, 174, 88, 0.2);
    border-radius: 25px;
    padding: 10px 45px 10px 20px;
    background: white;
    font-weight: 500;
    transition: all 0.3s ease;
    min-width: 200px;
}

.enhanced-search:focus {
    border-color: var(--theme-color, #e5ae58);
    box-shadow: 0 0 0 0.2rem rgba(229, 174, 88, 0.25);
    outline: none;
}

.enhanced-search::placeholder {
    color: rgba(102, 102, 102, 0.7);
    font-style: italic;
}

.search-icon {
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--theme-color, #e5ae58);
    font-size: 1rem;
    pointer-events: none;
}

/* Enhanced Blog Cards */
.enhanced-blog-grid {
    margin-top: 3rem;
}

.enhanced-blog-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border: 1px solid rgba(229, 174, 88, 0.1);
    display: flex;
    flex-direction: column;
}

.enhanced-blog-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(229, 174, 88, 0.15);
    border-color: var(--theme-color, #e5ae58);
}

.blog-card-header {
    position: relative;
}

.blog-image-container {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.blog-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.enhanced-blog-card:hover .blog-image {
    transform: scale(1.08);
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(229, 174, 88, 0.8) 0%, rgba(18, 33, 54, 0.8) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.enhanced-blog-card:hover .image-overlay {
    opacity: 1;
}

.blog-category-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    z-index: 2;
}

.category-tag {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.read-time-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255, 255, 255, 0.9);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--color3, #222222);
    backdrop-filter: blur(10px);
}

/* Blog Card Body */
.blog-card-body {
    padding: 2rem 1.8rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.blog-meta {
    margin-bottom: 1rem;
}

.meta-items {
    gap: 1rem;
}

.meta-item {
    display: flex;
    align-items: center;
    font-size: 0.85rem;
    color: var(--color2, #666666);
}

.meta-item i {
    font-size: 0.9rem;
    margin-right: 6px;
}

.blog-title {
    font-size: 1.4rem;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 1rem;
}

.title-link {
    color: var(--color3, #222222);
    text-decoration: none;
    transition: color 0.3s ease;
}

.title-link:hover {
    color: var(--theme-color, #e5ae58);
}

.blog-excerpt {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--color2, #666666);
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.blog-card-footer {
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid rgba(229, 174, 88, 0.1);
}

.read-more-btn {
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
}

.read-more-btn:hover {
    transform: translateX(5px);
    color: var(--theme-color, #e5ae58);
}

.read-more-btn i {
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

.read-more-btn:hover i {
    transform: translateX(3px);
}

/* Enhanced Pagination */
.enhanced-pagination-wrap {
    background: rgba(229, 174, 88, 0.02);
    border-radius: 20px;
    padding: 2rem;
    margin-top: 3rem;
}

.enhanced-pagination {
    gap: 10px;
}

.enhanced-pagination .page-item .page-link {
    border: 2px solid rgba(229, 174, 88, 0.2);
    border-radius: 50px;
    padding: 12px 20px;
    color: var(--color3, #222222);
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 50px;
    justify-content: center;
}

.enhanced-pagination .page-item.active .page-link {
    background: var(--theme-color, #e5ae58);
    border-color: var(--theme-color, #e5ae58);
    color: white;
}

.enhanced-pagination .page-item .page-link:hover:not(.disabled) {
    background: var(--theme-color, #e5ae58);
    border-color: var(--theme-color, #e5ae58);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(229, 174, 88, 0.3);
}

.enhanced-pagination .page-item.disabled .page-link {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

.enhanced-pagination .ellipsis {
    padding: 12px 8px;
    color: var(--color2, #666666);
    font-weight: 600;
}

.pagination-info {
    margin-top: 1rem;
}

/* Pagination Controls */
.pagination-controls {
    border-top: 1px solid rgba(229, 174, 88, 0.1);
    padding-top: 1.5rem;
}

.per-page-selector label,
.page-jump label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color3, #222222);
}

.per-page-selector select,
.page-jump input {
    border: 2px solid rgba(229, 174, 88, 0.2);
    border-radius: 8px;
    padding: 6px 12px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.per-page-selector select:focus,
.page-jump input:focus {
    border-color: var(--theme-color, #e5ae58);
    box-shadow: 0 0 0 0.2rem rgba(229, 174, 88, 0.25);
    outline: none;
}

.page-jump button {
    background: var(--theme-color, #e5ae58);
    border-color: var(--theme-color, #e5ae58);
    color: white;
    font-weight: 600;
    transition: all 0.3s ease;
}

.page-jump button:hover {
    background: #d4a347;
    border-color: #d4a347;
    transform: translateY(-1px);
}

/* Loading States */
.blog-loading-spinner {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
}

.spinner-container {
    text-align: center;
}

.spinner-border {
    width: 3rem;
    height: 3rem;
    border-width: 0.3em;
}

.spinner-border.thm-clr {
    border-color: var(--theme-color, #e5ae58);
    border-right-color: transparent;
}

/* Pagination Animation */
.enhanced-pagination .page-item {
    animation: fadeInScale 0.3s ease-out;
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .enhanced-hero-title {
        font-size: 2.5rem !important;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .stats-container {
        gap: 1rem;
    }
    
    .stat-number {
        font-size: 1.5rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .blog-filters {
        justify-content: start !important;
        margin-top: 1rem;
    }
    
    .blog-image-container {
        height: 200px;
    }
    
    .blog-card-body {
        padding: 1.5rem 1.2rem;
    }
    
    .enhanced-pagination .page-item .page-link {
        padding: 10px 16px;
        font-size: 0.9rem;
    }
}

@media (max-width: 576px) {
    .enhanced-hero-title {
        font-size: 2rem !important;
    }

    .hero-stats {
        margin-top: 1.5rem;
    }

    .stats-container {
        flex-direction: column;
        gap: 1rem;
    }

    .blog-filters {
        flex-direction: column;
        gap: 1rem;
    }

    .enhanced-select {
        width: 100%;
    }
}

/* Dark Mode Compatibility */
.dark-mode .enhanced-blog-hero .hero-overlay {
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.8) 0%, rgba(139, 92, 246, 0.9) 100%);
}

.dark-mode .hero-badge .badge-text {
    background: rgba(124, 58, 237, 0.2);
    border-color: rgba(168, 85, 247, 0.3);
    color: var(--accent-color, #a855f7);
}

.dark-mode .enhanced-breadcrumb {
    background: rgba(124, 58, 237, 0.1);
}

.dark-mode .enhanced-breadcrumb .breadcrumb-item a:hover {
    color: var(--accent-color, #a855f7);
}

.dark-mode .stat-number {
    color: var(--accent-color, #a855f7);
}

.dark-mode .enhanced-blog-listing {
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.02) 0%, rgba(139, 92, 246, 0.02) 100%);
}

.dark-mode .blog-filters-section {
    border-color: rgba(124, 58, 237, 0.2);
}

.dark-mode .section-title {
    color: var(--text-color, #ecf0f1);
}

.dark-mode .section-subtitle {
    color: var(--text-light, #bdc3c7);
}

.dark-mode .enhanced-select {
    background: var(--bg-secondary, #16213e);
    border-color: rgba(124, 58, 237, 0.2);
    color: var(--text-color, #ecf0f1);
}

.dark-mode .enhanced-select:focus {
    border-color: var(--accent-color, #a855f7);
    box-shadow: 0 0 0 0.2rem rgba(168, 85, 247, 0.25);
}

.dark-mode .enhanced-search {
    background: var(--bg-secondary, #16213e);
    border-color: rgba(124, 58, 237, 0.2);
    color: var(--text-color, #ecf0f1);
}

.dark-mode .enhanced-search:focus {
    border-color: var(--accent-color, #a855f7);
    box-shadow: 0 0 0 0.2rem rgba(168, 85, 247, 0.25);
}

.dark-mode .enhanced-search::placeholder {
    color: var(--text-light, #bdc3c7);
}

.dark-mode .search-icon {
    color: var(--accent-color, #a855f7);
}

.dark-mode .enhanced-blog-card {
    background: var(--bg-secondary, #16213e);
    border-color: rgba(124, 58, 237, 0.2);
    box-shadow: 0 5px 25px rgba(124, 58, 237, 0.1);
}

.dark-mode .enhanced-blog-card:hover {
    box-shadow: 0 15px 40px rgba(124, 58, 237, 0.2);
    border-color: var(--accent-color, #a855f7);
}

.dark-mode .image-overlay {
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.8) 0%, rgba(139, 92, 246, 0.8) 100%);
}

.dark-mode .read-time-badge {
    background: rgba(22, 33, 62, 0.9);
    color: var(--text-color, #ecf0f1);
}

.dark-mode .meta-item {
    color: var(--text-light, #bdc3c7);
}

.dark-mode .title-link {
    color: var(--text-color, #ecf0f1);
}

.dark-mode .title-link:hover {
    color: var(--accent-color, #a855f7);
}

.dark-mode .blog-excerpt {
    color: var(--text-light, #bdc3c7);
}

.dark-mode .blog-card-footer {
    border-color: rgba(124, 58, 237, 0.2);
}

.dark-mode .read-more-btn {
    color: var(--accent-color, #a855f7);
}

.dark-mode .read-more-btn:hover {
    color: var(--accent-color, #a855f7);
}

.dark-mode .enhanced-pagination-wrap {
    background: rgba(124, 58, 237, 0.02);
}

.dark-mode .enhanced-pagination .page-item .page-link {
    background: var(--bg-secondary, #16213e);
    border-color: rgba(124, 58, 237, 0.2);
    color: var(--text-color, #ecf0f1);
}

.dark-mode .enhanced-pagination .page-item.active .page-link {
    background: var(--accent-color, #a855f7);
    border-color: var(--accent-color, #a855f7);
}

.dark-mode .enhanced-pagination .page-item .page-link:hover:not(.disabled) {
    background: var(--accent-color, #a855f7);
    border-color: var(--accent-color, #a855f7);
    box-shadow: 0 4px 15px rgba(168, 85, 247, 0.3);
}

.dark-mode .enhanced-pagination .ellipsis {
    color: var(--text-light, #bdc3c7);
}

.dark-mode .pagination-info p {
    color: var(--text-light, #bdc3c7);
}

.dark-mode .pagination-controls {
    border-color: rgba(124, 58, 237, 0.2);
}

.dark-mode .per-page-selector label,
.dark-mode .page-jump label {
    color: var(--text-color, #ecf0f1);
}

.dark-mode .per-page-selector select,
.dark-mode .page-jump input {
    background: var(--bg-secondary, #16213e);
    border-color: rgba(124, 58, 237, 0.2);
    color: var(--text-color, #ecf0f1);
}

.dark-mode .per-page-selector select:focus,
.dark-mode .page-jump input:focus {
    border-color: var(--accent-color, #a855f7);
    box-shadow: 0 0 0 0.2rem rgba(168, 85, 247, 0.25);
}

.dark-mode .page-jump button {
    background: var(--accent-color, #a855f7);
    border-color: var(--accent-color, #a855f7);
}

.dark-mode .page-jump button:hover {
    background: #9333ea;
    border-color: #9333ea;
}

.dark-mode .blog-loading-spinner {
    background: rgba(22, 33, 62, 0.95);
    color: var(--text-color, #ecf0f1);
}

.dark-mode .spinner-border.thm-clr {
    border-color: var(--accent-color, #a855f7);
    border-right-color: transparent;
}

/* Animation Enhancements */
@keyframes blogCardFadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.blog-item {
    animation: blogCardFadeIn 0.6s ease-out;
}

.blog-item:nth-child(1) { animation-delay: 0.1s; }
.blog-item:nth-child(2) { animation-delay: 0.2s; }
.blog-item:nth-child(3) { animation-delay: 0.3s; }
.blog-item:nth-child(4) { animation-delay: 0.4s; }
.blog-item:nth-child(5) { animation-delay: 0.5s; }
.blog-item:nth-child(6) { animation-delay: 0.6s; }

/* Filter Animation */
.blog-item.filtered-out {
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.3s ease;
}

.blog-item.filtered-in {
    opacity: 1;
    transform: scale(1);
    transition: all 0.3s ease;
}
