/* Modern Blog Styles */

/* Hero Section */
.post-info {
  margin-left: 0px !important;
}
.widget-title {
    color: #fff !important;
}
.hero-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="%23ffffff" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>') repeat;
    opacity: 0.3;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin: 1rem 0px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-top: 2rem;
}

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

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    display: block;
    color: #ffd700;
}

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

/* Modern Breadcrumbs */
.modern-breadcrumbs {
    background: #f8f9fa;
    padding: 1rem 0;
    border-bottom: 1px solid #e9ecef;
}

.breadcrumb-modern {
    background: none;
    padding: 0;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.breadcrumb-modern .breadcrumb-item {
    display: flex;
    align-items: center;
    color: #6c757d;
    font-size: 0.9rem;
}

.breadcrumb-modern .breadcrumb-item.active {
    color: #495057;
    font-weight: 500;
}

.breadcrumb-modern .breadcrumb-item + .breadcrumb-item::before {
    content: '/';
    margin: 0 0.5rem;
    color: #adb5bd;
}

.breadcrumb-modern a {
    color: #007bff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb-modern a:hover {
    color: #0056b3;
}

/* Content Sections */
.content-section {
    margin-bottom: 4rem;
}

.section-header-inline {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #f8f9fa;
}

.section-title-inline {
    font-size: 1.8rem;
    font-weight: 600;
    color: #2c3e50;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.featured-icon { color: #e74c3c; }
.trending-icon { color: #f39c12; }
.latest-icon { color: #27ae60; }
.most-viewed-icon { color: #9b59b6; }

.view-all-link {
    color: #007bff;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    transition: all 0.3s ease;
}

.view-all-link:hover {
    color: #0056b3;
    text-decoration: none;
    transform: translateX(3px);
}

/* Featured Posts Section */
.featured-posts-section {
    background: #f8f9fa;
    padding: 1.5rem 0;
    margin-bottom: 3rem;
}

.featured-posts-section .section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.featured-posts-section .section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 1rem;
    position: relative;
}

.featured-posts-section .section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 2px;
}

.featured-posts-section .section-subtitle {
    font-size: 1.1rem;
    color: #6c757d;
    margin: 0;
    font-weight: 400;
}

.featured-grid {
    margin-top: 2rem;
}

/* Main Featured Post */
.featured-post-main {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: all 0.4s ease;
    height: 100%;
}

.featured-post-main:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.featured-post-main .post-image {
    position: relative;
    overflow: hidden;
    height: 300px;
}

.featured-post-main .post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.featured-post-main:hover .post-image img {
    transform: scale(1.05);
}

.featured-post-main .post-overlay {
    position: absolute;
    top: 1.5rem;
    left: 1.5rem;
}

.featured-post-main .featured-badge {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(231, 76, 60, 0.3);
}

.featured-post-main .post-content {
    padding: 2rem;
}

.featured-post-main .post-meta {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.featured-post-main .post-category {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.featured-post-main .post-date,
.featured-post-main .read-time {
    color: #6c757d;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.featured-post-main .post-title {
    font-size: 1.8rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 1rem;
    color: #2c3e50;
}

.featured-post-main .post-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.featured-post-main .post-title a:hover {
    color: #007bff;
}

.featured-post-main .post-excerpt {
    color: #6c757d;
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.featured-post-main .read-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    color: white;
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
}

.featured-post-main .read-more-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 123, 255, 0.4);
    color: white;
    text-decoration: none;
}

/* Side Featured Posts */
.side-featured-posts {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    height: 100%;
}

.featured-post-side {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    display: flex;
    height: calc(50% - 0.75rem);
}

.featured-post-side:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.12);
}

.featured-post-side .post-image {
    width: 120px;
    flex-shrink: 0;
    overflow: hidden;
}

.featured-post-side .post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.featured-post-side:hover .post-image img {
    transform: scale(1.05);
}

.featured-post-side .post-content {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.featured-post-side .post-meta {
    margin-bottom: 0.8rem;
}

.featured-post-side .post-date {
    color: #6c757d;
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.featured-post-side .post-title {
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.4;
    margin: 0;
    color: #2c3e50;
}

.featured-post-side .post-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.featured-post-side .post-title a:hover {
    color: #007bff;
}

/* Responsive Design for Featured Section */
@media (max-width: 991px) {
    .featured-posts-section {
        padding: 3rem 0;
    }
    
    .featured-posts-section .section-title {
        font-size: 2rem;
    }
    
    .featured-post-main .post-title {
        font-size: 1.5rem;
    }
    
    .side-featured-posts {
        flex-direction: row;
        overflow-x: auto;
        gap: 1rem;
        padding-bottom: 1rem;
    }
    
    .featured-post-side {
        min-width: 300px;
        height: auto;
        flex-direction: column;
    }
    
    .featured-post-side .post-image {
        width: 100%;
        height: 150px;
    }
}

@media (max-width: 767px) {
    .featured-posts-section {
        padding: 2rem 0;
    }
    
    .featured-posts-section .section-title {
        font-size: 1.8rem;
    }
    
    .featured-post-main .post-content {
        padding: 1.5rem;
    }
    
    .featured-post-main .post-title {
        font-size: 1.3rem;
    }
    
    .featured-post-main .post-meta {
        gap: 1rem;
    }
}

/* Card Layouts */
.trending-grid,
.latest-articles-list,
.most-viewed-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

/* Latest Articles */
.latest-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 1rem;
}

.latest-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    position: relative;
}

.latest-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.latest-card .card-image {
    position: relative;
    overflow: hidden;
    height: 200px;
}

.latest-card .card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.latest-card:hover .card-image img {
    transform: scale(1.05);
}

.latest-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
}

.latest-card .card-content {
    padding: 1.5rem;
}

.latest-card .card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    font-size: 0.85rem;
}

.latest-card .card-meta .category {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.latest-card .card-meta .date {
    color: #6c757d;
    font-weight: 500;
}

.latest-card .card-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.8rem;
    line-height: 1.4;
    color: #2c3e50;
}

.latest-card .card-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.latest-card .card-title a:hover {
    color: #007bff;
}

.latest-card .card-excerpt {
    color: #6c757d;
    line-height: 1.6;
    margin-bottom: 1.2rem;
    font-size: 0.95rem;
}

.latest-card .read-more-link {
    color: #007bff;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.latest-card .read-more-link:hover {
    color: #0056b3;
    transform: translateX(3px);
    text-decoration: none;
}

.latest-card .read-more-link i {
    transition: transform 0.3s ease;
}

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

/* Responsive Design for Latest Articles */
@media (max-width: 991px) {
    .latest-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 1.5rem;
    }
    
    .latest-card .card-image {
        height: 180px;
    }
    
    .latest-card .card-content {
        padding: 1.2rem;
    }
}

@media (max-width: 767px) {
    .latest-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .latest-card .card-image {
        height: 160px;
    }
    
    .latest-card .card-content {
        padding: 1rem;
    }
    
    .latest-card .card-title {
        font-size: 1.1rem;
    }
    
    .latest-badge {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }
}

.trending-card,
.latest-article-card,
.most-viewed-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    border: 1px solid #f1f3f4;
}

.trending-card:hover,
.latest-article-card:hover,
.most-viewed-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.card-image {
    position: relative;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.card-image:hover img {
    transform: scale(1.05);
}

.trending-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: #f39c12;
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.latest-badge {
    background: #27ae60;
}

.view-count {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(0,0,0,0.7);
    color: white;
    padding: 0.3rem 0.6rem;
    border-radius: 15px;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.card-content {
    padding: 1.5rem;
}

.card-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.8rem;
    line-height: 1.4;
}

.card-title a {
    color: #2c3e50;
    text-decoration: none;
    transition: color 0.3s ease;
}

.card-title a:hover {
    color: #007bff;
}

.card-excerpt {
    color: #6c757d;
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 1rem;
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    color: #6c757d;
    padding-top: 1rem;
    border-top: 1px solid #f1f3f4;
}

.author {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

/* Sidebar Styles */
.sidebar-modern {
    padding-left: 2rem;
}

.sidebar-widget {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    margin-bottom: 2rem;
    overflow: hidden;
    border: 1px solid #f1f3f4;
}

.widget-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 1.2rem 1.5rem;
}

.widget-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.widget-content {
    padding: 1.5rem;
}

/* Recent Posts Widget */
.recent-posts-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.recent-post-item {
    display: flex;
    gap: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #f1f3f4;
}

.recent-post-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.post-thumbnail {
    flex-shrink: 0;
}

.post-thumbnail img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 6px;
}

.post-info {
    flex: 1;
}

.post-title {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.post-title a {
    color: #2c3e50;
    text-decoration: none;
}

.post-title a:hover {
    color: #007bff;
}

.post-meta {
    font-size: 0.8rem;
    color: #6c757d;
}

.post-date {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.no-posts {
    text-align: center;
    color: #6c757d;
    font-style: italic;
    margin: 0;
}

/* Tags Widget */
.tags-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag-item {
    background: #f8f9fa;
    color: #495057;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
}

.tag-item:hover {
    background: #007bff;
    color: white;
    text-decoration: none;
    transform: translateY(-1px);
}

.tag-item span {
    background: rgba(0,0,0,0.1);
    color: inherit;
    padding: 0.1rem 0.4rem;
    border-radius: 10px;
    font-size: 0.7rem;
    margin-left: 0.3rem;
}

.no-tags {
    color: #6c757d;
    font-style: italic;
}

/* Newsletter Widget */
.newsletter-content {
    text-align: center;
}

.newsletter-subtitle {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.newsletter-description {
    color: #6c757d;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.newsletter-form .input-group {
    display: flex;
    border-radius: 25px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.newsletter-form .form-control {
    border: none;
    padding: 0.8rem 1rem;
    font-size: 0.9rem;
    flex: 1;
    outline: none;
}

.newsletter-form .form-control:focus {
    box-shadow: none;
}

.btn-subscribe {
    background: #007bff;
    color: white;
    border: none;
    padding: 0.8rem 1.2rem;
    font-weight: 500;
    transition: background 0.3s ease;
    cursor: pointer;
}

.btn-subscribe:hover {
    background: #0056b3;
}

/* Social Media Widget */
.social-links-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.8rem;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.social-link.facebook {
    background: #f8f9fa;
    color: #1877f2;
    border: 1px solid #e3f2fd;
}

.social-link.facebook:hover {
    background: #1877f2;
    color: white;
    text-decoration: none;
    transform: translateY(-2px);
}

.social-link.twitter {
    background: #f8f9fa;
    color: #1da1f2;
    border: 1px solid #e1f5fe;
}

.social-link.twitter:hover {
    background: #1da1f2;
    color: white;
    text-decoration: none;
    transform: translateY(-2px);
}

.social-link.instagram {
    background: #f8f9fa;
    color: #e4405f;
    border: 1px solid #fce4ec;
}

.social-link.instagram:hover {
    background: linear-gradient(45deg, #f09433 0%,#e6683c 25%,#dc2743 50%,#cc2366 75%,#bc1888 100%);
    color: white;
    text-decoration: none;
    transform: translateY(-2px);
}

.social-link.youtube {
    background: #f8f9fa;
    color: #ff0000;
    border: 1px solid #ffebee;
}

.social-link.youtube:hover {
    background: #ff0000;
    color: white;
    text-decoration: none;
    transform: translateY(-2px);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .featured-posts-grid {
        grid-template-columns: 1fr;
    }
    
    .side-featured {
        flex-direction: row;
        overflow-x: auto;
        gap: 1rem;
    }
    
    .side-featured-item {
        min-width: 250px;
    }
    
    .trending-grid,
    .latest-articles-list,
    .most-viewed-list {
        grid-template-columns: 1fr;
    }
    
    .sidebar-modern {
        padding-left: 0;
        margin-top: 3rem;
    }
    
    .social-links-grid {
        grid-template-columns: 1fr;
    }
    
    .section-header-inline {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
}

@media (max-width: 576px) {
    .hero-section {
        padding: 60px 0;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .section-title-inline {
        font-size: 1.5rem;
    }
    
    .card-content {
        padding: 1rem;
    }
    
    .widget-content {
        padding: 1rem;
    }
}

/* Animation Classes */
.fade-in {
    animation: fadeIn 0.6s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.slide-up {
    animation: slideUp 0.6s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Loading States */
.loading-skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* Utility Classes */
.text-gradient {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.shadow-soft {
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.shadow-medium {
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.border-radius-lg {
    border-radius: 12px;
}

.border-radius-xl {
    border-radius: 20px;
}