/*
Theme Name: TV Theme
Theme URI: https://maksudulalam.com/tv-theme
Author: Kh Maksudul Alam
Author URI: https://maksudulalam.com/tv-theme
Description: A modern, clean WordPress theme for TV Theme with Bengali language support
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: tv-theme
Tags: news, magazine, blog, right-sidebar, custom-background, custom-logo, custom-menu, featured-images, post-formats, rtl-language-support, sticky-post, theme-options, translation-ready
*/

/* ==========================================================================
   Theme Base Styles
   ========================================================================== */
/* Reset some default styles */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    overflow-x: hidden;
    font-family: 'Hind Siliguri', sans-serif;
    line-height: 1.6;
    color: #333;
    background: #f5f5f5;
}

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

a:hover {
    color: #a80000;
    text-decoration: none;
}

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

/* Container */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Buttons */
button,
input[type="button"],
input[type="submit"] {
    cursor: pointer;
    transition: all 0.3s ease;
}

/* Accessibility */
.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 !important;
    width: 1px;
    word-wrap: normal !important;
}

/* Top Bar */
.top-bar {
    background: #000;
    color: #fff;
    padding: 5px 0;
    font-size: 0.85rem;
}

.top-bar-inner {
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.social-links a {
    color: #fff;
    margin-left: 15px;
    font-size: 1rem;
}

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

.primary-menu > li:hover > a,
.primary-menu > li.current-menu-item > a,
.primary-menu > li.current_page_item > a {
    color: var(--primary-color);
    background: rgba(255, 255, 255, 0.05);
}

/* Dropdown Menu */
.primary-menu .sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 240px;
    background: #fff;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 1000;
    padding: 10px 0;
    border-radius: 0 0 4px 4px;
}

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

.primary-menu .sub-menu li {
    position: relative;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.primary-menu .sub-menu a {
    padding: 12px 20px;
    color: var(--text-color);
    font-size: 0.9rem;
    font-weight: 400;
    display: block;
    transition: var(--transition);
}

.primary-menu .sub-menu a:hover {
    color: var(--primary-color);
    background: rgba(0, 0, 0, 0.02);
    padding-left: 25px;
}

.primary-menu .sub-menu .sub-menu {
    left: 100%;
    top: 0;
    border-radius: 0 4px 4px 4px;
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    background: transparent;
    border: none;
    padding: 10px;
    cursor: pointer;
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1001;
}

.menu-icon {
    display: block;
    width: 25px;
    height: 2px;
    background: var(--white);
    position: relative;
    transition: var(--transition);
}

.menu-icon:before,
.menu-icon:after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: var(--white);
    left: 0;
    transition: var(--transition);
}

.menu-icon:before {
    top: -8px;
}

.menu-icon:after {
    bottom: -8px;
}

/* Responsive Styles */
@media (max-width: 991px) {
    .menu-toggle {
        display: block;
    }
    
    .main-navigation {
        position: fixed;
        top: 0;
        right: -300px;
        width: 300px;
        height: 100vh;
        background: #fff;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        transition: var(--transition);
        overflow-y: auto;
        padding-top: 60px;
    }
    
    .main-navigation.toggled {
        right: 0;
    }
    
    .primary-menu {
        flex-direction: column;
    }
    
    .primary-menu > li {
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    }
    
    .primary-menu > li > a {
        color: var(--text-color);
        padding: 15px 20px;
    }
    
    .primary-menu .sub-menu {
        position: static;
        box-shadow: none;
        opacity: 1;
        visibility: visible;
        transform: none;
        display: none;
        padding: 0;
    }
    
    .primary-menu .sub-menu.toggled {
        display: block;
    }
    
    .primary-menu .sub-menu a {
        padding-left: 30px;
    }
    
    .primary-menu .sub-menu .sub-menu a {
        padding-left: 45px;
    }
    
    .menu-toggle.active .menu-icon {
        background: transparent;
    }
    
    .menu-toggle.active .menu-icon:before {
        transform: rotate(45deg);
        top: 0;
    }
    
    .menu-toggle.active .menu-icon:after {
        transform: rotate(-45deg);
        bottom: 0;
    }
}

/* ==========================================================================
   Import Fonts
   ========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Hind+Siliguri:wght@300;400;500;600;700&display=swap');

@font-face {
    font-family: 'SolaimanLipi';
    src: url('assets/fonts/SolaimanLipi.woff2') format('woff2'),
         url('assets/fonts/SolaimanLipi.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* ==========================================================================
   Variables
   ========================================================================== */
:root {
    /* Colors */
    --primary-color: #e52b2b;
    --primary-dark: #b71c1c;
    --secondary-color: #1a1a1a;
    --text-color: #333333;
    --light-gray: #f5f5f5;
    --dark-gray: #666666;
    --white: #ffffff;
    --black: #000000;
    --border-color: #e0e0e0;
    --success: #28a745;
    --info: #17a2b8;
    --warning: #ffc107;
    --danger: #dc3545;
    --overlay: rgba(0, 0, 0, 0.6);
    --transition: all 0.3s ease;
    
    /* Typography */
    --font-primary: 'Hind Siliguri', 'SolaimanLipi', Arial, sans-serif;
    --font-heading: 'Hind Siliguri', 'SolaimanLipi', Arial, sans-serif;
    --font-size-base: 1rem;
    --line-height-base: 1.6;
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    
    /* Border Radius */
    --border-radius: 4px;
    --border-radius-lg: 8px;
    
    /* Box Shadow */
    --box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --box-shadow-hover: 0 5px 15px rgba(0, 0, 0, 0.15);
    
    /* Layout */
    --content-width: 1200px;
    --content-gap: 30px;
    --header-height: 80px;
    --footer-bg: #1a1a1a;
    --footer-text: #ffffff;
    
    /* Components */
    --card-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
    --border-radius: 4px;
    
    /* Breakpoints */
    --breakpoint-xs: 0;
    --breakpoint-sm: 576px;
    --breakpoint-md: 768px;
    --breakpoint-lg: 992px;
    --breakpoint-xl: 1200px;

    /* Breaking News */
    --breaking-news-bg: #f8f9fa;
    --breaking-news-text: #333333;
    --breaking-news-label-bg: #e52b2b;
    --breaking-news-label-text: #ffffff;
}

/* ==========================================================================
   Base Styles
   ========================================================================== */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    font-size: var(--font-size-base);
    line-height: var(--line-height-base);
    color: var(--text-color);
    background-color: var(--white);
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Breaking News */
.breaking-news {
    background-color: var(--breaking-news-bg);
    padding: 10px 0;
    border-bottom: 1px solid var(--border-color);
    position: relative;
    z-index: 98;
    margin-bottom: 20px;
}

.breaking-news-inner {
    display: flex;
    align-items: center;
    overflow: hidden;
    gap: 15px;
}

.breaking-news-label {
    display: flex;
    align-items: center;
    gap: 8px;
    background-color: var(--breaking-news-label-bg);
    color: var(--breaking-news-label-text);
    padding: 4px 12px;
    border-radius: 3px;
    font-weight: 600;
    font-size: 14px;
    white-space: nowrap;
    text-transform: uppercase;
}

.breaking-news-label i {
    font-size: 12px;
}

.breaking-news-ticker {
    flex: 1;
    overflow: hidden;
    position: relative;
}

.breaking-news-ticker ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    animation: ticker 30s linear infinite;
    gap: 30px;
}

.breaking-news-ticker li {
    white-space: nowrap;
    position: relative;
    padding-right: 30px;
}

.breaking-news-ticker li:after {
    content: "";
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 4px;
    background-color: var(--breaking-news-label-bg);
    border-radius: 50%;
}

.breaking-news-ticker li:last-child {
    padding-right: 0;
}

.breaking-news-ticker li:last-child:after {
    display: none;
}

.breaking-news-ticker a {
    color: var(--breaking-news-text);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.3s ease;
}

.breaking-news-ticker a:hover {
    color: var(--breaking-news-label-bg);
}

.breaking-news-nav {
    display: flex;
    gap: 5px;
}

.ticker-nav {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--breaking-news-label-bg);
    color: var(--white);
    border: none;
    border-radius: 3px;
    cursor: pointer;
    transition: var(--transition);
    font-size: 12px;
}

.ticker-nav:hover {
    background-color: var(--primary-dark);
}

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

/* ==========================================================================
   Header Styles
   ========================================================================== */

/* Top Header */
.top-header {
    background-color: var(--light-gray);
    padding: 8px 0;
    font-size: 13px;
}

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

.top-header-left {
    display: flex;
    gap: 20px;
}

.top-header-right {
    display: flex;
    gap: 15px;
}

.date-time {
    color: var(--dark-gray);
}

.menu-icon {
    font-size: 18px;
    padding: 20px 10px;
    color: var(--dark-gray);
    transition: var(--transition);
}

.menu-icon .fa {
    transition: var(--transition);
}

.menu-icon:hover {
    color: var(--primary-color);
    text-decoration: none;
}

.menu-icon:hover .fa {
    transform: scale(1.2);
}

/* Main Header */
.site-header {
    background: var(--white);
    box-shadow: var(--box-shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 0;
}

.site-branding {
    max-width: 200px;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 25px;
}

/* Weather Widget */
.header-weather {
    display: flex;
    align-items: center;
    gap: 10px;
}

.header-weather i {
    color: var(--warning);
    font-size: 24px;
}

.weather-info {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.temperature {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-color);
}

.location {
    font-size: 13px;
    color: var(--dark-gray);
}

/* Currency Display */
.header-currency {
    display: flex;
    flex-direction: column;
    gap: 2px;
    font-size: 13px;
    color: var(--dark-gray);
    line-height: 1.2;
}

/* Live TV Button */
.live-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background-color: var(--primary-color);
    color: var(--white);
    padding: 8px 15px;
    border-radius: var(--border-radius);
    font-weight: 500;
    transition: var(--transition);
}

.live-btn:hover {
    background-color: var(--primary-dark);
    color: var(--white);
}

.live-btn i {
    font-size: 16px;
}

/* Navigation */
.navbar {
    background-color: var(--white);
    border: none;
    border-radius: 0;
    margin-bottom: 0;
    min-height: auto;
}

.navbar-default {
    background-color: var(--white);
    border-color: transparent;
}

.navbar-brand {
    height: auto;
    padding: 15px 0;
}

.navbar-brand img {
    max-height: 50px;
}

.navbar-default .navbar-nav > li > a {
    color: var(--text-color);
    font-weight: 500;
    padding: 20px 15px;
    transition: var(--transition);
}

.navbar-default .navbar-nav > li > a:hover,
.navbar-default .navbar-nav > li > a:focus {
    color: var(--primary-color);
    background-color: transparent;
}

.navbar-toggle {
    border-color: var(--primary-color);
    margin-top: 15px;
}

.navbar-toggle .icon-bar {
    background-color: var(--primary-color);
}

.primary-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

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

.primary-menu > li > a {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    color: var(--white);
    font-weight: 500;
    font-size: 15px;
    text-decoration: none;
    transition: var(--transition);
    border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.primary-menu > li:hover > a {
    background-color: var(--primary-dark);
}

/* Dropdown Menus */
.primary-menu .sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--white);
    min-width: 240px;
    padding: 0;
    margin: 0;
    border-radius: 0 0 4px 4px;
    box-shadow: var(--box-shadow);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.25s ease;
    z-index: 100;
    border-top: 2px solid var(--primary-dark);
}

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

.primary-menu .sub-menu li {
    position: relative;
    list-style: none;
}

.primary-menu .sub-menu a {
    display: block;
    padding: 12px 20px;
    color: var(--text-color);
    font-size: 14px;
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition);
}

.primary-menu .sub-menu li:last-child > a {
    border-bottom: none;
}

.primary-menu .sub-menu a:hover {
    background-color: var(--light-gray);
    color: var(--primary-color);
    padding-left: 25px;
}

.primary-menu .sub-menu .sub-menu {
    left: 100%;
    top: 0;
}

/* Submenu toggle button */
.submenu-toggle {
    background: transparent;
    border: none;
    color: inherit;
    padding: 0;
    width: 30px;
    height: 30px;
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    display: none;
}

.submenu-toggle::before {
    content: '+';
    font-size: 20px;
    line-height: 30px;
    text-align: center;
    display: block;
    transition: transform 0.3s ease;
}

.submenu-toggle[aria-expanded="true"]::before {
    transform: rotate(45deg);
}

@media screen and (max-width: 991px) {
    .menu-item-has-children {
        position: relative;
    }
    
    .submenu-toggle {
        display: block;
    }
    
    .menu-item-has-children > a {
        padding-right: 50px;
    }
    
    /* Hide default dropdown arrows on mobile */
    .menu-item-has-children > a:after {
        display: none;
    }
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--white);
    padding: 15px;
    cursor: pointer;
    align-items: center;
    gap: 8px;
}

.menu-icon {
    position: relative;
    width: 24px;
    height: 18px;
}

.menu-icon-line {
    position: absolute;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--white);
    transition: var(--transition);
}

.menu-icon-line:nth-child(1) { top: 0; }
.menu-icon-line:nth-child(2) { top: 8px; }
.menu-icon-line:nth-child(3) { top: 16px; }

.menu-toggle.active .menu-icon-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active .menu-icon-line:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active .menu-icon-line:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Search in Navigation */

.post-number {
    margin-right: 15px;
}

.post-number .badge {
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 14px;
    font-weight: 600;
}

.post-content {
    flex: 1;
}

.post-content h4 {
    font-size: 15px;
    line-height: 1.4;
    margin: 0 0 5px;
}

.post-content h4 a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: var(--transition);
}

.post-content h4 a:hover {
    color: var(--primary-color);
}

.post-meta {
    font-size: 12px;
    color: var(--dark-gray);
}

.post-meta i {
    margin-right: 5px;
}

/* Category List */
.category-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.category-list li {
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px dashed var(--border-color);
}

.category-list li:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.category-list a {
    color: var(--text-color);
    text-decoration: none;
    transition: var(--transition);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.category-list a:hover {
    color: var(--primary-color);
    padding-right: 5px;
}

.category-list .badge {
    background: var(--light-gray);
    color: var(--dark-gray);
    font-weight: normal;
    transition: var(--transition);
}

.category-list a:hover .badge {
    background: var(--primary-color);
    color: var(--white);
}

/* Secondary Featured Articles */
.secondary-featured-articles {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    height: 100%;
}

.secondary-featured-article {
    position: relative;
    border-radius: 5px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.secondary-featured-article:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

.secondary-featured-article .post-thumbnail {
    position: relative;
    padding-top: 56.25%;
    overflow: hidden;
}

.secondary-featured-article .post-thumbnail img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.secondary-featured-article:hover .post-thumbnail img {
    transform: scale(1.05);
}

.secondary-featured-article .entry-content {
    padding: 15px;
}

.secondary-featured-article .entry-title {
    font-size: 16px;
    line-height: 1.4;
    margin: 0;
    font-weight: 600;
}

.secondary-featured-article .entry-title a {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

/* Category Sections */
.category-section {
    margin-bottom: 40px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    border-bottom: 2px solid var(--border-color);
    position: relative;
}

.section-header:after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 60px;
    height: 2px;
    background-color: var(--primary-color);
}

.section-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--secondary-color);
    margin: 0;
    padding: 0 0 10px;
    text-transform: uppercase;
}

.view-all {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
}

.view-all i {
    margin-left: 5px;
    font-size: 12px;
}

.view-all:hover {
    text-decoration: underline;
}

.category-posts-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
}

.category-post {
    background: #fff;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.category-post:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

.category-post .post-thumbnail {
    position: relative;
    padding-top: 56.25%;
    overflow: hidden;
}

.category-post .post-thumbnail img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.category-post:hover .post-thumbnail img {
    transform: scale(1.05);
}

.category-post .entry-content {
    padding: 15px;
}

.category-post .entry-title {
    font-size: 16px;
    line-height: 1.4;
    margin: 0;
    font-weight: 600;
}

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

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

/* Search styles */
.nav-search {
    position: relative;
    display: flex;
    align-items: center;
}

.search-toggle a {
    color: inherit;
    padding: 10px;
    display: flex;
    align-items: center;
}

.search-container {
    display: none;
    position: absolute;
    right: 0;
    top: 100%;
    background-color: #fff;
    padding: 20px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    width: 300px;
    z-index: 1000;
}

.search-container.active {
    display: block;
}

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

.search-field {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-right: 8px;
}

.search-submit {
    background: var(--primary);
    color: #fff;
    border: none;
    padding: 8px;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
}

.search-submit:hover {
    background: var(--primary-dark);
}

/* Mobile Menu styles */
@media screen and (max-width: 991px) {
    .menu-toggle {
        display: block;
    }
    
    .primary-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #fff;
        box-shadow: 0 2px 5px rgba(0,0,0,0.1);
        z-index: 100;
    }
    
    .primary-menu.toggled {
        display: block;
    }
    
    .primary-menu > li {
        display: block;
        border-bottom: 1px solid rgba(0,0,0,0.1);
    }
    
    .primary-menu > li > a {
        padding: 15px;
        border-right: none;
    }
    
    .primary-menu .sub-menu {
        position: static;
        width: 100%;
        background: #f8f8f8;
        box-shadow: none;
        display: none;
        opacity: 1;
        visibility: visible;
    }
    
    .primary-menu .sub-menu.toggled {
        display: block;
    }
    
    .primary-menu .menu-item-has-children > a:after {
        content: '+';
        margin-left: 10px;
    }
    
    .sub-menu .menu-item-has-children > a:after {
        display: none;
    }

    .search-container {
        width: 100%;
        left: 0;
    }
}

/* Menu toggle button */
.menu-toggle {
    display: none;
    background: transparent;
    border: none;
    padding: 10px;
    cursor: pointer;
}

.menu-toggle-icon {
    display: block;
    width: 25px;
    height: 2px;
    background-color: currentColor;
    position: relative;
    transition: background-color 0.3s;
}

.menu-toggle-icon:before,
.menu-toggle-icon:after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: currentColor;
    left: 0;
    transition: transform 0.3s;
}

.menu-toggle-icon:before {
    transform: translateY(-8px);
}

.menu-toggle-icon:after {
    transform: translateY(8px);
}

.menu-toggle[aria-expanded="true"] .menu-toggle-icon {
    background-color: transparent;
}

.menu-toggle[aria-expanded="true"] .menu-toggle-icon:before {
    transform: translateY(0) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] .menu-toggle-icon:after {
    transform: translateY(0) rotate(-45deg);
}

/* Responsive Utilities */
.hidden {
    display: none !important;
}

.visible-mobile {
    display: none;
}

@media (max-width: 991.98px) {
    .hidden-mobile {
        display: none !important;
    }
    
    .visible-mobile {
        display: block;
    }
}

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

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

.footer-widget {
    margin-bottom: 1.5rem;
}

.footer-widget h3,
.footer-widget .widget-title {
    color: var(--white);
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.75rem;
    font-size: 1.25rem;
}

.footer-widget h3::after,
.footer-widget .widget-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 2px;
    background-color: var(--primary-color);
}

.footer-widget ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-widget ul li {
    margin-bottom: 0.75rem;
}

.footer-widget a {
    color: #cccccc;
    transition: var(--transition);
    display: inline-block;
}

.footer-widget a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

.footer-bottom {
    background-color: rgba(0, 0, 0, 0.2);
    padding: 1.5rem 0;
    text-align: center;
    font-size: 0.875rem;
    color: #999999;
}

/* ==========================================================================
   Responsive Styles
   ========================================================================== */
@media (max-width: 1199px) {
    :root {
        --content-width: 960px;
    }
}

@media (max-width: 991px) {
    :root {
        --content-width: 720px;
    }
    
    .footer-widgets {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 767px) {
    :root {
        --content-width: 540px;
    }
    
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.5rem; }
    
    .footer-widgets {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 575px) {
    :root {
        --content-width: 100%;
    }
}

/* Grid Layout */
.post {
    margin-bottom: 30px;
}

.article {
    margin-bottom: 25px;
}

.article .post-thumb {
    position: relative;
    margin-bottom: 15px;
    overflow: hidden;
}

.article .post-thumb img {
    width: 100%;
    height: auto;
    transition: transform 0.3s ease;
}

.article .post-thumb:hover img {
    transform: scale(1.05);
}

.story-cat-link {
    position: absolute;
    left: 15px;
    top: 15px;
    background: var(--primary-color);
    color: var(--white);
    padding: 5px 15px;
    font-size: 14px;
    text-decoration: none;
    z-index: 2;
}

.story-cat-link:hover {
    background: var(--primary-dark);
    color: var(--white);
    text-decoration: none;
}

.entry-title {
    font-size: 18px;
    line-height: 1.4;
    margin: 0 0 10px;
}

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

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

.headline {
    font-size: 14px;
    margin: 0 0 10px;
    padding: 0 0 10px;
    border-bottom: 1px solid var(--border-color);
}

.headline i {
    color: var(--primary-color);
    margin-right: 5px;
}

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

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

/* Section Headers */
.section-title {
    font-size: 20px;
    margin: 0 0 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--border-color);
    position: relative;
}

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

.lastest-more {
    font-size: 14px;
    color: var(--primary-color);
    text-decoration: none;
    margin-top: 5px;
}

.lastest-more:hover {
    color: var(--primary-dark);
    text-decoration: none;
}
