/*
Theme Name: High-Performance Simple Theme
Theme URI: http://example.com/high-performance-simple-theme/
Author: Cline
Author URI: http://example.com/
Description: A simple, high-performance WordPress theme.
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: high-performance-simple-theme
*/

/* ==========================================================================
   1. RESET & BASE STYLES
   ========================================================================== */

* {
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    background-color: #f8f9fa;
    color: #333;
    font-size: 16px;
}

a {
    color: #0073aa;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #005a87;
}

img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
}

/* ==========================================================================
   2. HEADER STYLES
   ========================================================================== */

.site-header {
    background-color: #333;
    color: #fff;
    padding: 8px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 50px;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.site-branding {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.site-branding .custom-logo-link img {
    max-height: 32px;
    width: auto;
}

.site-branding .site-title {
    margin: 0;
    padding-left: 15px;
    font-size: 1.2em;
    font-weight: 600;
}

.site-branding .site-title a {
    color: #fff;
    text-decoration: none;
}

/* Navigation */
.main-navigation {
    flex-grow: 1;
    display: flex;
    justify-content: flex-end;
}

.main-navigation ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    align-items: center;
}

.main-navigation ul li {
    margin-left: 20px;
    position: relative;
}

.main-navigation ul li a {
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    padding: 8px 12px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.main-navigation ul li a:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

/* Dropdown Menu */
.main-navigation ul li ul {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #444;
    min-width: 200px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    border-radius: 6px;
    overflow: hidden;
}

.main-navigation ul li:hover ul {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.main-navigation ul li ul li {
    margin: 0;
    width: 100%;
}

.main-navigation ul li ul li a {
    padding: 12px 20px;
    font-size: 13px;
    border-radius: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.main-navigation ul li ul li:last-child a {
    border-bottom: none;
}

.main-navigation ul li ul li a:hover {
    background-color: rgba(255, 255, 255, 0.1);
    padding-left: 25px;
}

.main-navigation ul li.menu-item-has-children > a:after {
    content: " ▼";
    font-size: 10px;
    margin-left: 5px;
    opacity: 0.7;
}

/* ==========================================================================
   3. LAYOUT STYLES
   ========================================================================== */

.content-sidebar-layout {
    display: flex;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px 20px;
    align-items: flex-start;
}

.main-content {
    flex: 2;
    min-width: 0;
}

.sidebar {
    flex: 1;
    max-width: 350px;
    min-width: 300px;
}

/* ==========================================================================
   4. POST STYLES
   ========================================================================== */

.posts-container {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.post-item {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: all 0.3s ease;
}

.post-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.post-item .post-thumbnail {
    position: relative;
    overflow: hidden;
    height: 250px;
}

.post-item .post-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    border-radius: 0;
}

.post-item .post-thumbnail:hover img {
    transform: scale(1.05);
}

.post-content-wrapper {
    padding: 25px;
}

/* Entry Header */
.entry-header {
    margin-bottom: 20px;
}

.entry-meta-top {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    font-size: 13px;
}

.post-category .category-link {
    background: linear-gradient(135deg, #0073aa, #005a87);
    color: #fff;
    padding: 6px 14px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.post-category .category-link:hover {
    background: linear-gradient(135deg, #005a87, #004466);
    transform: translateY(-1px);
}

.post-date {
    color: #666;
    display: flex;
    align-items: center;
    gap: 6px;
}

.entry-title {
    margin: 0;
    font-size: 24px;
    line-height: 1.3;
    font-weight: 700;
}

.entry-title a {
    color: #333;
    text-decoration: none;
}

.entry-title a:hover {
    color: #0073aa;
}

/* Entry Content */
.entry-content {
    margin: 20px 0;
    line-height: 1.7;
    color: #555;
    font-size: 15px;
}

.entry-content p {
    margin-bottom: 16px;
}

/* Entry Footer */
.entry-footer {
    border-top: 1px solid #f0f0f0;
    padding-top: 20px;
}

.entry-meta-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 15px;
    font-size: 13px;
}

.entry-meta-bottom span {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #666;
}

.entry-meta-bottom i {
    color: #999;
    font-size: 12px;
}

.read-more-btn {
    background: linear-gradient(135deg, #0073aa, #005a87);
    color: #fff !important;
    padding: 10px 20px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 13px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.read-more-btn:hover {
    background: linear-gradient(135deg, #005a87, #004466);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 115, 170, 0.3);
}

.post-tags {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    font-size: 12px;
}

.post-tags a {
    background-color: #f8f9fa;
    color: #666;
    padding: 4px 12px;
    border-radius: 15px;
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
}

.post-tags a:hover {
    background-color: #0073aa;
    color: #fff;
    transform: translateY(-1px);
}

/* ==========================================================================
   5. SIDEBAR STYLES
   ========================================================================== */

.sidebar-inner {
    position: sticky;
    top: 80px;
}

.widget {
    background: #fff;
    margin-bottom: 30px;
    border-radius: 12px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.widget-heading {
    background: linear-gradient(135deg, #333, #444);
    padding: 18px 25px;
}

.widget-title {
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Popular Posts Widget */
.popular-posts-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.popular-post-item {
    padding: 20px 25px;
    border-bottom: 1px solid #f0f0f0;
    position: relative;
}

.popular-post-item:last-child {
    border-bottom: none;
}

.popular-post-item:first-child .post-thumbnail {
    margin-bottom: 15px;
}

.popular-post-item .post-thumbnail img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.popular-post-item .post-thumbnail:hover img {
    transform: scale(1.05);
}

.popular-post-item .post-title {
    margin: 0 0 12px 0;
    font-size: 14px;
    line-height: 1.4;
}

.popular-post-item .post-title a {
    color: #333;
    text-decoration: none;
    font-weight: 600;
    position: relative;
    padding-left: 30px;
    transition: color 0.3s ease;
}

.popular-post-item .post-title a:hover {
    color: #0073aa;
}

.popular-post-item .post-title a[data-num]:before {
    content: attr(data-num);
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    background: linear-gradient(135deg, #0073aa, #005a87);
    color: #fff;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    font-size: 10px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
}

.popular-post-item .post-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: #666;
}

/* Recent Posts Widget */
.recent-posts-list {
    padding: 0;
    margin: 0;
}

.recent-post-item {
    display: flex;
    padding: 18px 25px;
    border-bottom: 1px solid #f0f0f0;
    align-items: flex-start;
    gap: 15px;
}

.recent-post-item:last-child {
    border-bottom: none;
}

.recent-post-item .post-thumbnail {
    flex-shrink: 0;
    width: 80px;
    height: 60px;
    overflow: hidden;
    border-radius: 6px;
}

.recent-post-item .post-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.recent-post-item .post-thumbnail:hover img {
    transform: scale(1.1);
}

.recent-post-item .post-content {
    flex: 1;
}

.recent-post-item .post-title {
    margin: 0 0 8px 0;
    font-size: 13px;
    line-height: 1.3;
}

.recent-post-item .post-title a {
    color: #333;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.recent-post-item .post-title a:hover {
    color: #0073aa;
}

.recent-post-item .post-meta {
    font-size: 11px;
    color: #666;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* ==========================================================================
   6. PAGINATION
   ========================================================================== */

.navigation.pagination {
    margin: 50px 0;
    text-align: center;
}

.nav-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.nav-links a,
.nav-links span {
    padding: 12px 16px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    text-decoration: none;
    color: #333;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-width: 44px;
    justify-content: center;
}

.nav-links a:hover {
    background-color: #0073aa;
    color: #fff;
    border-color: #0073aa;
    transform: translateY(-2px);
}

.nav-links .current {
    background-color: #0073aa;
    color: #fff;
    border-color: #0073aa;
}

/* ==========================================================================
   7. UTILITY CLASSES
   ========================================================================== */

.no-posts-found {
    text-align: center;
    padding: 80px 40px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
}

.no-posts-found h2 {
    color: #333;
    margin-bottom: 20px;
    font-size: 28px;
}

.no-posts-found p {
    color: #666;
    font-size: 16px;
    margin-bottom: 20px;
}

.page-links {
    margin: 30px 0;
    padding: 20px;
    background-color: #f8f9fa;
    border-radius: 8px;
    text-align: center;
}

.page-links a {
    display: inline-block;
    padding: 8px 16px;
    margin: 0 4px;
    background-color: #0073aa;
    color: #fff;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.page-links a:hover {
    background-color: #005a87;
    transform: translateY(-1px);
}

/* ==========================================================================
   8. RESPONSIVE DESIGN
   ========================================================================== */

@media (max-width: 768px) {
    .site-header {
        flex-wrap: wrap;
        padding: 12px 15px;
    }
    
    .site-branding {
        width: 100%;
        justify-content: center;
        margin-bottom: 15px;
    }
    
    .main-navigation {
        width: 100%;
        justify-content: center;
    }
    
    .main-navigation ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px;
    }
    
    .main-navigation ul li {
        margin: 0;
    }
    
    .main-navigation ul li ul {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background-color: rgba(255, 255, 255, 0.1);
        margin-top: 8px;
        display: none;
    }
    
    .main-navigation ul li:hover ul {
        display: block;
    }
    
    .content-sidebar-layout {
        flex-direction: column;
        gap: 30px;
        padding: 20px 15px;
    }
    
    .sidebar {
        max-width: none;
        min-width: auto;
    }
    
    .sidebar-inner {
        position: static;
    }
    
    .post-item .post-thumbnail {
        height: 200px;
    }
    
    .post-content-wrapper {
        padding: 20px;
    }
    
    .entry-title {
        font-size: 20px;
    }
    
    .entry-meta-bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .popular-post-item .post-title a {
        padding-left: 25px;
    }
    
    .popular-post-item .post-title a[data-num]:before {
        width: 18px;
        height: 18px;
    }
    
    .recent-post-item {
        padding: 15px 20px;
        gap: 12px;
    }
    
    .recent-post-item .post-thumbnail {
        width: 70px;
        height: 50px;
    }
}

@media (max-width: 480px) {
    .content-sidebar-layout {
        padding: 15px 10px;
    }
    
    .post-item .post-thumbnail {
        height: 180px;
    }
    
    .post-content-wrapper {
        padding: 15px;
    }
    
    .entry-title {
        font-size: 18px;
    }
    
    .entry-meta-top {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .nav-links a,
    .nav-links span {
        padding: 8px 12px;
        font-size: 14px;
    }
}

/* ==========================================================================
   9. FOOTER
   ========================================================================== */

.site-footer {
    background-color: #333;
    color: #fff;
    text-align: center;
    padding: 40px 20px;
    margin-top: 60px;
}

.site-footer p {
    margin: 0;
    opacity: 0.8;
}
/* ==========================================================================
   IMAGE OPTIMIZATION & HOVER EFFECTS
   ========================================================================== */

/* Căn giữa tất cả ảnh trong content */
.site-content img,
.entry-content img,
.post-content img,
article img,
.wp-post-image,
.attachment-post-thumbnail {
    display: block;
    margin: 20px auto;
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.4s ease;
}

/* Hover effect - nhảy lên và tăng shadow */
.site-content img:hover,
.entry-content img:hover,
.post-content img:hover,
article img:hover,
.wp-post-image:hover,
.attachment-post-thumbnail:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.2);
    border-radius: 12px;
}

/* Ảnh trong figure */
figure {
    margin: 30px auto;
    text-align: center;
    max-width: 100%;
}

figure img {
    margin: 0 auto 15px;
}

figcaption {
    font-size: 14px;
    color: #666;
    font-style: italic;
    margin-top: 12px;
    padding: 0 20px;
}

/* WordPress gallery */
.wp-block-gallery,
.gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
    margin: 30px auto;
    padding: 0;
}

.wp-block-gallery .wp-block-image,
.gallery-item {
    flex: 1 1 calc(33.333% - 15px);
    min-width: 200px;
    margin: 0;
}

.wp-block-gallery img,
.gallery-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    margin: 0;
}

/* WordPress image alignment */
.wp-block-image {
    text-align: center;
    margin: 25px auto;
}

.wp-block-image.alignleft {
    float: left;
    margin: 0 25px 20px 0;
    text-align: left;
}

.wp-block-image.alignright {
    float: right;
    margin: 0 0 20px 25px;
    text-align: right;
}

.wp-block-image.aligncenter {
    clear: both;
    display: block;
    margin: 25px auto;
    text-align: center;
}

/* Featured image / Post thumbnail */
.post-thumbnail {
    text-align: center;
    margin: 25px auto;
    position: relative;
    overflow: hidden;
    border-radius: 12px;
}

.post-thumbnail img {
    margin: 0 auto;
    width: 100%;
    transition: all 0.4s ease;
}

.post-thumbnail:hover img {
    transform: scale(1.05);
}

/* Ảnh trong widget sidebar */
.widget img {
    border-radius: 6px;
    transition: all 0.3s ease;
}

.widget img:hover {
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* Mobile responsive cho ảnh */
@media (max-width: 768px) {
    .site-content img,
    .entry-content img,
    .post-content img,
    article img {
        margin: 15px auto;
        border-radius: 6px;
    }
    
    .site-content img:hover,
    .entry-content img:hover,
    .post-content img:hover,
    article img:hover {
        transform: translateY(-4px) scale(1.01);
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    }
    
    .wp-block-gallery .wp-block-image,
    .gallery-item {
        flex: 1 1 calc(50% - 15px);
        min-width: 150px;
    }
    
    .wp-block-gallery img,
    .gallery-item img {
        height: 150px;
    }
    
    .wp-block-image.alignleft,
    .wp-block-image.alignright {
        float: none;
        margin: 20px auto;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .wp-block-gallery .wp-block-image,
    .gallery-item {
        flex: 1 1 100%;
        min-width: auto;
    }
    
    .wp-block-gallery img,
    .gallery-item img {
        height: 200px;
    }
    
    .site-content img:hover,
    .entry-content img:hover,
    .post-content img:hover,
    article img:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
    }
}

/* Tắt hover effect cho ảnh logo */
.site-branding img,
.custom-logo-link img {
    transition: none !important;
}

.site-branding img:hover,
.custom-logo-link img:hover {
    transform: none !important;
    box-shadow: none !important;
}
/* ==========================================================================
   MOBILE HEADER OPTIMIZATION
   ========================================================================== */

/* Mobile Menu Toggle Button */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: #fff;
    font-size: 18px;
    padding: 8px;
    cursor: pointer;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.mobile-menu-toggle:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.mobile-menu-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background-color: #fff;
    margin: 4px 0;
    transition: 0.3s;
    border-radius: 1px;
}

/* Hamburger animation */
.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-4px, 4px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(45deg) translate(-4px, -4px);
}

/* Mobile Navigation */
.main-navigation.mobile-menu-open {
    display: block;
}

.main-navigation.mobile-menu-open ul {
    flex-direction: column;
    background-color: #444;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border-radius: 0 0 8px 8px;
    padding: 10px 0;
    z-index: 1000;
}

.main-navigation.mobile-menu-open ul li {
    margin: 0;
    width: 100%;
}

.main-navigation.mobile-menu-open ul li a {
    padding: 12px 20px;
    border-radius: 0;
    display: block;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.main-navigation.mobile-menu-open ul li:last-child a {
    border-bottom: none;
}

/* Responsive Design cho Mobile */
@media (max-width: 768px) {
    .site-header {
        flex-wrap: nowrap;
        justify-content: space-between;
        padding: 10px 15px;
        position: relative;
    }
    
    .site-branding {
        width: auto;
        margin-bottom: 0;
        flex-shrink: 0;
    }
    
    .site-branding .custom-logo-link img {
        max-height: 28px;
    }
    
    .site-branding .site-title {
        font-size: 1.1em;
        padding-left: 10px;
    }
    
    .mobile-menu-toggle {
        display: block;
        order: 2;
    }
    
    .main-navigation {
        display: none;
        width: 100%;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        z-index: 999;
    }
    
    .main-navigation ul {
        flex-direction: column;
        background-color: #444;
        margin: 0;
        padding: 0;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
        border-radius: 0 0 8px 8px;
    }
    
    .main-navigation ul li {
        margin: 0;
        width: 100%;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .main-navigation ul li:last-child {
        border-bottom: none;
    }
    
    .main-navigation ul li a {
        padding: 15px 20px;
        border-radius: 0;
        font-size: 14px;
        display: block;
        transition: all 0.3s ease;
    }
    
    .main-navigation ul li a:hover {
        background-color: rgba(255, 255, 255, 0.1);
        padding-left: 25px;
    }
    
    /* Dropdown menu trên mobile */
    .main-navigation ul li ul {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background-color: #555;
        border-radius: 0;
        display: none;
    }
    
    .main-navigation ul li.menu-item-has-children > a:after {
        float: right;
        content: "+";
        font-size: 16px;
        transform: rotate(0deg);
        transition: transform 0.3s ease;
    }
    
    .main-navigation ul li.menu-item-has-children.submenu-open > a:after {
        transform: rotate(45deg);
    }
    
    .main-navigation ul li.submenu-open ul {
        display: block;
    }
    
    .main-navigation ul li ul li a {
        padding-left: 35px;
        background-color: #555;
        font-size: 13px;
    }
    
    .main-navigation ul li ul li a:hover {
        background-color: rgba(255, 255, 255, 0.1);
        padding-left: 40px;
    }
}

@media (max-width: 480px) {
    .site-header {
        padding: 8px 12px;
    }
    
    .site-branding .custom-logo-link img {
        max-height: 24px;
    }
    
    .site-branding .site-title {
        font-size: 1em;
        padding-left: 8px;
    }
    
    .mobile-menu-toggle {
        padding: 6px;
    }
    
    .mobile-menu-toggle span {
        width: 20px;
        height: 2px;
        margin: 3px 0;
    }
    
    .main-navigation ul li a {
        padding: 12px 15px;
        font-size: 13px;
    }
    
    .main-navigation ul li ul li a {
        padding-left: 30px;
        font-size: 12px;
    }
}
/* CUSTOM WIDGET STYLES - Giống Genz */
.jeg_block_heading {
    background: linear-gradient(135deg, #333, #444);
    padding: 15px 20px;
    margin-bottom: 0;
}

.jeg_block_title {
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.popularpost_list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.popularpost_item {
    padding: 15px 20px;
    border-bottom: 1px solid #f0f0f0;
    position: relative;
}

.popularpost_item:last-child {
    border-bottom: none;
}

.popularpost_item:first-child .jeg_thumb {
    margin-bottom: 15px;
}

.jeg_thumb .thumbnail-container img {
    width: 100%;
    height: auto;
    border-radius: 6px;
    transition: transform 0.3s ease;
}

.jeg_thumb:hover img {
    transform: scale(1.05);
}

.jeg_post_title {
    margin: 0 0 10px 0;
    font-size: 14px;
    line-height: 1.4;
}

.jeg_post_title a {
    color: #333;
    text-decoration: none;
    font-weight: 600;
    position: relative;
    padding-left: 25px;
    transition: color 0.3s ease;
}

.jeg_post_title a:hover {
    color: #0073aa;
}

.jeg_post_title a[data-num]:before {
    content: attr(data-num);
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    background: linear-gradient(135deg, #0073aa, #005a87);
    color: #fff;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    font-size: 10px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
}

.jeg_socialshare {
    position: relative;
}

.share_count {
    font-size: 12px;
    color: #666;
    display: flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
}

.socialshare_list {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    border-radius: 6px;
    padding: 10px;
    z-index: 100;
    min-width: 200px;
}

.jeg_socialshare:hover .socialshare_list {
    display: flex;
    gap: 10px;
}

.jeg_share_fb, .jeg_share_tw {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 12px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.jeg_share_fb {
    background-color: #1877f2;
    color: #fff;
}

.jeg_share_tw {
    background-color: #1da1f2;
    color: #fff;
}

.jeg_share_fb:hover, .jeg_share_tw:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.jeg_share_tw svg {
    width: 12px;
    height: 12px;
    fill: currentColor;
}

/* Recent News Widget */
.jeg_postblock {
    padding: 0;
}

.jeg_post.jeg_pl_sm {
    display: flex;
    padding: 15px 20px;
    border-bottom: 1px solid #f0f0f0;
    align-items: flex-start;
    gap: 12px;
}

.jeg_post.jeg_pl_sm:last-child {
    border-bottom: none;
}

.jeg_post.jeg_pl_sm .jeg_thumb {
    flex-shrink: 0;
    width: 80px;
    height: 60px;
    overflow: hidden;
    border-radius: 4px;
}

.jeg_post.jeg_pl_sm .jeg_thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.jeg_post.jeg_pl_sm .jeg_thumb:hover img {
    transform: scale(1.1);
}

.jeg_postblock_content {
    flex: 1;
}

.jeg_postblock_content .jeg_post_title {
    margin: 0 0 8px 0;
    font-size: 13px;
    line-height: 1.3;
    padding-left: 0;
}

.jeg_postblock_content .jeg_post_title a {
    padding-left: 0;
}

.jeg_postblock_content .jeg_post_title a:before {
    display: none;
}

.jeg_post_meta {
    font-size: 11px;
    color: #666;
}

.jeg_meta_date {
    display: flex;
    align-items: center;
    gap: 4px;
}

.jeg_meta_date i {
    color: #999;
}
/* FIX THUMBNAIL SIZES */
.popularpost_item:first-child .jeg_thumb {
    margin-bottom: 15px;
}

.popularpost_item:first-child .jeg_thumb img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 6px;
}

.jeg_post.jeg_pl_sm .jeg_thumb img {
    width: 80px;
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
}

/* Ensure thumbnails show properly */
.thumbnail-container img {
    display: block !important;
    max-width: 100% !important;
    height: auto !important;
}

.popularpost_item:first-child .thumbnail-container img {
    height: 180px !important;
    object-fit: cover;
}

.jeg_post.jeg_pl_sm .thumbnail-container img {
    width: 80px !important;
    height: 60px !important;
    object-fit: cover;
}
/* ==========================================================================
   FOOTER STYLES
   ========================================================================== */

.site-footer {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    color: #e0e0e0;
    padding: 60px 0 20px;
    margin-top: 80px;
    position: relative;
}

.site-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #0073aa, #005a87, #0073aa);
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3,
.footer-section h4,
.footer-section h5 {
    color: #fff;
    margin-bottom: 20px;
    font-weight: 700;
}

.footer-section h3 {
    font-size: 28px;
    background: linear-gradient(135deg, #0073aa, #00a0d2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-section h4 {
    font-size: 18px;
    position: relative;
    padding-bottom: 10px;
}

.footer-section h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: linear-gradient(90deg, #0073aa, #00a0d2);
}

/* Footer About */
.footer-description {
    line-height: 1.7;
    margin-bottom: 25px;
    color: #b0b0b0;
}

.footer-social {
    display: flex;
    gap: 15px;
}

.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    color: #e0e0e0;
    border-radius: 50%;
    transition: all 0.3s ease;
    text-decoration: none;
}

.footer-social a:hover {
    background: linear-gradient(135deg, #0073aa, #00a0d2);
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 115, 170, 0.4);
}

/* Footer Links */
.footer-links ul,
.footer-info ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li,
.footer-info li {
    margin-bottom: 12px;
}

.footer-links a,
.footer-info a {
    color: #b0b0b0;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    padding-left: 15px;
}

.footer-links a::before,
.footer-info a::before {
    content: '▶';
    position: absolute;
    left: 0;
    font-size: 8px;
    color: #0073aa;
    transition: all 0.3s ease;
}

.footer-links a:hover,
.footer-info a:hover {
    color: #00a0d2;
    padding-left: 20px;
}

.footer-links a:hover::before,
.footer-info a:hover::before {
    color: #00a0d2;
}

/* Footer Contact */
.contact-info p {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    color: #b0b0b0;
}

.contact-info i {
    color: #0073aa;
    width: 18px;
}

.contact-info a {
    color: #e0e0e0;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-info a:hover {
    color: #00a0d2;
}

/* Newsletter */
.footer-newsletter {
    margin-top: 30px;
}

.footer-newsletter h5 {
    font-size: 16px;
    margin-bottom: 15px;
}

.newsletter-form {
    display: flex;
    gap: 10px;
}

.newsletter-form input {
    flex: 1;
    padding: 12px 15px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 25px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 14px;
    transition: all 0.3s ease;
}

.newsletter-form input:focus {
    outline: none;
    border-color: #0073aa;
    background: rgba(255, 255, 255, 0.15);
}

.newsletter-form input::placeholder {
    color: #999;
}

.newsletter-form button {
    padding: 12px 18px;
    background: linear-gradient(135deg, #0073aa, #00a0d2);
    border: none;
    border-radius: 25px;
    color: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
}

.newsletter-form button:hover {
    background: linear-gradient(135deg, #005a87, #0073aa);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 115, 170, 0.4);
}

/* Footer Bottom */
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-copyright p {
    margin: 5px 0;
    color: #b0b0b0;
    font-size: 14px;
}

.footer-copyright strong {
    color: #fff;
}

.footer-copyright a {
    color: #0073aa;
    text-decoration: none;
}

.footer-copyright a:hover {
    color: #00a0d2;
}

.footer-tech {
    font-size: 13px !important;
}

.footer-badges {
    display: flex;
    gap: 20px;
}

.badge-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #b0b0b0;
    font-size: 12px;
}

.badge-item i {
    color: #0073aa;
    font-size: 14px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .footer-badges {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .newsletter-form {
        flex-direction: column;
    }
    
    .newsletter-form input,
    .newsletter-form button {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .site-footer {
        padding: 40px 0 20px;
    }
    
    .footer-container {
        padding: 0 15px;
    }
    
    .footer-social {
        justify-content: center;
    }
    
    .footer-section h3 {
        font-size: 24px;
        text-align: center;
    }
}
