/*
Theme Name: Istiqama - الاستقامة
Theme URI: https://istiqama.org
Description: موضوع احترافي وعصري باللغة العربية للموقع الإسلامي "الاستقامة" - Professional and modern Arabic theme for Istiqama Islamic website
Version: 1.1
Author: Istiqama
Text Domain: istiqama
Template: twentytwentyfive
*/

/* استيراد خط تجول من Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@300;400;500;700;800&display=swap');

/* ========================================
   المتغيرات والألوان الأساسية
   Based on original istiqama website colors
======================================== */
:root {
    --primary-color: #FAC79F;      /* Peach/Gold - Main brand color */
    --primary-dark: #E89B6D;       /* Orange - Darker accent */
    --primary-light: #F5B17E;      /* Light Orange */
    --secondary-color: #91AFAF;    /* Teal - Secondary color */
    --secondary-light: #B8CFCF;    /* Light teal */
    --accent-color: #E89B6D;       /* Orange accent */
    --dark-bg: #2C1810;            /* Dark brown background */
    --dark-secondary: #3D2415;     /* Brown secondary */
    --text-primary: #2C1810;       /* Dark brown text */
    --text-secondary: #5A4A3D;     /* Medium brown text */
    --text-light: rgba(255, 255, 255, 0.9);
    --text-lighter: rgba(255, 255, 255, 0.7);
    --bg-light: #FDF8F3;           /* Warm light background */
    --bg-white: #FFFFFF;           /* White background */
    --border-color: rgba(250, 199, 159, 0.3);
    --border-light: rgba(250, 199, 159, 0.3);
    --shadow: 0 2px 8px rgba(44, 24, 16, 0.1);
    --shadow-hover: 0 4px 16px rgba(44, 24, 16, 0.15);
    --gradient-primary: linear-gradient(135deg, #FAC79F 0%, #E89B6D 100%);
    --gradient-secondary: linear-gradient(135deg, #F5B17E 0%, #D18A5A 100%);
}

/* ========================================
   إعدادات عامة - General Settings
======================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
}

body {
    font-family: 'Tajawal', Arial, sans-serif !important;
    direction: rtl;
    text-align: right;
    background-color: var(--bg-light);
    color: var(--text-primary);
    line-height: 1.8;
    font-size: 16px;
    overflow-x: hidden;
    min-width: 320px;
}

/* تأكد من أن كل النصوص تستخدم خط تجول */
h1, h2, h3, h4, h5, h6,
p, a, li, span, div,
input, textarea, button,
.wp-block-post-title,
.entry-title {
    font-family: 'Tajawal', Arial, sans-serif !important;
}

/* منع تجاوز العرض على الجوال */
img,
video,
iframe {
    max-width: 100%;
    height: auto;
    display: block;
}

/* تحسين اللمس على الجوال */
a,
button,
.btn {
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0.1);
    touch-action: manipulation;
}

/* ========================================
   الحاوية الرئيسية - Main Container
======================================== */
.site-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ========================================
   الترويسة - Header
======================================== */
.site-header {
    background: linear-gradient(to left, rgba(222, 186, 140, 0.95), rgba(145, 175, 175, 0.95), rgba(222, 186, 140, 0.95));
    backdrop-filter: blur(12px);
    box-shadow: 0 2px 10px rgba(44, 24, 16, 0.15);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.site-logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.site-logo img {
    height: 60px;
    width: auto;
    transition: transform 0.3s ease;
}

.site-logo:hover img {
    transform: scale(1.05);
}

.site-title {
    display: none; /* Hide site name on all devices */
}

/* Mobile Menu Toggle - Hamburger Icon */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
}

.hamburger-icon {
    width: 30px;
    height: 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
}

.hamburger-icon span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: var(--bg-white);
    border-radius: 3px;
    transition: all 0.3s ease;
}

/* Hamburger Animation */
.mobile-menu-toggle.active .hamburger-icon span:nth-child(1) {
    transform: translateY(10.5px) rotate(45deg);
}

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

.mobile-menu-toggle.active .hamburger-icon span:nth-child(3) {
    transform: translateY(-10.5px) rotate(-45deg);
}

/* القائمة الرئيسية - Main Navigation */
.main-navigation {
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
    list-style: none;
    margin: 0;
    padding: 0;
    flex: 1;
    justify-content: center;
}

/* Desktop/Mobile visibility classes */
.mobile-only {
    display: none !important;
}

.desktop-only {
    display: block;
}

.main-navigation ul,
.main-navigation li {
    list-style: none;
    margin: 0;
    padding: 0;
}

.main-navigation ul,
.main-navigation .nav-menu {
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
}

.main-navigation a {
    color: var(--bg-white);
    text-decoration: none;
    padding: 10px 14px;
    font-weight: 500;
    font-size: 16px;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
}

.main-navigation a:hover,
.main-navigation a.active {
    background-color: rgba(44, 24, 16, 0.25);
    color: #fff !important;
    transform: translateY(-2px);
}

/* Dropdown Menu Styles */
.main-navigation .menu-item-has-children {
    position: relative;
}

.main-navigation .menu-item-has-children > a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.main-navigation .dropdown-arrow {
    transition: transform 0.3s ease;
}

.main-navigation .menu-item-has-children:hover .dropdown-arrow {
    transform: rotate(180deg);
}

.main-navigation .sub-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--bg-white);
    min-width: 220px;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 1000;
    padding: 10px 0;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.main-navigation .menu-item-has-children:hover .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(5px);
}

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

.main-navigation .sub-menu a {
    color: var(--text-primary) !important;
    padding: 12px 20px;
    display: block;
    font-size: 15px;
    border-radius: 0;
    transition: all 0.2s ease;
}

.main-navigation .sub-menu a:hover {
    background-color: var(--primary-color);
    color: #fff !important;
    transform: none;
}

.main-navigation .sub-menu .view-all a {
    border-top: 1px solid var(--border-color);
    margin-top: 5px;
    padding-top: 15px;
    color: var(--primary-color) !important;
    font-weight: 600;
}

.main-navigation .sub-menu .view-all a:hover {
    background-color: var(--primary-color);
    color: #fff !important;
}

/* Header Contribute Button */
.header-contribute {
    /* Stays on the left side */
}

.btn-contribute {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--gradient-primary);
    color: white;
    padding: 10px 24px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 700;
    font-size: 16px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(44, 24, 16, 0.2);
    border: 2px solid var(--primary-color);
}

.btn-contribute:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(44, 24, 16, 0.3);
    background: var(--gradient-secondary);
}

.btn-contribute svg {
    width: 18px;
    height: 18px;
}

/* ========================================
   قسم البطل - Hero Section
======================================== */
.hero-section {
    background: linear-gradient(135deg, #2C1810 0%, #4A2819 50%, #6B3A25 100%);
    color: var(--bg-white);
    padding: 120px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Internal page hero - smaller version without min-height */
.hero-section.hero-internal {
    min-height: auto;
    padding: 60px 20px 80px;
}

.hero-section h1,
.hero-section h2,
.hero-section h3 {
    color: #fff !important;
}

.hero-section p {
    color: rgba(255, 255, 255, 0.9) !important;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 50%, rgba(250, 199, 159, 0.15) 0%, transparent 50%),
                radial-gradient(circle at 80% 80%, rgba(232, 155, 109, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 1100px;
    margin: 0 auto;
}

/* Hero Badge */
.hero-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: var(--bg-white);
    padding: 10px 28px;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 35px;
    backdrop-filter: blur(10px);
    letter-spacing: 0.5px;
}

/* Hero Title */
.hero-title {
    margin-bottom: 30px;
    line-height: 1.2;
}

.hero-title-main {
    display: block;
    font-size: 48px;
    font-weight: 800;
    color: #FFFFFF;
    margin-bottom: 10px;
    text-shadow: 3px 3px 12px rgba(0,0,0,0.4);
    letter-spacing: -1px;
}

.hero-title-sub {
    display: block;
    font-size: 56px;
    font-weight: 700;
    color: #FAC79F;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.3);
}

/* Hero Description */
.hero-description {
    font-size: 20px;
    font-weight: 400;
    margin-bottom: 45px;
    opacity: 0.95;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.95);
    max-width: 850px;
    margin-left: auto;
    margin-right: auto;
}

/* Hero Search Box */
.hero-search {
    max-width: 650px;
    margin: 0 auto 35px auto;
}

.hero-search-form {
    width: 100%;
}

.hero-search-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 50px;
    padding: 5px 5px 5px 25px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

.hero-search-wrapper:hover,
.hero-search-wrapper:focus-within {
    background: rgba(255, 255, 255, 1);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
    transform: translateY(-2px);
}

.hero-search-input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 16px 20px;
    font-size: 16px;
    font-family: 'Tajawal', Arial, sans-serif;
    color: var(--text-primary);
    outline: none;
    direction: rtl;
    text-align: right;
}

.hero-search-input::placeholder {
    color: #999;
    opacity: 1;
}

.search-field::placeholder {
    color: white;
    opacity: 1;
}

/* Search form styling for archive pages */
.hero-section .hero-content form[role="search"] {
    max-width: 900px !important;
    width: 100% !important;
}

.hero-search-button {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    border: none;
    width: 55px;
    height: 55px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
    color: white;
}

.hero-search-button:hover {
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--primary-dark) 100%);
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(44, 155, 155, 0.4);
}

.hero-search-button svg {
    width: 22px;
    height: 22px;
}

.hero-buttons {
    display: flex;
    gap: 18px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    padding: 15px 35px;
    font-size: 18px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 12px;
    transition: all 0.3s ease;
    display: inline-block;
    border: none;
    cursor: pointer;
    font-family: 'Tajawal', Arial, sans-serif;
}

/* Hero Buttons */
.btn-hero-primary {
    background-color: #E5C98B;
    color: #3E2723;
    padding: 16px 40px;
    font-size: 18px;
    font-weight: 600;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(229, 201, 139, 0.4);
    border: none;
}

.btn-hero-primary:hover {
    background-color: #F5D9A3;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(229, 201, 139, 0.5);
}

.btn-hero-secondary {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--bg-white);
    border: 2px solid rgba(255, 255, 255, 0.3);
    padding: 14px 38px;
    font-size: 18px;
    font-weight: 600;
    border-radius: 10px;
    backdrop-filter: blur(10px);
}

.btn-hero-secondary:hover {
    background-color: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-3px);
}

/* Regular Buttons */
.btn-primary {
    background: linear-gradient(135deg, #FAC79F 0%, #E89B6D 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(250, 199, 159, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #E89B6D 0%, #FAC79F 100%);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(250, 199, 159, 0.5);
}

.btn-secondary {
    background-color: transparent;
    color: var(--bg-white);
    border: 2px solid var(--bg-white);
}

.btn-secondary:hover {
    background-color: var(--bg-white);
    color: var(--primary-color);
}

/* ========================================
   الأقسام الرئيسية - Main Sections
======================================== */
.main-content {
    padding: 60px 20px;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 38px;
    font-weight: 700;
    color: #FAC79F;
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    right: 50%;
    transform: translateX(50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #FAC79F, #E89B6D);
    border-radius: 2px;
}

.section-title p {
    font-size: 18px;
    color: var(--text-secondary);
    max-width: 700px;
    margin: 20px auto 0;
}

/* ========================================
   بطاقات التصنيفات - Category Cards (Old Style)
======================================== */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 40px;
}

.category-card {
    background: var(--bg-white);
    border-radius: 16px;
    padding: 35px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: var(--shadow);
    border: 2px solid transparent;
    text-decoration: none;
    display: block;
}

.category-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary-color);
}

.category-icon {
    font-size: 48px;
    margin-bottom: 20px;
    display: block;
}

/* ========================================
   بطاقات التصنيفات الحديثة - Modern Category Cards
======================================== */
.categories-grid-modern {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 25px;
    margin-top: 40px;
}

.category-card-modern {
    background: rgba(62, 39, 35, 0.7);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 0;
    text-decoration: none;
    display: block;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    overflow: hidden;
}

.category-card-modern:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.2);
}

.category-card-inner {
    padding: 20px 25px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    direction: rtl;
}

.category-row {
    display: flex;
    align-items: center;
    gap: 15px;
    direction: rtl;
}

.category-header {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 12px;
}

.category-badge {
    background: rgba(150, 150, 150, 0.4);
    color: rgba(255, 255, 255, 0.9);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    margin-right: auto;
}

.category-name {
    font-size: 22px;
    font-weight: 700;
    color: white;
    margin: 0;
    flex: 1;
}

.category-desc {
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    line-height: 1.5;
    margin: 0;
    text-align: right;
    padding-right: 75px;
}

.category-icon-wrapper {
    width: 55px;
    height: 55px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    color: white;
    flex-shrink: 0;
}

.category-icon-wrapper svg {
    width: 26px;
    height: 26px;
    color: white;
}

.category-card-modern:hover .category-icon-wrapper {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.category-icon-large {
    font-size: 28px;
    filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.2));
}

.category-card h3 {
    font-size: 24px;
    font-weight: 700;
    color: #2C1810 !important;
    margin-bottom: 12px;
}

.category-card p {
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: 15px;
    line-height: 1.6;
}

.category-count {
    display: inline-block;
    background-color: var(--primary-light);
    color: var(--bg-white);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
}

/* ألوان مخصصة للتصنيفات */
.category-card:nth-child(1) { border-top: 4px solid #2C9B9B; }
.category-card:nth-child(2) { border-top: 4px solid #C9A961; }
.category-card:nth-child(3) { border-top: 4px solid #1A5F5F; }
.category-card:nth-child(4) { border-top: 4px solid #4DB8B8; }
.category-card:nth-child(5) { border-top: 4px solid #E5C98B; }
.category-card:nth-child(6) { border-top: 4px solid #1F7272; }

/* ========================================
   المقالات الأخيرة - Recent Posts (Old Style)
======================================== */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

/* ========================================
   المقالات الحديثة - Modern Posts Style
======================================== */
.posts-grid-modern {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 25px;
    margin-top: 40px;
}

.post-card-modern {
    position: relative;
    text-decoration: none;
    display: block;
}

.post-card-link {
    text-decoration: none;
    display: block;
    height: 100%;
}

.post-card-inner-modern {
    background: rgba(62, 39, 35, 0.7);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 35px;
    min-height: 280px;
    position: relative;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
}

.post-card-modern:hover .post-card-inner-modern {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.2);
}

/* Adjust when no avatar */
.post-card-modern.no-avatar .post-card-inner-modern {
    padding: 35px;
}

/* Post Badge */
.post-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--secondary-color);
    color: white;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    z-index: 2;
    align-self: flex-start;
    margin-bottom: 15px;
}

/* Post Title */
.post-title-modern {
    font-size: 18px;
    font-weight: 700;
    color: white;
    margin: 0 0 12px 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Add padding to title when avatar exists */
.post-card-modern.has-avatar .post-title-modern {
    padding-right: 120px; /* Make room for avatar on the right */
}

/* Post Excerpt */
.post-excerpt-modern {
    color: rgba(255, 255, 255, 0.85);
    font-size: 15px;
    line-height: 1.6;
    margin: 0 0 15px 0;
    flex: 1;
}

/* Post Meta Footer */
.post-meta-modern {
    display: flex;
    gap: 8px;
    margin: 0;
    flex-wrap: wrap;
    align-items: center;
}

.post-date-badge,
.post-category-badge {
    background: rgba(201, 169, 97, 0.8);
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 11px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    font-weight: 500;
    white-space: nowrap;
}

/* Author Avatar Circle */
.post-avatar-wrapper {
    position: absolute;
    top: -20px;
    right: 20px;
    z-index: 3;
    width: 100px;
}

.post-avatar-circle {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 4px solid rgba(255, 255, 255, 0.9);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    object-fit: cover;
    background: white;
}

.post-avatar-badge {
    position: absolute;
    bottom: -5px;
    right: -10px;
    background: var(--secondary-color);
    color: white;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 11px;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.post-card {
    background: var(--bg-white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    text-decoration: none;
    display: block;
}

.post-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

/* Post card without thumbnail */
.post-card.no-thumbnail .post-content {
    padding-top: 30px;
}

.post-thumbnail {
    width: 100%;
    height: 220px;
    object-fit: cover;
    background: linear-gradient(135deg, #FAC79F, #E89B6D);
}

.post-content {
    padding: 25px;
}

.post-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 12px;
    font-size: 14px;
    color: var(--text-secondary);
    flex-wrap: wrap;
}

.post-category {
    background: rgba(250, 199, 159, 0.2);
    color: #E89B6D;
    padding: 4px 12px;
    border-radius: 12px;
    font-weight: 600;
    border: 1px solid rgba(250, 199, 159, 0.3);
}

.post-card h3 {
    font-size: 20px;
    font-weight: 700;
    color: #2C1810 !important;
    margin-bottom: 12px;
    line-height: 1.5;
}

.post-excerpt {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 15px;
}

.read-more {
    color: #E89B6D;
    font-weight: 600;
    font-size: 15px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    padding: 8px 16px;
    border-radius: 20px;
    background: transparent;
}

.read-more:hover {
    color: white;
    background: linear-gradient(135deg, #2C1810 0%, #4A2819 100%);
    transform: translateX(-5px);
    box-shadow: 0 4px 15px rgba(44, 24, 16, 0.3);
}

/* ========================================
   قسم عن الموقع - About Section
======================================== */
.about-section {
    background: var(--bg-white);
    padding: 60px 20px;
    margin: 60px 0;
    border-radius: 20px;
    box-shadow: var(--shadow);
}

.about-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.about-content h2 {
    font-size: 36px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 25px;
}

.about-content p {
    font-size: 18px;
    line-height: 2;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

/* ========================================
   التذييل - Footer
======================================== */
/* ========================================
   Footer Styles - تصميم القدم
======================================== */
.site-footer {
    background: linear-gradient(135deg, #2C1810 0%, #4A2819 50%, #6B3A25 100%);
    color: var(--bg-white);
    padding: 0;
    margin-top: 0;
    border-top: 1px solid var(--border-light);
}

.footer-wrapper {
    width: 100%;
}

.footer-main {
    padding: 60px 20px;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 60px;
    align-items: flex-start;
}

/* Logo and About Section */
.footer-logo-section {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.footer-logo {
    width: 100%;
    max-width: 200px;
}

.footer-logo img {
    width: 100%;
    height: auto;
    display: block;
}

.footer-about h3 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--secondary-light);
}

.footer-about p {
    font-size: 14px;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.85);
}

/* Footer Columns */
.footer-column {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.footer-column-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--secondary-light);
    text-align: right;
}

.footer-column-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-column-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 14px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.85);
    text-align: right;
}

.checkmark {
    color: var(--secondary-color);
    font-weight: 700;
    flex-shrink: 0;
    margin-top: 2px;
}

/* Footer Bottom */
.footer-bottom {
    background: rgba(0, 0, 0, 0.3);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 20px 20px;
    text-align: center;
}

.footer-copyright {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
}

.footer-copyright a {
    color: var(--secondary-light);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-copyright a:hover {
    color: var(--secondary-color);
}

/* ========================================
   Articles Page Sidebar - شريط المرشحات
======================================== */
.articles-wrapper {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 40px;
    align-items: start;
}

.articles-sidebar {
    position: sticky;
    top: 20px;
}

.sidebar-toggle {
    display: none;
    width: 100%;
    padding: 15px 20px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    justify-content: space-between;
    align-items: center;
    transition: background 0.3s ease;
}

.sidebar-toggle:hover {
    background: var(--primary-dark);
}

.toggle-icon {
    transition: transform 0.3s ease;
}

.sidebar-toggle.active .toggle-icon {
    transform: rotate(180deg);
}

.sidebar-content {
    background: linear-gradient(135deg, #2C1810 0%, #4A2819 100%);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(44, 24, 16, 0.3);
}

.filter-section {
    padding: 25px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    background: linear-gradient(135deg, #2C1810 0%, #4A2819 100%) !important;
}

.filter-section:last-child {
    border-bottom: none;
}

.filter-title,
.sidebar-content .filter-title,
.articles-sidebar .filter-title,
h3.filter-title {
    font-size: 18px;
    font-weight: 700;
    color: #FFFFFF !important;
    margin: 0 0 15px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid #FAC79F;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
    -webkit-text-fill-color: #FFFFFF !important;
}

.filter-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.filter-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.filter-link:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--primary-color);
    border-left-color: var(--primary-color);
}

.filter-link.active {
    background: linear-gradient(135deg, #FAC79F 0%, #E89B6D 100%);
    color: #2C1810 !important;
    border-left-color: #FAC79F;
    font-weight: 700;
}

.cat-count {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 600;
}

.filter-link.active .cat-count {
    color: #2C1810 !important;
}

.articles-content {
    display: flex;
    flex-direction: column;
}

/* ========================================
   Pagination Styles - أنماط الترقيم
======================================== */
.pagination-wrapper {
    margin: 60px 0;
    text-align: center;
    background: transparent !important;
}

.pagination-wrapper ul,
.pagination-wrapper .nav-links {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    margin: 0;
    padding: 0;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

.pagination-wrapper li {
    margin: 0;
    padding: 0;
    background: transparent !important;
}

/* Remove any WordPress default pagination box styling */
.pagination-wrapper > ul,
.pagination-wrapper > .page-numbers,
.pagination-wrapper ul.page-numbers {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    padding: 0 !important;
}

.pagination-wrapper a,
.pagination-wrapper span,
.pagination-wrapper .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 15px;
    min-width: 45px;
    height: 45px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    color: white !important;
    background: transparent;
    border: none;
}

/* Ensure all pagination links have white text - no box */
.pagination-wrapper a.page-numbers {
    color: white !important;
    background: transparent;
    border: none;
}

.pagination-wrapper a.page-numbers:hover {
    color: #FAC79F !important;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
}

.pagination-wrapper .current,
.pagination-wrapper span.page-numbers.current {
    background: linear-gradient(135deg, #FAC79F 0%, #E89B6D 100%) !important;
    color: #2C1810 !important;
    border-radius: 8px;
}

.pagination-wrapper .prev,
.pagination-wrapper .next {
    color: white !important;
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 8px;
}

.pagination-wrapper .prev:hover,
.pagination-wrapper .next:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #FAC79F !important;
}

/* ========================================
   تصميم متجاوب - Responsive Design
======================================== */

/* Tablets and Small Desktops */
@media (max-width: 1200px) {
    .site-container {
        padding: 0 15px;
    }

    /* Header Tablet - Show mobile menu at 1024px */
    .header-container {
        flex-direction: row;
        justify-content: space-between;
        padding: 12px 15px;
        position: relative;
    }

    .site-logo {
        z-index: 1001;
    }

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

    /* Show Hamburger on Tablet */
    .mobile-menu-toggle {
        display: block;
    }

    /* Hide Contribute Button on Tablet */
    .header-contribute {
        display: none;
    }

    /* Tablet show/hide classes */
    .mobile-only {
        display: block !important;
    }

    .desktop-only {
        display: none !important;
    }

    /* Tablet Navigation - Same as Mobile */
    .main-navigation {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
        flex-direction: column;
        padding: 80px 20px 20px;
        gap: 0;
        box-shadow: -4px 0 20px rgba(0, 0, 0, 0.3);
        transition: right 0.3s ease;
        z-index: 1002;
        overflow-y: auto;
        justify-content: flex-start;
    }

    .main-navigation.active {
        right: 0;
    }

    .main-navigation .nav-menu {
        flex-direction: column;
        width: 100%;
        align-items: stretch;
        justify-content: flex-start;
        gap: 0;
    }

    .main-navigation .nav-menu > li {
        width: 100%;
        display: block;
    }

    .main-navigation a {
        padding: 15px 20px;
        font-size: 16px;
        width: 100%;
        text-align: right;
        border-radius: 8px;
        margin-bottom: 5px;
        display: block;
    }

    .main-navigation .menu-item-has-children {
        width: 100%;
    }

    .main-navigation .menu-item-has-children > a {
        display: flex;
        justify-content: space-between;
        align-items: center;
        flex-direction: row-reverse;
    }

    .main-navigation .dropdown-arrow {
        margin-left: auto;
        margin-right: 0;
    }

    .main-navigation .sub-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background: rgba(0, 0, 0, 0.15);
        border-radius: 8px;
        margin: 5px 0 10px 0;
        padding: 10px;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        min-width: auto;
    }

    .main-navigation .menu-item-has-children.open .sub-menu {
        max-height: 500px;
    }

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

    .main-navigation .sub-menu a {
        color: var(--bg-white) !important;
        padding: 12px 15px;
        font-size: 15px;
        border-radius: 6px;
        margin-bottom: 3px;
    }

    .main-navigation .sub-menu a:hover {
        background-color: rgba(255, 255, 255, 0.2);
    }

    .main-navigation .sub-menu .view-all {
        margin-top: 8px;
        padding-top: 8px;
        border-top: 1px solid rgba(255, 255, 255, 0.2);
    }

    .main-navigation .sub-menu .view-all a {
        color: var(--secondary-light) !important;
        font-weight: 600;
        border-top: none;
    }

    /* Tablet Menu Overlay & Body Lock */
    body.menu-open {
        overflow: hidden;
    }

    body.menu-open::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        z-index: 999;
        animation: fadeIn 0.3s ease;
    }

    .hero-title-main {
        font-size: 56px;
    }

    .hero-title-sub {
        font-size: 44px;
    }

    .hero-description {
        font-size: 18px;
    }

    .categories-grid,
    .categories-grid-modern {
        grid-template-columns: repeat(2, 1fr);
    }

    .posts-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Footer Tablet */
    .footer-main {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
}

/* Mobile Devices */
@media (max-width: 768px) {
    body {
        font-size: 15px;
    }

    .site-container {
        padding: 0 15px;
    }

    .header-container {
        flex-direction: row;
        justify-content: space-between;
        padding: 12px 15px;
        position: relative;
    }

    .site-logo {
        z-index: 1001;
    }

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

    /* Show Hamburger on Mobile */
    .mobile-menu-toggle {
        display: block;
    }

    /* Hide Contribute Button on Mobile */
    .header-contribute {
        display: none;
    }

    /* Mobile show/hide classes */
    .mobile-only {
        display: block !important;
    }

    .desktop-only {
        display: none !important;
    }

    /* Mobile Navigation */
    .main-navigation {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
        flex-direction: column;
        padding: 80px 20px 20px;
        gap: 0;
        box-shadow: -4px 0 20px rgba(0, 0, 0, 0.3);
        transition: right 0.3s ease;
        z-index: 1002;
        overflow-y: auto;
        justify-content: flex-start;
    }

    .main-navigation.active {
        right: 0;
    }

    /* Mobile Menu List */
    .main-navigation .nav-menu {
        flex-direction: column;
        width: 100%;
        align-items: stretch;
        justify-content: flex-start;
        gap: 0;
    }

    .main-navigation .nav-menu > li {
        width: 100%;
        display: block;
    }

    .main-navigation a {
        padding: 15px 20px;
        font-size: 16px;
        width: 100%;
        text-align: right;
        border-radius: 8px;
        margin-bottom: 5px;
        display: block;
    }

    /* Mobile Dropdown Styles */
    .main-navigation .menu-item-has-children {
        width: 100%;
    }

    .main-navigation .menu-item-has-children > a {
        display: flex;
        justify-content: space-between;
        align-items: center;
        flex-direction: row-reverse;
    }

    .main-navigation .dropdown-arrow {
        margin-left: auto;
        margin-right: 0;
    }

    .main-navigation .sub-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background: rgba(0, 0, 0, 0.15);
        border-radius: 8px;
        margin: 5px 0 10px 0;
        padding: 10px;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        min-width: auto;
    }

    .main-navigation .menu-item-has-children.open .sub-menu {
        max-height: 500px;
    }

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

    .main-navigation .sub-menu a {
        color: var(--bg-white) !important;
        padding: 12px 15px;
        font-size: 15px;
        border-radius: 6px;
        margin-bottom: 3px;
    }

    .main-navigation .sub-menu a:hover {
        background-color: rgba(255, 255, 255, 0.2);
    }

    .main-navigation .sub-menu .view-all {
        margin-top: 8px;
        padding-top: 8px;
        border-top: 1px solid rgba(255, 255, 255, 0.2);
    }

    .main-navigation .sub-menu .view-all a {
        color: var(--secondary-light) !important;
        font-weight: 600;
        border-top: none;
    }

    /* Mobile Menu Overlay & Body Lock */
    body.menu-open {
        overflow: hidden;
    }

    body.menu-open::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        z-index: 999;
        animation: fadeIn 0.3s ease;
    }

    @keyframes fadeIn {
        from {
            opacity: 0;
        }
        to {
            opacity: 1;
        }
    }

    .hero-section {
        padding: 60px 15px;
        min-height: auto;
    }

    .hero-badge {
        font-size: 13px;
        padding: 8px 18px;
        margin-bottom: 20px;
    }

    .hero-title-main {
        font-size: 36px;
        margin-bottom: 8px;
    }

    .hero-title-sub {
        font-size: 28px;
    }

    .hero-description {
        font-size: 16px;
        margin-bottom: 30px;
        padding: 0 10px;
    }

    .hero-description br {
        display: none;
    }

    .hero-search {
        max-width: 90%;
        margin: 0 auto 25px auto;
    }

    .hero-search-wrapper {
        padding: 4px 4px 4px 15px;
    }

    .hero-search-input {
        padding: 14px 15px;
        font-size: 15px;
    }

    .hero-search-button {
        width: 50px;
        height: 50px;
    }

    .hero-search-button svg {
        width: 20px;
        height: 20px;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 12px;
        width: 100%;
    }

    .btn-hero-primary,
    .btn-hero-secondary {
        width: 100%;
        max-width: 100%;
        padding: 14px 30px;
        font-size: 16px;
    }

    .main-content {
        padding: 40px 15px;
    }

    .section-title {
        margin-bottom: 35px;
    }

    .section-title h2 {
        font-size: 26px;
    }

    .section-title p {
        font-size: 15px;
    }

    .categories-grid,
    .categories-grid-modern,
    .posts-grid,
    .posts-grid-modern {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .category-card,
    .post-card {
        padding: 25px;
    }

    .category-card-modern {
        border-radius: 16px;
    }

    .category-card-inner {
        padding: 25px;
        min-height: 180px;
    }

    .category-name {
        font-size: 22px;
    }

    .category-desc {
        font-size: 14px;
    }

    .category-icon-wrapper {
        width: 60px;
        height: 60px;
    }

    .category-icon-large {
        font-size: 30px;
    }

    .category-icon {
        font-size: 40px;
    }

    .category-card h3 {
        font-size: 22px;
    }

    .post-card h3 {
        font-size: 20px;
    }

    /* Modern Post Cards Mobile */
    .post-card-inner-modern {
        padding: 30px 25px;
        min-height: 240px;
    }

    .post-title-modern {
        font-size: 20px;
        margin-bottom: 12px;
    }

    /* Adjust padding for mobile with avatar */
    .post-card-modern.has-avatar .post-title-modern {
        padding-left: 90px; /* Less padding on mobile */
    }

    .post-excerpt-modern {
        font-size: 14px;
    }

    .post-avatar-circle {
        width: 80px;
        height: 80px;
        border-width: 3px;
    }

    .post-avatar-wrapper {
        top: -35px;
        right: 20px;
    }

    .post-badge,
    .post-avatar-badge {
        font-size: 11px;
        padding: 5px 12px;
    }

    .post-date-badge,
    .post-category-badge {
        font-size: 12px;
        padding: 5px 12px;
    }

    .btn {
        width: 100%;
        padding: 14px 25px;
        font-size: 16px;
    }

    .about-section {
        padding: 35px 25px;
    }

    .about-content h2 {
        font-size: 26px;
    }

    .about-content p {
        font-size: 15px;
    }
}

/* Small Mobile Devices */
@media (max-width: 480px) {
    .hero-title-main {
        font-size: 32px;
    }

    .hero-title-sub {
        font-size: 24px;
    }

    .hero-description {
        font-size: 15px;
    }

    .hero-badge {
        font-size: 12px;
        padding: 7px 15px;
    }

    .hero-search {
        max-width: 95%;
    }

    .hero-search-wrapper {
        padding: 3px 3px 3px 12px;
    }

    .hero-search-input {
        padding: 12px 12px;
        font-size: 14px;
    }

    .hero-search-button {
        width: 45px;
        height: 45px;
    }

    .hero-search-button svg {
        width: 18px;
        height: 18px;
    }

    .section-title h2 {
        font-size: 24px;
    }

    .category-card h3,
    .post-card h3 {
        font-size: 18px;
    }

    .category-name {
        font-size: 20px;
    }

    .category-desc {
        font-size: 13px;
    }

    .category-icon-wrapper {
        width: 55px;
        height: 55px;
    }

    .category-icon-large {
        font-size: 28px;
    }

    /* Modern Post Cards Small Mobile */
    .post-title-modern {
        font-size: 18px;
    }

    /* Adjust padding for small mobile with avatar */
    .post-card-modern.has-avatar .post-title-modern {
        padding-left: 80px; /* Even less padding on small mobile */
    }

    .post-excerpt-modern {
        font-size: 13px;
    }

    .post-avatar-circle {
        width: 70px;
        height: 70px;
    }

    .post-avatar-wrapper {
        top: -30px;
        right: 15px;
    }

    .post-card-inner-modern {
        padding: 25px 20px;
        min-height: 220px;
    }

    .main-navigation a {
        padding: 8px 12px;
        font-size: 14px;
    }
}

/* ========================================
   إضافات للطباعة - Print Styles
======================================== */
@media print {
    .site-header,
    .site-footer,
    .hero-buttons,
    .btn {
        display: none;
    }

    body {
        background: white;
        color: black;
    }

    .hero-section {
        background: white;
        color: black;
    }
}

/* ========================================
   تحسينات الوصول - Accessibility
======================================== */
.skip-link {
    position: absolute;
    top: -40px;
    right: 0;
    background: var(--primary-color);
    color: white;
    padding: 8px 16px;
    text-decoration: none;
    border-radius: 0 0 0 8px;
}

.skip-link:focus {
    top: 0;
}

/* Focus styles */
a:focus,
button:focus,
input:focus {
    outline: 3px solid var(--secondary-color);
    outline-offset: 2px;
}

/* ========================================
   About Site Section
======================================== */
.about-site-section {
    background: linear-gradient(135deg, #2C1810 0%, #4A2819 50%, #6B3A25 100%);
    padding: 80px 20px;
    color: white;
}

.about-site-header {
    text-align: center;
    margin-bottom: 60px;
}

.about-site-header h2 {
    font-size: 42px;
    font-weight: 700;
    margin: 0 0 15px 0;
    color: white;
}

.about-site-header p {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
}

.about-site-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Vision Box */
.vision-box {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 40px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.vision-box h3 {
    font-size: 32px;
    font-weight: 700;
    margin: 0 0 20px 0;
    color: white;
}

.vision-box > p {
    font-size: 16px;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.9);
    margin: 0 0 30px 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.stat-card {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(5px);
    border-radius: 15px;
    padding: 30px 20px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: transform 0.3s ease, background 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.2);
}

.stat-number {
    font-size: 36px;
    font-weight: 700;
    color: #FAC79F;
    margin-bottom: 10px;
}

.stat-label {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.9);
}

/* Features List */
.features-list {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 25px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: transform 0.3s ease, background 0.3s ease;
}

.feature-item:hover {
    transform: translateX(-5px);
    background: rgba(255, 255, 255, 0.15);
}

.feature-icon {
    font-size: 48px;
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #FAC79F 0%, #E89B6D 100%);
    border-radius: 15px;
    flex-shrink: 0;
}

.feature-content h4 {
    font-size: 22px;
    font-weight: 700;
    margin: 0 0 10px 0;
    color: white;
}

.feature-content p {
    font-size: 15px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.85);
    margin: 0;
}

/* ========================================
   Contact Page Styles
======================================== */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 50px;
    max-width: 1200px;
    margin: 0 auto;
}

.contact-section-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 30px;
    position: relative;
    padding-bottom: 15px;
}

.contact-section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, #FAC79F, #E89B6D);
    border-radius: 2px;
}

.contact-cards {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-card {
    background: var(--bg-white);
    border-radius: 16px;
    padding: 25px;
    display: flex;
    align-items: flex-start;
    gap: 20px;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

.contact-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}

.contact-card-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #FAC79F 0%, #E89B6D 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    flex-shrink: 0;
}

.contact-card-content h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 8px 0;
}

.contact-card-content p {
    font-size: 15px;
    color: var(--text-secondary);
    margin: 0;
}

.contact-card-content a {
    color: #E89B6D;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-card-content a:hover {
    color: #FAC79F;
}

.contact-social {
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid var(--border-color);
}

.contact-social h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 20px;
}

.social-links-contact {
    display: flex;
    gap: 15px;
}

.social-link-btn {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #FAC79F 0%, #E89B6D 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: all 0.3s ease;
}

.social-link-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(250, 199, 159, 0.4);
}

.contact-form-section {
    background: var(--bg-white);
    border-radius: 20px;
    padding: 40px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
}

.contact-form-wrapper {
    margin-top: 20px;
}

/* Fluent Forms Styling */
.contact-form-wrapper .fluentform {
    max-width: 100%;
}

.contact-form-wrapper .ff-el-input--label label {
    font-family: 'Tajawal', Arial, sans-serif !important;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.contact-form-wrapper .ff-el-form-control {
    font-family: 'Tajawal', Arial, sans-serif !important;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    padding: 12px 16px;
    font-size: 15px;
    transition: all 0.3s ease;
}

.contact-form-wrapper .ff-el-form-control:focus {
    border-color: #E89B6D;
    box-shadow: 0 0 0 3px rgba(232, 155, 109, 0.1);
    outline: none;
}

.contact-form-wrapper .ff-btn-submit {
    font-family: 'Tajawal', Arial, sans-serif !important;
    background: linear-gradient(135deg, #FAC79F 0%, #E89B6D 100%) !important;
    border: none !important;
    border-radius: 10px !important;
    padding: 14px 40px !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    color: white !important;
    cursor: pointer;
    transition: all 0.3s ease !important;
    box-shadow: 0 4px 15px rgba(250, 199, 159, 0.3);
}

.contact-form-wrapper .ff-btn-submit:hover {
    background: linear-gradient(135deg, #E89B6D 0%, #FAC79F 100%) !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(250, 199, 159, 0.5);
}

.no-form-notice {
    background: #FFF3E0;
    border: 1px solid #FFE0B2;
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    color: #E65100;
}

.no-form-notice p {
    margin: 10px 0;
}

/* Contact Page Responsive */
@media (max-width: 900px) {
    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .contact-form-section {
        padding: 30px 20px;
    }
}

@media (max-width: 480px) {
    .contact-card {
        flex-direction: column;
        text-align: center;
    }

    .contact-card-icon {
        margin: 0 auto;
    }

    .social-links-contact {
        justify-content: center;
    }
}

/* Responsive - Tablet */
@media (max-width: 1024px) {
    .about-site-grid {
        gap: 30px;
    }

    .vision-box,
    .feature-item {
        padding: 30px;
    }
}

/* Responsive - Mobile */
@media (max-width: 768px) {
    .about-site-section {
        padding: 60px 20px;
    }

    .about-site-header h2 {
        font-size: 32px;
    }

    .about-site-header p {
        font-size: 16px;
    }

    .about-site-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .vision-box h3 {
        font-size: 26px;
    }

    .stat-number {
        font-size: 30px;
    }

    .feature-icon {
        font-size: 40px;
        width: 60px;
        height: 60px;
    }

    .feature-content h4 {
        font-size: 20px;
    }

    .feature-content p {
        font-size: 14px;
    }
}

/* Responsive - Small Mobile */
@media (max-width: 480px) {
    .about-site-section {
        padding: 50px 15px;
    }

    .about-site-header {
        margin-bottom: 40px;
    }

    .about-site-header h2 {
        font-size: 28px;
    }

    .about-site-header p {
        font-size: 15px;
    }

    .vision-box,
    .feature-item {
        padding: 25px 20px;
    }

    .stats-grid {
        gap: 15px;
    }

    .stat-card {
        padding: 25px 15px;
    }

    .stat-number {
        font-size: 26px;
    }

    .stat-label {
        font-size: 14px;
    }

    .feature-icon {
        font-size: 36px;
        width: 55px;
        height: 55px;
    }

    .feature-content h4 {
        font-size: 18px;
    }
}

/* ========================================
   Search Results Page
======================================== */

/* Search Hero Section */
.search-hero-section {
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary-color) 50%, var(--accent-color) 100%);
    padding: 60px 20px;
    text-align: center;
    color: white;
}

.search-hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.search-icon-wrapper {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100px;
    height: 100px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    margin-bottom: 30px;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.search-icon-wrapper svg {
    color: white;
}

.search-hero-title {
    font-size: 36px;
    font-weight: 700;
    margin: 0 0 20px 0;
    color: white;
}

.search-query {
    color: var(--secondary-light);
}

.search-hero-count {
    font-size: 18px;
    margin: 0 0 35px 0;
    color: rgba(255, 255, 255, 0.9);
}

.search-hero-count strong {
    color: var(--secondary-light);
    font-size: 24px;
    font-weight: 700;
}

/* Search Form in Hero */
.search-form-wrapper {
    max-width: 600px;
    margin: 0 auto;
}

.search-input-group {
    position: relative;
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 50px;
    padding: 5px 5px 5px 25px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

.search-input-group:hover,
.search-input-group:focus-within {
    background: rgba(255, 255, 255, 1);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
}

.search-input-hero {
    flex: 1;
    border: none;
    background: transparent;
    padding: 14px 20px;
    font-size: 16px;
    font-family: 'Tajawal', Arial, sans-serif;
    color: var(--text-primary);
    outline: none;
    direction: rtl;
    text-align: right;
}

.search-input-hero::placeholder {
    color: #999;
}

.search-button-hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
    color: white;
}

.search-button-hero:hover {
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--primary-dark) 100%);
    transform: scale(1.05);
}

/* Search Results Section */
.search-results-section {
    padding: 60px 20px;
    background: var(--bg-light);
}

.results-info-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: white;
    padding: 20px 30px;
    border-radius: 15px;
    margin-bottom: 40px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.results-count {
    display: flex;
    align-items: baseline;
    gap: 10px;
}

.count-number {
    font-size: 32px;
    font-weight: 700;
    color: var(--primary-color);
}

.count-label {
    font-size: 18px;
    color: var(--text-secondary);
}

.results-pagination-info {
    color: var(--text-secondary);
    font-size: 15px;
}

/* Search Results Grid */
.search-results-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 25px;
}

.search-result-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.search-result-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.search-result-link {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 0;
    text-decoration: none;
    color: inherit;
}

.search-result-image {
    position: relative;
    width: 250px;
    height: 200px;
    overflow: hidden;
}

.search-result-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.search-result-card:hover .search-result-image img {
    transform: scale(1.1);
}

.search-result-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent, rgba(0,0,0,0.3));
}

.search-result-content {
    padding: 25px 30px;
    display: flex;
    flex-direction: column;
}

.search-result-content.no-image {
    grid-column: 1 / -1;
}

.search-result-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}

.search-result-category {
    background: var(--primary-light);
    color: white;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
}

.search-result-date {
    color: var(--text-secondary);
    font-size: 14px;
    display: flex;
    align-items: center;
}

.search-result-title {
    font-size: 22px;
    font-weight: 700;
    margin: 0 0 15px 0;
    color: #2C1810 !important;
    line-height: 1.4;
}

.search-highlight {
    background: var(--secondary-light);
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 700;
}

.search-result-excerpt {
    font-size: 15px;
    line-height: 1.7;
    color: var(--text-secondary);
    margin: 0 0 20px 0;
    flex: 1;
}

.search-result-read-more {
    color: #E89B6D;
    font-weight: 600;
    font-size: 15px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: all 0.3s ease;
    padding: 8px 16px;
    border-radius: 20px;
    background: transparent;
}

.search-result-card:hover .search-result-read-more {
    gap: 10px;
    color: white;
    background: linear-gradient(135deg, #2C1810 0%, #4A2819 100%);
    box-shadow: 0 4px 15px rgba(44, 24, 16, 0.3);
}

/* No Results */
.no-results-container {
    background: white;
    padding: 60px 40px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.no-results-icon {
    display: inline-flex;
    margin-bottom: 30px;
    color: var(--primary-light);
    opacity: 0.5;
}

.no-results-title {
    font-size: 32px;
    font-weight: 700;
    color: #2C1810 !important;
    margin: 0 0 15px 0;
}

.no-results-description {
    font-size: 18px;
    color: var(--text-secondary);
    margin: 0 0 40px 0;
    line-height: 1.8;
}

.search-suggestions {
    background: var(--bg-light);
    padding: 30px;
    border-radius: 15px;
    margin-bottom: 50px;
}

.suggestions-title {
    font-size: 22px;
    color: var(--primary-color);
    margin: 0 0 20px 0;
    font-weight: 700;
}

.suggestions-list {
    text-align: right;
    list-style: none;
    padding: 0;
    margin: 0;
    color: var(--text-secondary);
    line-height: 2.2;
    font-size: 16px;
}

.browse-categories-title {
    font-size: 26px;
    color: var(--primary-color);
    margin: 0 0 30px 0;
    font-weight: 700;
}

.browse-categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.browse-category-card {
    background: white;
    padding: 25px;
    border-radius: 15px;
    text-align: center;
    text-decoration: none;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.browse-category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.browse-category-icon {
    width: 70px;
    height: 70px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
}

.browse-category-name {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}

.browse-category-count {
    font-size: 14px;
    color: var(--text-secondary);
}

/* Responsive - Mobile */
@media (max-width: 768px) {
    .search-hero-section {
        padding: 50px 20px;
    }

    .search-icon-wrapper {
        width: 80px;
        height: 80px;
        margin-bottom: 20px;
    }

    .search-icon-wrapper svg {
        width: 50px;
        height: 50px;
    }

    .search-hero-title {
        font-size: 28px;
    }

    .search-hero-count {
        font-size: 16px;
    }

    .search-hero-count strong {
        font-size: 20px;
    }

    .search-form-wrapper {
        max-width: 100%;
    }

    .search-input-group {
        padding: 4px 4px 4px 15px;
    }

    .search-input-hero {
        padding: 12px 15px;
        font-size: 15px;
    }

    .search-button-hero {
        width: 45px;
        height: 45px;
    }

    .search-results-section {
        padding: 40px 15px;
    }

    .results-info-bar {
        flex-direction: column;
        gap: 15px;
        padding: 20px;
    }

    .count-number {
        font-size: 28px;
    }

    .search-result-link {
        grid-template-columns: 1fr;
    }

    .search-result-image {
        width: 100%;
        height: 180px;
    }

    .search-result-content {
        padding: 20px;
    }

    .search-result-title {
        font-size: 20px;
    }

    .no-results-container {
        padding: 40px 25px;
    }

    .no-results-icon svg {
        width: 80px;
        height: 80px;
    }

    .no-results-title {
        font-size: 26px;
    }

    .browse-categories-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 15px;
    }

    .browse-category-icon {
        width: 60px;
        height: 60px;
        font-size: 30px;
    }

    .browse-category-name {
        font-size: 18px;
    }
}

/* ========================================
   Contribute Page
======================================== */

/* Contribute Hero */
.contribute-hero-section {
    background: linear-gradient(135deg, #2C1810 0%, #4A2819 50%, #6B3A25 100%);
    padding: 100px 20px;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
}

.contribute-hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 50%, rgba(250, 199, 159, 0.15) 0%, transparent 50%),
                radial-gradient(circle at 80% 80%, rgba(232, 155, 109, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.contribute-hero-title {
    font-size: 48px;
    font-weight: 700;
    margin: 0 0 20px 0;
    color: white;
}

.contribute-hero-subtitle {
    font-size: 20px;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
    max-width: 700px;
    margin: 0 auto;
}

/* Contribute Features */
.contribute-features-section {
    padding: 80px 20px;
    background: var(--bg-light);
}

.contribute-features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.contribute-feature-card {
    background: linear-gradient(135deg, #2C1810 0%, #4A2819 100%);
    padding: 40px 30px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 8px 25px rgba(44, 24, 16, 0.3);
    transition: all 0.3s ease;
}

.contribute-feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 35px rgba(44, 24, 16, 0.4);
}

.contribute-feature-icon {
    width: 100px;
    height: 100px;
    background: rgba(255, 255, 255, 0.15);
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    color: var(--primary-color);
}

.contribute-feature-title {
    font-size: 24px;
    font-weight: 700;
    color: white !important;
    margin: 0 0 15px 0;
}

.contribute-feature-desc {
    font-size: 16px;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.85);
    margin: 0;
}

/* Contribute CTA Section */
.contribute-cta-section {
    padding: 80px 20px;
    background: white;
}

.contribute-cta-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    max-width: 1000px;
    margin: 0 auto;
}

.contribute-cta-card {
    background: linear-gradient(135deg, #2C1810 0%, #4A2819 100%);
    padding: 50px 40px;
    border-radius: 20px;
    text-align: center;
    color: white;
    box-shadow: 0 8px 30px rgba(44, 24, 16, 0.3);
}

.contribute-cta-title {
    font-size: 32px;
    font-weight: 700;
    margin: 0 0 20px 0;
    color: white;
}

.contribute-cta-desc {
    font-size: 17px;
    line-height: 1.8;
    margin: 0 0 35px 0;
    color: rgba(255, 255, 255, 0.95);
}

.contribute-btn-register,
.contribute-btn-login {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 40px;
    font-size: 18px;
    font-weight: 600;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.contribute-btn-register {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    color: #2C1810;
}

.contribute-btn-register:hover {
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--primary-dark) 100%);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(250, 199, 159, 0.4);
    color: white;
}

.contribute-btn-login {
    background: rgba(255, 255, 255, 0.15);
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.contribute-btn-login:hover {
    background: var(--primary-color);
    color: #2C1810;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(250, 199, 159, 0.4);
}

/* Guidelines Section */
.contribute-guidelines-section {
    padding: 80px 20px;
    background: var(--bg-light);
    text-align: center;
}

.contribute-section-title {
    font-size: 38px;
    font-weight: 700;
    text-align: center;
    color: white !important;
    margin: 0 auto 60px auto;
    background: linear-gradient(135deg, #2C1810 0%, #4A2819 100%);
    display: inline-block;
    padding: 15px 50px;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(44, 24, 16, 0.3);
}

.contribute-guidelines-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
}

.contribute-guideline-item {
    display: flex;
    gap: 25px;
    background: linear-gradient(135deg, #2C1810 0%, #4A2819 100%);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 6px 20px rgba(44, 24, 16, 0.3);
    transition: all 0.3s ease;
}

.contribute-guideline-item:hover {
    transform: translateX(-5px);
    box-shadow: 0 8px 25px rgba(44, 24, 16, 0.4);
}

.contribute-guideline-number {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.15);
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: 700;
    color: var(--primary-color);
    flex-shrink: 0;
}

.contribute-guideline-content h4 {
    font-size: 22px;
    font-weight: 700;
    color: white !important;
    margin: 0 0 10px 0;
}

.contribute-guideline-content p {
    font-size: 16px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.85);
    margin: 0;
}

/* Responsive - Mobile */
@media (max-width: 768px) {
    .contribute-hero-section {
        padding: 60px 20px;
    }

    .contribute-hero-title {
        font-size: 36px;
    }

    .contribute-hero-subtitle {
        font-size: 18px;
    }

    .contribute-features-section {
        padding: 60px 20px;
    }

    .contribute-features-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .contribute-cta-section {
        padding: 60px 20px;
    }

    .contribute-cta-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .contribute-cta-card {
        padding: 40px 30px;
    }

    .contribute-cta-title {
        font-size: 28px;
    }

    .contribute-cta-desc {
        font-size: 16px;
    }

    .contribute-guidelines-section {
        padding: 60px 20px;
    }

    .contribute-section-title {
        font-size: 32px;
        margin-bottom: 40px;
    }

    .contribute-guidelines-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .contribute-guideline-item {
        padding: 25px;
    }

    .contribute-guideline-number {
        width: 50px;
        height: 50px;
        font-size: 24px;
    }

    .contribute-guideline-content h4 {
        font-size: 20px;
    }

    .contribute-guideline-content p {
        font-size: 15px;
    }

    /* Footer Responsive */
    .footer-main {
        grid-template-columns: 1fr;
        gap: 40px;
        padding: 40px 20px;
    }

    .footer-logo-section {
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        padding-bottom: 30px;
    }

    .footer-column-title {
        font-size: 18px;
    }

    .footer-column-list li {
        font-size: 13px;
    }

    .footer-copyright {
        font-size: 12px;
    }

    /* Articles Sidebar Responsive */
    .articles-wrapper {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .articles-sidebar {
        position: relative;
        top: auto;
        z-index: 1;
    }

    .sidebar-toggle {
        display: flex !important;
        width: 100%;
        padding: 12px 16px;
        margin-bottom: 15px;
        background: var(--primary-color);
        color: white;
        border: none;
        border-radius: 8px;
        cursor: pointer;
        font-size: 16px;
        font-weight: 500;
        align-items: center;
        justify-content: space-between;
        transition: background 0.3s ease;
        position: relative;
        z-index: 2;
    }

    .sidebar-toggle:hover {
        background: var(--primary-dark);
    }

    .sidebar-toggle.active {
        background: var(--primary-dark);
    }

    .sidebar-toggle.active .toggle-icon {
        transform: rotate(180deg);
    }

    .toggle-icon {
        transition: transform 0.3s ease;
    }

    .sidebar-content {
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }

    .sidebar-toggle.active + .sidebar-content {
        max-height: 1500px;
    }

    /* Single Post Page Responsive */
    .single-post-wrapper {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }

    .single-post-sidebar {
        position: relative !important;
        top: auto !important;
    }
}

/* ========================================
   Global Button Hover Effects
======================================== */

/* All links and buttons with common patterns */
a.btn:not(.btn-hero-primary):not(.btn-hero-secondary):not(.contribute-btn-register):not(.contribute-btn-login),
button.btn:not(.btn-hero-primary):not(.btn-hero-secondary) {
    transition: all 0.3s ease;
}

a.btn:not(.btn-hero-primary):not(.btn-hero-secondary):not(.contribute-btn-register):not(.contribute-btn-login):hover,
button.btn:not(.btn-hero-primary):not(.btn-hero-secondary):hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(44, 24, 16, 0.25);
}

/* Category badges hover */
.article-category a,
.post-category a {
    transition: all 0.3s ease;
}

.article-category a:hover,
.post-category a:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(232, 155, 109, 0.3);
}

/* Pagination button hover */
.pagination-link {
    transition: all 0.3s ease;
}

.pagination-link:hover:not(.current) {
    background: linear-gradient(135deg, #2C1810 0%, #4A2819 100%);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(44, 24, 16, 0.3);
}

/* Article card hover improvements */
.article-card {
    transition: all 0.3s ease;
}

.article-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 35px rgba(44, 24, 16, 0.15);
}

/* Footer links hover */
.footer-column-list a {
    transition: all 0.3s ease;
}

.footer-column-list a:hover {
    color: var(--primary-color) !important;
    padding-right: 10px;
}

/* ========================================
   Share Section Styles
======================================== */
.share-section {
    background: linear-gradient(135deg, #2C1810 0%, #4A2819 100%);
    padding: 40px;
    border-radius: 16px;
    text-align: center;
    margin-bottom: 40px;
    box-shadow: 0 8px 25px rgba(44, 24, 16, 0.3);
}

.share-title {
    font-size: 22px;
    font-weight: 700;
    margin: 0 0 25px 0;
    color: white !important;
}

.share-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: 50px;
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
    color: white !important;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.share-btn svg {
    flex-shrink: 0;
}

.share-facebook {
    background: #1877f2;
}

.share-facebook:hover {
    background: #0d65d9;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(24, 119, 242, 0.4);
}

.share-twitter {
    background: #000000;
}

.share-twitter:hover {
    background: #333333;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

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

.share-whatsapp:hover {
    background: #1da851;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
}

/* ========================================
   Post Navigation Styles
======================================== */
.post-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 40px 0;
    padding: 25px 30px;
    background: linear-gradient(135deg, #2C1810 0%, #4A2819 100%);
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(44, 24, 16, 0.2);
}

.post-navigation .nav-next,
.post-navigation .nav-previous {
    max-width: 45%;
}

.post-navigation a {
    color: white !important;
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
    display: block;
}

.post-navigation a:hover {
    color: #FAC79F !important;
}

.post-navigation .nav-next a {
    text-align: right;
}

.post-navigation .nav-previous a {
    text-align: left;
}

/* ========================================
   Single Post Page - Redesigned
======================================== */

/* Hero Section */
.post-hero {
    position: relative;
    min-height: auto;
    background-size: cover;
    background-position: center;
    background-color: #3D2518;
    display: flex;
    align-items: flex-end;
}

.post-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg,
        rgba(61, 37, 24, 0.3) 0%,
        rgba(61, 37, 24, 0.6) 50%,
        rgba(61, 37, 24, 0.95) 100%);
}

.post-hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    padding: 30px 0 40px;
    text-align: center;
}

.post-category-badge {
    display: inline-block;
    background: linear-gradient(135deg, #FAC79F 0%, #E89B6D 100%);
    color: #2C1810 !important;
    padding: 12px 35px;
    border-radius: 30px;
    font-size: 18px;
    font-weight: 700;
    text-decoration: none;
    margin-bottom: 25px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(250, 199, 159, 0.4);
}

.post-category-badge:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(250, 199, 159, 0.5);
}

.post-hero-title {
    font-size: 42px;
    font-weight: 800;
    color: white !important;
    line-height: 1.3;
    margin: 0 0 30px 0;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.post-hero-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 15px;
}

.meta-item svg {
    color: #FAC79F;
}

.meta-divider {
    width: 5px;
    height: 5px;
    background: #FAC79F;
    border-radius: 50%;
}

.meta-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 2px solid #FAC79F;
}

/* Content Wrapper */
.post-content-wrapper {
    background: linear-gradient(180deg, #2C1810 0%, #3D2218 100%);
    padding: 0 0 80px;
}

.post-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 40px;
    align-items: start;
    padding-top: 40px;
}

/* Article */
.post-article {
    background: #FFFFFF;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

.article-body {
    padding: 50px;
    font-size: 18px;
    line-height: 2;
    color: #333;
}

.article-title {
    font-size: 36px;
    font-weight: 800;
    color: #2C1810 !important;
    line-height: 1.3;
    margin: 0 0 30px 0;
    padding: 25px 50px;
    background: linear-gradient(135deg, #faf8f5 0%, #f5f0ea 100%);
    border-radius: 20px 20px 0 0;
    border-bottom: 3px solid #FAC79F;
    text-align: center;
}

.article-body p {
    margin-bottom: 24px;
}

.article-body h2 {
    font-size: 26px;
    color: #2C1810;
    margin-top: 40px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #FAC79F;
}

.article-body h3 {
    font-size: 22px;
    color: #2C1810;
    margin-top: 35px;
    margin-bottom: 18px;
}

.article-body h4 {
    font-size: 18px;
    color: #2C1810;
    margin-top: 30px;
    margin-bottom: 15px;
}

.article-body a {
    color: #C9A961;
    text-decoration: underline;
}

.article-body blockquote {
    border-right: 4px solid #FAC79F;
    background: linear-gradient(135deg, #faf8f5 0%, #f5f0ea 100%);
    padding: 25px 30px;
    margin: 35px 0;
    border-radius: 0 15px 15px 0;
    font-style: italic;
    font-size: 17px;
    color: #555;
}

.article-body ul,
.article-body ol {
    margin: 20px 0;
    padding-right: 25px;
}

.article-body li {
    margin-bottom: 10px;
}

/* Tags Section */
.post-tags {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 30px 50px;
    border-top: 1px solid #eee;
    flex-wrap: wrap;
}

.tags-icon {
    color: #2C1810;
}

.tags-list {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.tag-item {
    background: linear-gradient(135deg, #f5f5f5 0%, #eee 100%);
    color: #555 !important;
    padding: 8px 18px;
    border-radius: 25px;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
}

.tag-item:hover {
    background: linear-gradient(135deg, #FAC79F 0%, #E89B6D 100%);
    color: #2C1810 !important;
    transform: translateY(-2px);
}

/* Share Section */
.post-share {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 25px 50px;
    background: linear-gradient(135deg, #faf8f5 0%, #f5f0ea 100%);
    border-radius: 0 0 20px 20px;
}

.share-title {
    font-weight: 700;
    font-size: 16px;
    color: #2C1810;
}

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

.share-btn {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.share-facebook {
    background: #1877f2;
    color: white !important;
}

.share-twitter {
    background: #000;
    color: white !important;
}

.share-whatsapp {
    background: #25d366;
    color: white !important;
}

.share-copy {
    background: #666;
    color: white !important;
}

.share-btn:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

.share-copy.copied {
    background: #4CAF50;
}

/* Sidebar */
.post-sidebar {
    position: sticky;
    top: 30px;
    display: flex;
    flex-direction: column;
    gap: 25px;
    margin-top: 0;
}

.sidebar-widget {
    background: linear-gradient(135deg, #2C1810 0%, #4A2819 100%);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.25);
}

/* Author Widget */
.author-widget {
    text-align: center;
}

.author-header {
    background: linear-gradient(135deg, #3D2218 0%, #4A2819 100%);
    padding: 30px 25px 20px;
}

.author-avatar {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    border: 4px solid #FAC79F;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.author-info {
    padding: 20px 25px 30px;
}

.author-label {
    display: block;
    color: #FAC79F;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.author-name {
    color: white !important;
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 12px 0;
}

.author-bio {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    line-height: 1.7;
    margin: 0;
}

/* Related Widget */
.related-widget {
    padding: 25px;
}

.widget-title {
    display: flex;
    align-items: center;
    gap: 10px;
    color: white !important;
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 20px 0;
    padding-bottom: 15px;
    border-bottom: 2px solid #FAC79F;
}

.title-icon {
    color: #FAC79F;
}

.related-posts-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.related-post-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.related-post-item:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateX(-5px);
}

.related-post-number {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #FAC79F 0%, #E89B6D 100%);
    color: #2C1810;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    flex-shrink: 0;
}

.related-post-info {
    flex: 1;
}

.related-post-title {
    color: white !important;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.5;
    margin: 0 0 5px 0;
}

.related-post-date {
    color: rgba(255, 255, 255, 0.6);
    font-size: 12px;
}

.no-related {
    color: rgba(255, 255, 255, 0.6);
    text-align: center;
    font-size: 14px;
    padding: 20px;
    margin: 0;
}

/* Post Navigation */
.post-navigation {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    margin-top: 50px;
}

.nav-post {
    display: flex;
    align-items: center;
    gap: 20px;
    background: rgba(255, 255, 255, 0.08);
    padding: 25px 30px;
    border-radius: 16px;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-post:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: #FAC79F;
    transform: translateY(-3px);
}

.nav-arrow {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #FAC79F 0%, #E89B6D 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #2C1810;
}

.nav-content {
    flex: 1;
}

.nav-prev .nav-content {
    text-align: right;
}

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

.nav-label {
    display: block;
    color: #FAC79F;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.nav-post-title {
    display: block;
    color: white !important;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.5;
}

/* Responsive */
@media (max-width: 1024px) {
    .post-layout {
        grid-template-columns: 1fr;
    }

    .post-sidebar {
        position: relative;
        top: 0;
        flex-direction: row;
        flex-wrap: wrap;
        margin-top: 30px;
    }

    .sidebar-widget {
        flex: 1;
        min-width: 280px;
    }

    .post-hero-title {
        font-size: 36px;
    }
}

@media (max-width: 768px) {
    .post-hero {
        min-height: auto;
    }

    .post-hero-content {
        padding: 20px 0 30px;
    }

    .post-hero-title {
        font-size: 28px;
        padding: 0 15px;
    }

    .post-hero-meta {
        padding: 0 15px;
    }

    .meta-divider {
        display: none;
    }

    .post-layout {
        padding-top: 20px;
    }

    .article-body {
        padding: 30px 25px;
        font-size: 16px;
    }

    .article-title {
        font-size: 26px;
        margin-bottom: 20px;
        padding: 20px 25px;
    }

    .article-body h2 {
        font-size: 22px;
    }

    .article-body h3 {
        font-size: 19px;
    }

    .post-tags,
    .post-share {
        padding: 20px 25px;
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }

    .post-navigation {
        grid-template-columns: 1fr;
    }

    .nav-post {
        padding: 20px;
    }

    .nav-prev,
    .nav-next {
        flex-direction: row;
    }

    .nav-prev .nav-content,
    .nav-next .nav-content {
        text-align: right;
    }

    .post-sidebar {
        flex-direction: column;
    }

    .sidebar-widget {
        min-width: 100%;
    }
}
