/* Blog Page Styles - SEO Optimized */

/* Breadcrumb Navigation */
.breadcrumb {
    background: var(--lightbg);
    padding: 1.5rem 7%;
    margin-top: 80px;
}

.breadcrumb-container {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.breadcrumb-container a {
    color: var(--maincolor);
    font-size: 1.4rem;
    text-decoration: none;
}

.breadcrumb-container a:hover {
    text-decoration: underline;
}

.breadcrumb-container i {
    font-size: 1.2rem;
    color: #999;
}

.breadcrumb-container span {
    font-size: 1.4rem;
    color: #666;
}

/* Blog Hero Section */
.blog-hero {
    background: linear-gradient(135deg, #1a5f7a 0%, #2a8b9e 100%);
    padding: 5rem 7%;
    text-align: center;
    color: white;
}

.blog-hero-content h1 {
    font-size: 4rem;
    margin-bottom: 1rem;
    color: white;
}

.blog-hero-content p {
    font-size: 1.8rem;
    opacity: 0.95;
    margin-bottom: 2rem;
}

.search-bar {
    max-width: 500px;
    margin: 0 auto;
    position: relative;
}

.search-bar i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    font-size: 1.6rem;
}

.search-bar input {
    width: 100%;
    padding: 1.2rem 1.2rem 1.2rem 4.5rem;
    font-size: 1.5rem;
    border: none;
    border-radius: 50px;
    outline: none;
}

/* Blog Categories */
.blog-categories {
    padding: 3rem 7%;
    background: var(--white);
    border-bottom: 1px solid #e0e0e0;
}

.categories-container {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.category-btn {
    padding: 0.8rem 2rem;
    background: transparent;
    border: 2px solid #e0e0e0;
    border-radius: 50px;
    font-size: 1.4rem;
    font-weight: 500;
    color: #666;
    cursor: pointer;
    transition: all 0.3s ease;
}

.category-btn:hover {
    border-color: var(--maincolor);
    color: var(--maincolor);
}

.category-btn.active {
    background: var(--gradient);
    border-color: transparent;
    color: white;
}

/* Featured Post */
.featured-post {
    padding: 4rem 7%;
    background: var(--lightbg);
}

.featured-container {
    display: flex;
    gap: 3rem;
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.featured-image {
    flex: 1;
    position: relative;
}

.featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.featured-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    background: var(--secondcolor);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 1.2rem;
    font-weight: 600;
}

.featured-content {
    flex: 1;
    padding: 3rem;
}

.featured-content .post-category {
    display: inline-block;
    background: rgba(26, 95, 122, 0.1);
    color: var(--maincolor);
    padding: 0.4rem 1rem;
    border-radius: 50px;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.featured-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.featured-content p {
    font-size: 1.5rem;
    color: #666;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.post-meta {
    display: flex;
    gap: 2rem;
    margin-bottom: 1.5rem;
}

.post-meta span {
    font-size: 1.3rem;
    color: #888;
}

.post-meta i {
    margin-right: 0.5rem;
    color: var(--maincolor);
}

.read-more {
    display: inline-block;
    color: var(--maincolor);
    font-size: 1.4rem;
    font-weight: 600;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.read-more:hover {
    transform: translateX(5px);
}

/* Blog Grid Section */
.blog-grid-section {
    display: flex;
    gap: 4rem;
    padding: 6rem 7%;
    background: var(--white);
}

.blog-grid-container {
    flex: 2;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 3rem;
}

.blog-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.blog-card-image {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.blog-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.blog-card:hover .blog-card-image img {
    transform: scale(1.05);
}

.card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(0deg, rgba(0,0,0,0.3), transparent);
}

.blog-card-content {
    padding: 1.8rem;
}

.blog-card-content .post-category {
    display: inline-block;
    background: rgba(26, 95, 122, 0.1);
    color: var(--maincolor);
    padding: 0.3rem 0.8rem;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.blog-card-content h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.blog-card-content p {
    font-size: 1.4rem;
    color: #666;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.blog-card-content .post-meta {
    margin-bottom: 1rem;
}

/* Load More Button */
.load-more-container {
    text-align: center;
    margin-top: 4rem;
}

.load-more-btn {
    background: transparent;
    border: 2px solid var(--maincolor);
    color: var(--maincolor);
    padding: 1rem 2.5rem;
    font-size: 1.5rem;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.load-more-btn:hover {
    background: var(--gradient);
    color: white;
    border-color: transparent;
}

.load-more-btn i {
    margin-left: 0.5rem;
    transition: transform 0.3s ease;
}

.load-more-btn:hover i {
    transform: translateY(3px);
}

/* Sidebar */
.blog-sidebar {
    flex: 1;
}

.sidebar-widget {
    background: var(--lightbg);
    border-radius: 15px;
    padding: 2rem;
    margin-bottom: 2.5rem;
}

.sidebar-widget h3 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #e0e0e0;
}

.sidebar-widget h3 i {
    color: var(--maincolor);
    margin-right: 0.8rem;
}

/* Popular Posts */
.popular-posts {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.popular-post {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.popular-post img {
    width: 70px;
    height: 70px;
    border-radius: 10px;
    object-fit: cover;
}

.popular-post-info a {
    display: block;
    font-size: 1.4rem;
    font-weight: 600;
    color: #1a2a3a;
    text-decoration: none;
    margin-bottom: 0.3rem;
    transition: color 0.3s ease;
}

.popular-post-info a:hover {
    color: var(--maincolor);
}

.popular-post-info span {
    font-size: 1.2rem;
    color: #888;
}

/* Newsletter Widget */
.newsletter-widget p {
    font-size: 1.4rem;
    color: #666;
    margin-bottom: 1.5rem;
}

.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.newsletter-form input {
    padding: 1rem;
    font-size: 1.4rem;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    outline: none;
}

.newsletter-form input:focus {
    border-color: var(--maincolor);
}

.newsletter-form button {
    background: var(--gradient);
    color: white;
    padding: 1rem;
    font-size: 1.4rem;
    font-weight: 600;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.newsletter-form button:hover {
    transform: translateY(-2px);
}

/* Categories List */
.categories-list {
    list-style: none;
    padding: 0;
}

.categories-list li {
    margin-bottom: 1rem;
}

.categories-list a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #666;
    text-decoration: none;
    font-size: 1.4rem;
    transition: color 0.3s ease;
}

.categories-list a:hover {
    color: var(--maincolor);
}

.categories-list a span {
    color: #999;
}

/* Tags Cloud */
.tags-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.tags-cloud a {
    background: white;
    padding: 0.5rem 1.2rem;
    border-radius: 50px;
    font-size: 1.2rem;
    color: #666;
    text-decoration: none;
    transition: all 0.3s ease;
}

.tags-cloud a:hover {
    background: var(--gradient);
    color: white;
}

/* Social Follow */
.social-follow {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.social-follow-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.8rem 1.5rem;
    border-radius: 10px;
    color: white;
    text-decoration: none;
    font-size: 1.4rem;
    transition: transform 0.3s ease;
}

.social-follow-link:hover {
    transform: translateX(5px);
}

.social-follow-link.facebook {
    background: #1877f2;
}

.social-follow-link.instagram {
    background: linear-gradient(45deg, #f58529, #dd2a7b, #8134af);
}

.social-follow-link.linkedin {
    background: #0077b5;
}

.social-follow-link.twitter {
    background: #1da1f2;
}

/* Full Post Section */
.full-post-section {
    padding: 4rem 7%;
    background: var(--white);
}

.full-post-container {
    max-width: 900px;
    margin: 0 auto;
}

.back-to-blog {
    background: transparent;
    border: none;
    color: var(--maincolor);
    font-size: 1.4rem;
    cursor: pointer;
    margin-bottom: 2rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: transform 0.3s ease;
}

.back-to-blog:hover {
    transform: translateX(-5px);
}

.full-blog-post {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.full-post-header {
    padding: 3rem 3rem 0;
}

.full-post-header .post-category {
    display: inline-block;
    background: rgba(26, 95, 122, 0.1);
    color: var(--maincolor);
    padding: 0.4rem 1rem;
    border-radius: 50px;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.full-post-title {
    font-size: 3rem;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.full-post-meta {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #e0e0e0;
}

.full-post-meta span {
    font-size: 1.3rem;
    color: #888;
}

.full-post-meta i {
    margin-right: 0.5rem;
    color: var(--maincolor);
}

.full-post-featured-image img {
    width: 100%;
    height: auto;
}

.full-post-content {
    padding: 3rem;
}

.full-post-content p {
    font-size: 1.6rem;
    line-height: 1.8;
    color: var(--textcolor);
    margin-bottom: 1.5rem;
}

.full-post-content h2 {
    font-size: 2.4rem;
    margin: 2rem 0 1rem;
}

.full-post-content h3 {
    font-size: 1.8rem;
    margin: 1.5rem 0 1rem;
}

.full-post-content img {
    width: 100%;
    border-radius: 15px;
    margin: 2rem 0;
}

.full-post-content ul {
    margin: 1.5rem 0;
    padding-left: 2rem;
}

.full-post-content li {
    font-size: 1.5rem;
    margin-bottom: 0.8rem;
}

.cta-box {
    background: var(--gradient);
    padding: 2.5rem;
    border-radius: 15px;
    text-align: center;
    margin: 2rem 0;
}

.cta-box h3 {
    color: white;
    margin-top: 0;
}

.cta-box p {
    color: rgba(255, 255, 255, 0.9);
}

.cta-button {
    display: inline-block;
    background: white;
    color: var(--maincolor);
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.3s ease;
}

.cta-button:hover {
    transform: translateY(-2px);
}

/* Post Share */
.post-share {
    padding: 2rem 3rem 3rem;
    border-top: 1px solid #e0e0e0;
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.post-share span {
    font-size: 1.4rem;
    color: #666;
}

.share-btn {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: white;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.share-btn:hover {
    transform: translateY(-2px);
}

.share-btn.facebook {
    background: #1877f2;
}

.share-btn.twitter {
    background: #1da1f2;
}

.share-btn.linkedin {
    background: #0077b5;
}

.share-btn.whatsapp {
    background: #25d366;
}

/* Footer */
.footer-bottom {
    text-align: center;
    padding-top: 3rem;
    margin-top: 3rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.6);
}

.footer-bottom a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
}

.footer-bottom a:hover {
    color: var(--secondcolor);
}

/* Responsive Design */
@media (max-width: 992px) {
    .blog-grid-section {
        flex-direction: column;
    }
    
    .featured-container {
        flex-direction: column;
    }
    
    .featured-image {
        min-height: 300px;
    }
    
    .full-post-title {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    .breadcrumb {
        margin-top: 70px;
    }
    
    .blog-hero {
        padding: 4rem 5%;
    }
    
    .blog-hero-content h1 {
        font-size: 2.5rem;
    }
    
    .blog-hero-content p {
        font-size: 1.4rem;
    }
    
    .blog-categories {
        padding: 2rem 5%;
    }
    
    .category-btn {
        padding: 0.6rem 1.5rem;
        font-size: 1.2rem;
    }
    
    .featured-post,
    .blog-grid-section {
        padding: 4rem 5%;
    }
    
    .featured-content {
        padding: 2rem;
    }
    
    .featured-content h2 {
        font-size: 2rem;
    }
    
    .post-meta {
        flex-wrap: wrap;
        gap: 1rem;
    }
    
    .blog-grid {
        grid-template-columns: 1fr;
    }
    
    .full-post-header {
        padding: 2rem;
    }
    
    .full-post-title {
        font-size: 2rem;
    }
    
    .full-post-content {
        padding: 2rem;
    }
    
    .full-post-content p {
        font-size: 1.5rem;
    }
    
    .post-share {
        padding: 2rem;
    }
}

@media (max-width: 576px) {
    .popular-post {
        flex-direction: column;
        text-align: center;
    }
    
    .popular-post img {
        width: 100%;
        height: auto;
    }
    
    .sidebar-widget {
        padding: 1.5rem;
    }
}