@font-face {
    font-family: morabba;
    src: url("../fonts/Morabba.ttf");
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: morabba, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* BLOGS-BANNER - MODERN */
.blogs-banner {
    width: 100%;
    padding: 100px 1rem 80px;
    background: linear-gradient(135deg, #FF4500 0%, #FF6600 50%, #FF8533 100%);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.blogs-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="100" height="100" patternUnits="userSpaceOnUse"><path d="M 100 0 L 0 0 0 100" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="1"/></pattern></defs><rect width="100%" height="100%" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.blogs-banner-content {
    position: relative;
    z-index: 1;
}

.blogs-banner-content h1 {
    font-size: 3.5rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 1rem;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    letter-spacing: -0.5px;
}

.blogs-banner-content p {
    color: rgba(255, 255, 255, 0.95);
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    font-weight: 400;
}

.current-category-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 1rem;
    color: #ffffff;
    font-weight: 600;
    font-size: 0.875rem;
}

/* BLOGS - MINIMAL */
.blogs {
    width: 100%;
    padding: 3rem 1rem;
    background: #ffffff;
    min-height: calc(100vh - 200px);
}

.blogs-container {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
}

/* Category Filter - Minimal */
.category-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 2rem;
    padding: 1rem;
    background: #f8fafc;
    border-radius: 0.75rem;
    border: 1px solid #e2e8f0;
}

.filter-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    background: #ffffff;
    color: #475569;
    border: 1px solid #e2e8f0;
    border-radius: 1rem;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.875rem;
    transition: all 0.2s ease;
}

.filter-btn:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
}

.filter-btn.active {
    background: #FF4500;
    color: #ffffff;
    border-color: #FF4500;
}

.filter-btn i {
    font-size: 0.875rem;
}

/* Blogs Section - Minimal */
.blogs-section {
    background: #ffffff;
}

.blogs-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #e2e8f0;
}

.blogs-header h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1e293b;
}

.blogs-count {
    padding: 0.375rem 0.875rem;
    background: #f8fafc;
    color: #64748b;
    border-radius: 1rem;
    font-weight: 600;
    font-size: 0.8125rem;
}

/* No Blogs - Minimal */
.no-blogs {
    text-align: center;
    padding: 4rem 2rem;
}

.no-blogs i {
    font-size: 3rem;
    color: #cbd5e1;
    margin-bottom: 1rem;
}

.no-blogs p {
    font-size: 1.125rem;
    color: #64748b;
    margin-bottom: 1.5rem;
}

.btn-back {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: #FF4500;
    color: #ffffff;
    border-radius: 0.75rem;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s ease;
}

.btn-back:hover {
    background: #FF6600;
    transform: translateY(-2px);
}

/* Blogs Grid - Modern */
.blogs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2.5rem;
}

/* Blog Card - Modern */
.blog-card {
    background: #ffffff;
    border: 1px solid rgba(226, 232, 240, 0.8);
    border-radius: 1.25rem;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    height: 100%;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.blog-card:hover {
    border-color: #FF4500;
    box-shadow: 0 16px 48px rgba(255, 69, 0, 0.2);
    transform: translateY(-8px);
}

.blog-card-image {
    position: relative;
    width: 100%;
    height: 240px;
    overflow: hidden;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

.blog-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.blog-card:hover .blog-card-image img {
    transform: scale(1.1);
}

.blog-card-category {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    padding: 0.375rem 0.75rem;
    background: #FF4500;
    color: #ffffff;
    border-radius: 1rem;
    font-size: 0.75rem;
    font-weight: 600;
}

.blog-card-content {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 12px;
}

.blog-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.8125rem;
    color: #64748b;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.meta-item i {
    color: #FF4500;
    font-size: 0.875rem;
}

.blog-card-title {
    margin-bottom: 0.75rem;
}

.blog-card-title a {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1e293b;
    text-decoration: none;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.3s ease;
    letter-spacing: -0.3px;
}

.blog-card-title a:hover {
    color: #FF4500;
}

.blog-card-description {
    color: #64748b;
    font-size: 0.9375rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}

.blog-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid #e2e8f0;
}

.blog-card-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: #FF4500;
    color: #ffffff;
    border-radius: 0.75rem;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.875rem;
    transition: all 0.2s ease;
}

.blog-card-link:hover {
    background: #FF6600;
    transform: translateX(-3px);
}

.blog-card-author {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.8125rem;
    color: #64748b;
}

.blog-card-author i {
    color: #FF4500;
}

/* Sidebar - Minimal */
.blogs-sidebar {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.sidebar-widget {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 1rem;
    padding: 1.5rem;
}

.widget-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.125rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #e2e8f0;
}

.widget-title i {
    color: #FF4500;
    font-size: 1.25rem;
}

/* Popular Blogs List - Minimal */
.popular-blogs-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.popular-blog-item {
    display: flex;
    gap: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e2e8f0;
    transition: all 0.2s ease;
    position: relative;
}

.popular-blog-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.popular-blog-item:hover {
    transform: translateX(-5px);
}

.popular-rank {
    position: absolute;
    top: 0;
    right: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #FF4500;
    color: #ffffff;
    border-radius: 50%;
    font-size: 0.75rem;
    font-weight: 700;
    z-index: 1;
}

.popular-blog-link {
    display: flex;
    gap: 1rem;
    text-decoration: none;
    color: inherit;
    width: 100%;
}

.popular-blog-image {
    width: 70px;
    height: 70px;
    border-radius: 0.5rem;
    overflow: hidden;
    flex-shrink: 0;
}

.popular-blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.2s ease;
}

.popular-blog-item:hover .popular-blog-image img {
    transform: scale(1.1);
}

.popular-blog-content {
    flex: 1;
    min-width: 0;
}

.popular-blog-content h4 {
    font-size: 0.9375rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 0.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
}

.popular-blog-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.75rem;
    color: #64748b;
}

.popular-blog-meta span {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

/* Categories List - Minimal */
.categories-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.category-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    background: #f8fafc;
    border-radius: 0.75rem;
    text-decoration: none;
    color: #475569;
    font-weight: 500;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.category-link:hover {
    background: #fff5f2;
    border-color: #FFE5D9;
    color: #FF4500;
    transform: translateX(-5px);
}

.category-link i {
    color: #FF4500;
    margin-left: 0.5rem;
}

.category-count {
    padding: 0.25rem 0.625rem;
    background: #FF4500;
    color: #ffffff;
    border-radius: 1rem;
    font-size: 0.75rem;
    font-weight: 600;
}

/* RESPONSIVE - FULLY OPTIMIZED */
@media screen and (max-width: 1200px) {
    .blogs-container {
        max-width: 100%;
        padding: 0 1.5rem;
    }
}

@media screen and (max-width: 1024px) {
    .blogs-container {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    
    .blogs-sidebar {
        order: -1;
    }
    
    .blogs-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 1.75rem;
    }
    
    .sidebar-widget {
        padding: 1.5rem;
    }
}

@media screen and (max-width: 768px) {
    .blogs-banner {
        padding: 50px 1rem 35px;
        margin-bottom: 2rem;
    }
    
    .blogs-banner-content h1 {
        font-size: 1.75rem;
        margin-bottom: 0.75rem;
    }
    
    .blogs-banner-content p {
        font-size: 0.9375rem;
    }
    
    .blogs {
        padding: 1.5rem 1rem;
        margin: 80px 0 30px;
    }
    
    .category-filter {
        padding: 1rem;
        flex-wrap: wrap;
        gap: 0.75rem;
    }
    
    .filter-btn {
        padding: 0.5rem 0.875rem;
        font-size: 0.8125rem;
        flex: 1;
        min-width: calc(50% - 0.375rem);
    }
    
    .blogs-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .blog-card {
        padding: 1.25rem;
    }
    
    .blog-card-image {
        height: 200px;
        margin-bottom: 1rem;
    }
    
    .blog-card-title {
        font-size: 1.125rem;
        margin-bottom: 0.75rem;
    }
    
    .blog-card-excerpt {
        font-size: 0.9375rem;
        margin-bottom: 1rem;
    }
    
    .blog-card-meta {
        font-size: 0.8125rem;
        gap: 0.75rem;
    }
    
    .sidebar-widget {
        padding: 1.25rem;
    }
    
    .widget-title {
        font-size: 1.125rem;
        margin-bottom: 1rem;
    }
    
    .popular-blog-item {
        padding-bottom: 0.875rem;
    }
    
    .popular-blog-image {
        width: 60px;
        height: 60px;
    }
    
    .popular-blog-content h4 {
        font-size: 0.875rem;
    }
    
    .category-link {
        padding: 0.625rem 0.875rem;
        font-size: 0.875rem;
    }
}

@media screen and (max-width: 480px) {
    .blogs-banner {
        padding: 40px 0.75rem 30px;
    }
    
    .blogs-banner-content h1 {
        font-size: 1.5rem;
    }
    
    .blogs-banner-content p {
        font-size: 0.875rem;
    }
    
    .blogs {
        padding: 1rem 0.75rem;
    }
    
    .category-filter {
        padding: 0.875rem;
        gap: 0.5rem;
    }
    
    .filter-btn {
        padding: 0.5rem 0.75rem;
        font-size: 0.75rem;
        min-width: calc(50% - 0.25rem);
    }
    
    .blog-card {
        padding: 1rem;
    }
    
    .blog-card-image {
        height: 180px;
    }
    
    .blog-card-title {
        font-size: 1rem;
    }
    
    .blog-card-excerpt {
        font-size: 0.875rem;
        line-height: 1.7;
    }
    
    .blog-card-meta {
        font-size: 0.75rem;
        flex-wrap: wrap;
    }
    
    .sidebar-widget {
        padding: 1rem;
    }
    
    .widget-title {
        font-size: 1rem;
    }
    
    .popular-blog-item {
        gap: 0.75rem;
    }
    
    .popular-blog-image {
        width: 55px;
        height: 55px;
    }
    
    .popular-blog-content h4 {
        font-size: 0.8125rem;
    }
    
    .popular-blog-meta {
        font-size: 0.6875rem;
    }
    
    .category-link {
        padding: 0.5rem 0.75rem;
        font-size: 0.8125rem;
    }
    
    .category-count {
        font-size: 0.6875rem;
        padding: 0.2rem 0.5rem;
    }
}
