/*
Theme Name: Islamic Fatwa
Theme URI: https://example.com
Description: Islamic Question & Answer WordPress Theme
Version: 1.0
Author: Your Name
Author URI: https://example.com
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: islamic-fatwa
*/

@font-face {
	font-family: 'NafeesWeb';
	src: url('assets/fonts/nafeesweb-webfont.woff') format('woff')
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'NafeesWeb', 'Open Sans', sans-serif;
    direction: rtl;
    background: #f5f5f5;
    color: #333;
    line-height: 1.8;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
.top-header {
    background: #fff;
    border-bottom: 1px solid #e0e0e0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

.site-logo {
    order: 1;
}

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

.main-navigation {
    display: flex;
    gap: 30px;
    align-items: center;
    order: 2;
}

.main-navigation a {
    text-decoration: none;
    position: relative;
    font-family: NafeesWeb, "Open Sans", sans-serif;
    font-size: 18px;
    text-transform: uppercase;
    font-weight: bold;
    color: rgb(103, 103, 103)
}

.main-navigation a:hover {
    color: var(--primary-color, #d32f2f);
}

.main-navigation .menu {
    display: flex;
    gap: 30px;
    list-style: none;
    margin: 0;
    padding: 0 25px 0 0;
}

.main-navigation .menu-item {
    position: relative;
}

.main-navigation .menu-item-has-children > a::after {
    content: '▼';
    font-size: 10px;
    margin-right: 5px;
}

.main-navigation .sub-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: #fff;
    min-width: 200px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border-radius: 4px;
    list-style: none;
    margin: 10px 0 0 0;
    padding: 10px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s;
    z-index: 1000;
}

.main-navigation .menu-item:hover > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.main-navigation .sub-menu li {
    margin: 0;
}

.main-navigation .sub-menu a {
    display: block;
    padding: 10px 20px;
    color: #333;
    white-space: nowrap;
}

.main-navigation .sub-menu a:hover {
    background: #f5f5f5;
    color: var(--primary-color, #d32f2f);
}

.header-buttons {
    display: flex;
    gap: 10px;
    order: 3;
}

.header-buttons.desktop-only {
    display: flex;
    justify-content: flex-end;
    width: 35%;
}

.desktop-only {
    display: flex;
	width: 100%;
    justify-content: space-between;
}

.btn-primary {
    background: var(--primary-color, #d32f2f);
    color: #fff;
    padding: 10px 25px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: background 0.3s;
}

.btn-primary:hover {
    background: #b71c1c;
}

.btn-secondary {
    background: var(--secondary-color, #00bcd4);
    color: #fff;
    padding: 10px 25px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: background 0.3s;
}

.btn-secondary:hover {
    background: #0097a7;
}

.secondary-nav {
    background: #333;
    padding: 0;
}

.secondary-nav .container {
    display: flex;
    gap: 0;
}

.secondary-nav a {
    color: #fff;
    text-decoration: none;
    padding: 12px 20px;
    display: block;
    transition: background 0.3s;
}

.secondary-nav a:hover,
.secondary-nav a.active {
    background: var(--primary-color, #d32f2f);
}

/* Hero Section */
.hero-section {
    background: #1a1a1a url('assets/images/hero-bg.jpg') center center / cover;
    padding: 80px 0;
    text-align: center;
    position: relative;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgb(0 0 0 / 0%);
}

.hero-content {
    position: relative;
    z-index: 1;
    color: #fff;
}

.hero-title {
    font-size: 30px;
    margin-bottom: 25px;
    font-weight: 400;
}

.hero-verse {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 30px;
    font-family: 'Amiri', serif;
}

.search-form {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    background: #fff;
    border-radius: 4px;
    overflow: hidden;
}

.search-form input[type="text"] {
    flex: 1;
    padding: 15px 20px;
    border: none;
    font-size: 16px;
    direction: rtl;
}

.search-form button {
    background: var(--secondary-color, #00bcd4);
    color: #fff;
    border: none;
    padding: 15px 30px;
    cursor: pointer;
    font-weight: bold;
}

/* Live Search Results */
.search-form {
    position: relative;
}

.live-search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border-radius: 0 0 4px 4px;
    max-height: 400px;
    overflow-y: auto;
    z-index: 1000;
    margin-top: 2px;
}

.search-result-item {
    display: block;
    padding: 15px 20px;
    border-bottom: 1px solid #e0e0e0;
    text-decoration: none;
    transition: background 0.2s;
}

.search-result-item:last-child {
    border-bottom: none;
}

.search-result-item:hover {
    background: #f5f5f5;
}

.result-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
}

.result-excerpt {
    font-size: 14px;
    color: #666;
    line-height: 1.5;
}

/* Ad Containers */
.ad-section {
    padding: 30px 0;
    background: #f5f5f5;
}

.ad-container {
    text-align: center;
    margin: 20px 0;
    padding: 15px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
}

.sidebar-ad {
    margin-bottom: 20px;
}

/* Banner Ad */
.banner-ad {
    margin: 30px 0;
}

.banner-ad img {
    width: 100%;
    height: auto;
    display: block;
}

/* Post Blocks Section */
.post-blocks-section {
    padding: 50px 0;
    background: #e8e8e8;
}

.blocks-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin-top: 30px;
}

.post-block {
    border-radius: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.block-header {
    background: var(--secondary-color, #00bcd4);
    color: #fff;
    padding: 12px 20px;
    font-size: 20px;
    text-align: center;
    font-weight: 600;
	margin-bottom: 5px;
}

.block-content {
    padding: 0;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.block-item {
    margin: 9px 0;
    padding: 20px 22px;
    border-bottom: 1px solid #e0e0e0;
    background: #ffffff;
	min-height: 200px;
}
.block-item:hover {
    -webkit-box-shadow: 0 2px 6px 0 rgba(0, 0, 0, 0.15);
}
.block-item:last-child {
    border-bottom: none;
}

.block-item-title {
    display: inline-block;
    font-size: 20px;
    margin: 0 0 8px 0;
    color: #1a1a1a;
    line-height: 1.6;
    font-weight: 600;
    text-decoration: none;
    border-right: 3px solid var(--secondary-color, #00bcd4);
    padding-right: 12px;
    transition: color 0.2s;
}

.block-item-title:hover {
    color: var(--secondary-color, #00bcd4);
}

.block-item-excerpt {
    font-size: 17px;
    color: #666;
    line-height: 1.7;
    margin: 0;
    padding-right: 15px;
}

.block-footer {
    padding: 0;
    text-align: center;
    margin-top: auto;
	display: flex;
    justify-content: center;
}

.btn-block-more {
    display: block;
    background: var(--primary-color, #d32f2f);
    color: #fff;
    padding: 6px 14px;
    text-decoration: none;
    font-size: 19px;
    font-weight: 600;
    transition: background 0.3s;
    width: 40%;
    text-align: center;
	margin-top: 5px;
}

.btn-block-more:hover {
    background: var(--secondary-color, #00bcd4);
}

/* Categories Section */
.categories-section {
    padding: 50px 0;
    background: #fff;
}

.section-title {
    text-align: center;
    font-size: 28px;
    color: var(--secondary-color, #00bcd4);
    margin-bottom: 40px;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.category-box {
    background: #fff;
    border: 1px solid var(--primary-color, #d32f2f);
    border-radius: 8px;
    padding: 10px 20px;
    text-align: center;
    transition: all 0.3s;
    cursor: pointer;
    text-decoration: none;
}

.category-box:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transform: translateY(-5px);
	border:1px solid var(--secondary-color, #00bcd4);
}

.category-icon {
    font-size: 60px;
    margin-bottom: 5px;
	color: var(--primary-color, #d32f2f);
}
.category-icon:hover{
	color: var(--secondary-color, #00bcd4);
}
.category-icon i {
    font-size: 60px;
    display: block;
}

.category-name {
    font-size: 18px;
    color: #333;
	font-weight: 900;
	margin-bottom: 8px;
}

/* Posts Grid Section */
.posts-grid-section {
    padding: 50px 0;
    background: #f9f9f9;
}
.post-thumbnail:before {
    content: '';
    position: absolute;
    left: 0;
    bottom: -1px;
    border-bottom: 40px solid var(--secondary-color, #00bcd4);
    border-right: 40px solid transparent;
    z-index: 1000;
}
.post-thumbnail:after {
    content: '';
    position: absolute;
    right: 0;
    top: 0px;
    border-top: 40px solid var(--secondary-color, #00bcd4);
    border-left: 40px solid transparent;
    z-index: 1000;
}
.posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin-top: 30px;
}

.post-card {
   overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    position: relative;
    transition: transform 0.3s;
    background: #fff;
    padding: 15px;
    border: 1px solid #e4e4e4;
}

.post-card:hover {
    transform: translateY(-5px);
	border:1px Solid var(--secondary-color, #00bcd4);
}

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

.post-thumbnail img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.post-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--primary-color, #d32f2f);
    color: #fff;
    padding: 5px 15px;
    border-radius: 4px;
    font-size: 12px;
	display: none;
}

.play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.post-meta {
    padding: 15px;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
	display: none;
}

.post-title {
    font-size: 16px;
    margin-bottom: 5px;
}

.post-info {
    font-size: 12px;
    opacity: 0.9;
}

/* Instructions Section */
.instructions-section {
    padding: 50px 0;
    background: #fff;
}

.instructions-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 30px;
}

.instruction-box {
    text-align: center;
}

.instruction-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    position: relative;
    border: 5px solid #ffffff;
}
.instruction-icon:before {
    content: "";
    border: 1px solid #ed1c24;
    position: absolute;
    left: -8px;
    bottom: -8px;
    width: 84px;
    height: 85px;
    border-radius: 100%;
}
.instruction-icon i {
    font-size: 36px;
}

.instruction-icon.green {
    background: #4caf50;
}

.instruction-icon.blue {
    background: var(--secondary-color, #00bcd4);
}

.instruction-icon.red {
    background: var(--primary-color, #d32f2f);
}

.instruction-title {
    font-size: 20px;
    margin-bottom: 15px;
    color: #333;
}

.instruction-text {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 15px;
	font-size: 18px;
    font-family: 'NafeesWeb', 'Open Sans', sans-serif;
    color: #555555;
    line-height: 26px;
    text-align: right;
    direction: rtl;
}

.instruction-text.collapsed {
    max-height: 60px;
    overflow: hidden;
}

.btn-toggle {
    background: var(--primary-color, #d32f2f);
    color: #fff;
    padding: 8px 25px;
    border-radius: 4px;
    text-decoration: none;
    display: inline-block;
    cursor: pointer;
    border: none;
    font-family: inherit;
}

.btn-toggle:hover{
	background:var(--secondary-color, #00bcd4);
}
/* App Section */
.app-section {
    padding: 60px 0;
    background: var(--primary-color, #d32f2f) url('assets/images/app-bg.jpg') center center / cover;
    position: relative;
    color: #fff;
}

.app-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(211, 47, 47, 0.85);
}

.app-content {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 50px;
    align-items: center;
	direction: ltr;
}

.app-image img {
    max-width: 100%;
    height: auto;
}

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

.app-title {
    font-size: 32px;
    margin-bottom: 20px;
}

.app-description {
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 30px;
}

.app-buttons {
    display: flex;
    gap: 15px;
    justify-content: flex-end;
}

.btn-download {
    background: #fff;
    color: var(--primary-color, #d32f2f);
    padding: 12px 30px;
    border-radius: 25px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: bold;
    transition: transform 0.3s;
}

.btn-download:hover {
    transform: scale(1.05);
}

/* Footer */
.site-footer {
    background: #1a1a1a;
    color: #fff;
    padding: 50px 0 0;
}

.footer-widgets {
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr 1.5fr;
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid #333;
}

.footer-widget h3 {
    font-size: 18px;
    margin-bottom: 20px;
    color: #fff;
    font-weight: 600;
}

.footer-logo {
    margin-bottom: 20px;
}

.footer-logo img {
    height: 60px;
    width: auto;
}

.footer-text {
    font-size: 14px;
    line-height: 1.9;
    color: #ccc;
    margin-bottom: 15px;
}

.footer-address {
    font-size: 14px;
    line-height: 1.9;
    color: #ccc;
}

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

.footer-menu li {
    margin-bottom: 12px;
}

.footer-menu a {
    color: #ccc;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
}

.footer-menu a:hover {
    color: var(--primary-color, #d32f2f);
}

.footer-bottom {
    padding: 25px 0;
    text-align: center;
}

.social-links {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-bottom: 15px;
}

.social-links a {
    color: #fff;
    font-size: 20px;
    transition: color 0.3s;
}

.social-links a:hover {
    color: var(--primary-color, #d32f2f);
}

.copyright {
    font-size: 14px;
    color: #999;
}

/* Single Post */
.single-post-hero {
    background: #1a1a1a url('assets/images/hero-bg.jpg') center center / cover;
    padding: 60px 0;
    text-align: center;
    position: relative;
}

.single-post-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
}

.single-post-hero .hero-content {
    position: relative;
    z-index: 1;
}

.single-content-wrapper {
    padding: 50px 0;
    background: #f5f5f5;
}

.content-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 30px;
}

.main-content {
    background: #fff;
    padding: 0;
    border-radius: 0;
}

.single-post-content {
    background: #fff;
}

.post-header-meta {
    padding: 30px 35px;
    border-bottom: 1px solid #e8e8e8;
}

.post-number-large {
    text-align: right;
    font-size: 22px;
    color: #000000;
    font-weight: 900;
    margin-bottom: 8px;
}

.post-question {
    font-size: 20px;
    color: #1a1a1a;
    line-height: 1.8;
    margin-bottom: 20px;
    font-weight: 500;
}

.post-meta-info {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    color: #555;
    flex-wrap: wrap;
}

.meta-separator {
    color: #999;
    margin: 0 5px;
}

.meta-icon {
    font-size: 20px;
    color: var(--secondary-color, #00bcd4);
	    margin-left: 5px;
}

.meta-label {
    color: #000000;
    font-weight: 700;
    font-size: 18px;
}

.meta-value {
    color: #666;
}

.meta-category {
    color: var(--secondary-color, #00bcd4);
    text-decoration: none;
    margin-right: 5px;
}

.meta-category:hover {
    text-decoration: underline;
}

.entry-content {
    padding: 35px 35px 20px;
    font-size: 17px;
    line-height: 2;
    color: #333;
}

.answer-heading {
    font-size: 20px;
    margin: 0 0 20px;
    color: #1a1a1a;
    font-weight: 600;
}

.entry-content p {
    margin-bottom: 18px;
}

.arabic-verse {
    font-family: 'Amiri', serif;
    font-size: 22px;
    line-height: 2.2;
    text-align: center;
    padding: 25px;
    background: #f9f9f9;
    border-right: 4px solid var(--primary-color, #d32f2f);
    margin: 25px 0;
}

.post-footer-info {
    padding: 20px 35px 30px;
}

.mufti-signature {
    text-align: right;
    font-size: 18px;
    color: #333;
    margin-bottom: 15px;
    font-weight: 500;
}

.mufti-name-box {
    text-align: right;
    font-size: 19px;
    color: #d21111;
    margin-bottom: 25px;
}

.mufti-intro-box {
    background: #f0fcf9;
    border-right: 4px solid #4caf50;
    padding: 20px 25px;
    margin-top: 20px;
	border-radius: 10px;
}

.mufti-intro-icon {
    font-size: 28px;
    margin-bottom: 8px;
	display:flex;
	gap:15px;
}

.mufti-intro-title {
    font-size: 18px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 12px;
}

.mufti-intro-text {
    font-size: 15px;
    line-height: 1.8;
    color: #555;
}

.social-share {
    padding: 25px 35px;
    border-top: 1px solid #e8e8e8;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
}

.share-buttons {
    display: flex;
    gap: 12px;
    align-items: center;
}

.share-icon-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #fff;
    border: 1px solid #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #555;
    text-decoration: none;
    transition: all 0.3s;
    cursor: pointer;
}

.share-icon-btn:hover {
    background: #f5f5f5;
    border-color: #ccc;
}

.share-icon-btn.facebook:hover {
    background: #1877f2;
    border-color: #1877f2;
    color: #fff;
}

.share-icon-btn.twitter:hover {
    background: #1da1f2;
    border-color: #1da1f2;
    color: #fff;
}

.share-icon-btn.email:hover {
    background: #ea4335;
    border-color: #ea4335;
    color: #fff;
}

.share-icon-btn.whatsapp:hover {
    background: #25d366;
    border-color: #25d366;
    color: #fff;
}

.btn-share-primary {
    background: var(--primary-color, #d32f2f);
    color: #fff;
    padding: 12px 30px;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}

.btn-share-primary:hover {
    background: #b71c1c;
}

.comments-area {
    padding: 25px 35px;
    border-top: 1px solid #e8e8e8;
}

.comments-count {
    font-size: 16px;
    color: #333;
    margin-bottom: 10px;
    font-weight: 500;
}

.comments-sort {
    font-size: 14px;
    color: #666;
    margin-bottom: 20px;
}

.comments-sort span {
    color: #333;
    font-weight: 500;
}

.share-btn {
    width: 40px;
    height: 40px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-decoration: none;
    transition: transform 0.3s;
}

.share-btn:hover {
    transform: scale(1.1);
}

.share-btn.facebook {
    background: #3b5998;
}

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

.share-btn.email {
    background: #666;
}

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

.comments-area {
    margin-top: 40px;
    padding-top: 40px;
    border-top: 1px solid #e0e0e0;
}

.comments-title {
    font-size: 18px;
    margin-bottom: 20px;
}

.comment-form textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    font-family: inherit;
    resize: vertical;
    min-height: 100px;
}

/* Sidebar */
.sidebar {
    position: sticky;
    top: 100px;
    align-self: flex-start;
}

.sidebar-widget {
    background: var(--secondary-color, #00bcd4);
    padding: 0;
    border-radius: 0;
    margin-bottom: 25px;
    overflow: hidden;
}

.widget-title {
    color: #fff;
    font-size: 18px;
    margin: 0;
    padding: 18px 20px;
    text-align: center;
    font-weight: 600;
    background: rgba(0, 0, 0, 0.1);
}

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

.widget-posts li {
    margin: 0;
    padding: 16px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

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

.widget-posts a {
    color: #fff;
    text-decoration: none;
    font-size: 15px;
    line-height: 1.7;
    display: block;
    transition: opacity 0.3s;
}

.widget-posts a:hover {
    opacity: 0.85;
}

/* Archive Page */
.archive-hero {
    background: #1a1a1a url('assets/images/hero-bg.jpg') center center / cover;
    padding: 60px 0;
    text-align: center;
    position: relative;
}

.archive-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
}

.archive-title {
    position: relative;
    z-index: 1;
    color: #fff;
    font-size: 32px;
}

.archive-content {
    padding: 50px 0;
}

.archive-layout {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 40px;
}

.archive-main {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.archive-search {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.question-item {
    background: #fff;
    padding: 25px 30px;
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    transition: box-shadow 0.3s;
}

.question-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.question-number {
    font-size: 18px;
    color: #999;
    min-width: 60px;
}

.question-title {
    flex: 1;
    font-size: 18px;
    color: #333;
}

.question-link {
    text-decoration: none;
    color: inherit;
}

.archive-sidebar {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.ad-placeholder {
    background: #e0e0e0;
    padding: 150px 50px;
    text-align: center;
    border-radius: 8px;
}

.ad-placeholder svg {
    width: 80px;
    height: 80px;
    fill: #999;
}

/* Pagination */
.pagination {
    margin-top: 40px;
    text-align: center;
}

.pagination .nav-links {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.pagination a,
.pagination span {
    padding: 10px 15px;
    background: #fff;
    border-radius: 4px;
    text-decoration: none;
    color: #333;
    transition: all 0.3s;
}

.pagination a:hover,
.pagination .current {
    background: var(--primary-color, #d32f2f);
    color: #fff;
}

/* Mobile Menu */
.mobile-menu-toggle {
    display: none;
    background: transparent;
    border: none;
    padding: 10px;
    cursor: pointer;
    order: 1;
    flex-direction: column;
    gap: 4px;
    width: 40px;
    height: 40px;
    justify-content: center;
    align-items: center;
}

.mobile-menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background: var(--primary-color, #d32f2f);
    border-radius: 2px;
    transition: all 0.3s;
}

.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-menu-sidebar {
    position: fixed;
    top: 0;
    right: -100%;
    width: 300px;
    height: 100%;
    background: #fff;
    z-index: 9999;
    overflow-y: auto;
    transition: right 0.3s;
    box-shadow: -4px 0 12px rgba(0, 0, 0, 0.15);
}

.mobile-menu-sidebar.active {
    right: 0;
}

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #e0e0e0;
}

.mobile-menu-logo img {
    height: 50px;
    width: auto;
}

.mobile-menu-close {
    background: transparent;
    border: none;
    font-size: 36px;
    color: #666;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    line-height: 1;
}

.mobile-menu-title {
    background: var(--secondary-color, #00bcd4);
    color: #fff;
    padding: 15px 20px;
    font-size: 20px;
    text-align: center;
    font-weight: bold;
}

.mobile-menu-nav {
    padding: 20px 0;
}

.mobile-menu-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.mobile-menu-list li {
    border-bottom: 1px solid #f0f0f0;
}

.mobile-menu-list a {
    display: block;
    padding: 15px 20px;
    color: #333;
    text-decoration: none;
    font-size: 16px;
    transition: all 0.3s;
}

.mobile-menu-list a:hover {
    background: #f5f5f5;
    color: var(--primary-color, #d32f2f);
    padding-right: 30px;
}

.mobile-menu-list .sub-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    background: #f9f9f9;
    display: none;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.mobile-menu-list .sub-menu.active {
    display: block;
    max-height: 500px;
}

.mobile-menu-list .sub-menu a {
    padding-right: 40px;
    font-size: 14px;
}

.mobile-menu-list .menu-item-has-children > a {
    position: relative;
    padding-left: 35px;
}

.mobile-menu-list .menu-item-has-children > a::after {
    content: '▼';
    position: absolute;
    left: 15px;
    font-size: 12px;
    transition: transform 0.3s;
}

.mobile-menu-list .menu-item-has-children.active > a::after {
    transform: rotate(180deg);
}

.mobile-menu-buttons {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.mobile-menu-btn {
    display: block;
    padding: 15px 20px;
    text-align: center;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    font-size: 18px;
    font-weight: bold;
    transition: transform 0.3s;
}

.mobile-menu-btn:hover {
    transform: scale(1.05);
}

.mobile-menu-btn.red {
    background: var(--primary-color, #d32f2f);
}

.mobile-menu-btn.blue {
    background: var(--secondary-color, #00bcd4);
}

/* Responsive */
@media (max-width: 1024px) {
    .blocks-container,
    .posts-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .categories-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .content-layout,
    .archive-layout {
        grid-template-columns: 1fr;
    }
    
    .sidebar {
        position: static;
    }
}

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
    }
    
    .desktop-only {
        display: none !important;
    }
    
    .header-main {
        position: relative;
    }
    
    .site-logo {
        order: 2;
        margin: 0 auto;
    }
    
    .site-logo img {
        height: 40px;
    }
    
    .mobile-menu-toggle {
        order: 1;
    }
    
    .blocks-container,
    .posts-grid,
    .instructions-grid {
        grid-template-columns: 1fr;
    }
    
    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .app-content {
        text-align: center;
		display: flex;
        flex-direction: column-reverse;
    }
	.app-section {
		padding: 25px 0;
	}
    .app-buttons {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .footer-widgets {
        grid-template-columns: 1fr;
    }
    
    .footer-widgets {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .footer-widget h3 {
        font-size: 17px;
        margin-bottom: 15px;
    }
    
    .footer-text,
    .footer-address {
        font-size: 13px;
        line-height: 1.8;
    }
    
    .footer-menu a {
        font-size: 13px;
    }
    
    .hero-verse {
        font-size: 22px;
        line-height: 1.6;
    }
    
    .single-post-hero .hero-verse {
        font-size: 20px;
        line-height: 1.7;
        padding: 0 10px;
    }
    
    .hero-title {
        font-size: 16px;
    }
    
    .search-form {
        flex-direction: column;
    }
    
    .search-form input[type="text"] {
        border-radius: 4px 4px 0 0;
    }
    
    .search-form button {
        border-radius: 0 0 4px 4px;
    }
    
    .main-content {
        padding: 0;
    }
    
    .post-header-meta {
        padding: 20px 18px;
    }
    
    .post-number-large {
        font-size: 14px;
        margin-bottom: 12px;
    }
    
    .post-question {
        font-size: 18px;
        line-height: 1.7;
        margin-bottom: 18px;
    }
    
    .meta-item {
        font-size: 14px;
        gap: 6px;
    }
    
    .meta-icon {
        font-size: 16px;
    }
    
    .entry-content {
        padding: 25px 18px 15px;
        font-size: 16px;
        line-height: 1.9;
    }
    
    .answer-heading {
        font-size: 18px;
        margin-bottom: 15px;
    }
    
    .arabic-verse {
        font-size: 20px;
        padding: 20px;
        margin: 20px 0;
    }
    
    .post-footer-info {
        padding: 15px 18px 25px;
    }
    
    .mufti-signature {
        font-size: 15px;
        margin-bottom: 12px;
    }
    
    .mufti-name-box {
        font-size: 15px;
        margin-bottom: 20px;
    }
    
    .mufti-intro-box {
        padding: 18px 20px;
        margin-top: 18px;
    }
    
    .mufti-intro-icon {
        font-size: 24px;
        margin-bottom: 6px;
    }
    
    .mufti-intro-title {
        font-size: 17px;
        margin-bottom: 10px;
    }
    
    .mufti-intro-text {
        font-size: 14px;
        line-height: 1.7;
    }
    
    .social-share {
        padding: 20px 18px;
        flex-direction: column;
        gap: 15px;
    }
    
    .share-buttons {
        gap: 10px;
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .share-icon-btn {
        width: 40px;
        height: 40px;
    }
    
    .btn-share-primary {
        width: 100%;
        padding: 14px 20px;
    }
    
    .comments-area {
        padding: 20px 18px;
    }
    
    .comments-count {
        font-size: 15px;
    }
    
    .comments-sort {
        font-size: 13px;
    }
    
    .sidebar {
        margin-top: 30px;
    }
    
    .single-content-wrapper {
        padding: 30px 0;
        background: #fff;
    }
    
    .question-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .question-number {
        order: 1;
    }
    
    .question-title {
        order: 2;
    }
    
    .btn-secondary {
        order: 3;
        align-self: flex-start;
    }
    
    .secondary-nav {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .secondary-nav .container {
        min-width: max-content;
    }
}
