/* تنسيق أساسي لضمان التناسق مع باقي الصفحات */
:root {
    --primary-color: #007bff; /* أزرق أساسي */
    --secondary-color: #28a745; /* أخضر للدعوة للعمل */
    --text-color: #333;
    --light-bg: #f8f9fa;
    --dark-bg: #343a40;
    --white: #ffffff;
    --card-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}

/* إعادة تعيين/أساسيات متطابقة */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Cairo', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    direction: rtl; 
    background-color: var(--white);
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 0;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: color 0.3s;
}

a:hover {
    color: var(--secondary-color);
}

h2 {
    font-size: 2.2rem;
    color: var(--primary-color);
    margin-bottom: 10px;
    text-align: center;
}

.section-subtitle {
    font-size: 1.1rem;
    color: #6c757d;
    margin-bottom: 40px;
    text-align: center;
}

.btn {
    display: inline-block;
    padding: 10px 25px;
    margin-top: 15px;
    border-radius: 50px;
    font-weight: 700;
    text-align: center;
    transition: background-color 0.3s, color 0.3s, transform 0.2s;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
}

.btn-primary:hover {
    background-color: #0056b3;
    transform: translateY(-2px);
}

/* شريط الأخبار العلوي News Ticker - متطابق */
.news-ticker {
    background-color: var(--secondary-color);
    color: var(--white);
    padding: 5px 0;
    overflow: hidden;
    white-space: nowrap;
}

.ticker-content {
    display: inline-block;
    padding-right: 100%;
    animation: ticker-move 30s linear infinite;
}

.ticker-content span {
    margin-left: 50px;
    display: inline-block;
}

@keyframes ticker-move {
    0% { transform: translateX(0); }
    100% { transform: translateX(100%); }
}

/* رأس الصفحة Header - متطابق */
header {
    background-color: var(--white);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    padding: 10px 0;
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
}

.logo-container {
    display: flex;
    align-items: center;
}

.logo-img {
    width: 50px;
    height: 50px;
    margin-left: 10px;
}

.logo-text h1 {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin: 0;
    line-height: 1;
}

.logo-text span {
    font-size: 0.9rem;
    color: var(--text-color);
    display: block;
}

nav {
    display: flex;
    align-items: center;
}

.nav-menu {
    list-style: none;
    display: flex;
    gap: 20px;
    margin: 0;
    padding: 0;
}

.nav-menu a {
    color: var(--text-color);
    padding: 8px 15px;
    display: block;
    font-weight: 700;
    border-radius: 5px;
}

.nav-menu a:hover,
.nav-menu a.active {
    background-color: var(--primary-color);
    color: var(--white);
}

.dropdown {
    position: relative;
}

.dropbtn i {
    font-size: 0.8rem;
    margin-right: 5px;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: var(--white);
    min-width: 160px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1;
    right: 0; /* ليتناسب مع RTL */
}

.dropdown-content a {
    color: var(--text-color);
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    text-align: right;
    font-weight: 400;
}

.dropdown-content a:hover {
    background-color: var(--light-bg);
}

.dropdown:hover .dropdown-content {
    display: block;
}

.menu-toggle {
    display: none;
}

/* --- تنسيق صفحة الاتصال styleContact.css يبدأ هنا --- */

/* قسم البطل Hero Section */
.contact-hero {
    background-color: var(--primary-color);
    color: var(--white);
    text-align: center;
    padding: 80px 20px;
    min-height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-hero h1 {
    font-size: 2.8rem;
    margin-bottom: 10px;
}

.contact-hero p {
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
    opacity: 0.9;
}

/* قسم تفاصيل الاتصال (Contact Details) */
.contact-details-section {
    padding: 60px 0;
    background-color: var(--light-bg);
}

.contact-details-grid {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 20px;
}

.contact-item {
    background-color: var(--white);
    padding: 30px 20px;
    border-radius: 10px;
    box-shadow: var(--card-shadow);
    flex: 1 1 250px; /* 4 أعمدة في السطر على الشاشات الكبيرة */
    text-align: center;
    transition: transform 0.3s;
    border-top: 5px solid var(--secondary-color);
}

.contact-item:hover {
    transform: translateY(-5px);
}

.contact-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.contact-item h3 {
    font-size: 1.3rem;
    color: var(--text-color);
    margin-bottom: 10px;
}

.contact-value {
    font-size: 1.1rem;
    font-weight: 700;
    color: #555;
    margin-bottom: 15px;
}

.detail-link {
    display: inline-block;
    padding: 5px 15px;
    border: 1px solid var(--primary-color);
    border-radius: 5px;
    font-size: 0.9rem;
    font-weight: 700;
    transition: background-color 0.3s;
}

.detail-link:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

/* قسم نموذج الاتصال (Contact Form) */
.contact-form-section {
    padding: 60px 0;
}

.contact-form {
    max-width: 700px;
    margin: 0 auto;
    padding: 30px;
    background-color: var(--white);
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    border-right: 5px solid var(--primary-color);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-color);
}

.form-group label i {
    margin-left: 8px;
    color: var(--primary-color);
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1rem;
    font-family: 'Cairo', sans-serif;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 5px rgba(0, 123, 255, 0.5);
    outline: none;
}

.contact-form textarea {
    resize: vertical;
}

.form-submit-btn {
    width: 100%;
    padding: 15px;
    font-size: 1.1rem;
    margin-top: 10px;
}

/* قسم التواصل الاجتماعي (Social CTA) */
.social-cta-section {
    background-color: #e9ecef;
    padding: 40px 0;
    text-align: center;
}

.social-links-big {
    margin-top: 30px;
    display: flex;
    justify-content: center;
    gap: 20px;
}

.social-icon {
    font-size: 1.5rem;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    transition: transform 0.3s, opacity 0.3s;
}

.social-icon:hover {
    transform: translateY(-3px) scale(1.05);
    opacity: 0.9;
}

.facebook { background-color: #3b5998; }
.twitter { background-color: #00acee; }
.instagram { background-color: #c13584; }
.linkedin { background-color: #0077b5; }


/* التذييل Footer - متطابق */
footer {
    background-color: var(--dark-bg);
    color: var(--white);
    padding: 40px 0 10px;
    font-size: 0.9rem;
    text-align: right;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 30px;
    padding-bottom: 20px;
}

.footer-section {
    flex: 1 1 200px;
}

.footer-section h4 {
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 10px;
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section ul li a {
    color: #ccc;
    display: block;
    padding: 5px 0;
}

.footer-section ul li a:hover {
    color: var(--primary-color);
}

.social-links a {
    color: var(--white);
    font-size: 1.2rem;
    margin-left: 15px;
}

.social-links a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid #444;
    padding-top: 10px;
    margin-top: 20px;
}

/* Responsive Design */
@media (max-width: 992px) {
    .contact-details-grid {
        justify-content: center;
    }
    .contact-item {
        flex: 1 1 calc(50% - 30px);
    }
    .footer-content {
        justify-content: center;
        text-align: center;
    }
}

@media (max-width: 768px) {
    /* تنسيق الهيدر */
    header {
        justify-content: space-between;
        padding: 10px 20px;
    }
    .nav-menu {
        display: none;
        flex-direction: column;
        width: 100%;
        background-color: var(--white);
        position: absolute;
        top: 70px; 
        right: 0;
        box-shadow: 0 5px 5px rgba(0, 0, 0, 0.1);
        z-index: 99;
    }
    .nav-menu.active {
        display: flex;
    }
    .nav-menu li {
        text-align: center;
        width: 100%;
        border-top: 1px solid var(--light-bg);
    }
    .menu-toggle {
        display: block;
        background: none;
        border: none;
        font-size: 1.5rem;
        cursor: pointer;
        color: var(--primary-color);
    }
    
    .contact-details-section h2 {
        font-size: 1.8rem;
    }
    .contact-item {
        flex: 1 1 100%;
    }
}