@import url('responsive.css');

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #f8f9fa;
    color: #333;
    line-height: 1.6;
}

/* Header */
.header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 100;
}

/* Hero Section */
.hero {
    position: relative;
    padding: 160px 5% 80px;
    background-image: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.7)), url('../assets/blog.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: white;
    text-align: center;
    margin-bottom: 60px;
}

.hero-content {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    letter-spacing: -0.02em;
    animation: slideUp 0.8s ease-out;
}

.hero-content p {
    font-size: 1.25rem;
    opacity: 0.9;
    max-width: 700px;
    margin: 0 auto;
    font-weight: 300;
    animation: slideUp 0.8s ease-out 0.2s backwards;
}

/* Blog Main Layout */
.blogs-main {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 5% 80px;
}

.blogs-hero {
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 40px;
    align-items: start;
}

/* Sidebar Navigation */
.blogs-hero-left {
    background: white;
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 100px;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.blogs-hero-left h2 {
    font-size: 1.5rem;
    color: #1a1a1a;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
    font-weight: 700;
}

.blogs-article-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.blog-article-btn {
    display: flex;
    align-items: center;
    gap: 15px;
    background: transparent;
    border: 1px solid transparent;
    padding: 16px 20px;
    color: #555;
    border-radius: 12px;
    cursor: pointer;
    text-align: left;
    width: 100%;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.blog-article-btn:hover {
    background: #f8f9fa;
    transform: translateX(5px);
    color: #e74c3c;
}

.blog-article-btn.active {
    background: #fff5f5;
    color: #e74c3c;
    border-color: #ffe3e3;
    font-weight: 600;
}

.blog-article-btn .icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: #fff;
    border-radius: 10px;
    font-size: 1.2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.blog-article-btn.active .icon {
    background: #e74c3c;
    color: white;
}

/* Featured Article Content */
.blogs-hero-right {
    min-width: 0;
    /* Prevent flex item from overflowing */
}

.blogs-featured-article {
    background: white;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.blogs-featured-article.active {
    opacity: 1;
    transform: translateY(0);
}

.featured-img {
    width: 100%;
    height: 200px;
    position: relative;
    overflow: hidden;
}

.featured-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s ease;
}

.blogs-featured-article:hover .featured-img img {
    transform: scale(1.05);
}

.featured-article-content {
    padding: 50px;
}

.featured-date {
    display: inline-block;
    padding: 6px 14px;
    background: #f0f2f5;
    color: #666;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.featured-title {
    font-size: 2.5rem;
    color: #1a1a1a;
    margin-bottom: 25px;
    font-weight: 800;
    line-height: 1.3;
}

.featured-body {
    color: #4a4a4a;
    line-height: 1.8;
    font-size: 1.1rem;
    white-space: pre-line;
}

/* Animations */
@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 1024px) {
    .blogs-hero {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .blogs-hero-left {
        position: static;
        order: 2;
    }

    .blogs-hero-right {
        order: 1;
    }

    .featured-img {
        height: 300px;
    }
}

@media (max-width: 768px) {
    .hero {
        padding: 120px 20px 60px;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .featured-article-content {
        padding: 30px;
    }

    .featured-title {
        font-size: 1.8rem;
    }
}