@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@400;500;700;900&display=swap');

:root {
    /* New Theme Colors */
    --primary-blue: #1a5f7a;
    --secondary-blue: #159895;
    --primary-green: #57c5b6;
    --secondary-green: #002B5B; /* Consider a less dark green if needed */
    --primary-brown: #8B7E74;
    --secondary-brown: #65451F;
    
    --light-bg: #f8f9fa;
    --dark-text: #333;
    --light-text: #fff;
    --white: #FFFFFF;

    /* Gold accent for footer icons, can be themed if needed */
    --gold-accent: var(--primary-green); /* Changed from #d4af37 to match new theme */
    /* Fallback colors for footer if CSS variables are not supported or defined elsewhere */
    --dark-bg-color: var(--secondary-green); /* Changed from #1a1a1a */
    --light-text-color: #ccc;
    --font-family-sans-serif: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    direction: rtl;
    margin: 0;
    padding: 0;
    background-color: var(--light-bg);
    color: var(--dark-text);
    line-height: 1.8;
    overflow-x: hidden;
}

/* Navbar Styles */
.new-navbar {
    background-color: var(--secondary-blue);
    padding: 15px 0;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.new-navbar-brand {
    font-weight: bold;
    font-size: 1.8em;
    color: var(--light-text);
    text-decoration: none;
}

.new-nav-links a {
    color: var(--light-text);
    text-decoration: none;
    margin: 0 12px;
    font-weight: bold; 
    font-size: 1.0em; 
    transition: all 0.3s ease;
    padding: 8px 12px; 
    border-radius: 20px;
}

.new-nav-links a:hover,
.new-nav-links a.active {
    background-color: var(--primary-green); 
    color: var(--dark-text); 
    transform: translateY(-2px);
}

.new-nav-cta {
    background-color: var(--primary-green);
    color: var(--dark-text); 
    border: none;
    padding: 10px 22px; 
    border-radius: 5px; 
    font-weight: bold; 
    text-decoration: none;
    transition: all 0.3s ease;
}

.new-nav-cta:hover {
    background-color: var(--primary-blue); 
    color: var(--light-text);
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

/* Section Styles */
.section {
    background-color: var(--light-text);
    border-radius: 10px;
    padding: 40px 25px;
    margin-bottom: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease;
    position: relative;
    overflow: hidden;
}

.section:hover {
    transform: translateY(-5px);
}

.section::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0; /* Adjusted for RTL */
    width: 5px;
    height: 100%;
    background: linear-gradient(to bottom, var(--primary-blue), var(--primary-green));
}

/* General Heading Styles */
h2 { /* General h2 style, not specific to .slide-content or .section-title */
    color: var(--primary-blue);
    border-bottom: 2px solid var(--primary-green);
    padding-bottom: 10px;
    margin-top: 0;
    margin-bottom: 30px;
    font-weight: bold;
    display: flex;
    align-items: center;
}

h2 i { /* Adjusted for RTL */
    margin-left: 10px; /* For RTL, icon is to the left of text if text is primary */
    margin-right: 0;   /* Reset LTR margin */
    font-size: 1.2em;
    color: var(--primary-green);
}
html[dir="rtl"] h2 i { /* Ensure correct for RTL */
    margin-right: 10px;
    margin-left: 0;
}


h3 { /* General h3 style */
    color: var(--secondary-blue);
    margin-top: 25px;
    margin-bottom: 15px;
    font-weight: bold;
    display: flex;
    align-items: center;
}

h3 i { /* Adjusted for RTL */
    margin-left: 10px; /* For RTL */
    margin-right: 0;
    font-size: 1em;
    color: var(--primary-green);
}
html[dir="rtl"] h3 i { /* Ensure correct for RTL */
    margin-right: 10px;
    margin-left: 0;
}

/* Footer Styles */
.new-site-footer {
    background-color: var(--dark-bg-color, #1a1a1a);
    color: var(--light-text-color, #ccc);
    padding: 40px 0 20px;
    font-family: var(--font-family-sans-serif, 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif);
}

.new-site-footer .container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 15px;
}

.new-site-footer .footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 30px;
}

.new-site-footer .footer-contact-info,
.new-site-footer .footer-social-links {
    flex: 1;
    min-width: 280px;
    margin-bottom: 20px;
}

.new-site-footer .footer-contact-info p {
    margin-bottom: 10px;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
}

.new-site-footer .footer-contact-info p i {
    color: var(--gold-accent, #d4af37);
    font-size: 1.1rem;
}
html[dir="rtl"] .new-site-footer .footer-contact-info p i {
    margin-right: 0;
    margin-left: 10px;
}
html:not([dir="rtl"]) .new-site-footer .footer-contact-info p i {
    margin-left: 0;
    margin-right: 10px;
}

.new-site-footer .footer-contact-info a {
    color: var(--light-text-color, #ccc);
    text-decoration: none;
    transition: color 0.3s ease;
}

.new-site-footer .footer-contact-info a:hover {
    color: var(--gold-accent, #d4af37);
}

.new-site-footer .footer-social-links {
    text-align: right; /* Default for LTR */
}
html[dir="rtl"] .new-site-footer .footer-social-links {
    text-align: left; /* Align to the end for RTL */
}

.new-site-footer .footer-social-links a {
    color: var(--light-text-color, #ccc);
    font-size: 1.5rem;
    margin: 0 8px;
    text-decoration: none;
    transition: color 0.3s ease;
}

.new-site-footer .footer-social-links a:hover {
    color: var(--gold-accent, #d4af37);
}

.new-site-footer .footer-copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #333;
    font-size: 0.9rem;
    color: #aaa;
}

.new-site-footer .footer-copyright p {
    margin: 0;
}

@media (max-width: 768px) {
    .new-site-footer .footer-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .new-site-footer .footer-contact-info,
    .new-site-footer .footer-social-links {
        text-align: center;
        width: 100%;
    }
    .new-site-footer .footer-social-links {
        margin-top: 20px;
    }
}

/* Loader Styles */
.loader-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.9);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease-out;
}
.loader-container .loader {
    border: 16px solid #f3f3f3; /* Light grey */
    border-top: 16px solid var(--primary-blue); /* Using theme color */
    border-radius: 50%;
    width: 120px;
    height: 120px;
    animation: spin 1.5s linear infinite;
    margin-bottom: 20px;
}
.loader-counter {
    font-size: 2em;
    color: var(--primary-blue); /* Using theme color */
    font-weight: bold;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Styles for modules-overview.html and customer-service.html cards */

.page-header {
    background: linear-gradient(45deg, var(--primary-blue), var(--secondary-blue));
    color: var(--light-text);
    padding: 80px 0 40px; /* Adjusted padding */
    margin-bottom: 40px;
}

.system-card, .module-card {
    background: var(--white);
    border-radius: 10px; /* Consistent with .section */
    overflow: hidden;
    margin-bottom: 30px;
    transition: all 0.3s;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08); /* Consistent with .section */
    border: 1px solid #e0e0e0;
}

.system-card:hover, .module-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.12);
}

.system-header, .module-header {
    background: linear-gradient(45deg, var(--primary-blue), var(--secondary-blue));
    color: var(--light-text);
    padding: 20px;
    position: relative;
    overflow: hidden;
    border-bottom: 3px solid var(--primary-green);
}

.system-icon, .module-icon {
    font-size: 30px; /* Standardized icon size */
    color: var(--primary-green);
    margin-bottom: 10px; /* Standardized margin */
}

/* For system-icon specifically if it needs to be larger and in background */
.system-header .system-icon {
    position: absolute;
    left: -15px; /* Adjusted for RTL */
    top: 50%;
    transform: translateY(-50%);
    font-size: 70px;
    opacity: 0.15;
    color: var(--primary-green);
}
html[dir="rtl"] .system-header .system-icon {
    right: -15px;
    left: auto;
}

.system-title, .module-title {
    color: var(--light-text); /* Titles in header are light */
    margin: 0;
    font-weight: 700;
    position: relative;
}

.system-list, .feature-list {
    list-style: none;
    padding: 20px;
    margin: 0;
}

.system-list li, .feature-list li {
    padding: 12px 0; /* Increased padding */
    border-bottom: 1px solid #eee;
    display: flex;
    align-items: center;
    color: var(--dark-text);
}

.system-list li:last-child, .feature-list li:last-child {
    border-bottom: none;
}

.system-list li i, .feature-list li i {
    color: var(--primary-green);
    margin-left: 10px; /* For LTR, adjust for RTL if needed */
}
html[dir="rtl"] .system-list li i, html[dir="rtl"] .feature-list li i {
    margin-right: 0;
    margin-left: 10px;
}

/* Styles for voice-features section in customer-service.html */
.voice-features {
    background: linear-gradient(45deg, var(--secondary-blue), var(--primary-blue)); /* Reversed gradient for variation */
    color: var(--light-text);
    padding: 50px 0;
    margin: 40px 0;
    border-radius: 10px;
}

.voice-card {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 25px;
    margin-bottom: 20px;
    backdrop-filter: blur(8px);
    transition: all 0.3s;
    border: 1px solid rgba(255,255,255,0.2);
}

.voice-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.18);
    box-shadow: 0 8px 15px rgba(0,0,0,0.1);
}

.voice-icon {
    font-size: 35px;
    color: var(--primary-green);
    margin-bottom: 15px;
}

.voice-card h4 {
    color: var(--light-text);
    font-weight: bold;
}

.voice-card p {
    color: #e0e0e0; /* Lighter text for description */
}

/* Scroll-top button style from modules-overview, now themed */
.scroll-top {
    position: fixed;
    bottom: 20px;
    left: 20px; /* Default LTR */
    background: var(--primary-green);
    color: var(--dark-text);
    width: 45px; /* Slightly larger */
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    opacity: 0;
    visibility: hidden;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}
html[dir="rtl"] .scroll-top {
    right: 20px;
    left: auto;
}

.scroll-top.active {
    opacity: 1;
    visibility: visible;
}

.scroll-top:hover {
    background: var(--secondary-blue);
    color: var(--light-text);
    transform: translateY(-3px);
}

/* Ensure Bootstrap button styling is overridden if a .btn-gold was used */
.btn-gold {
    background-color: var(--primary-green);
    color: var(--dark-text);
    border: 1px solid var(--primary-green);
}

.btn-gold:hover {
    background-color: var(--secondary-blue);
    color: var(--light-text);
    border-color: var(--secondary-blue);
}

/* Dropdown menu styling for navbar */
.navbar-dark .navbar-nav .nav-link {
    color: var(--light-text) !important; /* Ensure high specificity */
}

.navbar-dark .navbar-nav .nav-link:hover,
.navbar-dark .navbar-nav .nav-link.active {
    color: var(--primary-green) !important; /* Highlight color */
}

.dropdown-menu {
    background-color: var(--secondary-blue); /* Match navbar */
    border: none;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

.dropdown-item {
    color: var(--light-text) !important;
    padding: 10px 20px;
}

.dropdown-item:hover, .dropdown-item:focus {
    background-color: var(--primary-green);
    color: var(--dark-text) !important;
}

/* Override Bootstrap navbar default background if it was used directly */
.navbar.navbar-dark.fixed-top {
    background-color: var(--secondary-blue) !important; /* Ensure this overrides Bootstrap */
    /* If using the .new-navbar structure, this might not be needed */
}

/* If still using Bootstrap's .navbar-brand */
.navbar-brand {
    color: var(--light-text) !important; /* Ensure brand color matches new theme */
    font-weight: bold;
}
