/* ═══════════════════════════════════════════════════════════ */
/*  المجلس الطبي اليمني — التصميم الرسمي                       */
/* ═══════════════════════════════════════════════════════════ */

:root {
    --primary: #0A6847;
    --primary-dark: #084F35;
    --primary-light: #E8F5F0;
    --gold: #C9A227;
    --gold-light: #F5E6B8;
    --dark: #1A2332;
    --gray-900: #2D3748;
    --gray-700: #4A5568;
    --gray-500: #718096;
    --gray-300: #CBD5E0;
    --gray-100: #F7FAFC;
    --white: #FFFFFF;
    --success: #10B981;
    --info: #3B82F6;
    --warning: #F59E0B;
    --danger: #EF4444;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.07), 0 2px 4px rgba(0,0,0,0.06);
    --shadow-lg: 0 10px 15px rgba(0,0,0,0.1), 0 4px 6px rgba(0,0,0,0.05);
    --shadow-xl: 0 20px 25px rgba(0,0,0,0.15), 0 10px 10px rgba(0,0,0,0.04);
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-full: 9999px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ═══ إعادة الضبط ═══ */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Cairo', 'Segoe UI', 'Tahoma', sans-serif;
    background: #F5F7FA;
    color: var(--dark);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ═══ الشريط العلوي ═══ */
.top-bar {
    background: var(--dark);
    color: var(--white);
    padding: 8px 0;
    font-size: 0.85rem;
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.top-bar-contact {
    display: flex;
    gap: 20px;
    align-items: center;
}

.top-bar-contact span {
    display: flex;
    align-items: center;
    gap: 6px;
    opacity: 0.9;
}

.top-bar-contact i {
    color: var(--gold);
}

.top-bar-social {
    display: flex;
    gap: 12px;
}

.top-bar-social a {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    color: var(--white);
    font-size: 0.8rem;
}

.top-bar-social a:hover {
    background: var(--gold);
    transform: translateY(-2px);
}

/* ═══ الهيدر ═══ */
.header {
    background: var(--white);
    padding: 15px 0;
    box-shadow: var(--shadow-sm);
    border-bottom: 3px solid var(--primary);
    position: relative;
    z-index: 100;
}

.header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.header-logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.header-logo img {
    height: 75px;
    width: auto;
    transition: var(--transition);
}

.header-logo:hover img {
    transform: scale(1.05);
}

.header-title h1 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    line-height: 1.3;
    margin-bottom: 4px;
}

.header-title p {
    font-size: 0.9rem;
    color: var(--gray-500);
    font-weight: 400;
}

.header-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

.btn-header {
    padding: 10px 20px;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: var(--transition);
}

.btn-header-primary {
    background: var(--primary);
    color: var(--white);
}

.btn-header-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-header-outline {
    background: transparent;
    color: var(--primary);
    border-color: var(--primary);
}

.btn-header-outline:hover {
    background: var(--primary);
    color: var(--white);
}

/* ═══ القائمة الرئيسية ═══ */
.main-nav {
    background: var(--primary);
    position: sticky;
    top: 0;
    z-index: 99;
    box-shadow: var(--shadow-md);
}

.nav-container {
    display: flex;
    overflow-x: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,0.3) transparent;
}

.nav-container::-webkit-scrollbar {
    height: 4px;
}

.nav-container::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.3);
    border-radius: 4px;
}

.nav-menu {
    display: flex;
    gap: 4px;
    padding: 0;
    margin: 0 auto;
    list-style: none;
    min-width: max-content;
}

.nav-menu a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 16px 18px;
    color: rgba(255,255,255,0.85);
    font-weight: 600;
    font-size: 0.9rem;
    white-space: nowrap;
    position: relative;
    transition: var(--transition);
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 50%;
    transform: translateX(50%);
    width: 0;
    height: 3px;
    background: var(--gold);
    transition: width 0.3s ease;
}

.nav-menu a:hover {
    color: var(--white);
    background: rgba(255,255,255,0.08);
}

.nav-menu a:hover::after {
    width: 60%;
}

/* ═══ قسم السلايدر ═══ */
.slider-section {
    padding: 60px 0;
    background: var(--gray-100);
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-title {
    font-size: 2rem;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 12px;
    position: relative;
    display: inline-block;
    padding-bottom: 16px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 50%;
    transform: translateX(50%);
    width: 60px;
    height: 4px;
    background: var(--gold);
    border-radius: 2px;
}

.section-subtitle {
    color: var(--gray-500);
    font-size: 1rem;
    max-width: 600px;
    margin: 0 auto;
}

.horizontal-slider {
    position: relative;
    overflow-x: auto;
    padding: 20px 0 30px;
    scrollbar-width: thin;
}

.horizontal-slider::-webkit-scrollbar {
    height: 8px;
}

.horizontal-slider::-webkit-scrollbar-track {
    background: var(--gray-300);
    border-radius: 4px;
    margin: 0 20px;
}

.horizontal-slider::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 4px;
}

.slider-container-scroll {
    display: flex;
    gap: 20px;
    padding: 0 20px;
    min-width: max-content;
}

.slide-card {
    flex: 0 0 340px;
    height: 400px;
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    cursor: pointer;
    transition: var(--transition);
}

.slide-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--shadow-xl);
}

.slide-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.slide-card:hover img {
    transform: scale(1.1);
}

.slide-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 24px 20px;
    background: linear-gradient(to top, rgba(10, 104, 71, 0.98) 0%, rgba(10, 104, 71, 0.85) 60%, transparent 100%);
    color: var(--white);
}

.slide-content h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 8px;
    line-height: 1.4;
}

.slide-content p {
    font-size: 0.85rem;
    line-height: 1.6;
    opacity: 0.9;
    margin-bottom: 12px;
}

.btn-slide {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: var(--gold);
    color: var(--dark);
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 700;
}

/* ═══ قسم الخدمات ═══ */
.services-section {
    padding: 80px 0;
    background: var(--white);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
}

.service-card {
    background: var(--white);
    border: 2px solid var(--gray-300);
    border-radius: var(--radius-lg);
    padding: 36px 28px;
    text-align: center;
    transition: var(--transition);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 0;
    height: 4px;
    background: var(--gold);
    transition: width 0.4s ease;
}

.service-card:hover {
    border-color: var(--primary);
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.service-card:hover::before {
    width: 100%;
}

.service-icon-wrap {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-light);
    border-radius: var(--radius-lg);
    transition: var(--transition);
}

.service-card:hover .service-icon-wrap {
    background: var(--primary);
    transform: rotate(-5deg);
}

.service-icon-wrap img {
    width: 48px;
    height: 48px;
    transition: var(--transition);
}

.service-card:hover .service-icon-wrap img {
    filter: brightness(0) invert(1);
}

.service-card h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 12px;
    line-height: 1.5;
}

.service-card p {
    font-size: 0.9rem;
    color: var(--gray-500);
    line-height: 1.7;
}

/* ═══ قسم تحميل التطبيق ═══ */
.app-download-section {
    padding: 60px 0;
    background: linear-gradient(135deg, var(--dark) 0%, #2d3748 100%);
    position: relative;
    overflow: hidden;
}

.app-download-box {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    flex-wrap: wrap;
}

.app-info-block {
    display: flex;
    align-items: center;
    gap: 24px;
    flex: 1;
    min-width: 300px;
}

.app-icon-wrapper {
    width: 90px;
    height: 90px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #3DDC84 0%, #2BB673 100%);
    border-radius: 24px;
    font-size: 2.5rem;
    color: var(--white);
    box-shadow: 0 10px 30px rgba(61, 220, 132, 0.4);
}

.app-text h3 {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 8px;
}

.app-text p {
    color: rgba(255,255,255,0.75);
    font-size: 0.95rem;
    line-height: 1.7;
    max-width: 500px;
}

.app-features {
    display: flex;
    gap: 20px;
    margin-top: 12px;
    flex-wrap: wrap;
}

.app-features span {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.8);
}

.app-features i {
    color: #3DDC84;
}

.btn-download-app {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    padding: 18px 36px;
    background: linear-gradient(135deg, #3DDC84 0%, #2BB673 100%);
    color: var(--white);
    border-radius: var(--radius-full);
    font-weight: 700;
    font-size: 1rem;
    box-shadow: 0 10px 30px rgba(61, 220, 132, 0.4);
    transition: var(--transition);
    flex-shrink: 0;
}

.btn-download-app:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 40px rgba(61, 220, 132, 0.6);
    color: var(--white);
}

.btn-download-app .btn-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1.2;
}

.btn-download-app .btn-text small {
    font-size: 0.7rem;
    opacity: 0.9;
    font-weight: 400;
}

.btn-download-app i.fa-android {
    font-size: 1.8rem;
}

/* ═══ قسم الفيديوهات ═══ */
.videos-section {
    padding: 80px 0;
    background: var(--gray-100);
}

.video-filters {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.video-filter-btn {
    padding: 10px 22px;
    background: var(--white);
    border: 2px solid var(--gray-300);
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--gray-700);
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.video-filter-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-2px);
}

.video-filter-btn.active {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--white);
    box-shadow: var(--shadow-md);
}

.videos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
}

.video-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    cursor: pointer;
}

.video-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.video-thumbnail {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.video-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.video-card:hover .video-thumbnail img {
    transform: scale(1.1);
}

.video-overlay {
    position: absolute;
    inset: 0;
    background: rgba(10, 104, 71, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.video-card:hover .video-overlay {
    opacity: 1;
}

.btn-play {
    width: 70px;
    height: 70px;
    background: var(--white);
    color: var(--primary);
    border: none;
    border-radius: 50%;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    cursor: pointer;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

.btn-play:hover {
    background: var(--gold);
    color: var(--dark);
    transform: scale(1.1);
}

.video-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 6px 14px;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--white);
    z-index: 2;
}

.badge-info { background: var(--info); }
.badge-success { background: var(--success); }
.badge-warning { background: var(--warning); }
.badge-danger { background: var(--danger); }

.video-content {
    padding: 20px;
}

.video-content h4 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 10px;
    line-height: 1.5;
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.video-content h4 i {
    color: var(--primary);
    margin-top: 4px;
    flex-shrink: 0;
}

.video-content p {
    font-size: 0.85rem;
    color: var(--gray-500);
    line-height: 1.7;
    margin-bottom: 14px;
    min-height: 44px;
}

.video-meta {
    display: flex;
    justify-content: space-between;
    padding-top: 14px;
    border-top: 1px solid var(--gray-100);
    font-size: 0.8rem;
    color: var(--gray-500);
}

.video-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

/* ═══ قسم الأخبار ═══ */
.news-section {
    padding: 80px 0;
    background: var(--white);
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
}

.news-card {
    background: var(--white);
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition);
}

.news-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary);
}

.news-image {
    height: 200px;
    overflow: hidden;
    position: relative;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.news-card:hover .news-image img {
    transform: scale(1.1);
}

.news-category {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 6px 14px;
    background: var(--primary);
    color: var(--white);
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 700;
}

.news-content {
    padding: 22px;
}

.news-date {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    color: var(--gray-500);
    margin-bottom: 10px;
}

.news-content h4 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 10px;
    line-height: 1.5;
}

.news-content p {
    font-size: 0.9rem;
    color: var(--gray-500);
    line-height: 1.7;
    margin-bottom: 16px;
}

.news-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--primary);
    font-weight: 700;
    font-size: 0.9rem;
}

.news-link:hover {
    color: var(--gold);
    gap: 10px;
}

/* ═══ الفوتر ═══ */
.footer {
    background: var(--dark);
    color: rgba(255,255,255,0.8);
    padding: 60px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h5 {
    color: var(--white);
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 12px;
}

.footer-col h5::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 40px;
    height: 3px;
    background: var(--gold);
    border-radius: 2px;
}

.footer-col p {
    font-size: 0.9rem;
    line-height: 1.8;
    margin-bottom: 16px;
}

.footer-logo {
    height: 80px;
    margin-bottom: 16px;
    filter: brightness(0) invert(1);
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: rgba(255,255,255,0.75);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-links a:hover {
    color: var(--gold);
    padding-right: 6px;
}

.footer-links i {
    font-size: 0.7rem;
}

.footer-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 14px;
    font-size: 0.9rem;
}

.footer-contact-item i {
    width: 32px;
    height: 32px;
    background: rgba(255,255,255,0.08);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold);
    flex-shrink: 0;
}

.footer-social {
    display: flex;
    gap: 10px;
    margin-top: 16px;
}

.footer-social a {
    width: 38px;
    height: 38px;
    background: rgba(255,255,255,0.08);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
}

.footer-social a:hover {
    background: var(--gold);
    color: var(--dark);
    transform: translateY(-3px);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 24px 0;
    text-align: center;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.6);
}

/* ═══ Modal Styles ═══ */
.modal-content {
    border: none;
    border-radius: var(--radius-lg) !important;
    overflow: hidden;
}

.modal-header {
    background: var(--primary) !important;
    color: var(--white) !important;
    border: none;
    padding: 18px 24px;
}

.modal-header .modal-title {
    font-weight: 700;
    font-size: 1.1rem;
}

.modal-body {
    padding: 24px;
    font-size: 0.95rem;
    line-height: 1.8;
}

.modal-body img {
    border-radius: var(--radius-md);
    margin-bottom: 16px;
}

.modal-body h4,
.modal-body h6 {
    color: var(--primary);
    font-weight: 700;
    margin: 16px 0 10px;
}

.modal-footer {
    border-top: 1px solid var(--gray-100);
    padding: 16px 24px;
}

.btn-primary {
    background: var(--primary) !important;
    border-color: var(--primary) !important;
    font-weight: 600;
    padding: 8px 20px;
    border-radius: var(--radius-md);
}

.btn-secondary {
    background: var(--gray-500) !important;
    border-color: var(--gray-500) !important;
    font-weight: 600;
    padding: 8px 20px;
    border-radius: var(--radius-md);
}

/* ═══ Responsive ═══ */
@media (max-width: 992px) {
    .section-title { font-size: 1.7rem; }
    .app-download-box { flex-direction: column; text-align: center; }
    .app-info-block { flex-direction: column; text-align: center; }
    .app-features { justify-content: center; }
}

@media (max-width: 768px) {
    .header .container { flex-direction: column; text-align: center; }
    .header-title h1 { font-size: 1.2rem; }
    .header-actions { justify-content: center; }
    .top-bar-contact { display: none; }
    .section-title { font-size: 1.4rem; }
    .slide-card { flex: 0 0 280px; height: 360px; }
    .services-grid { grid-template-columns: 1fr; }
    .videos-grid { grid-template-columns: 1fr; }
    .news-grid { grid-template-columns: 1fr; }
    .btn-download-app { width: 100%; justify-content: center; }
}

@media (max-width: 576px) {
    .header-logo img { height: 60px; }
    .header-title h1 { font-size: 1rem; }
    .stat-card h3 { font-size: 1.6rem; }
}
/* ═══════════════════════════════════════════════════════════ */
/*  أيقونات متحركة على بطاقات السلايدر                          */
/* ═══════════════════════════════════════════════════════════ */
.slide-icon {
    position: absolute;
    top: 20px;
    left: 20px;
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.95);
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
    z-index: 3;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.slide-card:hover .slide-icon {
    transform: scale(1.15) rotate(-10deg);
    background: var(--gold);
    color: var(--dark);
}

/* ────── الأنيميشن الأساسي ────── */
@keyframes iconPulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 8px 20px rgba(0,0,0,0.15);
    }
    50% {
        transform: scale(1.1);
        box-shadow: 0 8px 30px rgba(10, 104, 71, 0.3);
    }
}

@keyframes iconBounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

@keyframes iconFlip {
    0%, 100% {
        transform: rotateY(0);
    }
    50% {
        transform: rotateY(180deg);
    }
}

@keyframes iconRotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

@keyframes iconWiggle {
    0%, 100% {
        transform: rotate(0deg);
    }
    25% {
        transform: rotate(-8deg);
    }
    75% {
        transform: rotate(8deg);
    }
}

/* ────── الأنيميشن Classes ────── */
.animate-pulse {
    animation: iconPulse 2s ease-in-out infinite;
}

.animate-bounce {
    animation: iconBounce 2s ease-in-out infinite;
}

.animate-flip {
    animation: iconFlip 3s ease-in-out infinite;
}

.animate-rotate {
    animation: iconRotate 8s linear infinite;
}

.animate-wiggle {
    animation: iconWiggle 1.5s ease-in-out infinite;
}

/* ────── أيقونات الخدمات المتحركة ────── */
.service-icon-wrap.animate-pulse {
    animation: iconPulse 3s ease-in-out infinite;
}

.service-icon-wrap.animate-bounce {
    animation: iconBounce 2.5s ease-in-out infinite;
}

.service-icon-wrap.animate-flip {
    animation: iconFlip 4s ease-in-out infinite;
}

/* إيقاف الأنيميشن عند hover (لتأثير نظيف) */
.service-card:hover .service-icon-wrap {
    animation: none;
}

/* ────── تحسين الأخبار ────── */
.news-section .news-grid {
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

/* ────── شريط تمرير مخصص للسلايدر ────── */
.horizontal-slider {
    scroll-snap-type: x mandatory;
}

.slide-card {
    scroll-snap-align: start;
}

/* ────── Responsive ────── */
@media (max-width: 768px) {
    .slide-icon {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
        top: 15px;
        left: 15px;
    }
}
/* ═══════════════════════════════════════════════════════════ */
/*  صفحة التسجيل                                              */
/* ═══════════════════════════════════════════════════════════ */

.page-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    padding: 60px 0;
    color: var(--white);
    text-align: center;
}

.page-header-content h1 {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 12px;
}

.page-header-content h1 i {
    color: var(--gold);
    margin-left: 10px;
}

.page-header-content p {
    font-size: 1.05rem;
    opacity: 0.9;
}

.register-section {
    padding: 60px 0 80px;
    background: var(--gray-100);
}

.register-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--shadow-lg);
    max-width: 1100px;
    margin: 0 auto;
}

/* ────────── قسم النموذج ────────── */
.form-section {
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 2px dashed var(--gray-300);
}

.form-section:last-of-type {
    border-bottom: none;
}

.form-section-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 28px;
    padding-bottom: 16px;
    border-bottom: 2px solid var(--primary-light);
}

.section-icon {
    width: 55px;
    height: 55px;
    flex-shrink: 0;
    background: var(--primary-light);
    color: var(--primary);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
}

.form-section-header h2 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 4px;
}

.form-section-header p {
    font-size: 0.9rem;
    color: var(--gray-500);
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.required {
    color: var(--danger);
    font-weight: 700;
}

.form-control,
.form-select {
    width: 100%;
    padding: 12px 16px;
    font-size: 0.95rem;
    border: 2px solid var(--gray-300);
    border-radius: var(--radius-md);
    transition: var(--transition);
    font-family: inherit;
    background: var(--white);
}

.form-control:focus,
.form-select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(10, 104, 71, 0.1);
}

.form-control.is-invalid,
.form-select.is-invalid {
    border-color: var(--danger);
    background-color: #FEF2F2;
}

.error-text {
    color: var(--danger);
    font-size: 0.82rem;
    margin-top: 6px;
    font-weight: 600;
    display: none;
}

/* ────────── Radio Group ────────── */
.radio-group {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    padding: 10px 0;
}

.radio-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: var(--gray-100);
    border: 2px solid var(--gray-300);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition);
    font-weight: 600;
}

.radio-item:hover {
    border-color: var(--primary);
    background: var(--primary-light);
}

.radio-item input[type="radio"] {
    accent-color: var(--primary);
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.radio-item input[type="radio"]:checked + span {
    color: var(--primary);
}

/* ────────── تحذير ────────── */
.warning-box {
    display: flex;
    gap: 16px;
    padding: 20px;
    background: #FEF3C7;
    border-right: 5px solid var(--warning);
    border-radius: var(--radius-md);
    margin: 30px 0;
}

.warning-box i {
    font-size: 1.8rem;
    color: var(--warning);
    flex-shrink: 0;
}

.warning-box strong {
    display: block;
    color: #92400E;
    margin-bottom: 6px;
    font-size: 1rem;
}

.warning-box p {
    color: #78350F;
    font-size: 0.9rem;
    margin: 0;
}

/* ────────── أزرار ────────── */
.form-actions {
    text-align: center;
    margin-top: 30px;
}

.btn-submit {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 16px 60px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
    border: none;
    border-radius: var(--radius-full);
    font-size: 1.05rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 8px 20px rgba(10, 104, 71, 0.3);
}

.btn-submit:hover:not(:disabled) {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(10, 104, 71, 0.5);
}

.btn-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* ────────── Select2 RTL ────────── */
.select2-container--bootstrap-5 .select2-selection {
    min-height: 48px;
    border: 2px solid var(--gray-300) !important;
    border-radius: var(--radius-md) !important;
    padding: 6px 12px;
}

.select2-container--bootstrap-5.select2-container--focus .select2-selection {
    border-color: var(--primary) !important;
    box-shadow: 0 0 0 4px rgba(10, 104, 71, 0.1) !important;
}

/* ────────── Alerts ────────── */
.alert {
    border-radius: var(--radius-md);
    padding: 16px 20px;
    margin-bottom: 20px;
    border: none;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.95rem;
}

.alert i {
    font-size: 1.3rem;
}

.alert-success {
    background: #D1FAE5;
    color: #065F46;
}

.alert-danger {
    background: #FEE2E2;
    color: #991B1B;
}

/* ────────── Responsive ────────── */
@media (max-width: 768px) {
    .register-card {
        padding: 24px 20px;
    }

    .page-header-content h1 {
        font-size: 1.6rem;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .btn-submit {
        width: 100%;
        padding: 16px 24px;
    }
}
/* ═══════════════════════════════════════════════════════════ */
/*  Wizard Steps (شريط الخطوات)                                */
/* ═══════════════════════════════════════════════════════════ */
.wizard-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin-bottom: 40px;
    padding: 30px 20px;
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    flex-wrap: wrap;
}

.wizard-step {
    display: flex;
    align-items: center;
    gap: 14px;
    flex: 1;
    min-width: 200px;
    max-width: 320px;
    opacity: 0.5;
    transition: var(--transition);
}

.wizard-step.active {
    opacity: 1;
}

.wizard-step.completed {
    opacity: 0.85;
}

.step-circle {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    background: var(--gray-300);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    flex-shrink: 0;
    transition: var(--transition);
    position: relative;
}

.wizard-step.active .step-circle {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    box-shadow: 0 8px 20px rgba(10, 104, 71, 0.35);
    transform: scale(1.1);
}

.wizard-step.completed .step-circle {
    background: var(--success);
}

.wizard-step.completed .step-circle::after {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--success);
    border-radius: 50%;
}

.wizard-step.completed .step-circle i {
    opacity: 0;
}

.step-content h4 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 3px;
    line-height: 1.3;
}

.step-content p {
    font-size: 0.78rem;
    color: var(--gray-500);
    margin: 0;
    line-height: 1.4;
}

.wizard-line {
    flex: 1;
    height: 3px;
    background: var(--gray-300);
    margin: 0 10px;
    min-width: 20px;
    border-radius: 2px;
    position: relative;
}

.wizard-step.completed + .wizard-line {
    background: var(--success);
}

/* ═══════════════════════════════════════════════════════════ */
/*  Wizard Panels (لوحات المحتوى)                              */
/* ═══════════════════════════════════════════════════════════ */
.wizard-panel {
    display: none;
    animation: fadeIn 0.4s ease-out;
}

.wizard-panel.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.panel-header {
    text-align: center;
    margin-bottom: 32px;
    padding-bottom: 20px;
    border-bottom: 2px dashed var(--gray-300);
}

.panel-header h2 {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 8px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.panel-header h2 i {
    color: var(--gold);
}

.panel-header p {
    color: var(--gray-500);
    font-size: 0.95rem;
}

/* ═══════════════════════════════════════════════════════════ */
/*  Panel Actions (أزرار التنقل)                              */
/* ═══════════════════════════════════════════════════════════ */
.panel-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 2px solid var(--gray-100);
    flex-wrap: wrap;
}

.btn-next,
.btn-prev,
.btn-submit {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    border: none;
    border-radius: var(--radius-full);
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    font-family: inherit;
}

.btn-next {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
    box-shadow: 0 6px 20px rgba(10, 104, 71, 0.3);
    margin-right: auto;
}

.btn-next:hover:not(:disabled) {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(10, 104, 71, 0.5);
}

.btn-prev {
    background: var(--white);
    color: var(--gray-700);
    border: 2px solid var(--gray-300);
}

.btn-prev:hover:not(:disabled) {
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-2px);
}

.btn-submit {
    background: linear-gradient(135deg, var(--gold) 0%, #b8941f 100%);
    color: var(--white);
    box-shadow: 0 6px 20px rgba(201, 162, 39, 0.4);
    margin-right: auto;
    padding: 16px 44px;
    font-size: 1rem;
}

.btn-submit:hover:not(:disabled) {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(201, 162, 39, 0.6);
}

.btn-next:disabled,
.btn-prev:disabled,
.btn-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* ═══════════════════════════════════════════════════════════ */
/*  Full Width field                                          */
/* ═══════════════════════════════════════════════════════════ */
.form-group.full-width {
    grid-column: 1 / -1;
}

/* ═══════════════════════════════════════════════════════════ */
/*  Responsive                                                */
/* ═══════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
    .wizard-steps {
        flex-direction: column;
        gap: 20px;
    }
    
    .wizard-step {
        max-width: 100%;
        width: 100%;
    }
    
    .wizard-line {
        display: none;
    }
    
    .panel-actions {
        flex-direction: column-reverse;
        gap: 12px;
    }
    
    .btn-next,
    .btn-prev,
    .btn-submit {
        width: 100%;
        justify-content: center;
        margin-right: 0;
    }
    
    .step-content h4 {
        font-size: 0.95rem;
    }
}
/* ═══════════════════════════════════════════════════════════ */
/*  الحقول غير الصحيحة — إشارة حمراء واضحة                     */
/* ═══════════════════════════════════════════════════════════ */

/* ─── Input / Select عادي ─── */
.form-control.is-invalid,
.form-select.is-invalid {
    border-color: var(--danger) !important;
    background-color: #FEF2F2 !important;
    animation: shakeError 0.4s ease;
}

.form-control.is-invalid:focus,
.form-select.is-invalid:focus {
    box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.15) !important;
}

/* ─── Select2 ─── */
.select2-container.is-invalid .select2-selection,
.select2-container--bootstrap-5.is-invalid .select2-selection {
    border-color: var(--danger) !important;
    background-color: #FEF2F2 !important;
    animation: shakeError 0.4s ease;
}

.select2-container--bootstrap-5.select2-container--focus.is-invalid .select2-selection {
    box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.15) !important;
}

/* ─── Radio ─── */
.radio-group .is-invalid {
    outline: 2px solid var(--danger);
    outline-offset: 2px;
    border-radius: 4px;
}

/* ═══════════════════════════════════════════════════════════ */
/*  رسائل الخطأ تحت الحقول                                     */
/* ═══════════════════════════════════════════════════════════ */
.error-text {
    color: var(--danger) !important;
    font-size: 0.85rem;
    font-weight: 600;
    margin-top: 6px;
    display: flex;
    align-items: flex-start;
    gap: 6px;
    line-height: 1.5;
    animation: slideDownError 0.3s ease;
}

.error-text::before {
    content: '\f071';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 0.9rem;
    flex-shrink: 0;
    margin-top: 1px;
}

.error-text:empty,
.error-text:not(:has(*)):empty {
    display: none !important;
}

.error-text strong {
    color: #991B1B;
}

@keyframes shakeError {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    50% { transform: translateX(5px); }
    75% { transform: translateX(-3px); }
}

@keyframes slideDownError {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ═══════════════════════════════════════════════════════════ */
/*  Select2 تنسيقات محسّنة                                      */
/* ═══════════════════════════════════════════════════════════ */
.select2-container {
    width: 100% !important;
}

.select2-container--bootstrap-5 .select2-selection--single {
    height: auto !important;
    min-height: 48px;
    padding: 10px 14px !important;
    border: 2px solid var(--gray-300) !important;
    border-radius: var(--radius-md) !important;
    background: white;
}

.select2-container--bootstrap-5 .select2-selection--single .select2-selection__rendered {
    color: var(--dark) !important;
    padding: 0 !important;
    line-height: 1.6 !important;
    font-size: 0.95rem;
}

.select2-container--bootstrap-5 .select2-selection--single .select2-selection__arrow {
    height: 100% !important;
    left: 12px !important;
    right: auto !important;
}

.select2-container--bootstrap-5.select2-container--focus .select2-selection--single,
.select2-container--bootstrap-5.select2-container--open .select2-selection--single {
    border-color: var(--primary) !important;
    box-shadow: 0 0 0 4px rgba(10, 104, 71, 0.1) !important;
}

/* ─── قائمة البحث ─── */
.select2-search--dropdown {
    padding: 12px !important;
}

.select2-search--dropdown .select2-search__field {
    border: 2px solid var(--gray-300) !important;
    border-radius: var(--radius-sm) !important;
    padding: 10px 14px !important;
    font-family: inherit !important;
    direction: rtl;
    font-size: 0.95rem;
}

.select2-search--dropdown .select2-search__field:focus {
    border-color: var(--primary) !important;
    outline: none !important;
    box-shadow: 0 0 0 3px rgba(10, 104, 71, 0.1);
}

/* ─── القائمة المنسدلة ─── */
.select2-container--bootstrap-5 .select2-dropdown {
    border: 2px solid var(--primary) !important;
    border-radius: var(--radius-md) !important;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15) !important;
    max-height: 400px;
    overflow: hidden;
    direction: rtl;
}

.select2-results__options {
    max-height: 320px !important;
    overflow-y: auto;
}

.select2-results__option {
    padding: 10px 14px !important;
    font-size: 0.9rem !important;
}

.select2-container--bootstrap-5 .select2-results__option--highlighted {
    background-color: var(--primary) !important;
    color: white !important;
}

/* ─── لا توجد نتائج ─── */
.select2-results__option--no-results {
    color: var(--gray-500) !important;
    text-align: center;
    padding: 30px 20px !important;
    font-weight: 600;
    font-size: 0.95rem !important;
}

.select2-results__option--no-results::before {
    content: '\f002';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    display: block;
    font-size: 2rem;
    margin-bottom: 10px;
    opacity: 0.3;
    color: var(--gray-500);
}

/* ─── رسالة البحث في Select2 ─── */
.select2-results__message {
    color: var(--gray-500) !important;
    text-align: center;
    padding: 15px !important;
    font-style: italic;
}
/* ═══════════════════════════════════════════════════════════ */
/*  Wizard Panels — إصلاح التشوّه                              */
/* ═══════════════════════════════════════════════════════════ */

.wizard-panel {
    display: none !important;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.wizard-panel.active {
    display: block !important;
    opacity: 1;
    animation: fadeInPanel 0.35s ease-out;
}

@keyframes fadeInPanel {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}