/* Reset and Base Styles */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Cairo', sans-serif;
    line-height: 1.6;
    color: #fff;
    background: #1d1c0a;
    overflow-x: hidden;
    transition: background-color 0.3s ease, color 0.3s ease;
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

body[data-theme="light"] {
    background: #f5f5f5;
    color: #333;
}

/* Star Background for Main Content */
.star-background {
    position: fixed;
    top: 100px;
    left: 0;
    width: 100%;
    height: calc(100vh - 100px);
    z-index: -1;
    background: transparent;
    pointer-events: none;
}

/* Overlay */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(15, 20, 34, 0.7), rgba(25, 30, 44, 0.9));
    z-index: -2;
    animation: gentleFlow 15s infinite linear;
}

@keyframes gentleFlow {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 5%;
    background: transparent;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.header.sticky {
    background: rgba(10, 15, 29, 0.9);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.logo {
    width: 150px;
    height: 70px;
}

.logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.nav ul {
    display: flex;
    list-style: none;
    gap: 2.5rem;
}

.nav a {
    text-decoration: none;
    color: #fff;
    font-weight: 600;
    transition: color 0.3s ease;
}

.nav a:hover {
    color: #FFC107;
}

.dropdown {
    position: relative;
}

.dropdown .dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    cursor: pointer;
    background: none;
    border: none;
    font-family: 'Cairo', sans-serif;
    font-weight: 600;
    color: #fff;
    padding: 0;
    transition: color 0.3s ease;
}

.dropdown .dropdown-toggle:hover {
    color: #FFC107;
}

.dropdown-menu {
    display: none;
    position: absolute;
    background: rgba(10, 15, 29, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    min-width: 180px;
    z-index: 1001;
    top: 100%;
    right: 0;
    padding: 0.5rem 0;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.3s ease, visibility 0s ease 0.3s;
}

.dropdown:hover .dropdown-menu,
.dropdown.active .dropdown-menu {
    display: block;
    visibility: visible;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.dropdown-menu li {
    list-style: none;
    padding: 0.5rem 1rem;
}

.dropdown-menu a {
    color: #fff;
    text-decoration: none;
    display: block;
}

.dropdown-menu a:hover {
    color: #03A9F4;
}

.controls {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.btn-control {
    padding: 0.7rem 1.2rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid #9C27B0;
    border-radius: 25px;
    text-decoration: none;
    color: #fff;
    font-weight: 600;
    transition: all 0.4s ease;
    display: flex;
    align-items: center;
    position: relative;
}

.btn-control:hover {
    background: #9C27B0;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(156, 39, 176, 0.4);
}

.btn-control i {
    margin-left: 0.5rem;
}

/* Improved User Greeting Styles */
.user-greeting {
    color: #FFC107 !important;
    margin-left: 1rem;
    font-weight: 700;
    font-size: 1rem;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, rgba(156, 39, 176, 0.2), rgba(255, 193, 7, 0.2));
    border-radius: 25px;
    border: 1px solid rgba(255, 193, 7, 0.3);
    box-shadow: 0 2px 10px rgba(255, 193, 7, 0.2);
    transition: all 0.3s ease;
    display: inline-flex !important; /* تأكد من أنها مرئية */
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
    visibility: visible !important;
    opacity: 1 !important;
}

.user-greeting::before {
    content: "👋";
    font-size: 1.1rem;
}

.user-greeting:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 193, 7, 0.3);
    background: linear-gradient(135deg, rgba(156, 39, 176, 0.3), rgba(255, 193, 7, 0.3));
}

/* للتأكد من ظهورها في الوضع المحمول */
@media (max-width: 992px) {
    .user-greeting {
        display: none; /* يمكن إخفاؤها في المحمول إذا لزم الأمر */
    }
}

.notification-bell {
    position: relative;
}

.notification-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #FF5722;
    color: #fff;
    font-size: 0.8rem;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.notification-popover {
    position: absolute;
    top: 60px;
    right: 20px;
    width: 300px;
    max-height: 400px;
    background: rgba(10, 15, 29, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    z-index: 2000;
    display: none;
    flex-direction: column;
}

.notification-popover.active {
    display: flex;
}

.popover-header {
    background: linear-gradient(135deg, #9C27B0, #7B1FA2);
    padding: 1rem;
    border-radius: 15px 15px 0 0;
    color: #fff;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.popover-header h3 {
    margin: 0;
    font-size: 1.2rem;
}

.popover-close {
    background: none;
    border: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
}

.popover-messages {
    flex: 1;
    padding: 1rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.notification-message {
    background: rgba(255, 255, 255, 0.1);
    padding: 0.8rem;
    border-radius: 10px;
    font-size: 0.95rem;
    color: #fff;
}

.popover-footer {
    padding: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.popover-footer .submit-btn {
    padding: 0.8rem 1.2rem;
    background: #9C27B0;
    color: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.popover-footer .submit-btn:hover {
    background: #FFC107;
}

/* Mobile Menu Styles */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 1001;
}

.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    height: 100%;
    background: rgba(10, 15, 29, 0.98);
    backdrop-filter: blur(15px);
    z-index: 1002;
    transition: right 0.3s ease;
    overflow-y: auto;
    padding: 2rem;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.3);
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu-close {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: none;
    border: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
}

.mobile-nav {
    margin-top: 3rem;
}

.mobile-nav ul {
    list-style: none;
}

.mobile-nav li {
    margin-bottom: 1rem;
}

.mobile-nav a {
    color: #fff;
    text-decoration: none;
    font-size: 1.1rem;
    display: block;
    padding: 0.8rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: color 0.3s ease;
}

.mobile-nav a:hover {
    color: #FFC107;
}

.mobile-dropdown-toggle {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    background: none;
    border: none;
    color: #fff;
    font-size: 1.1rem;
    font-family: 'Cairo', sans-serif;
    padding: 0.8rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
}

.mobile-dropdown-menu {
    padding-right: 1rem;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.mobile-dropdown-menu.active {
    max-height: 300px;
}

.mobile-dropdown-menu li {
    margin-bottom: 0.5rem;
}

.mobile-dropdown-menu a {
    font-size: 0.95rem;
    padding: 0.5rem 0;
    border-bottom: none;
}

.mobile-controls {
    margin-top: 2rem;
    display: none;
    flex-direction: column;
    gap: 1rem;
}

.mobile-controls .btn-control {
    justify-content: center;
    text-align: center;
}

/* Main Content */
.main-content {
    min-height: 100vh;
    position: relative;
    z-index: 1;
    background: transparent;
    flex: 1;
    padding-top: 100px;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Section Header - Updated */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
    padding: 0 1rem;
}

.section-header h1 {
    font-size: 2.8rem;
    color: #9C27B0;
    margin-bottom: 1rem;
    text-shadow: 0 2px 10px rgba(156, 39, 176, 0.3);
}

.section-line {
    width: 120px;
    height: 6px;
    background: linear-gradient(90deg, #9C27B0, #03A9F4);
    margin: 1rem auto;
    border-radius: 4px;
}

.intro-text {
    font-size: 1.2rem;
    color: #ccc;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.8;
}

/* Facilities Section - Updated */
.facilities-section {
    padding: 4rem 0;
    background: rgba(10, 15, 29, 0.5);
}

.facilities-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.facilities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2.5rem;
    margin-top: 2rem;
}

.facility-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
    padding: 2.5rem 2rem;
    border-radius: 20px;
    text-align: center;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(156, 39, 176, 0.2);
    backdrop-filter: blur(10px);
    opacity: 1;
    transform: translateY(0);
}

.facility-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.facility-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(156, 39, 176, 0.2);
    border-color: rgba(156, 39, 176, 0.4);
}

/* تحسينات الصور للجوال */
.facility-image {
    position: relative;
    height: 200px;
    overflow: hidden;
    border-radius: 15px;
    margin-bottom: 2rem;
    background: linear-gradient(135deg, #9C27B0, #03A9F4);
}

.facility-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
    loading: lazy;
}

.facility-card:hover .facility-image img {
    transform: scale(1.05);
}

.facility-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(156, 39, 176, 0.4), rgba(3, 169, 244, 0.4));
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.3;
    transition: opacity 0.4s ease;
}

.facility-card:hover .facility-overlay {
    opacity: 0.8;
}

.facility-overlay i {
    font-size: 4rem;
    color: white;
}

.facility-title {
    font-size: 1.8rem;
    color: #FFC107;
    margin-bottom: 1.5rem;
    text-align: center;
}

.facility-description {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #e0e0e0;
    margin-bottom: 2rem;
    text-align: center;
}

.facility-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 2rem;
}

.feature {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    transition: all 0.3s ease;
    text-align: center;
}

.feature:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-3px);
}

.feature i {
    color: #9C27B0;
    font-size: 1.5rem;
}

.feature span {
    color: #e0e0e0;
    font-size: 0.9rem;
    font-weight: 500;
}

.facility-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.btn-primary {
    padding: 1rem 2rem;
    background: linear-gradient(135deg, #9C27B0, #7B1FA2);
    color: white;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #FFC107, #FFA000);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 193, 7, 0.4);
}

.btn-secondary {
    padding: 0.8rem 1.5rem;
    background: transparent;
    color: #9C27B0;
    border: 2px solid #9C27B0;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.btn-secondary:hover {
    background: #9C27B0;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(156, 39, 176, 0.4);
}

/* قسم المعلومات الإضافية */
.facilities-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 4rem;
    padding-top: 3rem;
    border-top: 2px solid rgba(255, 255, 255, 0.1);
}

.info-card {
    background: rgba(255, 255, 255, 0.05);
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    border: 1px solid rgba(156, 39, 176, 0.2);
    transition: all 0.3s ease;
}

.info-card:hover {
    transform: translateY(-5px);
    border-color: #9C27B0;
    box-shadow: 0 10px 25px rgba(156, 39, 176, 0.2);
}

.info-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #9C27B0, #03A9F4);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}

.info-icon i {
    font-size: 1.5rem;
    color: white;
}

.info-card h4 {
    color: #FFC107;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.info-card p {
    color: #e0e0e0;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

/* بديل الصور - إضافة إلى CSS */
.facility-image.icon-only {
    background: linear-gradient(135deg, #9C27B0, #7B1FA2);
    display: flex;
    align-items: center;
    justify-content: center;
}

.facility-image.icon-only .facility-overlay {
    opacity: 1;
    background: transparent;
}

.facility-image.icon-only .facility-overlay i {
    font-size: 4rem;
    opacity: 0.9;
}

/* ألوان مختلفة لكل منشأة */
.facility-card[data-facility="kids-lab"] .facility-image.icon-only {
    background: linear-gradient(135deg, #FF9800, #F57C00);
}

.facility-card[data-facility="robotics-club"] .facility-image.icon-only {
    background: linear-gradient(135deg, #2196F3, #1976D2);
}

.facility-card[data-facility="training-halls"] .facility-image.icon-only {
    background: linear-gradient(135deg, #4CAF50, #388E3C);
}

.facility-card[data-facility="entertainment-hall"] .facility-image.icon-only {
    background: linear-gradient(135deg, #E91E63, #C2185B);
}

.facility-card[data-facility="digitalization-hall"] .facility-image.icon-only {
    background: linear-gradient(135deg, #9C27B0, #7B1FA2);
}

/* تأثيرات تحسين UX للصور */
.facility-image.loading {
    background: linear-gradient(90deg, #2a2a2a 25%, #3a3a3a 50%, #2a2a2a 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

.facility-image .image-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.1);
    color: white;
    font-size: 3rem;
}

/* ضمان عرض الصور بشكل صحيح على الجوال */
@media (max-width: 768px) {
    .facility-image {
        height: 180px;
        margin-bottom: 1.5rem;
    }
    
    .facility-image img {
        object-fit: cover;
        width: 100%;
    }
    
    .facility-image.icon-only .facility-overlay i {
        font-size: 3rem;
    }
}

@media (max-width: 576px) {
    .facility-image {
        height: 150px;
        margin-bottom: 1rem;
    }
    
    /* بديل إذا كانت الصور لا تظهر */
    .facility-image:before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: linear-gradient(135deg, #9C27B0, #03A9F4);
        z-index: 1;
        display: none; /* سيتم تفعيله عبر JS إذا لم توجد صورة */
    }
    
    .facility-image.fallback-bg:before {
        display: block;
    }
    
    .facility-image.fallback-bg .facility-overlay {
        z-index: 2;
    }
    
    .facility-image.icon-only .facility-overlay i {
        font-size: 2.5rem;
    }
}

/* تحسينات إضافية للشاشات الصغيرة */
@media (max-width: 400px) {
    .facility-image {
        height: 130px;
    }
    
    .facility-overlay i {
        font-size: 2rem;
    }
    
    .facility-image.icon-only .facility-overlay i {
        font-size: 2rem;
    }
}

/* Footer - Updated Design */
.footer {
    background: linear-gradient(135deg, rgba(10, 15, 29, 0.9), rgba(25, 30, 44, 0.7));
    color: #fff;
    padding: 2rem 0 0 0;
    position: relative;
    width: 100%;
    margin-top: auto;
    box-shadow: inset 0 -2px 10px rgba(0, 0, 0, 0.5);
    border-top: 1px solid rgba(156, 39, 176, 0.2);
    z-index: 10;
    text-align: right;
    direction: rtl;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    padding: 0 2rem 2rem 2rem;
}

.footer-section {
    padding: 1rem;
    text-align: right;
    direction: rtl;
}

.footer-section h3 {
    font-size: 1.3rem;
    color: #9C27B0;
    margin-bottom: 1rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-section h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 50px;
    height: 2px;
    background: #9C27B0;
}

/* Logo and Social Media Section */
.logo-social-section {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
    text-align: right;
}

.footer-logo img {
    filter: brightness(0) invert(1);
    transition: filter 0.3s ease;
    width: 150px;
    height: auto;
}

.footer-logo:hover img {
    filter: brightness(0.8) invert(0.9);
}

/* Social Media Buttons */
.example-2 {
    list-style: none;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 1rem;
    margin: 0;
    padding: 0;
}

.example-2 .icon-content {
    margin: 0 5px;
    position: relative;
}

.example-2 .icon-content .tooltip {
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    color: #fff;
    padding: 6px 10px;
    border-radius: 15px;
    opacity: 0;
    visibility: hidden;
    font-size: 14px;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.example-2 .icon-content:hover .tooltip {
    opacity: 1;
    visibility: visible;
    top: -50px;
}

.example-2 .icon-content a {
    position: relative;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 50px;
    height: 50px;
    border-radius: 20%;
    color: #4d4d4d;
    background-color: #fff;
    transition: all 0.3s ease-in-out;
    text-decoration: none;
}

.example-2 .icon-content a:hover {
    box-shadow: 3px 2px 45px 0px rgb(0 0 0 / 50%);
}

.example-2 .icon-content a i,
.example-2 .icon-content a .x-icon {
    position: relative;
    z-index: 1;
    font-size: 1.5rem;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.example-2 .icon-content a:hover {
    color: white;
}

.example-2 .icon-content a .filled {
    position: absolute;
    top: auto;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 0;
    background-color: #000;
    transition: all 0.3s ease-in-out;
}

.example-2 .icon-content a:hover .filled {
    height: 100%;
}

.example-2 .icon-content a[data-social="x"] .filled,
.example-2 .icon-content a[data-social="x"] ~ .tooltip {
    background-color: #000000;
}

.example-2 .icon-content a[data-social="x"]:hover .filled {
    background-color: #000000;
}

.example-2 .icon-content a[data-social="x"]:hover .x-icon {
    color: #ffffff;
}

.example-2 .icon-content a[data-social="x"]:hover {
    background-color: #000000;
}

.example-2 .icon-content a[data-social="x"] {
    background-color: #ffffff;
}

.example-2 .icon-content a[data-social="x"] .x-icon {
    color: #000000;
    transition: color 0.3s ease-in-out;
}

.example-2 .icon-content a[data-social="x"]:hover ~ .tooltip {
    background-color: #000000;
    color: #ffffff;
}

.example-2 .icon-content a[data-social="instagram"] .filled,
.example-2 .icon-content a[data-social="instagram"] ~ .tooltip {
    background-color: #E4405F;
}

.example-2 .icon-content a[data-social="youtube"] .filled,
.example-2 .icon-content a[data-social="youtube"] ~ .tooltip {
    background-color: #CD201F;
}

.example-2 .icon-content a[data-social="snapchat"] .filled,
.example-2 .icon-content a[data-social="snapchat"] ~ .tooltip {
    background-color: #FFFC00;
}

/* Programmers Section */
.programmers-section {
    margin-top: 1rem;
    text-align: right;
}

.programmers-section h4 {
    font-size: 1.2rem;
    color: #9C27B0;
    margin-bottom: 1rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.programmers-section h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, #9C27B0, transparent);
}

.programmers-list {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.programmer-link {
    color: #FFC107;
    text-decoration: none;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    padding: 0.8rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.programmer-link:hover {
    color: #03A9F4;
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Map Section */
.map-section iframe {
    width: 100%;
    height: 200px;
    border: none;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* Contact Information Section */
.contact-info p {
    font-size: 1rem;
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    justify-content: flex-start;
    text-align: right;
}

.contact-info i {
    color: #9C27B0;
}

/* Contact Form Section */
.contact-form-section .contact-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-form input,
.contact-form textarea {
    padding: 0.8rem;
    border: 1px solid #9C27B0;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-family: 'Cairo', sans-serif;
    font-size: 0.95rem;
    width: 100%;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: #FFC107;
    background: rgba(255, 255, 255, 0.15);
}

.contact-form textarea {
    resize: vertical;
    min-height: 80px;
}

.contact-form .submit-btn {
    padding: 0.8rem;
    background: #9C27B0;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.contact-form .submit-btn:hover {
    background: #FFC107;
    transform: translateY(-2px);
}

/* Footer Copyright */
.footer-copyright {
    background: rgba(0, 0, 0, 0.2);
    padding: 1rem;
    font-size: 0.9rem;
    color: #ccc;
    text-align: center;
    direction: rtl;
}

/* Working Hours Section in Footer */
.working-hours-section {
    text-align: right;
}

.working-hours-section h3 {
    font-size: 1.3rem;
    color: #9C27B0;
    margin-bottom: 1rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.working-hours-section h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 50px;
    height: 2px;
    background: #9C27B0;
}

.working-hours .section-heading {
    color: #9C27B0;
    margin-bottom: 1rem;
    font-size: 1.4rem;
    border-top: 2px solid #9C27B0;
    padding-top: 0.5rem;
    display: inline-block;
}

.working-hours p {
    color: #e8ecef;
    margin-bottom: 0.8rem;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    justify-content: flex-start;
    text-align: right;
}

.working-hours i {
    color: #03A9F4;
    width: 20px;
}

/* Chatbot Styles */
.chatbot-container {
    position: fixed;
    bottom: 80px;
    right: 20px;
    width: 350px;
    max-height: 500px;
    background: rgba(10, 15, 29, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    display: none;
    flex-direction: column;
    z-index: 2000;
}

.chatbot-container.active {
    display: flex;
}

.chatbot-header {
    background: linear-gradient(135deg, #9C27B0, #7B1FA2);
    padding: 1rem;
    border-radius: 15px 15px 0 0;
    color: #fff;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chatbot-close {
    background: none;
    border: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
}

.chatbot-messages {
    flex: 1;
    padding: 1rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.chatbot-message {
    max-width: 80%;
    padding: 0.8rem;
    border-radius: 10px;
    font-size: 0.95rem;
}

.chatbot-message.bot {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    align-self: flex-start;
}

.chatbot-message.user {
    background: #9C27B0;
    color: #fff;
    align-self: flex-end;
}

.chatbot-input {
    display: flex;
    gap: 0.5rem;
    padding: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.chatbot-input input {
    flex: 1;
    padding: 0.8rem;
    border: 1px solid #9C27B0;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-family: 'Cairo', sans-serif;
}

.chatbot-input input:focus {
    outline: none;
    border-color: #FFC107;
}

.chatbot-input button {
    padding: 0.8rem 1.2rem;
    background: #9C27B0;
    color: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.chatbot-input button:hover {
    background: #FFC107;
}

.chatbot-toggle {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #9C27B0, #7B1FA2);
    border-radius: 50%;
    border: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(156, 39, 176, 0.4);
    z-index: 2000;
    transition: all 0.3s ease;
}

.chatbot-toggle:hover {
    background: linear-gradient(135deg, #FFC107, #FFA000);
    transform: scale(1.1);
}

/* ===== جرس الإشعارات - أضف هذا في كل CSS ===== */
.notification-bell { position: relative; cursor: pointer; }
.notification-count {
    position: absolute; top: -8px; right: -8px; background: #ff4444; color: white;
    border-radius: 50%; width: 20px; height: 20px; display: flex; align-items: center;
    justify-content: center; font-size: 12px; font-weight: bold; animation: pulse 2s infinite;
}
@keyframes pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.1); } }

.notification-popover {
    position: fixed; top: 70px; right: 20px; width: 350px; max-height: 500px; background: #1a1a1a;
    border: 1px solid #333; border-radius: 10px; box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    z-index: 10000; display: none; flex-direction: column; overflow: hidden;
}
.notification-header {
    display: flex; justify-content: space-between; align-items: center; padding: 15px;
    background: #2a2a2a; border-bottom: 1px solid #333;
}
.mark-read-btn {
    background: #4CAF50; color: white; border: none; padding: 5px 10px; border-radius: 5px;
    cursor: pointer; font-size: 12px;
}
.notification-messages { max-height: 400px; overflow-y: auto; padding: 10px; }
.notification-message {
    padding: 12px; margin-bottom: 8px; background: #2a2a2a; border-radius: 8px;
    border-left: 3px solid #9C27B0; transition: all 0.3s ease;
}
.notification-message.unread {
    background: #333; box-shadow: 0 2px 10px rgba(156, 39, 176, 0.3);
}
.notification-message.unread::after {
    content: 'جديد'; position: absolute; top: 5px; right: 10px; background: #ff4444;
    color: white; padding: 2px 6px; border-radius: 10px; font-size: 10px;
}
.popover-close { background: none; border: none; color: #ccc; font-size: 20px; cursor: pointer; }

/* Responsive Design */
@media (max-width: 1200px) {
    .header {
        padding: 1.5rem 3%;
    }
    
    .section-header h1 {
        font-size: 2.5rem;
    }
    
    .facilities-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
}

@media (max-width: 992px) {
    .nav {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .controls {
        display: none;
    }
    
    .mobile-controls {
        display: flex;
    }
    
    .section-header h1 {
        font-size: 2.2rem;
    }
    
    .intro-text {
        font-size: 1.1rem;
    }
    
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .header {
        padding: 1rem 5%;
    }
    
    .logo {
        width: 120px;
        height: 60px;
    }
    
    .section-header h1 {
        font-size: 2rem;
    }
    
    .intro-text {
        font-size: 1rem;
    }
    
    .facilities-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .facility-card {
        padding: 2rem 1.5rem;
    }
    
    .facility-features {
        grid-template-columns: 1fr;
    }
    
    .facility-image {
        height: 180px;
    }
    
    .facility-overlay i {
        font-size: 3rem;
    }
    
    .facility-title {
        font-size: 1.6rem;
    }
    
    .facility-description {
        font-size: 1rem;
    }
    
    .facilities-info {
        grid-template-columns: 1fr;
    }
    
    .chatbot-container {
        width: 90%;
        right: 5%;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-section h3::after {
        right: 50%;
        transform: translateX(50%);
    }
    
    .logo-social-section {
        align-items: center;
    }
    
    .example-2 {
        justify-content: center;
    }
}

@media (max-width: 576px) {
    .header {
        padding: 0.8rem 3%;
    }
    
    .logo {
        width: 100px;
        height: 50px;
    }
    
    .facilities-section {
        padding: 3rem 0;
    }
    
    .section-header h1 {
        font-size: 1.8rem;
        padding: 0 1rem;
    }
    
    .intro-text {
        font-size: 0.9rem;
        padding: 0 1rem;
    }
    
    .facility-card {
        padding: 1.5rem 1rem;
    }
    
    .facility-image {
        height: 150px;
    }
    
    .facility-overlay i {
        font-size: 2.5rem;
    }
    
    .facility-title {
        font-size: 1.4rem;
    }
    
    .facility-description {
        font-size: 0.9rem;
    }
    
    .feature {
        padding: 0.8rem;
    }
    
    .feature i {
        font-size: 1.2rem;
    }
    
    .feature span {
        font-size: 0.8rem;
    }
    
    .info-card {
        padding: 1.5rem 1rem;
    }
    
    .chatbot-container {
        width: 95%;
        right: 2.5%;
        bottom: 60px;
        max-height: 400px;
    }
    
    .chatbot-header {
        font-size: 0.8rem;
        padding: 0.8rem;
    }
    
    .chatbot-messages {
        padding: 0.8rem;
        max-height: 250px;
    }
    
    .chatbot-message {
        font-size: 0.85rem;
        padding: 0.6rem;
    }
    
    .chatbot-input {
        padding: 0.8rem;
    }
    
    .chatbot-input input {
        padding: 0.6rem;
        font-size: 0.85rem;
    }
    
    .chatbot-input button {
        padding: 0.6rem 1rem;
        font-size: 0.85rem;
    }
    
    .chatbot-toggle {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
        bottom: 15px;
        right: 15px;
    }
    
    .notification-popover {
        width: 300px;
        right: 10px;
    }
}

@media (max-width: 400px) {
    .section-header h1 {
        font-size: 1.6rem;
    }
    
    .intro-text {
        font-size: 0.8rem;
    }
    
    .facilities-container {
        padding: 0 1rem;
    }
    
    .mobile-menu {
        width: 90%;
    }
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.text-right {
    text-align: right;
}

.text-left {
    text-align: left;
}

.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-3 { margin-bottom: 3rem; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }

.p-1 { padding: 1rem; }
.p-2 { padding: 2rem; }
.p-3 { padding: 3rem; }

.hidden {
    display: none !important;
}

.visible {
    display: block !important;
}

/* RTL and LTR Support */
[dir="rtl"] .nav ul {
    margin-right: 0;
}

[dir="ltr"] .nav ul {
    margin-left: 0;
}

[dir="ltr"] .facility-description {
    text-align: left;
}

[dir="ltr"] .facility-content {
    text-align: left;
}

[dir="ltr"] .feature {
    justify-content: flex-start;
}

[dir="ltr"] .footer-section {
    text-align: left;
}

[dir="ltr"] .contact-info p {
    justify-content: flex-start;
}

[dir="ltr"] .programmer-link {
    justify-content: flex-start;
}

/* Responsive adjustments for LTR */
@media (max-width: 768px) {
    [dir="ltr"] .nav ul {
        text-align: left;
    }
    
    [dir="ltr"] .facility-features {
        justify-items: flex-start;
    }
}