/*
Theme Name: SuperŠablona
Theme URI: https://supersablona.cz
Author: SuperŠablona
Author URI: https://supersablona.cz
Description: Profesionální WordPress theme s pokročilou administrací
Version: 1.3.4
Requires at least: 5.0
Tested up to: 6.4
Requires PHP: 7.4
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: supersablona
Tags: blog, custom-background, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready
*/

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #2563eb;
    --secondary-color: #1e40af;
    --text-color: #333333;
    --bg-color: #ffffff;
    --gray-light: #f3f4f6;
    --gray-dark: #4b5563;
    --success: #10b981;
    --warning: #f59e0b;
    --error: #ef4444;
    --container-width: 1600px;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
}

/* Container */
.container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.site-header {
    background: var(--bg-color);
    box-shadow: none;
    border-bottom: none;
    border-top: none; /* moved to pseudo-element for shortened bar */
    position: sticky;
    top: 0;
    z-index: 100;
}

/* Centered shortened blue bar (single) matching container width with edge spacing */
.site-header::before {
    content: "";
    position: absolute;
    top: 10px; /* 10px margin from top of page */
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 20px); /* 10px margin on each side of container */
    max-width: calc(var(--container-width) - 20px); /* respect container max-width */
    height: 6px;
    background: var(--primary-color);
}

/* removed shortened bar */

.header-inner {
    padding: 1.25rem 0 0.5rem;
    border-bottom: none;
}

/* Branding row: buttons left/right of centered logo */
.branding-row {
    display: flex;
    align-items: center;
    gap: 2rem;
    justify-content: space-between;
}

/* Hide mobile layout on desktop */
.header-mobile,
.navigation-mobile,
.mobile-menu-overlay,
.site-branding-mobile,
.site-branding-mobile-menu {
    display: none !important;
}

.header-action { display: flex; align-items: center; }
.header-action-left { order: 1; }
.site-branding { order: 2; flex: 1; }
.header-action-right { order: 3; margin-left: auto; }

.header-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.9rem;
    border-radius: 999px;
    font-weight: 700;
    text-decoration: none;
    line-height: 1;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.header-btn-subscribe {
    background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
    color: #fff;
    box-shadow: 0 6px 16px rgba(37, 99, 235, 0.35);
}

.header-btn-subscribe:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 20px rgba(37, 99, 235, 0.45);
}

.header-btn-login {
    background: #f3f4f6;
    color: #111827;
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
    border: 1px solid #e5e7eb;
}

.header-btn-login:hover {
    background: #e5e7eb;
}

.header-btn-icon { display: inline-flex; }
.header-btn-icon svg { display: block; }

/* Header Layout Variations */
.header-default {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-centered {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.header-centered .site-branding {
    margin-bottom: 1rem;
}

.header-centered .main-navigation {
    width: 100%;
    justify-content: center;
}

.header-centered .main-navigation ul {
    justify-content: center;
}

.header-split {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-split .main-navigation {
    display: flex;
    gap: 2rem;
}

.header-minimal {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
}

.header-minimal .site-branding h1 {
    font-size: 1.5rem;
    margin: 0;
}

.header-minimal .main-navigation ul {
    gap: 1.5rem;
}

.header-stacked {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 1.5rem 0;
}

.header-stacked .site-branding {
    margin-bottom: 1.5rem;
}

.header-stacked .main-navigation {
    width: 100%;
    justify-content: center;
}

.header-stacked .main-navigation ul {
    justify-content: center;
}

.header-logo-right {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-direction: row-reverse;
}

.header-logo-right .site-branding {
    order: 2;
}

.header-logo-right .main-navigation {
    order: 1;
}

.header-full-width {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: none;
}

.header-full-width .container {
    max-width: none;
    width: 100%;
    padding: 0 2rem;
}

/* Header Top Stories */
.header-top-stories {
    background: #f8f9fa;
    padding: 0;
    border-top: none;
    overflow: hidden;
    margin-top: 0.5rem;
}

.header-top-stories .widget-title {
    font-size: 1rem;
    margin-bottom: 0;
    color: white;
    font-weight: 700;
    text-align: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 0.5rem 1rem;
    border-radius: 6px;
    box-shadow: none;
    animation: none;
    white-space: nowrap;
    width: 100%;
}

@keyframes pulse {
    0% {
        box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
        transform: scale(1.02);
    }
    100% {
        box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
        transform: scale(1);
    }
}

.header-top-stories .top-stories-widget {
    background: transparent;
    border-radius: 0;
}

/* Top Stories Container */
.header-top-stories .top-stories-container {
    display: flex;
    background: white;
    border-radius: 8px;
    padding: 0.5rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    gap: 0.75rem;
}

.header-top-stories .title-column {
    flex-shrink: 0;
    width: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.header-top-stories .ticker-column {
    flex: 1;
    overflow: hidden;
    position: relative;
}

.header-top-stories .ticker-content {
    display: flex;
    gap: 0.5rem;
    animation: ticker-scroll 35s linear infinite;
    white-space: nowrap;
    width: max-content;
    pointer-events: auto;
}

@keyframes ticker-scroll {
    0% {
        transform: translateX(0%);
    }
    100% {
        transform: translateX(-20%);
    }
}


.header-top-stories .ticker-content:hover {
    animation-play-state: paused;
}

.header-top-stories .top-story-item {
    display: flex;
    align-items: center;
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 0.25rem 0.5rem;
    min-width: 180px;
    max-width: none;
    flex-shrink: 0;
    box-shadow: none;
    transition: all 0.3s ease;
    margin-bottom: 0;
    position: relative;
    pointer-events: auto;
    z-index: 10;
}

.header-top-stories .top-story-item:hover {
    background: #f8f9fa;
    border-radius: 6px;
}

.header-top-stories .story-number {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.7rem;
    margin-right: 0.5rem;
    margin-top: 0;
    box-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

.header-top-stories .story-thumbnail {
    flex-shrink: 0;
    margin-right: 0.5rem;
    margin-top: 0;
    pointer-events: auto;
    position: relative;
    z-index: 20;
}

.header-top-stories .story-thumbnail img {
    width: 50px;
    height: 35px;
    border-radius: 3px;
    object-fit: cover;
    box-shadow: 0 1px 2px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    pointer-events: auto;
    position: relative;
    z-index: 20;
}

.header-top-stories .story-thumbnail img:hover {
    transform: scale(1.05);
}

.header-top-stories .story-content {
    flex: 1;
    min-width: 0;
}

.header-top-stories .story-title {
    font-size: 0.95rem;
    margin-bottom: 0.25rem;
    line-height: 1.3;
    font-weight: 600;
    white-space: nowrap;
}

.header-top-stories .story-title a {
    color: #2c3e50;
    text-decoration: none;
    transition: color 0.3s ease;
    pointer-events: auto;
    position: relative;
    z-index: 20;
    display: block;
}

.header-top-stories .story-title a:hover {
    color: #3498db;
}

.header-top-stories .story-meta {
    font-size: 0.8rem;
    color: #7f8c8d;
}

.header-top-stories .story-date {
    color: #7f8c8d;
    font-weight: 500;
}

.site-logo img {
    max-height: 50px;
    width: auto;
}

/* Custom Logo Styles */
.custom-logo {
    max-width: 200px;
    max-height: 60px;
    width: auto;
    height: auto;
    transition: all 0.3s ease;
}

.custom-logo:hover {
    opacity: 0.8;
}

/* Logo size variations based on header layout */
.header-minimal .custom-logo {
    max-width: 150px;
    max-height: 45px;
}

.header-stacked .custom-logo,
.header-centered .custom-logo {
    max-width: 250px;
    max-height: 80px;
}

.header-full-width .custom-logo {
    max-width: 300px;
    max-height: 100px;
}

/* Dynamic logo sizing based on customizer settings */

.site-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
}

/* Navigation */
.navigation-desktop ul {
    list-style: none;
    display: flex;
    gap: 2rem;
}

.navigation-desktop {
    border-top: 2px solid #e2e8f0; /* restore gray separators */
    border-bottom: 2px solid #e2e8f0;
    padding: 0.5rem 0;
}

/* Legacy support for old structure */
.main-navigation:not(.navigation-mobile):not(.navigation-desktop) ul {
    list-style: none;
    display: flex;
    gap: 2rem;
}

.main-navigation:not(.navigation-mobile):not(.navigation-desktop) {
    border-top: 2px solid #e2e8f0;
    border-bottom: 2px solid #e2e8f0;
    padding: 0.5rem 0;
}

/* (removed pseudo-element accent bar to keep only one long blue bar) */

.navigation-desktop a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    font-size: 16px;
    transition: color 0.3s ease;
    padding: 0.5rem 0;
    display: block;
}

.navigation-desktop a:hover,
.navigation-desktop .current-menu-item a {
    color: var(--primary-color);
}

/* Legacy support */
.main-navigation:not(.navigation-mobile):not(.navigation-desktop) a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    font-size: 16px;
    transition: color 0.3s ease;
    padding: 0.5rem 0;
    display: block;
}

.main-navigation:not(.navigation-mobile):not(.navigation-desktop) a:hover,
.main-navigation:not(.navigation-mobile):not(.navigation-desktop) .current-menu-item a {
    color: var(--primary-color);
}

/* Desktop Dropdown Menu */
.navigation-desktop .menu-item-has-children,
.navigation-desktop .page_item_has_children {
    position: relative;
}

.navigation-desktop .menu-item-has-children > a,
.navigation-desktop .page_item_has_children > a {
    display: inline-flex;
    align-items: center;
    position: relative;
}

.navigation-desktop .menu-item-has-children > a::after,
.navigation-desktop .page_item_has_children > a::after {
    content: '';
    display: inline-block;
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 4px solid #6b7280;
    margin-left: 6px;
    margin-top: 2px;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.navigation-desktop .menu-item-has-children:hover > a::after,
.navigation-desktop .page_item_has_children:hover > a::after {
    border-top-color: var(--primary-color);
}

.navigation-desktop .sub-menu,
.navigation-desktop .children {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 200px;
    background: #ffffff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    padding: 0.5rem 0;
    margin-top: 0.5rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 100;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.navigation-desktop .menu-item-has-children:hover .sub-menu,
.navigation-desktop .page_item_has_children:hover .children,
.navigation-desktop .menu-item-has-children.toggled-on .sub-menu,
.navigation-desktop .page_item_has_children.toggled-on .children {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.navigation-desktop .sub-menu li,
.navigation-desktop .children li {
    margin: 0;
}

.navigation-desktop .sub-menu a,
.navigation-desktop .children a {
    padding: 0.75rem 1.5rem;
    display: block;
    white-space: nowrap;
}

.navigation-desktop .sub-menu a:hover,
.navigation-desktop .children a:hover {
    background: #f9fafb;
}

/* Mobile Menu Toggle - Modern Hamburger */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    width: 44px;
    height: 44px;
    position: relative;
    z-index: 1001;
    flex-shrink: 0;
}

.menu-toggle-line {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-color);
    margin: 5px 0;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    transform-origin: center;
}

.menu-toggle[aria-expanded="true"] .menu-toggle-line:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] .menu-toggle-line:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.menu-toggle[aria-expanded="true"] .menu-toggle-line:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Menu Close Button */
.menu-close {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    width: 44px;
    height: 44px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.menu-close span {
    position: absolute;
    width: 24px;
    height: 2px;
    background: var(--text-color);
    transition: all 0.3s ease;
}

.menu-close span:nth-child(1) {
    transform: rotate(45deg);
}

.menu-close span:nth-child(2) {
    transform: rotate(-45deg);
}

.menu-close:hover span {
    background: var(--primary-color);
}

/* Main Content */
.site-content {
    padding: 3rem 0;
    min-height: 60vh;
}

.content-area {
    width: 100%;
}

/* Layout with sidebar - container uses flexbox to position #primary and #secondary side by side */
.container.has-sidebar-layout {
    display: flex;
    gap: 3rem;
    align-items: flex-start;
}

.content-area.with-sidebar {
    flex: 1;
    min-width: 0; /* Prevents flex item from overflowing */
}

/* Sidebar positioning when content-area has with-sidebar class */
.container.has-sidebar-layout #secondary {
    width: 300px;
    flex-shrink: 0;
}

/* Posts */
.post {
    margin-bottom: 3rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid var(--gray-light);
}

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

.entry-header {
    margin-bottom: 1.5rem;
}

.entry-title {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.entry-title a {
    color: var(--text-color);
    text-decoration: none;
}

.entry-title a:hover {
    color: var(--primary-color);
}

.entry-meta {
    color: var(--gray-dark);
    font-size: 0.875rem;
}

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

.post-thumbnail {
    margin-bottom: 1.5rem;
}

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

.entry-content {
    margin-bottom: 1.5rem;
}

.entry-content h2,
.entry-content h3,
.entry-content h4 {
    margin: 2rem 0 1rem;
}

.entry-content p {
    margin-bottom: 1rem;
}

.entry-content ul,
.entry-content ol {
    margin: 1rem 0 1rem 2rem;
}

.entry-content blockquote {
    margin: 1.5rem 0;
    padding: 1rem 1.5rem;
    border-left: 4px solid var(--primary-color);
    background: var(--gray-light);
}

/* Sidebar */
.widget-area {
    background: var(--gray-light);
    padding: 1.5rem;
    border-radius: 8px;
}

.widget {
    margin-bottom: 2rem;
}

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

.widget-title {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.widget ul {
    list-style: none;
}

.widget li {
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(0,0,0,0.1);
}

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

.widget a {
    color: var(--text-color);
    text-decoration: none;
}

.widget a:hover {
    color: var(--primary-color);
}

/* Footer */
.site-footer {
    background: var(--text-color);
    color: white;
    padding: 3rem 0 1.5rem;
    margin-top: 3rem;
}

.footer-widgets {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-widget .widget-title {
    color: white;
}

.footer-widget a {
    color: rgba(255,255,255,0.8);
}

.footer-widget a:hover {
    color: white;
}

.site-info {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.2);
    font-size: 0.875rem;
}

/* Forms */
input[type="text"],
input[type="email"],
input[type="url"],
input[type="search"],
textarea {
    width: 100%;
    padding: 0.5rem 1rem;
    border: 1px solid var(--gray-light);
    border-radius: 4px;
    font-family: inherit;
    font-size: inherit;
}

button,
input[type="submit"] {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    transition: background 0.3s ease;
}

button:hover,
input[type="submit"]:hover {
    background: var(--secondary-color);
}

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

.page-numbers {
    padding: 0.5rem 1rem;
    background: var(--gray-light);
    color: var(--text-color);
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s ease;
}

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

/* Responsive */
@media (max-width: 1024px) {
    .branding-row {
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    /* Hide desktop layout on mobile */
    .header-desktop,
    .navigation-desktop {
        display: none;
    }
    
    /* Show mobile layout */
    .header-mobile {
        display: flex !important;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        padding: 0.75rem 0;
    }
    
    .site-branding-mobile {
        display: block !important;
        flex: 1;
    }
    
    .site-branding-mobile .custom-logo {
        max-width: 150px;
        max-height: 45px;
        height: auto;
    }
    
    .site-branding-mobile .site-title {
        font-size: 1.25rem;
        margin: 0;
    }
    
    .menu-toggle {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }
    
    /* Off-Canvas Mobile Menu */
    .mobile-menu-overlay {
        display: block !important;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.5);
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease, visibility 0.3s ease;
        z-index: 999;
    }
    
    .mobile-menu-overlay.active {
        opacity: 1;
        visibility: visible;
    }
    
    .navigation-mobile {
        position: fixed;
        top: 0;
        right: -100%;
        width: 85%;
        max-width: 400px;
        height: 100vh;
        background: #ffffff;
        box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
        z-index: 1000;
        transition: right 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
        overflow-y: auto;
        display: flex !important;
        flex-direction: column;
    }
    
    .navigation-mobile.active {
        right: 0;
    }
    
    .mobile-menu-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 1.25rem 1.5rem;
        border-bottom: 1px solid #e5e7eb;
        background: #f9fafb;
    }
    
    .site-branding-mobile-menu {
        display: block !important;
    }
    
    .site-branding-mobile-menu .custom-logo {
        max-width: 140px;
        max-height: 42px;
        height: auto;
    }
    
    .site-branding-mobile-menu .site-title {
        font-size: 1.25rem;
        margin: 0;
    }
    
    .mobile-menu-content {
        flex: 1;
        padding: 1.5rem 0;
        overflow-y: auto;
    }
    
    .navigation-mobile ul {
        list-style: none;
        padding: 0;
        margin: 0;
    }
    
    .navigation-mobile ul li {
        border-bottom: 1px solid #f3f4f6;
    }
    
    .navigation-mobile ul li:last-child {
        border-bottom: none;
    }
    
    .navigation-mobile a {
        display: block;
        padding: 1rem 1.5rem;
        color: var(--text-color);
        text-decoration: none;
        font-size: 1.1rem;
        font-weight: 500;
        transition: all 0.2s ease;
        border-left: 3px solid transparent;
    }
    
    .navigation-mobile a:hover,
    .navigation-mobile .current-menu-item a {
        background: #f9fafb;
        color: var(--primary-color);
        border-left-color: var(--primary-color);
        padding-left: 1.75rem;
    }
    
    /* Mobile Dropdown Menu */
    .navigation-mobile .menu-item-has-children,
    .navigation-mobile .page_item_has_children {
        position: relative;
    }
    
    .navigation-mobile .dropdown-toggle {
        position: absolute;
        right: 1rem;
        top: 50%;
        transform: translateY(-50%);
        background: none;
        border: none;
        width: 40px;
        height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        padding: 0;
        color: var(--text-color);
        transition: transform 0.3s ease, color 0.2s ease;
    }
    
    .navigation-mobile .dropdown-toggle:hover {
        color: var(--primary-color);
    }
    
    .navigation-mobile .dropdown-toggle[aria-expanded="true"] {
        transform: translateY(-50%) rotate(90deg);
    }
    
    .navigation-mobile .dropdown-toggle svg {
        width: 16px;
        height: 16px;
    }

    /* Desktop Dropdown Toggle */
    .navigation-desktop .dropdown-toggle {
        position: relative;
        right: auto;
        top: auto;
        width: 24px;
        height: 24px;
        margin-left: 8px;
        background: none;
        border: none;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        padding: 0;
        color: var(--text-color);
        transition: transform 0.2s ease, color 0.2s ease;
    }

    .navigation-desktop .dropdown-toggle:hover {
        color: var(--primary-color);
    }

    .navigation-desktop .dropdown-toggle[aria-expanded="true"] {
        transform: rotate(180deg);
    }

    .navigation-desktop .dropdown-toggle svg {
        width: 12px;
        height: 12px;
        transition: transform 0.2s ease;
    }
    
    .navigation-mobile .sub-menu,
    .navigation-mobile .children {
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        background: #f9fafb;
        margin: 0;
        padding: 0;
    }
    
    .navigation-mobile .menu-item-has-children.toggled-on .sub-menu,
    .navigation-mobile .page_item_has_children.toggled-on .children {
        max-height: 1000px;
    }
    
    .navigation-mobile .sub-menu li,
    .navigation-mobile .children li {
        border-bottom: 1px solid #e5e7eb;
    }
    
    .navigation-mobile .sub-menu a,
    .navigation-mobile .children a {
        padding-left: 2.5rem;
        font-size: 1rem;
        color: var(--gray-dark);
    }
    
    .navigation-mobile .sub-menu a:hover,
    .navigation-mobile .children a:hover {
        background: #f3f4f6;
        color: var(--primary-color);
    }
    
    /* Mobile Menu Actions */
    .mobile-menu-actions {
        padding: 1.5rem;
        border-top: 1px solid #e5e7eb;
        display: flex;
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .mobile-menu-btn {
        display: flex;
        align-items: center;
        gap: 0.75rem;
        padding: 0.875rem 1.25rem;
        border-radius: 8px;
        text-decoration: none;
        font-weight: 600;
        font-size: 1rem;
        transition: all 0.2s ease;
    }
    
    .mobile-menu-btn svg {
        flex-shrink: 0;
    }
    
    .mobile-menu-btn-subscribe {
        background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
        color: #ffffff;
        box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
    }
    
    .mobile-menu-btn-subscribe:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 16px rgba(37, 99, 235, 0.4);
    }
    
    .mobile-menu-btn-login {
        background: #f3f4f6;
        color: var(--text-color);
        border: 1px solid #e5e7eb;
    }
    
    .mobile-menu-btn-login:hover {
        background: #e5e7eb;
    }
    
    /* Prevent body scroll when menu is open */
    body.menu-open {
        overflow: hidden;
    }
    
    /* Header adjustments */
    .header-inner {
        padding: 0.5rem 0;
    }
    
    /* Mobile logo adjustments */
    .custom-logo {
        max-width: 150px !important;
        max-height: 45px !important;
    }
    
    /* Mobile: stack sidebar below content */
    .container.has-sidebar-layout {
        flex-direction: column;
    }
    
    .container.has-sidebar-layout #secondary {
        width: 100%;
        margin-top: 2rem;
    }
    
    .footer-widgets {
        grid-template-columns: 1fr;
    }
    
    .entry-title {
        font-size: 1.5rem;
    }
    
    /* Header Top Stories Mobile */
    .header-top-stories {
        padding: 0;
    }
    
    /* Hide Top Stories widget on mobile if option is enabled */
    .header-top-stories.hide-on-mobile {
        display: none;
    }
    
    .header-top-stories .top-stories-list {
        gap: 0;
        flex-direction: column;
        align-items: stretch;
        padding: 0.75rem;
    }
    
    .header-top-stories .widget-title {
        width: 100%;
        min-width: 100%;
        max-width: 100%;
        margin-bottom: 0.5rem;
        border-right: none;
        border-bottom: 2px solid #e9ecef;
    }
    
    
    .header-top-stories .widget-title {
        font-size: 1rem;
        padding: 0.5rem 1rem;
        border-radius: 8px;
    }
    
    .header-top-stories .top-story-item {
        min-width: auto;
        max-width: none;
        padding: 0.25rem 0.5rem;
        margin-bottom: 0;
    }
    
    .header-top-stories .story-number {
        width: 20px;
        height: 20px;
        font-size: 0.7rem;
        margin-right: 0.5rem;
    }
    
    .header-top-stories .story-thumbnail {
        margin-right: 0.5rem;
    }
    
    .header-top-stories .story-thumbnail img {
        width: 45px;
        height: 30px;
    }
    
    .header-top-stories .story-title {
        font-size: 0.9rem;
        margin-bottom: 0.15rem;
        white-space: nowrap;
    }
    
    .header-top-stories .story-meta {
        font-size: 0.75rem;
    }
}

/* Accessibility */
.screen-reader-text {
    position: absolute;
    left: -9999px;
}

/* Visually hide skip link but keep for screen readers; reveal on focus */
.skip-link {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
}

.skip-link:focus {
    clip: auto;
    clip-path: none;
    width: auto;
    height: auto;
    margin: 0;
    left: 0;
    top: 0;
    z-index: 9999;
    background: var(--primary-color);
    color: #fff;
    padding: 0.5rem 1rem;
    text-decoration: none;
}

/* WordPress Core Styles */
.alignleft {
    float: left;
    margin-right: 1rem;
}

.alignright {
    float: right;
    margin-left: 1rem;
}

.aligncenter {
    display: block;
    margin: 0 auto;
}

.wp-caption {
    max-width: 100%;
}

.wp-caption-text {
    text-align: center;
    font-size: 0.875rem;
    color: var(--gray-dark);
    margin-top: 0.5rem;
}

.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1rem;
}

.sticky {
    background: var(--gray-light);
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 3rem;
}

.bypostauthor {
    font-weight: bold;
}

/* Top Stories Widget */
.top-stories-widget {
    background: var(--bg-color);
    border-radius: 8px;
    overflow: hidden;
}

.top-stories-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.top-story-item {
    display: flex;
    align-items: flex-start;
    padding: 1rem;
    border-bottom: 1px solid var(--gray-light);
    transition: background-color 0.3s ease;
}

.top-story-item:last-child {
    border-bottom: none;
}

.top-story-item:hover {
    background-color: var(--gray-light);
}

.story-number {
    flex-shrink: 0;
    width: 30px;
    height: 30px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.875rem;
    margin-right: 1rem;
    margin-top: 0.25rem;
}

.story-thumbnail {
    flex-shrink: 0;
    margin-right: 1rem;
    margin-top: 0.25rem;
}

.story-thumbnail img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
}

.story-content {
    flex: 1;
    min-width: 0;
}

.story-title {
    margin: 0 0 0.5rem 0;
    font-size: 0.95rem;
    line-height: 1.4;
}

.story-title a {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.story-title a:hover {
    color: var(--primary-color);
}

.story-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.8rem;
    color: var(--gray-dark);
    margin-bottom: 0.5rem;
}

.story-date {
    white-space: nowrap;
}

.story-comments {
    white-space: nowrap;
}

.story-excerpt {
    font-size: 0.85rem;
    color: var(--gray-dark);
    line-height: 1.4;
}

/* Top Stories Widget - Horizontal Layout */
.top-stories-widget.horizontal .top-stories-list {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.top-stories-widget.horizontal .top-story-item {
    flex: 1;
    min-width: 200px;
    flex-direction: column;
    text-align: center;
    border-bottom: none;
    border: 1px solid var(--gray-light);
    border-radius: 8px;
    padding: 1.5rem 1rem;
}

.top-stories-widget.horizontal .story-number {
    margin: 0 0 1rem 0;
    align-self: center;
}

.top-stories-widget.horizontal .story-thumbnail {
    margin: 0 0 1rem 0;
    align-self: center;
}

.top-stories-widget.horizontal .story-thumbnail img {
    width: 80px;
    height: 80px;
}

.top-stories-widget.horizontal .story-content {
    text-align: center;
}

.top-stories-widget.horizontal .story-meta {
    justify-content: center;
}

/* Top Stories Widget - Compact Layout */
.top-stories-widget.compact .top-story-item {
    padding: 0.75rem 1rem;
}

.top-stories-widget.compact .story-number {
    width: 25px;
    height: 25px;
    font-size: 0.75rem;
    margin-right: 0.75rem;
}

.top-stories-widget.compact .story-thumbnail img {
    width: 50px;
    height: 50px;
}

.top-stories-widget.compact .story-title {
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
}

.top-stories-widget.compact .story-meta {
    font-size: 0.75rem;
    margin-bottom: 0.25rem;
}

/* Responsive Top Stories */
@media (max-width: 480px) {
    .branding-row {
        gap: 0.5rem;
    }
    
    .header-action .button {
        padding: 0.35rem 0.6rem;
        font-size: 0.75rem;
    }
}

@media (max-width: 768px) {
    .top-stories-widget.horizontal .top-stories-list {
        flex-direction: column;
    }
    
    .top-stories-widget.horizontal .top-story-item {
        min-width: auto;
    }
    
    .top-story-item {
        padding: 0.75rem;
    }
    
    .story-number {
        width: 25px;
        height: 25px;
        font-size: 0.75rem;
        margin-right: 0.75rem;
    }
    
    .story-thumbnail img {
        width: 50px;
        height: 50px;
    }
    
    .story-title {
        font-size: 0.9rem;
    }
    
    .story-meta {
        font-size: 0.75rem;
        gap: 0.5rem;
    }
}
/* ============================================
   FOOTER TEMPLATES STYLES
   ============================================ */

/* MINIMAL FOOTER TEMPLATE */
.footer-template-minimal {
    background: #f8f9fa;
    border-top: 1px solid #e5e7eb;
    padding: 1.5rem 0;
}

.footer-template-minimal .minimal-footer-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.footer-template-minimal .minimal-footer-center ul {
    display: flex;
    list-style: none;
    gap: 2rem;
    margin: 0;
    padding: 0;
}

.footer-template-minimal .minimal-footer-center a {
    color: var(--text-color);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s ease;
}

.footer-template-minimal .minimal-footer-center a:hover {
    color: var(--primary-color);
}

.footer-template-minimal .minimal-footer-right {
    display: flex;
    gap: 1rem;
}

.footer-template-minimal .minimal-social-link {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: white;
    color: var(--text-color);
    transition: all 0.2s ease;
}

.footer-template-minimal .minimal-social-link:hover {
    background: var(--primary-color);
    color: white;
}

/* MAGAZINE FOOTER TEMPLATE */
.footer-template-magazine {
    background: #1a1a1a;
    color: white;
}

.footer-template-magazine .magazine-footer-newsletter {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    padding: 3rem 0;
}

.footer-template-magazine .newsletter-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.footer-template-magazine .newsletter-text h3 {
    font-size: 2rem;
    margin: 0 0 0.5rem 0;
    color: white;
}

.footer-template-magazine .newsletter-text p {
    margin: 0;
    color: rgba(255,255,255,0.9);
}

.footer-template-magazine .newsletter-btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: white;
    color: var(--primary-color);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 700;
    transition: all 0.3s ease;
}

.footer-template-magazine .newsletter-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

.footer-template-magazine .magazine-footer-widgets {
    padding: 4rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-template-magazine .magazine-footer-widgets .widget-title {
    color: white;
}

.footer-template-magazine .magazine-footer-widgets a {
    color: rgba(255,255,255,0.8);
}

.footer-template-magazine .magazine-footer-widgets a:hover {
    color: white;
}

.footer-template-magazine .magazine-footer-bottom {
    padding: 2rem 0;
}

.footer-template-magazine .bottom-bar-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.footer-template-magazine .bottom-bar-right {
    display: flex;
    gap: 1rem;
}

.footer-template-magazine .magazine-social-link {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    transition: all 0.2s ease;
}

.footer-template-magazine .magazine-social-link:hover {
    background: var(--primary-color);
}

/* DARK FOOTER TEMPLATE */
.footer-template-dark {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: white;
    padding: 4rem 0 2rem;
}

.footer-template-dark .footer-widgets {
    margin-bottom: 3rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-template-dark .widget-title {
    color: white;
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
}

.footer-template-dark .widget a {
    color: rgba(255,255,255,0.7);
    transition: color 0.2s ease;
}

.footer-template-dark .widget a:hover {
    color: var(--primary-color);
}

.footer-template-dark .dark-footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 2rem;
}

.footer-template-dark .dark-footer-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: rgba(255,255,255,0.6);
    font-size: 0.875rem;
}

.footer-template-dark .dark-footer-social {
    display: flex;
    gap: 1rem;
}

.footer-template-dark .dark-social-link {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    color: white;
    transition: all 0.3s ease;
}

.footer-template-dark .dark-social-link:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
}

/* CENTERED FOOTER TEMPLATE */
.footer-template-centered {
    text-align: center;
    padding: 3rem 0;
    background: #f8f9fa;
}

.footer-template-centered .centered-footer-logo {
    margin-bottom: 2rem;
}

.footer-template-centered .centered-footer-logo .custom-logo {
    max-width: 200px;
    max-height: 60px;
}

.footer-template-centered .centered-footer-social {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.footer-template-centered .centered-social-link {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: white;
    color: var(--text-color);
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.footer-template-centered .centered-social-link:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.footer-template-centered .centered-footer-menu ul {
    display: flex;
    justify-content: center;
    list-style: none;
    gap: 2rem;
    margin: 0 0 2rem 0;
    padding: 0;
}

.footer-template-centered .centered-footer-menu a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.footer-template-centered .centered-footer-menu a:hover {
    color: var(--primary-color);
}

.footer-template-centered .centered-footer-copyright {
    color: var(--gray-dark);
    font-size: 0.875rem;
}

/* Mobile adjustments for footer templates */
@media (max-width: 768px) {
    .footer-template-minimal .minimal-footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-template-minimal .minimal-footer-center ul {
        flex-direction: column;
        gap: 1rem;
    }
    
    .footer-template-magazine .newsletter-content {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-template-magazine .bottom-bar-content {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }
    
    .footer-template-dark .dark-footer-bottom {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }
}
