/* الأساسيات */
:root {
    --primary-color: #3498db;
    --secondary-color: #2ecc71;
    --dark-color: #2c3e50;
    --light-color: #ecf0f1;
    --accent-color: #e74c3c;
    --text-color: #333;
    --text-light: #7f8c8d;
}

* {
    margin: 5;
    padding: 5;
    box-sizing: border-box;
}

body {
    font-family: 'Tajawal', sans-serif;
    color: var(--text-color);
    background-color: #f9f9f9;
    line-height: 1.6;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}



/* الهيدر */
.main-header {
    position: fixed;       /* يخليه ثابت */
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;         /* يخليه فوق باقي العناصر */
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 20px 0;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}


.college-card {
            background: white;
            border-radius: 8px;
            overflow: hidden;
            box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
            transition: transform 0.3s ease, box-shadow 0.3s ease;
            cursor: pointer;
            margin-bottom: 20px;
        }
        
        .college-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
        }
        
        .college-img {
            height: 200px;
            overflow: hidden;
        }
        
        .college-img img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: transform 0.5s ease;
        }
        
        .college-card:hover .college-img img {
            transform: scale(1.05);
        }
        
        .college-info {
            padding: 20px;
        }
        
        .college-card h3 {
            font-size: 1.4rem;
            margin-bottom: 10px;
            color: var(--dark-color);
        }
        
        .college-card p {
            color: var(--text-light);
            font-size: 1rem;
            margin-bottom: 15px;
            line-height: 1.6;
        }
        
        .view-more {
            color: var(--primary-color);
            font-weight: bold;
            display: inline-block;
            transition: color 0.3s;
        }
        
        .college-card:hover .view-more {
            color: var(--dark-color);
        }
        
        .colleges-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
            gap: 30px;
            margin-top: 40px;
        }
        
        .university-header {
            background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
            color: white;
            padding: 40px 0;
            margin-bottom: 40px;
        }
        
        .breadcrumb {
            margin-bottom: 20px;
            font-size: 0.9rem;
        }
        
        .breadcrumb a {
            color: white;
            text-decoration: none;
            transition: opacity 0.3s;
            margin: 0 5px;
        }
        
        .breadcrumb a:hover {
            opacity: 0.8;
            text-decoration: underline;
        }
        
        .breadcrumb span {
            font-weight: bold;
            margin-right: 5px;
        }
        
        .university-title {
            display: flex;
            align-items: center;
            gap: 30px;
        }
        
        .university-title img {
            width: 100px;
            height: 100px;
            border-radius: 50%;
            border: 3px solid white;
            object-fit: cover;
        }
        
        .university-title h1 {
            font-size: 2rem;
            margin-bottom: 10px;
        }
        
        .university-title p {
            opacity: 0.9;
            font-size: 1.1rem;
        }


        

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
}

.logo img {
    width: 50px;
    height: 50px;
    margin-left: 15px;
}

.main-header h1 {
    font-size: 2rem;
    margin: 0;
}

.slogan {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* قسم البطل */
.hero-section {
    padding: 60px 0;
    text-align: center;
    background-color: white;
    margin: 20px 0;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.hero-section h2 {
    font-size: 2.2rem;
    margin-bottom: 15px;
    color: var(--dark-color);
}

.hero-section p {
    font-size: 1.2rem;
    color: var(--text-light);
    max-width: 700px;
    margin: 0 auto 30px;
}

.search-box {
    display: flex;
    max-width: 600px;
    margin: 0 auto;
}

.search-box input {
    flex: 1;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 4px 0 0 4px;
    font-size: 1rem;
    font-family: 'Tajawal', sans-serif;
}

.search-box button {
    background-color: var(--dark-color);
    color: white;
    border: none;
    padding: 0 25px;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
    font-family: 'Tajawal', sans-serif;
    font-size: 1rem;
    transition: background-color 0.3s;
}

.search-box button:hover {
    background-color: #1a252f;
}

/* شبكة الجامعات */
.universities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.university-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.university-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.university-img {
    height: 180px;
    overflow: hidden;
}

.university-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.university-card:hover .university-img img {
    transform: scale(1.05);
}

.university-info {
    padding: 15px;
}

.university-card h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: var(--dark-color);
}

.university-card p {
    color: var(--text-light);
    font-size: 0.95rem;
    margin-bottom: 15px;
}

.view-more {
    color: var(--primary-color);
    font-weight: bold;
    display: inline-block;
    transition: color 0.3s;
}

.university-card:hover .view-more {
    color: var(--dark-color);
}

/* هيدر صفحة الأقسام */
.university-header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 30px 0;
    margin-bottom: 30px;
}

.breadcrumb {
    margin-bottom: 20px;
}

.breadcrumb a {
    color: white;
    text-decoration: none;
    transition: opacity 0.3s;
}

.breadcrumb a:hover {
    opacity: 0.8;
}

.breadcrumb span {
    font-weight: bold;
}

.university-title {
    display: flex;
    align-items: center;
    gap: 20px;
}

.university-title img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 3px solid white;
    object-fit: cover;
}

.university-title h1 {
    font-size: 1.8rem;
    margin-bottom: 5px;
}

.university-title p {
    opacity: 0.9;
}

/* شبكة الأقسام */
.departments-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
}

.department-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
}

.department-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.department-img {
    height: 180px;
    overflow: hidden;
}

.department-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.department-card:hover .department-img img {
    transform: scale(1.05);
}

.department-info {
    padding: 15px;
}

.department-card h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: var(--dark-color);
}

.department-card p {
    color: var(--text-light);
    font-size: 0.95rem;
    margin-bottom: 15px;
}

/* الفوتر */
.main-footer {
    background-color: var(--dark-color);
    color: white;
    padding: 20px 0;
    margin-top: 50px;
    text-align: center;
}

/* التكيف مع الشاشات الصغيرة */
@media (max-width: 768px) {
    .universities-grid, .departments-grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    }
    
    .hero-section h2 {
        font-size: 1.8rem;
    }
    
    .hero-section p {
        font-size: 1rem;
    }
    
    .university-title {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .universities-grid, .departments-grid {
        grid-template-columns: 1fr;
    }
    
    .logo {
        flex-direction: column;
    }
    
    .logo img {
        margin-left: 0;
        margin-bottom: 10px;
    }
    
    .university-title img {
        width: 60px;
        height: 60px;
    }
    
    .university-title h1 {
        font-size: 1.5rem;
    }
}