* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}
body {
    background-color: #f4f7f6;
    color: #333;
}
header{position: sticky;
top: 0;
}
.logo {  
    font-size: 24px;
    font-weight: bold;
    color: #0f766e;
}
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 50px;
    background: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 20px;
}

.nav-links a {
    text-decoration: none;
    color: #475569;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: #0f766e;
} 
/* شكل الزر عند اختيار الصفحة */
.nav-link.active {
    font-weight: bold;
}
/* تنسيق حاوية البحث */
.search-container {
    display: flex;
    background: #f1f5f9;
    padding: 5px;
    border-radius: 30px; /* تصميم دائري عصري */
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

.search-container:focus-within {
    border-color: #0f766e;
    background: #fff;
    box-shadow: 0 0 8px rgba(15, 118, 110, 0.2);
}

/* تنسيق حقل الإدخال */
.search-container input {
    border: none;
    background: transparent;
    padding: 8px 15px;
    outline: none;
    width: 250px;
    font-size: 0.9rem;
}

/* تنسيق زر البحث */
.search-container button {
    background-color: #0f766e;
    color: white;
    border: none;
    padding: 8px 20px;
    border-radius: 25px;
    cursor: pointer;
    font-weight: bold;
    transition: background 0.3s;
}

.search-container button:hover {
    background-color: #0d5e58;
}


/* --- Desktop Styles (Hide Toggle) --- */
.menu-checkbox, .hamburger {
    display: none;
    cursor: pointer;
    font-size: 28px;
    color: #0f766e;
}

/* --- Mobile Styles (Break Point: 768px) --- */


.cta-btn:hover {
    background-color: #0d5e58;
}
.cta-btn {
    padding: 15px 40px;
    background-color: #0f766e;
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: bold;
    transition: background 0.3s;
}
/* تنسيق الحاوية الأساسية لتوزيع العناصر */
.container {
    display: flex;
    flex-direction: row-reverse; /* لجعل العمود الجانبي على اليسار في صفحات RTL */
    max-width: 1200px;
    margin: 20px auto;
    gap: 30px;
    padding: 0 20px;
}

/* تنسيق العمود الجانبي */
.sidebar {
    flex: 1; /* يأخذ مساحة أصغر */
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    height: fit-content;
}

.sidebar h3 {
    color: #0f766e;
    margin-bottom: 20px;
    border-bottom: 2px solid #f1f5f9;
    padding-bottom: 10px;
}

/* تنسيق بطاقة الاقتباس */
.quote-card {
    margin-bottom: 25px;
    border-right: 4px solid #0f766e; /* خط جمالي لتمييز الاقتباس */
    padding-right: 15px;
}

blockquote {
    font-style: italic;
    line-height: 1.6;
    color: #334155;
    margin-bottom: 5px;
}

cite {
    font-size: 0.9rem;
    color: #64748b;
    display: block;
}
.btn-container { margin: 20px; display: flex; gap: 10px; flex-wrap: wrap; }
        .action-btn {
            padding: 10px 20px;
            border: none;
            border-radius: 5px;
            cursor: pointer;
            font-family: Arial, sans-serif;
            transition: background 0.3s;
            color: white;
        }
        .copy-btn { background-color: #28a745; }
        .print-btn { background-color: #007bff; }
        .share-btn { background-color: #6f42c1; }
        .action-btn:hover { opacity: 0.8; }
/* تنسيق المحتوى الرئيسي ليأخذ المساحة الأكبر */
.main-content {
    flex: 3;
    background: #fff;
    padding: 40px;
    border-radius: 10px;
}
/* Footer Styles */
.main-footer {
    background-color: #06232d; /* Dark navy for professional look */
    color: #f1f5f9;
    padding: 50px 0 20px;
    margin-top: 50px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    gap: 40px;
    padding: 0 20px;
}

.footer-section {
    flex: 1;
}

.footer-section h4 {
    color: #0f766e; /* Using your signature green */
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.footer-section p {
    line-height: 1.6;
    color: #94a3b8;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section ul li a {
    color: #94a3b8;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section ul li a:hover {
    color: #fff;
}

/* Styling Social Icons as Circles */
.social-icons {
    display: flex;
    gap: 12px;
    margin-bottom: 25px;
}

.social-icons a {
    width: 40px;
    height: 40px;
    background: #1e293b;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%; /* Perfect Circle */
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.social-icons a:hover {
    background-color: #0f766e;
    transform: translateY(-3px);
}

/* App Download Buttons */
.app-downloads {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.app-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #0f172a;
    border: 1px solid #334155;
    padding: 8px 15px;
    border-radius: 8px;
    text-decoration: none;
    color: #fff;
    width: fit-content;
    transition: background 0.3s;
}

.app-btn:hover {
    background: #1e293b;
    border-color: #0f766e;
}

.app-btn i {
    font-size: 1.5rem;
}

.app-btn span {
    font-size: 0.8rem;
    font-weight: bold;
}


.footer-bottom {
    text-align: center;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #1e293b;
    color: #64748b;
    font-size: 0.9rem;
}


@media (max-width: 768px) { 
    header{
        position: relative;
    } 
   
    .navbar {
        flex-wrap: wrap; /* Allows items to wrap to next line */
        padding: 15px 20px;
    }

    .hamburger {
        display: block; /* Show the 3-line icon */
        order: 1;
    }

    .logo {
        order: 0;
    }

    .search-container {
        order: 3;
        width: 100%; /* Search takes full width on mobile */
        margin-top: 15px;
    }

    /* Hide the links by default on mobile */
    .nav-links {
        display: none; 
        flex-direction: column;
        width: 100%;
        background: #fff;
        text-align: center;
        padding: 20px 0;
        order: 2;
        border-top: 1px solid #eee;
    }

    .nav-links li {
        margin: 10px 0;
    }

    /* Logic: If checkbox is checked, show the nav-links */
    .menu-checkbox:checked ~ .nav-links {
        display: flex;
    }
    .container {
        flex-direction: column; /* يظهر العمود تحت المحتوى في الشاشات الصغيرة */
    }
    .footer-container {
        flex-direction: column;
        text-align: center;
    }
    .social-icons {
        justify-content: center;
    }
}