/*
Theme Name: افسانہ گھر نیوز
Theme URI: https://afsanaghar.com
Author: افسانہ گھر ٹیم
Author URI: https://afsanaghar.com
Description: اردو نیوز اور ادبی ویب سائٹ کے لیے ایک خوبصورت اور جدید تھیم - مکمل RTL سپورٹ کے ساتھ - Elementor Pro کے ساتھ مکمل مطابقت
Version: 3.0.0
License: GPL v2 or later
Text Domain: afsanaghar-news
Tags: rtl, news, urdu, blog, two-columns, right-sidebar, custom-background, custom-logo, elementor, elementor-compatible
*/

/* ===== Reset and Base Styles ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Jameel Noori Nastaleeq', 'Noto Nastaliq Urdu', 'Traditional Arabic', 'AlQalam', Tahoma, sans-serif;
    direction: rtl;
    text-align: right;
    background-color: #f4f4f4;
    color: #333;
    line-height: 1.8;
    font-size: 18px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== Typography ===== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 15px;
    color: #2c3e50;
}

h1 { font-size: 36px; }
h2 { font-size: 30px; }
h3 { font-size: 24px; }
h4 { font-size: 20px; }
h5 { font-size: 18px; }
h6 { font-size: 16px; }

p {
    margin-bottom: 15px;
}

a {
    color: #e74c3c;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #c0392b;
}

/* ===== Elementor Compatibility ===== */
.elementor-page .site-content,
.elementor-page .main-content,
.elementor-page .content-area {
    padding: 0;
    margin: 0;
    max-width: 100%;
}

.elementor-page .container {
    max-width: 100%;
    padding: 0;
}

.elementor-page .site-header,
.elementor-page .site-footer {
    margin: 0;
}

.elementor-page .site-header {
    position: relative;
    z-index: 99;
}

.elementor-page .site-footer {
    position: relative;
    z-index: 99;
}

/* Elementor RTL Support */
.elementor-element[dir="rtl"] {
    text-align: right;
}

.elementor-element[dir="rtl"] .elementor-button {
    flex-direction: row-reverse;
}

.elementor-element[dir="rtl"] .elementor-icon {
    margin-left: 10px;
    margin-right: 0;
}

/* ===== Header Styles ===== */
.site-header {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

.top-header {
    background: #2c3e50;
    color: #fff;
    padding: 8px 0;
    font-size: 16px;
}

.top-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.current-date {
    color: #fff;
}

.social-links a {
    color: #fff;
    margin-left: 10px;
    font-size: 18px;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: #e74c3c;
}

.logo-area {
    padding: 20px 0;
    text-align: center;
}

.logo-area h1 {
    font-size: 48px;
    margin: 0;
    color: #2c3e50;
}

.logo-area h1 a {
    color: #2c3e50;
    text-decoration: none;
}

.logo-area p {
    color: #7f8c8d;
    margin: 5px 0 0;
}

/* ===== Main Navigation ===== */
.main-navigation {
    background: #e74c3c;
    position: relative;
}

.main-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
}

.main-menu li {
    position: relative;
}

.main-menu a {
    display: block;
    padding: 15px 20px;
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    font-size: 18px;
    transition: background 0.3s ease;
}

.main-menu a:hover {
    background: #c0392b;
}

/* Dropdown Menu */
.main-menu ul {
    position: absolute;
    top: 100%;
    right: 0;
    background: #34495e;
    min-width: 220px;
    list-style: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 999;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.main-menu li:hover > ul {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.main-menu ul li {
    width: 100%;
}

.main-menu ul a {
    padding: 12px 15px;
    font-size: 16px;
}

.main-menu ul ul {
    right: 100%;
    top: 0;
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    background: #c0392b;
    color: #fff;
    border: none;
    padding: 15px;
    width: 100%;
    text-align: right;
    font-size: 18px;
    cursor: pointer;
    font-family: inherit;
}

/* Search Bar */
.search-bar {
    flex: 1;
    max-width: 300px;
    margin-right: 20px;
}

.search-bar form {
    display: flex;
}

.search-bar input {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 3px 0 0 3px;
    font-family: inherit;
    font-size: 16px;
}

.search-bar button {
    padding: 8px 15px;
    background: #2c3e50;
    color: #fff;
    border: none;
    border-radius: 0 3px 3px 0;
    cursor: pointer;
    transition: background 0.3s ease;
}

.search-bar button:hover {
    background: #34495e;
}

/* ===== Main Content Area ===== */
.site-content {
    min-height: 500px;
    padding: 30px 0;
}

.content-area {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
}

/* ===== Section Titles ===== */
.section-title {
    position: relative;
    margin-bottom: 30px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e74c3c;
    font-size: 28px;
}

.section-title:after {
    content: '';
    position: absolute;
    bottom: -2px;
    right: 0;
    width: 80px;
    height: 2px;
    background: #2c3e50;
}

/* ===== Grid Layouts ===== */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin-bottom: 40px;
}

.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
    margin-bottom: 40px;
}

/* ===== Post Cards ===== */
.post-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

.post-card .post-thumbnail {
    position: relative;
    overflow: hidden;
    height: 200px;
}

.post-card .post-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.post-card:hover .post-thumbnail img {
    transform: scale(1.1);
}

.post-card .post-content {
    padding: 20px;
}

.post-card .post-meta {
    font-size: 14px;
    color: #7f8c8d;
    margin-bottom: 10px;
}

.post-card .post-meta span {
    margin-left: 10px;
}

.post-card h3 {
    font-size: 20px;
    margin-bottom: 10px;
    line-height: 1.5;
}

.post-card h3 a {
    color: #2c3e50;
    transition: color 0.3s ease;
}

.post-card h3 a:hover {
    color: #e74c3c;
}

.post-card p {
    color: #666;
    font-size: 16px;
    margin-bottom: 15px;
}

.read-more {
    display: inline-block;
    padding: 8px 15px;
    background: #e74c3c;
    color: #fff;
    border-radius: 3px;
    font-size: 14px;
    transition: background 0.3s ease;
}

.read-more:hover {
    background: #c0392b;
    color: #fff;
}

/* ===== Featured Post ===== */
.featured-post {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 40px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.featured-post .post-thumbnail {
    height: 400px;
}

.featured-post .post-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.featured-post .post-content {
    padding: 30px;
}

.featured-post h2 {
    font-size: 32px;
    margin-bottom: 15px;
}

.featured-post h2 a {
    color: #2c3e50;
    transition: color 0.3s ease;
}

.featured-post h2 a:hover {
    color: #e74c3c;
}

.featured-post p {
    font-size: 18px;
    margin-bottom: 20px;
}

/* ===== Sidebar ===== */
.sidebar {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.widget {
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid #eee;
}

.widget:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.widget-title {
    font-size: 22px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e74c3c;
    color: #2c3e50;
}

.widget ul {
    list-style: none;
}

.widget li {
    padding: 8px 0;
    border-bottom: 1px solid #eee;
}

.widget li:last-child {
    border-bottom: none;
}

.widget li a {
    color: #333;
    transition: color 0.3s ease;
    display: block;
}

.widget li a:hover {
    color: #e74c3c;
    padding-right: 5px;
}

/* Hadith Widget */
.hadith-widget {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    border-right: 4px solid #e74c3c;
}

.hadith-widget p {
    font-size: 18px;
    line-height: 2;
    margin-bottom: 10px;
    color: #2c3e50;
}

.hadith-reference {
    color: #e74c3c;
    font-size: 14px;
    display: block;
    text-align: left;
}

/* Poetry Widget */
.poetry-widget {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 20px;
    border-radius: 8px;
    color: #fff;
}

.poetry-widget p {
    font-size: 20px;
    line-height: 2;
    margin-bottom: 10px;
    font-style: italic;
}

.poet-name {
    text-align: left;
    font-size: 16px;
    opacity: 0.9;
}

/* ===== UrduNews Template Styles ===== */
.urdunews-template {
    background: #fff;
}

.urdunews-header {
    background: #2c3e50;
    color: #fff;
    padding: 15px 0;
}

.urdunews-logo h1 {
    color: #fff;
    font-size: 32px;
    margin: 0;
}

.urdunews-nav {
    background: #e74c3c;
}

.urdunews-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
}

.urdunews-menu li a {
    display: block;
    padding: 12px 20px;
    color: #fff;
    text-decoration: none;
}

.urdunews-menu li a:hover {
    background: #c0392b;
}

.urdunews-featured {
    margin: 30px 0;
    background: #f8f9fa;
    padding: 20px;
    border-radius: 5px;
}

.urdunews-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin: 30px 0;
}

.urdunews-card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 5px;
    overflow: hidden;
}

.urdunews-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.urdunews-card-content {
    padding: 15px;
}

.urdunews-card h3 {
    font-size: 18px;
    margin-bottom: 10px;
}

.urdunews-card p {
    color: #666;
    font-size: 14px;
}

.urdunews-more-link {
    display: inline-block;
    margin-top: 10px;
    color: #e74c3c;
}

/* ===== Footer ===== */
.site-footer {
    background: #2c3e50;
    color: #fff;
    padding: 50px 0 20px;
    margin-top: 50px;
}

.footer-widgets {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-bottom: 40px;
}

.footer-widget {
    font-size: 16px;
}

.footer-widget-title {
    color: #fff;
    font-size: 20px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e74c3c;
}

.footer-widget ul {
    list-style: none;
}

.footer-widget li {
    margin-bottom: 10px;
}

.footer-widget a {
    color: #bdc3c7;
    transition: color 0.3s ease;
}

.footer-widget a:hover {
    color: #e74c3c;
}

.footer-menu {
    margin-bottom: 30px;
}

.footer-menu-list {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.footer-menu-list a {
    color: #bdc3c7;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-menu-list a:hover {
    color: #e74c3c;
}

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #34495e;
    font-size: 14px;
    color: #bdc3c7;
}

/* ===== Scroll to Top ===== */
.scroll-top {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 50px;
    height: 50px;
    background: #e74c3c;
    color: #fff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 24px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
}

.scroll-top.show {
    opacity: 1;
    visibility: visible;
}

.scroll-top:hover {
    background: #c0392b;
    transform: scale(1.1);
}

/* ===== Pagination ===== */
.pagination {
    margin: 40px 0;
    text-align: center;
}

.pagination a,
.pagination span {
    display: inline-block;
    padding: 10px 15px;
    margin: 0 5px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 3px;
    color: #333;
    transition: all 0.3s ease;
}

.pagination .current {
    background: #e74c3c;
    color: #fff;
    border-color: #e74c3c;
}

.pagination a:hover {
    background: #e74c3c;
    color: #fff;
    border-color: #e74c3c;
}

/* ===== Breadcrumbs ===== */
.breadcrumbs {
    margin-bottom: 30px;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

.breadcrumbs a {
    color: #7f8c8d;
}

.breadcrumbs span {
    color: #e74c3c;
}

/* ===== Comments Section ===== */
.comments-area {
    margin: 50px 0;
}

.comment-list {
    list-style: none;
}

.comment {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.comment-meta {
    margin-bottom: 10px;
}

.comment-author {
    font-weight: bold;
    color: #2c3e50;
}

.comment-metadata {
    font-size: 14px;
    color: #7f8c8d;
}

.reply {
    margin-top: 10px;
}

.reply a {
    color: #e74c3c;
    font-size: 14px;
}

/* Comment Form */
.comment-respond {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 8px;
    margin-top: 40px;
}

.comment-form label {
    display: block;
    margin-bottom: 5px;
    color: #2c3e50;
}

.comment-form input,
.comment-form textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 3px;
    font-family: inherit;
    margin-bottom: 20px;
}

.comment-form input[type="submit"] {
    background: #e74c3c;
    color: #fff;
    border: none;
    padding: 12px 30px;
    cursor: pointer;
    width: auto;
    transition: background 0.3s ease;
}

.comment-form input[type="submit"]:hover {
    background: #c0392b;
}

/* ===== Gallery ===== */
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.gallery-item {
    overflow: hidden;
    border-radius: 8px;
}

.gallery-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

/* ===== Loading Spinner ===== */
.loading-spinner {
    display: inline-block;
    width: 50px;
    height: 50px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #e74c3c;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ===== Afsanaghar Custom Home Styles ===== */
.afsanaghar-custom-home {
    background: #f8f9fa;
}

/* Top Bar */
.top-bar {
    background: #2c3e50;
    color: #fff;
    padding: 10px 0;
    font-size: 14px;
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-bar .social-top a {
    color: #fff;
    margin-left: 15px;
    text-decoration: none;
    transition: color 0.3s ease;
}

.top-bar .social-top a:hover {
    color: #e74c3c;
}

/* Custom Header */
.custom-header {
    background: #fff;
    padding: 30px 0;
    text-align: center;
    border-bottom: 1px solid #eee;
}

.custom-header h1 {
    font-size: 48px;
    margin: 0;
    color: #2c3e50;
}

/* Custom Navigation */
.custom-nav {
    background: #e74c3c;
}

.custom-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
}

.custom-menu li {
    position: relative;
}

.custom-menu a {
    display: block;
    padding: 15px 20px;
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.3s ease;
}

.custom-menu a:hover {
    background: #c0392b;
}

.custom-menu ul {
    position: absolute;
    top: 100%;
    right: 0;
    background: #34495e;
    min-width: 220px;
    list-style: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 999;
}

.custom-menu li:hover > ul {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Skip Content */
.skip-content {
    margin: 20px 0;
}

.skip-content a {
    color: #e74c3c;
    text-decoration: none;
}

/* Hadith Section */
.hadith-section {
    background: #fff;
    padding: 25px;
    border-radius: 8px;
    margin-bottom: 30px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.hadith-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.hadith-item {
    padding: 15px;
    background: #f8f9fa;
    border-right: 3px solid #e74c3c;
}

.hadith-item p {
    margin-bottom: 10px;
}

.hadith-ref {
    color: #e74c3c;
    font-size: 14px;
    display: block;
    text-align: left;
}

/* News Grid */
.news-section {
    margin-bottom: 40px;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.news-item {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.news-item:hover {
    transform: translateY(-5px);
}

.news-image {
    height: 150px;
    overflow: hidden;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-item h3 {
    padding: 15px 15px 5px;
    font-size: 16px;
    margin: 0;
}

.news-item h3 a {
    color: #2c3e50;
    text-decoration: none;
    transition: color 0.3s ease;
}

.news-item h3 a:hover {
    color: #e74c3c;
}

.news-cat {
    display: block;
    padding: 0 15px 15px;
    color: #e74c3c;
    font-size: 12px;
}

/* Sports Section */
.sports-section {
    background: #fff;
    padding: 25px;
    border-radius: 8px;
    margin-bottom: 30px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.sports-category {
    margin-bottom: 20px;
}

.sports-category h3 {
    color: #e74c3c;
    margin-bottom: 10px;
}

.sports-category ul {
    list-style: none;
}

.sports-category li {
    padding: 8px 0;
    border-bottom: 1px solid #eee;
}

.sports-category li a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
    display: block;
}

.sports-category li a:hover {
    color: #e74c3c;
    padding-right: 5px;
}

/* Social Section */
.social-section {
    background: #fff;
    padding: 25px;
    border-radius: 8px;
    margin-bottom: 30px;
    text-align: center;
}

.social-links a {
    display: inline-block;
    padding: 10px 30px;
    margin: 0 10px;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    transition: opacity 0.3s ease;
}

.social-links a:hover {
    opacity: 0.9;
}

.social-links .facebook { background: #3b5998; }
.social-links .youtube { background: #ff0000; }

/* Contact Form */
.contact-section {
    background: #fff;
    padding: 25px;
    border-radius: 8px;
    margin-bottom: 30px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 15px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: inherit;
    font-size: 16px;
}

.form-group textarea {
    height: 120px;
    resize: vertical;
}

.contact-form button {
    background: #e74c3c;
    color: #fff;
    border: none;
    padding: 12px 40px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    transition: background 0.3s ease;
}

.contact-form button:hover {
    background: #c0392b;
}

/* Articles Section */
.articles-section {
    background: #fff;
    padding: 25px;
    border-radius: 8px;
    margin-bottom: 30px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.articles-list {
    list-style: none;
    margin-bottom: 20px;
}

.articles-list li {
    padding: 12px 0;
    border-bottom: 1px solid #eee;
}

.articles-list li a {
    color: #333;
    text-decoration: none;
    display: block;
    transition: color 0.3s ease;
}

.articles-list li a:hover {
    color: #e74c3c;
    padding-right: 5px;
}

/* Poetry Section */
.poetry-section {
    background: #fff;
    padding: 25px;
    border-radius: 8px;
    margin-bottom: 30px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.poets-list ul {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 30px;
}

.poets-list ul li a {
    display: block;
    padding: 10px;
    background: #f8f9fa;
    text-align: center;
    border-radius: 5px;
    color: #333;
    text-decoration: none;
    transition: all 0.3s ease;
}

.poets-list ul li a:hover {
    background: #e74c3c;
    color: #fff;
}

.poetry-verses {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.verse {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 5px;
    border-right: 3px solid #e74c3c;
}

.verse p {
    margin-bottom: 10px;
    font-style: italic;
}

.poet {
    display: block;
    text-align: left;
    color: #e74c3c;
    font-size: 14px;
}

/* Scroll Top Link */
.scroll-top-link {
    text-align: center;
    margin: 40px 0;
}

.scroll-top-link a {
    color: #2c3e50;
    text-decoration: none;
    transition: color 0.3s ease;
}

.scroll-top-link a:hover {
    color: #e74c3c;
}

/* Custom Footer */
.custom-footer {
    background: #2c3e50;
    color: #fff;
    padding: 40px 0 20px;
    margin-top: 50px;
}

/* ===== Responsive Design ===== */
@media (max-width: 992px) {
    .content-area {
        grid-template-columns: 1fr;
    }
    
    .grid-3,
    .urdunews-grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-widgets {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .hadith-list {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .poetry-verses {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    body {
        font-size: 16px;
    }
    
    h1 { font-size: 28px; }
    h2 { font-size: 24px; }
    h3 { font-size: 20px; }
    
    .menu-toggle {
        display: block;
    }
    
    .main-menu,
    .urdunews-menu,
    .custom-menu {
        display: none;
        position: absolute;
        top: 100%;
        right: 0;
        left: 0;
        background: #e74c3c;
        z-index: 999;
        flex-direction: column;
    }
    
    .main-menu.active,
    .urdunews-menu.active,
    .custom-menu.active {
        display: flex;
    }
    
    .main-menu li,
    .urdunews-menu li,
    .custom-menu li {
        width: 100%;
    }
    
    .main-menu ul,
    .urdunews-menu ul,
    .custom-menu ul {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        background: #c0392b;
        display: none;
        box-shadow: none;
    }
    
    .main-menu li.active > ul,
    .urdunews-menu li.active > ul,
    .custom-menu li.active > ul {
        display: block;
    }
    
    .grid-3,
    .grid-2,
    .urdunews-grid-3,
    .news-grid,
    .hadith-list,
    .poets-list ul {
        grid-template-columns: 1fr;
    }
    
    .featured-post .post-thumbnail {
        height: 250px;
    }
    
    .featured-post h2 {
        font-size: 24px;
    }
    
    .footer-widgets {
        grid-template-columns: 1fr;
    }
    
    .top-header .container,
    .top-bar .container {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    
    .social-links {
        margin-top: 10px;
    }
    
    .search-bar {
        max-width: 100%;
        margin: 10px 0 0;
    }
}

@media (max-width: 480px) {
    .logo-area h1,
    .custom-header h1,
    .urdunews-logo h1 {
        font-size: 32px;
    }
    
    .post-card .post-thumbnail,
    .urdunews-card img {
        height: 180px;
    }
    
    .featured-post .post-thumbnail {
        height: 200px;
    }
    
    .social-links a {
        padding: 8px 20px;
        margin: 5px;
    }
}

/* ===== Print Styles ===== */
@media print {
    .site-header,
    .site-footer,
    .sidebar,
    .comments-area,
    .related-posts,
    .scroll-top,
    .social-section,
    .contact-section {
        display: none;
    }
    
    body {
        background: #fff;
        color: #000;
        font-size: 12pt;
    }
    
    a {
        color: #000;
        text-decoration: none;
    }
    
    .post-card,
    .featured-post {
        box-shadow: none;
        border: 1px solid #ddd;
    }
}