:root {
    --primary-color: #bb171c; /* Assuming a red tone for "FGD" / Left */
    --secondary-color: #2c3e50;
    --accent-color: #f39c12;
    --text-color: #333;
    --light-bg: #f9f9f9;
    --white: #ffffff;
    --font-main: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    --container-width: 1200px;
    --header-height: 80px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-main);
    direction: rtl; /* Crucial for Arabic */
    text-align: right;
    background-color: var(--light-bg);
    color: var(--text-color);
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}

/* Header */
header {
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    height: var(--header-height);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    max-width: var(--container-width);
    margin: 0 auto;
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo img {
    height: 60px;
}

.logo-text {
    font-weight: bold;
    font-size: 1.2rem;
    color: var(--primary-color);
    line-height: 1.2;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 30px;
}

nav a {
    font-weight: 500;
    color: var(--secondary-color);
    position: relative;
    padding: 5px 0;
}

nav a:hover, nav a.active {
    color: var(--primary-color);
}

nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0; /* RTL origin */
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: 0.3s;
}

nav a:hover::after, nav a.active::after {
    width: 100%;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--secondary-color), #4a69bd);
    color: var(--white);
    padding: 80px 20px;
    text-align: center;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 20px;
}

.hero p {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto 30px;
    opacity: 0.9;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    background: var(--primary-color);
    color: var(--white);
    border-radius: 5px;
    font-weight: bold;
}

.btn:hover {
    background: #a01216;
    transform: translateY(-2px);
}

/* Layout */
.container {
    max-width: var(--container-width);
    margin: 40px auto;
    padding: 0 20px;
    background: var(--white);
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    padding: 40px;
}

/* Sections */
.section-title {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 30px;
    position: relative;
    padding-bottom: 15px;
    border-bottom: 2px solid #eee;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    right: 0;
    width: 100px;
    height: 2px;
    background: var(--primary-color);
}

.content-block {
    margin-bottom: 30px;
}

.content-block h3 {
    color: var(--secondary-color);
    margin-bottom: 15px;
    font-size: 1.4rem;
}

.content-block p {
    margin-bottom: 15px;
    color: #555;
    text-align: justify;
}

/* Questions List */
.question-item {
    background: #f8f8f8;
    border-right: 4px solid var(--primary-color);
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 4px;
    transition: 0.3s;
}

.question-item:hover {
    background: #fff0f0;
    transform: translateX(-5px);
}

.question-item h3 {
    margin: 0;
    font-size: 1.1rem;
    color: var(--secondary-color);
}

/* Footer */
footer {
    background: var(--secondary-color);
    color: var(--white);
    padding: 40px 20px;
    margin-top: 60px;
}

.footer-content {
    max-width: var(--container-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

.footer-info p {
    margin-bottom: 10px;
    opacity: 0.8;
}

.footer-bottom {
    text-align: center;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 0.9rem;
    opacity: 0.6;
}

/* Responsive */
@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        height: auto;
        padding: 20px;
    }
    
    nav ul {
        margin-top: 20px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .hero h1 {
        font-size: 2rem;
    }
}
