html, body {
    height: 100%;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    margin: 0;
}

main {
    flex: 1; /* يجعل main يتمدد لملء المساحة الفارغة */
}

footer {
    background: #f8f9fa;
    text-align: center;
    padding: 1rem 0;
    margin-top: auto; /* يثبت الفوتر في الأسفل */
}


body {
    font-family: 'Cairo', sans-serif;
    background-color: #f8f9fa;
}

.navbar-brand {
    font-weight: 700;
    color: #0d6efd !important;
}

.hero {
    background: linear-gradient(to right, #0d6efd, #3b82f6);
    color: white;
    padding: 100px 0;
    text-align: center;
}
.search-box input {
    border-radius: 30px;
    padding: 12px 20px;
}
.section-title {
    font-weight: bold;
    color: #0d6efd;
    margin-bottom: 1rem;
}
footer {
    background-color: #0d6efd;
    color: white;
    text-align: center;
    padding: 15px;
    margin-top: 60px;
}


/* Specialties Section */
.specialties-section {
    margin-top: 6rem;
}

.specialties-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.specialty-card {
    background-color: #fff;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    text-decoration: none;
    transition: all 0.3s;
}

body.theme-dark .specialty-card, body.theme-dark .doctor-card, body.theme-dark .article-card {
    background-color: #111827;
}

.specialty-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.08);
}

.icon-bg {
    background-color: #bfdbfe;
    color: var(--color-accent-1);
    padding: 1.25rem;
    border-radius: 9999px;
    margin-bottom: 1rem;
    transition: background-color 0.3s, color 0.3s;
}

.specialty-card .icon {
    font-size: 1.875rem;
}

.card-text {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--color-heading);
    transition: color 0.3s;
}

