:root {
    --primary: #1a237e;
    --secondary: #ffd700;
    --text: #333;
    --bg: #f9f9f9;
	--link-color: #1a237e; /* أزرق نيلي */
    --hover-color: #d4af37; /* ذهبي */
    --bg-light: #f4f7f6;
	--bg-body: #f8f9fa;
    --white: #ffffff;
	--primary-color: #1a237e;    /* أزرق نيلي عميق */
    --accent-color: #ffd700;     /* ذهبي ملكي */
    --text-dark: #2c3e50;
    --text-light: #546e7a;
}

body {
    direction: rtl;
    font-family: 'Cairo', sans-serif;
    background: var(--bg);
    margin: 0;
    line-height: 1.6;
}

.container { width: 90%;
  max-width: 1200px;
  margin: auto; }

/* Navbar */
.navbar { background: var(--primary); color: white; padding: 1rem 0; position: sticky; top: 0; z-index: 100; }
.navbar .container { display: flex; justify-content: space-between; align-items: center; }


/* تنسيقات الـ Navbar الأساسية */
.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: white;
}

.logo-img {
    height: 45px; /* تحكم في مقاس اللوجو من هنا */
    width: auto;
    margin-left: 10px;
}

/* القائمة المنسدلة (Submenu) */
.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    position: relative;
    padding: 0 15px;
}

.nav-links li a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: 0.3s;
}

.submenu {
    display: none;
    position: absolute;
    background: white;
    top: 100%;
    right: 0;
    width: 180px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
    list-style: none;
    padding: 10px 0;
    border-radius: 5px;
}

.submenu li a { color: #333 !important; display: block; padding: 10px 20px; }
.submenu li a:hover { background: #f4f4f4; }
.nav-links li:hover .submenu { display: block; }



/* الكود الخاص بالروابط */
a {
    color: #4b0082; /* لون بنفسجي ملكي */
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 600;
}

a:hover {
    color: #d4af37; /* يتحول للذهبي عند التمرير */
    border-bottom: 2px solid #d4af37;
}

/* إعدادات الموبايل (Media Queries) */
@media (max-width: 992px) {
    .menu-toggle {
        display: block;
        cursor: pointer;
    }

    .menu-toggle .bar {
        display: block;
        width: 25px;
        height: 3px;
        margin: 5px auto;
        background-color: white;
        transition: 0.3s;
    }

    .nav-links {
        position: fixed;
        right: -100%;
        top: 70px;
        flex-direction: column;
        background-color: #1a237e;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        z-index: 1000;
        padding: 20px 0;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links li {
        margin: 15px 0;
    }

    .submenu {
        position: static;
        width: 100%;
        background: #283593;
        box-shadow: none;
    }
    
    .submenu li a { color: white !important; }
}



/* Ads */
.ad-spot { background: #eee; border: 1px solid #ddd; text-align: center; margin: 20px 0; padding: 10px; }
.top-ad { min-height: 90px; }

/* Grid Layout */
.main-layout { display: grid; grid-template-columns: 3fr 1fr; gap: 30px; margin-top: 30px; }

.zodiac-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.card {
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    text-align: center;
    border-bottom: 4px solid var(--secondary);
}

.zodiac-icon { font-size: 3rem; margin-bottom: 10px; }

/* Sidebar Widget */
.widget { background: white; padding: 20px; border-radius: 10px; margin-bottom: 20px; box-shadow: 0 2px 10px rgba(0,0,0,0.1); }
.widget input { width: 100%; padding: 10px; margin: 10px 0; border: 1px solid #ddd; }
.widget button { width: 100%; padding: 10px; background: var(--secondary); border: none; font-weight: bold; cursor: pointer; }

 .tools, .posts {
      margin-top: 40px;
    }

    .section-title {
      font-size: 22px;
      margin-bottom: 20px;
    }
	
	.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.card1 {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    cursor: pointer;
    transition: 0.3s;
    border: 1px solid #eee;
    text-align: center;
    font-weight: bold;
}

.card1:hover {
    background: #1a237e;
    color: white;
    transform: translateY(-3px);
}

 footer {
      text-align: center;
      padding: 20px;
      background: #020617;
      margin-top: 40px;
      font-size: 14px;
      color: #94a3b8;
    }
	
#result {
    margin-top: 15px;
    transition: opacity 0.5s ease-in-out;
}

.result-card {
    background: #f0f4ff;
    border: 2px solid var(--primary);
    padding: 15px;
    border-radius: 8px;
    text-align: center;
}

.z-icon {
    font-size: 2.5rem;
    display: block;
    margin-bottom: 5px;
}

.btn-more {
    display: inline-block;
    margin-top: 10px;
    font-size: 0.9rem;
    color: var(--primary);
    text-decoration: underline;
    font-weight: bold;
}
	
/* Responsive */
@media (max-width: 768px) {
    .main-layout { grid-template-columns: 1fr; }
    .navbar .container { flex-direction: column; }
}



.sky-status-box {
    background: linear-gradient(135deg, #1a237e 0%, #4b0082 100%);
    color: var(--white);
    padding: 40px 20px;
    border-radius: 20px;
    margin: 30px 0;
    text-align: center;
    box-shadow: 0 10px 20px rgba(26, 35, 126, 0.2);
}

.sky-status-box h1 {
    font-size: 2rem;
    margin-bottom: 15px;
}

.astrology-report {
    background: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 12px;
    max-width: 800px;
    margin: 0 auto;
    border-right: 4px solid var(--accent-color);
}

/* --- شبكة ملخصات الأبراج (The Grid) --- */
.zodiac-summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.summary-card {
    background: var(--white);
    border-radius: 15px;
    padding: 25px;
    border: 1px solid #edf2f7;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.summary-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.08);
    border-color: var(--primary-color);
}

.card-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.z-icon {
    font-size: 2.8rem;
    filter: drop-shadow(2px 2px 2px rgba(0,0,0,0.1));
}

.card-header h2 {
    font-size: 1.4rem;
    color: var(--primary-color);
    margin: 0;
}

.card-header h3 {
    font-size: 1.4rem;
    color: var(--primary-color);
    margin: 0;
}

.excerpt {
    color: var(--text-light);
    font-size: 0.95rem;
    margin-bottom: 20px;
}

/* --- روابط التوقعات الكاملة --- */
.full-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
    display: block;
    padding-top: 15px;
    border-top: 1px dashed #e2e8f0;
    transition: color 0.3s ease;
}

.full-link:hover {
    color: #e67e22; /* برتقالي غامق عند التحويم */
    padding-right: 5px;
}

/* --- مساحات الإعلانات --- */
.ad-spot {
    background: #f1f3f4;
    border: 1px dashed #bdc3c7;
    margin: 20px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #95a5a6;
    font-size: 0.8rem;
    border-radius: 8px;
}

.top-ad { height: 90px; }
.sidebar-ad { height: 600px; }
.in-feed-grid {
    grid-column: 1 / -1; /* يأخذ العرض كاملاً داخل الشبكة */
    height: 120px;
}

/* --- القائمة الجانبية (Sidebar) --- */
.widget {
    background: var(--white);
    padding: 20px;
    border-radius: 15px;
    margin-bottom: 20px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.02);
}

.widget h3 {
    color: var(--primary-color);
    border-bottom: 2px solid var(--accent-color);
    padding-bottom: 10px;
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.lucky-list {
    list-style: none;
    padding: 0;
}

.lucky-list li {
    padding: 10px 0;
    border-bottom: 1px solid #f1f1f1;
    font-size: 0.9rem;
}

/* --- التوافق مع الموبايل --- */
@media (max-width: 768px) {
    .main-layout {
        flex-direction: column;
    }
    
    .sky-status-box h1 {
        font-size: 1.5rem;
    }
    
    .zodiac-summary-grid {
        grid-template-columns: 1fr; /* عرض واحد في الموبايل */
    }
}




/* تنسيقات صفحة البرج المنفردة */
.article-header {
    text-align: center;
    padding: 40px 0;
    background: #fff;
    border-radius: 15px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.zodiac-badge {
    font-size: 4rem;
    margin-bottom: 10px;
    color: #e74c3c; /* لون برج الحمل */
}

.article-container h2 {
    color: var(--primary-color);
    border-right: 4px solid var(--accent-color);
    padding-right: 15px;
    margin: 30px 0 20px;
}

.prediction-box h3 {
    color: #e67e22;
    font-size: 1.1rem;
    margin-top: 15px;
}

.gender-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 20px;
}

.male-traits, .female-traits {
    background: #fdfdfd;
    padding: 20px;
    border-radius: 10px;
    border: 1px solid #eee;
}

@media (max-width: 600px) {
    .gender-split { grid-template-columns: 1fr; }
}

.stats-list {
    list-style: none;
    padding: 0;
}

.stats-list li {
    padding: 8px 0;
    border-bottom: 1px solid #eee;
}




/* خلفية الهيرو الأسبوعي */
.weekly-hero {
    background: #0d1117;
    background-image: radial-gradient(circle at center, #1a237e 0%, #0d1117 100%);
    color: white;
    padding: 60px 0;
    text-align: center;
    border-bottom: 4px solid #ffd700;
}

.weekly-label {
    background: #ffd700;
    color: #000;
    padding: 5px 15px;
    border-radius: 20px;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 0.8rem;
}

/* نمط القائمة الطويلة */
.weekly-zodiac-list {
    margin-top: 30px;
}

.weekly-item {
    display: flex;
    background: white;
    margin-bottom: 30px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    border: 1px solid #eee;
}

.weekly-sidebar {
    background: #f4f7f6;
    width: 150px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-left: 1px solid #eee;
}

.weekly-sidebar .z-icon { font-size: 3.5rem; }
.weekly-sidebar h3 { font-size: 1.1rem; margin-top: 10px; color: #1a237e; }

.weekly-content {
    padding: 25px;
    flex: 1;
}

.weekly-tag {
    display: inline-block;
    background: #e8f5e9;
    color: #2e7d32;
    padding: 2px 10px;
    border-radius: 4px;
    font-size: 0.8rem;
    margin-bottom: 10px;
}

.weekly-meta {
    margin-top: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    border-top: 1px dashed #ddd;
    padding-top: 10px;
}

.weekly-meta a {
    color: #e67e22;
    font-weight: bold;
    text-decoration: none;
}

/* الموبايل: تحويل الهيكل من أفقي إلى عمودي */
@media (max-width: 768px) {
    .weekly-item { flex-direction: column; }
    .weekly-sidebar { width: 100%; padding: 20px; flex-direction: row; gap: 20px; }
}


/* تنسيقات صفحة الأسبوع المنفردة */
.weekly-header-detail {
    text-align: center;
    padding: 50px 20px;
    background: #fff;
    border-radius: 20px;
    margin-bottom: 30px;
    border-bottom: 5px solid #1a237e;
}

.badge-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 15px;
}

.type-tag {
    background: #e74c3c;
    color: white;
    padding: 3px 12px;
    border-radius: 5px;
    font-size: 0.8rem;
    font-weight: bold;
}

.weekly-sections-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 30px;
}

.weekly-card {
    background: white;
    padding: 25px;
    border-radius: 15px;
    border-right: 6px solid #ccc;
    box-shadow: 0 4px 6px rgba(0,0,0,0.03);
}

.weekly-card.work { border-color: #2980b9; }
.weekly-card.heart { border-color: #e74c3c; }
.weekly-card.health { border-color: #27ae60; }

.card-icon {
    font-size: 2rem;
    margin-bottom: 10px;
}

.weekly-wisdom {
    background: #fff9c4;
    padding: 20px;
    border-radius: 10px;
    border-right: 5px solid #fbc02d;
    margin-top: 30px;
    text-align: center;
}


/* تنسيق بوابة الشهر */
.monthly-portal-header {
    background: #00052e;
    background-image: url('stars-bg.jpg'); /* اختياري */
    color: white;
    padding: 80px 0;
    text-align: center;
}

.month-badge {
    background: #ffd700;
    color: #000;
    padding: 5px 20px;
    border-radius: 50px;
    font-weight: bold;
    display: inline-block;
    margin-bottom: 10px;
}

/* شبكة البطاقات الشهرية */
.monthly-zodiac-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.monthly-card {
    background: #fff;
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    border: 1px solid #eee;
    position: relative;
}

.monthly-card.featured {
    border: 2px solid #ffd700;
    background: #fffdf0;
}

.status-tag {
    position: absolute;
    top: 15px;
    left: 15px;
    background: #e67e22;
    color: white;
    font-size: 0.7rem;
    padding: 2px 8px;
    border-radius: 3px;
}

/* مؤشرات الطاقة (The Bars) */
.monthly-indicators {
    margin: 20px 0;
}

.ind {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
    font-size: 0.85rem;
}

.ind span { width: 45px; font-weight: bold; }

.bar {
    flex: 1;
    height: 6px;
    background: #eee;
    border-radius: 10px;
    overflow: hidden;
}

.fill {
    height: 100%;
    background: linear-gradient(90deg, #1a237e, #4b0082);
}

.read-more-btn {
    display: block;
    text-align: center;
    padding: 12px;
    background: #f8f9fa;
    color: #1a237e;
    text-decoration: none;
    border-radius: 10px;
    font-weight: bold;
    transition: 0.3s;
}

.read-more-btn:hover {
    background: #1a237e;
    color: white;
}

/* تنسيقات الصفحة الشهرية */
.monthly-hero {
    background: #1a237e;
    color: white;
    padding: 60px 0;
    text-align: center;
    border-bottom: 8px solid #ffd700;
}

/* تنسيق جدول الأيام */
.lucky-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
    background: #fdfdfd;
}

.lucky-table th, .lucky-table td {
    border: 1px solid #eee;
    padding: 12px;
    text-align: center;
}

.lucky-table th {
    background: #f8f9fa;
    color: #1a237e;
}

/* تنسيق العشريات */
.decan-box {
    background: white;
    padding: 25px;
    border-radius: 15px;
    margin-bottom: 20px;
    border-right: 5px solid #1a237e;
    box-shadow: 0 4px 10px rgba(0,0,0,0.02);
}

.decan-box h3 {
    margin-top: 0;
    color: #e67e22;
}

/* ويدجت الشريك المثالي */
.partner-card {
    text-align: center;
    padding: 15px;
    background: #fff5f5;
    border-radius: 10px;
    border: 1px solid #ffebeb;
}

.partner-card h4 { color: #e74c3c; margin: 10px 0; }



/* تنسيقات صفحة 2027 */
.yearly-hero {
    background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), url('nebula-bg.jpg'); /* خلفية سديم فلكي */
    background-size: cover;
    color: white;
    padding: 100px 0;
    text-align: center;
}

.year-badge {
    background: #ffd700;
    color: #000;
    padding: 5px 25px;
    border-radius: 5px;
    font-weight: bold;
    display: inline-block;
    margin-bottom: 15px;
    animation: pulse 2s infinite; /* نبض لجذب الانتباه */
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.astral-events {
    list-style: none;
    padding: 0;
    margin-top: 15px;
}

.astral-events li {
    padding: 10px;
    border-right: 4px solid #ffd700;
    background: #fcfcfc;
    margin-bottom: 10px;
}

/* بطاقات السنة */
.yearly-grid {
    display: grid;
    grid-template-columns: 1fr; /* صف واحد ممتد لزيادة مساحة النص */
    gap: 30px;
    margin-top: 40px;
}

.yearly-card {
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.zodiac-identity {
    display: flex;
    align-items: center;
    gap: 20px;
}

.zodiac-identity .z-icon { font-size: 4rem; }
.zodiac-identity .name h3 { margin: 0; color: #1a237e; font-size: 1.8rem; }
.zodiac-identity .motto { color: #e67e22; font-weight: bold; }

.yearly-stats {
    display: flex;
    gap: 20px;
    background: #f8f9fa;
    padding: 15px;
    border-radius: 12px;
}

.stat { font-weight: bold; font-size: 0.9rem; color: #555; }

.full-report-btn {
    align-self: flex-start;
    padding: 12px 30px;
    background: #1a237e;
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: bold;
    transition: 0.3s;
}

.full-report-btn:hover { background: #ffd700; color: #000; }



/* تنسيقات صفحة السنة التفصيلية */
.yearly-article-header {
    padding: 30px 0;
    border-bottom: 2px solid #eee;
    margin-bottom: 30px;
}

.breadcrumb {
    font-size: 0.85rem;
    color: #888;
    margin-bottom: 15px;
}

.breadcrumb a { color: #1a237e; text-decoration: none; }

.executive-summary {
    background: #f0f4f8;
    border-right: 5px solid #1a237e;
    padding: 25px;
    font-style: italic;
    font-size: 1.1rem;
}

.prediction-block {
    margin-bottom: 40px;
}

.prediction-block h2 {
    color: #1a237e;
    font-size: 1.6rem;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.lucky-tip {
    background: #fff9c4;
    padding: 15px;
    border-radius: 8px;
    margin-top: 15px;
    border: 1px dashed #fbc02d;
}

/* جدول المحطات */
.yearly-timeline {
    background: #fff;
    padding: 20px;
}

.timeline-row {
    padding: 15px 0;
    border-bottom: 1px solid #eee;
}

.timeline-row strong { color: #e67e22; min-width: 120px; display: inline-block; }

.compatibility-list {
    list-style: none;
    padding: 0;
}

.compatibility-list li {
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}





/* تنسيقات الموسوعة */
.encyclo-hero {
    background: #1a237e;
    color: white;
    padding: 60px 0;
    text-align: center;
    border-bottom: 5px solid #ffd700;
}

.search-bar-mock {
    margin-top: 20px;
    display: flex;
    justify-content: center;
    gap: 10px;
}

.search-bar-mock input {
    padding: 12px;
    width: 300px;
    border-radius: 5px;
    border: none;
}

.search-bar-mock button {
    padding: 10px 25px;
    background: #ffd700;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
}

/* شبكة الصفات */
.traits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.trait-card {
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.02);
    border-top: 4px solid #1a237e;
}

.trait-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.trait-header h3 { font-size: 1.1rem; margin: 0; }

/* قائمة المقالات */
.articles-list {
    margin-top: 30px;
}

.article-item {
    display: flex;
    gap: 20px;
    background: white;
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 20px;
    transition: 0.3s;
}

.article-item:hover { transform: scale(1.01); box-shadow: 0 5px 15px rgba(0,0,0,0.05); }

.article-thumb img {
    width: 120px;
    height: 100px;
    object-fit: cover;
    border-radius: 8px;
}

.article-info h3 { font-size: 1.2rem; margin-bottom: 10px; }
.article-info h3 a { color: #333; text-decoration: none; }
.article-info .date { font-size: 0.8rem; color: #999; }

/* أقسام فرعية */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.extra-box {
    background: #fdfdfd;
    padding: 20px;
    border-radius: 15px;
    border: 1px solid #eee;
}

@media (max-width: 600px) {
    .article-item { flex-direction: column; }
    .article-thumb img { width: 100%; height: 180px; }
    .grid-2 { grid-template-columns: 1fr; }
}
/* تنسيق شبكة الكواكب */
.planets-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 25px;
}

.planet-item {
    display: flex;
    align-items: center;
    gap: 15px;
    background: #fdfdfd;
    padding: 15px;
    border-radius: 12px;
    border: 1px solid #eee;
}

.planet-icon {
    font-size: 2.5rem;
    background: #fff;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

/* تنسيق العناصر */
.elements-wrapper {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin: 40px 0;
}

.element-card {
    text-align: center;
    padding: 20px;
    border-radius: 15px;
    color: white;
}

.fire { background: linear-gradient(45deg, #e74c3c, #ff9f43); }
.earth { background: linear-gradient(45deg, #27ae60, #16a085); }
.air { background: linear-gradient(45deg, #3498db, #9b59b6); }
.water { background: linear-gradient(45deg, #2980b9, #1a237e); }

.el-icon { font-size: 2rem; margin-bottom: 10px; }

/* تنسيق البيوت الفلكية */
.houses-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.house-box {
    background: #ffffff;
    padding: 20px;
    border-radius: 12px;
    border: 1px solid #eef0f2;
    transition: all 0.3s ease;
    border-right: 4px solid #1a237e; /* لون أزرق ملكي */
}

.house-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
    border-right-color: #ffd700; /* يتحول للذهبي عند التمرير */
}

.house-title span {
    font-weight: 700;
    color: #1a237e;
    font-size: 1.1rem;
    display: block;
    margin-bottom: 5px;
}

.house-detail {
    font-size: 0.9rem;
    color: #555;
    line-height: 1.6;
    margin: 0;
}

.decans-container {
    margin-top: 30px;
}

.decan-zodiac-block {
    margin-bottom: 40px;
}

.zodiac-label {
    background: #1a237e;
    color: #fff;
    padding: 10px 20px;
    border-radius: 5px;
    display: inline-block;
    margin-bottom: 15px;
    font-weight: bold;
}

.decans-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.decan-box {
    background: #fdfdfd;
    border: 1px solid #eee;
    padding: 20px;
    border-radius: 12px;
    transition: 0.3s;
}

.decan-box:hover {
    background: #fff;
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
    border-color: #ffd700;
}

.decan-num {
    font-weight: bold;
    color: #e67e22;
    font-size: 0.9rem;
    margin-bottom: 5px;
}

.decan-date {
    font-size: 0.8rem;
    color: #777;
    margin-bottom: 10px;
    display: block;
}

.decan-ruler {
    font-size: 0.95rem;
    margin-bottom: 10px;
}

.decan-ruler span {
    color: #1a237e;
    font-weight: bold;
    text-decoration: underline;
}

.decan-box p {
    font-size: 0.85rem;
    line-height: 1.5;
    color: #444;
}

/* تحسين الموبايل */
@media (max-width: 768px) {
    .decans-grid {
        grid-template-columns: 1fr;
    }
}


/* تنسيقات صفحة المدونة والمقالات */
.blog-header {
    background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 100%);
    color: #fff;
    padding: 50px 0;
    text-align: center;
    border-bottom: 4px solid #ffd700;
}

.blog-header h1 { font-size: 2.2rem; margin-bottom: 10px; }

.categories-filter {
    margin-top: 25px;
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.cat-btn {
    padding: 8px 18px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border-radius: 20px;
    text-decoration: none;
    font-size: 0.9rem;
    transition: 0.3s ease;
}

.cat-btn:hover, .cat-btn.active {
    background: #ffd700;
    color: #0f172a;
    font-weight: bold;
}

/* شبكة المقالات */
.articles-grid-page {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.blog-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
    border: 1px solid #f1f5f9;
    display: flex;
    flex-direction: column;
}

.card-thumb {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.5s ease;
}

.blog-card:hover .card-thumb img {
    transform: scale(1.05);
}

.category-tag {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #1a237e;
    color: #fff;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: bold;
}

.card-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.blog-date {
    font-size: 0.8rem;
    color: #64748b;
    margin-bottom: 10px;
}

.card-body h2 {
    font-size: 1.2rem;
    line-height: 1.5;
    margin-bottom: 12px;
}

.card-body h2 a {
    color: #1e293b;
    text-decoration: none;
}

.card-body h2 a:hover { color: #1a237e; }

.card-body p {
    font-size: 0.9rem;
    color: #475569;
    line-height: 1.6;
    margin-bottom: 20px;
}

.read-more-btn {
    margin-top: auto;
    color: #1a237e;
    text-decoration: none;
    font-weight: bold;
    font-size: 0.9rem;
}

/* الترقيم السفلي */
.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin: 50px 0;
}

.page-num, .page-next {
    padding: 8px 16px;
    border: 1px solid #e2e8f0;
    background: #fff;
    color: #334155;
    text-decoration: none;
    border-radius: 6px;
}

.page-num.active, .page-num:hover {
    background: #1a237e;
    color: #fff;
    border-color: #1a237e;
}


/* تنسيقات الأبراج الصينية */
.chinese-header {
    background: linear-gradient(135deg, #4a0e17 0%, #1a0508 100%);
    color: #fff;
    padding: 60px 0;
    text-align: center;
    border-bottom: 4px solid #d4af37; /* لون ذهبي */
}

.chinese-header h1 {
    font-size: 2.5rem;
    color: #ffd700;
    margin-bottom: 12px;
}

/* تنسيق جدول السنوات */
.table-responsive {
    overflow-x: auto;
    margin-top: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.chinese-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    text-align: right;
}

.chinese-table th, .chinese-table td {
    padding: 14px 20px;
    border-bottom: 1px solid #f1f5f9;
}

.chinese-table th {
    background-color: #4a0e17;
    color: white;
    font-weight: 700;
}

.chinese-table tr:hover {
    background-color: #fffbeb;
}

/* شبكة كروت التفاصيل */
.chinese-details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 25px;
    margin-top: 40px;
}

.chinese-card {
    background: #fff;
    border-radius: 12px;
    padding: 25px;
    border: 1px solid #e2e8f0;
    position: relative;
    box-shadow: 0 4px 10px rgba(0,0,0,0.02);
}

.chinese-card.popular {
    border: 2px solid #d4af37;
    background: #fffdf5;
}

.chinese-badge {
    display: inline-block;
    background: #4a0e17;
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: bold;
    margin-bottom: 15px;
}

.chinese-card.popular .chinese-badge {
    background: #d4af37;
    color: #1a0508;
}

.chinese-card h3 {
    font-size: 1.3rem;
    color: #1e293b;
    margin-bottom: 10px;
}

.chinese-card p {
    font-size: 0.9rem;
    color: #475569;
    line-height: 1.6;
    margin-bottom: 15px;
}

.meta-info {
    font-size: 0.8rem;
    color: #64748b;
    border-top: 1px dashed #cbd5e1;
    padding-top: 10px;
}


.read-predictions-link {
    display: block;
    background: #4a0e17;
    color: #fff;
    text-align: center;
    padding: 10px 15px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 0.85rem;
    transition: 0.3s ease;
    margin-top: 15px;
}
.read-predictions-link:hover {
    background: #d4af37;
    color: #1a0508;
}


.zodiac-hero {
    background: linear-gradient(135deg, #1a0508 0%, #4a0e17 100%);
    color: #fff;
    padding: 50px 0;
    text-align: center;
    border-bottom: 4px solid #d4af37;
}
.hero-icon { font-size: 4rem; margin-bottom: 10px; }
.prediction-container { max-width: 800px; margin: 40px auto; padding: 0 20px; }

.prediction-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 25px;
    overflow-x: auto;
    padding-bottom: 5px;
    border-bottom: 2px solid #e2e8f0;
}
.tab-btn {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    padding: 12px 20px;
    font-family: 'Cairo', sans-serif;
    font-weight: bold;
    cursor: pointer;
    border-radius: 8px 8px 0 0;
    color: #475569;
    white-space: nowrap;
    transition: 0.2s;
}
.tab-btn.active, .tab-btn:hover {
    background: #4a0e17;
    color: white;
    border-color: #4a0e17;
}
.tab-btn.highlight {
    border: 1px solid #d4af37;
    background: #fffdf5;
    color: #b45309;
}
.tab-btn.highlight.active {
    background: #d4af37;
    color: #1a0508;
}
.prediction-content-box {
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.02);
    border: 1px solid #e2e8f0;
    min-height: 250px;
}
.tab-pane { display: none; }
.tab-pane.active { display: block; }
.tab-pane h2 { color: #1e293b; font-size: 1.4rem; margin-bottom: 15px; }
.tab-pane p { color: #334155; line-height: 1.8; font-size: 1.05rem; margin-bottom: 15px; }
.back-link { color: #4a0e17; text-decoration: none; font-weight: bold; font-size: 0.95rem; }
.back-link:hover { color: #d4af37; }

/* تنسيقات صفحة توافق الأبراج */
.comp-header {
    background: linear-gradient(135deg, #2e1065 0%, #4c1d95 100%);
    color: #fff;
    padding: 50px 0;
    text-align: center;
    border-bottom: 4px solid #f43f5e; /* لون وردي تفاعلي */
}
.comp-header h1 { font-size: 2.2rem; margin-bottom: 10px; color: #fef08a; }

.main-layout { max-width: 900px; margin: 40px auto; padding: 0 20px; }

/* صندوق الحاسبة */
.compatibility-calculator-box {
    background: #fff;
    border-radius: 16px;
    padding: 35px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.04);
    border: 1px solid #f1f5f9;
    text-align: center;
    margin-bottom: 50px;
}
.compatibility-calculator-box h2 { color: #1e293b; margin-bottom: 8px; }
.calc-hint { color: #64748b; font-size: 0.9rem; margin-bottom: 30px; }

.selector-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}
.zodiac-select-wrapper {
    flex: 1;
    min-width: 220px;
    text-align: right;
}
.zodiac-select-wrapper label {
    display: block;
    font-weight: bold;
    color: #334155;
    margin-bottom: 8px;
    font-size: 0.95rem;
}
.zodiac-select-wrapper select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-family: 'Cairo', sans-serif;
    font-size: 1rem;
    color: #1e293b;
    outline: none;
    background-color: #f8fafc;
    transition: border-color 0.2s;
}
.zodiac-select-wrapper select:focus { border-color: #4c1d95; }
.heart-separator { font-size: 2rem; animation: pulse 1.5s infinite; }

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.15); }
    100% { transform: scale(1); }
}

.calculate-btn {
    background: #f43f5e;
    color: white;
    border: none;
    padding: 14px 40px;
    font-family: 'Cairo', sans-serif;
    font-weight: bold;
    font-size: 1.1rem;
    border-radius: 30px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(244, 63, 94, 0.3);
    transition: 0.3s;
}
.calculate-btn:hover {
    background: #4c1d95;
    box-shadow: 0 4px 15px rgba(76, 29, 149, 0.3);
}

/* صندوق النتيجة */
.compatibility-result {
    margin-top: 35px;
    padding: 25px;
    background: #fff5f7;
    border-radius: 12px;
    border: 2px dashed #f43f5e;
    display: none;
    animation: slideDown 0.4s ease forwards;
}
.compatibility-result.active-result { display: block; }

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

.result-percentage {
    font-size: 3.5rem;
    font-weight: 700;
    color: #f43f5e;
    margin-bottom: 10px;
}
#resultTitle { color: #1e293b; font-size: 1.3rem; margin-bottom: 12px; }
#resultAnalysis { color: #475569; line-height: 1.7; font-size: 0.95rem; text-align: justify; }

/* شبكة الموسوعة النصية الثابتة */
.compatibility-encyclopedia-grid {
    margin-top: 20px;
}
.compatibility-encyclopedia-grid h2 { color: #1e293b; text-align: center; margin-bottom: 10px; }
.section-intro { text-align: center; color: #64748b; margin-bottom: 30px; font-size: 0.95rem; }

.element-card {
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 15px;
    border-right: 5px solid #cbd5e1;
    box-shadow: 0 2px 8px rgba(0,0,0,0.01);
}
.element-card.fire-fire { border-right-color: #ef4444; background: #fef2f2; }
.element-card.water-water { border-right-color: #3b82f6; background: #eff6ff; }
.element-card.earth-water { border-right-color: #10b981; background: #ecfdf5; }
.element-card.fire-air { border-right-color: #f59e0b; background: #fffbeb; }

.element-card h3 { font-size: 1.1rem; color: #1e293b; margin-bottom: 8px; }
.element-card p { font-size: 0.9rem; color: #475569; line-height: 1.6; }


/* تنسيقات دليل موسوعة التوافق الكبرى */
.comp-hub-header {
    background: linear-gradient(135deg, #1e1b4b 0%, #311042 100%);
    color: #fff;
    padding: 50px 0;
    text-align: center;
    border-bottom: 4px solid #f43f5e;
}
.comp-hub-header h1 { font-size: 2.2rem; color: #fef08a; margin-bottom: 10px; }

.hub-layout { max-width: 850px; margin: 40px auto; padding: 0 20px; }

.comp-section-title {
    font-size: 1.4rem;
    color: #1e293b;
    font-weight: bold;
    margin: 40px 0 20px 0;
    border-right: 4px solid #311042;
    padding-right: 12px;
}

/* بطاقة رابط التوافق */
.comp-link-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 22px;
    margin-bottom: 20px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.01);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.comp-link-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0,0,0,0.04);
}

.comp-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    flex-wrap: wrap;
    gap: 10px;
}
.zodiac-pair { font-size: 1.2rem; font-weight: bold; color: #1e293b; }

/* شارات ملونة تحدد نوع التوافق مبدئياً */
.comp-badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: bold;
}
.comp-badge.perfect { background: #ecfdf5; color: #059669; } /* مثالي أخضر */
.comp-badge.high { background: #eff6ff; color: #2563eb; }    /* ممتاز أزرق */
.comp-badge.dynamic { background: #fffbeb; color: #d97706; } /* معقد برتقالي */
.comp-badge.low { background: #fef2f2; color: #dc2626; }     /* تحديات أحمر */

.comp-intro-text {
    font-size: 0.95rem;
    color: #475569;
    line-height: 1.6;
    margin-bottom: 15px;
    text-align: justify;
}

.go-to-comp-btn {
    display: inline-block;
    color: #f43f5e;
    text-decoration: none;
    font-weight: bold;
    font-size: 0.9rem;
    transition: color 0.2s;
}
.go-to-comp-btn:hover {
    color: #311042;
    text-decoration: underline;
}

