* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Tajawal', sans-serif;
    background: linear-gradient(135deg, #2C1A4A, #3E2A6B);
    color: #FFFFFF;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('https://www.transparenttextures.com/patterns/wave.png');
    opacity: 0.05;
    z-index: -1;
}

.banner {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    display: block;
    border-bottom: 3px solid #D4AF37;
    position: relative;
}

.banner img {
    width: 100%;
    height: auto;
    display: block;
}

.container {
    max-width: 1000px;
    margin: 30px auto;
    background: #FFF8E7;
    padding: 30px;
    border-radius: 20px;
    border: 2px solid #D4AF37;
    position: relative; /* لضبط موقع القائمة المنسدلة نسبيًا */
}

/* Language Selector */
.language-selector {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(30, 58, 138, 0.9); /* خلفية شبه شفافة متناسقة */
    padding: 8px 15px;
    border-radius: 8px;
    border: 2px solid #D4AF37;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    margin-bottom: 20px; /* مسافة أسفل القائمة */
}

.language-selector label {
    font-size: 16px;
    color: #FFFFFF;
    font-weight: bold;
}

.language-selector select {
    padding: 8px 30px 8px 12px;
    border-radius: 5px;
    border: 2px solid #D4AF37;
    background: #FFF8E7;
    color: #1E3A8A;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    appearance: none;
    position: relative;
    background-image: url('data:image/svg+xml;utf8,<svg fill="%231E3A8A" height="20" viewBox="0 0 24 24" width="20" xmlns="http://www.w3.org/2000/svg"><path d="M7 10l5 5 5-5z"/></svg>');
    background-repeat: no-repeat;
    background-position: right 8px center;
}

.language-selector select:focus {
    outline: none;
    border-color: #1E3A8A;
    box-shadow: 0 0 5px rgba(30, 58, 138, 0.5);
}

h1 {
    text-align: center;
    color: #FFFFFF;
    background: #1E3A8A;
    padding: 15px;
    border-radius: 15px;
    margin-bottom: 30px;
    font-size: 28px;
    position: relative;
    overflow: hidden;
}

h1::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: shine 2s infinite;
}

@keyframes shine {
    0% { left: -100%; }
    50% { left: 100%; }
    100% { left: 100%; }
}

.cards {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.card {
    background: #1E3A8A;
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    width: 300px;
    text-decoration: none;
    color: #FFFFFF;
    position: relative;
    overflow: hidden;
    border: 2px solid #D4AF37;
}

.card:hover {
    background: linear-gradient(135deg, #1E3A8A, #3B82F6);
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.2) 0%, transparent 70%);
    opacity: 0;
}

.card:hover::before {
    opacity: 1;
}

.card i {
    font-size: 50px;
    color: #D4AF37;
    margin-bottom: 15px;
}

.card h2 {
    font-size: 24px;
    color: #FFFFFF;
    margin-bottom: 10px;
}

.card p {
    font-size: 16px;
    color: #FFF8E7;
}

/* توافق الهاتف */
@media (max-width: 600px) {
    .container { 
        padding: 15px; 
        margin: 15px; 
    }
    h1 { 
        font-size: 22px; 
    }
    .card { 
        width: 100%; 
    }
    .language-selector { 
        padding: 6px 10px; 
        gap: 5px; 
    }
    .language-selector label { 
        font-size: 14px; 
    }
    .language-selector select { 
        padding: 6px 25px 6px 10px; 
        font-size: 14px; 
        background-size: 16px; 
    }
}