/*
Theme Name: ParsiNews
Theme URI: https://example.com/parsinews
Author: ویدا ارتباط بهتاش
Author URI: https://vidab.ir
Description: A modern, premium, fully responsive RTL WordPress theme designed specifically for Farsi news portals, news agencies, and magazines.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: parsinews
Domain Path: /languages
Tags: blog, news, rtl-language-support, custom-menu, featured-images, flexible-header, footer-widgets, translation-ready, grid-layout, two-columns
*/

/* ==========================================================================
   1. Theme Variables & Reset
   ========================================================================== */
:root {
    --primary-color: #0c2240;
    --primary-hover: #15345d;
    --accent-color: #e53e3e;
    --accent-hover: #c53030;
    --accent-green: #38a169;
    --white: #ffffff;
    --bg-main: #f7fafc;
    --bg-card: #ffffff;
    --bg-dark: #1a202c;
    --bg-darker: #0f1219;
    --text-main: #2d3748;
    --text-muted: #718096;
    --text-light: #a0aec0;
    --border-color: #edf2f7;
    --border-dark: #2d3748;
    --font-sans: 'Vazirmatn', sans-serif;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05), 0 1px 2px rgba(0, 0, 0, 0.02);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.04);
    --transition-base: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --border-radius: 8px;
    --border-radius-sm: 4px;
}

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

body {
    font-family: var(--font-sans);
    font-size: 15px;
    line-height: 1.8;
    background-color: var(--bg-main);
    color: var(--text-main);
    direction: rtl;
    text-align: right;
    overflow-x: hidden;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition-base);
}

a:hover {
    color: var(--accent-color);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul,
ol {
    list-style: none;
}

input,
button,
select,
textarea {
    font-family: var(--font-sans);
    font-size: 14px;
    outline: none;
}

/* ==========================================================================
   2. Structure & Layout
   ========================================================================== */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.site-main {
    padding: 30px 0;
}

.layout-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 30px;
}

@media (min-width: 992px) {
    .layout-grid {
        grid-template-columns: minmax(0, 8fr) minmax(0, 4fr);
    }
}

.main-content-area,
.sidebar {
    min-width: 0;
    max-width: 100%;
}

.main-content-area {
    overflow: hidden;
}

/* ==========================================================================
   3. Header & Navigation
   ========================================================================== */
.site-header {
    background-color: var(--bg-card);
    box-shadow: var(--shadow-sm);
    border-bottom: 1px solid var(--border-color);
}

/* Top Bar */
.top-bar {
    background-color: var(--primary-color);
    color: var(--bg-main);
    font-size: 12px;
    padding: 8px 0;
    border-bottom: 3px solid var(--accent-color);
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.top-bar-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.top-bar-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

#top-menu-list {
    display: flex;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 15px;
}

#top-menu-list li {
    display: inline-block;
}

#top-menu-list li a {
    color: rgba(255, 255, 255, 0.85) !important;
    text-decoration: none;
    font-size: 12px;
    font-weight: 500;
    transition: var(--transition-base);
}

#top-menu-list li a:hover {
    color: var(--accent-color) !important;
}

.top-bar-social {
    display: flex;
    align-items: center;
    gap: 10px;
}

.top-bar-social a {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.85);
    transition: var(--transition-base);
}

.top-bar-social a:hover {
    color: var(--accent-color);
}

.top-bar a {
    color: var(--bg-main);
}

.top-bar a:hover {
    color: var(--accent-color);
}

/* Branding Area */
.header-middle {
    padding: 20px 0;
}

.header-middle .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.site-branding {
    display: flex;
    align-items: center;
    gap: 15px;
}

.site-logo img {
    max-height: 60px;
}

.site-title {
    font-size: 28px;
    font-weight: 800;
    color: var(--primary-color);
    margin: 0;
}

.site-title a {
    color: inherit;
}

.site-description {
    font-size: 12px;
    color: var(--text-muted);
}

.header-ad {
    flex-grow: 1;
    max-width: 728px;
    height: 90px;
    background: linear-gradient(135deg, #e2e8f0 0%, #cbd5e0 100%);
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 14px;
    font-weight: bold;
    border: 1px dashed var(--text-light);
}

/* Main Navigation */
.main-navigation {
    background-color: var(--primary-color);
    color: var(--white);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}

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

.nav-menu {
    display: flex;
    align-items: center;
}

.nav-menu>li {
    position: relative;
}

.nav-menu>li>a {
    display: block;
    padding: 18px 22px;
    color: #ffffff !important;
    font-weight: 500;
    font-size: 14px;
    position: relative;
    transition: var(--transition-base);
}

.nav-menu>li>a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 60%;
    height: 3px;
    background-color: var(--accent-color);
    transition: var(--transition-base);
    transform-origin: center;
}

.nav-menu>li>a:hover::after,
.nav-menu>li.current-menu-item>a::after {
    transform: translateX(-50%) scaleX(1);
}

.nav-menu>li>a:hover,
.nav-menu>li.current-menu-item>a {
    background-color: rgba(255, 255, 255, 0.05);
    color: #ffffff !important;
}

/* Submenus */
.nav-menu li ul {
    position: absolute;
    top: 100%;
    right: 0;
    background-color: var(--bg-card);
    box-shadow: var(--shadow-lg);
    border-top: 3px solid var(--accent-color);
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition-base);
    z-index: 999;
}

.nav-menu li:hover>ul {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-menu li ul a {
    display: block;
    padding: 10px 15px;
    color: var(--text-main);
    font-size: 14px;
    border-bottom: 1px solid var(--border-color);
}

.nav-menu li ul a:hover {
    background-color: var(--bg-main);
    color: var(--accent-color);
    padding-right: 20px;
}

/* Search Box in Nav */
.header-search-toggle {
    background: none;
    border: none;
    color: var(--white);
    font-size: 18px;
    cursor: pointer;
    padding: 18px 20px;
    display: flex;
    align-items: center;
    transition: var(--transition-base);
}

.header-search-toggle:hover {
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--accent-color);
}

.header-search-form-wrapper {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: var(--primary-color);
    padding: 15px;
    box-shadow: var(--shadow-lg);
    display: none;
    z-index: 99;
}

.header-search-form-wrapper form {
    display: flex;
    max-width: 600px;
    margin: 0 auto;
}

.header-search-form-wrapper input {
    flex-grow: 1;
    padding: 10px 15px;
    border: none;
    border-radius: 0 var(--border-radius-sm) var(--border-radius-sm) 0;
}

.header-search-form-wrapper button {
    background-color: var(--accent-color);
    color: var(--white);
    border: none;
    padding: 10px 25px;
    border-radius: var(--border-radius-sm) 0 0 var(--border-radius-sm);
    cursor: pointer;
    font-weight: bold;
}

.header-search-form-wrapper button:hover {
    background-color: var(--accent-hover);
}

/* Mobile Menu Toggle */
.mobile-nav-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--white);
    font-size: 24px;
    cursor: pointer;
    padding: 10px;
}

/* Mobile Menu Drawer */
.mobile-menu-drawer {
    position: fixed;
    top: 0;
    bottom: 0;
    right: -280px;
    width: 280px;
    background-color: var(--bg-dark);
    color: var(--white);
    z-index: 9999;
    box-shadow: var(--shadow-lg);
    transition: var(--transition-base);
    padding: 20px;
    overflow-y: auto;
}

.mobile-menu-drawer.open {
    right: 0;
}

.mobile-menu-overlay {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 9998;
    display: none;
}

.mobile-menu-drawer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    border-bottom: 1px solid var(--border-dark);
    padding-bottom: 15px;
}

.mobile-menu-close {
    background: none;
    border: none;
    color: var(--white);
    font-size: 24px;
    cursor: pointer;
}

.mobile-menu-drawer ul li a {
    display: block;
    padding: 12px 10px;
    color: var(--white);
    font-weight: 500;
    border-bottom: 1px solid var(--border-dark);
}

.mobile-menu-drawer ul li a:hover {
    color: var(--accent-color);
    background-color: rgba(255, 255, 255, 0.02);
}

.mobile-menu-drawer ul ul {
    padding-right: 15px;
    background-color: rgba(0, 0, 0, 0.1);
}

/* Responsive Menu Rules */
@media (max-width: 991px) {
    .nav-menu {
        display: none;
    }

    .mobile-nav-toggle {
        display: block;
    }

    .header-ad {
        display: none;
    }

    /* Top Bar Mobile/PWA Optimization */
    .top-bar .container {
        flex-direction: column;
        gap: 8px;
        text-align: center;
        padding: 5px 10px;
    }

    .top-bar-right {
        width: 100%;
        justify-content: center;
    }

    .top-bar-left {
        width: 100%;
        flex-direction: column;
        gap: 8px;
    }

    #top-menu-list {
        display: flex;
        overflow-x: auto;
        white-space: nowrap;
        width: 100%;
        gap: 15px;
        scrollbar-width: none;
        padding: 4px 10px;
        -webkit-overflow-scrolling: touch;
    }

    #top-menu-list::-webkit-scrollbar {
        display: none;
    }

    #top-menu-list li {
        display: inline-block;
        flex: 0 0 auto;
    }

    #top-menu-list li a {
        white-space: nowrap;
        font-size: 11px;
    }

    .top-bar-social {
        justify-content: center;
        width: 100%;
    }
}

/* ==========================================================================
   4. Breaking News Ticker (خبر فوری)
   ========================================================================== */
.ticker-wrapper {
    background-color: var(--bg-card);
    border-bottom: 1px solid var(--border-color);
    padding: 10px 0;
}

.ticker-container {
    display: flex;
    align-items: center;
    height: 35px;
    overflow: hidden;
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
}

.ticker-label {
    background-color: var(--accent-color);
    color: var(--white);
    padding: 0 15px;
    height: 100%;
    display: flex;
    align-items: center;
    font-weight: bold;
    font-size: 14px;
    z-index: 10;
    position: relative;
}

.ticker-label::after {
    content: '';
    position: absolute;
    top: 0;
    left: -10px;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 35px 0 0 10px;
    border-color: transparent transparent transparent var(--accent-color);
}

.ticker-content {
    flex-grow: 1;
    height: 100%;
    position: relative;
    overflow: hidden;
    padding-right: 20px;
}

.ticker-list {
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
}

.ticker-item {
    height: 35px;
    display: flex;
    align-items: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    opacity: 0;
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    transition: opacity 0.5s ease-in-out, transform 0.5s ease-in-out;
    transform: translateY(20px);
}

.ticker-item.active {
    opacity: 1;
    transform: translateY(0);
}

.ticker-item a {
    color: var(--text-main);
    font-weight: 500;
}

.ticker-item a:hover {
    color: var(--accent-color);
}

/* ==========================================================================
   5. Hero News Grid (ویترین خبری)
   ========================================================================== */
.hero-news-section {
    margin-bottom: 30px;
}

.hero-news-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

@media (min-width: 768px) {
    .hero-news-grid {
        grid-template-columns: 2fr 1fr;
    }
}

@media (min-width: 1200px) {
    .hero-news-grid {
        grid-template-columns: 6fr 3fr 3fr;
    }
}

/* Main Hero Post (تیتر یک) */
.hero-main-post {
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
    height: 450px;
    box-shadow: var(--shadow-md);
}

.hero-post-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-base);
}

.hero-main-post:hover .hero-post-img {
    transform: scale(1.05);
}

.hero-post-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(12, 34, 64, 0.95) 0%, rgba(12, 34, 64, 0.4) 60%, transparent 100%);
    padding: 30px 20px 20px;
    color: var(--white);
}

.hero-post-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 10px;
    font-size: 12px;
}

.hero-post-category {
    background-color: var(--accent-color);
    color: var(--white);
    padding: 2px 8px;
    border-radius: var(--border-radius-sm);
    font-weight: bold;
}

.hero-post-title {
    font-size: 22px;
    font-weight: 800;
    line-height: 1.5;
    margin-bottom: 10px;
}

.hero-post-title a {
    color: var(--white);
}

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

.hero-post-excerpt {
    font-size: 13px;
    opacity: 0.9;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Side Hero Posts (ستون‌های فرعی) */
.hero-side-column {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.hero-side-post {
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
    height: 215px;
    box-shadow: var(--shadow-md);
}

.hero-side-post:hover .hero-post-img {
    transform: scale(1.05);
}

.hero-side-post .hero-post-overlay {
    padding: 15px;
    background: linear-gradient(to top, rgba(12, 34, 64, 0.9) 0%, rgba(12, 34, 64, 0.3) 70%, transparent 100%);
}

.hero-side-post .hero-post-title {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 0;
}

/* Special Headlines List (تیترهای ویژه) */
.hero-special-headlines {
    background-color: var(--bg-card);
    border-radius: var(--border-radius);
    padding: 20px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
}

.special-headlines-header {
    font-size: 16px;
    font-weight: bold;
    color: var(--primary-color);
    border-bottom: 2px solid var(--accent-color);
    padding-bottom: 10px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.special-headlines-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex-grow: 1;
}

.special-headline-item {
    display: flex;
    gap: 10px;
    border-bottom: 1px dashed var(--border-color);
    padding-bottom: 10px;
}

.special-headline-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.special-headline-counter {
    background-color: var(--bg-main);
    color: var(--primary-color);
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
    flex-shrink: 0;
}

.special-headline-title {
    font-size: 13px;
    font-weight: 600;
    line-height: 1.6;
}

.special-headline-title a {
    color: var(--text-main);
}

.special-headline-title a:hover {
    color: var(--accent-color);
}

/* ==========================================================================
   6. News Widgets & Section Layouts
   ========================================================================== */
/* Section Headers */
.section-header {
    border-bottom: 2px solid var(--border-color);
    margin-bottom: 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.section-title {
    font-size: 18px;
    font-weight: 800;
    color: var(--primary-color);
    margin: 0;
    padding-bottom: 10px;
    border-bottom: 3px solid var(--accent-color);
    position: relative;
    top: 2px;
}

.section-title-link {
    font-size: 12px;
    color: var(--accent-color);
    font-weight: bold;
}

.section-title-link:hover {
    color: var(--primary-color);
}

/* Card Styling */
.news-card {
    background-color: var(--bg-card);
    border-radius: var(--border-radius);
    overflow: hidden;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    transition: var(--transition-base);
    display: flex;
    flex-direction: column;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.news-card-img-wrapper {
    position: relative;
    height: 180px;
    overflow: hidden;
}

.news-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-base);
}

.news-card:hover .news-card-img {
    transform: scale(1.05);
}

.news-card-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: var(--primary-color);
    color: var(--white);
    padding: 2px 8px;
    font-size: 11px;
    font-weight: bold;
    border-radius: var(--border-radius-sm);
}

.news-card-content {
    padding: 15px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.news-card-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 11px;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.news-card-title {
    font-size: 14px;
    font-weight: 700;
    line-height: 1.6;
    margin-bottom: 10px;
}

.news-card-title a {
    color: var(--text-main);
}

.news-card-title a:hover {
    color: var(--accent-color);
}

.news-card-excerpt {
    font-size: 12.5px;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-card-footer {
    margin-top: auto;
    border-top: 1px solid var(--border-color);
    padding-top: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 11px;
}

.read-more-btn {
    color: var(--accent-color);
    font-weight: bold;
}

.read-more-btn:hover {
    color: var(--primary-color);
}

/* Category Grid Layouts */
.category-section-wrapper {
    margin-bottom: 40px;
}

.category-grid-2x2 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

@media (min-width: 576px) {
    .category-grid-2x2 {
        grid-template-columns: 1fr 1fr;
    }
}

/* Horizontal List Cards (Alternative Layout) */
.list-card {
    display: flex;
    gap: 15px;
    background-color: var(--bg-card);
    border-radius: var(--border-radius);
    overflow: hidden;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    padding: 12px;
    transition: var(--transition-base);
}

.list-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.list-card-img-wrapper {
    width: 120px;
    height: 90px;
    border-radius: var(--border-radius-sm);
    overflow: hidden;
    flex-shrink: 0;
}

.list-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-base);
}

.list-card:hover .list-card-img {
    transform: scale(1.05);
}

.list-card-content {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.list-card-title {
    font-size: 13px;
    font-weight: 700;
    line-height: 1.6;
    margin-bottom: 5px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.list-card-title a {
    color: var(--text-main);
}

.list-card-title a:hover {
    color: var(--accent-color);
}

.list-card-meta {
    font-size: 11px;
    color: var(--text-muted);
}

/* Dual Category Column Layout */
.dual-category-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    margin-bottom: 40px;
}

@media (min-width: 768px) {
    .dual-category-row {
        grid-template-columns: 1fr 1fr;
    }
}

.category-column-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* ==========================================================================
   7. Homepage Tabs Block
   ========================================================================== */
.tabs-block {
    background-color: var(--bg-card);
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    margin-bottom: 30px;
    overflow: hidden;
}

.tabs-nav {
    display: flex;
    background-color: var(--bg-main);
    border-bottom: 1px solid var(--border-color);
}

.tab-btn {
    flex-grow: 1;
    background: none;
    border: none;
    padding: 15px 10px;
    font-weight: bold;
    font-size: 13.5px;
    color: var(--text-muted);
    cursor: pointer;
    border-bottom: 3px solid transparent;
    transition: var(--transition-base);
    text-align: center;
}

.tab-btn:hover {
    color: var(--primary-color);
}

.tab-btn.active {
    color: var(--accent-color);
    background-color: var(--bg-card);
    border-bottom-color: var(--accent-color);
}

.tabs-content {
    padding: 20px;
}

.tab-panel {
    display: none;
}

.tab-panel.active {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* ==========================================================================
   8. Multimedia/Video Showcase
   ========================================================================== */
.multimedia-section {
    background-color: var(--bg-dark);
    color: var(--white);
    padding: 40px 0;
    margin-bottom: 40px;
    border-radius: var(--border-radius);
}

.multimedia-section .section-title {
    color: var(--white);
    border-bottom-color: var(--border-dark);
}

.multimedia-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

@media (min-width: 576px) {
    .multimedia-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (min-width: 992px) {
    .multimedia-grid {
        grid-template-columns: 1fr 1fr 1fr 1fr;
    }
}

.media-card {
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
    height: 200px;
    box-shadow: var(--shadow-md);
}

.media-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-base);
}

.media-card:hover .media-card-img {
    transform: scale(1.08);
}

.media-card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.3) 70%, transparent 100%);
    padding: 15px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    height: 100%;
}

.media-play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: var(--accent-color);
    color: var(--white);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    transition: var(--transition-base);
    opacity: 0.9;
    box-shadow: 0 0 15px rgba(229, 62, 62, 0.4);
}

.media-card:hover .media-play-icon {
    background-color: var(--white);
    color: var(--accent-color);
    transform: translate(-50%, -50%) scale(1.1);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.6);
}

.media-card-title {
    font-size: 13px;
    font-weight: 700;
    line-height: 1.5;
    color: var(--white);
}

.media-card-title a {
    color: inherit;
}

/* ==========================================================================
   9. Sidebar Widgets
   ========================================================================== */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.widget {
    background-color: var(--bg-card);
    border-radius: var(--border-radius);
    padding: 20px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

.widget-title {
    font-size: 15px;
    font-weight: 800;
    color: var(--primary-color);
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 10px;
    margin-bottom: 15px;
    position: relative;
}

.widget-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    right: 0;
    width: 60px;
    height: 2px;
    background-color: var(--accent-color);
}

/* Search Widget */
.widget_search form {
    display: flex;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    overflow: hidden;
}

.widget_search input {
    flex-grow: 1;
    border: none;
    padding: 10px 12px;
    background-color: var(--bg-main);
}

.widget_search button {
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    padding: 0 15px;
    cursor: pointer;
    transition: var(--transition-base);
}

.widget_search button:hover {
    background-color: var(--accent-color);
}

/* Category Widget */
.widget_categories ul li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
    padding: 8px 0;
}

.widget_categories ul li:last-child {
    border-bottom: none;
}

.widget_categories ul li a {
    font-size: 13.5px;
    font-weight: 600;
    color: var(--text-main);
}

.widget_categories ul li a:hover {
    color: var(--accent-color);
    padding-right: 5px;
}

.widget_categories .count {
    background-color: var(--bg-main);
    color: var(--text-muted);
    font-size: 11px;
    font-weight: bold;
    padding: 2px 8px;
    border-radius: 10px;
}

/* Sidebar Hot List Widget */
.sidebar-hot-news {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.hot-news-item {
    display: flex;
    gap: 10px;
    border-bottom: 1px dashed var(--border-color);
    padding-bottom: 10px;
}

.hot-news-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.hot-news-img {
    width: 70px;
    height: 55px;
    object-fit: cover;
    border-radius: var(--border-radius-sm);
    flex-shrink: 0;
}

.hot-news-content {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.hot-news-title {
    font-size: 12px;
    font-weight: 700;
    line-height: 1.5;
}

.hot-news-title a {
    color: var(--text-main);
}

.hot-news-title a:hover {
    color: var(--accent-color);
}

.hot-news-meta {
    font-size: 10px;
    color: var(--text-light);
}

/* Sidebar Newsletter Widget */
.newsletter-widget {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-hover) 100%);
    color: var(--white);
    border: none;
}

.newsletter-widget .widget-title {
    color: var(--white);
    border-bottom-color: rgba(255, 255, 255, 0.1);
}

.newsletter-widget .widget-title::after {
    background-color: var(--accent-color);
}

.newsletter-text {
    font-size: 12.5px;
    opacity: 0.9;
    margin-bottom: 15px;
}

.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.newsletter-form input {
    padding: 10px 12px;
    border: none;
    border-radius: var(--border-radius-sm);
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--white);
}

.newsletter-form input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.newsletter-form button {
    background-color: var(--accent-color);
    color: var(--white);
    border: none;
    padding: 10px;
    font-weight: bold;
    border-radius: var(--border-radius-sm);
    cursor: pointer;
    transition: var(--transition-base);
}

.newsletter-form button:hover {
    background-color: var(--accent-hover);
}

/* Dynamic Calendar/Archive Widgets styling */
.widget_calendar table {
    width: 100%;
    border-collapse: collapse;
    text-align: center;
    font-size: 13px;
    table-layout: fixed;
}

.widget_calendar caption {
    font-weight: bold;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.widget_calendar th {
    background-color: var(--bg-main);
    padding: 5px;
    font-weight: bold;
}

.widget_calendar td {
    padding: 5px;
    border: 1px solid var(--border-color);
}

/* ==========================================================================
   10. Single Post & Editorial Details
   ========================================================================== */
.post-detail-card {
    background-color: var(--bg-card);
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    margin-bottom: 30px;
}

.post-header {
    padding: 30px 25px 20px;
    border-bottom: 1px solid var(--border-color);
}

.breadcrumbs {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 15px;
}

.breadcrumbs a {
    color: var(--text-muted);
}

.breadcrumbs a:hover {
    color: var(--accent-color);
}

.post-title {
    font-size: 24px;
    font-weight: 800;
    line-height: 1.6;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.post-meta-details {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    font-size: 12px;
    color: var(--text-muted);
}

.post-meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.post-meta-item i {
    color: var(--accent-color);
}

.post-main-thumbnail {
    width: 100%;
    max-height: 500px;
    object-fit: cover;
}

.post-body-content {
    padding: 30px 25px;
    font-size: 16px;
    line-height: 2;
    color: var(--text-main);
}

.post-body-content p {
    margin-bottom: 20px;
}

.post-body-content blockquote {
    background-color: var(--bg-main);
    border-right: 4px solid var(--accent-color);
    padding: 15px 20px;
    margin: 25px 0;
    font-style: italic;
    font-size: 15px;
    color: var(--text-muted);
}

.post-tags {
    padding: 0 25px 20px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    border-bottom: 1px solid var(--border-color);
}

.tag-label {
    font-size: 13px;
    font-weight: bold;
    color: var(--primary-color);
    margin-left: 10px;
}

.post-tags a {
    background-color: var(--bg-main);
    color: var(--text-main);
    padding: 4px 12px;
    font-size: 12px;
    border-radius: var(--border-radius-sm);
    border: 1px solid var(--border-color);
}

.post-tags a:hover {
    background-color: var(--accent-color);
    color: var(--white);
    border-color: var(--accent-color);
}

/* Sharing & Action Box */
.post-share-box {
    padding: 15px 25px;
    background-color: var(--bg-main);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.share-title {
    font-size: 13px;
    font-weight: bold;
}

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

.share-btn {
    width: 32px;
    height: 32px;
    border-radius: var(--border-radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 14px;
}

.share-btn.telegram {
    background-color: #0088cc;
}

.share-btn.whatsapp {
    background-color: #25d366;
}

.share-btn.twitter {
    background-color: #1da1f2;
}

.share-btn.copy-link {
    background-color: var(--text-muted);
    cursor: pointer;
}

/* Author Details Box */
.post-author-box {
    background-color: var(--bg-card);
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    padding: 25px;
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

.author-avatar img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--border-color);
}

.author-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.author-name {
    font-size: 16px;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.author-bio {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.6;
}

/* Related Posts block */
.related-posts-block {
    margin-bottom: 30px;
}

.related-posts-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

@media (min-width: 576px) {
    .related-posts-grid {
        grid-template-columns: 1fr 1fr 1fr;
    }
}

.related-post-card {
    background-color: var(--bg-card);
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.related-post-img-wrapper {
    height: 130px;
}

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

.related-post-content {
    padding: 12px;
}

.related-post-title {
    font-size: 12.5px;
    font-weight: 700;
    line-height: 1.5;
}

.related-post-title a {
    color: var(--text-main);
}

.related-post-title a:hover {
    color: var(--accent-color);
}

/* ==========================================================================
   11. Comments Design
   ========================================================================== */
.comments-area {
    background-color: var(--bg-card);
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    padding: 25px;
    margin-bottom: 30px;
}

.comments-title {
    font-size: 16px;
    font-weight: bold;
    color: var(--primary-color);
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.comment-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 30px;
}

.comment-body {
    display: flex;
    gap: 15px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.comment-meta {
    flex-shrink: 0;
}

.comment-meta img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.comment-content-wrapper {
    flex-grow: 1;
}

.comment-author-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 5px;
}

.comment-author-name {
    font-size: 13.5px;
    font-weight: bold;
    color: var(--primary-color);
}

.comment-date {
    font-size: 11px;
    color: var(--text-light);
}

.comment-text {
    font-size: 13px;
    line-height: 1.7;
    color: var(--text-main);
    margin-bottom: 10px;
}

.comment-reply-link {
    font-size: 11px;
    color: var(--accent-color);
    font-weight: bold;
}

.comment-reply-link:hover {
    color: var(--primary-color);
}

/* Comment Form styling */
.comment-respond {
    border-top: 1px solid var(--border-color);
    padding-top: 20px;
}

.comment-reply-title {
    font-size: 15px;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.comment-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.comment-notes {
    font-size: 12px;
    color: var(--text-muted);
}

.comment-form-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
}

@media (min-width: 768px) {
    .comment-form-row {
        grid-template-columns: 1fr 1fr;
    }
}

.comment-form input,
.comment-form textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    background-color: var(--bg-main);
}

.comment-form input:focus,
.comment-form textarea:focus {
    border-color: var(--accent-color);
    background-color: var(--white);
}

.comment-form textarea {
    height: 120px;
    resize: vertical;
}

.comment-form-cookies-consent {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: var(--text-muted);
}

.comment-form-cookies-consent input {
    width: auto;
}

.form-submit button {
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    padding: 10px 25px;
    font-weight: bold;
    border-radius: var(--border-radius-sm);
    cursor: pointer;
    transition: var(--transition-base);
}

.form-submit button:hover {
    background-color: var(--accent-color);
}

/* ==========================================================================
   12. Footer
   ========================================================================== */
.site-footer {
    background-color: var(--bg-darker);
    color: var(--white);
    padding-top: 50px;
    border-top: 4px solid var(--accent-color);
}

.footer-widgets {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    padding-bottom: 40px;
    border-bottom: 1px solid var(--border-dark);
}

@media (min-width: 576px) {
    .footer-widgets {
        grid-template-columns: 1fr 1fr;
    }
}

@media (min-width: 992px) {
    .footer-widgets {
        grid-template-columns: 4fr 2fr 3fr 3fr;
    }
}

.footer-widget-title {
    color: var(--white);
    font-size: 15px;
    font-weight: bold;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-widget-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 40px;
    height: 2px;
    background-color: var(--accent-color);
}

.footer-about p {
    font-size: 13px;
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 20px;
}

.footer-social-links {
    display: flex;
    gap: 10px;
}

.footer-social-links a {
    background-color: var(--border-dark);
    color: var(--white);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

.footer-social-links a:hover {
    background-color: var(--accent-color);
}

.footer-links ul li {
    margin-bottom: 8px;
}

.footer-links ul li a {
    color: var(--text-light);
    font-size: 13px;
}

.footer-links ul li a:hover {
    color: var(--accent-color);
    padding-right: 5px;
}

.footer-news-item {
    display: flex;
    gap: 10px;
    margin-bottom: 12px;
}

.footer-news-item:last-child {
    margin-bottom: 0;
}

.footer-news-img {
    width: 50px;
    height: 40px;
    object-fit: cover;
    border-radius: var(--border-radius-sm);
    flex-shrink: 0;
}

.footer-news-title {
    font-size: 12px;
    line-height: 1.5;
}

.footer-news-title a {
    color: var(--white);
}

.footer-news-title a:hover {
    color: var(--accent-color);
}

/* Copyright Strip */
.site-footer-bottom {
    background-color: var(--bg-dark);
    padding: 20px 0;
    color: var(--text-light);
    font-size: 12px;
}

.site-footer-bottom .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.footer-bottom-links {
    display: flex;
    gap: 15px;
}

.footer-bottom-links a {
    color: var(--text-light);
}

.footer-bottom-links a:hover {
    color: var(--white);
}

/* Scroll to Top Button */
.back-to-top {
    position: fixed;
    bottom: 25px;
    left: 25px;
    background-color: var(--accent-color);
    color: var(--white);
    width: 40px;
    height: 40px;
    border-radius: var(--border-radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-base);
    z-index: 999;
    box-shadow: var(--shadow-md);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: var(--primary-color);
}

/* ==========================================================================
   13. Miscellaneous & Utility
   ========================================================================== */
.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin: 30px 0;
}

.pagination .page-numbers {
    padding: 8px 16px;
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    color: var(--text-main);
    font-weight: bold;
    font-size: 13.5px;
}

.pagination .page-numbers.current,
.pagination .page-numbers:hover {
    background-color: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
    word-wrap: normal !important;
}

.aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.alignright {
    float: right;
    margin-left: 20px;
    margin-bottom: 20px;
}

.alignleft {
    float: left;
    margin-right: 20px;
    margin-bottom: 20px;
}

/* ==========================================================================
   14. Premium Theme Visual Refinements & Customizer Elements
   ========================================================================== */
.widget_ad {
    background-color: var(--bg-card);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    margin-bottom: 30px;
    transition: var(--transition-base);
}

.widget_ad:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-color) !important;
}

.sidebar-ad-wrapper img {
    max-width: 100%;
    height: auto;
    display: block;
    transition: var(--transition-base);
}

.sidebar-ad-wrapper img:hover {
    transform: scale(1.02);
}

/* Card Hover Elevation Effect */
.news-card {
    position: relative;
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.news-card::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    opacity: 0;
    transition: opacity 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    z-index: -1;
}

.news-card:hover {
    transform: translateY(-8px);
}

.news-card:hover::after {
    opacity: 1;
}

/* Badge Refinements */
.news-card-badge {
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--accent-hover) 100%);
    box-shadow: 0 2px 8px rgba(229, 62, 62, 0.3);
    border-radius: 4px;
    padding: 3px 10px;
}

.hero-post-category {
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--accent-hover) 100%);
    box-shadow: 0 2px 10px rgba(229, 62, 62, 0.4);
    border-radius: 4px;
    padding: 3px 12px;
}

/* Glassmorphism effects */
.hero-post-overlay {
    background: linear-gradient(to top, rgba(12, 34, 64, 0.98) 0%, rgba(12, 34, 64, 0.6) 60%, transparent 100%);
    backdrop-filter: blur(2px);
}

.hero-side-post .hero-post-overlay {
    background: linear-gradient(to top, rgba(12, 34, 64, 0.95) 0%, rgba(12, 34, 64, 0.5) 75%, transparent 100%);
    backdrop-filter: blur(1px);
}

.media-card-overlay {
    background: linear-gradient(to top, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.4) 75%, transparent 100%);
    backdrop-filter: blur(1px);
}

/* Ticker bullet animation */
@keyframes pulse-bullet {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.3);
        opacity: 0.6;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.ticker-bullet {
    display: inline-block;
    animation: pulse-bullet 2s infinite ease-in-out;
}

/* Dynamic Live Clock style */
#live-clock {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 2px 8px;
    border-radius: var(--border-radius-sm);
    font-family: monospace, var(--font-sans);
    font-weight: bold;
}

/* ==========================================================================
   15. New Custom Widgets & Layout Blocks Styling
   ========================================================================== */
/* Prayer Times Widget */
.prayer-times-widget-content {
    background-color: var(--bg-card);
}

.prayer-city-select-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--accent-color);
    font-weight: bold;
    font-size: 13px;
    margin-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 8px;
}

.prayer-times-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px dashed var(--border-color);
    font-size: 13px;
}

.prayer-times-list li:last-child {
    border-bottom: none;
}

.prayer-label {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-main);
}

.prayer-label i {
    color: var(--text-light);
    width: 16px;
    text-align: center;
}

.prayer-times-list li:hover .prayer-label i {
    color: var(--accent-color);
}

.prayer-time {
    font-weight: bold;
    color: var(--primary-color);
}

/* Financial Rates Widget */
.financial-rates-table,
.league-standings-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12.5px;
    table-layout: fixed;
    word-wrap: break-word;
}

.financial-rates-table th,
.league-standings-table th {
    text-align: right;
    font-weight: bold;
    color: var(--text-muted);
    border-bottom: 2px solid var(--border-color);
    padding: 8px 5px;
}

.financial-rates-table td,
.league-standings-table td {
    padding: 10px 5px;
    border-bottom: 1px solid var(--border-color);
    overflow: hidden;
    text-overflow: ellipsis;
}

.financial-rates-table th:nth-child(1),
.financial-rates-table td:nth-child(1) {
    width: 45%;
}

.financial-rates-table th:nth-child(2),
.financial-rates-table td:nth-child(2) {
    width: 30%;
}

.financial-rates-table th:nth-child(3),
.financial-rates-table td:nth-child(3) {
    width: 25%;
}

.league-standings-table th:nth-child(1),
.league-standings-table td:nth-child(1) {
    width: 15%;
}

.league-standings-table th:nth-child(2),
.league-standings-table td:nth-child(2) {
    width: 50%;
}

.league-standings-table th:nth-child(3),
.league-standings-table td:nth-child(3) {
    width: 17%;
}

.league-standings-table th:nth-child(4),
.league-standings-table td:nth-child(4) {
    width: 18%;
}

.rate-indicator {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-left: 5px;
}

.rate-indicator.usd {
    background-color: #3182ce;
}

.rate-indicator.eur {
    background-color: #805ad5;
}

.rate-indicator.coin {
    background-color: #dd6b20;
}

.rate-indicator.gold {
    background-color: #d69e2e;
}

.rate-up {
    color: var(--accent-green);
    font-weight: bold;
}

.rate-down {
    color: var(--accent-color);
    font-weight: bold;
}

.financial-rates-footer {
    margin-top: 12px;
    font-size: 11px;
    color: var(--text-light);
    text-align: center;
}

/* League Standings Widget */
.league-team-logo {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    object-fit: cover;
    display: inline-block;
    vertical-align: middle;
    margin-left: 8px;
}

.team-name-cell {
    display: flex;
    align-items: center;
}

.league-standings-table tbody tr:hover {
    background-color: var(--bg-main);
}

.league-leader {
    background-color: rgba(56, 161, 105, 0.05);
}

.league-second {
    background-color: rgba(49, 130, 206, 0.05);
}

/* Poll Widget */
.poll-options-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.poll-option-label {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    background-color: var(--bg-main);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    cursor: pointer;
    font-size: 13px;
    transition: var(--transition-base);
}

.poll-option-label:hover {
    background-color: var(--white);
    border-color: var(--accent-color);
}

.poll-option-label input[type="radio"] {
    margin: 0;
}

.poll-submit-btn:hover {
    background-color: var(--accent-color) !important;
}

.poll-result-item {
    margin-bottom: 12px;
}

.poll-result-meta {
    display: flex;
    justify-content: space-between;
    font-size: 12.5px;
    margin-bottom: 4px;
    font-weight: 500;
}

.poll-progress-bar {
    height: 8px;
    background-color: var(--border-color);
    border-radius: 4px;
    overflow: hidden;
}

.poll-progress-fill {
    height: 100%;
    border-radius: 4px;
    transition: width 1s ease-in-out;
}

/* Homepage Photo Scroll Carousel Refinements */
.photo-reports-flex::-webkit-scrollbar {
    height: 6px;
}

.photo-reports-flex::-webkit-scrollbar-thumb {
    background-color: var(--text-light);
    border-radius: 3px;
}

.photo-reports-flex::-webkit-scrollbar-thumb:hover {
    background-color: var(--accent-color);
}

.photo-report-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--accent-color) !important;
}

.photo-report-item:hover .photo-report-img {
    transform: scale(1.05);
}

/* Special Dossier Elevation */
.dossier-card:hover {
    transform: translateY(-3px);
    border-color: var(--accent-color) !important;
    background-color: rgba(255, 255, 255, 0.08) !important;
}

.dossier-card:hover .dossier-card-img {
    transform: scale(1.03);
}

/* ==========================================================================
   12. PWA Features UI Styles (Pull to Refresh & Install Banner)
   ========================================================================== */

/* Pull to Refresh */
.ptr-element {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 50px;
    display: none;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    background-color: var(--primary-color);
    color: var(--white);
    z-index: 999999;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transform: translateY(-100%);
    transition: transform 0.15s ease-out, background-color 0.2s ease;
    font-size: 12px;
    font-weight: 500;
    gap: 4px;
}

.ptr-icon {
    font-size: 15px;
    transition: transform 0.1s linear;
}

.ptr-active {
    background-color: var(--primary-hover);
}

/* PWA Install Banner */
.pwa-install-banner {
    position: fixed;
    bottom: 20px;
    left: 20px;
    right: 20px;
    background: rgba(12, 34, 64, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius);
    padding: 15px 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
    z-index: 999999;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    transform: translateY(150%);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    direction: rtl;
    text-align: right;
}

.pwa-install-banner.show {
    transform: translateY(0);
}

.pwa-install-content {
    display: flex;
    align-items: center;
    gap: 15px;
}

.pwa-app-icon {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    object-fit: cover;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.pwa-app-info h4 {
    margin: 0 0 4px 0;
    font-size: 14px;
    font-weight: 700;
    color: var(--white);
}

.pwa-app-info p {
    margin: 0;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.5;
}

.pwa-install-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

.pwa-btn {
    border: none;
    padding: 8px 18px;
    font-size: 12px;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    font-family: var(--font-sans);
    transition: all 0.2s ease;
}

.pwa-btn-install {
    background-color: var(--accent-color);
    color: var(--white);
}

.pwa-btn-install:hover {
    background-color: var(--accent-hover);
}

.pwa-btn-close {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--white);
}

.pwa-btn-close:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

@media (max-width: 576px) {
    .pwa-install-banner {
        flex-direction: column;
        align-items: stretch;
        bottom: 10px;
        left: 10px;
        right: 10px;
        padding: 15px;
        gap: 12px;
    }

    .pwa-install-actions {
        justify-content: flex-end;
    }

    .pwa-btn {
        flex: 1;
        text-align: center;
    }
}

/* Dynamic Scroll-to-Top shift when PWA Install Banner is visible */
.pwa-banner-active .back-to-top {
    bottom: 95px !important;
}

@media (max-width: 576px) {
    .pwa-banner-active .back-to-top {
        bottom: 165px !important;
    }
}