:root {
    --primary-blue: #0a2342; 
    --secondary-blue: #174276;
    --gold: #c5a059; 
    --gold-hover: #d4b271;
    --text-dark: #333333;
    --text-light: #666666;
    --bg-light: #f8f9fa;
    --white: #ffffff;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--bg-light);
    transition: direction 0.3s ease;
}

/* RTL Font Fallback for Arabic */
html[dir="rtl"] body {
    font-family: 'DINNextLTArabic-Regular-3', 'Inter', sans-serif;
}

.container { width: 90%; max-width: 1200px; margin: 0 auto; }

header { background-color: var(--white); box-shadow: 0 2px 10px rgba(0,0,0,0.05); position: sticky; top: 0; z-index: 100; }
.header-container { display: flex; justify-content: space-between; align-items: center; padding: 15px 0; }
.main-logo { height: 60px; width: auto; }

nav { display: flex; align-items: center; }
nav a { text-decoration: none; color: var(--primary-blue); font-weight: 600; margin-inline-start: 25px; transition: color 0.3s ease; }
nav a:hover { color: var(--gold); }

.lang-switcher { margin-inline-start: 30px; font-size: 0.9rem; color: var(--text-light); border-inline-start: 1px solid #ccc; padding-inline-start: 15px;}
.lang-switcher button { background: none; border: none; cursor: pointer; color: var(--primary-blue); font-weight: bold; margin: 0 5px; transition: color 0.3s; }
.lang-switcher button:hover { color: var(--gold); }

.hero { background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-blue) 100%); color: var(--white); padding: 100px 0; text-align: center; }
.hero h1 { font-size: 3.5rem; font-weight: 700; margin-bottom: 20px; }
.subtitle { font-size: 1.2rem; max-width: 800px; margin: 0 auto 40px auto; opacity: 0.9; }

.cta-box { background: rgba(255, 255, 255, 0.1); border: 1px solid rgba(255, 255, 255, 0.2); border-radius: 10px; padding: 30px; max-width: 800px; margin: 0 auto; backdrop-filter: blur(5px); }
.cta-box p { font-weight: 600; margin-bottom: 20px; font-size: 1.1rem; }
.cta-group { display: flex; justify-content: center; gap: 15px; flex-wrap: wrap; }
.btn { padding: 14px 28px; border-radius: 6px; text-decoration: none; font-weight: 600; font-size: 1rem; transition: all 0.3s ease; min-width: 140px; }
.btn-primary { background-color: var(--white); color: var(--primary-blue); }
.btn-primary:hover { background-color: #e9ecef; transform: translateY(-2px); }
.btn-gold { background-color: var(--gold); color: var(--white); }
.btn-gold:hover { background-color: var(--gold-hover); transform: translateY(-2px); box-shadow: 0 4px 15px rgba(197, 160, 89, 0.4); }

section { padding: 80px 0; }
section h2 { font-size: 2.5rem; color: var(--primary-blue); margin-bottom: 20px; text-align: center; }
.section-desc { text-align: center; color: var(--text-light); font-size: 1.1rem; margin-bottom: 50px; }

.theory { background-color: var(--white); }
.theory-grid { display: grid; grid-template-columns: 3fr 2fr; gap: 50px; align-items: center; }
.theory-text h2 { text-align: start; }
.theory-text p { margin-bottom: 20px; font-size: 1.1rem; color: var(--text-light); }
.icon-logo { width: 100%; max-width: 350px; display: block; margin: auto; }

.maturity { background-color: var(--bg-light); }
.timeline { display: flex; flex-direction: column; gap: 20px; max-width: 800px; margin: 0 auto; }
.level-card { background: var(--white); padding: 25px 30px; border-radius: 8px; box-shadow: 0 4px 6px rgba(0,0,0,0.05); border-inline-start: 5px solid #ccc; position: relative; transition: transform 0.3s ease; }
.level-card:hover { transform: translateX(10px); }
html[dir="rtl"] .level-card:hover { transform: translateX(-10px); }
.active-card { border-inline-start-color: var(--gold); background-color: #fffdf8; box-shadow: 0 8px 15px rgba(0,0,0,0.08); }
.level-badge { display: inline-block; background: #eee; color: var(--text-light); padding: 4px 12px; border-radius: 20px; font-size: 0.85rem; font-weight: 700; margin-bottom: 10px; }
.gold-badge { background: var(--gold); color: var(--white); }
.level-card h3 { color: var(--primary-blue); margin-bottom: 10px; }

.benefits { background-color: var(--white); }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; margin-top: 50px; }
.card { background: var(--bg-light); padding: 40px 30px; border-radius: 10px; text-align: center; border: 1px solid #eaeaea; transition: transform 0.3s ease; }
.card:hover { transform: translateY(-10px); box-shadow: 0 10px 20px rgba(0,0,0,0.05); }
.card-icon { font-size: 3rem; margin-bottom: 20px; }
.card h3 { color: var(--primary-blue); margin-bottom: 15px; }
.card p { color: var(--text-light); }

footer { background-color: var(--primary-blue); color: var(--white); text-align: center; padding: 40px 0; }
.footer-subtext { font-size: 0.9rem; opacity: 0.7; margin-top: 10px; }
/* Footer */
footer {
    background-color: var(--primary-blue);
    color: var(--white);
    padding: 50px 0 40px 0;
}

.footer-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 25px; /* Adds perfect spacing between the logo and text */
}

.footer-logo {
    max-width: 280px; /* Controls the size of the AMS logo */
    height: auto;
    opacity: 0.9; /* Slight opacity to blend smoothly with the dark background */
    transition: opacity 0.3s ease;
}

.footer-logo:hover {
    opacity: 1;
}

.footer-subtext {
    font-size: 0.9rem;
    opacity: 0.7;
    margin-top: 8px;
}
@media (max-width: 768px) {
    .header-container { flex-direction: column; gap: 15px; }
    nav { flex-wrap: wrap; justify-content: center; gap: 10px;}
    nav a { margin-inline-start: 10px; }
    .lang-switcher { margin-inline-start: 0; padding-inline-start: 0; border: none; margin-top: 10px;}
    .hero h1 { font-size: 2.5rem; }
    .theory-grid { grid-template-columns: 1fr; }
}