/* Base Styles */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
    color: #333;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.card {
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    padding: 20px;
    margin-bottom: 20px;
}

.btn-primary {
    background: #4169e1;
    color: white;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
    display: inline-block;
    transition: background 0.3s;
}

.btn-primary:hover {
    background: #1e3a8a;
}

.btn-small {
    background: #4169e1;
    color: white;
    padding: 8px 15px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
}

.btn-small:hover {
    background: #1e3a8a;
}

/* Navbar */
.navbar {
    background: #4169e1;
    color: white;
    padding: 10px 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-menu {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
}

.nav-menu li {
    margin: 0 15px;
}

.nav-menu a {
    color: white;
    text-decoration: none;
    padding: 10px;
    transition: background 0.3s;
}

.nav-menu a.active, .nav-menu a:hover {
    background: #1e3a8a;
    border-radius: 5px;
}

.social-icons a {
    color: white;
    margin: 0 10px;
    font-size: 18px;
}

.auth-links a {
    color: white;
    margin: 0 10px;
    text-decoration: none;
}

#lang-switcher {
    background: white;
    border: none;
    padding: 5px;
    border-radius: 5px;
}

/* Footer */
.footer {
    background: #333;
    color: white;
    padding: 20px 0;
    text-align: center;
}

.footer-grid {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
}

.footer-section {
    flex: 1;
    min-width: 200px;
    margin: 10px;
}

.footer-section h3 {
    margin-bottom: 10px;
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section a {
    color: #ccc;
    text-decoration: none;
}

.footer-section a:hover {
    color: white;
}

/* Page Headers */
.page-header {
    background: #4169e1;
    color: white;
    padding: 50px 0;
    text-align: center;
}

.page-header h1 {
    margin: 0;
    font-size: 2.5rem;
}

.page-header p {
    font-size: 1.2rem;
}

/* Services */
.services {
    padding: 50px 0;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.service-card {
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    padding: 20px;
    text-align: center;
    transition: transform 0.3s;
}

.service-card:hover {
    transform: translateY(-5px);
}

.service-card img {
    width: 100px;
    height: 100px;
    margin-bottom: 15px;
}

.service-card h3 {
    margin-bottom: 10px;
}

.link-container {
    margin-top: 15px;
}

.link-container a {
    color: #4169e1;
    text-decoration: none;
    font-weight: bold;
}

.link-container i {
    margin-left: 5px;
}

/* Subscription */
.subscription {
    background: #f9f9f9;
    padding: 30px 0;
    text-align: center;
}

.subscription h2 {
    margin-bottom: 10px;
}

.subscription p {
    margin-bottom: 20px;
}

.subscription form {
    display: inline-block;
}

.subscription input {
    padding: 10px;
    width: 250px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

/* Arabic/RTL Support */
[dir="rtl"] {
    direction: rtl;
    text-align: right;
}

[dir="rtl"] .nav-menu {
    float: right;
}

[dir="rtl"] .social-icons {
    float: left;
}

/* Load Arabic font */
@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@400;700&display=swap');
body[lang="ar"] {
    font-family: 'Tajawal', Arial, sans-serif;
}

/* Responsive */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }
    .hamburger {
        display: block;
        cursor: pointer;
    }
    .hamburger span {
        display: block;
        width: 25px;
        height: 3px;
        background: white;
        margin: 5px;
    }
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    /* Add to existing */
.content, .container {
    margin-top: 100px;
 }

.feature-image {
    text-align: center;
    margin: 20px 0;
 }
.feature-image img {
    max-width: 100%;
    height: auto;
 }
    
}