/* ======================= Global Styles ======================= */
:root {
    --primary-color: #007bff;
    --secondary-color: #6c757d;
    --background-color: #f8f9fa;
    --text-color: #333;
    --heading-font: 'Cairo', sans-serif;
    --body-font: 'Cairo', sans-serif;
}

body {
    font-family: var(--body-font);
    line-height: 1.6;
    margin: 0;
    padding: 0;
    background-color: #fff;
    color: var(--text-color);
    text-align: right;
}

.container {
    width: 90%;
    max-width: 1100px;
    margin: 0 auto;
}

h1, h2, h3 {
    font-family: var(--heading-font);
    font-weight: 700;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 50px;
    color: #222;
}

/* ======================= Header ======================= */
.site-header {
    background: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.main-nav ul {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
}

.main-nav ul li {
    margin-right: 20px;
}

.main-nav a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 700;
    transition: color 0.3s;
}

.main-nav a:hover {
    color: var(--primary-color);
}

/* ======================= Hero Section ======================= */
.hero-section {
    background: linear-gradient(rgba(0, 123, 255, 0.8), rgba(0, 123, 255, 0.8)), url('https://via.placeholder.com/1920x1080') no-repeat center center/cover;
    color: #fff;
    text-align: center;
    padding: 120px 0;
}

.hero-section h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
}

.hero-section p {
    font-size: 1.2rem;
    margin-bottom: 40px;
}

.btn {
    text-decoration: none;
    padding: 15px 30px;
    border-radius: 5px;
    font-weight: 700;
    transition: background-color 0.3s, transform 0.3s;
}

.btn-primary {
    background-color: #fff;
    color: var(--primary-color);
}

.btn-primary:hover {
    background-color: #eee;
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: #fff;
}

.btn-secondary:hover {
    background-color: #5a6268;
}

/* ======================= Features Section ======================= */
.features-section {
    padding: 80px 0;
    background-color: var(--background-color);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    text-align: center;
}

.feature-item img {
    margin-bottom: 20px;
}

.feature-item h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

/* ======================= Plans Section ======================= */
.plans-section {
    padding: 80px 0;
}

.plans-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.plan-card {
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
}

.plan-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.plan-card.recommended {
    border-color: var(--primary-color);
    border-width: 2px;
    position: relative;
    overflow: hidden;
}

.recommended-badge {
    position: absolute;
    top: 15px;
    left: -35px; /* Adjusted for RTL */
    transform: rotate(-45deg);
    background-color: var(--primary-color);
    color: #fff;
    padding: 5px 40px;
    font-size: 0.9rem;
    font-weight: 700;
}

.plan-card h3 {
    font-size: 1.8rem;
    color: var(--primary-color);
}

.plan-card .price {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 20px 0;
}

.plan-card .price span {
    font-size: 3rem;
}

.plan-card ul {
    list-style: none;
    padding: 0;
    margin: 30px 0;
}

.plan-card ul li {
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

/* ======================= Testimonials Section ======================= */
.testimonials-section {
    background-color: var(--background-color);
    padding: 80px 0;
    text-align: center;
}

.testimonial-card {
    max-width: 700px;
    margin: 0 auto;
    background: #fff;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

.testimonial-card blockquote {
    font-size: 1.2rem;
    font-style: italic;
    border: none;
    margin: 0 0 20px 0;
}

.testimonial-card cite {
    font-weight: 700;
    color: var(--primary-color);
}


/* ======================= Footer ======================= */
.site-footer {
    background-color: #333;
    color: #fff;
    text-align: center;
    padding: 20px 0;
}

/* ======================= Responsive Design ======================= */
@media (max-width: 768px) {
    .site-header .container {
        flex-direction: column;
    }
    .main-nav ul {
        margin-top: 15px;
        flex-direction: column;
        align-items: center;
    }
    .main-nav ul li {
        margin: 5px 0;
    }
    .hero-section h1 {
        font-size: 2.5rem;
    }
}