/* Blog Specific Styles */

/* Blog Section */
.blog-section {
    background: #f8f9fa;
    padding: 50px 0;
}

.blog-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
}

.blog-main {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Blog Filters */
.blog-filters {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #e2e8f0;
}

.search-form {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.search-group {
    display: flex;
    flex: 1;
    min-width: 300px;
}

.search-group input {
    flex: 1;
    padding: 12px 15px;
    border: 2px solid #e2e8f0;
    border-right: none;
    border-radius: 8px 0 0 8px;
    font-size: 16px;
}

.search-group button {
    padding: 12px 20px;
    background: #c9a96e;
    color: white;
    border: 2px solid #c9a96e;
    border-radius: 0 8px 8px 0;
    cursor: pointer;
    transition: background 0.3s ease;
}

.search-group button:hover {
    background: #b8956a;
}

.search-form select {
    padding: 12px 15px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 16px;
    min-width: 200px;
}

.active-filters {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    flex-wrap: wrap;
}

.filter-tag {
    background: #c9a96e;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.filter-tag a {
    color: white;
    text-decoration: none;
    font-weight: bold;
    margin-left: 0.5rem;
}

.clear-filters {
    color: #dc3545;
    text-decoration: none;
    font-size: 0.9rem;
    margin-left: 1rem;
}

.clear-filters:hover {
    text-decoration: underline;
}

/* Blog Grid */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.blog-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

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

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

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

.blog-category {
    position: absolute;
    top: 15px;
    left: 15px;
    background: rgba(201, 169, 110, 0.9);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.blog-category a {
    color: white;
    text-decoration: none;
}

.blog-content {
    padding: 1.5rem;
}

.blog-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.85rem;
    color: #666;
    flex-wrap: wrap;
}

.blog-meta span {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.blog-meta i {
    color: #c9a96e;
}

.blog-title {
    margin-bottom: 1rem;
}

.blog-title a {
    color: #1a365d;
    text-decoration: none;
    font-size: 1.3rem;
    font-weight: 600;
    line-height: 1.3;
}

.blog-title a:hover {
    color: #c9a96e;
}

.blog-excerpt {
    color: #666;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.blog-tags {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.tag {
    background: #f8f9fa;
    color: #666;
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    text-decoration: none;
    font-size: 0.8rem;
    transition: all 0.3s ease;
}

.tag:hover {
    background: #c9a96e;
    color: white;
}

.read-more {
    color: #c9a96e;
    text-decoration: none;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: color 0.3s ease;
}

.read-more:hover {
    color: #b8956a;
}

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

.read-more:hover i {
    transform: translateX(5px);
}

/* No Posts */
.no-posts {
    text-align: center;
    padding: 3rem;
    color: #666;
}

.no-posts i {
    font-size: 4rem;
    color: #c9a96e;
    margin-bottom: 1rem;
}

.no-posts h3 {
    color: #1a365d;
    margin-bottom: 1rem;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-top: 3rem;
    flex-wrap: wrap;
}

.pagination-btn {
    padding: 0.75rem 1.5rem;
    background: white;
    color: #1a365d;
    text-decoration: none;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.pagination-btn:hover {
    background: #c9a96e;
    color: white;
    border-color: #c9a96e;
}

.pagination-numbers {
    display: flex;
    gap: 0.5rem;
}

.pagination-number {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    color: #1a365d;
    text-decoration: none;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.pagination-number:hover,
.pagination-number.active {
    background: #c9a96e;
    color: white;
    border-color: #c9a96e;
}

/* Blog Sidebar */
.blog-sidebar {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.sidebar-widget {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.sidebar-widget h3 {
    color: #1a365d;
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
}

/* Newsletter Form */
.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.newsletter-form input {
    padding: 12px 15px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 16px;
}

.newsletter-form input:focus {
    outline: none;
    border-color: #c9a96e;
}

/* Popular Posts */
.popular-posts {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.popular-post {
    display: flex;
    gap: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e2e8f0;
}

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

.popular-post-image {
    flex-shrink: 0;
}

.popular-post-image img {
    width: 80px;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
}

.popular-post-content h4 {
    margin-bottom: 0.5rem;
}

.popular-post-content h4 a {
    color: #1a365d;
    text-decoration: none;
    font-size: 0.9rem;
    line-height: 1.3;
}

.popular-post-content h4 a:hover {
    color: #c9a96e;
}

.popular-post-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.8rem;
    color: #666;
}

.popular-post-meta span {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.popular-post-meta i {
    color: #c9a96e;
}

/* Categories List */
.categories-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.category-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem;
    background: #f8f9fa;
    border-radius: 8px;
    text-decoration: none;
    color: #666;
    transition: all 0.3s ease;
}

.category-item:hover,
.category-item.active {
    background: #c9a96e;
    color: white;
}

.category-item .count {
    background: rgba(0, 0, 0, 0.1);
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    font-size: 0.8rem;
}

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

.tag-cloud-item {
    background: #f8f9fa;
    color: #666;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.tag-cloud-item:hover {
    background: #c9a96e;
    color: white;
    transform: translateY(-2px);
}

/* CTA Widget */
.cta-widget {
    background: linear-gradient(135deg, #1a365d, #2d4a6b);
    color: white;
    text-align: center;
}

.cta-widget h3 {
    color: white;
}

.cta-widget p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 1.5rem;
}

.contact-info {
    margin-top: 1rem;
    font-size: 0.9rem;
}

.contact-info p {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.contact-info i {
    color: #c9a96e;
}

/* Article Styles */
.article-header {
    background: linear-gradient(135deg, rgba(26, 54, 93, 0.9), rgba(26, 54, 93, 0.7)),
                url('/placeholder.svg?height=400&width=1920') center/cover;
    padding: 120px 0 80px;
    color: white;
}

.article-meta {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.article-category {
    margin-bottom: 1rem;
}

.article-category a {
    background: rgba(201, 169, 110, 0.9);
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
}

.article-title {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    color: white;
}

.article-excerpt {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    line-height: 1.6;
}

.article-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
}

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

.author-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 3px solid rgba(255, 255, 255, 0.3);
}

.author-details {
    text-align: left;
}

.author-name {
    font-weight: 600;
    font-size: 1.1rem;
    display: block;
    margin-bottom: 0.5rem;
}

.article-stats {
    display: flex;
    gap: 1.5rem;
    font-size: 0.9rem;
    opacity: 0.8;
}

.article-stats span {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.article-actions {
    display: flex;
    gap: 1rem;
}

.action-btn {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 0.75rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    font-size: 0.9rem;
}

.action-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.action-btn.bookmarked {
    background: #c9a96e;
    border-color: #c9a96e;
}

/* Article Section */
.article-section {
    background: #f8f9fa;
    padding: 50px 0;
}

.article-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
}

.article-content {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.article-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
}

.article-body {
    padding: 3rem;
    line-height: 1.8;
    font-size: 1.1rem;
}

.article-body h2 {
    color: #1a365d;
    margin: 2rem 0 1rem 0;
    font-size: 1.8rem;
    border-bottom: 2px solid #c9a96e;
    padding-bottom: 0.5rem;
}

.article-body h3 {
    color: #1a365d;
    margin: 1.5rem 0 1rem 0;
    font-size: 1.4rem;
}

.article-body p {
    margin-bottom: 1.5rem;
    color: #444;
}

.article-body ul,
.article-body ol {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
}

.article-body li {
    margin-bottom: 0.5rem;
    color: #444;
}

.article-body blockquote {
    background: #f8f9fa;
    border-left: 4px solid #c9a96e;
    padding: 1.5rem;
    margin: 2rem 0;
    font-style: italic;
    border-radius: 0 8px 8px 0;
}

.article-body blockquote p {
    margin-bottom: 0;
    font-size: 1.2rem;
    color: #666;
}

.article-body strong {
    color: #1a365d;
    font-weight: 600;
}

.article-tags {
    padding: 2rem 3rem;
    border-top: 1px solid #e2e8f0;
}

.article-tags h4 {
    color: #1a365d;
    margin-bottom: 1rem;
}

.tags-list {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.article-share {
    padding: 2rem 3rem;
    border-top: 1px solid #e2e8f0;
    text-align: center;
}

.article-share h4 {
    color: #1a365d;
    margin-bottom: 1.5rem;
}

.share-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.share-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.share-btn.facebook {
    background: #1877f2;
    color: white;
}

.share-btn.twitter {
    background: #1da1f2;
    color: white;
}

.share-btn.linkedin {
    background: #0077b5;
    color: white;
}

.share-btn.whatsapp {
    background: #25d366;
    color: white;
}

.share-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Article Sidebar */
.article-sidebar {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.author-widget {
    text-align: center;
}

.author-card {
    padding: 2rem;
}

.author-photo {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    margin-bottom: 1rem;
    border: 4px solid #c9a96e;
}

.author-card h3 {
    color: #1a365d;
    margin-bottom: 1rem;
}

.author-card p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

/* Table of Contents */
.toc-widget ul {
    list-style: none;
    padding: 0;
}

.toc-widget li {
    margin-bottom: 0.5rem;
}

.toc-widget a {
    color: #666;
    text-decoration: none;
    padding: 0.5rem 0;
    display: block;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.toc-widget a:hover {
    color: #c9a96e;
    background: #f8f9fa;
    padding-left: 1rem;
}

.toc-h3 {
    margin-left: 1rem;
}

.toc-h3 a {
    font-size: 0.9rem;
}

/* Related Articles */
.related-articles {
    background: white;
    padding: 50px 0;
}

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

.related-card {
    background: #f8f9fa;
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.related-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.related-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.related-content {
    padding: 1.5rem;
}

.related-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.8rem;
    color: #666;
    margin-bottom: 1rem;
}

.related-content h3 {
    margin-bottom: 1rem;
}

.related-content h3 a {
    color: #1a365d;
    text-decoration: none;
    font-size: 1.1rem;
}

.related-content h3 a:hover {
    color: #c9a96e;
}

.related-content p {
    color: #666;
    line-height: 1.6;
}

/* Responsive Design */
@media (max-width: 768px) {
    .blog-layout,
    .article-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .search-form {
        flex-direction: column;
    }

    .search-group {
        min-width: auto;
    }

    .blog-grid {
        grid-template-columns: 1fr;
    }

    .article-title {
        font-size: 2rem;
    }

    .article-info {
        flex-direction: column;
        text-align: center;
    }

    .article-body {
        padding: 2rem;
    }

    .article-tags,
    .article-share {
        padding: 1.5rem 2rem;
    }

    .share-buttons {
        flex-direction: column;
        align-items: center;
    }

    .share-btn {
        width: 200px;
        justify-content: center;
    }

    .related-grid {
        grid-template-columns: 1fr;
    }

    .pagination {
        flex-direction: column;
        gap: 1rem;
    }

    .pagination-numbers {
        order: 2;
    }
}

@media (max-width: 480px) {
    .blog-main,
    .sidebar-widget,
    .article-content {
        padding: 1.5rem;
    }

    .article-body {
        padding: 1.5rem;
        font-size: 1rem;
    }

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

    .blog-card {
        margin: 0 -1rem;
        border-radius: 0;
    }

    .author-info {
        flex-direction: column;
        text-align: center;
    }

    .article-stats {
        justify-content: center;
        flex-wrap: wrap;
    }

    .action-btn {
        padding: 0.5rem 0.75rem;
        font-size: 0.8rem;
    }
}