   /* تصميم الزر */
        #scrollTopBtn {
            position: fixed;
            bottom: 20px;
            right: 20px;
            width: 50px;
            height: 50px;
            background: #28a745; /* لون الزر */
            color: white;
            border: none;
            border-radius: 50%;
            cursor: pointer;
            font-size: 20px;
            box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
            opacity: 0;
            visibility: hidden;
            transition: all 0.3s ease-in-out;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        /* إظهار الزر عند التمرير */
        #scrollTopBtn.show {
            opacity: 1;
            visibility: visible;
        }

        /* تأثير عند تمرير الفأرة */
        #scrollTopBtn:hover {
            background: #218838; /* لون أغمق عند التمرير */
            transform: scale(1.1);
        }
        
/* ===== التذييل ===== */
.footer {
    background-color: #3f3d56;
    padding: 4rem 2rem 2rem;
    color: #fff;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    box-sizing: border-box;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    gap: 4rem;
    padding: 0 20px;
}

.footer-section {
    flex: 1;
}

.section-title {
    font-size: 24px;
    margin-bottom: 1.5rem;
    position: relative;
    display: inline-block;
    color: #f1c40f;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #f1c40f;
    transition: width 0.3s ease;
}

.section-title:hover::after {
    width: 100%;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 1rem;
}

.footer-logo i {
    font-size: 2rem;
    color: #e09f3e;
}

.footer-logo span {
    font-size: 1.8rem;
    font-weight: bold;
}

.footer-desc {
    line-height: 1.6;
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.footer-links a {
    color: #e09f3e;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: transform 0.3s ease;
}

.footer-links a i {
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

.footer-links a:hover {
    transform: translateX(-10px);
}

.footer-links a:hover i {
    transform: translateX(-3px);
}

.contact-info {
    margin-bottom: 1.5rem;
}

.contact-info p {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin: 0.5rem 0;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    color: #e09f3e;
    text-decoration: none;
    width: 35px;
    height: 35px;
    border: 1px solid #e09f3e;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: transparent;
    transform: translateY(-3px);
}

.social-links a:hover i.fa-facebook-f {
    color: #1877f2;
}

.social-links a:hover i.fa-twitter {
    color: #1da1f2;
}

.social-links a:hover i.fa-instagram {
    color: #e4405f;
}

.social-links a:hover i.fa-youtube {
    color: #ff0000;
}

.footer-divider {
    height: 1px;
    background: linear-gradient(to right, transparent, #e09f3e, transparent);
    margin: 3rem 0 2rem;
    opacity: 0.3;
}

.footer-bottom {
    text-align: center;
    opacity: 0.9;
}

.footer-nav {
    margin-bottom: 1rem;
}

.footer-nav a {
    color: #e09f3e;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-nav span {
    margin: 0 1rem;
    opacity: 0.5;
}

.footer-nav a:hover {
    color: #fff;
}

@media (max-width: 768px) {
    .footer {
        padding: 3rem 1rem 2rem;
    }

    .footer-content {
        flex-direction: column;
        gap: 3rem;
        text-align: center;
    }

    .footer-logo {
        justify-content: center;
    }

    .section-title::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .footer-links a {
        justify-content: center;
    }

    .contact-info p {
        justify-content: center;
    }

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

/* ===== المتغيرات العامة ===== */
:root {
    --primary-color: #1a73e8;    /* أزرق Google */
    --secondary-color: #ea4335;  /* أحمر Google */
    --accent-color: #fbbc04;    /* أصفر Google */
    --text-color: #202124;
    --light-bg: #f8f9fa;
    --card-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== الأساسيات ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Cairo', sans-serif;
}

body {
    background-color: var(--light-bg);
    color: var(--text-color);
    line-height: 1.6;
}
@font-face {
    font-family: 'CustomFont';
    src: url('custom-font.woff2') format('woff2');
    font-display: swap;
}

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

/* ===== الهيدر ===== */
header {
    background: linear-gradient(to right, #ffffff, #f8f9fa);
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
    width: 100%;
    z-index: 1000;
    height: 60px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative; 
}

.logo {
    font-size: 1.5rem; 
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    position: absolute; 
    right: 20px; 
}

.logo i {
    font-size: 1.8rem; 
    color: var(--secondary-color);
}

nav {
    flex: 1;
    display: flex;
    justify-content: center; 
}

.nav-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-right: 200px; 
}

.nav-link {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 0.8rem; 
    border-radius: 6px;
    transition: var(--transition);
    position: relative;
    font-size: 0.95rem; 
}

.nav-link::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease;
}

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

.nav-link:hover::before {
    transform: scaleX(1);
    transform-origin: left;
}

/* ===== المحتوى الرئيسي ===== */
main {
    min-height: 100vh;
    background-color: #f8f9fa;
    position: relative;
    z-index: 1;
}

.hero {
    opacity: 1 !important;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    padding: 3rem 2rem;
    border-radius: 20px;
    margin-bottom: 2rem;
    text-align: center;
    color: white;
    position: relative;
    z-index: 2;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="20" height="20" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><circle cx="2" cy="2" r="1" fill="rgba(255,255,255,0.1)"/></svg>');
    opacity: 0.2;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
    letter-spacing: -0.5px;
}

.hero p {
    font-size: 1.25rem;
    opacity: 0.95;
    max-width: 600px;
    margin: 0 auto;
}

/* ===== تصميم البطاقات ===== */
.categories {
    opacity: 1 !important;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    padding: 2rem 0;
    position: relative;
    z-index: 2;
}

.categories .card {
    background: white;
    border-radius: 16px;
    padding: 2.5rem;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    border: 2px solid #eee;
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
    color: var(--text-color);
    position: relative;
    overflow: hidden;
}

.categories .card i {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
    padding: 1rem;
    border-radius: 50%;
    width: 90px;
    height: 90px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
}

/* فوازير وحلها */
.categories .card:nth-child(1) i {
    color: #e74c3c;
    background: rgba(231, 76, 60, 0.1);
}
.categories .card:nth-child(1):hover {
    border-color: #e74c3c;
}
.categories .card:nth-child(1):hover i {
    background: #e74c3c;
    color: white;
    transform: rotateY(180deg);
}

/* فوازير مضحكة */
.categories .card:nth-child(2) i {
    color: #f1c40f;
    background: rgba(241, 196, 15, 0.1);
}
.categories .card:nth-child(2):hover {
    border-color: #f1c40f;
}
.categories .card:nth-child(2):hover i {
    background: #f1c40f;
    color: white;
    transform: rotate(360deg);
}

/* فوازير أطفال */
.categories .card:nth-child(3) i {
    color: #2ecc71;
    background: rgba(46, 204, 113, 0.1);
}
.categories .card:nth-child(3):hover {
    border-color: #2ecc71;
}
.categories .card:nth-child(3):hover i {
    background: #2ecc71;
    color: white;
    animation: bounce 0.6s;
}

/* فوازير رمضان */
.categories .card:nth-child(4) i {
    color: #9b59b6;
    background: rgba(155, 89, 182, 0.1);
}
.categories .card:nth-child(4):hover {
    border-color: #9b59b6;
}
.categories .card:nth-child(4):hover i {
    background: #9b59b6;
    color: white;
    transform: scale(1.1);
}

/* أسئلة صراحة */
.categories .card:nth-child(5) i {
    color: #3498db;
    background: rgba(52, 152, 219, 0.1);
}
.categories .card:nth-child(5):hover {
    border-color: #3498db;
}
.categories .card:nth-child(5):hover i {
    background: #3498db;
    color: white;
    transform: translateY(-10px);
}

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

.categories .card h3 {
    margin: 1rem 0;
    color: #2c3e50;
    font-size: 1.6rem;
    font-weight: 700;
}

.categories .card p {
    color: #7f8c8d;
    line-height: 1.6;
    font-size: 1.1rem;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-20px);
    }
    60% {
        transform: translateY(-10px);
    }
}

/* ===== الفوازير ===== */
.riddle-card {
    background: #ffffff;
    border-radius: 15px;
    margin-bottom: 2rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
    border: 2px solid #e1e8ed;
}

.riddle-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border-color: #3498db;
}

.riddle-header {
    background: #f8f9fa;
    padding: 1.5rem;
    border-bottom: 2px solid #e1e8ed;
}

.riddle-content {
    padding: 2rem;
}

.riddle-card h3 {
    color: #2c3e50;
    font-size: 1.5rem;
    margin: 0;
    text-align: right;
}

.riddle-card .riddle-question {
    font-size: 1.2rem;
    line-height: 1.8;
    color: #34495e;
    margin-bottom: 2rem;
    text-align: right;
}

.riddle-card .show-answer-btn {
    background: #3498db;
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s ease;
    width: 100%;
}

.riddle-card .show-answer-btn:hover {
    background: #2980b9;
    transform: scale(1.02);
}

.riddle-card .riddle-answer {
    margin-top: 1.5rem;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 8px;
    color: #2c3e50;
    font-size: 1.1rem;
    text-align: center;
    border: 2px dashed #e9ecef;
}

.answer {
    display: none;
    margin-top: 1rem;
    padding: 1rem 2rem;
    background-color: #f8f9fa;
    border-radius: 8px;
    color: #2c3e50;
    text-align: center;
    font-size: 1.2rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn {
    padding: 0.8rem 2rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #3f3d56;
    color: #e09f3e;
    width: 100%;
    max-width: 200px;
    margin: 1rem auto;
    display: block;
}

.btn:hover {
    background: #e09f3e;
    color: #3f3d56;
    transform: translateY(-2px);
}

/* تحسين التجاوب */
@media (max-width: 768px) {
    .riddle-header {
        padding: 1rem;
    }

    .riddle-content {
        padding: 1.5rem;
    }

    .riddle-card h3 {
        font-size: 1.3rem;
    }

    .riddle-card .riddle-question {
        font-size: 1.1rem;
    }

    .riddle-card .show-answer-btn {
        padding: 0.8rem 1.5rem;
    }
}

/* ===== الأزرار ===== */

/* ===== تنسيق البحث ===== */
.search-container {
    margin: 2rem auto;
    max-width: 600px;
    width: 90%;
}

.search-box {
    display: flex;
    background: white;
    border-radius: 50px;
    padding: 5px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
}

.search-box input {
    width: 100%;
    border: none;
    padding: 15px 25px;
    font-size: 1.1rem;
    background: transparent;
    color: #333;
    border-radius: 50px;
    direction: rtl;
}

.search-box input:focus {
    outline: none;
}

.search-box input::placeholder {
    color: #999;
    opacity: 0.8;
}

.search-box button {
    position: absolute;
    left: 5px;
    top: 40%;
    transform: translateY(-50%);
    border: none;
    background: var(--primary-color);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-box button:hover {
    background: var(--secondary-color);
    transform: translateY(-50%) scale(1.05);
}

.search-box button i {
    font-size: 1.2rem;
}

/* ===== تنسيق نتائج البحث ===== */
.riddle-card {
    text-align: right;
    padding: 2rem;
}

.riddle-question {
    font-size: 1.1rem;
    color: #2c3e50;
    margin: 1rem 0;
}

.show-answer-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 1rem 0;
}

.show-answer-btn:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
}

.show-answer-btn.active {
    background: #e74c3c;
}

.riddle-answer {
    color: #27ae60;
    font-weight: bold;
    margin-top: 1rem;
    padding: 1rem;
    background: rgba(39, 174, 96, 0.1);
    border-radius: 5px;
}

.no-results {
    text-align: center;
    padding: 3rem;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.no-results h3 {
    color: #e74c3c;
    margin-bottom: 1rem;
}

.no-results p {
    color: #7f8c8d;
}

/* ===== تأثيرات حركية ===== */
.fade-in {
    animation: none !important;
    opacity: 1 !important;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== تحسينات للأجهزة المحمولة ===== */
@media (max-width: 768px) {
    /* تحسين الهيدر */
    header {
        height: auto;
        padding: 0;
    }

    .nav-container {
        flex-direction: column;
        padding: 10px;
    }

    .logo {
        position: static;
        margin: 10px 0;
        font-size: 1.3rem;
    }

    .logo i {
        font-size: 1.5rem;
    }

    nav {
        width: 100%;
    }

    .nav-links {
        margin: 0;
        padding: 10px;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px;
    }

    .nav-link {
        font-size: 0.9rem;
        padding: 6px 12px;
        background: rgba(255, 255, 255, 0.1);
        border: 1px solid rgba(0, 0, 0, 0.05);
        border-radius: 20px;
        white-space: nowrap;
    }

    /* تحسين المحتوى الرئيسي */
    main {
        padding-top: 100px; /* زيادة المسافة على الموبايل */
    }

    .container {
        padding: 15px;
    }

    .hero {
        padding: 2rem 1rem;
        margin: 1rem;
        border-radius: 15px;
    }

    .hero h1 {
        font-size: 1.8rem;
        margin-bottom: 1rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .categories {
        grid-template-columns: 1fr;
        gap: 15px;
        padding: 15px 0;
    }

    .card {
        padding: 1.5rem;
        margin: 0.5rem;
    }

    .card h3 {
        font-size: 1.2rem;
    }

    .card p {
        font-size: 0.9rem;
    }

    /* تحسين الفوتر */
    footer {
        padding: 3rem 0 1rem;
        margin-top: 3rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 0 1rem;
    }

    .footer-section {
        text-align: center;
    }

    .footer-section h3 {
        font-size: 1.2rem;
        margin-bottom: 1rem;
    }

    .footer-section h3::after {
        right: 50%;
        transform: translateX(50%);
    }

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

/* تحسينات إضافية للشاشات الصغيرة جداً */
@media (max-width: 480px) {
    .nav-container {
        padding: 8px;
    }

    .logo {
        font-size: 1.2rem;
    }

    .nav-links {
        padding: 5px;
    }

    .nav-link {
        font-size: 0.85rem;
        padding: 5px 10px;
    }

    .hero h1 {
        font-size: 1.5rem;
    }

    .hero p {
        font-size: 0.9rem;
    }

    .card {
        padding: 1.2rem;
        margin: 0 0.5rem;
    }

    .footer-section h3 {
        font-size: 1.1rem;
    }
}

/* تحسين الأداء على الأجهزة المحمولة */
@media (hover: none) {
    .nav-link:hover::before {
        transform: scaleX(0);
    }

    .card:hover {
        transform: none;
    }

    .social-link:hover {
        transform: none;
    }
}

/* تحسين التحميل على الأجهزة المحمولة */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* تحسين الأداء للأجهزة الضعيفة */
@media (prefers-reduced-motion: no-preference) {
    .fade-in {
        opacity: 0;
        animation: fadeIn 0.8s ease forwards;
    }

    .slide-up {
        opacity: 0;
        transform: translateY(20px);
        animation: slideUp 0.8s ease forwards;
    }
}

@keyframes slideUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* تحسين التجاوب */
@media (max-width: 768px) {
    .card {
        margin: 0.5rem;
        padding: 1.5rem;
    }

    .card h3 {
        font-size: 1.2rem;
    }

    .social-link {
        width: 35px;
        height: 35px;
    }

    .social-link i {
        font-size: 1rem;
    }
}

/* ===== تنسيق التصفية ===== */
.filters-container {
    margin-top: 2rem;
    background: white;
    padding: 1.5rem;
    border-radius: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.filter-group {
    margin-bottom: 1.5rem;
}

.filter-group:last-child {
    margin-bottom: 0;
}

.filter-group label {
    display: block;
    margin-bottom: 0.8rem;
    color: #2c3e50;
    font-weight: bold;
    font-size: 1.1rem;
}

.filter-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.filter-btn {
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 8px;
    background: #f8f9fa;
    color: #2c3e50;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.95rem;
    border: 2px solid transparent;
}

.filter-btn:hover {
    background: #e9ecef;
    transform: translateY(-2px);
}

.filter-btn.active {
    background: #2c3e50;
    color: white;
    border-color: #2c3e50;
}

/* تحسين التجاوب */
@media (max-width: 768px) {
    .filters-container {
        padding: 1rem;
    }

    .filter-buttons {
        gap: 0.5rem;
    }

    .filter-btn {
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
    }
}

/* ===== قسم فوازير صعبة جداً ===== */
.hard-riddles-section {
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    padding: 2rem 0;
    margin: 2rem 0;
    border-radius: 15px;
}

.hard-riddles-content {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 1rem;
}

.hard-riddles-section h2 {
    color: #fff;
    text-align: center;
    font-size: 18px;
    margin-bottom: 2rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hard-riddles-section .intro-text {
    color: #e0e0e0;
    text-align: center;
    margin-bottom: 3rem;
    line-height: 1.8;
}

.hard-riddles-section .riddle-card {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 2rem;
    margin-bottom: 2rem;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hard-riddles-section .riddle-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
}

.hard-riddles-section .riddle-question {
    color: #fff;
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    line-height: 1.8;
    text-align: center;
}

.hard-riddles-section .show-answer-btn {
    background: linear-gradient(45deg, #4a90e2, #357abd);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1.1rem;
    width: 100%;
    transition: all 0.3s ease;
    margin: 1rem 0;
}

.hard-riddles-section .show-answer-btn:hover {
    background: linear-gradient(45deg, #357abd, #2c6aa0);
    transform: scale(1.02);
}

.hard-riddles-section .riddle-answer {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    padding: 1.5rem;
    border-radius: 8px;
    margin-top: 1rem;
    text-align: center;
    font-size: 1.1rem;
    display: none;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* تحسين التجاوب للشاشات الصغيرة */
@media (max-width: 768px) {
    .hard-riddles-section .riddle-card {
        padding: 1.5rem;
    }

    .hard-riddles-section .riddle-question {
        font-size: 1.1rem;
    }

    .hard-riddles-section .show-answer-btn {
        padding: 0.8rem 1.5rem;
        font-size: 1rem;
    }
}

/* ===== تنسيق فوازير مضحكة ===== */
.funny-riddles-section {
    background: linear-gradient(135deg, #3f3d56, #2c2b3f);
    padding: 40px 20px;
    margin-top: -30px;
    margin-bottom: 30px;
    border-radius: 15px;
}

.funny-riddles-section h2 {
    color: #fff;
    text-align: center;
    font-size: 2rem;
    margin-bottom: 2rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.funny-riddles-content p {
    font-size: 18px;
    line-height: 1.8;
    color: #e0e0e0;
    margin-bottom: 20px;
    text-align: justify;
}


/* أنماط الأزرار في الفوتر */
.hijri-buttons-container {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    margin: 1.5rem 0;
}

.hijri-link-button {
    background: linear-gradient(145deg, #ffffff, #f8f9fa);
    color: var(--primary-color);
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 1px solid rgba(52, 152, 219, 0.2);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.hijri-link-button:hover {
    transform: translateY(-2px);

    color: #ffc803;
    border-color: var(--accent-color);
}

.hijri-link-button i {
    font-size: 1.2em;
}

@media (max-width: 768px) {
    .hijri-buttons-container {
        flex-direction: column;
        align-items: stretch;
        padding: 0 1rem;
    }
    
    .hijri-link-button {
        text-align: center;
        justify-content: center;
    }
}

 