/*
Theme Name:     Foxiz child
Template:      	foxiz
Theme URI:      https://foxiz.themeruby.com
Author:         Theme-Ruby
Author URI:     https://themeforest.net/user/theme-ruby/portfolio/
Description:    Make your modifications to Foxiz in this child theme.
Version:        1.0
Tags:           custom-background, custom-menu, featured-images, theme-options, custom-colors, translation-ready, threaded-comments, translation-ready
License:        Themeforest Licence
License URI:    https://themeforest.net/licenses/standard
*/

/* Your CSS code goes here
-------------------------------------- */

/* === Custom layout tweaks for Flex Grid 2 === */
.elementor-widget-flex-grid-2 {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center; /* Optional: center items inside */
  width: auto;
  max-width: 100%;
}

.elementor-widget-flex-grid-2 .grid-item {
  flex: 0 0 auto;
  width: 250px; /* Adjust as needed */
}
@media (max-width: 1024px) {
  .mobile-qview {
    display: none !important;
  }
}
/* Advanced Scholar Posts Styling */
.advanced-scholar-posts,
.recent-scholar-posts {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.scholar-filters {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 12px;
    margin-bottom: 40px;
    border: 1px solid #e9ecef;
}

.scholar-filters h3 {
    margin: 0 0 15px 0;
    color: #2c3e50;
    font-size: 1.3rem;
}

.filter-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.filter-btn {
    padding: 10px 20px;
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    color: #5a6c7d;
}

.filter-btn:hover,
.filter-btn.active {
    background: #3498db;
    color: white;
    border-color: #3498db;
}

/* Posts Grid */
.scholar-posts-grid,
.recent-posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.recent-posts-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

/* Post Cards */
.scholar-post-card,
.recent-post-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
    position: relative;
}

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

/* Badges */
.post-badges {
    position: absolute;
    top: 15px;
    left: 15px;
    right: 15px;
    display: flex;
    justify-content: space-between;
    z-index: 2;
}

.badge {
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.verified-badge {
    background: #27ae60;
    color: white;
}

.type-badge {
    background: rgba(255, 255, 255, 0.95);
    color: #2c3e50;
    border: 1px solid #e9ecef;
}

.publication-personal {
    background: #e74c3c;
    color: white;
}

.publication-official {
    background: #3498db;
    color: white;
}

.publication-peer_reviewed {
    background: #9b59b6;
    color: white;
}

/* Thumbnail */
.post-thumbnail {
    height: 220px;
    overflow: hidden;
    position: relative;
}

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

.scholar-post-card:hover .post-thumbnail img {
    transform: scale(1.05);
}

.post-thumbnail-placeholder {
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 3rem;
}

/* Content */
.post-content {
    padding: 25px;
}

.post-title {
    margin: 0 0 15px 0;
    font-size: 1.3rem;
    line-height: 1.4;
}

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

.post-title a:hover {
    color: #3498db;
}

.post-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
    font-size: 0.9rem;
    color: #7f8c8d;
}

.post-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.journal-info {
    background: #f8f9fa;
    padding: 10px 15px;
    border-radius: 6px;
    margin-bottom: 15px;
    font-size: 0.85rem;
    color: #5a6c7d;
}

.journal-info i {
    margin-right: 5px;
    color: #3498db;
}

.doi-number {
    display: block;
    font-family: monospace;
    font-size: 0.8rem;
    margin-top: 5px;
    color: #7f8c8d;
}

.post-excerpt {
    color: #5a6c7d;
    line-height: 1.6;
    margin-bottom: 20px;
}

.read-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #3498db;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.read-more-btn:hover {
    color: #2980b9;
    gap: 12px;
}

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-title {
    font-size: 2.5rem;
    color: #2c3e50;
    margin-bottom: 15px;
    font-weight: 700;
}

.section-subtitle {
    font-size: 1.2rem;
    color: #7f8c8d;
    margin-bottom: 0;
}

/* Pagination */
.scholar-posts-pagination {
    text-align: center;
    margin-top: 40px;
}

.scholar-posts-pagination .page-numbers {
    display: inline-flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 8px;
}

.scholar-posts-pagination .page-numbers li {
    margin: 0;
}

.scholar-posts-pagination .page-numbers a,
.scholar-posts-pagination .page-numbers span {
    display: inline-block;
    padding: 10px 18px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    text-decoration: none;
    color: #5a6c7d;
    font-weight: 600;
    transition: all 0.3s ease;
}

.scholar-posts-pagination .page-numbers a:hover {
    background: #3498db;
    color: white;
    border-color: #3498db;
}

.scholar-posts-pagination .page-numbers .current {
    background: #3498db;
    color: white;
    border-color: #3498db;
}

/* Notices */
.scholar-posts-notice {
    text-align: center;
    padding: 40px;
    background: #f8f9fa;
    border-radius: 8px;
    color: #6c757d;
    font-size: 1.1rem;
}

/* Responsive */
@media (max-width: 768px) {
    .scholar-posts-grid {
        grid-template-columns: 1fr;
    }
    
    .recent-posts-grid {
        grid-template-columns: 1fr;
    }
    
    .filter-buttons {
        flex-direction: column;
    }
    
    .filter-btn {
        text-align: center;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .post-meta {
        flex-direction: column;
        gap: 8px;
    }
}