* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Cairo', sans-serif;
    background: linear-gradient(135deg, #0a0e27 0%, #1a1a3e 50%, #0a0e27 100%);
    min-height: 100vh;
    padding: 0;
    margin: 0;
    overflow-x: hidden;
}

/* شعار الشركة في الأعلى */
.company-header {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 1) 100%);
    backdrop-filter: blur(20px);
    padding: 5px 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 100;
}

.header-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
}

.header-logo {
    height: 150px;
    width: auto;
    max-width: 90%;
    object-fit: contain;
    filter: drop-shadow(0 10px 25px rgba(0, 0, 0, 0.2)) drop-shadow(0 0 40px rgba(102, 126, 234, 0.3));
    transition: all 0.3s ease;
}

.header-logo:hover {
    transform: scale(1.03);
}

/* الحاوية الرئيسية */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 15px;
}

/* Grid شامل - كل شيء في صفحة واحدة */
.main-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 15px;
    align-items: start;
}

/* قسم البرامج */
.programs-section {
    background: rgba(255, 255, 255, 0.95);
    padding: 15px;
    border-radius: 18px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.programs-section h2 {
    color: #1a1a2e;
    font-size: 1.4em;
    margin-bottom: 12px;
    font-weight: 800;
    text-align: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.programs-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.program-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(250, 250, 255, 0.95) 100%);
    padding: 15px 12px;
    border-radius: 12px;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    text-align: center;
    border: 1.5px solid transparent;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    min-height: 240px;
}

.program-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.2);
    border-color: rgba(102, 126, 234, 0.3);
}

.program-card h2 {
    color: #1a1a2e;
    font-size: 1.1em;
    margin-bottom: 6px;
    font-weight: 800;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
}

.program-card p {
    color: #555;
    font-size: 0.75em;
    margin-bottom: 8px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.logo-link {
    display: inline-block;
    transition: transform 0.3s ease;
    margin-top: auto;
}

.logo-link:hover {
    transform: scale(1.05);
}

.logo {
    max-width: 140px;
    width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
    background: #f0f0f0;
    min-height: 110px;
    max-height: 140px;
    object-fit: contain;
    margin: 0 auto;
}

.logo-placeholder {
    display: none;
    max-width: 140px;
    width: 100%;
    min-height: 110px;
    max-height: 140px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    align-items: center;
    justify-content: center;
    color: white;
    margin: 0 auto;
}

.placeholder-content {
    text-align: center;
    padding: 10px;
}

.placeholder-content svg {
    margin-bottom: 8px;
    opacity: 0.8;
}

.placeholder-content p {
    color: white;
    margin: 0;
    font-size: 0.85em;
}

/* قسم الاتصال */
.contact-section {
    background: rgba(255, 255, 255, 0.95);
    padding: 15px;
    border-radius: 18px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    position: sticky;
    top: 20px;
}

.contact-section h2 {
    color: #1a1a2e;
    font-size: 1.4em;
    margin-bottom: 8px;
    font-weight: 800;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-align: center;
}

.contact-section > p {
    color: #666;
    font-size: 0.8em;
    margin-bottom: 12px;
    text-align: center;
    line-height: 1.4;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}

.contact-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(250, 250, 255, 0.95) 100%);
    padding: 10px 8px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    text-align: center;
    border: 1.5px solid transparent;
}

.contact-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.2);
    border-color: rgba(102, 126, 234, 0.3);
}

.contact-icon {
    width: 35px;
    height: 35px;
    margin: 0 auto 6px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: all 0.3s ease;
    box-shadow: 0 3px 10px rgba(102, 126, 234, 0.25);
}

.contact-icon svg {
    width: 18px;
    height: 18px;
}

.contact-card:hover .contact-icon {
    transform: scale(1.08) rotate(5deg);
}

.contact-card h3 {
    color: #1a1a2e;
    font-size: 0.85em;
    margin-bottom: 5px;
    font-weight: 700;
    line-height: 1.2;
}

.email-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: #667eea;
    text-decoration: none;
    font-size: 0.7em;
    padding: 5px 8px;
    background: #f0f0ff;
    border-radius: 6px;
    transition: all 0.3s ease;
    direction: ltr;
    font-weight: 500;
    line-height: 1.3;
    word-break: break-all;
}

.email-link:hover {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    transform: scale(1.03);
}

.email-icon {
    font-size: 0.9em;
    flex-shrink: 0;
}

/* إزالة العنوان المكرر */
.title-section {
    display: none;
}

/* تصميم الأجهزة المختلفة */
@media (max-width: 1024px) {
    .main-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .contact-section {
        position: static;
    }
}

@media (max-width: 768px) {
    .company-header {
        padding: 5px 15px;
    }
    
    .header-logo {
        height: 120px;
    }
    
    .container {
        padding: 12px;
    }
    
    .main-grid {
        gap: 12px;
    }
    
    .programs-section,
    .contact-section {
        padding: 15px;
    }
    
    .programs-section h2,
    .contact-section h2 {
        font-size: 1.3em;
        margin-bottom: 10px;
    }
    
    .programs-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .program-card {
        padding: 12px 10px;
        min-height: 180px;
    }
    
    .program-card h2 {
        font-size: 1em;
    }
    
    .program-card p {
        font-size: 0.72em;
    }
    
    .logo {
        max-width: 120px;
        min-height: 90px;
        max-height: 120px;
    }
    
    .program-card {
        min-height: 220px;
    }
    
    .contact-grid {
        gap: 8px;
    }
}

@media (max-width: 600px) {
    .header-logo {
        height: 100px;
    }
    
    .programs-section h2,
    .contact-section h2 {
        font-size: 1.3em;
    }
    
    .program-card h2 {
        font-size: 1.2em;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    
    .contact-card {
        padding: 10px 8px;
    }
    
    .contact-icon {
        width: 32px;
        height: 32px;
    }
    
    .contact-icon svg {
        width: 16px;
        height: 16px;
    }
    
    .contact-card h3 {
        font-size: 0.8em;
    }
    
    .email-link {
        font-size: 0.68em;
        padding: 4px 6px;
    }
}

@media (max-width: 480px) {
    .header-logo {
        height: 85px;
    }
    
    .container {
        padding: 12px;
    }
    
    .programs-section,
    .contact-section {
        padding: 15px;
    }
    
    .logo {
        max-width: 100px;
        min-height: 80px;
        max-height: 100px;
    }
}
