/*
Theme Name: Preneurs Urdu News
Theme URI: https://preneurs.pk
Author: Preneurs.pk
Author URI: https://preneurs.pk
Description: A simple, speedy, secure Urdu news/blog theme with RTL support
Version: 1.1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: preneurs-urdu-news
Tags: rtl-language-support, urdu, news, blog, responsive, seo-friendly, social-media
*/

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

:root {
    --primary-color: #000000;
    --secondary-color: #333333;
    --background-color: #ffffff;
    --header-bg: #f8f9fa;
    --top-bar-bg: #f1f3f4;
    --footer-bg: #2c3e50;
    --link-color: #0066cc;
    --link-hover: #004499;
    --text-color: #333333;
    --menu-bg-color: #ffffff;
    --menu-text-color: #333333;
    --menu-hover-color: #0066cc;
    --dropdown-bg-color: #ffffff;
    --dropdown-text-color: #333333;
    --dropdown-hover-color: #0066cc;
    --logo-width: 200px;
    --logo-height: 60px;
    --border-radius: 8px;
    --box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    --transition: all 0.3s ease;
}

/* Base Body Styles */
body {
    font-family: 'Calibri', 'Nafees', 'Jameel Noori Nastaleeq', 'Urdu Typesetting', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color);
    direction: rtl;
    text-align: right;
}

body.ltr {
    direction: ltr;
    text-align: left;
}

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

/* Top Bar Styles */
.top-bar {
    background-color: var(--top-bar-bg);
    padding: 8px 0;
    border-bottom: 1px solid #e0e0e0;
    font-size: 14px;
    position: relative;
}

.top-bar::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(0,0,0,0.1) 50%, transparent 100%);
}

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

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

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

.current-date {
    color: var(--secondary-color);
    font-weight: 500;
}

.phone-link {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 500;
}

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

/* Reading Time */
.reading-time {
    display: flex;
    align-items: center;
    gap: 5px;
    color: var(--secondary-color);
    font-size: 13px;
}

.reading-time .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
}

/* Social Links */
.social-links {
    display: flex;
    gap: 10px;
    align-items: center;
}

.social-links a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: var(--transition);
    display: flex;
    align-items: center;
    padding: 5px;
    border-radius: 3px;
}

.social-links a:hover {
    color: var(--primary-color);
    background-color: rgba(0,0,0,0.05);
}

/* Header Styles */
.site-header {
    background-color: var(--header-bg);
    padding: 20px 0 0 0;
    position: relative;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.site-header::before {
    content: '';
    position: absolute;
    top: -5px;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(0,0,0,0.1) 50%, transparent 100%);
}

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

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

/* Advertisement Banner */
.header-advertisement {
    flex: 1;
    text-align: left;
}

.advertisement-banner img {
    max-height: 80px;
    width: auto;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.logo-right .header-advertisement {
    text-align: right;
}

.logo-left .site-branding {
    flex-direction: row;
}

.logo-right .site-branding {
    flex-direction: row-reverse;
}

/* Logo Size Control */
.site-logo .custom-logo {
    width: auto;
    height: auto;
    max-width: var(--logo-width);
    max-height: var(--logo-height);
    border-radius: var(--border-radius);
}

.site-title {
    font-size: 24px;
    font-weight: bold;
    margin: 0;
}

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

.site-description {
    font-size: 14px;
    color: var(--secondary-color);
    margin: 0;
}

/* Menu Bars */
.menu-top-bar,
.menu-bottom-bar {
    height: 1px;
    background-color: #666666;
    width: 100%;
}

/* Navigation */
.main-navigation {
    background-color: var(--menu-bg-color);
    border-top: 1px solid #666666;
    border-bottom: 1px solid #666666;
    position: relative;
}

.main-navigation ul {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
}

.main-navigation li {
    position: relative;
}

/* Menu Items Bold */
.main-navigation a {
    display: block;
    padding: 12px 20px;
    color: var(--menu-text-color);
    text-decoration: none;
    transition: var(--transition);
    border-right: 1px solid #e0e0e0;
    font-weight: bold;
}

.rtl .main-navigation a {
    border-right: none;
    border-left: 1px solid #e0e0e0;
}

.main-navigation a:hover {
    background-color: var(--menu-hover-color);
    color: white;
}

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

.menu-toggle:hover {
    color: var(--menu-hover-color);
}

/* Dropdown Menu */
.main-navigation ul ul {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--dropdown-bg-color);
    min-width: 200px;
    box-shadow: var(--box-shadow);
    z-index: 1000;
    border-radius: 0 0 var(--border-radius) var(--border-radius);
    overflow: hidden;
}

.main-navigation ul ul li {
    width: 100%;
}

.main-navigation ul ul a {
    color: var(--dropdown-text-color);
    border: none;
    padding: 12px 20px;
    font-weight: normal;
    border-bottom: 1px solid #f0f0f0;
}

.main-navigation ul ul a:hover {
    background-color: var(--dropdown-hover-color);
    color: white;
}

.main-navigation li:hover > ul {
    display: block;
    animation: fadeInDown 0.3s ease;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Content Area */
.site-content {
    padding: 30px 0;
}

.content-area {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    align-items: start;
}

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

/* Post Layout - Improved Visual Separation */
.post-item {
    margin-bottom: 40px;
    padding: 30px;
    background: #ffffff;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    border: 1px solid #f0f0f0;
    position: relative;
}

.post-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

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

/* Line 1: Title Only */
.entry-header {
    margin-bottom: 15px;
}

.entry-title {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 10px;
    line-height: 1.3;
}

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

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

/* Line 2: Date, Category, Views, Reading Time */
.entry-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    flex-wrap: wrap;
    font-size: 14px;
    color: var(--secondary-color);
}

.posted-on, .byline {
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Category-based Color Coding */
.category-badge {
    background-color: var(--primary-color);
    color: white;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.category-badge:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

/* Category-specific colors */
.category-badge.technology { background-color: #3498db; }
.category-badge.sports { background-color: #e74c3c; }
.category-badge.entertainment { background-color: #9b59b6; }
.category-badge.politics { background-color: #34495e; }
.category-badge.health { background-color: #2ecc71; }
.category-badge.business { background-color: #f39c12; }

.views-count {
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Line 3 & 4: Content with Thumbnail - Improved Ratio */
.post-content-with-thumb {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 30px;
    align-items: start;
    margin-bottom: 20px;
}

/* For RTL - Thumbnail on LEFT side */
.post-thumbnail-side {
    order: 1;
    text-align: center;
}

.post-text-content {
    order: 2;
}

.post-thumbnail-side img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.post-item:hover .post-thumbnail-side img {
    transform: scale(1.02);
}

/* No Thumbnail Placeholder */
.no-thumbnail-placeholder {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px dashed #dee2e6;
    border-radius: var(--border-radius);
    color: #6c757d;
    transition: var(--transition);
}

.no-thumbnail-placeholder:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.no-thumbnail-placeholder .dashicons {
    font-size: 48px;
    width: 48px;
    height: 48px;
}

.entry-content {
    line-height: 1.8;
    margin-bottom: 15px;
    color: #555;
}

/* Line 4: Read More Button */
.read-more-btn {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary-color) 0%, #333 100%);
    color: white;
    padding: 12px 25px;
    text-decoration: none;
    border-radius: 25px;
    margin-top: 15px;
    transition: var(--transition);
    font-size: 14px;
    font-weight: bold;
    border: none;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.read-more-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    color: white;
}

/* Remove duplicate read more buttons */
.entry-content a.read-more-btn {
    display: inline-block !important;
}

.entry-content p:last-child a {
    display: none;
}

/* Related Posts Sections - Improved Styling */
.related-posts-section {
    margin: 50px 0;
    padding: 40px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: var(--border-radius);
    position: relative;
}

.related-posts-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color) 0%, var(--link-color) 100%);
    border-radius: 2px;
}

.section-title {
    font-size: 28px;
    font-weight: bold;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 3px solid var(--primary-color);
    color: var(--primary-color);
    text-align: center;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background: var(--link-color);
}

.related-posts-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.related-post-item {
    background: #ffffff;
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid #e0e0e0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

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

.related-post-thumbnail {
    height: 150px;
    overflow: hidden;
}

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

.related-post-item:hover .related-post-thumbnail img {
    transform: scale(1.1);
}

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

.related-post-title {
    font-size: 16px;
    font-weight: bold;
    line-height: 1.4;
    margin: 0;
}

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

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

/* Social Sharing */
.social-sharing {
    margin: 30px 0;
    padding: 25px 0;
    border-top: 1px solid #e0e0e0;
    border-bottom: 1px solid #e0e0e0;
}

.sharing-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}

.sharing-buttons a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 25px;
    text-decoration: none;
    color: white;
    font-size: 14px;
    font-weight: 500;
    transition: var(--transition);
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.sharing-buttons a:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    color: white;
}

.facebook-share { background: linear-gradient(135deg, #3b5998 0%, #2d4373 100%); }
.twitter-share { background: linear-gradient(135deg, #1da1f2 0%, #0d8bd9 100%); }
.whatsapp-share { background: linear-gradient(135deg, #25d366 0%, #128c7e 100%); }
.copy-link { background: linear-gradient(135deg, #666666 0%, #4a4a4a 100%); }

/* Post Navigation - Improved Styling */
.post-navigation {
    margin: 40px 0;
    padding: 30px 0;
    border-top: 1px solid #e0e0e0;
    border-bottom: 1px solid #e0e0e0;
}

.nav-links {
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

.nav-previous,
.nav-next {
    flex: 1;
}

.nav-previous a,
.nav-next a {
    display: block;
    padding: 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: var(--border-radius);
    text-decoration: none;
    color: var(--text-color);
    transition: var(--transition);
    border: 1px solid #e0e0e0;
    position: relative;
    overflow: hidden;
}

.nav-previous a::before,
.nav-next a::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color) 0%, var(--link-color) 100%);
    transform: scaleX(0);
    transition: var(--transition);
}

.nav-previous a:hover::before,
.nav-next a:hover::before {
    transform: scaleX(1);
}

.nav-previous a:hover,
.nav-next a:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

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

.nav-next {
    text-align: left;
}

.nav-subtitle {
    display: block;
    font-size: 12px;
    color: var(--secondary-color);
    margin-bottom: 5px;
    font-weight: normal;
}

.nav-previous a:hover .nav-subtitle,
.nav-next a:hover .nav-subtitle {
    color: rgba(255,255,255,0.8);
}

.nav-title {
    display: block;
    font-size: 16px;
    font-weight: bold;
    line-height: 1.4;
}

/* Sidebar - Improved Styling */
.sidebar {
    background: #ffffff;
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    border: 1px solid #e0e0e0;
    position: relative;
}

.sidebar::before {
    content: '';
    position: absolute;
    top: 0;
    left: -20px;
    bottom: 0;
    width: 1px;
    background: linear-gradient(180deg, transparent 0%, rgba(0,0,0,0.1) 50%, transparent 100%);
}

.rtl .sidebar::before {
    left: auto;
    right: -20px;
}

/* Widget Boxes with Dividers */
.widget {
    margin-bottom: 30px;
    padding-bottom: 25px;
    border-bottom: 1px solid #f0f0f0;
    transition: var(--transition);
}

.widget:hover {
    transform: translateY(-2px);
}

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

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

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

/* Trending Posts Widget */
.trending-posts-widget .widget-title {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    color: white;
    padding: 15px 20px;
    margin: -30px -30px 20px -30px;
    border-radius: var(--border-radius) var(--border-radius) 0 0;
    border: none;
}

.trending-posts-widget .widget-title::after {
    display: none;
}

.trending-post-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 1px solid #f0f0f0;
    transition: var(--transition);
}

.trending-post-item:hover {
    background-color: #f8f9fa;
    padding-left: 10px;
    padding-right: 10px;
    margin: 0 -10px;
    border-radius: 5px;
}

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

.trending-post-thumb {
    width: 60px;
    height: 60px;
    border-radius: var(--border-radius);
    overflow: hidden;
    flex-shrink: 0;
}

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

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

.trending-post-content {
    flex: 1;
}

.trending-post-title {
    font-size: 14px;
    font-weight: bold;
    line-height: 1.4;
    margin: 0 0 5px 0;
}

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

.trending-post-title a:hover {
    color: var(--link-color);
}

.trending-post-views {
    font-size: 12px;
    color: var(--secondary-color);
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Comment Form - Improved Styling */
.comment-form {
    background: #ffffff;
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    border: 1px solid #e0e0e0;
}

.comment-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: var(--primary-color);
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: var(--border-radius);
    font-size: 14px;
    transition: var(--transition);
    background: #f8f9fa;
}

.comment-form input:focus,
.comment-form textarea:focus {
    outline: none;
    border-color: var(--link-color);
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(0,102,204,0.1);
}

.comment-form .form-submit {
    margin-top: 20px;
}

.comment-form .submit {
    background: linear-gradient(135deg, var(--primary-color) 0%, #333 100%);
    color: white;
    padding: 12px 30px;
    border: none;
    border-radius: 25px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.comment-form .submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

/* Comment Form Anti-Spam */
.comment-form-anti-spam {
    margin: 20px 0;
    padding: 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: var(--border-radius);
    border: 1px solid #e0e0e0;
}

.anti-spam-question {
    font-weight: bold;
    margin-bottom: 10px;
    color: var(--primary-color);
    font-size: 16px;
}

.anti-spam-answer {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #ddd;
    border-radius: var(--border-radius);
    font-size: 14px;
    background: #ffffff;
    transition: var(--transition);
}

.anti-spam-answer:focus {
    outline: none;
    border-color: var(--link-color);
    box-shadow: 0 0 0 3px rgba(0,102,204,0.1);
}

/* Single Post Page */
.single .content-area {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    align-items: start;
}

.single .post-thumbnail {
    margin-bottom: 25px;
    text-align: center;
}

.single .post-thumbnail img {
    width: 100%;
    height: auto;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 40px 0;
    flex-wrap: wrap;
}

.pagination .page-numbers {
    display: inline-block;
    padding: 10px 18px;
    border: 2px solid #e0e0e0;
    text-decoration: none;
    color: var(--text-color);
    transition: var(--transition);
    border-radius: var(--border-radius);
    font-weight: 500;
}

.pagination .page-numbers.current {
    background: linear-gradient(135deg, var(--primary-color) 0%, #333 100%);
    color: white;
    border-color: var(--primary-color);
}

.pagination .page-numbers:hover {
    background-color: var(--link-color);
    color: white;
    border-color: var(--link-color);
    transform: translateY(-2px);
}

/* Footer */
.site-footer {
    background-color: var(--footer-bg);
    padding: 50px 0 20px;
    margin-top: 50px;
    border-top: 3px solid var(--primary-color);
    color: #ecf0f1;
}

.footer-widgets {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 40px;
}

.footer-widget {
    background: transparent;
    padding: 0;
}

.footer-widget .widget-title {
    color: #ffffff;
    border-bottom-color: #3498db;
}

.footer-widget .widget-title::after {
    background: #3498db;
}

/* Footer Menu */
.footer-menu {
    margin: 30px 0;
}

.footer-menu ul {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 25px;
    flex-wrap: wrap;
    padding: 0;
    margin: 0;
}

.footer-menu a {
    color: #bdc3c7;
    text-decoration: none;
    transition: var(--transition);
    font-weight: 500;
    padding: 5px 10px;
    border-radius: 3px;
}

.footer-menu a:hover {
    color: #ffffff;
    background-color: rgba(255,255,255,0.1);
}

.site-info {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid #34495e;
    color: #95a5a6;
    font-size: 14px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .content-area {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .footer-widgets {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .header-container {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    .site-branding {
        justify-content: center;
        text-align: center;
    }
    
    .header-advertisement {
        text-align: center;
        order: -1;
    }
    
    .advertisement-banner img {
        max-height: 60px;
    }
    
    .top-bar-container {
        flex-direction: column;
        gap: 10px;
    }
    
    /* Mobile Menu */
    .menu-toggle {
        display: block;
        position: absolute;
        top: 15px;
        left: 15px;
        z-index: 1000;
    }
    
    .rtl .menu-toggle {
        left: auto;
        right: 15px;
    }
    
    .main-navigation ul {
        flex-direction: column;
        display: none;
    }
    
    .main-navigation ul.active {
        display: flex;
    }
    
    .main-navigation a {
        border: none;
        border-bottom: 1px solid #e0e0e0;
        padding: 15px 20px;
    }
    
    .main-navigation ul ul {
        position: static;
        box-shadow: none;
        background-color: #f8f9fa;
    }
    
    .entry-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .social-sharing {
        text-align: center;
    }
    
    .sharing-buttons {
        justify-content: center;
    }
    
    .post-content-with-thumb {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .post-text-content,
    .post-thumbnail-side {
        order: initial;
    }
    
    .post-thumbnail-side img {
        max-width: 100%;
    }
    
    .single .content-area {
        grid-template-columns: 1fr;
    }
    
    .footer-menu ul {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    .related-posts-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .nav-links {
        flex-direction: column;
        gap: 15px;
    }
    
    .nav-previous,
    .nav-next {
        text-align: center;
    }
    
    .sidebar::before {
        display: none;
    }
}

@media (max-width: 480px) {
    .related-posts-grid {
        grid-template-columns: 1fr;
    }
    
    .post-item {
        padding: 20px;
        margin-bottom: 30px;
    }
    
    .sharing-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .sharing-buttons a {
        width: 200px;
        justify-content: center;
    }
}

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

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

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

.hidden {
    display: none !important;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Loading Animation */
.loading {
    opacity: 0.7;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Custom Font Support */
@font-face {
    font-family: 'CustomUrduFont';
    src: url('fonts/custom-urdu.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

.custom-font-active {
    font-family: 'CustomUrduFont', 'Calibri', 'Nafees', 'Jameel Noori Nastaleeq', sans-serif;
}

/* Print Styles */
@media print {
    .top-bar,
    .main-navigation,
    .sidebar,
    .social-sharing,
    .footer-menu,
    .site-footer {
        display: none;
    }
    
    .content-area {
        grid-template-columns: 1fr;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
        color: #000;
    }
    
    a {
        color: #000;
        text-decoration: underline;
    }
}