/* --- الإعدادات العامة والمتغيرات --- */
:root {
    --dark-bg: #03001C;
    --primary-color: #0a4d68;
    --secondary-color: #B6EADA;
    --mauve-color: #c5a9c2;
    --text-color: #f0f8ff;
    --heading-color: #ffffff;
    --font-family: 'Tajawal', sans-serif;
}
html {
    scroll-behavior: smooth;
    scroll-padding-top: 70px;
}
body {
    background-color: var(--dark-bg);
    color: var(--text-color);
    font-family: var(--font-family);
    margin: 0;
    padding-top: 70px;
}
body.mobile-nav-is-open {
    overflow: hidden;
}
#particles-js {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: -1;
}
h1, h2, h3 {
    color: var(--heading-color);
    font-weight: 700;
}
h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 50px;
    margin-top: 0;
    position: relative;
}
h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background-color: var(--mauve-color);
    margin: 15px auto 0;
}
p {
    line-height: 1.8;
    font-size: 1.1rem;
}
a {
    color: var(--secondary-color);
    text-decoration: none;
}
.section-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}
.content-section {
    padding: 80px 0;
}
.content-section.alt-bg {
    background-color: rgba(10, 77, 104, 0.1);
}
.text-center {
    text-align: center;
}

/* --- القائمة العلوية --- */
.site-header {
    background-color: rgba(3, 0, 28, 0.9);
    backdrop-filter: blur(10px);
    padding: 0 20px;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    border-bottom: 1px solid rgba(10, 77, 104, 0.5);
}
.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    height: 70px;
}
.logo a {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--heading-color);
}
.main-nav {
    display: flex;
    gap: 5px;
}
.main-nav a {
    color: var(--text-color);
    padding: 10px 12px;
    font-weight: 500;
    transition: color 0.3s;
    font-size: 0.9rem;
}
.main-nav a:hover {
    color: var(--mauve-color);
}
.header-right {
    display: flex;
    align-items: center;
    gap: 20px;
}
.lang-switcher a {
    border: 1px solid var(--secondary-color);
    padding: 5px 12px;
    border-radius: 20px;
    transition: all 0.3s;
    font-size: 0.9rem;
}
.lang-switcher a:hover {
    background-color: var(--secondary-color);
    color: var(--dark-bg);
}
.mobile-menu-toggle {
    display: none;
}

/* --- القسم الرئيسي (Hero) --- */
.hero-section {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: calc(85vh - 70px);
    padding: 40px 20px;
}
.hero-content h1 {
    font-size: 3.5rem;
    text-shadow: 0 0 15px rgba(197, 169, 194, 0.5);
}
.hero-content p {
    font-size: 1.3rem;
    max-width: 700px;
    margin: 20px auto 40px;
    opacity: 0.9;
}
.cta-container {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}
.cta-button {
    padding: 12px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    color: var(--dark-bg);
    background-color: var(--mauve-color);
    border: 2px solid var(--mauve-color);
    transition: all 0.3s ease;
    margin: 5px 10px;
    display: inline-block;
}
.cta-button.alt {
    background: transparent;
    color: var(--mauve-color);
}
.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(197, 169, 194, 0.4);
}
.cta-button.alt:hover {
    background-color: var(--mauve-color);
    color: var(--dark-bg);
}

/* --- قسم عن الشريف --- */
.about-layout-new {
    text-align: center;
}
.about-image-new {
    max-width: 250px;
    margin: 0 auto 30px;
}
.about-image-new img {
    width: 100%;
    border-radius: 50%;
    border: 5px solid var(--primary-color);
    box-shadow: 0 0 25px rgba(10, 77, 104, 0.5);
}
.about-text-new {
    max-width: 700px;
    margin: 0 auto;
}
.about-text-new h2 {
    font-size: 2.5rem;
}

/* --- قسم الخدمات --- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}
.service-card {
    text-align: center;
    background-color: rgba(10, 77, 104, 0.2);
    padding: 30px;
    border-radius: 8px;
    border: 1px solid rgba(10, 77, 104, 0.5);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.service-card:hover {
    transform: translateY(-5px);
    border-color: var(--mauve-color);
}
.service-card h3 {
    margin-top: 0;
    color: var(--secondary-color);
    flex-grow: 1;
}
.service-card .read-more {
    display: inline-block;
    margin-top: 15px;
    padding: 8px 20px;
    border: 1px solid var(--secondary-color);
    border-radius: 20px;
    transition: all 0.3s;
    font-weight: bold;
}
.service-card:hover .read-more {
    background-color: var(--secondary-color);
    color: var(--dark-bg);
}

/* --- قسم صورة المقر --- */
.office-image-container-static {
    max-width: 900px;
    margin: 0 auto;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid rgba(10, 77, 104, 0.5);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}
.office-image-container-static img {
    width: 100%;
    display: block;
    opacity: 0.6;
}

/* --- قسم التواصل والخرائط --- */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
}
.map-container iframe {
    border-radius: 8px;
    width:100%;
    height:100%;
    min-height:350px;
}
.contact-info .contact-buttons {
    margin-top: 25px;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

/* --- أنماط الصفحات الداخلية --- */
.page-wrapper {
    min-height: 60vh;
    padding: 80px 0;
}
.page-content-full {
    background-color: rgba(10, 77, 104, 0.2);
    padding: 30px 40px;
    border-radius: 8px;
    border: 1px solid rgba(10, 77, 104, 0.5);
    margin-top: 30px;
}
.page-content-full p, 
.page-content-full li {
    font-size: 1.1rem;
    line-height: 1.9;
}
.page-content-full img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 20px 0;
}

/* --- تصميم أزرار التواصل والمشاركة داخل الصفحات --- */
.page-footer-cta {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid rgba(10, 77, 104, 0.5);
    text-align: center;
}
.page-footer-cta h3 {
    font-size: 1.5rem;
    margin-bottom: 25px;
}
.page-footer-cta .cta-button {
    margin-bottom: 30px;
}
.social-share {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
}
.social-share span {
    font-size: 1.1rem;
    font-weight: 500;
}
.share-btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: #fff !important;
    font-size: 1.2rem;
    font-weight: bold;
    text-decoration: none;
    transition: transform 0.3s, opacity 0.3s;
}
.share-btn:hover {
    transform: scale(1.1);
    opacity: 0.9;
}
.share-btn.facebook {
    background-color: #1877F2;
}
.share-btn.twitter {
    background-color: #1DA1F2;
}
.share-btn.whatsapp {
    background-color: #25D366;
}

/* --- تصميم نموذج الاتصال --- */
.contact-form .form-group {
    margin-bottom: 20px;
}
.contact-form label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}
.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="tel"],
.contact-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--primary-color);
    border-radius: 5px;
    background-color: rgba(10, 77, 104, 0.2);
    color: var(--text-color);
    font-family: inherit;
    font-size: 1rem;
}
.contact-form button {
    cursor: pointer;
}

/* --- الفوتر الاحترافي الجديد --- */
.site-footer-main {
    background-color: #020014;
    padding: 60px 0 0;
    font-size: 0.95rem;
    border-top: 2px solid var(--primary-color);
}
.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    padding-bottom: 40px;
}
.footer-widget h4 {
    color: var(--secondary-color);
    font-size: 1.3rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}
.footer-widget h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 40px;
    height: 2px;
    background-color: var(--mauve-color);
}
html[dir="ltr"] .footer-widget h4::after {
    right: auto;
    left: 0;
}
.footer-widget ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
}
.footer-widget ul li {
    margin-bottom: 12px;
}
.footer-widget ul a {
    color: var(--text-color);
    transition: color 0.3s;
}
.footer-widget ul a:hover {
    color: var(--mauve-color);
}
.footer-widget p {
    color: #a9a9a9;
    line-height: 1.7;
}
.footer-widget p a {
    color: var(--secondary-color);
    font-weight: bold;
}
.footer-bottom {
    border-top: 1px solid rgba(10, 77, 104, 0.5);
    padding: 20px 0;
    text-align: center;
    font-size: 0.9rem;
}
.footer-bottom p {
    margin: 5px 0;
    color: #a9a9a9;
}


/* === ** التصميم المتجاوب النهائي ** === */
@media (max-width: 1024px) {
    .main-nav {
        display: none;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 0;
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        height: calc(100vh - 70px);
        background-color: rgba(3, 0, 28, 0.98);
        z-index: 999;
    }
    .main-nav.is-open {
        display: flex;
    }
    .main-nav a {
        font-size: 1.8rem;
        padding: 20px 0;
        width: 100%;
        text-align: center;
    }
    .mobile-menu-toggle {
        display: flex;
        flex-direction: column;
        justify-content: space-around;
        width: 30px;
        height: 25px;
        background: transparent;
        border: none;
        cursor: pointer;
        padding: 0;
        z-index: 1000;
    }
    .mobile-menu-toggle span {
        width: 30px;
        height: 3px;
        background-color: var(--text-color);
        border-radius: 10px;
        transition: all 0.3s ease-in-out;
        position: relative;
        transform-origin: 1px;
    }
    body.mobile-nav-is-open .mobile-menu-toggle span:nth-child(1) {
        transform: rotate(45deg);
    }
    body.mobile-nav-is-open .mobile-menu-toggle span:nth-child(2) {
        opacity: 0;
        transform: translateX(20px);
    }
    body.mobile-nav-is-open .mobile-menu-toggle span:nth-child(3) {
        transform: rotate(-45deg);
    }
}

@media (max-width: 768px) {
    .contact-grid { grid-template-columns: 1fr; }
    .footer-widget {
        text-align: center;
    }
    .footer-widget h4::after {
        right: 50%;
        transform: translateX(50%);
    }
    html[dir="ltr"] .footer-widget h4::after {
        left: 50%;
        transform: translateX(-50%);
    }
    h2 { font-size: 2rem; }
    .hero-content h1 { font-size: 2.5rem; }
    .hero-content p { font-size: 1.1rem; }
    .about-image-new { max-width: 200px; }
}
/* --- تصميم نموذج الاتصال --- */
.contact-form .form-group {
    margin-bottom: 20px;
}
.contact-form label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}
.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="tel"],
.contact-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--primary-color);
    border-radius: 5px;
    background-color: rgba(10, 77, 104, 0.2);
    color: var(--text-color);
    font-family: inherit;
    font-size: 1rem;
}
.contact-form button {
    cursor: pointer;
}
/* --- قسم أوقات العمل --- */
.working-hours-list {
    max-width: 600px;
    margin: 0 auto;
    background-color: rgba(10, 77, 104, 0.2);
    border: 1px solid rgba(10, 77, 104, 0.5);
    border-radius: 8px;
    padding: 10px 30px;
    font-size: 1.1rem;
}
.working-hours-list ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
}
.working-hours-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid rgba(10, 77, 104, 0.3);
    transition: all 0.3s;
}
.working-hours-list li:last-child {
    border-bottom: none;
}
.working-hours-list li.today {
    color: var(--secondary-color);
    font-weight: bold;
    transform: scale(1.05);
    background-color: rgba(182, 234, 218, 0.05);
}
.working-hours-list .day {
    flex-basis: 40%;
}
.working-hours-list .time {
    flex-basis: 60%;
    direction: ltr;
    text-align: right;
    font-weight: 500;
}
html[dir="ltr"] .working-hours-list .time {
    text-align: left;
}
.working-hours-list .time.closed {
    color: #e74c3c; /* Red color for "Closed" */
    font-weight: bold;
}