/* Global Styles - مطور */
:root {
    --primary-color: #8B0000;
    --primary-dark: #6d0000;
    --secondary-color: #D4AF37;
    --secondary-light: #e8c874;
    --dark-color: #222;
    --gray-color: #555;
    --light-color: #f8f8f8;
    --white: #fff;
    --black: #000;
    --box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Kufi Arabic', 'Montserrat', sans-serif;
    line-height: 1.7;
    color: var(--dark-color);
    background-color: var(--white);
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    line-height: 1.3;
    font-weight: 700;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    width: 90%;
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 15px;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
	padding: 20px;
}

.section-header h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--secondary-color);
}

.section-header p {
    color: var(--gray-color);
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto;
}

.btn {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--white);
    padding: 12px 30px;
    border-radius: 4px;
    font-weight: 600;
    transition: var(--transition);
    border: 2px solid var(--primary-color);
    text-align: center;
}

.btn:hover {
    background-color: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: var(--box-shadow);
}

.btn-outline {
    display: inline-block;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    padding: 10px 25px;
    border-radius: 4px;
    font-weight: 600;
    transition: var(--transition);
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: var(--box-shadow);
}

.btn-outline-white {
    display: inline-block;
    border: 2px solid var(--white);
    color: var(--white);
    padding: 10px 25px;
    border-radius: 4px;
    font-weight: 600;
    transition: var(--transition);
}

.btn-outline-white:hover {
    background-color: var(--white);
    color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: var(--box-shadow);
}

/* Header Styles - مطور */
.header {
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    padding: 15px 0;
    transition: var(--transition);
}

.header.scrolled {
    padding: 10px 0;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 50px;
    transition: var(--transition);
}

.header.scrolled .logo img {
    height: 40px;
}

.navbar ul {
    display: flex;
    list-style: none;
}

.navbar ul li {
    margin-left: 25px;
}

.navbar ul li a {
    font-weight: 600;
    transition: var(--transition);
    position: relative;
    padding: 5px 0;
}

.navbar ul li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: var(--transition);
}

.navbar ul li a:hover::after,
.navbar ul li a.active::after {
    width: 100%;
}

.navbar ul li a:hover,
.navbar ul li a.active {
    color: var(--primary-color);
}

.language-switcher button {
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    padding: 8px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    transition: var(--transition);
    margin-right: 15px;
}

.language-switcher button:hover {
    background-color: var(--primary-dark);
}

.mobile-menu-btn {
    display: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--dark-color);
    transition: var(--transition);
}

.mobile-menu-btn:hover {
    color: var(--primary-color);
}

/* Hero Section - مطور */
.hero {
    height: 100vh;
    min-height: 700px;
    background: url('../images/background.jpg') no-repeat center center/cover;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin-top: 80px;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.4));
}

.hero-content {
    position: relative;
    z-index: 1;
    color: var(--white);
    padding: 0 20px;
    max-width: 800px;
    margin: 0 auto;
}

.hero-content h1 {
    font-size: 4rem;
    margin-bottom: 20px;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
    animation: fadeInDown 1s ease;
}

.hero-content p {
    font-size: 1.3rem;
    margin-bottom: 40px;
    text-shadow: 0 2px 3px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 1s ease;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    animation: fadeIn 1.5s ease;
}

.scroll-down {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--white);
    font-size: 24px;
    animation: bounce 2s infinite;
    cursor: pointer;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0) translateX(-50%);
    }
    40% {
        transform: translateY(-20px) translateX(-50%);
    }
    60% {
        transform: translateY(-10px) translateX(-50%);
    }
}

/* Brands Bar - مطور */
.brands-bar {
    padding: 80px 0;
    background-color: var(--light-color);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.brands-bar h2 {
    margin-bottom: 30px;
    color: var(--primary-color);
}

.brands-slider {
    overflow: hidden;
    position: relative;
    padding: 20px 0;
}

.brands-track {
    display: flex;
    animation: scroll 30s linear infinite;
    width: calc(250px * 14);
    align-items: center;
}

.brand-item {
    width: 200px;
    margin: 0 25px;
    padding: 20px;
    background-color: var(--white);
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.brand-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.brand-item img {
    width: 100%;
    height: 80px;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.8;
    transition: var(--transition);
    margin-bottom: 15px;
}

.brand-item:hover img {
    filter: grayscale(0%);
    opacity: 1;
}

.brand-item p {
    font-weight: 600;
    color: var(--dark-color);
    margin-top: 10px;
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(calc(-250px * 7));
    }
}

/* About Section - مطور */
.about-section {
    padding: 100px 0;
    background-color: var(--white);
    position: relative;
}

.about-content {
    display: flex;
    align-items: center;
    gap: 60px;
}

.about-text {
    flex: 1;
}

.about-text p {
    margin-bottom: 25px;
    font-size: 1.1rem;
    color: var(--gray-color);
    line-height: 1.8;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin: 30px 0;
}

.stat-item {
    background-color: var(--light-color);
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    transition: var(--transition);
}

.stat-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--box-shadow);
}

.stat-item h3 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.stat-item p {
    font-size: 0.9rem;
    color: var(--gray-color);
}

.about-image {
    flex: 1;
    position: relative;
}

.about-image img {
    border-radius: 8px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.experience-badge {
    position: absolute;
    bottom: -20px;
    right: -20px;
    background-color: var(--secondary-color);
    color: var(--white);
    padding: 20px;
    border-radius: 50%;
    width: 120px;
    height: 120px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    box-shadow: 0 10px 20px rgba(212, 175, 55, 0.3);
}

.experience-badge span {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1;
}

.experience-badge p {
    font-size: 0.8rem;
    margin-top: 5px;
}

/* Values Section - جديد */
.values-section {
    padding: 80px 0;
    background-color: var(--light-color);
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.value-card {
    background-color: var(--white);
    padding: 30px;
    border-radius: 8px;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    text-align: center;
}

.value-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.value-icon {
    width: 80px;
    height: 80px;
    background-color: rgba(139, 0, 0, 0.1);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 20px;
    color: var(--primary-color);
    font-size: 30px;
    transition: var(--transition);
}

.value-card:hover .value-icon {
    background-color: var(--primary-color);
    color: var(--white);
}

.value-card h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.value-card p {
    color: var(--gray-color);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* News Section - مطور */
.news-section {
    padding: 100px 0;
    background-color: var(--white);
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

.news-card {
    background-color: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    position: relative;
}

.news-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.news-image {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.news-card:hover .news-image img {
    transform: scale(1.05);
}

.news-date {
    position: absolute;
    top: 20px;
    right: 20px;
    background-color: var(--primary-color);
    color: var(--white);
    padding: 8px 15px;
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: 600;
}

.news-content {
    padding: 25px;
}

.news-content h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 1.3rem;
    transition: var(--transition);
}

.news-card:hover .news-content h3 {
    color: var(--secondary-color);
}

.read-more {
    display: inline-flex;
    align-items: center;
    color: var(--secondary-color);
    font-weight: 600;
    transition: var(--transition);
}

.read-more i {
    margin-right: 8px;
    transition: var(--transition);
}

.read-more:hover {
    color: var(--primary-color);
}

.read-more:hover i {
    transform: translateX(-5px);
}

.section-footer {
    text-align: center;
    margin-top: 50px;
}

/* Newsletter Section - جديد */
.newsletter-section {
    padding: 80px 0;
    background: url('../images/newsletter-bg.jpg') no-repeat center center/cover;
    position: relative;
    text-align: center;
}

.newsletter-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(139, 0, 0, 0.8);
}

.newsletter-box {
    position: relative;
    z-index: 1;
    background-color: var(--white);
    padding: 50px;
    border-radius: 8px;
    max-width: 800px;
    margin: 0 auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.newsletter-box h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 1.8rem;
}

.newsletter-box p {
    color: var(--gray-color);
    margin-bottom: 30px;
    font-size: 1.1rem;
}

.newsletter-form {
    display: flex;
    max-width: 600px;
    margin: 0 auto;
}

.newsletter-form input {
    flex: 1;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 4px 0 0 4px;
    font-size: 1rem;
    outline: none;
}

.newsletter-form button {
    border-radius: 0 4px 4px 0;
    padding: 0 30px;
}

/* Footer - مطور */
.footer {
    background-color: var(--dark-color);
    color: var(--white);
    padding: 80px 0 0;
	margin: 20px;
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 60px;
}

.footer-col h3 {
    font-size: 1.5rem;
    margin-bottom: 25px;
    color: var(--secondary-color);
    position: relative;
    padding-bottom: 10px;
}

.footer-col h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background-color: var(--primary-color);
}

.footer-about p {
    color: #bbb;
    margin-bottom: 20px;
    line-height: 1.7;
}

.footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: var(--white);
    margin-right: 10px;
    transition: var(--transition);
}

.footer-social a:hover {
    background-color: var(--primary-color);
    transform: translateY(-5px);
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 15px;
}

.footer-col ul li a {
    color: #bbb;
    transition: var(--transition);
    display: inline-block;
}

.footer-col ul li a:hover {
    color: var(--secondary-color);
    transform: translateX(5px);
}

.contact-info li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
}

.contact-info i {
    color: var(--secondary-color);
    margin-left: 10px;
    font-size: 18px;
    margin-top: 3px;
}

.contact-info span {
    color: #bbb;
    line-height: 1.6;
}

.footer-bottom {
    border-top: 1px solid #444;
    padding: 25px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-bottom p {
    color: #999;
    font-size: 0.9rem;
}

.footer-links a {
    color: #bbb;
    margin-left: 20px;
    font-size: 0.9rem;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--secondary-color);
}

/* Responsive Styles - مطور */
@media (max-width: 1200px) {
    .hero-content h1 {
        font-size: 3.5rem;
    }
}

@media (max-width: 992px) {
    .about-content {
        flex-direction: column;
    }
    
    .about-image {
        margin-top: 40px;
    }
    
    .experience-badge {
        right: 20px;
    }
    
    .hero-content h1 {
        font-size: 3rem;
    }
    
    .newsletter-form {
        flex-direction: column;
    }
    
    .newsletter-form input {
        border-radius: 4px;
        margin-bottom: 10px;
    }
    
    .newsletter-form button {
        border-radius: 4px;
        width: 100%;
    }
}

@media (max-width: 768px) {
    .navbar {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--white);
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
        padding: 20px 0;
    }
    
    .navbar.active {
        display: block;
    }
    
    .navbar ul {
        flex-direction: column;
        padding: 0 20px;
    }
    
    .navbar ul li {
        margin: 10px 0;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .hero {
        height: auto;
        min-height: auto;
        padding: 150px 0 100px;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .hero-content p {
        font-size: 1.1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 15px;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-links {
        margin-top: 15px;
    }
    
    .footer-links a {
        margin: 0 10px;
    }
}

@media (max-width: 576px) {
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .news-grid {
        grid-template-columns: 1fr;
    }
    
    .newsletter-box {
        padding: 30px 20px;
    }
}
/* صفحة العلامات التجارية */
.brands-showcase {
    padding: 80px 0;
}

.brands-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.brand-card {
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.brand-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.brand-image {
    height: 200px;
    position: relative;
    overflow: hidden;
}

.brand-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.brand-card:hover .brand-image img {
    transform: scale(1.05);
}

.brand-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: var(--transition);
}

.brand-card:hover .brand-overlay {
    opacity: 1;
}

.brand-info {
    padding: 20px;
    text-align: center;
}

.brand-info h3 {
    color: var(--primary-color);
    margin-bottom: 5px;
}

.brand-info span {
    color: var(--secondary-color);
    font-size: 0.9rem;
}

/* صفحة التوظيف */
.jobs-list {
    margin: 40px 0;
}

.job-card {
    background: var(--white);
    padding: 25px;
    border-radius: 8px;
    box-shadow: var(--box-shadow);
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);
}

.job-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.job-meta {
    display: flex;
    gap: 20px;
    margin-top: 10px;
}

.job-meta span {
    color: var(--gray-color);
    font-size: 0.9rem;
}

.job-meta i {
    color: var(--secondary-color);
    margin-left: 5px;
}

.job-actions {
    display: flex;
    gap: 15px;
}

/* صفحة اتصل بنا */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin: 50px 0;
}

.contact-card {
    background: var(--white);
    padding: 30px;
    border-radius: 8px;
    text-align: center;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.contact-card:hover {
    transform: translateY(-10px);
}

.contact-icon {
    width: 70px;
    height: 70px;
    background: rgba(139, 0, 0, 0.1);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 20px;
    color: var(--primary-color);
    font-size: 24px;
}

.form-container {
    background: var(--white);
    padding: 50px;
    border-radius: 8px;
    box-shadow: var(--box-shadow);
    margin-bottom: 50px;
}

.form-header {
    text-align: center;
    margin-bottom: 40px;
}

.form-header h2 {
    color: var(--primary-color);
}

.contact-form .form-group {
    margin-bottom: 20px;
}

.contact-form input,
.contact-form textarea,
.contact-form select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: inherit;
    font-size: 1rem;
}

.contact-form textarea {
    resize: vertical;
    min-height: 150px;
}

.contact-form label {
    display: block;
    margin-bottom: 8px;
    color: var(--dark-color);
    font-weight: 500;
}




/* تنسيقات نموذج التواصل */
/*.contact-form {
    max-width: 600px;
    margin: 0 auto;
}*/

.form-group {
    margin-bottom: 20px;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: inherit;
    font-size: 1rem;
}

.form-group textarea {
    resize: vertical;
    min-height: 150px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--dark-color);
    font-weight: 500;
}

.form-response {
    margin-top: 20px;
    padding: 15px;
    border-radius: 4px;
    display: none;
}

.form-response .loading {
    color: #007bff;
}

.form-response .success {
    color: #28a745;
    background-color: #d4edda;
    padding: 10px;
    border-radius: 4px;
}

.form-response .error {
    color: #dc3545;
    background-color: #f8d7da;
    padding: 10px;
    border-radius: 4px;
}

.form-response ul {
    margin-top: 10px;
    padding-right: 20px;
}

.form-response li {
    margin-bottom: 5px;
}







.map-container {
    height: 500px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--box-shadow);
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* صفحة عامة للصفحات الداخلية */
.page-hero {
    background: linear-gradient(to right, rgba(139, 0, 0, 0.8), rgba(212, 175, 55, 0.8)), url('../images/about-image.jpg') no-repeat center center/cover;
    height: 300px;
    display: flex;
    align-items: center;
    text-align: center;
    color: var(--white);
    margin-top: 80px;
}

.page-hero h1 {
    font-size: 3rem;
    margin-bottom: 15px;
}

.page-hero p {
    font-size: 1.2rem;
    opacity: 0.9;
}


/* تنسيقات العلامات التجارية المعدلة */
.brands-slider-container {
    position: relative;
    overflow: hidden;
    padding: 20px 0;
	margin: 40px 0;
}

.brands-slider {
    width: 100%;
    overflow: hidden;
}

.brands-track {
    display: flex;
    align-items: center;
    will-change: transform; /* لتحسين الأداء */
	backface-visibility: hidden;
}

/* التأكد من أن العناصر تترتب بشكل صحيح في كلا الوضعين */
[dir="rtl"] .brands-track {
    flex-direction: row-reverse;
}

.brand-item {
    flex: 0 0 200px;
    margin: 0 25px;
    padding: 20px;
    background-color: var(--white);
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    text-align: center;
}

.brand-item img {
    width: 100%;
    height: 80px;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.8;
    transition: all 0.3s ease;
    margin-bottom: 15px;
}

.brand-item:hover {
    transform: translateY(-10px) scale(1.05);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
	z-index: 10;
}

.brand-item:hover img {
    filter: grayscale(0%);
    opacity: 1;
}


.brands-track {
    will-change: transform;
    backface-visibility: hidden;
    transform-style: preserve-3d;
}



.brand-item {
    transform: scale(0.95);
    transition: all 0.3s ease;
}

.brand-item:hover {
    transform: scale(1) translateY(-10px);
    z-index: 10;
}


/* تنسيقات قسم الشهادات */
.certifications-section {
    padding: 80px 0;
    background-color: #f9f9f9;
    position: relative;
}

.certifications-container {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 50px;
}

.certifications-slider {
    overflow: hidden;
    position: relative;
}

.certifications-track {
    display: flex;
    transition: transform 0.5s ease;
    will-change: transform;
}

.certification-card {
    flex: 0 0 180px;
    margin: 0 15px;
    padding: 25px;
    background-color: var(--white);
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    text-align: center;
    cursor: pointer;
    border: 1px solid #eee;
}

.certification-card.active {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(139, 0, 0, 0.1);
    border-color: var(--primary-color);
}

.certification-card img {
    width: 100%;
    height: 120px;
    object-fit: contain;
    margin-bottom: 15px;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: all 0.3s ease;
}

.certification-card.active img,
.certification-card:hover img {
    filter: grayscale(0%);
    opacity: 1;
}

.certification-card h4 {
    color: var(--dark-color);
    font-size: 1rem;
    margin-bottom: 5px;
}

.certification-card p {
    color: var(--gray-color);
    font-size: 0.8rem;
}

.certifications-controls {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    pointer-events: none;
}

.cert-prev, .cert-next {
    background-color: var(--primary-color);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    pointer-events: all;
}

.cert-prev:hover, .cert-next:hover {
    background-color: var(--primary-dark);
    transform: scale(1.1);
}

[dir="rtl"] .cert-prev i,
[dir="rtl"] .cert-next i {
    transform: rotate(180deg);
}

.certifications-details {
    background-color: var(--white);
    border-radius: 8px;
    padding: 40px;
    margin-top: 50px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border-top: 3px solid var(--secondary-color);
}

.detail-content h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 1.8rem;
}

.detail-content p {
    color: var(--gray-color);
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.cert-features {
    list-style: none;
}

.cert-features li {
    position: relative;
    padding-right: 25px;
    margin-bottom: 10px;
    color: var(--dark-color);
}

.cert-features li::before {
    content: '';
    position: absolute;
    right: 0;
    top: 8px;
    width: 15px;
    height: 15px;
    background-color: var(--secondary-color);
    border-radius: 50%;
}

/* التكيف مع الشاشات الصغيرة */
@media (max-width: 768px) {
    .certifications-container {
        padding: 0 20px;
    }
    
    .certification-card {
        flex: 0 0 150px;
        padding: 15px;
    }
    
    .certifications-details {
        padding: 25px;
    }
}


/* قسم مجالات التخصص */
.our-domains {
    padding: 80px 0;
    background-color: #f8f5f0;
    position: relative;
}

.domains-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin: 50px 0;
}

.domain-card {
    position: relative;
    background-color: var(--white);
    border-radius: 8px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.5s ease;
    overflow: hidden;
    height: 250px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(139, 0, 0, 0.1);
}

.domain-icon {
    width: 70px;
    height: 70px;
    background-color: rgba(139, 0, 0, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: var(--primary-color);
    font-size: 24px;
    transition: all 0.3s ease;
}

.domain-card h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
    position: relative;
    z-index: 2;
}

.domain-card p {
    color: var(--gray-color);
    margin-bottom: 0;
    position: relative;
    z-index: 2;
}

.domain-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(139, 0, 0, 0.8), rgba(212, 175, 55, 0.8));
    display: flex;
    align-items: top;
    justify-content: center;
    opacity: 0;
    transition: all 0.5s ease;
    padding: 20px;
    transform: translateY(100%);
}

.domain-overlay p {
    color: white;
    font-size: 1.1rem;
    text-align: center;
}

.domain-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.domain-card:hover .domain-overlay {
    opacity: 1;
    transform: translateY(0);
}

.domain-card:hover .domain-icon {
    background-color: var(--primary-color);
    color: white;
}

.domains-footer {
    text-align: center;
    margin-top: 40px;
}

.domains-footer p {
    color: var(--gray-color);
    font-style: italic;
    margin-bottom: 20px;
}

.btn-mystery {
    background-color: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    position: relative;
    overflow: hidden;
}

.btn-mystery:hover {
    color: white;
}

.btn-mystery::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background-color: var(--primary-color);
    transition: all 0.3s ease;
    z-index: -1;
}

.btn-mystery:hover::before {
    left: 0;
}

/* التكيف مع الشاشات الصغيرة */
@media (max-width: 768px) {
    .domains-grid {
        grid-template-columns: 1fr;
    }
    
    .domain-card {
        height: 200px;
    }
}