/* Blog Styles for ONFA Website */

/* Single Post & Archive Shared Styles */

.breadcrumbs {
    display: flex;
}

.breadcrumbs span {
    padding: 0 3px;
}


.onfa-single-post,
.onfa-archive-posts {
    background: #f8f9fa;
}

/* Hero Section */
.onfa-post-hero,
.onfa-archive-hero {
    background: linear-gradient(135deg, rgba(255,107,0,0.05) 0%, rgba(255,215,0,0.05) 100%);
    padding: 5rem 0 3rem;
    border-bottom: 1px solid rgba(255,107,0,0.1);
}


.onfa-post-categories,
.onfa-archive-categories {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 50px;
    flex-wrap: wrap;
}

.onfa-category-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, #121111 0%, #FFD700 100%);
    color: white;
    border-radius: 20px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.onfa-category-badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255,107,0,0.3);
    color: white;
}

.onfa-post-title,
.onfa-archive-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #333;
    line-height: 1.3;
}

.onfa-post-meta-info,
.onfa-archive-description {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
    font-size: 0.95rem;
    color: #666;
}

.onfa-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.onfa-meta-item i {
    color: #FF6B00;
}

.onfa-meta-item a {
    color: #666;
    text-decoration: none;
    transition: color 0.3s ease;
}

.onfa-meta-item a:hover {
    color: #FF6B00;
}

.onfa-post-featured-image {
    margin-top: 2rem;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.onfa-post-featured-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* Content Section */
.onfa-post-content-section,
.onfa-archive-content-section {
    background: #f8f9fa;
}

.onfa-post-article {
    background: white;
    border-radius: 20px;
    padding: 3rem;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
}

.onfa-post-content-wrapper {
    color: #333;
    line-height: 1.8;
    font-size: 1.05rem;
}

/* Typography */
.onfa-post-content-wrapper h1,
.onfa-post-content-wrapper h2,
.onfa-post-content-wrapper h3,
.onfa-post-content-wrapper h4,
.onfa-post-content-wrapper h5,
.onfa-post-content-wrapper h6 {
    color: #333;
    font-weight: 700;
    margin-top: 2rem;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.onfa-post-content-wrapper h2 {
    font-size: 1.8rem;
    border-bottom: 2px solid #FF6B00;
    padding-bottom: 0.5rem;
}

.onfa-post-content-wrapper h3 {
    font-size: 1.5rem;
    color: #FF6B00;
}

.onfa-post-content-wrapper p {
    margin-bottom: 1.2rem;
}

.onfa-post-content-wrapper ul,
.onfa-post-content-wrapper ol {
    margin: 1.5rem 0;
    padding-left: 2rem;
}

.onfa-post-content-wrapper li {
    margin-bottom: 0.75rem;
}

.onfa-post-content-wrapper blockquote {
    background: rgba(255,107,0,0.05);
    border-left: 4px solid #FF6B00;
    padding: 1.5rem;
    margin: 2rem 0;
    border-radius: 8px;
    font-style: italic;
}

.onfa-post-content-wrapper img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 1.5rem 0;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.onfa-post-content-wrapper a {
    color: #FF6B00;
    text-decoration: underline;
}

.onfa-post-content-wrapper a:hover {
    color: #FF8533;
}

/* Tags */
.onfa-post-tags {
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 12px;
}

.onfa-tags-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.onfa-tags-title i {
    color: #FF6B00;
}

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

.onfa-tag-item {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: white;
    color: #666;
    border-radius: 20px;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    border: 1px solid #ddd;
}

.onfa-tag-item:hover {
    background: #FF6B00;
    color: white;
    border-color: #FF6B00;
    transform: translateY(-2px);
}

/* Share Buttons */
.onfa-post-share {
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 12px;
}

.onfa-share-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.onfa-share-title i {
    color: #FF6B00;
}

.onfa-share-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.onfa-share-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.2rem;
    border-radius: 25px;
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

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

.onfa-share-btn.onfa-facebook { background: #1877f2; }
.onfa-share-btn.onfa-twitter { background: #1da1f2; }
.onfa-share-btn.onfa-linkedin { background: #0077b5; }
.onfa-share-btn.onfa-telegram { background: #0088cc; }

/* Author Box */
.onfa-author-box {
    display: flex;
    gap: 1.5rem;
    padding: 2rem;
    background: linear-gradient(135deg, rgba(255,107,0,0.05) 0%, rgba(255,215,0,0.05) 100%);
    border-radius: 15px;
    border: 2px solid rgba(255,107,0,0.1);
}

.onfa-author-avatar {
    flex-shrink: 0;
}

.onfa-author-avatar img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 3px solid #FF6B00;
}

.onfa-author-info {
    flex: 1;
}

.onfa-author-name {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.onfa-author-name a {
    color: #333;
    text-decoration: none;
}

.onfa-author-name a:hover {
    color: #FF6B00;
}

.onfa-author-bio {
    color: #666;
    line-height: 1.6;
    margin-bottom: 0;
}

/* Post Navigation */
.onfa-post-navigation {
    border-top: 2px solid #f0f0f0;
    border-bottom: 2px solid #f0f0f0;
    padding: 2rem 0;
}

.onfa-nav-links {
    display: flex;
    justify-content: space-between;
    gap: 2rem;
}

.onfa-nav-previous,
.onfa-nav-next {
    flex: 1;
    max-width: 48%;
}

.onfa-nav-link {
    display: flex;
    flex-direction: column;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.onfa-nav-link:hover {
    background: rgba(255,107,0,0.05);
    transform: translateX(-5px);
}

.onfa-nav-next .onfa-nav-link:hover {
    transform: translateX(5px);
}

.onfa-nav-subtitle {
    font-size: 0.85rem;
    color: #FF6B00;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.onfa-nav-title {
    color: #333;
    font-weight: 600;
    line-height: 1.4;
}

/* Archive/Blog List */
.onfa-blog-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 3px 15px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    margin-bottom: 2rem;
    display: flex;
    flex-direction: row;
}

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

.onfa-blog-thumb {
    flex-shrink: 0;
    width: 300px;
    height: auto;
    overflow: hidden;
}

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

.onfa-blog-card:hover .onfa-blog-thumb img {
    transform: scale(1.1);
}

.onfa-blog-content {
    flex: 1;
    padding: 2rem;
}

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

.onfa-blog-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.onfa-blog-title a {
    color: #333;
    text-decoration: none;
}

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

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

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

.btn-read-more:hover {
    color: #FF8533;
    gap: 0.8rem;
}

/* Pagination */
.onfa-blog-pagination,
.onfa-archive-pagination {
    display: flex;
    justify-content: center;
    margin-top: 3rem;
}

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

.page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 45px;
    height: 45px;
    padding: 0.5rem 1rem;
    background: white;
    color: #333;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.page-numbers:hover,
.page-numbers.current {
    background: linear-gradient(135deg, #FF6B00 0%, #FFD700 100%);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255,107,0,0.3);
}

/* Sidebar */
.post-sidebar,
.archive-sidebar {
    position: sticky;
    top: 100px;
}

.sidebar-widget {
    background: white;
    border-radius: 15px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 3px 15px rgba(0,0,0,0.08);
}

.widget-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #FF6B00;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.widget-title i {
    color: #FF6B00;
}

/* Search Widget */
.widget-search .search-form .input-group {
    display: flex;
    border: 1px solid #ddd;
    border-radius: 25px;
    overflow: hidden;
}

.widget-search .form-control {
    border: none;
    padding: 0.75rem 1rem;
    flex: 1;
}

.widget-search .form-control:focus {
    outline: none;
    box-shadow: none;
}

.widget-search .btn-main {
    background: #FF6B00;
    color: white;
    border: none;
    padding: 0.75rem 1.25rem;
}

/* Categories Widget */
.categories-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.categories-list li {
    margin-bottom: 0.75rem;
}

.categories-list a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 0.75rem;
    color: #333;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.categories-list a:hover {
    background: rgba(255,107,0,0.1);
    color: #FF6B00;
    padding-left: 1rem;
}

.categories-list .count {
    background: #f8f9fa;
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    font-size: 0.85rem;
}

/* Recent Posts Widget */
.recent-posts-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.recent-posts-list li {
    margin-bottom: 1rem;
}

.recent-posts-list a {
    text-decoration: none;
    color: #333;
}

.recent-post-item {
    display: flex;
    gap: 1rem;
    padding: 0.75rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.recent-post-item:hover {
    background: rgba(255,107,0,0.05);
}

.recent-post-thumb {
    flex-shrink: 0;
    width: 70px;
    height: 70px;
    border-radius: 8px;
    overflow: hidden;
}

.recent-post-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.recent-post-info h5 {
    font-size: 0.9rem;
    font-weight: 600;
    margin: 0 0 0.5rem 0;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.recent-post-date {
    font-size: 0.8rem;
    color: #999;
}

/* Related Posts */
.onfa-related-posts {
    background: white;
}

.onfa-section-title {
    font-size: 2rem;
    font-weight: 700;
    color: #333;
}

.onfa-section-title i {
    color: #FF6B00;
}

.onfa-related-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 3px 15px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    height: 100%;
}

.onfa-related-card:hover {
    box-shadow: 0 8px 25px rgba(255,107,0,0.2);
    transform: translateY(-5px);
}

.onfa-related-thumb {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.onfa-related-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.onfa-related-card:hover .onfa-related-thumb img {
    transform: scale(1.1);
}

.onfa-related-content {
    padding: 1.5rem;
}

.onfa-post-category {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: rgba(255,107,0,0.1);
    color: #FF6B00;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
    text-decoration: none;
    margin-bottom: 0.75rem;
}

.onfa-post-category:hover {
    background: #FF6B00;
    color: white;
}

.onfa-related-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.onfa-related-title a {
    color: #333;
    text-decoration: none;
}

.onfa-related-title a:hover {
    color: #FF6B00;
}

.onfa-related-meta {
    color: #999;
    font-size: 0.85rem;
}

/* Responsive */
@media (max-width: 992px) {
    .post-sidebar,
    .archive-sidebar {
        position: static;
        margin-top: 3rem;
    }
    
    .onfa-nav-links {
        flex-direction: column;
    }
    
    .onfa-nav-previous,
    .onfa-nav-next {
        max-width: 100%;
    }
    
    .onfa-blog-card {
        flex-direction: column;
    }
    
    .onfa-blog-thumb {
        width: 100%;
        height: 250px;
    }
}

@media (max-width: 768px) {
    .onfa-post-hero,
    .onfa-archive-hero {
        padding: 4rem 0 2rem;
    }
    
    .onfa-post-title,
    .onfa-archive-title {
        font-size: 1.8rem;
    }
    
    .onfa-post-meta-info {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .onfa-post-article {
        padding: 1.5rem;
    }
    
    .onfa-author-box {
        flex-direction: column;
        text-align: center;
    }
    
    .onfa-share-buttons {
        justify-content: center;
    }
    
    .onfa-blog-content {
        padding: 1.5rem;
    }
}

@media (max-width: 576px) {
    .onfa-post-title,
    .onfa-archive-title {
        font-size: 1.5rem;
    }
    
    .onfa-post-article {
        padding: 1.25rem;
    }
    
    .onfa-blog-title {
        font-size: 1.25rem;
    }
}

/* ============================================
   AUTHOR PAGE STYLES
   ============================================ */

/* Author Hero Section */
.onfa-author-hero .onfa-author-avatar-large {
    display: flex;
    justify-content: center;
}

.onfa-author-hero .onfa-author-avatar-large img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 4px solid #FF6B00;
    box-shadow: 0 10px 30px rgba(255, 107, 0, 0.2);
}

.onfa-author-meta {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    color: #666;
    font-size: 0.95rem;
}

.onfa-author-meta span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.onfa-author-meta i {
    color: #FF6B00;
}

/* Author Statistics Section */
.onfa-author-stats {
    position: relative;
    overflow: hidden;
}

.onfa-author-stats::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><circle cx="50" cy="50" r="40" fill="rgba(255,255,255,0.05)"/></svg>');
    opacity: 0.3;
}

.onfa-stat-item {
    position: relative;
    z-index: 1;
    padding: 2rem;
    border-radius: 15px;
    transition: all 0.3s ease;
}

.onfa-stat-item:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.1);
}

.onfa-stat-item i {
    opacity: 0.9;
    transition: all 0.3s ease;
}

.onfa-stat-item:hover i {
    transform: scale(1.1);
    opacity: 1;
}

.onfa-stat-item h3 {
    font-size: 3rem;
    font-weight: 700;
    margin: 1rem 0 0.5rem;
}

.onfa-stat-item p {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* ============================================
   AUTHOR POSTS LIST IN SINGLE POST
   ============================================ */

.onfa-author-posts {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 2px solid #f0f0f0;
}

.onfa-author-posts h5 {
    color: #333;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.onfa-author-posts h5 i {
    color: #FF6B00;
}

.onfa-author-posts-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.onfa-author-posts-list li {
    padding: 0.75rem 0;
    border-bottom: 1px solid #f0f0f0;
    transition: all 0.3s ease;
}

.onfa-author-posts-list li:last-child {
    border-bottom: none;
}

.onfa-author-posts-list li:hover {
    padding-left: 0.5rem;
    background: rgba(255, 107, 0, 0.03);
}

.onfa-author-posts-list li a {
    color: #333;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    display: block;
    margin-bottom: 0.25rem;
}

.onfa-author-posts-list li a:hover {
    color: #FF6B00;
}

.onfa-author-posts-list .post-date {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    color: #999;
    font-size: 0.85rem;
}

.onfa-author-posts-list .post-date i {
    font-size: 0.8rem;
}

.onfa-view-all-posts {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, #FF6B00 0%, #FFD700 100%);
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.onfa-view-all-posts:hover {
    transform: translateX(5px);
    box-shadow: 0 5px 15px rgba(255, 107, 0, 0.3);
    color: white;
}

.onfa-view-all-posts i {
    transition: transform 0.3s ease;
}

.onfa-view-all-posts:hover i {
    transform: translateX(5px);
}

/* Author Box Updates */
.onfa-author-box {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
    padding: 2rem;
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    border-left: 4px solid #FF6B00;
}

.onfa-author-avatar img {
    border-radius: 50%;
    border: 3px solid #FF6B00;
}

.onfa-author-info {
    flex: 1;
}

.onfa-author-name {
    color: #333;
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.onfa-author-bio {
    color: #666;
    line-height: 1.6;
    margin-bottom: 0;
}

/* ============================================
   RESPONSIVE STYLES FOR AUTHOR PAGES
   ============================================ */

@media (max-width: 992px) {
    .onfa-author-meta {
        gap: 1rem;
    }
    
    .onfa-stat-item h3 {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    .onfa-author-hero .onfa-author-avatar-large img {
        width: 100px;
        height: 100px;
    }
    
    .onfa-archive-title {
        font-size: 2rem;
    }
    
    .onfa-author-meta {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .onfa-stat-item {
        padding: 1.5rem;
    }
    
    .onfa-stat-item h3 {
        font-size: 2rem;
    }
    
    .onfa-author-box {
        flex-direction: column;
        text-align: center;
    }
    
    .onfa-author-posts {
        text-align: left;
    }
}

@media (max-width: 576px) {
    .onfa-author-hero .onfa-author-avatar-large img {
        width: 80px;
        height: 80px;
    }
    
    .onfa-archive-title {
        font-size: 1.5rem;
    }
    
    .onfa-stat-item h3 {
        font-size: 1.8rem;
    }
    
    .onfa-stat-item i {
        font-size: 2rem !important;
    }
    
    .onfa-author-posts-list li {
        padding: 0.5rem 0;
    }
}
