:root {
    --primary-color: #1A3A8A;
    --accent-color: #2c56b5;
    --text-color: #333333;
    --bg-color: #F8FAFC;
    --card-bg: #FFFFFF;
    --radius: 16px;
    --shadow: 0 4px 20px rgba(26, 58, 138, 0.08);
}

html[lang="en"] body { font-family: 'Poppins', sans-serif; }
* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: 'Almarai', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden; 
}

a { text-decoration: none; color: inherit; transition: 0.3s; }
ul { list-style: none; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }


header {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px); 
    box-shadow: 0 2px 15px rgba(0,0,0,0.05);
    padding: 15px 0;
    position: sticky; top: 0; z-index: 1000;
}
header .container { display: flex; justify-content: space-between; align-items: center; }
.logo img { height: 45px; width: auto; }
header nav ul { display: flex; align-items: center; gap: 20px; }
header nav a { font-weight: 700; color: var(--primary-color); font-size: 0.95rem; }
header nav a:hover, header nav a.active { color: var(--accent-color); }

.lang-btn {
    background: transparent; border: 1px solid var(--primary-color);
    color: var(--primary-color); padding: 5px 12px; border-radius: 6px;
    cursor: pointer; font-weight: bold; font-family: inherit;
}
.lang-btn:hover { background: var(--primary-color); color: white; }


.hero {
    text-align: center; padding: 120px 20px 80px; position: relative;
    background-color: #1A3A8A;
    background-image: radial-gradient(#ffffff 1px, transparent 1px);
    background-size: 40px 40px;
    background: linear-gradient(135deg, rgba(26,58,138,0.95) 0%, rgba(13,37,99,0.98) 100%),
                url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI0IiBoZWlnaHQ9IjQiPgo8cmVjdCB3aWR0aD0iNCIgaGVpZ2h0PSI0IiBmaWxsPSIjZmZmIiBmaWxsLW9wYWNpdHk9IjAuMDUiLz4KPC9zdmc+');
    color: white; border-radius: 0 0 50px 50px;
    box-shadow: 0 10px 40px rgba(26, 58, 138, 0.25);
}
.hero h1 { font-size: 2.8rem; margin-bottom: 15px; }
.hero p { font-size: 1.1rem; margin-bottom: 30px; opacity: 0.9; max-width: 700px; margin-left: auto; margin-right: auto; }

.hero-buttons { display: flex; gap: 15px; justify-content: center; }
.btn-primary {
    background-color: white; color: var(--primary-color); padding: 12px 35px;
    border-radius: 50px; font-weight: 800; border: none; cursor: pointer;
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 10px 20px rgba(0,0,0,0.2); }
.btn-secondary {
    background: transparent; border: 2px solid white; color: white;
    padding: 12px 35px; border-radius: 50px; font-weight: 700;
}
.btn-secondary:hover { background: rgba(255,255,255,0.1); }


.features-section { padding: 0 20px; margin-top: -60px; position: relative; z-index: 2; margin-bottom: 60px; }
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 30px; }
.feature-card {
    background: white; padding: 40px 25px; border-radius: 20px; text-align: center;
    box-shadow: 0 15px 35px rgba(0,0,0,0.06); transition: 0.3s;
}
.feature-card:hover { transform: translateY(-10px); }
.feature-card .icon { font-size: 2.5rem; color: var(--primary-color); margin-bottom: 20px; }


.stats-section { padding: 60px 0; background-color: var(--primary-color); color: white; text-align: center; }
.stats-grid { display: flex; justify-content: space-around; flex-wrap: wrap; gap: 30px; }
.stat-item h2 { font-size: 3rem; font-weight: 800; margin-bottom: 5px; }
.stat-item p { opacity: 0.9; font-size: 1.1rem; }


.majors-section { padding: 60px 0; text-align: center; }
.section-title { color: var(--primary-color); margin-bottom: 30px; font-size: 2rem; position: relative; display: inline-block; }
.section-title::after { content:''; display: block; width: 50%; height: 4px; background: var(--accent-color); margin: 10px auto 0; border-radius: 2px; }

.filters { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; margin-bottom: 40px; }
.filter-btn {
    background: transparent; border: 2px solid var(--primary-color); color: var(--primary-color);
    padding: 10px 25px; border-radius: 30px; cursor: pointer; font-weight: 700; font-family: inherit; transition: 0.3s;
}
.filter-btn.active, .filter-btn:hover { background-color: var(--primary-color); color: white; }


.grid-layout { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 30px; }
.card {
    background: var(--card-bg); border-radius: var(--radius); padding: 25px;
    box-shadow: var(--shadow); transition: 0.3s; border: 1px solid #f0f0f0; display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-5px); border-color: var(--primary-color); box-shadow: 0 10px 25px rgba(26, 58, 138, 0.15); }
.card-header { display: flex; justify-content: space-between; margin-bottom: 15px; }
.badge { font-size: 0.8rem; padding: 5px 12px; border-radius: 8px; background-color: #eef2ff; color: var(--primary-color); font-weight: 700; }
.card-footer { border-top: 1px solid #eee; padding-top: 20px; margin-top: auto; display: flex; justify-content: space-between; }
.price { font-weight: 800; color: #27ae60; }
.visit-btn { color: var(--primary-color); font-weight: 700; }


.testimonials-section { padding: 80px 0; background-color: #fff; }
.testi-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; margin-top: 30px; }
.testi-card {
    background: #f9f9f9; padding: 30px; border-radius: 20px; border-right: 5px solid var(--primary-color);
}
.testi-card p { font-style: italic; color: #555; margin-bottom: 15px; font-size: 1.1rem; }
.testi-card h4 { font-weight: 800; color: var(--primary-color); }


.newsletter-section { padding: 60px 20px; text-align: center; margin-bottom: 40px; }
.news-form { margin-top: 20px; display: flex; justify-content: center; gap: 10px; max-width: 500px; margin-left: auto; margin-right: auto; }
.news-form input { padding: 12px 20px; border-radius: 50px; border: 1px solid #ddd; flex: 1; font-family: inherit; }
.news-form button { border-radius: 50px; padding: 12px 30px; }


footer { text-align: center; padding: 30px; background: #fff; border-top: 1px solid #eee; margin-top: 50px; }


@media (max-width: 768px) {
    header .container { flex-direction: column; gap: 15px; }
    header nav ul { gap: 10px; font-size: 0.8rem; flex-wrap: wrap; justify-content: center; }
    .hero h1 { font-size: 2rem; }
    .stats-grid { flex-direction: column; gap: 20px; }
    .news-form { flex-direction: column; }
}



.contact-section {
    padding: 80px 20px;
    background-color: #f8fafc; 
    min-height: 80vh; 
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

.contact-box {
    background: white;
    padding: 50px 40px;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08); 
    width: 100%;
    max-width: 600px; 
    margin: 0 auto;
    border-top: 6px solid var(--primary-color); 
}

.contact-box h2 {
    color: var(--primary-color);
    margin-bottom: 10px;
    text-align: center;
    font-size: 2rem;
}

.subtitle {
    text-align: center;
    color: #666;
    margin-bottom: 40px;
    font-size: 1rem;
}

.input-group {
    margin-bottom: 25px;
    text-align: right; 
}


html[dir="ltr"] .input-group { text-align: left; }

.input-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 700;
    color: var(--text-color);
}

.input-group input,
.input-group textarea {
    width: 100%;
    padding: 15px;
    border: 2px solid #eee;
    border-radius: 12px;
    font-family: inherit;
    font-size: 1rem;
    transition: 0.3s;
    background-color: #fcfcfc;
}

.input-group input:focus,
.input-group textarea:focus {
    border-color: var(--primary-color);
    outline: none;
    background-color: white;
    box-shadow: 0 0 0 4px rgba(26, 58, 138, 0.1);
}

.full-width {
    width: 100%;
    border: none;
    cursor: pointer;
    font-size: 1.1rem;
    padding: 15px;
    margin-top: 10px;
}



.hero .filter-btn {
    border-color: rgba(255, 255, 255, 0.8);
    color: white;
}


.hero .filter-btn:hover,
.hero .filter-btn.active {
    background-color: white;
    color: var(--primary-color);
    border-color: white;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}