/* ================== ONLY BLOG CSS ======================  */

/* Tab Navigation */
.tab-nav {
    display: flex;
    gap: 5px;
    margin-bottom: 50px;
    border-bottom: 2px solid #e8eaed;
    overflow-x: auto;
    margin-top: 4rem;
}

.tab-btn {
    padding: 15px 25px;
    border: none;
    background: transparent;
    color: #666;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
    white-space: nowrap;
}

.tab-btn:hover {
    color: var(--primary-blue);
}

.tab-btn.active {
    color: var(--primary-blue);
    border-bottom-color: var(--primary-blue);
}

/* Featured Section */
.featured-section {
    margin-bottom: 60px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-red);
}

.view-all {
    color: var(--primary-blue);
    text-decoration: none;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: gap 0.3s ease;
}

.view-all:hover {
    gap: 12px;
    color: var(--primary-red);
}

/* Large Featured Card */
.large-featured {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 20px;
    background: white;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid #e8eaed;
    transition: all 0.3s ease;
}

.large-featured:hover {
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
}

.large-featured-image {
    height: auto;
    background: #f5f5f5;
    position: relative;
    overflow: hidden;
}

.large-featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.large-featured:hover .large-featured-image img {
    transform: scale(1.05);
}

.featured-tag {
    position: absolute;
    top: 25px;
    left: 25px;
    background: var(--white-color);
    color: var(--primary-red);
    ;
    padding: 8px 20px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.large-featured-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.category-tag {
    display: inline-block;
    color: var(--primary-red);
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
}

.large-featured-content h3 {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary-blue);
    margin-bottom: 20px;
    line-height: 1.2;
    letter-spacing: -1px;
    word-wrap: break-word;
}

.large-featured-content p {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 30px;
    line-height: 1.8;
}


.read-article-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 30px;
    background: var(--primary-red);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    width: fit-content;
}

.read-article-btn:hover {
    background: var(--primary-blue);
    transform: translateY(-2px);
    /* box-shadow: 0 10px 30px rgba(21, 101, 192, 0.3); */
}

/* Blog Grid - Modern Cards */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 60px;
}

.modern-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #e8eaed;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.modern-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px var(--light-blue);
}

.modern-card-image {
    height: 220px;
    background: #f5f5f5;
    position: relative;
    overflow: hidden;
}

.modern-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.modern-card:hover .modern-card-image img {
    transform: scale(1.08);
}

.card-category {
    position: absolute;
    bottom: 15px;
    left: 15px;
    background: var(--white-color);
    color: var(--primary-red);
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.modern-card-content {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.modern-card-content a {
    color: var(--primary-blue);
    text-decoration: none;
    transition: color 0.3s ease;
    font-weight: 700;
    margin-bottom: 1rem;
    font-size: 1.25rem;
  line-height: 1.4;
}

.modern-card-content a:hover {
    color: var(--primary-blue);
}

.modern-card-content p {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 20px;
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
    border-top: 1px solid #f0f0f0;
}

.card-footer .date {
    font-size: 0.85rem;
    color: #999;
    display: flex;
    align-items: center;
    gap: 6px;
}

.card-footer .read-time {
    font-size: 0.85rem;
    color: #999;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Sidebar Layout */

.sidebar-widget {
    background: white;
    padding: 15px;
    border-radius: 12px;
    margin-bottom: 30px;
    border: 1px solid #f0f0f0;
}

.sidebar-widget:hover {
    box-shadow: 0 5px 20px var(--light-blue);
}

.sidebar-widget h3 {
    font-size: 1.3rem;
    color: var(--primary-blue);
    margin-bottom: 20px;
    font-weight: 700;
    padding-bottom: 15px;
    border-bottom: 3px solid var(--primary-blue);
}

.recent-post-item {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f0f0f0;
}

.recent-post-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.recent-post-image {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    background: #f8f9fa;
    flex-shrink: 0;
    overflow: hidden;
}

.recent-post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.recent-post-content a {
    text-decoration: none;
    color: var(--primary-blue);
}

.recent-post-content a:hover {
    color: var(--primary-red);
}

.recent-post-date {
    text-decoration: none;
    color: #666;
    font-weight: 400;
}

.content-with-sidebar {
    display: grid;
    grid-template-columns: 1fr 330px;
    gap: 30px;
    align-items: start;
}

.sidebar {
    position: sticky;
    top: 100px;
}

.sidebar-card {
    background: white;
    padding: 20px;
    border-radius: 12px;
    border: 1px solid #e8eaed;
    margin-bottom: 25px;
}

.sidebar-card:hover {
    box-shadow: 0 5px 20px var(--light-blue);
}

.sidebar-card h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--primary-blue);
}



/* Trending Posts */
.trending-post {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f0f0f0;
}

.trending-post:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.trending-number {
    font-size: 2rem;
    font-weight: 800;
    color: #e8eaed;
    line-height: 1;
}

.trending-content h4 {
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 8px;
}

.trending-content h4 a {
    color: #1a1a1a;
    text-decoration: none;
    transition: color 0.3s ease;
}

.trending-content h4 a:hover {
    color: var(--primary-blue);
}

.trending-meta {
    font-size: 0.8rem;
    color: #999;
}

/* Topics Grid */
.topics-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.topic-btn {
    padding: 12px 18px;
    background: #fcfcfc;
    border: 1px solid #e8eaed;
    border-radius: 8px;
    color: var(--primary-blue);
    font-size: 0.9rem;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    transition: all 0.3s ease;
}

.topic-btn:hover {
    background: var(--primary-blue);
    color: white;
    border-color: var(--primary-blue);
    transform: translateY(-2px);
}

/* Load More Button */
.load-more-section {
    text-align: center;
    margin-top: 60px;
}

.load-more-btn {
    padding: 16px 40px;
    background: white;
    border: 2px solid var(--primary-blue);
    color: var(--primary-blue);
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.load-more-btn:hover {
    background: var(--primary-blue);
    color: white;
    transform: translateY(-2px);
}

/* Responsive */
@media (max-width: 1200px) {
    .content-with-sidebar {
        grid-template-columns: 1fr;
    }

    .sidebar {
        position: static;
    }

    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .large-featured-content {
        padding: 40px 30px;
    }
}

@media (max-width: 768px) {
    body {
        overflow-x: hidden;
    }

    .nav-container {
        padding: 0 15px;
    }

    .logo {
        font-size: 1.2rem;
    }

    .hero-container {
        padding: 0;
    }

    .hero-section h1 {
        font-size: 2rem;
        letter-spacing: -1px;
    }

    .hero-section p {
        font-size: 1rem;
    }


    .tab-nav {
        padding-bottom: 10px;
        margin-bottom: 30px;
    }

    .tab-btn {
        padding: 12px 18px;
        font-size: 0.9rem;
    }

    .large-featured {
        grid-template-columns: 1fr;
    }

    .large-featured-image {
        height: 250px;
    }

    .large-featured-content {
        padding: 25px 20px;
    }

    .large-featured-content h3 {
        font-size: 1.5rem;
    }

    .large-featured-content p {
        font-size: 1rem;
    }

    .read-article-btn {
        padding: 12px 24px;
        font-size: 0.95rem;
    }

    .section-header h2 {
        font-size: 1.5rem;
    }

    .blog-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .modern-card-content {
        padding: 20px;
    }

    .modern-card-content h3 {
        font-size: 1.1rem;
    }

    .nav-search {
        display: none;
    }

    .topics-grid {
        grid-template-columns: 1fr;
    }

    .sidebar-card {
        padding: 25px 20px;
    }


    .load-more-btn {
        padding: 14px 30px;
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    .hero-section h1 {
        font-size: 1.75rem;
    }

    .large-featured-content h3 {
        font-size: 1.3rem;
    }

    .category-tag {
        font-size: 0.75rem;
    }

    .featured-tag {
        font-size: 0.75rem;
        padding: 6px 15px;
    }

    .card-category {
        font-size: 0.7rem;
        padding: 5px 12px;
    }
}