/*
Theme Name: EBC
Theme URI: https://example.com/
Author: Amit Pandey
Author URI: https://example.com/
Description: A fast, clean, and minimal WordPress theme designed for blogs and content-driven websites. Built from scratch using PHP and WordPress best practices.
Version: 1.0
License: GNU General Public License v2 or later
Text Domain: ebc
*/

/* CSS Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Base Styles */
html {
    font-size: 16px;
    line-height: 1.6;
    overflow-x: hidden;
    overflow-y: auto;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    color: #333;
    background-color: #fff;
    line-height: 1.6;
    overflow-x: hidden;
    overflow-y: auto;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: serif, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 1rem;
    color: #222;
}

h1 {
    font-size: 2rem;
}

h2 {
    font-size: 1.75rem;
}

h3 {
    font-size: 1.5rem;
}

h4 {
    font-size: 1.25rem;
}

h5 {
    font-size: 1.1rem;
}

h6 {
    font-size: 1rem;
}

p {
    margin-bottom: 1rem;
}

a {
    color: #e51425;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #8a0505;
}

/* Layout */
.container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* EBC Webstore Header Styles */

/* Top Black Bar */
.top-black-bar {
    background: #000;
    height: 8px;
    position: relative;
}

.top-black-bar .container {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    height: 100%;
}

.white-dot {
    width: 6px;
    height: 6px;
    background: #fff;
    border-radius: 50%;
    margin-right: 20px;
}

/* Informational/Promotional Strip */
.info-strip {
    background: #ffffff;
    padding: 5px 0;
    border-bottom: solid 2px #ededed;
}

.header_a {
    font-family: 'Droid Sans', Arial, Helvetica, sans-serif;
    font-size: 12px;
    color: #656565;
    text-align: left;
    text-decoration: none;
    display: contents;
}

.info-strip .container {
    display: flex;
    justify-content: space-around;
    align-items: center;
}

.info-strip-left {
    display: flex;
    align-items: center;
}

.product-count {
    display: flex;
    align-items: center;
    gap: 15px;
}

.book-icons {
    display: flex;
    gap: 2px;
}

.book-bar {
    width: 3px;
    height: 20px;
    border-radius: 1px;
}

.book-bar.grey {
    background: #6c757d;
}

.book-bar.orange {
    background: #fd7e14;
}

.book-bar.yellow {
    background: #ffc107;
}

.book-bar.red {
    background: #dc3545;
}

.product-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.product-number {
    color: #dc3545;
    font-weight: bold;
    font-size: 18px;
    line-height: 1;
}

.product-label {
    color: #6c757d;
    font-size: 12px;
    line-height: 1;
}

.info-strip-right {
    display: flex;
    align-items: center;
}

.user-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.action-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #495057;
    font-size: 14px;
}

.bookshelf-icon {
    width: 16px;
    height: 16px;
    background: #495057;
    border-radius: 2px;
    position: relative;
}

.bookshelf-icon::before,
.bookshelf-icon::after {
    content: '';
    position: absolute;
    left: 2px;
    width: 12px;
    height: 2px;
    background: #fff;
}

.bookshelf-icon::before {
    top: 4px;
}

.bookshelf-icon::after {
    top: 10px;
}

.cart-icon {
    width: 16px;
    height: 16px;
    background: #495057;
    border-radius: 2px;
    position: relative;
}

.cart-icon::before {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 12px;
    height: 8px;
    border: 2px solid #fff;
    border-radius: 2px 2px 0 0;
}

.cart-icon::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 4px;
    width: 8px;
    height: 2px;
    background: #fff;
    border-radius: 1px;
}

.separator {
    width: 2px;
    height: 30px;
    background: #dee2e6;
}

/* Main Header */
.site-header {
    background: #fff;
    padding: 0px 0;
    border-bottom: 1px solid #e9ecef;
}

.header-main {
    display: flex;
    justify-content: space-around;
    align-items: center;
}

.header-left {
    align-items: center;
}

.header-right {
    align-items: center;
    gap: 20px;
    background-color: #ededed;
    padding: 25px;
    width: 65%;
}

/* EBC Logo */
.ebc-logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-stripes {
    display: flex;
    gap: 2px;
}

.logo-stripes .stripe {
    width: 10px;
    height: 30px;
    border-radius: 2px 2px 0 0;
}

.logo-stripes .stripe.orange {
    background: #fd7e14;
}

.logo-stripes .stripe.red {
    background: #dc3545;
}

.logo-stripes .stripe.yellow {
    background: #ffc107;
}

.logo-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.site-title {
    color: #dc3545;
    font-size: 24px;
    font-weight: bold;
    margin: 0;
    line-height: 1;
}

.site-subtitle {
    color: #000;
    font-size: 14px;
    margin: 0;
    line-height: 1;
}

/* Book Locator */
.book-locator {
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative;
}

.locator-btn {
    background: #dc3545;
    color: #fff;
    border: none;
    padding: 5px 25px;
    font-size: 12px;
    cursor: pointer;
    border-top: 2px solid #000000;
}

.search_text_box {
    padding: 5px;
    padding-left: 10px;
    font-family: 'Droid Sans', Arial, Helvetica, sans-serif;
    font-size: 18px;
    height: 40px;
    border: solid 1px #CCCCCC;
    color: #9f9e8c;
}

.search_text_box {
    width: 85%;
}

.help-icon {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: bold;
}

/* Header Search */
.header-search {
    width: 100%;
}

.header-search .search-field {
    flex: 1;
    padding: 12px 16px;
    border: none;
    outline: none;
    font-size: 14px;
}

.header-search .search-field::placeholder {
    color: #6c757d;
}

.header-search .search-submit {
    background: #000;
    color: #fff;
    border: none;
    padding: 12px 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.large-screen {
    display: block;
}

.ebc-logo img {
    margin-left: 100px;
}

.small-screen {
    display: none;
}

.search-form {
    display: flex;
    align-items: center;
    gap: 10px;
}

.search-icon {
    width: 30px;
    height: 30px;
    border-radius: 10px;
    position: relative;
}

.search-icon::before {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 8px;
    height: 8px;
    border: 2px solid #000;
    border-radius: 50%;
}

.search-icon::after {
    content: '';
    position: absolute;
    top: 8px;
    left: 8px;
    width: 4px;
    height: 2px;
    background: #000;
    transform: rotate(45deg);
}

/* Main Navigation */
.main-nav {
    background: #1c1c1a;
    padding: 0px 0;
    border-bottom: 1px solid #e9ecef;
}

.main-nav .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Hamburger Menu Toggle */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    transition: opacity 0.3s ease;
    flex-shrink: 0;
}

.menu-toggle:hover {
    opacity: 0.8;
}

.menu-toggle .hamburger {
    display: block;
    width: 25px;
    height: 3px;
    background: #fff;
    position: relative;
    transition: all 0.3s ease;
}

.menu-toggle .hamburger::before,
.menu-toggle .hamburger::after {
    content: '';
    position: absolute;
    width: 25px;
    height: 3px;
    background: #fff;
    transition: all 0.3s ease;
}

.menu-toggle .hamburger::before {
    top: -8px;
}

.menu-toggle .hamburger::after {
    bottom: -8px;
}

/* Hamburger Animation */
.menu-toggle .hamburger.active {
    background: transparent;
}

.menu-toggle .hamburger.active::before {
    transform: rotate(45deg);
    top: 0;
}

.menu-toggle .hamburger.active::after {
    transform: rotate(-45deg);
    bottom: 0;
}

.nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 0;
    flex: 0 0 auto;
}

.nav-item {
    margin: 0;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0px 20px 0px 0px;
    color: #495057;
    text-decoration: none;
    font-size: 20px;
    font-weight: 500;
    border-right: 1px solid #e9ecef;
    transition: background-color 0.3s ease;
}

.nav-item-menu {
    position: relative;
    width: 100%;
    width: -webkit-fill-available;
}

.nav-item-menu a {
    font-family: "Droid Sans", Arial, Helvetica, sans-serif;
    font-size: 12px;
    display: inline-block;
    position: relative;
    color: #3D3D3D;
    line-height: 40px;
    transition: background-color 0.2s;
    outline: none;
    background: #ffffff;
    width: inherit;
    text-align-last: center;
}

.nav-item-menu a:hover {
    background: #dc3545;
}

/* Site Navigation */
.main-navigation {
    flex: 1;
    display: flex;
    justify-content: flex-end;
}

.main-navigation .nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 0;
    width: 100%;
}

.nav-item-menu li {
    position: relative;
    flex: 1;
    text-align: center;
    border-right: 1px solid #EDEDED;
}

.nav-item-menu li a {
    font-family: "Droid Sans", Arial, Helvetica, sans-serif;
    font-size: 12px;
    display: block;
    position: relative;
    color: #3D3D3D;
    line-height: 40px;
    transition: background-color 0.2s;
    outline: none;
    background: #ffffff;
    width: 100%;
    text-align: center;
    text-decoration: none;
}

.nav-item-menu li a:hover {
    background: #dc3545;
    color: #ffffff;
}

.shop-item .nav-link {
    color: #fff;
}

.shop-stripes {
    display: flex;
    gap: 1px;
}

.shop-stripes .stripe {
    width: 3px;
    height: 16px;
}

.shop-stripes .stripe.orange {
    background: #fd7e14;
}

.shop-stripes .stripe.red {
    background: #dc3545;
}

.dropdown-arrow {
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 4px solid currentColor;
    margin-left: 4px;
}

/* Sub Navigation */
.sub-nav {
    background-color: #ededed;
    padding: 0px 0;
    margin: 0;
}

.sub-nav .container {
    display: flex;
    justify-content: center;
    align-items: center;
}

.sub-nav-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

.sub-link {
    color: #495057;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.sub-link:hover {
    color: #dc3545;
}

.separator-dot {
    width: 4px;
    height: 4px;
    background: #000;
    border-radius: 50%;
}

.sub-nav-right {
    display: flex;
    align-items: center;
    gap: 20px;
    background-color: #3B3B3B;
    padding: 0px 10px;
}

.service-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #495057;
    font-size: 14px;
}

.sub-nav-left ul li {
    display: inline;
    font-family: 'Droid Sans', verdana;
    text-align: left;
    font-size: 12px;
    font-weight: 500;
    color: #3b3b3b;
}

.sub-nav-left ul li:before {
    content: ".";
    font-size: 24px;
    font-weight: bold;
}

.sub-nav-left ul li:first-child:before {
    content: "";
}

.sub-nav-left ul li a {
    padding-left: 26px;
    padding-right: 13px;
    margin-left: 8px;
    text-decoration: none;
    color: #3b3b3b;
}

.service-icon {
    width: 16px;
    height: 16px;
    border-radius: 2px;
}

.reader-icon {
    background: linear-gradient(45deg, #dc3545, #ffc107);
    position: relative;
}

.reader-icon::before {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 12px;
    height: 8px;
    border: 2px solid #fff;
    border-radius: 1px;
}

.explorer-icon {
    background: linear-gradient(45deg, #dc3545, #ffc107);
    position: relative;
}

.explorer-icon::before {
    content: '';
    position: absolute;
    top: 4px;
    left: 4px;
    width: 8px;
    height: 8px;
    border: 2px solid #fff;
    border-radius: 50%;
}

.learning-icon {
    background: linear-gradient(45deg, #dc3545, #ffc107);
    position: relative;
}

.learning-icon::before {
    content: '';
    position: absolute;
    top: 4px;
    left: 6px;
    width: 0;
    height: 0;
    border-left: 4px solid #fff;
    border-top: 3px solid transparent;
    border-bottom: 3px solid transparent;
}

/* Responsive Design */
@media (max-width: 768px) {
    .site-header .container {
        padding: 0%;
    }

    .info-strip {
        display: none;
    }

    .header-main {
        display: block;
    }

    .large-screen {
        display: none;
    }

    .small-screen {
        display: flex;
        padding: 10px;
    }

    .ebc-logo img {
        margin-left: 0px;
    }

    .logo-image {
        width: 90%;
        vertical-align: middle;
    }

    .menu-container-small {
        font: 26px "Droid Sans", Arial, Helvetica, sans-serif;
        color: #131313;
        text-transform: uppercase;
        font-weight: bold;
        background-color: #FFF;
        display: flex;
        align-items: center;
        gap: 10px;
    }

    .logo-container-small {
        text-align: end;
    }

    .info-strip .container {
        flex-direction: column;
        gap: 10px;
    }

    .header-main {
        flex-direction: column;
        gap: 15px;
    }

    .header-search {
        width: 100%;
    }

    /* Main Navigation - Mobile */
    .main-nav .container {
        flex-direction: row;
        gap: 0;
        padding: 0 15px;
        position: relative;
        justify-content: space-between;
        align-items: center;
    }

    /* Show hamburger menu */
    .menu-toggle {
        display: block;
        order: 2;
        background: none;
        border: none;
        padding: 5px;
        cursor: pointer;
        flex-shrink: 0;
    }

    .menu-text {
        font: 26px "Droid Sans", Arial, Helvetica, sans-serif;
        color: #131313;
        text-transform: uppercase;
        font-weight: bold;
    }

    /* Position shop-item on the left */
    .nav-menu {
        order: 1;
        flex: 0 0 auto;
    }

    /* Hide main navigation by default on mobile, keep shop-item visible */
    .main-navigation {
        display: none;
    }

    .nav-menu {
        flex-direction: column;
        width: 100%;
    }

    .nav-link {
        border-right: none;
        padding: 15px 20px;
        font-size: 16px;
        color: #fff;
    }

    .main-navigation .nav-menu {
        flex-direction: column;
        width: 100%;
    }

    .nav-item-menu li {
        flex: none;
        width: 100%;
        border-right: none;
        border-bottom: 1px solid #EDEDED;
    }

    .nav-item-menu li a {
        padding: 12px 15px;
        font-size: 14px;
        line-height: 1.4;
        color: #000000;
    }

    .header-right {
        width: 100%;
    }

    .nav-item-menu li a:hover {
        background: #dc3545;
        color: #ffffff;
    }

    .sub-nav .container {
        flex-direction: column;
        gap: 10px;
    }

    .sub-nav-left,
    .sub-nav-right {
        justify-content: center;
    }
}

/* Small Mobile Responsive */
@media (max-width: 480px) {
    .sub-nav-left ul li {
        margin: 0px;
    }

    .sub-nav-left ul li a {
        padding-left: 0px;
        padding-right: 0px;
        margin-left: 2px;
    }

    .main-nav .container {
        padding: 0 10px;
    }

    .menu-toggle {
        padding: 0.75rem 0.5rem;
    }

    .nav-menu,
    .main-navigation {
        max-height: 70vh;
        overflow-y: auto;
    }

    .nav-link {
        padding: 0px 15px;
        font-size: 14px;
    }

    .nav-item-menu li a {
        padding: 10px 15px;
        font-size: 13px;
    }
}

/* Mobile Sidebar Navigation Styles */
.mobile-sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.mobile-sidebar-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-sidebar {
    position: fixed;
    top: 0;
    left: -280px;
    width: 280px;
    height: 100%;
    background: #ffffff;
    z-index: 9999;
    transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.mobile-sidebar.active {
    left: 0;
}

.mobile-sidebar-header {
    display: flex;
    justify-content: right;
    padding: 20px;
    border-bottom: 1px solid #e0e0e0;
    background: #f8f9fa;
}

.mobile-sidebar-logo {
    flex: 1;
}

.mobile-sidebar-logo img {
    max-height: 40px;
    width: auto;
}

.mobile-sidebar-close {
    background: none;
    border: none;
    font-size: 24px;
    color: #666;
    cursor: pointer;
    padding: 5px;
    line-height: 1;
    transition: color 0.3s ease;
}

.mobile-sidebar-close:hover {
    color: #dc3545;
}

.close-icon {
    display: block;
    font-weight: bold;
}

.mobile-sidebar-navigation {
    padding: 20px 0;
    flex: 1;
    overflow-y: auto;
}

.mobile-nav-menu {
    list-style: none;
    margin: 0;
    padding: 0;
}

.mobile-nav-menu li {
    border-bottom: 1px solid #f0f0f0;
}

.mobile-nav-menu li:last-child {
    border-bottom: none;
}

.mobile-nav-menu li a {
    display: block;
    padding: 15px 20px;
    color: #333;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s ease;
    transform: translateX(0);
}

.mobile-nav-menu li a:hover {
    background: #dc3545;
    color: #ffffff;
    padding-left: 25px;
    transform: translateX(5px);
}

.mobile-nav-menu .sub-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    background: #f8f9fa;
}

.mobile-nav-menu .sub-menu li {
    border-bottom: 1px solid #e0e0e0;
}

.mobile-nav-menu .sub-menu li:last-child {
    border-bottom: none;
}

.mobile-nav-menu .sub-menu li a {
    padding: 12px 20px 12px 40px;
    font-size: 14px;
    color: #666;
}

.mobile-nav-menu .sub-menu li a:hover {
    background: #dc3545;
    color: #ffffff;
}

/* Hide mobile sidebar on desktop */
@media (min-width: 1025px) {

    .mobile-sidebar,
    .mobile-sidebar-overlay {
        display: none;
    }
}

/* Prevent body scroll when sidebar is open */
body.sidebar-open {
    overflow: hidden;
    position: fixed;
    width: 100%;
}

/* Site Branding - New EBC Design */
.site-branding {
    display: flex;
    align-items: center;
}

/* Site title and description styles are now handled in the new EBC header design above */

/* Navigation styles are now handled in the new EBC header design above */

.archive-description {
    margin-bottom: 2rem;
}

/* Main Content */
.main-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 2.0rem 0;
}

.content-area {
    min-height: 400px;
}

/* Posts */
.post {
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #e0e0e0;
}

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

.post-title {
    margin-bottom: 0.5rem;
}

.post-title a {
    color: #222;
}

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

.post-meta {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.post-meta span {
    margin-right: 1rem;
}

.post-meta a {
    color: #666;
}

.post-meta a:hover {
    color: #e51425;
}

.post-excerpt {
    margin-bottom: 1rem;
    color: #555;
}

.read-more {
    display: inline-block;
    background: #e51425;
    color: #fff;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    font-size: 0.9rem;
    transition: background-color 0.3s ease;
}

.read-more:hover {
    background: #8a0505;
    color: #fff;
}

/* Featured Images */
.post-thumbnail {
    margin-bottom: 1rem;
}

.post-thumbnail img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

/* Widget Images - Rounded Corners */
.widget img,
.sidebar .widget img,
.widget-area img,
.popular-post-item img,
.popular-page-item img,
.video-post-thumbnail img,
.video-thumbnail-wrapper img,
.trending-post-item img,
.banner-carousel img,
.newsletter-widget img,
.authors-corner img,
.submit-article-widget img,
.top-reads-widget img {
    border-radius: 8px;
    overflow: hidden;
}

/* Specific widget image containers */
.widget .post-thumbnail,
.widget .page-thumbnail,
.widget .video-thumbnail,
.widget .banner-image,
.widget .newsletter-image,
.widget .author-image,
.widget .submit-image {
    border-radius: 8px;
    overflow: hidden;
}

/* Video widget specific images */
.video-post-thumbnail,
.video-thumbnail-wrapper,
.video-carousel-item img,
.video-hero-featured img {
    border-radius: 8px;
    overflow: hidden;
}

/* Trending posts widget images */
.trending-post-item .post-thumbnail,
.trending-post-item .page-thumbnail {
    border-radius: 8px;
    overflow: hidden;
}

/* Banner carousel widget images */
.banner-carousel .carousel-item img,
.banner-carousel .banner-image {
    border-radius: 8px;
    overflow: hidden;
}

/* Newsletter widget images */
.newsletter-widget .newsletter-image {
    border-radius: 8px;
    overflow: hidden;
}

/* Authors corner widget images */
.authors-corner .author-avatar,
.authors-corner .author-image {
    border-radius: 8px;
    overflow: hidden;
}

/* Submit article widget images */
.submit-article-widget .submit-image {
    border-radius: 8px;
    overflow: hidden;
}

/* Sidebar */
.sidebar {
    background: transparent;
    padding: 0;
    border: none;
}

/* Sidebar widgets only have borders */
.sidebar .widget {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: transparent;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
}

.sidebar .widget:last-child {
    margin-bottom: 0;
}

/* Sticky Widget Styling */
.sidebar .sticky-widget {
    transition: all 0.3s ease;
}

.sidebar .sticky-widget[style*="position: sticky"] {
    border-radius: 8px;
    margin-bottom: 1rem;
    background: #fff;
    z-index: 99;
    padding: 1rem;
    border: 1px solid #e0e0e0;
}

/* Ensure sticky behavior works properly */
.sidebar {
    position: relative;
}

/* Responsive sticky widget */
@media (max-width: 768px) {
    .sidebar .sticky-widget {
        position: static !important;
        top: auto !important;
        max-height: none !important;
        overflow-y: visible !important;
    }
}

.sidebar .widget-title {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e51425;
    color: #222;
}

/* Remove dots from sidebar widget lists */
.sidebar .widget ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.sidebar .widget li {
    margin-bottom: 0.5rem;
    padding: 0;
}

.sidebar .widget li:last-child {
    margin-bottom: 0;
}

/* Sidebar widget list link colors */
.sidebar .widget a {
    color: #555;
    text-decoration: none;
    transition: color 0.3s ease;
}

.sidebar .widget a:hover {
    color: #e51425;
}

/* All other widgets (footer, header, etc.) have no borders */
.widget {
    margin-bottom: 1rem;
    padding: 0;
    background: transparent;
    border: none;
}

.widget:last-child {
    margin-bottom: 0;
}

.search-field {
    flex: 1;
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 0.9rem;
}

.search-submit {
    background: #e51425;
    color: #fff;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.search-submit:hover {
    background: #8a0505;
}

/* Comments */
.comments-area {
    margin-top: 4rem;
    padding-top: 3rem;
    border-top: 2px solid #e51425;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Comments Header */
.comments-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #e51425;
}

.comments-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: #222;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.comments-title i {
    color: #e51425;
    font-size: 1.5rem;
}

.comments-title span {
    color: #e51425;
    font-weight: 600;
}

.comments-count {
    display: flex;
    align-items: center;
}

.count-badge {
    background: linear-gradient(135deg, #e51425 0%, #ff4757 100%);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 4px 15px rgba(229, 20, 37, 0.3);
    transition: all 0.3s ease;
}

.count-badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(229, 20, 37, 0.4);
}

.count-badge i {
    font-size: 1rem;
}

/* Comments Navigation */
.comments-navigation {
    margin: 2rem 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.comments-navigation .nav-previous,
.comments-navigation .nav-next {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    border: 2px solid #e51425;
    transition: all 0.3s ease;
}

.comments-navigation .nav-previous:hover,
.comments-navigation .nav-next:hover {
    background: linear-gradient(135deg, #e51425 0%, #ff4757 100%);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(229, 20, 37, 0.3);
}

.comments-navigation a {
    text-decoration: none;
    color: inherit;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Comment List */
.comment-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.comment-item {
    margin-bottom: 2rem;
    animation: fadeInUp 0.6s ease-out;
}

.comment-body {
    background: white;
    border-radius: 15px;
    padding: 1.5rem;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    border-left: 4px solid #e51425;
    transition: all 0.3s ease;
    display: flex;
    gap: 1rem;
}

.comment-body:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    border-left-width: 6px;
}

/* Comment Avatar */
.comment-avatar {
    flex-shrink: 0;
}

.comment-avatar img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 3px solid #e51425;
    box-shadow: 0 4px 15px rgba(229, 20, 37, 0.2);
    transition: all 0.3s ease;
}

.comment-body:hover .comment-avatar img {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(229, 20, 37, 0.3);
}

/* Comment Content */
.comment-content {
    flex: 1;
}

.comment-meta {
    margin-bottom: 1rem;
}

.comment-author {
    margin-bottom: 0.5rem;
}

.author-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: #222;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.author-name a {
    color: #e51425;
    text-decoration: none;
    transition: color 0.3s ease;
}

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

.author-badge {
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
    color: #333;
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.7rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    box-shadow: 0 2px 10px rgba(255, 215, 0, 0.3);
}

.author-badge i {
    color: #ff6b35;
}

.comment-meta-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.comment-date {
    color: #666;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.comment-date i {
    color: #e51425;
}

.comment-awaiting-moderation {
    background: linear-gradient(135deg, #ffa726 0%, #ffb74d 100%);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.comment-awaiting-moderation i {
    animation: pulse 2s infinite;
}

/* Comment Text */
.comment-text {
    color: #333;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.comment-text p {
    margin: 0 0 1rem 0;
}

.comment-text p:last-child {
    margin-bottom: 0;
}

/* Comment Actions */
.comment-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
}

.reply-link,
.edit-link {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    color: #666;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    transition: all 0.3s ease;
    border: 1px solid #dee2e6;
}

.reply-link:hover,
.edit-link:hover {
    background: linear-gradient(135deg, #e51425 0%, #ff4757 100%);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(229, 20, 37, 0.3);
}

/* Comment Form */
.comment-form-enhanced {
    margin-top: 2rem;
    padding: 2rem;
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    border: 2px solid #e51425;
}

.comment-form-enhanced h3 {
    color: #222;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.comment-form-enhanced h3 i {
    color: #e51425;
}

.comment-notes {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    color: #1565c0;
    padding: 1rem;
    border-radius: 10px;
    margin-bottom: 1.5rem;
    border-left: 4px solid #2196f3;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.comment-notes i {
    color: #2196f3;
    font-size: 1.1rem;
}

.comment-form-comment {
    margin-bottom: 1.5rem;
}

.comment-form-comment label {
    display: block;
    font-weight: 600;
    color: #222;
    margin-bottom: 0.5rem;
}

.comment-form-comment .required {
    color: #e51425;
}

.comment-form-comment textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-family: inherit;
    font-size: 1rem;
    line-height: 1.6;
    resize: vertical;
    min-height: 120px;
    transition: all 0.3s ease;
    background: #f8f9fa;
}

.comment-form-comment textarea:focus {
    outline: none;
    border-color: #e51425;
    background: white;
    box-shadow: 0 0 0 3px rgba(229, 20, 37, 0.1);
}

.comment-form-comment textarea::placeholder {
    color: #999;
    font-style: italic;
}

/* Comment Form Fields */
.comment-form-author,
.comment-form-email,
.comment-form-url {
    margin-bottom: 1rem;
}

.comment-form-author label,
.comment-form-email label,
.comment-form-url label {
    display: block;
    font-weight: 600;
    color: #222;
    margin-bottom: 0.5rem;
}

.comment-form-author input,
.comment-form-email input,
.comment-form-url input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #f8f9fa;
}

.comment-form-author input:focus,
.comment-form-email input:focus,
.comment-form-url input:focus {
    outline: none;
    border-color: #e51425;
    background: white;
    box-shadow: 0 0 0 3px rgba(229, 20, 37, 0.1);
}

/* Submit Button */
.submit-comment-btn {
    background: linear-gradient(135deg, #e51425 0%, #ff4757 100%);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 4px 15px rgba(229, 20, 37, 0.3);
}

.submit-comment-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(229, 20, 37, 0.4);
    background: linear-gradient(135deg, #ff4757 0%, #e51425 100%);
}

.submit-comment-btn:active {
    transform: translateY(0);
}

/* Comments Closed */
.comments-closed {
    text-align: center;
    padding: 2rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 15px;
    border: 2px dashed #e51425;
}

.closed-message {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.closed-message i {
    font-size: 2rem;
    color: #e51425;
}

.closed-message p {
    font-size: 1.1rem;
    color: #666;
    margin: 0;
    font-weight: 600;
}

/* Nested Comments */
.comment-list .children {
    list-style: none;
    margin: 1rem 0 0 3rem;
    padding: 0;
}

.comment-list .children .comment-body {
    border-left-color: #ff4757;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
}

.comment-list .children .children .comment-body {
    border-left-color: #ff6b35;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .comments-area {
        padding: 1rem;
        margin-top: 2rem;
    }

    .comments-header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .comments-title {
        font-size: 1.5rem;
    }

    .comment-body {
        flex-direction: column;
        text-align: center;
    }

    .comment-avatar {
        align-self: center;
    }

    .comment-meta-info {
        justify-content: center;
    }

    .comment-actions {
        justify-content: center;
    }

    .comment-list .children {
        margin-left: 1rem;
    }

    .comment-form-enhanced {
        padding: 1rem;
    }

    .submit-comment-btn {
        width: 100%;
        justify-content: center;
    }
}

/* Banner Carousel Widget */
.banner-carousel-widget {
    margin-bottom: 3rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.banner-carousel-header {
    text-align: center;
    margin-bottom: 2rem;
    padding: 0 1rem;
}

.banner-carousel-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #222;
    margin: 0 0 0.5rem 0;
    background: linear-gradient(135deg, #e51425 0%, #ff4757 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.banner-carousel-subtitle {
    font-size: 1.1rem;
    color: #666;
    margin: 0;
    font-weight: 400;
}

.banner-carousel-container {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.banner-carousel-track {
    position: relative;
    width: 100%;
    height: 100%;
}

.banner-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
}

.banner-slide.active {
    opacity: 1;
}

.banner-slide-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.banner-slide-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1.5s ease-in-out;
}

.banner-slide.active .banner-slide-image img {
    transform: scale(1.05);
}

.banner-slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0.7) 100%);
    z-index: 2;
}

.banner-slide-content {
    position: relative;
    z-index: 3;
    color: white;
    text-align: center;
    max-width: 800px;
    padding: 2rem;
    animation: fadeInUp 1.5s ease-out;
}

.banner-slide-category {
    margin-bottom: 1rem;
}

.category-badge {
    background: linear-gradient(135deg, #e51425 0%, #ff4757 100%);
    color: white;
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(229, 20, 37, 0.3);
}

.banner-slide-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0 0 1rem 0;
    line-height: 1.2;
}

.banner-slide-title a {
    color: white;
    text-decoration: none;
    transition: color 0.3s ease;
}

.banner-slide-title a:hover {
    color: #ff4757;
}

.banner-slide-excerpt {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

.banner-slide-meta {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.banner-slide-date,
.banner-slide-author {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    opacity: 0.8;
}

.banner-slide-date i,
.banner-slide-author i {
    color: #ff4757;
}

.banner-slide-read-more {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, #e51425 0%, #ff4757 100%);
    color: white;
    padding: 1rem 2rem;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(229, 20, 37, 0.3);
}

.banner-slide-read-more:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(229, 20, 37, 0.4);
    color: white;
    background: linear-gradient(135deg, #ff4757 0%, #e51425 100%);
}

/* Carousel Navigation */
.banner-carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.banner-carousel-arrow:hover {
    background: white;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.banner-carousel-arrow i {
    color: #e51425;
    font-size: 1.2rem;
    font-weight: 600;
}

.banner-carousel-prev {
    left: 20px;
}

.banner-carousel-next {
    right: 20px;
}

.banner-carousel-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.banner-carousel-dot {
    width: 12px;
    height: 12px;
    background: rgba(255, 255, 255, 0.5);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.banner-carousel-dot:hover {
    background: rgba(255, 255, 255, 0.8);
    transform: scale(1.2);
}

.banner-carousel-dot.active {
    background: #e51425;
    transform: scale(1.2);
    box-shadow: 0 2px 8px rgba(229, 20, 37, 0.4);
}

/* Banner Carousel Responsive */
@media (max-width: 1024px) {
    .banner-carousel-title {
        font-size: 2rem;
    }

    .banner-slide-title {
        font-size: 2rem;
    }

    .banner-slide-content {
        padding: 1.5rem;
    }

    .banner-carousel-arrow {
        width: 45px;
        height: 45px;
    }
}

@media (max-width: 768px) {
    .banner-carousel-widget {
        margin-bottom: 2rem;
    }

    .banner-carousel-header {
        margin-bottom: 1.5rem;
    }

    .banner-carousel-title {
        font-size: 1.8rem;
    }

    .banner-carousel-subtitle {
        font-size: 1rem;
    }

    .banner-slide-title {
        font-size: 1.5rem;
    }

    .banner-slide-excerpt {
        font-size: 1rem;
    }

    .banner-slide-content {
        padding: 1rem;
    }

    .banner-slide-meta {
        gap: 1rem;
        margin-bottom: 1.5rem;
    }

    .banner-carousel-arrow {
        width: 40px;
        height: 40px;
    }

    .banner-carousel-prev {
        left: 10px;
    }

    .banner-carousel-next {
        right: 10px;
    }

    .banner-carousel-dots {
        bottom: 20px;
    }
}

@media (max-width: 480px) {
    .banner-carousel-title {
        font-size: 1.5rem;
    }

    .banner-slide-title {
        font-size: 1.3rem;
    }

    .banner-slide-excerpt {
        font-size: 0.9rem;
    }

    .banner-slide-read-more {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }

    .banner-carousel-arrow {
        width: 35px;
        height: 35px;
    }

    .banner-carousel-arrow i {
        font-size: 1rem;
    }
}

/* EBC Footer - Perfect Design */
.ebc-footer {
    margin-top: 3rem;
    font-family: Arial, sans-serif;
}

/* Top Bar */
.footer-top {
    background: #333;
    padding: 0px 0;
    border-bottom: 1px solid #444;
}

.top-bar {
    display: flex;
    align-items: center;
    /* justify-content: space-between; 
    gap: 20px;*/
}

/* Logo Section */
.logo-section {
    min-width: 120px;
}

.logo-container {
    display: flex;
    align-items: center;
    margin: 20px;
}

.logo-bars {
    display: flex;
    gap: 3px;
    margin-right: 8px;
}

.bar {
    width: 3px;
    height: 20px;
    background: #ffd700;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.ebc {
    color: #e53528;
    font-size: 22px;
    font-weight: bold;
    line-height: 1;
}

.webstore {
    color: #fff;
    font-size: 12px;
    margin-top: -2px;
}

/* Subscriptions */
.subscriptions {
    flex: 1;
    text-align: center;
    max-width: 300px;
    margin-left: 150px;
}

.sub-btn {
    background: #b81119;
    color: #fff;
    border: none;
    font-size: 26px;
    padding: 50px 0px;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0px;
}

.service-box {
    background: #555;
    padding: 26px 60px;
    text-align: center;
    text-align: -webkit-center;
}

.service-grid .sb1 {
    background: #867062;
}

.service-grid .sb2 {
    background: #8b8f90;
}

.service-grid .sb3 {
    background: #74736e;
}

.service-grid .sb4 {
    background: #756e75;
}


.service-box span {
    color: #fff;
    font-size: 16px;
    font-weight: 500;
    display: block;
    line-height: 1.2;
    width: max-content;
}

/* Main Footer */
.footer-main {
    background: #f4f4f4;
    padding: 35px 0;
    border-top: 1px solid #ddd;
}

.sub-btn,
.footer-main h3,
.footer-main h4 {
    font-family: 'Droid Sans', Arial, Helvetica, sans-serif;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 25px;
}

.footer-col {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.footer-col h4 {
    color: #e53528;
    font-size: 19px;
    font-weight: 400;
    margin: 0 0 12px 0;
    border-bottom: 1px solid #ddd;
    padding-bottom: 5px;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.footer-links a {
    color: #555;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
    line-height: 2.3;
}

.contact-info p {
    color: #555;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
    margin-bottom: 0px;
}

.footer-links a:hover {
    color: #e53528;
}

.footer-section {
    margin-top: 15px;
}

/* Support Content */
.support-content {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.support-header {
    margin-bottom: 5px;
}

.support-header strong {
    color: #333;
    font-size: 14px;
    display: block;
    margin-bottom: 5px;
}

.support-header p {
    color: #666;
    font-size: 14px;
    margin: 0;
    line-height: 1.4;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 6px;
    border-bottom: dotted 1px #666666;
    border-top: dotted 1px #666666;
    padding: 10px 0px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 6px;
}

.contact-item i {
    color: #888;
    font-size: 14px;
    width: 12px;
    margin-top: 5px;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.contact-details div {
    color: #333;
    font-size: 11px;
    font-weight: 500;
}

.hours {
    color: #666;
    font-size: 14px;
    font-style: italic;
    line-height: 1.3;
    margin: 0;
}

.contact-icon {
    margin-top: 10px;
}

.contact-item div {
    color: #333;
    font-size: 14px;
}

/* Social Links */
.social-links {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.social-links a {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #555;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
    line-height: 2.3;
}

.social-links a:hover {
    color: #e53528;
}

.social-links i {
    color: #888;
    font-size: 12px;
    width: 14px;
    text-align: center;
}

/* Copyright Bar */
.footer-bottom {
    background: #b81119;
    color: #fff;
    border-top: 1px solid #b81119;
}

.copyright-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}

.copyright-logo {
    color: #fff;
    font-size: 16px;
    font-weight: bold;
    letter-spacing: 0.5px;
    min-width: 60px;
    margin-top: 4px;
}

.copyright-tagline {
    flex: 1;
    text-align: center;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.3px;
}

.copyright-text {
    font-size: 12px;
    text-align: right;
    color: #f0f0f0;
    min-width: 200px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .footer-top .container {
        padding: 0px 0;
    }

    .logo-container {
        display: inline-flex;
    }

    .top-bar {
        flex-direction: column;
        text-align: center;
        display: list-item;
    }

    .subscriptions {
        max-width: 100%;
        margin-left: 0px;
    }

    .service-box {
        padding: 25px 0px;
    }

    .sub-btn {
        padding: 10px 0;
    }

    .services {
        max-width: 100%;
    }

    .service-grid {
        grid-template-columns: repeat(2, 1fr);
        max-width: 100%;
    }

    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .copyright-bar {
        flex-direction: column;
        text-align: center;
        gap: 8px;
    }

    .copyright-text {
        text-align: center;
        min-width: auto;
    }

    .footer-links a {
        line-height: 1.3;
    }
}

@media (max-width: 480px) {
    .service-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-main {
        padding: 25px 0;
    }

    .footer-content {
        gap: 15px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .footer-links a {
        line-height: 1.3;
    }
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 2rem;
}

.pagination a,
.pagination span {
    padding: 0.5rem 1rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    color: #333;
    transition: all 0.3s ease;
}

.pagination a:hover,
.pagination .current {
    background: #e51425;
    color: #fff;
    border-color: #e51425;
}

/* Custom Post Navigation with Images */
.post-navigation {
    margin: 3rem 0;
    padding: 2rem 0;
    border-top: 1px solid #e0e0e0;
    border-bottom: 1px solid #e0e0e0;
}

.post-navigation .nav-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    max-width: 100%;
}

.post-navigation .nav-previous,
.post-navigation .nav-next {
    position: relative;
}

.post-navigation .nav-previous a,
.post-navigation .nav-next a {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease;
    border: 1px solid #e0e0e0;
}

.post-navigation .nav-previous a:hover,
.post-navigation .nav-next a:hover {
    background: #fff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.post-navigation .nav-thumbnail {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    border-radius: 6px;
    overflow: hidden;
    background: #f0f0f0;
}

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

.post-navigation a:hover .nav-thumbnail img {
    transform: scale(1.05);
}

.post-navigation .no-thumbnail {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f0f0f0;
    color: #999;
    font-size: 1.5rem;
}

.post-navigation .nav-content {
    flex: 1;
    min-width: 0;
}

.post-navigation .nav-subtitle {
    display: block;
    font-size: 0.8rem;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.25rem;
}

.post-navigation .nav-title {
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.3;
    margin: 0 0 0.5rem 0;
    color: #333;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.post-navigation .nav-date {
    font-size: 0.8rem;
    color: #888;
}

.post-navigation .nav-previous:hover::before,
.post-navigation .nav-next:hover::after {
    opacity: 1;
}

/* Responsive design for post navigation */
@media (max-width: 768px) {
    .post-navigation .nav-links {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .post-navigation .nav-previous a,
    .post-navigation .nav-next a {
        padding: 0.75rem;
        gap: 0.75rem;
    }

    .post-navigation .nav-thumbnail {
        width: 60px;
        height: 60px;
    }

    .post-navigation .nav-title {
        font-size: 0.9rem;
    }

    .post-navigation .nav-subtitle {
        font-size: 0.7rem;
    }

    .post-navigation .nav-date {
        font-size: 0.7rem;
    }
}

/* Related Posts Section - SIMPLE AND CLEAN */
.related-posts {
    margin: 1rem 0;
    padding: 1rem 0;
    border-radius: 12px;
    clear: both;
    display: block;
    width: 100%;
}

.related-posts-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.related-posts-title {
    font-size: 2rem !important;
    font-weight: 700 !important;
    color: #333 !important;
    margin: 0 0 0.5rem 0 !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    text-align: center !important;
    background: transparent !important;
    position: relative !important;
    z-index: 10 !important;
}

.related-posts-subtitle {
    font-size: 1rem !important;
    color: #666 !important;
    margin: 0 !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    text-align: center !important;
    background: transparent !important;
    position: relative !important;
    z-index: 10 !important;
}

.related-posts-header {
    text-align: center !important;
    margin-bottom: 2.5rem !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    background: transparent !important;
    position: relative !important;
    z-index: 10 !important;
}

/* Related posts grid styles moved to separate file */

/* Related post card styles moved to separate file */

.related-post-card * {
    color: inherit !important;
    text-decoration: none !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.related-post-card .related-post-content * {
    visibility: visible !important;
    opacity: 1 !important;
    display: block !important;
}

.related-post-card .related-post-meta * {
    visibility: visible !important;
    opacity: 1 !important;
    display: inline !important;
}

.related-post-card .related-post-title {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    color: #333 !important;
}

.related-post-card .related-post-date,
.related-post-card .related-post-category {
    display: inline-flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    color: #666 !important;
}

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

.related-post-link {
    display: block !important;
    text-decoration: none !important;
    color: inherit !important;
    height: 100%;
    visibility: visible !important;
    position: relative !important;
    z-index: 1 !important;
}

.related-post-link:hover {
    color: inherit !important;
    text-decoration: none !important;
}

.related-post-link h3,
.related-post-link .related-post-title {
    color: #333 !important;
    text-decoration: none !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.related-post-link .related-post-meta,
.related-post-link .related-post-excerpt {
    color: #666 !important;
    text-decoration: none !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Force visibility for all related post elements */
.related-posts .related-post-meta,
.related-posts .related-post-date,
.related-posts .related-post-category {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    color: #666 !important;
    font-size: 0.8rem !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Comprehensive text visibility override */
.related-posts,
.related-posts *,
.related-posts h1,
.related-posts h2,
.related-posts h3,
.related-posts h4,
.related-posts h5,
.related-posts h6,
.related-posts p,
.related-posts span,
.related-posts div,
.related-posts a {
    color: inherit !important;
    visibility: visible !important;
    opacity: 1 !important;
    display: block !important;
    text-decoration: none !important;
}

.related-posts h2.related-posts-title {
    color: #333 !important;
    font-size: 2rem !important;
    font-weight: 700 !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    text-align: center !important;
}

.related-posts p.related-posts-subtitle {
    color: #666 !important;
    font-size: 1rem !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    text-align: center !important;
}

.related-posts h3.related-post-title {
    color: #333 !important;
    font-size: 1.1rem !important;
    font-weight: 600 !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.related-posts .related-post-excerpt {
    color: #555 !important;
    font-size: 0.9rem !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.related-posts .related-post-meta span,
.related-posts .related-post-date span,
.related-posts .related-post-category span {
    display: inline !important;
    visibility: visible !important;
    opacity: 1 !important;
    color: #666 !important;
}

.related-posts .related-post-meta i,
.related-posts .related-post-date i,
.related-posts .related-post-category i {
    display: inline-block !important;
    visibility: visible !important;
    opacity: 1 !important;
    color: #666 !important;
    font-size: 0.7rem !important;
    margin-right: 0.25rem !important;
}

/* Ultimate visibility override */
.related-posts {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: relative !important;
}

.related-posts * {
    visibility: visible !important;
    opacity: 1 !important;
}

.related-posts h2,
.related-posts h3,
.related-posts p,
.related-posts span,
.related-posts div {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    color: inherit !important;
}

/* Specific overrides for common hiding techniques */
.related-posts *[style*="display: none"],
.related-posts *[style*="visibility: hidden"],
.related-posts *[style*="opacity: 0"] {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Force grid layout to work */
.related-posts-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    grid-template-rows: repeat(2, auto) !important;
    gap: 2rem !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    box-sizing: border-box !important;
    list-style: none !important;
    align-items: start !important;
}

/* Force grid layout and override any conflicting styles */
.related-posts .related-posts-grid {
    display: grid !important;
    gap: 2rem !important;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
}

.related-posts-grid * {
    box-sizing: border-box !important;
}

.related-post-card {
    display: block !important;
    width: 100% !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    box-sizing: border-box !important;
}

/* Override any flexbox or other layout */
.related-posts-grid[style*="display: flex"],
.related-posts-grid[style*="display: block"] {
    display: grid !important;
}

.related-post-card[style*="display: flex"],
.related-post-card[style*="display: inline"] {
    display: block !important;
}

.related-post-image {
    position: relative;
    height: 145px;
    overflow: hidden;
    background: #f0f0f0;
    display: block !important;
    visibility: visible !important;
}

.related-post-image img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
    transition: transform 0.3s ease;
    display: block !important;
    visibility: visible !important;
}

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

.related-post-image .no-thumbnail {
    width: 100%;
    height: 100%;
    display: flex !important;
    align-items: center;
    justify-content: center;
    background: #f0f0f0;
    color: #999;
    font-size: 2rem;
    visibility: visible !important;
}

.related-post-content {
    padding: 1.5rem;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    color: #333 !important;
    background: #fff !important;
    position: relative !important;
    z-index: 1 !important;
}

.related-post-title {
    font-size: 1.1rem !important;
    font-weight: 600 !important;
    line-height: 1.4 !important;
    margin: 0 0 1rem 0 !important;
    color: #333 !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    text-decoration: none !important;
    background: transparent !important;
    position: relative !important;
    z-index: 2 !important;
}

.related-post-title:hover {
    color: #e51425 !important;
}

.related-post-meta {
    display: flex !important;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.8rem !important;
    color: #666 !important;
    visibility: visible !important;
    opacity: 1 !important;
    background: transparent !important;
    position: relative !important;
    z-index: 2 !important;
}

.related-post-date,
.related-post-category {
    display: flex !important;
    align-items: center;
    gap: 0.25rem;
    visibility: visible !important;
    opacity: 1 !important;
    color: #666 !important;
    background: transparent !important;
    position: relative !important;
    z-index: 3 !important;
    font-size: 0.8rem !important;
    margin: 0 !important;
    padding: 0 !important;
}

.related-post-date span,
.related-post-category span {
    color: #666 !important;
    visibility: visible !important;
    opacity: 1 !important;
    display: inline !important;
}

.related-post-date a,
.related-post-category a {
    color: #666 !important;
    text-decoration: none !important;
    visibility: visible !important;
    opacity: 1 !important;
    display: inline !important;
}

.related-post-date a:hover,
.related-post-category a:hover {
    color: #e51425 !important;
    text-decoration: none !important;
}

.related-post-date i,
.related-post-category i {
    font-size: 0.7rem;
    visibility: visible !important;
    opacity: 1 !important;
    color: #666 !important;
    display: inline-block !important;
    margin-right: 0.25rem !important;
}

.related-post-meta * {
    visibility: visible !important;
    opacity: 1 !important;
    display: inline !important;
}

.related-post-meta .fas,
.related-post-meta .fa {
    visibility: visible !important;
    opacity: 1 !important;
    display: inline-block !important;
    color: #666 !important;
}

.related-post-excerpt {
    font-size: 0.9rem !important;
    line-height: 1.5 !important;
    color: #555 !important;
    margin: 0 !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    background: transparent !important;
    position: relative !important;
    z-index: 2 !important;
}

/* Responsive design for related posts */
@media (max-width: 1200px) {
    .related-posts-grid {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 1.5rem !important;
    }

    .related-post-card {
        width: 100% !important;
    }

    .related-post-image {
        height: 160px;
    }

    .related-post-content {
        padding: 1.25rem;
    }
}

@media (max-width: 1024px) {
    .related-posts-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 1.5rem !important;
    }

    .related-post-card {
        width: 100% !important;
    }

    .related-post-image {
        height: 150px;
    }

    .related-post-content {
        padding: 1.25rem;
    }

    .related-post-title {
        font-size: 1rem;
    }
}

@media (max-width: 768px) {
    .related-posts {
        margin: 1rem 0;
        padding: 1rem 0;
        background: transparent;
    }

    .related-posts-title {
        font-size: 1.25rem;
        margin-bottom: 0.75rem;
        text-align: center;
    }

    .related-posts-subtitle {
        font-size: 0.85rem;
        text-align: center;
    }

    .related-posts-grid {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
        margin: 0;
        padding: 0;
    }

    .related-post-card {
        width: 100% !important;
        margin: 0 !important;
        border-radius: 8px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    }

    .related-post-image {
        height: 140px;
        border-radius: 8px 8px 0 0;
    }

    .related-post-content {
        padding: 0.75rem;
    }

    .related-post-title {
        font-size: 0.95rem;
        margin-bottom: 0.5rem;
        line-height: 1.3;
    }

    .related-post-meta {
        gap: 0.5rem;
        font-size: 0.7rem;
        margin-bottom: 0.5rem;
        flex-wrap: wrap;
    }

    .related-post-excerpt {
        font-size: 0.8rem;
        line-height: 1.4;
        margin: 0;
    }
}

@media (max-width: 600px) {
    .related-posts {
        margin: 0.75rem 0;
        padding: 0.75rem 0;
        background: transparent;
    }

    .related-posts-title {
        font-size: 1.1rem;
        margin-bottom: 0.5rem;
        text-align: center;
    }

    .related-posts-subtitle {
        font-size: 0.8rem;
        text-align: center;
    }

    .related-posts-grid {
        grid-template-columns: 1fr !important;
        gap: 0.75rem !important;
        margin: 0;
        padding: 0;
    }

    .related-post-card {
        width: 100% !important;
        margin: 0 !important;
        border-radius: 6px;
        box-shadow: 0 1px 6px rgba(0, 0, 0, 0.1);
    }

    .related-post-image {
        height: 120px;
        border-radius: 6px 6px 0 0;
    }

    .related-post-content {
        padding: 0.6rem;
    }

    .related-post-title {
        font-size: 0.85rem;
        margin-bottom: 0.4rem;
        line-height: 1.3;
    }

    .related-post-meta {
        gap: 0.4rem;
        font-size: 0.65rem;
        margin-bottom: 0.4rem;
        flex-wrap: wrap;
    }

    .related-post-excerpt {
        font-size: 0.75rem;
        line-height: 1.3;
        margin: 0;
    }
}

@media (max-width: 480px) {
    .related-posts {
        margin: 0.5rem 0;
        padding: 0.5rem 0;
        background: transparent;
    }

    .related-posts-title {
        font-size: 1rem;
        margin-bottom: 0.5rem;
        text-align: center;
    }

    .related-posts-subtitle {
        font-size: 0.75rem;
        text-align: center;
    }

    .related-posts-grid {
        grid-template-columns: 1fr !important;
        gap: 0.5rem !important;
        margin: 0;
        padding: 0;
    }

    .related-post-card {
        width: 100% !important;
        margin: 0 !important;
        border-radius: 4px;
        box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
    }

    .related-post-image {
        height: 100px;
        border-radius: 4px 4px 0 0;
    }

    .related-post-content {
        padding: 0.5rem;
    }

    .related-post-title {
        font-size: 0.8rem;
        margin-bottom: 0.3rem;
        line-height: 1.2;
    }

    .related-post-meta {
        gap: 0.3rem;
        font-size: 0.6rem;
        margin-bottom: 0.3rem;
        flex-wrap: wrap;
    }

    .related-post-excerpt {
        font-size: 0.7rem;
        line-height: 1.2;
        margin: 0;
    }
}

/* Additional Related Posts Styles from related-posts.css */
.related-post-card {
    background: #fff !important;
    border-radius: 8px !important;
    overflow: hidden !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1) !important;
    transition: all 0.3s ease !important;
    width: auto;
    margin: 0 !important;
    padding: 0 !important;
    display: block !important;
}

.related-post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

.related-post-image {
    width: 100%;
    height: 150px;
    overflow: hidden;
    position: relative;
}

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

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

.related-post-image .no-thumbnail {
    width: 100%;
    height: 100%;
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 2rem;
}

.related-post-content {
    padding: 1.5rem;
    display: block;
    width: 100%;
}

.related-post-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 0.75rem;
    line-height: 1.4;
    display: block;
    visibility: visible;
    opacity: 1;
}

.related-post-title:hover {
    color: #007cba;
}

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

.related-post-date,
.related-post-category {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    color: #666;
    text-decoration: none;
    visibility: visible;
    opacity: 1;
}

.related-post-date span,
.related-post-category span {
    color: #666;
    text-decoration: none;
    visibility: visible;
    opacity: 1;
}

.related-post-date a,
.related-post-category a {
    color: #666;
    text-decoration: none;
    visibility: visible;
    opacity: 1;
}

.related-post-date a:hover,
.related-post-category a:hover {
    color: #007cba;
    text-decoration: none;
}

.related-post-date i,
.related-post-category i {
    font-size: 0.75rem;
    color: #999;
    visibility: visible;
    opacity: 1;
}

.related-post-meta * {
    visibility: visible;
    opacity: 1;
}

.related-post-meta .fas,
.related-post-meta .fa {
    font-size: 0.75rem;
    color: #999;
    visibility: visible;
    opacity: 1;
}

.related-post-excerpt {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.5;
    margin: 0;
    display: block;
    visibility: visible;
    opacity: 1;
}

/* 404 Page */
.error-404 {
    text-align: center;
    padding: 3rem 0;
}

.error-404 h1 {
    font-size: 4rem;
    color: #e51425;
    margin-bottom: 1rem;
}

/* Mobile Header Styles */
@media (max-width: 767px) {
    /* EBC Webstore header responsive styles are handled in the main header section above */

    /* Hamburger Menu Toggle */
    .menu-toggle {
        display: block;
        background: none;
        border: none;
        color: #000000;
        font-size: 1.5rem;
        cursor: pointer;
        padding: 0.5rem;
        transition: opacity 0.3s ease;
    }

    .menu-toggle:hover {
        opacity: 0.8;
    }

    .menu-toggle .hamburger {
        display: block;
        width: 25px;
        height: 3px;
        background: #000000;
        position: relative;
        transition: all 0.3s ease;
    }

    .menu-toggle .hamburger::before,
    .menu-toggle .hamburger::after {
        content: '';
        position: absolute;
        width: 25px;
        height: 3px;
        background: #000000;
        transition: all 0.3s ease;
    }

    .menu-toggle .hamburger::before {
        top: -8px;
    }

    .menu-toggle .hamburger::after {
        bottom: -8px;
    }

    /* Hamburger Animation */
    .menu-toggle .hamburger.active {
        background: transparent;
    }

    .menu-toggle .hamburger.active::before {
        transform: rotate(45deg);
        top: 0;
    }

    .menu-toggle .hamburger.active::after {
        transform: rotate(-45deg);
        bottom: 0;
    }

    /* EBC Webstore header responsive styles are handled in the main header section above */

    /* EBC Webstore navigation responsive styles are handled in the main header section above */
}

/* Tablet Header Styles */
@media (min-width: 768px) and (max-width: 1024px) {

    /* EBC Webstore header responsive styles are handled in the main header section above */

    /* Hamburger Menu Toggle */
    .menu-toggle {
        display: block;
        background: none;
        border: none;
        color: #fff;
        font-size: 1.5rem;
        cursor: pointer;
        padding: 0.5rem;
        transition: opacity 0.3s ease;
        flex-shrink: 0;
    }

    .menu-toggle:hover {
        opacity: 0.8;
    }

    .menu-toggle .hamburger {
        display: block;
        width: 25px;
        height: 3px;
        background: #fff;
        position: relative;
        transition: all 0.3s ease;
    }

    .menu-toggle .hamburger::before,
    .menu-toggle .hamburger::after {
        content: '';
        position: absolute;
        width: 25px;
        height: 3px;
        background: #fff;
        transition: all 0.3s ease;
    }

    .menu-toggle .hamburger::before {
        top: -8px;
    }

    .menu-toggle .hamburger::after {
        bottom: -8px;
    }

    /* Hamburger Animation */
    .menu-toggle .hamburger.active {
        background: transparent;
    }

    .menu-toggle .hamburger.active::before {
        transform: rotate(45deg);
        top: 0;
    }

    .menu-toggle .hamburger.active::after {
        transform: rotate(-45deg);
        bottom: 0;
    }

    /* EBC Webstore header responsive styles are handled in the main header section above */

    /* EBC Webstore navigation responsive styles are handled in the main header section above */
}

/* Desktop Header Styles */
@media (min-width: 1025px) {
    .main-content {
        grid-template-columns: 1fr 300px;
    }

    /* Sidebar positioning */
    .sidebar-left .main-content {
        grid-template-columns: 300px 1fr;
    }

    .sidebar-left .content-area {
        order: 2;
    }

    .sidebar-left .sidebar {
        order: 1;
    }

    .no-sidebar .main-content {
        grid-template-columns: 1fr;
    }

    /* EBC Webstore header responsive styles are handled in the main header section above */

    /* EBC Webstore navigation responsive styles are handled in the main header section above */

    /* Hide hamburger menu on desktop */
    .menu-toggle {
        display: none !important;
    }

    .footer-content {
        grid-template-columns: repeat(4, 1fr);
        text-align: left;
        padding: 0 40px;
    }

    .bottom-footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }

    .bottom-footer-left {
        justify-self: start;
    }

    .bottom-footer-right {
        justify-self: end;
    }
}

@media (min-width: 1200px) {
    .container {
        padding: 0 2rem;
    }

    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 2rem;
    }

    h3 {
        font-size: 1.75rem;
    }
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.text-right {
    text-align: right;
}

.mb-1 {
    margin-bottom: 1rem;
}

.mb-2 {
    margin-bottom: 2rem;
}

.mt-1 {
    margin-top: 1rem;
}

.mt-2 {
    margin-top: 2rem;
}

/* Trending Posts Section Styles */
.trending-widget-area {
    margin-bottom: .5rem;
}

.trending-posts-section {
    background: transparent;
    padding-bottom: 2rem;
    margin-bottom: 0;
}

.trending-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2.5rem;
    padding: 0;
}

.trending-title-section {
    flex: 1;
}

.trending-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: #1a1a1a;
    margin: 0 0 0.5rem 0;
    line-height: 1.1;
    letter-spacing: -0.5px;
}

.trending-subtitle {
    font-size: 1.2rem;
    color: #666;
    margin: 0;
    font-weight: 400;
    line-height: 1.4;
}

.view-all-trending {
    display: inline-block;
    color: #1a1a1a;
    background: #fff;
    padding: 0.5rem 1.0rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    border: 2px solid #b6b2b2;
    white-space: nowrap;
    letter-spacing: 0.5px;
}

.view-all-trending:hover {
    background: transparent;
    color: #1a1a1a;
    text-decoration: none;
}

.trending-posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 0;
}

.trending-post-card {
    background: #fff;
    border-radius: 0;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: none;
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.trending-post-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.trending-post-image {
    position: relative;
    height: 220px;
    overflow: hidden;
    flex-shrink: 0;
}

.trending-post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.trending-post-card:hover .trending-post-image img {
    transform: scale(1.08);
}

.no-thumbnail-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6c757d;
    font-size: 0.9rem;
}

.trending-post-category {
    position: absolute;
    bottom: 15px;
    left: 15px;
    color: rgba(0, 0, 0, 0.85);
    background: #fff;
    padding: 0.4rem 0.8rem;
    border-radius: 25px;
    font-size: 0.65rem;
    font-weight: 700;
    backdrop-filter: blur(10px);
}

.editors-pick-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #dc3545;
    color: #fff;
    padding: 0.3rem 0.6rem;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    box-shadow: 0 2px 8px rgba(220, 53, 69, 0.3);
}

.trending-post-content {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.trending-post-title {
    font-size: 1.0rem;
    font-weight: 700;
    line-height: 1.4;
    margin: 0 0 1rem 0;
    color: #000000;
    flex: 1;
}

.trending-post-title a {
    color: #1a1a1a;
    text-decoration: none;
    transition: color 0.3s ease;
}

.trending-post-title a:hover {
    color: #dc3545;
    text-decoration: none;
}

.trending-post-excerpt {
    color: #666;
    font-size: 0.85rem;
    line-height: 1.6;
    margin: 0;
    margin-bottom: .5rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Responsive Design for Trending Posts */
@media (max-width: 767px) {
    .trending-posts-section {
        padding: 0;
        margin-bottom: 2rem;
    }

    .trending-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.5rem;
        margin-bottom: 2rem;
    }

    .trending-title-section {
        width: 100%;
    }

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

    .trending-subtitle {
        font-size: 1rem;
    }

    .view-all-trending {
        align-self: flex-start;
        padding: 0.7rem 1.2rem;
        font-size: 0.9rem;
    }

    .trending-posts-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .trending-post-image {
        height: 200px;
    }

    .trending-post-content {
        padding: 1.2rem;
    }

    .trending-post-title {
        font-size: 1.2rem;
    }
}

@media (min-width: 768px) and (max-width: 1024px) {
    .trending-posts-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .trending-title {
        font-size: 2.2rem;
    }

    .trending-post-image {
        height: 200px;
    }
}

@media (min-width: 1025px) {
    .trending-posts-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 2rem;
    }

    .trending-post-image {
        height: 220px;
    }
}

/* Animation for trending posts */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.trending-post-card {
    animation: fadeInUp 0.6s ease forwards;
}

.trending-post-card:nth-child(1) {
    animation-delay: 0.1s;
}

.trending-post-card:nth-child(2) {
    animation-delay: 0.2s;
}

.trending-post-card:nth-child(3) {
    animation-delay: 0.3s;
}

.trending-post-card:nth-child(4) {
    animation-delay: 0.4s;
}

.trending-post-card:nth-child(5) {
    animation-delay: 0.5s;
}

.trending-post-card:nth-child(6) {
    animation-delay: 0.6s;
}

/* ========================================
   LIST LAYOUT STYLES
   ======================================== */
.trending-list-layout .trending-posts-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.trending-list-layout .trending-post-item {
    display: flex;
    background: #fff;
    border-radius: 0;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: none;
    position: relative;
    height: 200px;
}

.trending-list-layout .trending-post-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.trending-list-layout .trending-post-image {
    position: relative;
    width: 300px;
    height: 200px;
    overflow: hidden;
    flex-shrink: 0;
}

.trending-list-layout .trending-post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.trending-list-layout .trending-post-item:hover .trending-post-image img {
    transform: scale(1.05);
}

.trending-list-layout .trending-post-content {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.trending-list-layout .trending-post-title {
    font-size: 1.4rem;
    font-weight: 700;
    line-height: 1.3;
    margin: 0 0 1rem 0;
    color: #1a1a1a;
}

.trending-list-layout .trending-post-excerpt {
    color: #666;
    font-size: 1rem;
    line-height: 1.6;
    margin: 0 0 1rem 0;
    flex: 1;
    display: block;
    min-height: 3rem;
    overflow: hidden;
    word-wrap: break-word;
}

.trending-list-layout .trending-post-meta {
    display: flex;
    gap: 1rem;
    color: #888;
    font-size: 0.9rem;
}

.trending-list-layout .trending-post-meta span {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

/* Small Read More Button for Trending List */
.trending-list-layout .small-read-more {
    display: inline-block;
    padding: 0.4rem 1rem;
    font-size: 0.85rem;
    font-weight: 500;
    color: #fff;
    background: #007cba;
    border-radius: 4px;
    text-decoration: none;
    transition: all 0.3s ease;
    margin-top: 0.5rem;
    align-self: flex-start;
}

.trending-list-layout .small-read-more:hover {
    background: #005a87;
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 124, 186, 0.3);
}

/* Meta Description Styles for Trending List */
.trending-list-layout .trending-post-meta-description {
    margin: 0.75rem 0;
    padding: 0.75rem;
    background: #f8f9fa;
    border-left: 3px solid #007cba;
    border-radius: 4px;
    font-size: 0.9rem;
    line-height: 1.4;
}

.trending-list-layout .meta-description-label {
    display: block;
    font-weight: 600;
    color: #007cba;
    margin-bottom: 0.25rem;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.trending-list-layout .meta-description-label i {
    margin-right: 0.5rem;
}

.trending-list-layout .meta-description-text {
    display: block;
    color: #555;
    font-style: italic;
    margin-top: 0.25rem;
}

/* ========================================
   MASONRY LAYOUT STYLES
   ======================================== */
.trending-masonry-layout .trending-posts-masonry {
    columns: 3;
    column-gap: 2rem;
    margin-top: 0;
}

.trending-masonry-layout .trending-post-masonry-item {
    break-inside: avoid;
    margin-bottom: 2rem;
    background: #fff;
    border-radius: 0;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
}

.trending-masonry-layout .trending-post-masonry-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.trending-masonry-layout .trending-post-image {
    position: relative;
    width: 100%;
    height: auto;
    overflow: hidden;
}

.trending-masonry-layout .trending-post-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.4s ease;
}

.trending-masonry-layout .trending-post-masonry-item:hover .trending-post-image img {
    transform: scale(1.05);
}

.trending-masonry-layout .trending-post-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: #fff;
    padding: 2rem 1.5rem 1.5rem;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.trending-masonry-layout .trending-post-masonry-item:hover .trending-post-overlay {
    transform: translateY(0);
}

.trending-masonry-layout .trending-post-overlay-content .trending-post-title {
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1.3;
    margin: 0 0 0.5rem 0;
}

.trending-masonry-layout .trending-post-overlay-content .trending-post-title a {
    color: #fff;
}

.trending-masonry-layout .trending-post-overlay-content .trending-post-excerpt {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 0;
}

/* ========================================
   CAROUSEL LAYOUT STYLES
   ======================================== */
.trending-carousel-layout .trending-carousel-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.trending-carousel-layout .carousel-prev,
.trending-carousel-layout .carousel-next {
    background: #1a1a1a;
    color: #fff;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.trending-carousel-layout .carousel-prev:hover,
.trending-carousel-layout .carousel-next:hover {
    background: #dc3545;
    transform: scale(1.1);
}

.trending-carousel-layout .trending-posts-carousel {
    position: relative;
    overflow: hidden;
    margin-top: 2rem;
    width: 100%;
}

.trending-carousel-layout .carousel-track {
    display: flex;
    transition: transform 0.5s ease;
    gap: 0.5rem;
    width: 100%;
}

.trending-carousel-layout .trending-post-carousel-item {
    flex: 0 0 calc(33.333% - 1rem);
    min-width: calc(33.333% - 1rem);
    max-width: calc(33.333% - 1rem);
    width: calc(33.333% - 1rem);
    background: #fff;
    border-radius: 0;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: none;
    position: relative;
    height: auto;
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
}

.trending-carousel-layout .trending-post-carousel-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.trending-carousel-layout .trending-post-image {
    position: relative;
    height: 180px;
    overflow: hidden;
    flex-shrink: 0;
}

.trending-carousel-layout .trending-post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.trending-carousel-layout .trending-post-carousel-item:hover .trending-post-image img {
    transform: scale(1.08);
}

.trending-carousel-layout .trending-post-content {
    padding: 1.25rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.trending-carousel-layout .trending-post-title {
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1.4;
    margin: 0 0 1rem 0;
    color: #1a1a1a;
    flex: 1;
}

.trending-carousel-layout .trending-post-excerpt {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0 0 1rem 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.trending-carousel-layout .trending-post-meta {
    color: #888;
    font-size: 0.9rem;
}

.trending-carousel-layout .carousel-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 2rem;
}

.trending-carousel-layout .carousel-dot {
    display: none;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ddd;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.trending-carousel-layout .carousel-dot.active,
.trending-carousel-layout .carousel-dot:hover {
    background: #dc3545;
    transform: scale(1.2);
}

/* ========================================
   HERO LAYOUT STYLES
   ======================================== */
.trending-hero-layout .trending-posts-hero {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
    margin-top: 2rem;
}

.trending-hero-layout .trending-post-hero-item {
    background: #fff;
    border-radius: 0;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.trending-hero-layout .trending-post-hero-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.trending-hero-layout .trending-post-hero-image {
    position: relative;
    height: 300px;
    overflow: hidden;
    flex-shrink: 0;
}

.trending-hero-layout .trending-post-hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.trending-hero-layout .trending-post-hero-item:hover .trending-post-hero-image img {
    transform: scale(1.08);
}

.trending-hero-layout .trending-post-hero-content {
    padding: 2rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.trending-hero-layout .trending-post-hero-title {
    font-size: 1.8rem;
    font-weight: 700;
    line-height: 1.3;
    margin: 0 0 1rem 0;
    color: #1a1a1a;
}

.trending-hero-layout .trending-post-hero-title a {
    color: inherit;
    text-decoration: none;
}

.trending-hero-layout .trending-post-hero-title a:hover {
    color: #dc3545;
}

.trending-hero-layout .trending-post-hero-excerpt {
    color: #666;
    font-size: 1rem;
    line-height: 1.6;
    margin: 0 0 1.5rem 0;
    flex: 1;
}

.trending-hero-layout .trending-post-hero-meta {
    color: #888;
    font-size: 0.9rem;
    display: flex;
    gap: 1rem;
}

.trending-hero-layout .trending-post-hero-meta span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Hero Small Posts */
.trending-hero-layout .trending-post-hero-small {
    background: #fff;
    border-radius: 0;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    margin-bottom: 1rem;
    display: flex;
    height: 120px;
}

.trending-hero-layout .trending-post-hero-small:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.trending-hero-layout .trending-post-small-image {
    width: 120px;
    height: 120px;
    overflow: hidden;
    flex-shrink: 0;
}

.trending-hero-layout .trending-post-small-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.trending-hero-layout .trending-post-hero-small:hover .trending-post-small-image img {
    transform: scale(1.1);
}

.trending-hero-layout .trending-post-small-content {
    padding: 1rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.trending-hero-layout .trending-post-small-title {
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.4;
    margin: 0 0 0.5rem 0;
    color: #1a1a1a;
}

.trending-hero-layout .trending-post-small-title a {
    color: inherit;
    text-decoration: none;
}

.trending-hero-layout .trending-post-small-title a:hover {
    color: #dc3545;
}

.trending-hero-layout .trending-post-small-meta {
    color: #888;
    font-size: 0.8rem;
}

/* ========================================
   TIMELINE LAYOUT STYLES
   ======================================== */
.trending-timeline-layout .trending-posts-timeline {
    position: relative;
    margin-top: 2rem;
    padding: 2rem 0;
}

.trending-timeline-layout .trending-posts-timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #dc3545;
    transform: translateX(-50%);
}

.trending-timeline-layout .trending-post-timeline-item {
    position: relative;
    margin-bottom: 3rem;
    width: 45%;
}

.trending-timeline-layout .timeline-left {
    left: 0;
}

.trending-timeline-layout .timeline-right {
    left: 55%;
}

.trending-timeline-layout .timeline-marker {
    position: absolute;
    top: 20px;
    width: 20px;
    height: 20px;
}

.trending-timeline-layout .timeline-left .timeline-marker {
    right: -60px;
}

.trending-timeline-layout .timeline-right .timeline-marker {
    left: -60px;
}

.trending-timeline-layout .timeline-dot {
    width: 20px;
    height: 20px;
    background: #dc3545;
    border: 4px solid #fff;
    border-radius: 50%;
    box-shadow: 0 0 0 2px #dc3545;
    position: relative;
    z-index: 2;
}

.trending-timeline-layout .timeline-line {
    position: absolute;
    top: 10px;
    width: 40px;
    height: 2px;
    background: #dc3545;
}

.trending-timeline-layout .timeline-left .timeline-line {
    right: -40px;
}

.trending-timeline-layout .timeline-right .timeline-line {
    left: -40px;
}

.trending-timeline-layout .trending-post-timeline-content {
    background: #fff;
    border-radius: 0;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.trending-timeline-layout .trending-post-timeline-content:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.trending-timeline-layout .trending-post-timeline-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.trending-timeline-layout .trending-post-timeline-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.trending-timeline-layout .trending-post-timeline-content:hover .trending-post-timeline-image img {
    transform: scale(1.08);
}

.trending-timeline-layout .trending-post-timeline-text {
    padding: 1.5rem;
}

.trending-timeline-layout .trending-post-timeline-title {
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1.4;
    margin: 0 0 1rem 0;
    color: #1a1a1a;
}

.trending-timeline-layout .trending-post-timeline-title a {
    color: inherit;
    text-decoration: none;
}

.trending-timeline-layout .trending-post-timeline-title a:hover {
    color: #dc3545;
}

.trending-timeline-layout .trending-post-timeline-excerpt {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0 0 1rem 0;
}

.trending-timeline-layout .trending-post-timeline-meta {
    color: #888;
    font-size: 0.9rem;
    display: flex;
    gap: 1rem;
}

.trending-timeline-layout .trending-post-timeline-meta span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* ========================================
   CARDS LAYOUT STYLES
   ======================================== */
.trending-cards-layout .trending-posts-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

/* ========================================
   GALLERY LAYOUT STYLES
   ======================================== */
.trending-gallery-layout .trending-posts-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.trending-gallery-layout .trending-post-gallery-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    aspect-ratio: 4/3;
}

.trending-gallery-layout .trending-post-gallery-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
}

.trending-gallery-layout .trending-post-gallery-image {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.trending-gallery-layout .trending-post-gallery-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.trending-gallery-layout .trending-post-gallery-item:hover .trending-post-gallery-image img {
    transform: scale(1.1);
}

.trending-gallery-layout .trending-post-gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.4) 50%, rgba(0, 0, 0, 0.8) 100%);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 1.5rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.trending-gallery-layout .trending-post-gallery-item:hover .trending-post-gallery-overlay {
    opacity: 1;
}

.trending-gallery-layout .trending-post-gallery-badges {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.trending-gallery-layout .trending-post-gallery-content {
    color: #fff;
}

.trending-gallery-layout .trending-post-gallery-title {
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.3;
    margin: 0 0 0.5rem 0;
}

.trending-gallery-layout .trending-post-gallery-title a {
    color: #fff;
    text-decoration: none;
}

.trending-gallery-layout .trending-post-gallery-title a:hover {
    color: #ffd700;
}

.trending-gallery-layout .trending-post-gallery-excerpt {
    font-size: 0.9rem;
    line-height: 1.4;
    margin: 0 0 1rem 0;
    opacity: 0.9;
}

.trending-gallery-layout .trending-post-gallery-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.8rem;
    opacity: 0.8;
}

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

.trending-gallery-layout .trending-post-gallery-actions {
    position: absolute;
    top: 1rem;
    right: 1rem;
}

.trending-gallery-layout .gallery-read-more {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    color: #fff;
    text-decoration: none;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.trending-gallery-layout .gallery-read-more:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

/* ========================================
   MAGAZINE LAYOUT STYLES
   ======================================== */
.trending-magazine-layout .trending-posts-magazine {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
    margin-top: 2rem;
}

.trending-magazine-layout .trending-post-magazine-featured {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.trending-magazine-layout .trending-post-magazine-featured:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.trending-magazine-layout .trending-post-magazine-featured-image {
    position: relative;
    height: 300px;
    overflow: hidden;
}

.trending-magazine-layout .trending-post-magazine-featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.trending-magazine-layout .trending-post-magazine-featured:hover .trending-post-magazine-featured-image img {
    transform: scale(1.05);
}

.trending-magazine-layout .trending-post-magazine-featured-content {
    padding: 2rem;
}

.trending-magazine-layout .trending-post-magazine-featured-title {
    font-size: 1.8rem;
    font-weight: 700;
    line-height: 1.3;
    margin: 0 0 1rem 0;
}

.trending-magazine-layout .trending-post-magazine-featured-title a {
    color: #1a1a1a;
    text-decoration: none;
}

.trending-magazine-layout .trending-post-magazine-featured-title a:hover {
    color: #dc3545;
}

.trending-magazine-layout .trending-post-magazine-featured-excerpt {
    color: #666;
    font-size: 1rem;
    line-height: 1.6;
    margin: 0 0 1.5rem 0;
}

.trending-magazine-layout .trending-post-magazine-featured-meta {
    display: flex;
    gap: 1.5rem;
    color: #888;
    font-size: 0.9rem;
}

.trending-magazine-layout .trending-post-magazine-featured-meta span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.trending-magazine-layout .trending-post-magazine-sidebar {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    margin-bottom: 1rem;
}

.trending-magazine-layout .trending-post-magazine-sidebar:hover {
    transform: translateX(4px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.trending-magazine-layout .trending-post-magazine-sidebar-image {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
}

.trending-magazine-layout .trending-post-magazine-sidebar-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.trending-magazine-layout .trending-post-magazine-sidebar:hover .trending-post-magazine-sidebar-image img {
    transform: scale(1.1);
}

.trending-magazine-layout .trending-post-magazine-sidebar-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.trending-magazine-layout .trending-post-magazine-sidebar-title {
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.4;
    margin: 0 0 0.5rem 0;
}

.trending-magazine-layout .trending-post-magazine-sidebar-title a {
    color: #1a1a1a;
    text-decoration: none;
}

.trending-magazine-layout .trending-post-magazine-sidebar-title a:hover {
    color: #dc3545;
}

.trending-magazine-layout .trending-post-magazine-sidebar-meta {
    display: flex;
    gap: 1rem;
    color: #888;
    font-size: 0.8rem;
}

.trending-magazine-layout .trending-post-magazine-sidebar-meta span {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

/* ========================================
   COMPACT LAYOUT STYLES
   ======================================== */
.trending-compact-layout .trending-posts-compact {
    margin-top: 2rem;
}

.trending-compact-layout .trending-post-compact-item {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    margin-bottom: 0.75rem;
}

.trending-compact-layout .trending-post-compact-item:hover {
    transform: translateX(4px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.trending-compact-layout .trending-post-compact-image {
    position: relative;
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    border-radius: 6px;
    overflow: hidden;
}

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

.trending-compact-layout .trending-post-compact-item:hover .trending-post-compact-image img {
    transform: scale(1.1);
}

.trending-compact-layout .trending-post-compact-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.trending-compact-layout .trending-post-compact-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
}

.trending-compact-layout .trending-post-compact-title {
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.3;
    margin: 0;
    flex: 1;
}

.trending-compact-layout .trending-post-compact-title a {
    color: #1a1a1a;
    text-decoration: none;
}

.trending-compact-layout .trending-post-compact-title a:hover {
    color: #dc3545;
}

.trending-compact-layout .trending-post-compact-meta {
    display: flex;
    gap: 1rem;
    color: #888;
    font-size: 0.8rem;
}

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

.trending-cards-layout .trending-post-card-item {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
}

.trending-cards-layout .trending-post-card-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.trending-cards-layout .trending-post-card-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.trending-cards-layout .trending-post-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.trending-cards-layout .trending-post-card-item:hover .trending-post-card-image img {
    transform: scale(1.08);
}

.trending-cards-layout .trending-post-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(220, 53, 69, 0.9), rgba(26, 26, 26, 0.8));
    opacity: 0;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 1rem;
}

.trending-cards-layout .trending-post-card-item:hover .trending-post-card-overlay {
    opacity: 1;
}

.trending-cards-layout .trending-post-card-badges {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.trending-cards-layout .trending-post-card-actions {
    display: flex;
    justify-content: center;
}

.trending-cards-layout .read-more-btn {
    width: 50px;
    height: 50px;
    background: #fff;
    color: #dc3545;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
}

.trending-cards-layout .read-more-btn:hover {
    background: #dc3545;
    color: #fff;
    transform: scale(1.1);
}

.trending-cards-layout .trending-post-card-content {
    padding: 1.5rem;
}

.trending-cards-layout .trending-post-card-meta {
    color: #888;
    font-size: 0.9rem;
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.trending-cards-layout .trending-post-card-meta span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.trending-cards-layout .trending-post-card-title {
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1.4;
    margin: 0 0 1rem 0;
    color: #1a1a1a;
}

.trending-cards-layout .trending-post-card-title a {
    color: inherit;
    text-decoration: none;
}

.trending-cards-layout .trending-post-card-title a:hover {
    color: #dc3545;
}

.trending-cards-layout .trending-post-card-excerpt {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0 0 1.5rem 0;
}

.trending-cards-layout .trending-post-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.trending-cards-layout .trending-post-card-stats {
    display: flex;
    gap: 1rem;
    color: #888;
    font-size: 0.9rem;
}

.trending-cards-layout .trending-post-card-stats span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.trending-cards-layout .trending-post-card-link {
    color: #dc3545;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.trending-cards-layout .trending-post-card-link:hover {
    color: #1a1a1a;
    transform: translateX(5px);
}

/* ========================================
   RESPONSIVE STYLES FOR NEW LAYOUTS
   ======================================== */
@media (max-width: 767px) {

    /* List Layout Mobile */
    .trending-list-layout .trending-post-item {
        flex-direction: column;
        height: auto;
    }

    .trending-list-layout .trending-post-image {
        width: 100%;
        height: 200px;
    }

    .trending-list-layout .trending-post-content {
        padding: 1.2rem;
    }

    .trending-list-layout .trending-post-title {
        font-size: 1.2rem;
    }

    /* Masonry Layout Mobile */
    .trending-masonry-layout .trending-posts-masonry {
        columns: 1;
        column-gap: 1rem;
    }

    .trending-masonry-layout .trending-post-masonry-item {
        margin-bottom: 1.5rem;
    }

    /* Carousel Layout Mobile */
    .trending-carousel-layout .trending-post-carousel-item {
        flex: 0 0 calc(100% - 0.5rem);
        min-width: calc(100% - 0.5rem);
        max-width: calc(100% - 0.5rem);
        width: calc(100% - 0.5rem);
    }

    .trending-carousel-layout .trending-carousel-controls {
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .trending-carousel-layout .carousel-track {
        gap: 1rem;
    }

    /* Hero Layout Mobile */
    .trending-hero-layout .trending-posts-hero {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .trending-hero-layout .trending-post-hero-image {
        height: 200px;
    }

    .trending-hero-layout .trending-post-hero-content {
        padding: 1.5rem;
    }

    .trending-hero-layout .trending-post-hero-title {
        font-size: 1.4rem;
    }

    .trending-hero-layout .trending-post-hero-small {
        height: 100px;
    }

    .trending-hero-layout .trending-post-small-image {
        width: 100px;
        height: 100px;
    }

    /* Timeline Layout Mobile */
    .trending-timeline-layout .trending-posts-timeline::before {
        left: 20px;
    }

    .trending-timeline-layout .trending-post-timeline-item {
        width: calc(100% - 60px);
        left: 60px !important;
        margin-bottom: 2rem;
    }

    .trending-timeline-layout .timeline-marker {
        left: -50px !important;
        right: auto !important;
    }

    .trending-timeline-layout .timeline-line {
        left: -30px !important;
        right: auto !important;
    }

    /* Cards Layout Mobile */
    .trending-cards-layout .trending-posts-cards {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .trending-cards-layout .trending-post-card-footer {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }

    /* Gallery Layout Mobile */
    .trending-gallery-layout .trending-posts-gallery {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .trending-gallery-layout .trending-post-gallery-item {
        aspect-ratio: 16/9;
    }

    /* Magazine Layout Mobile */
    .trending-magazine-layout .trending-posts-magazine {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .trending-magazine-layout .trending-post-magazine-featured-image {
        height: 200px;
    }

    .trending-magazine-layout .trending-post-magazine-featured-content {
        padding: 1.5rem;
    }

    .trending-magazine-layout .trending-post-magazine-featured-title {
        font-size: 1.4rem;
    }

    /* Compact Layout Mobile */
    .trending-compact-layout .trending-post-compact-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .trending-compact-layout .trending-post-compact-meta {
        flex-wrap: wrap;
        gap: 0.5rem;
    }
}

@media (min-width: 768px) and (max-width: 1024px) {

    /* List Layout Tablet */
    .trending-list-layout .trending-post-image {
        width: 250px;
        height: 180px;
    }

    .trending-list-layout .trending-post-content {
        padding: 1.2rem;
    }

    /* Masonry Layout Tablet */
    .trending-masonry-layout .trending-posts-masonry {
        columns: 2;
        column-gap: 1.5rem;
    }

    /* Carousel Layout Tablet */
    .trending-carousel-layout .trending-post-carousel-item {
        flex: 0 0 calc(50% - 0.75rem);
        min-width: calc(50% - 0.75rem);
        max-width: calc(50% - 0.75rem);
        width: calc(50% - 0.75rem);
    }

    .trending-carousel-layout .carousel-track {
        gap: 1.25rem;
    }

    /* Hero Layout Tablet */
    .trending-hero-layout .trending-posts-hero {
        grid-template-columns: 1.5fr 1fr;
        gap: 1.5rem;
    }

    .trending-hero-layout .trending-post-hero-image {
        height: 250px;
    }

    .trending-hero-layout .trending-post-hero-title {
        font-size: 1.6rem;
    }

    /* Timeline Layout Tablet */
    .trending-timeline-layout .trending-post-timeline-item {
        width: 40%;
    }

    .trending-timeline-layout .timeline-left {
        left: 5%;
    }

    .trending-timeline-layout .timeline-right {
        left: 55%;
    }

    /* Cards Layout Tablet */
    .trending-cards-layout .trending-posts-cards {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    /* Gallery Layout Tablet */
    .trending-gallery-layout .trending-posts-gallery {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    /* Magazine Layout Tablet */
    .trending-magazine-layout .trending-posts-magazine {
        grid-template-columns: 1.5fr 1fr;
        gap: 1.5rem;
    }

    .trending-magazine-layout .trending-post-magazine-featured-image {
        height: 250px;
    }

    .trending-magazine-layout .trending-post-magazine-featured-title {
        font-size: 1.6rem;
    }
}

/* ========================================
   WP CAROUSEL PLUGIN CONFLICT FIXES
   ======================================== */

/* Override WP Carousel plugin styles for our trending carousel */
.trending-carousel-layout .trending-posts-carousel {
    position: relative !important;
    overflow: hidden !important;
    margin-top: 2rem !important;
    width: 100% !important;
}

.trending-carousel-layout .carousel-track {
    display: flex !important;
    transition: transform 0.5s ease !important;
    gap: 0.5rem !important;
    width: 100% !important;
    position: relative !important;
    z-index: 1 !important;
    /* Override Swiper styles */
    transform: none !important;
    box-sizing: border-box !important;
}

.trending-carousel-layout .trending-post-carousel-item {
    flex: 0 0 calc(33.333% - 1rem) !important;
    min-width: calc(33.333% - 1rem) !important;
    max-width: calc(33.333% - 1rem) !important;
    width: calc(33.333% - 1rem) !important;
    background: #fff !important;
    border-radius: 0 !important;
    overflow: hidden !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1) !important;
    transition: all 0.3s ease !important;
    border: none !important;
    position: relative !important;
    height: auto !important;
    display: flex !important;
    flex-direction: column !important;
    flex-shrink: 0 !important;
    /* Override Swiper slide styles */
    transform: none !important;
    box-sizing: border-box !important;
}

/* Override WP Carousel navigation styles */
.trending-carousel-layout .carousel-prev,
.trending-carousel-layout .carousel-next {
    background: #1a1a1a !important;
    color: #fff !important;
    border: none !important;
    width: 40px !important;
    height: 40px !important;
    border-radius: 50% !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    /* Override Swiper button styles */
    position: relative !important;
    z-index: 22 !important;
    font-size: 16px !important;
    line-height: 1 !important;
    margin: 0 !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
}

.trending-carousel-layout .carousel-prev:hover,
.trending-carousel-layout .carousel-next:hover {
    background: #dc3545 !important;
    transform: scale(1.1) !important;
}

/* Override WP Carousel dots styles */
.trending-carousel-layout .carousel-dots {
    display: flex !important;
    justify-content: center !important;
    gap: 0.5rem !important;
    margin-top: 2rem !important;
    /* Override Swiper pagination styles */
    position: relative !important;
    bottom: auto !important;
}

.trending-carousel-layout .carousel-dot {
    display: block !important;
    width: 12px !important;
    height: 12px !important;
    border-radius: 50% !important;
    background: #ddd !important;
    border: none !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    /* Override Swiper bullet styles */
    margin: 3px !important;
    padding: 0 !important;
    font-size: 0 !important;
    text-indent: -999px !important;
    overflow: hidden !important;
    opacity: 1 !important;
}

.trending-carousel-layout .carousel-dot.active,
.trending-carousel-layout .carousel-dot:hover {
    background: #dc3545 !important;
    transform: scale(1.2) !important;
}

/* Override WP Carousel image styles */
.trending-carousel-layout .trending-post-image {
    position: relative !important;
    height: 180px !important;
    overflow: hidden !important;
    flex-shrink: 0 !important;
}

.trending-carousel-layout .trending-post-image img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    transition: transform 0.4s ease !important;
    /* Override WP Carousel image styles */
    max-width: none !important;
    vertical-align: middle !important;
    float: none !important;
}

/* Override WP Carousel content styles */
.trending-carousel-layout .trending-post-content {
    padding: 1.25rem !important;
    flex: 1 !important;
    display: flex !important;
    flex-direction: column !important;
}

.trending-carousel-layout .trending-post-title {
    font-size: 1.2rem !important;
    font-weight: 700 !important;
    line-height: 1.4 !important;
    margin: 0 0 1rem 0 !important;
    color: #1a1a1a !important;
    flex: 1 !important;
}

.trending-carousel-layout .trending-post-title a {
    color: #1a1a1a !important;
    text-decoration: none !important;
    transition: color 0.3s ease !important;
}

.trending-carousel-layout .trending-post-title a:hover {
    color: #dc3545 !important;
}

.trending-carousel-layout .trending-post-excerpt {
    color: #666 !important;
    font-size: 0.95rem !important;
    line-height: 1.6 !important;
    margin: 0 0 1rem 0 !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 3 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
}

.trending-carousel-layout .trending-post-meta {
    color: #888 !important;
    font-size: 0.9rem !important;
}

/* Responsive fixes for WP Carousel conflicts */
@media (max-width: 767px) {
    .trending-carousel-layout .trending-post-carousel-item {
        flex: 0 0 calc(100% - 0.5rem) !important;
        min-width: calc(100% - 0.5rem) !important;
        max-width: calc(100% - 0.5rem) !important;
        width: calc(100% - 0.5rem) !important;
    }

    .trending-carousel-layout .carousel-track {
        gap: 1rem !important;
    }
}

@media (min-width: 768px) and (max-width: 1024px) {
    .trending-carousel-layout .trending-post-carousel-item {
        flex: 0 0 calc(50% - 0.75rem) !important;
        min-width: calc(50% - 0.75rem) !important;
        max-width: calc(50% - 0.75rem) !important;
        width: calc(50% - 0.75rem) !important;
    }

    .trending-carousel-layout .carousel-track {
        gap: 1.25rem !important;
    }
}

/* Disable WP Carousel styles for our trending carousel elements */
.trending-carousel-layout .trending-posts-carousel,
.trending-carousel-layout .carousel-track,
.trending-carousel-layout .trending-post-carousel-item {
    /* Prevent WP Carousel from applying Swiper styles */
    transform-style: flat !important;
    perspective: none !important;
    backface-visibility: visible !important;
}

/* Ensure our carousel controls are not affected by WP Carousel */
.trending-carousel-layout .trending-carousel-controls {
    display: flex !important;
    align-items: center !important;
    gap: 1rem !important;
    position: relative !important;
    z-index: 30 !important;
}

/* Override any WP Carousel global styles that might affect our carousel */
.trending-carousel-layout * {
    box-sizing: border-box !important;
}

.trending-carousel-layout .trending-post-carousel-item * {
    box-sizing: border-box !important;
}

/* Additional specificity for trending carousel elements */
.trending-carousel-layout .trending-carousel-track {
    display: flex !important;
    transition: transform 0.5s ease !important;
    gap: 0.5rem !important;
    width: 100% !important;
    position: relative !important;
    z-index: 1 !important;
    /* Override Swiper styles */
    transform: none !important;
    box-sizing: border-box !important;
}

.trending-carousel-layout .trending-carousel-item {
    flex: 0 0 calc(33.333% - 1rem) !important;
    min-width: calc(33.333% - 1rem) !important;
    max-width: calc(33.333% - 1rem) !important;
    width: calc(33.333% - 1rem) !important;
    background: #fff !important;
    border-radius: 0 !important;
    overflow: hidden !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1) !important;
    transition: all 0.3s ease !important;
    border: none !important;
    position: relative !important;
    height: auto !important;
    display: flex !important;
    flex-direction: column !important;
    flex-shrink: 0 !important;
    /* Override Swiper slide styles */
    transform: none !important;
    box-sizing: border-box !important;
}

/* Ensure proper spacing and layout */
.trending-carousel-layout .trending-posts-carousel {
    margin-bottom: 2rem !important;
}

/* Fix for any remaining WP Carousel interference */
.trending-carousel-layout {
    /* Isolate our carousel from WP Carousel styles */
    position: relative !important;
    z-index: 1 !important;
}

.trending-carousel-layout .trending-carousel-controls {
    /* Ensure controls are above WP Carousel elements */
    position: relative !important;
    z-index: 50 !important;
}

/* Override any WP Carousel global button styles */
.trending-carousel-layout .carousel-prev:before,
.trending-carousel-layout .carousel-next:before,
.trending-carousel-layout .carousel-prev:after,
.trending-carousel-layout .carousel-next:after {
    display: none !important;
}

/* Ensure proper button content */
.trending-carousel-layout .carousel-prev::before {
    content: "‹" !important;
    font-size: 24px !important;
    line-height: 1 !important;
}

.trending-carousel-layout .carousel-next::before {
    content: "›" !important;
    font-size: 24px !important;
    line-height: 1 !important;
}

/* Disable any WP Carousel touch/swipe functionality on our carousel */
.trending-carousel-layout .trending-posts-carousel {
    touch-action: pan-y !important;
    -webkit-user-select: none !important;
    -moz-user-select: none !important;
    -ms-user-select: none !important;
    user-select: none !important;
}

/* Ensure proper image display */
.trending-carousel-layout .trending-post-image img {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    transition: transform 0.4s ease !important;
    /* Override WP Carousel image styles */
    max-width: none !important;
    vertical-align: middle !important;
    float: none !important;
    border: none !important;
    outline: none !important;
}

/* Hover effects */
.trending-carousel-layout .trending-post-carousel-item:hover,
.trending-carousel-layout .trending-carousel-item:hover {
    transform: translateY(-8px) !important;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15) !important;
}

.trending-carousel-layout .trending-post-carousel-item:hover .trending-post-image img,
.trending-carousel-layout .trending-carousel-item:hover .trending-post-image img {
    transform: scale(1.08) !important;
}

/* Author's Corner Widget Styles */
.ebc-authors-corner {
    background: transparent !important;
    border-radius: 12px;
    margin-bottom: 2rem;
}

.ebc-authors-corner-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 2rem;
    gap: 1rem;
}

.ebc-authors-corner-title {
    flex: 1;
}

.ebc-authors-corner-title i {
    color: #e74c3c;
    font-size: 1.5rem;
    margin-right: 0.5rem;
}

.ebc-authors-corner-title h2 {
    display: inline-block;
    margin: 0;
    font-size: 1.8rem;
    font-weight: 700;
    color: #2c3e50;
    line-height: 1.2;
}

.ebc-authors-corner-title p {
    margin: 0.5rem 0 0 0;
    color: #7f8c8d;
    font-size: 0.95rem;
    line-height: 1.4;
}

.ebc-view-all-btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: transparent;
    color: #e74c3c;
    border: 2px solid #e74c3c;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.ebc-view-all-btn:hover {
    background: #e74c3c;
    color: #fff;
    text-decoration: none;
}

.ebc-authors-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.ebc-author-card {
    background: #fff;
    border: 1px solid #ecf0f1;
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.ebc-author-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    border-color: #e74c3c;
}

.ebc-author-image {
    text-align: center;
    margin-bottom: 1rem;
}

.ebc-author-image .author-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #e74c3c;
    transition: transform 0.3s ease;
}

.ebc-author-card:hover .author-avatar {
    transform: scale(1.05);
}

.author-avatar-placeholder {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: #ecf0f1;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    border: 3px solid #e74c3c;
}

.author-avatar-placeholder i {
    font-size: 2rem;
    color: #bdc3c7;
}

.ebc-author-content {
    text-align: center;
}

.ebc-author-name {
    font-size: 1.2rem;
    font-weight: 700;
    color: #2c3e50;
    margin: 0 0 0.5rem 0;
    line-height: 1.3;
}

.ebc-book-title {
    color: #e74c3c;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.ebc-author-tag {
    display: inline-block;
    background: #f39c12;
    color: #fff;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ebc-author-description {
    color: #7f8c8d;
    font-size: 0.85rem;
    line-height: 1.5;
    margin-bottom: 1rem;
}

.ebc-interview-title {
    color: #e74c3c;
    font-size: 0.95rem;
    font-weight: 600;
    margin: 0 0 0.5rem 0;
    line-height: 1.3;
}

.ebc-interview-meta {
    color: #95a5a6;
    font-size: 0.8rem;
    margin-bottom: 1rem;
}

.ebc-read-time {
    font-weight: 600;
}

.ebc-interview-date {
    color: #bdc3c7;
}

.ebc-read-interview-btn {
    display: inline-block;
    padding: 0.6rem 1.2rem;
    background: transparent;
    color: #e74c3c;
    border: 2px solid #e74c3c;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ebc-read-interview-btn:hover {
    background: #e74c3c;
    color: #fff;
    text-decoration: none;
    transform: translateY(-2px);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .ebc-authors-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.25rem;
    }

    .ebc-authors-corner {
        padding: 1.5rem;
    }

    .ebc-authors-corner-title h2 {
        font-size: 1.6rem;
    }
}

@media (max-width: 768px) {
    .ebc-authors-corner-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .ebc-authors-corner-title h2 {
        font-size: 1.4rem;
    }

    .ebc-authors-corner-title p {
        font-size: 0.9rem;
    }

    .ebc-authors-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .ebc-author-card {
        padding: 1.25rem;
    }

    .ebc-view-all-btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.85rem;
    }
}

/* Widget Admin Styles */
.ebc-authors-corner-widget .manual-settings select[multiple] {
    border: 2px solid #ddd;
    border-radius: 4px;
    padding: 8px;
    background: #fff;
    font-size: 13px;
    line-height: 1.4;
}

.ebc-authors-corner-widget .manual-settings select[multiple] option {
    padding: 6px 8px;
    margin: 2px 0;
    border-radius: 3px;
    cursor: pointer;
}

.ebc-authors-corner-widget .manual-settings select[multiple] option:checked {
    background: #e74c3c !important;
    color: #fff !important;
    font-weight: bold;
}

.ebc-authors-corner-widget .manual-settings select[multiple] option:hover {
    background: #f8f9fa;
}

.ebc-authors-corner-widget .auto-settings,
.ebc-authors-corner-widget .manual-settings {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 5px;
    margin: 10px 0;
    border-left: 4px solid #e74c3c;
}

.ebc-authors-corner-widget .manual-settings p:last-child {
    background: #fff;
    padding: 10px;
    border-radius: 3px;
    border: 1px solid #ddd;
    margin-top: 10px;
}

@media (max-width: 480px) {
    .ebc-authors-corner {
        padding: 1rem;
        margin-bottom: 1.5rem;
    }

    .ebc-authors-corner-header {
        margin-bottom: 1.5rem;
    }

    .ebc-authors-corner-title h2 {
        font-size: 1.3rem;
    }

    .ebc-authors-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .ebc-author-card {
        padding: 1rem;
    }

    .ebc-author-image .author-avatar {
        width: 70px;
        height: 70px;
    }

    .author-avatar-placeholder {
        width: 70px;
        height: 70px;
    }

    .ebc-author-name {
        font-size: 1.1rem;
    }

    .ebc-interview-title {
        font-size: 0.9rem;
    }
}

/* ========================================
   SITE BRANDING TWO-COLUMN LAYOUT FIXES
   ======================================== */

/* Force two-column layout for logo + title/description */
.site-branding.logo-title,
.site-branding.logo-description {
    display: grid !important;
    grid-template-columns: auto 1fr !important;
    grid-template-rows: auto !important;
    align-items: center !important;
    gap: 2rem !important;
    width: 100% !important;
    min-height: 60px !important;
}

/* Logo column - fixed width */
.site-branding.logo-title .site-logo,
.site-branding.logo-description .site-logo {
    grid-column: 1 !important;
    margin: 0 !important;
    padding: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-self: start !important;
}

/* Text column - takes remaining space */
.site-branding.logo-title .site-text-content,
.site-branding.logo-description .site-text-content {
    grid-column: 2 !important;
    margin: 0 !important;
    padding: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: flex-start !important;
    width: 100% !important;
}

/* Text elements inside text column */
.site-branding.logo-title .site-title,
.site-branding.logo-description .site-title {
    margin: 0 !important;
    padding: 0 !important;
    display: block !important;
    width: 100% !important;
    line-height: 1.2 !important;
}

.site-branding.logo-description .site-description {
    margin: 0 !important;
    padding: 0 !important;
    display: block !important;
    width: 100% !important;
    margin-top: 0.25rem !important;
}

/* Mobile responsive for two-column layout */
@media (max-width: 768px) {

    .site-branding.logo-title,
    .site-branding.logo-description {
        display: grid !important;
        grid-template-columns: 1fr !important;
        grid-template-rows: auto auto !important;
        align-items: flex-start !important;
        gap: 0.5rem !important;
    }

    .site-branding.logo-title .site-logo,
    .site-branding.logo-description .site-logo {
        grid-column: 1 !important;
        grid-row: 1 !important;
        justify-self: start !important;
        margin-bottom: 0.5rem !important;
    }

    .site-branding.logo-title .site-text-content,
    .site-branding.logo-description .site-text-content {
        grid-column: 1 !important;
        grid-row: 2 !important;
        align-items: flex-start !important;
    }
}

/* Tablet responsive adjustments */
@media (min-width: 769px) and (max-width: 1024px) {

    .site-branding.logo-title,
    .site-branding.logo-description {
        gap: 1.5rem !important;
    }
}

/* Large screen optimizations */
@media (min-width: 1025px) {

    .site-branding.logo-title,
    .site-branding.logo-description {
        gap: 2.5rem !important;
    }
}

/* ========================================
   OVERRIDE GENERATEPRESS CONFLICTING STYLES
   ======================================== */

/* Override any conflicting styles from GeneratePress theme */
.site-branding.logo-title,
.site-branding.logo-description {
    display: grid !important;
    grid-template-columns: auto 1fr !important;
    grid-template-rows: auto !important;
    align-items: center !important;
    gap: 2rem !important;
    width: 100% !important;
    min-height: 60px !important;
    flex-direction: unset !important;
    flex-wrap: unset !important;
}

/* Ensure logo and text content are properly positioned */
.site-branding.logo-title .site-logo,
.site-branding.logo-description .site-logo {
    grid-column: 1 !important;
    grid-row: 1 !important;
    margin: 0 !important;
    padding: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-self: start !important;
    flex-shrink: 0 !important;
}

.site-branding.logo-title .site-text-content,
.site-branding.logo-description .site-text-content {
    grid-column: 2 !important;
    grid-row: 1 !important;
    margin: 0 !important;
    padding: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: flex-start !important;
    width: 100% !important;
}

/* Ensure text elements are properly styled */
.site-branding.logo-title .site-title,
.site-branding.logo-description .site-title {
    margin: 0 !important;
    padding: 0 !important;
    display: block !important;
    width: 100% !important;
    line-height: 1.2 !important;
}

.site-branding.logo-description .site-description {
    margin: 0 !important;
    padding: 0 !important;
    display: block !important;
    width: 100% !important;
    margin-top: 0.25rem !important;
}

/* Override any inline-block or flexbox overrides */
.nav-float-right .inside-header .site-branding.logo-title,
.nav-float-right .inside-header .site-branding.logo-description,
.nav-float-left .inside-header .site-branding.logo-title,
.nav-float-left .inside-header .site-branding.logo-description {
    display: grid !important;
    grid-template-columns: auto 1fr !important;
    grid-template-rows: auto !important;
    align-items: center !important;
    gap: 2rem !important;
    width: 100% !important;
}

/* Mobile responsive overrides */
@media (max-width: 768px) {

    .site-branding.logo-title,
    .site-branding.logo-description {
        display: grid !important;
        grid-template-columns: 1fr !important;
        grid-template-rows: auto auto !important;
        align-items: flex-start !important;
        gap: 0.5rem !important;
    }

    .site-branding.logo-title .site-logo,
    .site-branding.logo-description .site-logo {
        grid-column: 1 !important;
        grid-row: 1 !important;
        justify-self: start !important;
        margin-bottom: 0.5rem !important;
    }

    .site-branding.logo-title .site-text-content,
    .site-branding.logo-description .site-text-content {
        grid-column: 1 !important;
        grid-row: 2 !important;
        align-items: flex-start !important;
    }
}

/* Tablet responsive overrides */
@media (min-width: 769px) and (max-width: 1024px) {

    .site-branding.logo-title,
    .site-branding.logo-description {
        gap: 1.5rem !important;
    }
}

/* Large screen optimizations */
@media (min-width: 1025px) {

    .site-branding.logo-title,
    .site-branding.logo-description {
        gap: 2.5rem !important;
    }
}

/* ========================================
   DEBUGGING AND FINAL OVERRIDES
   ======================================== */

/* Ensure the branding layout classes are working */
.site-branding.logo-title,
.site-branding.logo-description {
    display: grid !important;
    grid-template-columns: auto 1fr !important;
    grid-template-rows: auto !important;
    align-items: center !important;
    gap: 2rem !important;
    width: 100% !important;
    min-height: 60px !important;
    flex-direction: unset !important;
    flex-wrap: unset !important;
    position: relative !important;
}

/* Force logo and text content positioning */
.site-branding.logo-title .site-logo,
.site-branding.logo-description .site-logo {
    grid-column: 1 !important;
    grid-row: 1 !important;
    margin: 0 !important;
    padding: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-self: start !important;
    flex-shrink: 0 !important;
    position: relative !important;
}

.site-branding.logo-title .site-text-content,
.site-branding.logo-description .site-text-content {
    grid-column: 2 !important;
    grid-row: 1 !important;
    margin: 0 !important;
    padding: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: flex-start !important;
    width: 100% !important;
    position: relative !important;
}

/* Ensure text elements are visible and properly styled */
.site-branding.logo-title .site-title,
.site-branding.logo-description .site-title {
    margin: 0 !important;
    padding: 0 !important;
    display: block !important;
    width: 100% !important;
    line-height: 1.2 !important;
    color: #fff !important;
    font-size: 1.5rem !important;
    font-weight: 700 !important;
}

.site-branding.logo-title .site-title a,
.site-branding.logo-description .site-title a {
    color: #fff !important;
    text-decoration: none !important;
}

.site-branding.logo-description .site-description {
    margin: 0 !important;
    padding: 0 !important;
    display: block !important;
    width: 100% !important;
    margin-top: 0.25rem !important;
    color: #fff !important;
}

/* EBC Webstore header styles override any conflicting styles */

/* ========================================
   NEWSLETTER SUBSCRIPTION WIDGET STYLES
   ======================================== */

.ebc-newsletter-widget {
    background: #e51425 !important;
    padding: .75rem !important;
    position: relative;
    overflow: hidden;
    border: 0 !important;
}

.ebc-newsletter-widget::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
    pointer-events: none;
}

.newsletter-content {
    position: relative;
    z-index: 1;
}

.newsletter-title {
    color: #fff;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 0 0.75rem 0;
    text-align: left;
    line-height: 1.3;
}

.newsletter-description {
    color: #fff;
    font-size: 0.95rem;
    line-height: 1.5;
    margin: 0 0 1.5rem 0;
    text-align: left;
    opacity: 0.95;
}

.newsletter-form {
    margin: 0;
}

.newsletter-input-group {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1rem;
    width: 100%;
}

.newsletter-email {
    background: rgba(255, 255, 255, 0.15);
    border: none;
    padding: 0.875rem;
    color: #fff;
    font-size: 0.95rem;
    width: 100%;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.newsletter-email::placeholder {
    color: rgba(255, 255, 255, 0.8);
    font-style: italic;
}

.newsletter-email:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.2);
}

.newsletter-email:focus::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.newsletter-submit {
    background: transparent;
    border: none;
    color: #fff;
    font-size: 1.15rem;
    font-weight: 600;
    padding: 0.875rem 0;
    cursor: pointer;
    transition: all 0.3s ease;
    letter-spacing: 0.5px;
    backdrop-filter: blur(10px);
    min-height: 48px;
    width: 100%;
}

.newsletter-submit:hover {
    background: rgba(255, 255, 255, 0.3);
}

.newsletter-submit:active {
    background: rgba(255, 255, 255, 0.4);
}

.newsletter-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.newsletter-message {
    padding: 0.75rem 1rem;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 500;
    text-align: center;
    margin-top: 1rem;
    transition: all 0.3s ease;
}

.newsletter-message.success {
    background: rgba(76, 175, 80, 0.2);
    border: 1px solid rgba(76, 175, 80, 0.4);
    color: #4caf50;
}

.newsletter-message.error {
    background: rgba(244, 67, 54, 0.2);
    border: 1px solid rgba(244, 67, 54, 0.4);
    color: #f44336;
}

/* Responsive Design */
@media (min-width: 768px) {
    .newsletter-title {
        font-size: 1.75rem;
    }

    .newsletter-description {
        font-size: 1rem;
    }
}

@media (max-width: 767px) {
    .ebc-newsletter-widget {
        padding: 1.5rem;
        margin: 1rem 0;
    }

    .newsletter-title {
        font-size: 1.3rem;
    }

    .newsletter-description {
        font-size: 0.9rem;
    }

    .newsletter-email,
    .newsletter-submit {
        font-size: 0.9rem;
        padding: 0.75rem 1rem;
    }
}

/* Focus state for accessibility */
.newsletter-email:focus-visible,
.newsletter-submit:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 2px;
}

/* Loading animation */
.newsletter-submit:disabled {
    position: relative;
}

.newsletter-submit:disabled::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 16px;
    height: 16px;
    margin: -8px 0 0 -8px;
    border: 2px solid transparent;
    border-top: 2px solid #fff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Hover effects for better UX */
.ebc-newsletter-widget:hover {
    transition: all 0.3s ease;
}

/* Input group focus state */
.newsletter-input-group.focused .newsletter-email {
    background: rgba(255, 255, 255, 0.25);
}

/* Submit Article Widget Styles */
.ebc-submit-article-widget {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* Header Section */
.submit-article-header {
    text-align: center;
    margin-bottom: 40px;
}

.header-title-container {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.header-icon {
    display: inline-block;
    margin-right: 12px;
    vertical-align: middle;
}

.submit-article-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1F2937;
    margin: 0 0 16px 0;
}

.submit-article-subtitle {
    font-size: 1.125rem;
    color: #6B7280;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Statistics Section */
.submit-article-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 60px;
}

.stat-card {
    background: white;
    border-radius: 12px;
    padding: 24px;
    text-align: center;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    border: 1px solid #E5E7EB;
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: #DC2626;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 0.875rem;
    color: #6B7280;
    font-weight: 500;
}

/* Steps Section */
.submit-article-steps {
    margin-bottom: 60px;
}

.steps-title {
    font-size: 1.875rem;
    font-weight: 600;
    color: #1F2937;
    text-align: center;
    margin: 0 0 40px 0;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 24px;
}

.step-card {
    background: white;
    border-radius: 12px;
    padding: 24px;
    position: relative;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    border: 1px solid #E5E7EB;
}

.step-number {
    position: absolute;
    top: -12px;
    left: 20px;
    background: #F59E0B;
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    font-weight: 600;
}

.step-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: #1F2937;
    margin: 0 0 12px 0;
}

.step-description {
    font-size: 0.875rem;
    color: #6B7280;
    line-height: 1.5;
    margin: 0;
}

/* Call to Action Section */
.submit-article-cta {
    background: linear-gradient(135deg, #F97316 0%, #DC2626 100%);
    border-radius: 16px;
    padding: 48px 32px;
    text-align: center;
    color: white;
}

.cta-icon {
    display: inline-block;
    margin-bottom: 24px;
}

.cta-title {
    font-size: 2rem;
    font-weight: 700;
    margin: 0 0 16px 0;
}

.cta-description {
    font-size: 1.125rem;
    line-height: 1.6;
    margin: 0 0 32px 0;
    opacity: 0.9;
}

.cta-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-button {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.cta-button.primary {
    background: white;
    color: #DC2626;
}

.cta-button.primary:hover {
    background: #F3F4F6;
    transform: translateY(-2px);
}

.cta-button.secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.cta-button.secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

/* Responsive Design for Submit Article Widget */
@media (max-width: 768px) {
    .ebc-submit-article-widget {
        padding: 20px 16px;
    }

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

    .submit-article-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .steps-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

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

    .cta-button {
        width: 100%;
        max-width: 200px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .submit-article-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .submit-article-title {
        font-size: 1.75rem;
    }

    .cta-title {
        font-size: 1.5rem;
    }
}

/**
 * Views Count System Styles
 */

/* General Views Count Styling */
.views-count {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.9em;
    color: #666;
    font-weight: 500;
    transition: color 0.3s ease;
}

.views-count:hover {
    color: #DC2626;
}

.views-count i {
    font-size: 0.8em;
    opacity: 0.8;
}

/* Post Meta Views Count */
.post-meta .views-count {
    margin-left: 15px;
    padding: 2px 8px;
    background: rgba(220, 38, 38, 0.1);
    border-radius: 12px;
    font-size: 0.85em;
}

.post-meta .views-count:hover {
    background: rgba(220, 38, 38, 0.15);
}

/* Page Meta Views Count */
.page-meta .views-count {
    margin-top: 10px;
    padding: 4px 12px;
    background: rgba(220, 38, 38, 0.1);
    border-radius: 16px;
    font-size: 0.9em;
    display: inline-block;
}

.page-meta .views-count:hover {
    background: rgba(220, 38, 38, 0.15);
}

/* Trending Post Meta Views Count */
.trending-post-meta .views-count {
    margin-left: 12px;
    font-size: 0.85em;
    color: #888;
}

.trending-post-meta .views-count:hover {
    color: #DC2626;
}

/* Most Viewed Posts Widget */
.most-viewed-posts {
    list-style: none;
    padding: 0;
    margin: 0;
}

.most-viewed-post {
    padding: 12px 0;
    border-bottom: 1px solid #eee;
    transition: background-color 0.3s ease;
}

.most-viewed-post:hover {
    background-color: rgba(220, 38, 38, 0.05);
}

.most-viewed-post:last-child {
    border-bottom: none;
}

.most-viewed-post a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-decoration: none;
    color: inherit;
    padding: 4px 0;
}

.most-viewed-post .post-title {
    flex: 1;
    margin-right: 15px;
    font-weight: 500;
    line-height: 1.4;
    color: #333;
}

.most-viewed-post .post-title:hover {
    color: #DC2626;
}

.most-viewed-post .post-views {
    font-size: 0.8em;
    color: #666;
    white-space: nowrap;
    background: rgba(220, 38, 38, 0.1);
    padding: 2px 8px;
    border-radius: 10px;
    font-weight: 500;
}

/* Views Count in Admin */
.column-views_count {
    width: 80px;
    text-align: center;
}

/* Responsive Views Count */
@media (max-width: 768px) {

    .post-meta .views-count,
    .trending-post-meta .views-count {
        margin-left: 8px;
        font-size: 0.8em;
    }

    .page-meta .views-count {
        margin-top: 8px;
        font-size: 0.85em;
    }

    .most-viewed-post a {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }

    .most-viewed-post .post-views {
        align-self: flex-end;
    }
}

@media (max-width: 480px) {

    .post-meta .views-count,
    .trending-post-meta .views-count {
        margin-left: 6px;
        font-size: 0.75em;
        padding: 1px 6px;
    }

    .views-count i {
        font-size: 0.7em;
    }
}

/* Views Count Animation */
@keyframes viewsCountPulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }

    100% {
        transform: scale(1);
    }
}

.views-count.animate {
    animation: viewsCountPulse 0.3s ease-in-out;
}

/* High Views Count Styling */
.views-count.high-views {
    color: #DC2626;
    font-weight: 600;
}

.views-count.high-views i {
    color: #DC2626;
}

/* Views Count Tooltip */
.views-count[title]:hover::after {
    content: attr(title);
    position: absolute;
    background: #333;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.8em;
    white-space: nowrap;
    z-index: 1000;
    margin-top: -30px;
    margin-left: -50%;
}

/* Views Count in Search Results */
.search-results .views-count {
    font-size: 0.8em;
    color: #888;
    margin-left: 10px;
}

/* Views Count in Related Posts */
.related-posts .views-count {
    font-size: 0.85em;
    color: #666;
    margin-left: 8px;
}

/* Views Count in Popular Posts */
.popular-posts .views-count {
    font-size: 0.9em;
    color: #DC2626;
    font-weight: 600;
}

/* Views Count in Category Pages */
.category-posts .views-count {
    font-size: 0.85em;
    color: #666;
    margin-left: 10px;
}

/* Views Count in Tag Pages */
.tag-posts .views-count {
    font-size: 0.85em;
    color: #666;
    margin-left: 10px;
}

/* Popular Posts Widget Styles */
.ebc-popular-posts-widget,
.ebc-popular-pages-widget {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.popular-posts-list,
.popular-pages-list {
    padding: 0;
    margin: 0;
}

.popular-post-item,
.popular-page-item {
    display: flex;
    align-items: flex-start;
    padding: 15px;
    border-bottom: 1px solid #f0f0f0;
    transition: background-color 0.3s ease;
}

.popular-post-item:last-child,
.popular-page-item:last-child {
    border-bottom: none;
}

.popular-post-item:hover,
.popular-page-item:hover {
    background-color: #f8f9fa;
}

.popular-post-item .post-thumbnail,
.popular-page-item .page-thumbnail {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    margin-right: 12px;
    border-radius: 6px;
    overflow: hidden;
}

.popular-post-item .post-thumbnail img,
.popular-page-item .page-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.popular-post-item .no-thumbnail,
.popular-page-item .no-thumbnail {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
}

.popular-post-item .post-content,
.popular-page-item .page-content {
    flex: 1;
    min-width: 0;
}

.popular-post-item .post-title,
.popular-page-item .page-title {
    margin: 0 0 8px 0;
    font-size: 14px;
    line-height: 1.4;
    font-weight: 600;
}

.popular-post-item .post-title a,
.popular-page-item .page-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.popular-post-item .post-title a:hover,
.popular-page-item .page-title a:hover {
    color: #667eea;
}

.popular-post-item .post-meta,
.popular-page-item .page-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 12px;
    color: #666;
    margin-bottom: 6px;
}

.popular-post-item .post-date,
.popular-page-item .page-date {
    display: flex;
    align-items: center;
    gap: 4px;
}

.popular-post-item .post-views,
.popular-page-item .page-views {
    display: flex;
    align-items: center;
    gap: 4px;
    color: #DC2626;
    font-weight: 600;
}

.popular-post-item .post-excerpt,
.popular-page-item .page-excerpt {
    margin: 0;
    font-size: 12px;
    line-height: 1.4;
    color: #666;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.no-posts,
.no-pages {
    padding: 20px;
    text-align: center;
    color: #666;
    font-style: italic;
}

/* Post Views in Single Post/Page */
.post-views,
.page-views {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: #666;
    font-size: 14px;
}

.post-views i,
.page-views i {
    color: #DC2626;
    font-size: 12px;
}

.post-views .views-count,
.page-views .views-count {
    font-weight: 600;
    color: #DC2626;
}

/* Responsive Design for Popular Widgets */
@media (max-width: 768px) {

    .popular-post-item,
    .popular-page-item {
        padding: 12px;
    }

    .popular-post-item .post-thumbnail,
    .popular-page-item .page-thumbnail {
        width: 50px;
        height: 50px;
        margin-right: 10px;
    }

    .popular-post-item .post-title,
    .popular-page-item .page-title {
        font-size: 13px;
    }

    .popular-post-item .post-meta,
    .popular-page-item .page-meta {
        font-size: 11px;
        gap: 8px;
    }

    .popular-post-item .post-excerpt,
    .popular-page-item .page-excerpt {
        font-size: 11px;
    }
}

@media (max-width: 480px) {

    .popular-post-item,
    .popular-page-item {
        padding: 10px;
    }

    .popular-post-item .post-thumbnail,
    .popular-page-item .page-thumbnail {
        width: 45px;
        height: 45px;
        margin-right: 8px;
    }

    .popular-post-item .post-title,
    .popular-page-item .page-title {
        font-size: 12px;
    }

    .popular-post-item .post-meta,
    .popular-page-item .page-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
}

/* ========================================
   TOP READS WIDGET STYLES
   ======================================== */

/**
 * Top Reads Widget Styles
 * Matches the design from the provided image
 */
.ebc-top-reads-widget {
    margin-bottom: 2rem;
    padding: 1.0rem !important;
}

.top-reads-header {
    display: flex;
    align-items: center;
    margin-bottom: 16px;
}

.top-reads-header i {
    color: #6c757d;
    font-size: 16px;
    margin-right: 8px;
    background: transparent;
    padding: 0;
    border-radius: 0;
}

.top-reads-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #222;
    margin: 0;
    line-height: 1.3;
}

.top-reads-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.top-reads-item {
    padding: 12px 0px 0px 0px;
    transition: all 0.2s ease;
}

.top-reads-item:hover {
    background: #ffffff;
    border-radius: 6px;
    padding: 12px 8px;
    margin: 0 -8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.article-title {
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
    margin: 0 0 6px 0;
}

.article-title a {
    color: #212529;
    text-decoration: none;
    transition: color 0.2s ease;
}

.article-title a:hover {
    color: #0d6efd;
}

.article-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    font-size: 12px;
    color: #6c757d;
    line-height: 1.2;
}

.article-author {
    font-weight: 400;
    color: #6c757d;
}

.article-read-time {
    color: #6c757d;
}

.article-views {
    color: #6c757d;
}

/* Separator line between items */
.top-reads-separator {
    border: none;
    height: 1px;
    background: #dee2e6;
    margin-top: 1rem;
    opacity: 1;
}

/* Responsive design for Top Reads Widget */
@media (max-width: 768px) {
    .top-reads-widget {
        padding: 12px;
        border-radius: 6px;
    }

    .top-reads-header {
        margin-bottom: 12px;
        padding-bottom: 10px;
    }

    .top-reads-title {
        font-size: 1.1rem;
    }

    .article-title {
        font-size: 16px;
    }

    .article-meta {
        font-size: 12px;
        gap: 5px;
    }
}

/* Dark mode support for Top Reads Widget */
@media (prefers-color-scheme: dark) {
    .top-reads-widget {
        background: #343a40;
        color: #f8f9fa;
        border-color: #495057;
    }

    .top-reads-header i {
        color: #adb5bd;
    }

    .top-reads-title {
        color: #f8f9fa;
    }

    .article-title a {
        color: #f8f9fa;
    }

    .article-title a:hover {
        color: #86b7fe;
    }

    .article-author,
    .article-read-time,
    .article-views {
        color: #adb5bd;
    }

    .top-reads-separator {
        background: #495057;
    }

    .top-reads-item:hover {
        background: #495057;
    }
}

/* ========================================
   UNIVERSAL WIDGET IMAGE ROUNDED CORNERS
   ======================================== */

/* Ensure all images in widgets have rounded corners */
.widget img,
.widget-area img,
.sidebar img,
.footer img,
.header img,
[class*="widget"] img,
[class*="carousel"] img,
[class*="slider"] img,
[class*="gallery"] img {
    border-radius: 8px !important;
    overflow: hidden;
}

/* Widget containers that hold images */
.widget .thumbnail,
.widget .image,
.widget .img,
.widget .photo,
.widget .picture {
    border-radius: 8px;
    overflow: hidden;
}

/* Responsive adjustments for widget images */
@media (max-width: 768px) {

    .widget img,
    .widget-area img,
    .sidebar img {
        border-radius: 6px !important;
    }
}

/* ========================================
   WIDGET HEADER ALIGNMENT STYLES
   ======================================== */

/* Widget header alignment support */
.widget-header[style*="text-align: center"] {
    justify-content: center;
}

.widget-header[style*="text-align: right"] {
    justify-content: flex-end;
}

.widget-header[style*="text-align: left"] {
    justify-content: flex-start;
}

/* Specific widget header alignments */
.trending-header[style*="text-align: center"],
.video-header[style*="text-align: center"],
.banner-header[style*="text-align: center"],
.newsletter-header[style*="text-align: center"],
.authors-header[style*="text-align: center"],
.submit-header[style*="text-align: center"],
.top-reads-header[style*="text-align: center"] {
    justify-content: center;
}

.trending-header[style*="text-align: right"],
.video-header[style*="text-align: right"],
.banner-header[style*="text-align: right"],
.newsletter-header[style*="text-align: right"],
.authors-header[style*="text-align: right"],
.submit-header[style*="text-align: right"],
.top-reads-header[style*="text-align: right"] {
    justify-content: flex-end;
}

.trending-header[style*="text-align: left"],
.video-header[style*="text-align: left"],
.banner-header[style*="text-align: left"],
.newsletter-header[style*="text-align: left"],
.authors-header[style*="text-align: left"],
.submit-header[style*="text-align: left"],
.top-reads-header[style*="text-align: left"] {
    justify-content: flex-start;
}

/* Single Post Content Styling - Only for single.php the_content() */
.single .content-wrapper {
    margin: 0 auto;
    padding: 0rem 0rem;
}

.single .single-post {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.single .entry-header {
    padding: 2rem 2rem 1rem;
    border-bottom: 1px solid #f0f0f0;
}

.single .entry-title {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: #222;
    font-family: serif, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

.single .post-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 1rem;
}

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

.single .post-meta i {
    color: #e51425;
    font-size: 0.8rem;
}

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

.single .post-meta a:hover {
    color: #e51425;
}

.single .entry-content {
    padding: 2rem;
    font-size: 1.1rem;
    line-height: 1.8;
    color: #333;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}
.single .entry-footer {
    padding: 2rem;
    font-size: 1.1rem;
    line-height: 1.8;
    color: #333;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

.single .entry-content p {
    margin-bottom: 1.5rem;
    text-align: justify;
    word-spacing: 0.5px;
    letter-spacing: 0.2px;
}

.single .entry-content h1,
.single .entry-content h2,
.single .entry-content h3,
.single .entry-content h4,
.single .entry-content h5,
.single .entry-content h6 {
    font-family: serif, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    font-weight: 500;
    line-height: 1.3;
    margin: 2.5rem 0 1rem;
    color: #222;
    padding-bottom: 0.5rem;
}

.single .entry-content h1 {
    font-size: 2.2rem;
}

.single .entry-content h2 {
    font-size: 1.9rem;
}

.single .entry-content h3 {
    font-size: 1.6rem;
}

.single .entry-content h4 {
    font-size: 1.4rem;
}

.single .entry-content h5 {
    font-size: 1.2rem;
}

.single .entry-content h6 {
    font-size: 1.1rem;
}

.single .entry-content ul,
.single .entry-content ol {
    margin: 1.5rem 0;
    padding-left: 2rem;
}

.single .entry-content li {
    margin-bottom: 0.5rem;
    line-height: 1.7;
}

.single .entry-content blockquote {
    margin: 2rem 0;
    padding: 1.5rem 2rem;
    background: #f8f9fa;
    border-left: 4px solid #e51425;
    font-style: italic;
    font-size: 1.1rem;
    line-height: 1.7;
    color: #555;
}

.single .entry-content blockquote p {
    margin-bottom: 0;
}

.single .entry-content code {
    background: #f1f3f4;
    padding: 0.2rem 0.4rem;
    border-radius: 3px;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 0.9rem;
    color: #d73a49;
}

.single .entry-content pre {
    background: #f6f8fa;
    padding: 1rem;
    border-radius: 6px;
    overflow-x: auto;
    margin: 1.5rem 0;
    border: 1px solid #e1e4e8;
}

.single .entry-content pre code {
    background: none;
    padding: 0;
    color: #24292e;
}

.single .entry-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.single .entry-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.single .entry-content th,
.single .entry-content td {
    padding: 0.75rem 1rem;
    text-align: left;
    border-bottom: 1px solid #e1e4e8;
}

.single .entry-content th {
    background: #f6f8fa;
    font-weight: 600;
    color: #24292e;
}

.single .entry-content tr:hover {
    background: #f8f9fa;
}

.single .entry-content a {
    color: #e51425;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: all 0.3s ease;
}

.single .entry-content a:hover {
    color: #8a0505;
    border-bottom-color: #8a0505;
}

.single .entry-content strong {
    font-weight: 600;
    color: #222;
}

.single .entry-content em {
    font-style: italic;
    color: #555;
}

/* Responsive adjustments for single post content */
@media (max-width: 768px) {
    .single .content-wrapper {
        padding: 0rem;
    }
    
    .single .entry-header {
        padding: 1.5rem 1.5rem 1rem;
    }
    
    .single .entry-title {
        font-size: 2rem;
    }
    
    .single .entry-content {
        padding: 1.5rem;
        font-size: 1rem;
        line-height: 1.7;
    }
    
    .single .entry-content h1 {
        font-size: 1.8rem;
    }
    
    .single .entry-content h2 {
        font-size: 1.6rem;
    }
    
    .single .entry-content h3 {
        font-size: 1.4rem;
    }
    
    .single .post-meta {
        gap: 1rem;
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .single .entry-header {
        padding: 1rem;
    }
    
    .single .entry-content {
        padding: 1rem;
        font-size: 0.95rem;
        line-height: 1.6;
    }
    
    .single .entry-title {
        font-size: 1.6rem;
    }
    
    .single .post-meta {
        gap: 0.5rem;
    }
}