:root {
    --primary-color: #10375c; /* لون أزرق داكن أعمق */
    --accent-color: #e3a72f;  /* ذهبي أكثر إشراقاً */
    --light-bg: #f9f9f9;
    --dark-text: #1a1a1a;
    --medium-text: #555555;
    --white-text: #FFFFFF;
    --navbar-bg: var(--primary-color);
    --navbar-text-color: var(--white-text);
    --navbar-hover-color: var(--accent-color);
    --navbar-active-color: var(--accent-color);
    --font-family-base: 'Cairo', sans-serif;
    --box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
    --border-radius: 8px;
    --transition-speed: 0.3s;
    --main-color: #fbb034;
    --dark-gray: #222;
    --light-gray: #f7f7f7;
}

body {
    font-family: var(--font-family-base);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    color: var(--dark-text);
    background-color: var(--light-bg);
    line-height: 1.6;
}

main {
    flex: 1;
}

.navbar-brand-logo {
    max-height: 45px;
    margin-right: 10px;
}

/* تحسين شريط التنقل */
.navbar {
    background-color: var(--navbar-bg) !important;
    padding: 0.8rem 1rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar .navbar-brand,
.navbar .nav-link {
    color: var(--navbar-text-color) !important;
    transition: color var(--transition-speed) ease;
    font-weight: 500;
    padding: 0.5rem 1rem;
}

.navbar .nav-link:hover,
.navbar .navbar-brand:hover {
    color: var(--navbar-hover-color) !important;
    transform: translateY(-2px);
}

.navbar .nav-link.active {
    color: var(--navbar-active-color) !important;
    font-weight: bold;
    border-bottom: 2px solid var(--navbar-active-color);
}

.navbar-toggler {
    border-color: rgba(255, 255, 255, 0.5);
    padding: 0.25rem 0.5rem;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.8%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* تحسين القسم الرئيسي */
.hero-section {
    background: linear-gradient(rgba(0,0,0,0.4),rgba(0,0,0,0.4)), url('includes/rebuild-bg.jpg') center/cover no-repeat;
    color: #fff;
    padding: 7rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
    margin-top: -1.5rem; /* للتخلص من الفجوة بين الناف بار والهيرو */
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('https://via.placeholder.com/1600x800'); /* يمكن استبدالها بصورة مناسبة */
    background-size: cover;
    background-position: center;
    opacity: 0.1;
    z-index: 0;
}

.hero-section .container {
    position: relative;
    z-index: 1;
}

.hero-section h1 {
    font-size: 3.2rem;
    font-weight: 700;
    margin-bottom: 1.8rem;
    color: var(--white-text);
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
    animation: fadeInDown 1.2s ease;
}

.hero-section .lead {
    font-size: 1.5rem;
    margin-bottom: 2.5rem;
    color: rgba(255, 255, 255, 0.9);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    animation: fadeInUp 1.2s ease;
}

.hero-section .btn {
    padding: 0.8rem 2rem;
    font-weight: 600;
    margin: 0 0.5rem 1rem 0.5rem;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all var(--transition-speed) ease;
    animation: fadeIn 1.5s ease;
}

.hero-section .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

/* تحسين أقسام الخدمات */
.services-overview {
    padding: 5rem 0;
    background-color: #fff;
}

.services-overview h2 {
    margin-bottom: 3rem;
    position: relative;
    padding-bottom: 1rem;
    text-align: center;
    animation: fadeIn 1s ease;
}

.services-overview h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 70px;
    height: 3px;
    background-color: var(--accent-color);
}

.services-overview .card {
    border: none;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: transform var(--transition-speed) ease, 
                box-shadow var(--transition-speed) ease;
    height: 100%;
    animation: fadeInUp 0.8s ease;
}

.services-overview .card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.15);
}

.services-overview .card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background-color: var(--accent-color);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform var(--transition-speed) ease;
}

.services-overview .card:hover::before {
    transform: scaleX(1);
    transform-origin: left;
}

.services-overview .card-body {
    padding: 2rem 1.5rem;
}

.services-overview .card-title {
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 1rem;
}

.services-overview .card-text {
    margin-bottom: 1.5rem;
    color: var(--medium-text);
}

.services-overview .btn-outline-primary {
    border-radius: 50px;
    padding: 0.5rem 1.5rem;
    font-weight: 500;
    transition: all var(--transition-speed) ease;
}

.services-overview .btn-outline-primary:hover {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
    transform: translateY(-3px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* تحسين قسم لماذا تختارنا */
.why-choose-us {
    background-color: #f1f5f9;
    padding: 5rem 0;
    position: relative;
}

.why-choose-us::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('https://via.placeholder.com/1600x800');
    background-size: cover;
    background-position: center;
    opacity: 0.05;
    z-index: 0;
}

.why-choose-us .container {
    position: relative;
    z-index: 1;
}

.why-choose-us h2 {
    margin-bottom: 1rem;
    position: relative;
    padding-bottom: 1rem;
    animation: fadeIn 1s ease;
}

.why-choose-us h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 70px;
    height: 3px;
    background-color: var(--accent-color);
}

.why-choose-us .lead {
    margin-bottom: 3rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.why-choose-us .feature-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all var(--transition-speed) ease;
}

.why-choose-us .col-md-4:hover .feature-icon {
    transform: scale(1.1) rotate(5deg);
    background-color: var(--accent-color);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.why-choose-us h4 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-weight: 600;
}

.why-choose-us p {
    color: var(--medium-text);
}

.why-choose-us .col-md-4 {
    padding: 2rem;
    transition: all var(--transition-speed) ease;
    border-radius: var(--border-radius);
    background-color: white;
    margin-bottom: 1.5rem;
    box-shadow: var(--box-shadow);
    animation: fadeInUp 0.8s ease;
}

.why-choose-us .col-md-4:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.15);
}

/* تحسين قسم دعوة للعمل */
.cta-section {
    background: linear-gradient(90deg, var(--main-color) 0%, var(--accent-color) 100%);
    color: #222;
    padding: 5rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('https://via.placeholder.com/1600x800');
    background-size: cover;
    background-position: center;
    opacity: 0.05;
    z-index: 0;
}

.cta-section .container {
    position: relative;
    z-index: 1;
}

.cta-section h2 {
    margin-bottom: 1.5rem;
    font-weight: 700;
    animation: fadeIn 1s ease;
}

.cta-section .lead {
    margin-bottom: 2.5rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.cta-section .btn-light {
    padding: 0.8rem 2rem;
    font-weight: 600;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all var(--transition-speed) ease;
    font-size: 1.1rem;
    animation: fadeIn 1.5s ease;
}

.cta-section .btn-light:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    background-color: var(--accent-color);
    color: white;
    border-color: var(--accent-color);
}

/* إضافة تأثيرات حركية */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* تحسين الأزرار */
.btn-primary {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
    color: white;
    transition: all var(--transition-speed) ease;
}

.btn-primary:hover {
    background-color: darken(var(--accent-color), 10%);
    border-color: darken(var(--accent-color), 10%);
    transform: translateY(-3px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.btn-secondary {
    background-color: rgba(255, 255, 255, 0.15);
    border: 2px solid white;
    color: white;
    transition: all var(--transition-speed) ease;
}

.btn-secondary:hover {
    background-color: white;
    color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

/* تحسين ملف الصفحة */
.container {
    max-width: 1200px;
    padding: 0 1.5rem;
}

/* الانضمامات الإضافية للموبايل */
@media (max-width: 768px) {
    .hero-section {
        padding: 5rem 0;
    }
    
    .hero-section h1 {
        font-size: 2.5rem;
    }
    
    .hero-section .lead {
        font-size: 1.2rem;
    }
    
    .services-overview, 
    .why-choose-us, 
    .cta-section {
        padding: 3rem 0;
    }
    
    .why-choose-us .col-md-4 {
        padding: 1.5rem;
    }
}

/* تحسين التذييل */
footer {
    background-color: var(--primary-color);
    color: rgba(255, 255, 255, 0.8);
    padding-top: 3rem;
}

footer a {
    color: rgba(255, 255, 255, 0.8);
    transition: color var(--transition-speed) ease;
}

footer a:hover {
    color: var(--accent-color);
    text-decoration: none;
}

footer h5 {
    color: white;
    margin-bottom: 1.5rem;
    font-weight: 600;
    position: relative;
    padding-bottom: 0.8rem;
}

footer h5::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 40px;
    height: 3px;
    background-color: var(--accent-color);
}

footer ul li {
    margin-bottom: 0.8rem;
}

footer ul li a {
    color: rgba(255, 255, 255, 0.8);
    transition: all 0.3s ease;
}

footer ul li a:hover {
    color: var(--accent-color);
    transform: translateX(-5px);
    text-decoration: none;
}

footer .contact-info li {
    display: flex;
    margin-bottom: 1rem;
}

footer .contact-info li i {
    color: var(--accent-color);
    margin-left: 0.7rem;
    font-size: 1.1rem;
    margin-top: 0.2rem;
}

footer .contact-info li p {
    margin-bottom: 0;
}

footer .social-icons a {
    display: inline-block;
    margin-left: 1rem;
    width: 36px;
    height: 36px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    text-align: center;
    line-height: 36px;
    color: white;
    transition: all 0.3s ease;
}

footer .social-icons a:first-child {
    margin-left: 0;
}

footer .social-icons a:hover {
    background-color: var(--accent-color);
    transform: translateY(-3px);
    color: white;
}

footer .footer-logo {
    max-width: 180px;
    height: auto;
}

footer .copyright-bar {
    background-color: rgba(0, 0, 0, 0.2);
    padding: 1rem 0;
}

footer .copyright-bar a {
    color: rgba(255, 255, 255, 0.8);
    transition: color 0.3s ease;
}

footer .copyright-bar a:hover {
    color: var(--accent-color);
}

/* تحسينات إضافية للتوافق مع الموبايل */
@media (max-width: 768px) {
    footer h5 {
        margin-top: 1.5rem;
    }
    
    footer .social-icons {
        margin-bottom: 1.5rem;
    }
    
    .back-to-top {
        bottom: 15px;
        right: 15px;
    }
}

/* About Page Specific Styles */
.about-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, #3B5998 100%); /* نفس تدرج قسم Hero */
    color: var(--white-text);
    padding: 4rem 0; /* حشوة مشابهة لقسم Hero */
}

.about-header h1 {
    color: var(--white-text);
    font-size: 2.8rem; /* حجم خط مناسب */
    margin-bottom: 0.5rem;
}

.about-header .lead {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.3rem;
}

.about-page-card {
    border: 1px solid #e0e0e0;
    border-top: 4px solid transparent;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-top-color 0.3s ease;
    background-color: var(--white-text);
    height: 100%; /* للتأكد من أن البطاقات بنفس الارتفاع إذا كانت في نفس الصف */
}

.about-page-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.1);
    border-top-color: var(--accent-color);
}

.about-page-card .card-title {
    color: var(--primary-color);
    font-weight: 600;
}

.about-page-card .card-title i {
    color: var(--accent-color);
    font-size: 1.5rem; /* تعديل حجم أيقونة العنوان */
}

.values-card {
    border: 1px solid #e9ecef;
    background-color: var(--white-text);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
}

.values-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 0.3rem 1rem rgba(0,0,0,0.1);
}

.values-card .card-title {
    color: var(--primary-color);
    font-size: 1.1rem;
    font-weight: 600;
}

/* End About Page Specific Styles */

/* Blog Page Specific Styles */
.article-card {
    background-color: var(--white-text);
    border: 1px solid #e9ecef;
    border-left: 4px solid transparent; /* تمييز جانبي بدلاً من علوي */
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-left-color 0.3s ease;
}

.article-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 0.4rem 1.2rem rgba(0,0,0,0.08);
    border-left-color: var(--accent-color);
}

.article-card .card-title a {
    color: var(--primary-color);
    transition: color 0.2s ease-in-out;
}

.article-card .card-title a:hover {
    color: var(--accent-color);
}

.article-meta {
    font-size: 0.85rem;
    color: var(--medium-text); /* استخدام متغير اللون */
}

.article-meta i {
    color: var(--accent-color); /* لون أيقونات الميتا داتا */
}

/* Pagination Styles */
.pagination .page-item .page-link {
    color: var(--primary-color);
}

.pagination .page-item .page-link:hover {
    background-color: #e9ecef;
    border-color: #dee2e6;
}

.pagination .page-item.active .page-link {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
    color: var(--white-text);
}

.pagination .page-item.disabled .page-link {
    color: #868e96;
}

/* End Blog Page Specific Styles */

/* Contact Page Specific Styles */
.contact-form-section,
.contact-info-section {
    background-color: var(--white-text);
    border: 1px solid #e0e0e0;
    border-radius: 0.3rem;
    /* padding and shadow-sm will come from Bootstrap classes if kept */
}

.contact-form-section h3,
.contact-info-section h3 {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 1.5rem !important; /* Override Bootstrap if needed */
}

.contact-info-section ul li h5 {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.contact-info-section ul li h5 i {
    color: var(--accent-color);
    font-size: 1.1rem; /* حجم أيقونة معلومات الاتصال */
}

.contact-info-section ul li p {
    margin-bottom: 1rem;
    color: var(--medium-text);
}

.contact-info-section ul li p a {
    color: var(--accent-color);
    text-decoration: none;
}

.contact-info-section ul li p a:hover {
    text-decoration: underline;
}

/* Styling for form elements to ensure consistency (optional, Bootstrap usually handles this well) */
.form-control:focus,
.form-select:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 0.25rem rgba(var(--accent-color-rgb, 185, 141, 74), 0.25); /* Requires --accent-color-rgb to be defined */
}

/* Define --accent-color-rgb in :root if you use the focus style above */
/* 
:root {
    --primary-color: #2A4365; 
    --accent-color: #B98D4A; 
    --accent-color-rgb: 185, 141, 74; 
    ... etc ...
}
*/

/* Alert colors (Bootstrap defaults are usually okay, but can be tweaked) */
.alert-success {
    background-color: #d1e7dd; /* Softer green */
    border-color: #badbcc;
    color: #0f5132;
}

.alert-danger {
    background-color: #f8d7da; /* Softer red */
    border-color: #f5c2c7;
    color: #842029;
}

/* End Contact Page Specific Styles */

/* Single Article Page Styles */
.article-content-container { /* Renamed from .article-content to avoid conflict if .article-content is used elsewhere */
    /* py-5 class from Bootstrap handles padding */
}

.article-content-container article header h1 {
    color: var(--primary-color);
    font-weight: 700; /* fw-bolder is fine too */
    margin-bottom: 0.75rem !important; /* mb-1 might be too small */
}

.article-content-container article header .text-muted {
    color: var(--medium-text) !important; /* Ensure our medium text color is used */
    font-size: 0.9rem;
}

.article-content-container article header .text-muted i {
    color: var(--accent-color);
    margin-right: 0.3rem;
}

.article-content-container article section {
    color: var(--dark-text);
    font-size: 1.1rem; /* fs-5 is roughly 1.25rem, this provides an alternative */
    line-height: 1.8;  /* lh-lg is 1.75, this provides an alternative */
}

.article-content-container article section p {
    margin-bottom: 1.25rem;
}

.article-content-container article section a {
    color: var(--accent-color);
    text-decoration: underline;
}

.article-content-container article section a:hover {
    color: var(--primary-color);
}

.article-content-container article section img {
    max-width: 100%;
    height: auto;
    border-radius: 0.25rem;
    margin: 1.5rem 0; /* Add some vertical margin to images */
    box-shadow: 0 0.25rem 0.75rem rgba(0,0,0,0.1);
}

/* Ensure the .btn-outline-primary on article page uses accent color */
.article-content-container .btn-outline-primary {
    color: var(--accent-color);
    border-color: var(--accent-color);
    font-weight: 500;
}

.article-content-container .btn-outline-primary:hover {
    color: var(--white-text);
    background-color: var(--accent-color);
    border-color: var(--accent-color);
}

.article-content-container .alert-danger {
     /* Uses styles defined earlier, but we can override if needed for this specific context */
}

.article-content-container .btn-primary {
    /* Uses global .btn-primary styles */
}

/* End Single Article Page Styles */

/* تنسيق زر العودة للأعلى */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 40px;
    height: 40px;
    line-height: 40px;
    background-color: var(--accent-color);
    color: white;
    text-align: center;
    border-radius: 50%;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
    z-index: 99;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* تحسينات إضافية للتذييل */
footer {
    background-color: var(--primary-color);
    color: rgba(255, 255, 255, 0.8);
    padding-top: 3rem;
}

footer h5 {
    color: white;
    margin-bottom: 1.5rem;
    font-weight: 600;
    position: relative;
    padding-bottom: 0.8rem;
}

footer h5::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 40px;
    height: 3px;
    background-color: var(--accent-color);
}

footer ul li {
    margin-bottom: 0.8rem;
}

footer ul li a {
    color: rgba(255, 255, 255, 0.8);
    transition: all 0.3s ease;
}

footer ul li a:hover {
    color: var(--accent-color);
    transform: translateX(-5px);
    text-decoration: none;
}

footer .contact-info li {
    display: flex;
    margin-bottom: 1rem;
}

footer .contact-info li i {
    color: var(--accent-color);
    margin-left: 0.7rem;
    font-size: 1.1rem;
    margin-top: 0.2rem;
}

footer .contact-info li p {
    margin-bottom: 0;
}

footer .social-icons a {
    display: inline-block;
    margin-left: 1rem;
    width: 36px;
    height: 36px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    text-align: center;
    line-height: 36px;
    color: white;
    transition: all 0.3s ease;
}

footer .social-icons a:first-child {
    margin-left: 0;
}

footer .social-icons a:hover {
    background-color: var(--accent-color);
    transform: translateY(-3px);
    color: white;
}

footer .footer-logo {
    max-width: 180px;
    height: auto;
}

footer .copyright-bar {
    background-color: rgba(0, 0, 0, 0.2);
    padding: 1rem 0;
}

footer .copyright-bar a {
    color: rgba(255, 255, 255, 0.8);
    transition: color 0.3s ease;
}

footer .copyright-bar a:hover {
    color: var(--accent-color);
}

/* تحسينات إضافية للتوافق مع الموبايل */
@media (max-width: 768px) {
    footer h5 {
        margin-top: 1.5rem;
    }
    
    footer .social-icons {
        margin-bottom: 1.5rem;
    }
    
    .back-to-top {
        bottom: 15px;
        right: 15px;
    }
}

/* General Button Style (can be customized further) */
.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--white-text);
}

.btn-primary:hover {
    background-color: #1E324D;
    border-color: #1A2A40;
    color: var(--white-text);
}

.btn-secondary {
    background-color: transparent;
    border-color: var(--accent-color);
    color: var(--accent-color);
}

.btn-secondary:hover {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
    color: var(--white-text);
}

/* تعديل لزر CTA في الفوتر ليتناسب مع الخلفية الداكنة */
.cta-section .btn-light {
    background-color: var(--white-text);
    color: var(--primary-color);
    border-color: var(--white-text);
}

.cta-section .btn-light:hover {
    background-color: var(--light-bg); /* أو var(--accent-color) إذا أردنا لونًا مختلفًا عند التحويم */
    color: var(--primary-color);
    border-color: var(--light-bg);
}

/* تعديل لزر "اعرف المزيد" في قسم الخدمات */
.services-overview .btn-outline-primary {
    color: var(--accent-color);
    border-color: var(--accent-color);
}

.services-overview .btn-outline-primary:hover {
    color: var(--white-text);
    background-color: var(--accent-color);
    border-color: var(--accent-color);
}

/* أنماط عامة لـ feature-icon وما بداخله */
.feature-icon {
    /* Bootstrap classes مثل d-inline-flex, align-items-center, justify-content-center, fs-2, mb-3 تتحكم في التخطيط والحجم الأساسي والهامش */
    /* نزيل الخلفية التي قد تأتي من كلاسات مثل text-bg-primary إذا استخدمت */
    background-color: transparent !important; 
}

.feature-icon i {
    font-size: 2.5rem; /* حجم الأيقونة المحدد */
    color: var(--accent-color); /* اللون الافتراضي للأيقونات داخل feature-icon */
}

/* إذا أردنا تخصيص أيقونات قسم Why Choose Us بلون مختلف */
/* 
.why-choose-us .feature-icon i {
    color: var(--primary-color); 
}
*/

.services-overview .card-title {
    color: var(--primary-color); /* Bootstrap primary color - تم التغيير */
}

/* Section Headings */
.container h2 {
    font-weight: 700; /* أو 600 إذا كان 700 ثقيلًا جدًا */
    color: var(--primary-color);
    margin-bottom: 2.5rem; /* توحيد الهامش السفلي للعناوين */
    position: relative;
    padding-bottom: 0.75rem; /* مساحة للخط السفلي */
}

.container h2::after {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: 0;
    width: 60px; /* عرض الخط */
    height: 3px; /* سماكة الخط */
    background-color: var(--accent-color);
}

/* إذا كان العنوان غير متوسط (text-center)، نعدل الخط */
.container h2:not(.text-center)::after {
    left: 0;
    transform: translateX(0);
}

/* Page Titles (h1 within container, not in hero) */
.container > h1:not(.hero-section h1) {
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1rem; /* أو 1.5rem */
    text-align: center; /* معظم عناوين الصفحات تكون في المنتصف */
    padding-bottom: 1rem;
    position: relative;
}

.container > h1:not(.hero-section h1)::after {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: 0;
    width: 80px; /* خط أطول قليلاً لـ h1 */
    height: 3px;
    background-color: var(--accent-color);
}

/* Service Page Specific Styles */
.service-card {
    border: 1px solid #e0e0e0; /* حد خفيف للبطاقة */
    border-top: 4px solid transparent;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-top-color 0.3s ease;
    background-color: var(--white-text); /* تأكيد الخلفية البيضاء */
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.1);
    border-top-color: var(--accent-color);
}

.service-card .card-title {
    color: var(--primary-color);
    font-weight: 600;
}

.service-card i {
    font-size: 1.8rem; /* تعديل حجم أيقونة الخدمة قليلاً */
    color: var(--accent-color);
    /* me-3 (margin-end) سيأتي من كلاس Bootstrap */
}

/* تنسيق قسم الإحصائيات */
.stats-section {
    padding: 4rem 0;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.stat-item {
    padding: 1.5rem;
    transition: all var(--transition-speed) ease;
    border-radius: var(--border-radius);
    background-color: white;
    box-shadow: var(--box-shadow);
    height: 100%;
    animation: fadeInUp 0.8s ease;
}

.stat-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent-color);
    margin-bottom: 0.5rem;
    line-height: 1;
}

.stat-title {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 1.1rem;
}

/* تنسيق قسم الشهادات */
.testimonials-section {
    padding: 5rem 0;
    background-color: #f9f9f9;
}

.testimonial-card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    padding: 2rem;
    height: 100%;
    position: relative;
    transition: all var(--transition-speed) ease;
    animation: fadeInUp 0.8s ease;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.1);
}

.testimonial-quote {
    color: var(--accent-color);
    font-size: 2rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.testimonial-text {
    font-style: italic;
    color: var(--medium-text);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.testimonial-author {
    display: flex;
    flex-direction: column;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    padding-top: 1rem;
}

.testimonial-name {
    font-weight: 600;
    color: var(--primary-color);
    font-size: 1.1rem;
}

.testimonial-position {
    color: var(--medium-text);
    font-size: 0.9rem;
}

/* تعديلات على زر الدعوة للعمل */
.hero-buttons {
    margin-top: 2rem;
}

/* تعديلات إضافية للأقسام المتحركة */
.stat-item, .testimonial-card, .why-choose-us .col-md-4, .services-overview .card {
    opacity: 0;
    animation-fill-mode: forwards;
}

@media (prefers-reduced-motion: no-preference) {
    .stat-item:nth-child(1) { animation-delay: 0.1s; }
    .stat-item:nth-child(2) { animation-delay: 0.2s; }
    .stat-item:nth-child(3) { animation-delay: 0.3s; }
    .stat-item:nth-child(4) { animation-delay: 0.4s; }
    
    .testimonial-card:nth-child(1) { animation-delay: 0.1s; }
    .testimonial-card:nth-child(2) { animation-delay: 0.3s; }
    .testimonial-card:nth-child(3) { animation-delay: 0.5s; }
    
    .services-overview .card:nth-child(1) { animation-delay: 0.1s; }
    .services-overview .card:nth-child(2) { animation-delay: 0.2s; }
    .services-overview .card:nth-child(3) { animation-delay: 0.3s; }
    .services-overview .card:nth-child(4) { animation-delay: 0.4s; }
    .services-overview .card:nth-child(5) { animation-delay: 0.5s; }
    .services-overview .card:nth-child(6) { animation-delay: 0.6s; }
    
    .why-choose-us .col-md-4:nth-child(1) { animation-delay: 0.1s; }
    .why-choose-us .col-md-4:nth-child(2) { animation-delay: 0.2s; }
    .why-choose-us .col-md-4:nth-child(3) { animation-delay: 0.3s; }
    .why-choose-us .col-md-4:nth-child(4) { animation-delay: 0.4s; }
    .why-choose-us .col-md-4:nth-child(5) { animation-delay: 0.5s; }
    .why-choose-us .col-md-4:nth-child(6) { animation-delay: 0.6s; }
}

/* إضافة تنسيق متوافق مع أجهزة الموبايل */
@media (max-width: 768px) {
    .stat-number {
        font-size: 2rem;
    }
    
    .stat-title {
        font-size: 0.9rem;
    }
    
    .testimonial-card {
        padding: 1.5rem;
        margin-bottom: 1rem;
    }
    
    .services-overview .card, 
    .why-choose-us .col-md-4, 
    .testimonial-card,
    .stat-item {
        animation-delay: 0s !important;
    }
}

/* ألوان وهوية Syria Rebuild */
.hero-section {
  background: linear-gradient(rgba(0,0,0,0.4),rgba(0,0,0,0.4)), url('includes/rebuild-bg.jpg') center/cover no-repeat;
  color: #fff;
}

.btn-warning, .btn-outline-warning {
  background-color: var(--main-color) !important;
  border-color: var(--main-color) !important;
  color: #222 !important;
}
.btn-outline-warning {
  background: #fff !important;
  color: var(--main-color) !important;
}
.btn-outline-warning:hover, .btn-warning:hover {
  background-color: var(--accent-color) !important;
  border-color: var(--accent-color) !important;
  color: #222 !important;
}

.card .fa-2x {
  color: var(--main-color);
}

.cta-section {
  background: linear-gradient(90deg, var(--main-color) 0%, var(--accent-color) 100%);
  color: #222;
}

.step-icon {
  width: 60px;
  height: 60px;
  background: var(--light-gray);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 10px auto;
  box-shadow: 0 2px 8px rgba(0,0,0,0.07);
}

.testimonial-card {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

/* تحسين الشعار */
.navbar-brand-logo, .footer-logo {
  max-height: 48px;
  width: auto;
}

/* تحسينات إضافية للتذييل */
footer {
    background-color: var(--primary-color);
    color: rgba(255, 255, 255, 0.8);
    padding-top: 3rem;
}

footer h5 {
    color: white;
    margin-bottom: 1.5rem;
    font-weight: 600;
    position: relative;
    padding-bottom: 0.8rem;
}

footer h5::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 40px;
    height: 3px;
    background-color: var(--accent-color);
}

footer ul li {
    margin-bottom: 0.8rem;
}

footer ul li a {
    color: rgba(255, 255, 255, 0.8);
    transition: all 0.3s ease;
}

footer ul li a:hover {
    color: var(--accent-color);
    transform: translateX(-5px);
    text-decoration: none;
}

footer .contact-info li {
    display: flex;
    margin-bottom: 1rem;
}

footer .contact-info li i {
    color: var(--accent-color);
    margin-left: 0.7rem;
    font-size: 1.1rem;
    margin-top: 0.2rem;
}

footer .contact-info li p {
    margin-bottom: 0;
}

footer .social-icons a {
    display: inline-block;
    margin-left: 1rem;
    width: 36px;
    height: 36px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    text-align: center;
    line-height: 36px;
    color: white;
    transition: all 0.3s ease;
}

footer .social-icons a:first-child {
    margin-left: 0;
}

footer .social-icons a:hover {
    background-color: var(--accent-color);
    transform: translateY(-3px);
    color: white;
}

footer .footer-logo {
    max-width: 180px;
    height: auto;
}

footer .copyright-bar {
    background-color: rgba(0, 0, 0, 0.2);
    padding: 1rem 0;
}

footer .copyright-bar a {
    color: rgba(255, 255, 255, 0.8);
    transition: color 0.3s ease;
}

footer .copyright-bar a:hover {
    color: var(--accent-color);
}

/* تحسينات إضافية للتوافق مع الموبايل */
@media (max-width: 768px) {
    footer h5 {
        margin-top: 1.5rem;
    }
    
    footer .social-icons {
        margin-bottom: 1.5rem;
    }
    
    .back-to-top {
        bottom: 15px;
        right: 15px;
    }
}

/* General Button Style (can be customized further) */
.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--white-text);
}

.btn-primary:hover {
    background-color: #1E324D;
    border-color: #1A2A40;
    color: var(--white-text);
}

.btn-secondary {
    background-color: transparent;
    border-color: var(--accent-color);
    color: var(--accent-color);
}

.btn-secondary:hover {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
    color: var(--white-text);
}

/* تعديل لزر CTA في الفوتر ليتناسب مع الخلفية الداكنة */
.cta-section .btn-light {
    background-color: var(--white-text);
    color: var(--primary-color);
    border-color: var(--white-text);
}

.cta-section .btn-light:hover {
    background-color: var(--light-bg); /* أو var(--accent-color) إذا أردنا لونًا مختلفًا عند التحويم */
    color: var(--primary-color);
    border-color: var(--light-bg);
}

/* تعديل لزر "اعرف المزيد" في قسم الخدمات */
.services-overview .btn-outline-primary {
    color: var(--accent-color);
    border-color: var(--accent-color);
}

.services-overview .btn-outline-primary:hover {
    color: var(--white-text);
    background-color: var(--accent-color);
    border-color: var(--accent-color);
}

/* أنماط عامة لـ feature-icon وما بداخله */
.feature-icon {
    /* Bootstrap classes مثل d-inline-flex, align-items-center, justify-content-center, fs-2, mb-3 تتحكم في التخطيط والحجم الأساسي والهامش */
    /* نزيل الخلفية التي قد تأتي من كلاسات مثل text-bg-primary إذا استخدمت */
    background-color: transparent !important; 
}

.feature-icon i {
    font-size: 2.5rem; /* حجم الأيقونة المحدد */
    color: var(--accent-color); /* اللون الافتراضي للأيقونات داخل feature-icon */
}

/* إذا أردنا تخصيص أيقونات قسم Why Choose Us بلون مختلف */
/* 
.why-choose-us .feature-icon i {
    color: var(--primary-color); 
}
*/

.services-overview .card-title {
    color: var(--primary-color); /* Bootstrap primary color - تم التغيير */
}

/* Section Headings */
.container h2 {
    font-weight: 700; /* أو 600 إذا كان 700 ثقيلًا جدًا */
    color: var(--primary-color);
    margin-bottom: 2.5rem; /* توحيد الهامش السفلي للعناوين */
    position: relative;
    padding-bottom: 0.75rem; /* مساحة للخط السفلي */
}

.container h2::after {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: 0;
    width: 60px; /* عرض الخط */
    height: 3px; /* سماكة الخط */
    background-color: var(--accent-color);
}

/* إذا كان العنوان غير متوسط (text-center)، نعدل الخط */
.container h2:not(.text-center)::after {
    left: 0;
    transform: translateX(0);
}

/* Page Titles (h1 within container, not in hero) */
.container > h1:not(.hero-section h1) {
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1rem; /* أو 1.5rem */
    text-align: center; /* معظم عناوين الصفحات تكون في المنتصف */
    padding-bottom: 1rem;
    position: relative;
}

.container > h1:not(.hero-section h1)::after {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: 0;
    width: 80px; /* خط أطول قليلاً لـ h1 */
    height: 3px;
    background-color: var(--accent-color);
}

/* Service Page Specific Styles */
.service-card {
    border: 1px solid #e0e0e0; /* حد خفيف للبطاقة */
    border-top: 4px solid transparent;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-top-color 0.3s ease;
    background-color: var(--white-text); /* تأكيد الخلفية البيضاء */
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.1);
    border-top-color: var(--accent-color);
}

.service-card .card-title {
    color: var(--primary-color);
    font-weight: 600;
}

.service-card i {
    font-size: 1.8rem; /* تعديل حجم أيقونة الخدمة قليلاً */
    color: var(--accent-color);
    /* me-3 (margin-end) سيأتي من كلاس Bootstrap */
}

/* تنسيق قسم الإحصائيات */
.stats-section {
    padding: 4rem 0;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.stat-item {
    padding: 1.5rem;
    transition: all var(--transition-speed) ease;
    border-radius: var(--border-radius);
    background-color: white;
    box-shadow: var(--box-shadow);
    height: 100%;
    animation: fadeInUp 0.8s ease;
}

.stat-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent-color);
    margin-bottom: 0.5rem;
    line-height: 1;
}

.stat-title {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 1.1rem;
}

/* تنسيق قسم الشهادات */
.testimonials-section {
    padding: 5rem 0;
    background-color: #f9f9f9;
}

.testimonial-card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    padding: 2rem;
    height: 100%;
    position: relative;
    transition: all var(--transition-speed) ease;
    animation: fadeInUp 0.8s ease;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.1);
}

.testimonial-quote {
    color: var(--accent-color);
    font-size: 2rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.testimonial-text {
    font-style: italic;
    color: var(--medium-text);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.testimonial-author {
    display: flex;
    flex-direction: column;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    padding-top: 1rem;
}

.testimonial-name {
    font-weight: 600;
    color: var(--primary-color);
    font-size: 1.1rem;
}

.testimonial-position {
    color: var(--medium-text);
    font-size: 0.9rem;
}

/* تعديلات على زر الدعوة للعمل */
.hero-buttons {
    margin-top: 2rem;
}

/* تعديلات إضافية للأقسام المتحركة */
.stat-item, .testimonial-card, .why-choose-us .col-md-4, .services-overview .card {
    opacity: 0;
    animation-fill-mode: forwards;
}

@media (prefers-reduced-motion: no-preference) {
    .stat-item:nth-child(1) { animation-delay: 0.1s; }
    .stat-item:nth-child(2) { animation-delay: 0.2s; }
    .stat-item:nth-child(3) { animation-delay: 0.3s; }
    .stat-item:nth-child(4) { animation-delay: 0.4s; }
    
    .testimonial-card:nth-child(1) { animation-delay: 0.1s; }
    .testimonial-card:nth-child(2) { animation-delay: 0.3s; }
    .testimonial-card:nth-child(3) { animation-delay: 0.5s; }
    
    .services-overview .card:nth-child(1) { animation-delay: 0.1s; }
    .services-overview .card:nth-child(2) { animation-delay: 0.2s; }
    .services-overview .card:nth-child(3) { animation-delay: 0.3s; }
    .services-overview .card:nth-child(4) { animation-delay: 0.4s; }
    .services-overview .card:nth-child(5) { animation-delay: 0.5s; }
    .services-overview .card:nth-child(6) { animation-delay: 0.6s; }
    
    .why-choose-us .col-md-4:nth-child(1) { animation-delay: 0.1s; }
    .why-choose-us .col-md-4:nth-child(2) { animation-delay: 0.2s; }
    .why-choose-us .col-md-4:nth-child(3) { animation-delay: 0.3s; }
    .why-choose-us .col-md-4:nth-child(4) { animation-delay: 0.4s; }
    .why-choose-us .col-md-4:nth-child(5) { animation-delay: 0.5s; }
    .why-choose-us .col-md-4:nth-child(6) { animation-delay: 0.6s; }
}

/* إضافة تنسيق متوافق مع أجهزة الموبايل */
@media (max-width: 768px) {
    .stat-number {
        font-size: 2rem;
    }
    
    .stat-title {
        font-size: 0.9rem;
    }
    
    .testimonial-card {
        padding: 1.5rem;
        margin-bottom: 1rem;
    }
    
    .services-overview .card, 
    .why-choose-us .col-md-4, 
    .testimonial-card,
    .stat-item {
        animation-delay: 0s !important;
    }
} 