* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Cairo', sans-serif;
    background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), url('https://images.unsplash.com/photo-1519494026892-80bbd2d6fd0d?ixlib=rb-4.0.3&auto=format&fit=crop&w=1400&q=80');
    background-size: cover;
    background-attachment: fixed;
    background-position: center;
    color: #fff;
    min-height: 100vh;
}

.navbar {
    background: rgba(255,255,255,0.95);
    padding: 15px 30px;
    box-shadow: 0 2px 20px rgba(0,0,0,0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.logo-container i {
    font-size: 2.2rem;
    color: #2e7d32;
}

.site-name {
    font-size: 2rem;
    color: #1b5e20;
    font-weight: 700;
}

.nav-links {
    display: flex;
    gap: 30px;
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    color: #2e7d32;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: #2e7d32;
    transition: width 0.3s;
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.login-btn {
    background: #2e7d32;
    color: white;
    padding: 8px 25px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
}

.login-btn:hover {
    background: #1b5e20;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(46,125,50,0.3);
}

.main-content {
    min-height: calc(100vh - 80px);
    padding: 40px 20px;
    backdrop-filter: blur(3px);
}

.container {
    max-width: 1400px;
    margin: 0 auto;
}

/* رأس الصفحة */
.page-header {
    text-align: center;
    margin-bottom: 50px;
}

.page-header h1 {
    font-size: 3rem;
    color: white;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    margin-bottom: 10px;
}

.page-header p {
    font-size: 1.2rem;
    color: rgba(255,255,255,0.9);
}

/* قسم الفلترة */
.filter-section {
    background: rgba(255,255,255,0.95);
    border-radius: 30px;
    padding: 30px;
    margin-bottom: 40px;
    backdrop-filter: blur(10px);
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
}

.filter-group {
    flex: 1;
    min-width: 200px;
}

.filter-group label {
    display: block;
    color: #1b5e20;
    font-weight: 600;
    margin-bottom: 8px;
}

.filter-select, .filter-input {
    width: 100%;
    padding: 12px 20px;
    border: 2px solid #e0e0e0;
    border-radius: 15px;
    font-family: 'Cairo', sans-serif;
    font-size: 1rem;
    transition: all 0.3s;
}

.filter-select:focus, .filter-input:focus {
    outline: none;
    border-color: #2e7d32;
    box-shadow: 0 0 0 4px rgba(46,125,50,0.1);
}

.filter-btn {
    background: #2e7d32;
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 15px;
    font-family: 'Cairo', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    min-width: 120px;
}

.filter-btn:hover {
    background: #1b5e20;
    transform: translateY(-2px);
}

/* نتائج البحث */
.results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 20px;
}

.results-count {
    background: rgba(255,255,255,0.95);
    padding: 10px 25px;
    border-radius: 25px;
    color: #1b5e20;
    font-weight: 600;
}

.sort-section {
    display: flex;
    gap: 10px;
    align-items: center;
}

.sort-section label {
    color: white;
    font-weight: 600;
}

.sort-select {
    padding: 8px 20px;
    border: 2px solid #e0e0e0;
    border-radius: 15px;
    font-family: 'Cairo', sans-serif;
    background: white;
}

/* شبكة الأطباء */
.doctors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.doctor-card {
    background: rgba(255,255,255,0.95);
    border-radius: 25px;
    overflow: hidden;
    transition: all 0.3s;
    cursor: pointer;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
}

.doctor-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
    background: white;
}

.doctor-image {
    height: 200px;
    background: linear-gradient(135deg, #2e7d32, #1b5e20);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.doctor-image::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255,255,255,0.1), transparent);
    transform: rotate(45deg);
    animation: shine 3s infinite;
}

@keyframes shine {
    0% { transform: translateX(-100%) rotate(45deg); }
    100% { transform: translateX(100%) rotate(45deg); }
}

.doctor-image i {
    font-size: 5rem;
    color: white;
    z-index: 1;
}

.doctor-info {
    padding: 25px;
}

.doctor-name {
    font-size: 1.5rem;
    color: #1b5e20;
    margin-bottom: 5px;
}

.doctor-specialty {
    color: #2e7d32;
    font-weight: 600;
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.doctor-details {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 15px 0;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #666;
}

.detail-item i {
    color: #2e7d32;
    width: 20px;
}

.doctor-rating {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 15px 0;
}

.stars {
    color: gold;
    font-size: 1.1rem;
}

.rating-count {
    color: #666;
    font-size: 0.9rem;
}

.doctor-price {
    font-size: 1.3rem;
    color: #2e7d32;
    font-weight: 700;
    margin: 15px 0;
}

.book-btn {
    background: #2e7d32;
    color: white;
    border: none;
    padding: 15px;
    border-radius: 15px;
    width: 100%;
    font-family: 'Cairo', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.book-btn:hover {
    background: #1b5e20;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(46,125,50,0.3);
}

/* ترقيم الصفحات */
.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 50px 0;
}

.page-btn {
    width: 45px;
    height: 45px;
    background: rgba(255,255,255,0.95);
    border: none;
    border-radius: 12px;
    font-family: 'Cairo', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: #2e7d32;
    cursor: pointer;
    transition: all 0.3s;
}

.page-btn:hover, .page-btn.active {
    background: #2e7d32;
    color: white;
}

/* التخصصات السريعة */
.quick-specialties {
    margin: 50px 0;
}

.quick-specialties h3 {
    color: white;
    font-size: 1.5rem;
    margin-bottom: 20px;
    text-align: center;
}

.specialties-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
}

.specialty-tag {
    display: inline-block;
    background: rgba(255,255,255,0.95);
    padding: 12px 25px;
    border-radius: 30px;
    color: #1b5e20;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    border: 1px solid rgba(46,125,50,0.35);
    text-decoration: none;
}

.specialty-tag:hover {
    background: #2e7d32;
    color: #e8f5e9;
    transform: translateY(-2px);
}

/* التذييل */
.footer {
    background: rgba(0,0,0,0.8);
    backdrop-filter: blur(10px);
    color: white;
    padding: 60px 30px 20px;
    margin-top: 80px;
}

.footer-content {
    max-width: 1300px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

.footer-section h3 {
    color: #2e7d32;
    margin-bottom: 20px;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section ul li a {
    text-decoration: none;
    color: rgba(255,255,255,0.8);
    transition: color 0.3s;
}

.footer-section ul li a:hover {
    color: #2e7d32;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: all 0.3s;
}

.social-links a:hover {
    background: #2e7d32;
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 40px;
    margin-top: 40px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        gap: 15px;
    }
    
    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .filter-section {
        flex-direction: column;
    }
    
    .filter-group {
        width: 100%;
    }
    
    .results-header {
        flex-direction: column;
        align-items: stretch;
    }
    
    .sort-section {
        flex-direction: column;
        align-items: stretch;
    }
}