/* Blog Page Specific Styles */

/* Hero Section */
.hero-section {
    min-height: 80vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-section::before,
.hero-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: opacity 3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 0;
}

.hero-section::before {
    background-image: url('../images/slider1.png');
    animation: blogSlideshow1 15s infinite;
}

.hero-section::after {
    background-image: url('../images/slider2.png');
    animation: blogSlideshow2 15s infinite;
    opacity: 0;
}

@keyframes blogSlideshow1 {
    0%, 30% { opacity: 1; }
    33%, 36% { opacity: 0; }
    64%, 67% { opacity: 0; }
    70%, 100% { opacity: 1; }
}

@keyframes blogSlideshow2 {
    0%, 30% { opacity: 0; }
    33%, 36% { opacity: 1; }
    64%, 67% { opacity: 1; }
    70%, 100% { opacity: 0; }
}

.hero-section .slider3 {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../images/slider3.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 3s cubic-bezier(0.4, 0, 0.2, 1);
    animation: blogSlideshow3 15s infinite;
    z-index: 0;
}

@keyframes blogSlideshow3 {
    0%, 64% { opacity: 0; }
    67%, 70% { opacity: 1; }
    97%, 100% { opacity: 0; }
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.7) 0%, rgba(217, 119, 6, 0.6) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
    width: 100%;
}

.hero-centered {
    max-width: 900px;
    margin: 0 auto;
    padding: 60px 20px;
}

.hero-title {
    font-size: 3.8rem;
    font-weight: 800;
    margin-bottom: 30px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.hero-subtitle {
    font-size: 1.4rem;
    margin-bottom: 50px;
    color: #ffffff;
    opacity: 0.95;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 60px;
    flex-wrap: wrap;
    margin-top: 40px;
}

.stat-item {
    text-align: center;
    min-width: 120px;
}

.stat-number {
    display: block;
    font-size: 2.8rem;
    font-weight: 800;
    color: #ffffff;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
    margin-bottom: 8px;
}

.stat-label {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    line-height: 1.2;
}

.animate-fade-in {
    animation: fadeIn 1s ease-out;
}

.animate-fade-in-delay {
    animation: fadeIn 1s ease-out 0.3s both;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Blog Container */
.blog-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 60px 20px;
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 60px;
}

.blog-main {
    min-height: 500px;
}

/* Search Form */
.search-form {
    margin-bottom: 40px;
    display: flex;
    gap: 15px;
    background: white;
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
}

.search-form input {
    flex: 1;
    padding: 15px 20px;
    border: 2px solid #f1f5f9;
    border-radius: 12px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: #f8fafc;
}

.search-form input:focus {
    outline: none;
    border-color: #f59e0b;
    background: white;
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.1);
}

.search-form button {
    padding: 15px 25px;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    min-width: 120px;
}

.search-form button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(245, 158, 11, 0.3);
}

/* Blog Filters */
.blog-filters {
    margin-bottom: 40px;
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    align-items: center;
}

.filter-tag {
    padding: 12px 20px;
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 25px;
    text-decoration: none;
    color: #64748b;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.filter-tag::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    transition: left 0.3s ease;
    z-index: -1;
}

.filter-tag.active,
.filter-tag:hover {
    color: white;
    border-color: #f59e0b;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(245, 158, 11, 0.3);
}

.filter-tag.active::before,
.filter-tag:hover::before {
    left: 0;
}

.category-count {
    background: rgba(255, 255, 255, 0.2);
    color: inherit;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    margin-left: 8px;
    font-weight: 600;
}

/* Blog Posts Grid */
.blog-posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.blog-post {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    transition: all 0.4s ease;
    position: relative;
    border: 1px solid #f1f5f9;
}

.blog-post:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.12);
}

.blog-post-image {
    position: relative;
    width: 100%;
    height: 280px;
    overflow: hidden;
}

.blog-post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.blog-post:hover .blog-post-image img {
    transform: scale(1.05);
}

.blog-post-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.8), rgba(217, 119, 6, 0.8));
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.blog-post:hover .blog-post-overlay {
    opacity: 1;
}

.overlay-content {
    text-align: center;
    color: white;
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.blog-post:hover .overlay-content {
    transform: translateY(0);
}

.blog-post-content {
    padding: 30px;
}

.blog-post-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
    font-size: 13px;
    color: #64748b;
    flex-wrap: wrap;
}

.blog-post-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
    background: #f8fafc;
    padding: 6px 12px;
    border-radius: 20px;
    font-weight: 500;
}

.blog-post-meta i {
    color: #f59e0b;
}

.blog-post-title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 15px;
    line-height: 1.4;
    color: #1e293b;
}

.blog-post-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.blog-post-title a:hover {
    color: #f59e0b;
}

.blog-post-excerpt {
    color: #64748b;
    line-height: 1.7;
    margin-bottom: 20px;
    font-size: 15px;
}

.blog-post-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.blog-tag {
    padding: 6px 12px;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
    border-radius: 15px;
    font-size: 11px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.blog-tag:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(245, 158, 11, 0.4);
    color: white;
}

.read-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.read-more::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #d97706, #f59e0b);
    transition: left 0.3s ease;
    z-index: -1;
}

.read-more:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(245, 158, 11, 0.4);
    color: white;
}

.read-more:hover::before {
    left: 0;
}

/* Sidebar */
.blog-sidebar {
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    height: fit-content;
    position: sticky;
    top: 20px;
    border: 1px solid #f1f5f9;
}

.sidebar-section {
    padding: 30px;
    border-bottom: 1px solid #f1f5f9;
}

.sidebar-section:last-child {
    border-bottom: none;
}

.sidebar-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 20px;
    color: #1e293b;
    position: relative;
    padding-bottom: 10px;
}

.sidebar-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    border-radius: 2px;
}

.category-list,
.recent-posts {
    list-style: none;
    padding: 0;
    margin: 0;
}

.category-list li,
.recent-posts li {
    margin-bottom: 12px;
}

.category-list a,
.recent-posts a {
    color: #64748b;
    text-decoration: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    border-radius: 10px;
    transition: all 0.3s ease;
    background: #f8fafc;
    border: 1px solid transparent;
}

.category-list a:hover,
.recent-posts a:hover {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
    transform: translateX(5px);
    border-color: #f59e0b;
}

.category-count {
    background: rgba(100, 116, 139, 0.1);
    color: #64748b;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.category-list a:hover .category-count {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tag-cloud span {
    padding: 8px 15px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    font-size: 12px;
    color: #64748b;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: default;
}

.tag-cloud span:hover {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
    border-color: #f59e0b;
    transform: translateY(-2px);
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 50px;
    flex-wrap: wrap;
}

.pagination a,
.pagination span {
    padding: 12px 18px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    text-decoration: none;
    color: #64748b;
    transition: all 0.3s ease;
    font-weight: 600;
    min-width: 50px;
    text-align: center;
    background: white;
}

.pagination a:hover {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
    border-color: #f59e0b;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(245, 158, 11, 0.3);
}

.pagination .current {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
    border-color: #f59e0b;
    box-shadow: 0 5px 15px rgba(245, 158, 11, 0.3);
}

/* No Posts */
.no-posts {
    text-align: center;
    padding: 80px 20px;
    color: #64748b;
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.no-posts i {
    font-size: 64px;
    margin-bottom: 20px;
    color: #e2e8f0;
}

.no-posts h3 {
    color: #1e293b;
    margin-bottom: 15px;
    font-size: 24px;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .blog-container {
        grid-template-columns: 1fr 300px;
        gap: 40px;
    }
    
    .blog-posts-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .blog-container {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 40px 15px;
    }
    
    .hero-section {
        min-height: 60vh;
        padding: 2rem 0;
    }
    
    .hero-title {
        font-size: 2.8rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
        margin-bottom: 2rem;
    }
    
    .hero-stats {
        gap: 40px;
    }
    
    .stat-number {
        font-size: 2.2rem;
    }
    
    .search-form {
        flex-direction: column;
    }
    
    .blog-filters {
        justify-content: center;
    }
    
    .blog-posts-grid {
        grid-template-columns: 1fr;
    }
    
    .blog-post-content {
        padding: 25px;
    }
    
    .blog-post-title {
        font-size: 20px;
    }
    
    .sidebar-section {
        padding: 25px;
    }
}

@media (max-width: 576px) {
    .hero-section {
        min-height: 50vh;
    }
    
    .hero-title {
        font-size: 2.2rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 30px;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .blog-posts-grid {
        grid-template-columns: 1fr;
    }
    
    .blog-post-image {
        height: 220px;
    }
    
    .blog-post-content {
        padding: 20px;
    }
    
    .sidebar-section {
        padding: 20px;
    }
    
    .search-form {
        padding: 15px;
    }
    
    .filter-tag {
        padding: 10px 16px;
        font-size: 13px;
    }
}