/* Footer Styles */
:root {
    --primary-color: #4a90e2;
    --secondary-color: #333;
    --accent-color: #f8c630;
    --light-bg: #f9f9f9;
    --dark-bg: #2c3e50;
    --text-light: #fff;
    --text-dark: #333;
    --border-radius: 8px;
    --box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

.modern-footer {
    background-color: var(--dark-bg);
    color: var(--text-light);
    padding: 60px 0 0 0;
    position: relative;
    margin-top: 80px;
    width: 100%;
    clear: both;
}

.footer-wave {
    position: absolute;
    top: -70px;
    left: 0;
    width: 100%;
    height: 70px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 120' preserveAspectRatio='none'%3E%3Cpath d='M321.39,56.44c58-10.79,114.16-30.13,172-41.86,82.39-16.72,168.19-17.73,250.45-.39C823.78,31,906.67,72,985.66,92.83c70.05,18.48,146.53,26.09,214.34,3V0H0V27.35A600.21,600.21,0,0,0,321.39,56.44Z' fill='%232c3e50'%3E%3C/path%3E%3C/svg%3E");
    background-size: cover;
    background-repeat: no-repeat;
    z-index: 1;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    padding: 0 20px;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.footer-section {
    margin-bottom: 30px;
}

.footer-section h3 {
    color: var(--accent-color);
    font-size: 1.4rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-section h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 2px;
    background-color: var(--primary-color);
}

[dir="rtl"] .footer-section h3::after {
    left: auto;
    right: 0;
}

.footer-section p {
    margin-bottom: 15px;
    line-height: 1.6;
    color: #b3b3b3;
}

.footer-section i {
    margin-right: 10px;
    color: var(--primary-color);
}

[dir="rtl"] .footer-section i {
    margin-right: 0;
    margin-left: 10px;
}

.footer-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-section ul li {
    margin-bottom: 12px;
}

.footer-section ul li a {
    color: #b3b3b3;
    text-decoration: none;
    transition: var(--transition);
    display: inline-block;
    position: relative;
}

.footer-section ul li a:hover {
    color: var(--text-light);
    transform: translateX(5px);
}

[dir="rtl"] .footer-section ul li a:hover {
    transform: translateX(-5px);
}

.footer-section ul li a::before {
    content: "→";
    position: absolute;
    left: -20px;
    opacity: 0;
    transition: var(--transition);
}

[dir="rtl"] .footer-section ul li a::before {
    content: "←";
    left: auto;
    right: -20px;
}

.footer-section ul li a:hover::before {
    opacity: 1;
    left: -15px;
}

[dir="rtl"] .footer-section ul li a:hover::before {
    left: auto;
    right: -15px;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: var(--transition);
    color: var(--text-light);
    text-decoration: none;
}

.social-links a:hover {
    background-color: var(--primary-color);
    transform: translateY(-5px);
}

.newsletter-form {
    display: flex;
    margin-top: 20px;
}

.newsletter-form input {
    flex-grow: 1;
    padding: 12px 15px;
    border: none;
    border-radius: 30px 0 0 30px;
    outline: none;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--text-light);
}

[dir="rtl"] .newsletter-form input {
    border-radius: 0 30px 30px 0;
}

.newsletter-form input::placeholder {
    color: #b3b3b3;
}

.newsletter-form button {
    padding: 0 20px;
    border: none;
    background-color: var(--primary-color);
    color: var(--text-light);
    border-radius: 0 30px 30px 0;
    cursor: pointer;
    transition: var(--transition);
}

[dir="rtl"] .newsletter-form button {
    border-radius: 30px 0 0 30px;
}

.newsletter-form button:hover {
    background-color: #3a7bc8;
}

.contact-info {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.contact-info i {
    width: 30px;
    height: 30px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
}

[dir="rtl"] .contact-info i {
    margin-right: 0;
    margin-left: 15px;
}

.footer-logo {
    margin-bottom: 20px;
}

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

.footer-logo span {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-light);
}

.footer-logo span.colored {
    color: var(--primary-color);
}

.footer-bottom {
    background-color: rgba(0, 0, 0, 0.2);
    padding: 20px 0;
    margin-top: 40px;
    text-align: center;
}

.footer-bottom p {
    margin: 0;
    color: #b3b3b3;
}

.footer-bottom a {
    color: var(--primary-color);
    text-decoration: none;
}

.footer-divider {
    height: 1px;
    background-color: rgba(255, 255, 255, 0.1);
    margin: 20px 0;
}

.footer-bottom-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 10px;
}

.footer-bottom-links a {
    color: #b3b3b3;
    text-decoration: none;
    transition: var(--transition);
    font-size: 0.9rem;
}

.footer-bottom-links a:hover {
    color: var(--text-light);
}

.footer-payment-methods {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 15px;
}

.footer-payment-methods i {
    font-size: 1.5rem;
    color: #b3b3b3;
}

/* Fix for RTL layouts */
[dir="rtl"] .newsletter-form button {
    border-radius: 30px 0 0 30px;
}

[dir="rtl"] .newsletter-form input {
    border-radius: 0 30px 30px 0;
}

/* Override any conflicting styles */
footer.modern-footer {
    background-color: var(--dark-bg) !important;
    color: var(--text-light) !important;
}

footer.modern-footer .footer-section h3 {
    color: var(--accent-color) !important;
    font-size: 1.4rem !important;
    margin-bottom: 20px !important;
}

footer.modern-footer .footer-bottom {
    background-color: rgba(0, 0, 0, 0.2) !important;
    padding: 20px 0 !important;
    margin-top: 40px !important;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr 1fr;
    }
    
    .footer-section {
        margin-bottom: 40px;
    }
}

@media (max-width: 576px) {
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .footer-bottom-links {
        flex-direction: column;
        gap: 10px;
    }
}
