﻿/* ========================================
   BLOG STYLES - CONSISTENT WITH SITE DESIGN
   ======================================== */

/* Blog-specific styles that work with site.min.css variables and patterns */

/* Post Meta in Header - Always white in banner */
.usn_cmp_banner .post-meta {
    margin-top: 20px;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    color: rgba(255, 255, 255, 0.9) !important;
    font-size: 16px;
}

.usn_cmp_banner .post-meta span {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.9) !important;
}

.usn_cmp_banner .post-meta i {
    color: rgba(255, 255, 255, 0.7);
}

/* Ensure banner text is always white */
.usn_cmp_banner .banner-text {
    color: #ffffff !important;
}

/* Banner subtitle styling */
.usn_cmp_banner .banner-subtitle {
    color: rgba(255, 255, 255, 1) !important;
    font-size: 2rem;
    font-weight: 600;
    margin-top: 15px;
    margin-bottom: 0;
    line-height: 1.4;
}

.post-categories-header {
    margin-top: 20px;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
}

/* Current Filter Display in Banner */
.usn_cmp_banner .current-filter {
    margin-top: 25px;
    padding: 15px 25px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.usn_cmp_banner .filter-info {
    color: rgba(255, 255, 255, 0.95) !important;
    font-size: 14px;
    font-weight: 500;
}

.usn_cmp_banner .filter-info strong {
    color: #ffffff !important;
    font-weight: 600;
}

/* Clear Filter Button in Banner */
.usn_cmp_banner .current-filter .btn {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #333333 !important;
    padding: 6px 16px;
    font-size: 13px;
    font-weight: 600;
    border-radius: 20px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.usn_cmp_banner .current-filter .btn:hover {
    background: #ffffff;
    border-color: #ffffff;
    color: #333333 !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* Back to Blog Button */
.back-to-blog {
    margin: 30px 0;
    text-align: center;
}

.back-to-blog .btn {
    padding: 12px 24px;
    font-size: 16px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.back-to-blog .btn-primary {
    background: var(--primary-color, #007bff);
    border-color: var(--primary-color, #007bff);
    color: #ffffff;
}

.back-to-blog .btn-primary:hover {
    background: var(--primary-hover, #0056b3);
    border-color: var(--primary-hover, #0056b3);
    transform: translateY(-2px);
}

/* Base responsive improvements */
.pod-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    margin: 0 -15px;
}

.pod-item {
    padding: 0 15px;
    margin-bottom: 30px;
    display: flex;
    transition: all 0.3s ease;
}

.pod-item .pod {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    background: var(--bg-tertiary);
    border-radius: 8px;
    box-shadow: var(--card-shadow);
    overflow: hidden;
    transition: box-shadow 0.3s ease;
}

.pod-item .pod:hover {
    box-shadow: var(--card-hover-shadow);
}

.pod-item .info {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    padding: 25px;
}

.pod-item .post-excerpt {
    flex-grow: 1;
}

.pod-item .btn {
    margin-top: auto;
    align-self: flex-start;
}

/* Ensure images are responsive by default */
.featured-image img,
.post-image img,
.pod img {
    max-width: 100%;
    height: auto;
}

.img-fluid {
    max-width: 100%;
    height: auto;
}

.pod-item .post-image {
    overflow: hidden;
    height: 200px;
    border-radius: 0;
    margin-bottom: 0;
}

.pod-item .post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.pod-item:hover .post-image img {
    transform: scale(1.05);
}

.pod-item .info {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.pod-item .post-meta {
    color: var(--text-tertiary);
    font-size: 14px;
    margin-bottom: 15px;
}

.pod-item .post-meta .post-date {
    display: flex;
    align-items: center;
    gap: 5px;
}

.pod-item .post-categories {
    margin-bottom: 15px;
}

.pod-item h3 {
    margin-bottom: 15px;
    font-size: 20px;
    line-height: 1.3;
}

.pod-item h3 a {
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.pod-item h3 a:hover {
    color: var(--accent-color);
    text-decoration: none;
}

.pod-item .post-excerpt {
    color: var(--text-tertiary);
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1;
}

.pod-item .post-excerpt p {
    margin-bottom: 0;
}

.pod-item .btn {
    margin-top: auto;
    align-self: flex-start;
    padding: 10px 25px;
    font-weight: 600;
    border-radius: 25px;
    transition: all 0.3s ease;
}

.pod-item .btn-primary {
    background: var(--btn-primary-bg);
    border-color: var(--btn-primary-bg);
    color: white;
}

.pod-item .btn-primary:hover {
    background: var(--btn-primary-hover);
    border-color: var(--btn-primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Category Badge */
.category-badge {
    background: var(--btn-primary-bg);
    color: white;
    border-radius: 15px;
    padding: 4px 12px;
    font-size: 12px;
    text-decoration: none;
    display: inline-block;
    margin-right: 8px;
    margin-bottom: 5px;
    transition: all 0.3s ease;
}

.category-badge:hover {
    background: var(--btn-primary-hover);
    color: white;
    text-decoration: none;
    transform: translateY(-1px);
}

/* Sidebar Styling */
.sidebar {
    position: sticky;
    top: 20px;
}

.sidebar-widget {
    margin-bottom: 30px;
    background-color: var(--bg-tertiary);
    border-radius: 8px;
    box-shadow: var(--card-shadow);
    overflow: hidden;
    transition: box-shadow 0.3s ease;
}
[data-theme="dark"] .sidebar {
    background-color: initial;    
}

.sidebar-widget:hover {
    box-shadow: var(--card-hover-shadow);
}

.widget-content {
    padding: 25px;
}

.widget-title {
    position: relative;
    margin-top: 0;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--accent-color);
    color: var(--section-title);
    font-size: 18px;
    font-weight: 700;
}

.widget-title:after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 50px;
    height: 2px;
    /*background-color: var(--accent-color);*/
}

/* Search Widget */
.blog-search .search-wrapper {
    position: relative;
    width: 100%;
}

.blog-search .form-control {
    width: 100%;
    padding: 12px 50px 12px 15px;
    height: 45px;
    border-radius: 25px;
    border: 1px solid #d0d0d0;
    background: var(--bg-tertiary);
    color: var(--text-primary);
    font-size: 14px;
}

/* Light mode explicit grey border */
[data-theme="light"] .blog-search .form-control {
    border-color: #d0d0d0;
}

/* Dark mode lighter border for search input */
[data-theme="dark"] .blog-search .form-control {
    border-color: rgba(255, 255, 255, 0.2);
}

@media (prefers-color-scheme: light) {
    .blog-search .form-control {
        border-color: #d0d0d0;
    }
}

@media (prefers-color-scheme: dark) {
    .blog-search .form-control {
        border-color: rgba(255, 255, 255, 0.2);
    }
}

.blog-search .form-control:focus {
    border-color: #999999;
    box-shadow: 0 0 0 0.2rem rgba(153, 153, 153, 0.25);
    outline: 0;
}

/* Light mode focus state for search input */
[data-theme="light"] .blog-search .form-control:focus {
    border-color: #999999;
    box-shadow: 0 0 0 0.2rem rgba(153, 153, 153, 0.25);
}

/* Dark mode focus state for search input */
[data-theme="dark"] .blog-search .form-control:focus {
    border-color: rgba(255, 255, 255, 0.4);
    box-shadow: 0 0 0 0.2rem rgba(255, 255, 255, 0.1);
}

@media (prefers-color-scheme: light) {
    .blog-search .form-control:focus {
        border-color: #999999;
        box-shadow: 0 0 0 0.2rem rgba(153, 153, 153, 0.25);
    }
}

@media (prefers-color-scheme: dark) {
    .blog-search .form-control:focus {
        border-color: rgba(255, 255, 255, 0.4);
        box-shadow: 0 0 0 0.2rem rgba(255, 255, 255, 0.1);
    }
}

.blog-search .search-btn {
    position: absolute;
    right: 2px;
    top: 2px;
    height: 41px;
    width: 41px;
    border-radius: 25px;
    z-index: 5;
    background: var(--btn-primary-bg);
    border: none;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
}

.blog-search .search-btn:hover {
    background: var(--btn-primary-hover);
}

/* Categories Widget */
.category-list {
    list-style: none;
    padding-left: 0;
    margin-bottom: 0;
    font-size: 16px;
}

.category-list li {
    margin-bottom: 12px;
    border-bottom: 1px solid #d0d0d0;
    padding-bottom: 12px;
    transition: all 0.3s ease;
}

/* Light mode explicit grey border */
[data-theme="light"] .category-list li {
    border-bottom-color: #d0d0d0;
}

/* Dark mode lighter border for category list */
[data-theme="dark"] .category-list li {
    border-bottom-color: rgba(255, 255, 255, 0.15);
}

@media (prefers-color-scheme: light) {
    .category-list li {
        border-bottom-color: #d0d0d0;
    }
}

@media (prefers-color-scheme: dark) {
    .category-list li {
        border-bottom-color: rgba(255, 255, 255, 0.15);
    }
}

.category-list li:last-child {
    margin-bottom: 0;
    border-bottom: none;
    padding-bottom: 0;
}

.category-list li a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.category-list li a:hover {
    color: #3498db;
    text-decoration: none;
}

/* Active category styling - simplified to match EQQ style with blue highlight */
.category-list li.active a {
    color: #3498db;
    font-weight: bold;
}

.category-list li.active .category-count {
    background-color: #3498db;
    color: white;
    font-weight: bold;
}

/* Dark mode category styles */
[data-theme="dark"] .category-list li a:hover {
    color: #5dade2; /* Lighter blue for dark mode */
}

[data-theme="dark"] .category-list li.active a {
    color: #5dade2; /* Lighter blue for dark mode */
}

[data-theme="dark"] .category-list li.active .category-count {
    background-color: #5dade2; /* Lighter blue for dark mode */
    color: #ffffff; /* Dark text for better contrast */
}

@media (prefers-color-scheme: dark) {
    .category-list li a:hover {
        color: #5dade2;
    }
    
    .category-list li.active a {
        color: #5dade2;
    }
    
    .category-list li.active .category-count {
        background-color: #5dade2;
        color: #ffffff;
    }
}

.category-count {
    display: inline-block;
    min-width: 24px;
    height: 24px;
    line-height: 24px;
    text-align: center;
    background-color: var(--bg-secondary);
    color: var(--text-tertiary);
    border-radius: 12px;
    font-size: 11px;
    transition: all 0.3s ease;
    font-weight: 600;
}

.category-list li:hover .category-count {
    background-color: #3498db;
    color: white;
}

/* Dark mode hover for category count */
[data-theme="dark"] .category-list li:hover .category-count {
    background-color: #5dade2;
    color: #ffffff;
}

@media (prefers-color-scheme: dark) {
    .category-list li:hover .category-count {
        background-color: #5dade2;
        color: #ffffff;
    }
}

/* Recent Posts Widget */
.recent-posts {
    list-style: none;
    padding-left: 0;
    margin-bottom: 0;
}

.recent-post-item {
    display: flex;
    margin-bottom: 20px;
}

.recent-post-item:last-child {
    margin-bottom: 0;
}

.post-thumb {
    flex: 0 0 70px;
    margin-right: 15px;
}

.post-thumb img {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: 4px;
}

.post-info {
    flex: 1;
}

.post-info .post-title {
    font-size: 14px;
    margin-top: 0;
    margin-bottom: 8px;
    line-height: 1.4;
}

.post-info .post-title a {
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.post-info .post-title a:hover {
    color: var(--accent-color);
    text-decoration: none;
}

.post-info .post-date {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    color: var(--text-tertiary);
}

/* Pagination */
.blog-pagination {
    margin-top: 40px;
}

.pagination {
    border-radius: 8px;
    overflow: hidden;
}

.page-link {
    color: var(--text-primary);
    border-color: var(--border-color);
    background: var(--bg-tertiary);
    margin: 0 2px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.page-link:hover {
    background: var(--accent-color);
    color: white;
    border-color: var(--accent-color);
}

.page-item.active .page-link {
    background: var(--accent-color);
    border-color: var(--accent-color);
    color: white;
}

/* No Posts Message */
.no-posts {
    padding: 60px 30px;
    text-align: center;
}

.no-posts h3 {
    color: var(--section-title);
    margin-bottom: 20px;
}

.no-posts p {
    color: var(--text-secondary);
    font-size: 16px;
}

/* Blog Post Specific Styles */
.blog-post {
    background: var(--bg-tertiary);
    border-radius: 8px;
    box-shadow: var(--card-shadow);
    padding: 40px;
    margin-bottom: 40px;
}

.featured-image {
    margin-bottom: 30px;
    border-radius: 8px;
    overflow: hidden;
}

.post-content {
    margin-bottom: 40px;
    color: var(--text-secondary);
    line-height: 1.8;
    font-size: 18px;
}

.post-content h1,
.post-content h2,
.post-content h3,
.post-content h4,
.post-content h5,
.post-content h6 {
    color: var(--text-primary);
    margin-top: 30px;
    margin-bottom: 15px;
}

.post-content p {
    margin-bottom: 20px;
    color: var(--text-secondary);
}

.post-content ul,
.post-content ol {
    margin-bottom: 20px;
    padding-left: 30px;
}

.post-content li {
    margin-bottom: 8px;
    color: var(--text-secondary);
}

/* Post Tags */
.post-tags {
    margin: 40px 0;
    padding-top: 20px;
    border-top: 2px solid var(--border-color);
}

.post-tags h4 {
    margin-top: 0;
    margin-bottom: 15px;
    color: var(--section-title);
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag {
    background: var(--btn-primary-bg);
    color: white;
    border-radius: 20px;
    padding: 6px 16px;
    font-size: 13px;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
}

.tag:hover {
    background: var(--btn-primary-hover);
    color: white;
    text-decoration: none;
    transform: translateY(-1px);
}

/* Author Bio */
.author-bio {
    margin: 40px 0;
    padding: 30px;
    background: var(--bg-secondary);
    border-radius: 8px;
    box-shadow: var(--card-shadow);
    border: 1px solid var(--border-color);
}

/* Light mode author bio */
[data-theme="light"] .author-bio {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Dark mode author bio */
[data-theme="dark"] .author-bio {
    background: #2c3e50;
    border: 1px solid #34495e;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

@media (prefers-color-scheme: dark) {
    .author-bio {
        background: #2c3e50;
        border: 1px solid #34495e;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
    }
}

.author-bio .author-name {
    margin-top: 0;
    margin-bottom: 10px;
    color: var(--section-title);
}

.author-bio .author-description {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 0;
}

/* Social Sharing */
.social-sharing {
    margin: 40px 0;
    padding: 30px;
    background: var(--bg-secondary);
    border-radius: 8px;
    text-align: center;
    border: 1px solid var(--border-color);
    box-shadow: var(--card-shadow);
}

/* Light mode social sharing */
[data-theme="light"] .social-sharing {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Dark mode social sharing */
[data-theme="dark"] .social-sharing {
    background: #2c3e50;
    border: 1px solid #34495e;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

@media (prefers-color-scheme: dark) {
    .social-sharing {
        background: #2c3e50;
        border: 1px solid #34495e;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
    }
}

.social-sharing h4 {
    margin-top: 0;
    margin-bottom: 20px;
    color: var(--section-title);
}

.social-sharing .social-links {
    list-style: none;
    padding-left: 0;
    margin-bottom: 0;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
}

.social-sharing .social-links a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 25px;
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
}

.social-sharing .social-links a.twitter {
    background: #1da1f2;
    color: white;
}

.social-sharing .social-links a.facebook {
    background: #3b5998;
    color: white;
}

.social-sharing .social-links a.linkedin {
    background: #0077b5;
    color: white;
}

.social-sharing .social-links a.email {
    background: var(--accent-color);
    color: white;
}

.social-sharing .social-links a:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    text-decoration: none;
    color: white;
}

/* Responsive Design */
@media (max-width: 1199px) {
    .container {
        padding: 0 20px;
    }
    
    .pod-item {
        margin-bottom: 25px;
    }
}

@media (max-width: 991px) {
    .sidebar {
        margin-top: 40px;
        position: static;
    }
    
    /* Blog listing responsive */
    .pod-row {
        justify-content: center;
    }
    
    .pod-item {
        flex: 0 0 100%;
        max-width: 100%;
        margin-bottom: 30px;
    }
    

    
}

@media (max-width: 767px) {
    
    
    
    /* Banner subtitle responsive */
    .usn_cmp_banner .banner-subtitle {
        font-size: 2.5rem !important;
        margin-top: 10px;
        line-height: 1.3;
    }
    
    .post-meta-header {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }
    
    .usn_cmp_banner .current-filter {
        flex-direction: column;
        text-align: center;
        gap: 12px;
        padding: 12px 20px;
        margin-top: 20px;
    }
    
    .usn_cmp_banner .filter-info {
        font-size: 13px;
    }
    
    /* Blog post content responsive */
    .blog-post {
        padding: 20px;
        margin-bottom: 30px;
    }
    
    .featured-image {
        margin-bottom: 20px;
    }
    
    .post-content {
       
        margin-bottom: 30px;
    }
    
    
    
    /* Author bio responsive */
    .author-bio {
        text-align: center;
        padding: 20px;
    }
    
    .author-bio .row {
        flex-direction: column;
        align-items: center;
    }
    
    .author-bio .author-image {
        margin-bottom: 20px;
    }
    
    /* Social sharing responsive */
    .social-sharing {
        padding: 20px;
    }
    
    .social-sharing .social-links {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }
    
    .social-sharing .social-links a {
        min-width: 200px;
        justify-content: center;
        padding: 12px 20px;
    }
    
    /* Sidebar responsive */
    .sidebar-widget {
        margin-bottom: 25px;
    }
    
    .widget-content {
        padding: 20px;
    }
    
    .widget-title {
        font-size: 16px;
    }
    
    /* Search form responsive */
    .blog-search .form-control {
        height: 42px;
        font-size: 15px;
    }
    
    .blog-search .search-btn {
        height: 38px;
        width: 38px;
    }
    
    /* Categories responsive */
    .category-list li {
        margin-bottom: 10px;
        padding-bottom: 10px;
    }
    
    .category-list li a {
        font-size: 14px;
    }
    
    /* Recent posts responsive */
    .recent-post-item {
        margin-bottom: 15px;
    }
    
    .post-thumb {
        flex: 0 0 60px;
        margin-right: 12px;
    }
    
    .post-thumb img {
        width: 60px;
        height: 60px;
    }
    
    .post-info .post-title {
        font-size: 13px;
    }
    
    .post-info .post-date {
        font-size: 11px;
    }
    
    /* Tags responsive */
    .post-tags {
        margin: 30px 0;
    }
    
    .tags {
        gap: 6px;
    }
    
    .tag {
        padding: 4px 12px;
        font-size: 12px;
    }
    
    /* Back to blog responsive */
    .back-to-blog .btn {
        padding: 10px 20px;
        font-size: 15px;
    }
}

@media (max-width: 575px) {
    /* Extra small devices */
    .container {
        padding: 0 15px;
    }
    
    
    
    /* Banner subtitle for small screens */
    .usn_cmp_banner .banner-subtitle {
        font-size: 2rem !important;
        margin-top: 8px;
        padding: 0 10px;
    }
    
    /* Blog post adjustments */
    .blog-post {
        padding: 15px;
    }
    
    
    
    /* Sidebar adjustments */
    .widget-content {
        padding: 15px;
    }
    
    .widget-title {
        font-size: 15px;
        margin-bottom: 15px;
    }
    
    /* Form adjustments */
    .blog-search .form-control {
        height: 40px;
        padding: 10px 45px 10px 12px;
        font-size: 14px;
    }
    
    .blog-search .search-btn {
        height: 36px;
        width: 36px;
        right: 2px;
        top: 2px;
    }
    
    /* Social sharing extra small */
    .social-sharing {
        padding: 15px;
    }
    
    .social-sharing .social-links a {
        min-width: 180px;
        padding: 10px 15px;
        font-size: 14px;
    }
    
    /* Filter button responsive */
    .usn_cmp_banner .current-filter .btn {
        padding: 4px 12px;
        font-size: 12px;
    }
    
    /* Pod items extra responsive */
    .pod-item .info {
        padding: 20px;
    }
    
    .pod-item h3 {
        font-size: 18px;
        line-height: 1.2;
    }
    
    .pod-item .post-excerpt {
        font-size: 14px;
    }
    
    /* Pagination responsive */
    .blog-pagination {
        margin-top: 30px;
    }
    
    .pagination {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .page-link {
        padding: 8px 12px;
        font-size: 14px;
        margin: 2px;
    }
    
    /* Category badges responsive */
    .category-badge {
        font-size: 11px;
        padding: 3px 10px;
        margin-right: 6px;
        margin-bottom: 4px;
    }
    
    /* No posts responsive */
    .no-posts {
        padding: 40px 20px;
        text-align: center;
    }
    
    .no-posts h3 {
        font-size: 1.3rem;
        margin-bottom: 15px;
    }
    
    .no-posts p {
        font-size: 14px;
    }
}

/* Landscape orientation specific styles */
@media (max-width: 767px) and (orientation: landscape) {
    .usn_cmp_banner {
        min-height: 200px;
    }
    
}

/* High DPI screens */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .post-thumb img,
    .featured-image img {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Light/Dark Mode Support */
@media (prefers-color-scheme: dark) {
    .highlight-box {
        background: rgba(52, 73, 94, 0.3) !important;
        border-color: rgba(255, 255, 255, 0.1) !important;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3) !important;
    }
    .stat-card {
        background: rgba(52, 73, 94, 0.3) !important;
        border-color: rgba(255, 255, 255, 0.1) !important;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3) !important;
    }
    .footnote {
        background: rgba(52, 73, 94, 0.3) !important;
        border-color: rgba(255, 255, 255, 0.1) !important;
    }
}

.stat-card:hover {
    transform: translateY(-5px) !important;
    box-shadow: var(--card-hover-shadow) !important;
}

@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
        margin: 30px 0 !important;
    }
    .stat-card {
        padding: 25px !important;
    }
    .stat-number {
        font-size: 3rem !important;
    }
    .stat-title {
        font-size: 1.2rem !important;
    }
}

/* ========================================
   SOCIAL SHARE BUTTONS - MOBILE OPTIMIZATION
   ======================================== */

/* Social share buttons: horizontal row and icon-only on mobile */
.social-share-list {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    align-items: center;
    margin: 20px 0;
}

.social-share-list .social-share-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    font-size: 2rem;
    border-radius: 6px;
    transition: all 0.3s ease;
    text-decoration: none;
    border: 1px solid rgba(0, 0, 0, 0.1);
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

.social-share-list .social-share-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Mobile-specific styles */
@media (max-width: 768px) {
    .social-share-list {
        flex-direction: row;
        gap: 10px;
        justify-content: center;
    }
    
    /* Hide text on mobile, show only icons */
    .social-share-list .social-share-btn span,
    .social-share-list .social-share-btn .share-text {
        display: none !important;
    }
    
    .social-share-list .social-share-btn {
        padding: 10px;
        min-width: 44px;
        min-height: 44px;
        font-size: 2rem;
        justify-content: center;
        border-radius: 8px;
    }
}

/* Small mobile screens */
@media (max-width: 480px) {
    .social-share-list {
        gap: 8px;
    }
    
    .social-share-list .social-share-btn {
        min-width: 40px;
        min-height: 40px;
        padding: 8px;
        font-size: 1.5rem;
    }
}
