/* Footer Styles */
.site-footer {
    width: 100%;
}

/* Newsletter Subscription Section */
.newsletter-section {
    background-color: #eff0f4;
    padding: 25px 0;
}

.newsletter-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.newsletter-title {
    font-size: 18px;
    font-weight: 600;
    color: #1a1a1a;
    white-space: nowrap;
}

.newsletter-form {
    display: flex;
    gap: 10px;
    flex: 1;
    margin-left: auto;
    align-items: center;
}

.newsletter-input {
    flex: 1;
    padding: 14px 16px;
    border: 1px solid #c0c0c0;
    border-radius: 12px;
    font-size: 14px;
    background-color: #ffffff;
    color: #333;
    height: auto;
    box-sizing: border-box;
}

.newsletter-input::placeholder {
    color: #C8C8C8;
    font-size: 16px;
}

/* Arabic font for newsletter inputs and placeholders on Arabic pages */
html[lang="ar"] .newsletter-input,
html[dir="rtl"] .newsletter-input {
    font-family: var(--font-arabic);
}

html[lang="ar"] .newsletter-input::placeholder,
html[dir="rtl"] .newsletter-input::placeholder {
    font-family: var(--font-arabic);
}

.newsletter-input:focus {
    outline: none;
    border-color: var(--primary-red);
}

.newsletter-submit {
    background-color: var(--primary-red);
    color: #ffffff;
    border: none;
    padding: 14px 50px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
    transition: background-color 0.2s ease;
    min-width: 160px;
    box-sizing: border-box;
    height: auto;
}

.newsletter-submit:hover {
    background-color: #7f0000;
}

/* Arabic font for newsletter submit button on Arabic pages */
html[lang="ar"] .newsletter-submit,
html[dir="rtl"] .newsletter-submit {
    font-family: var(--font-arabic);
}

/* Newsletter Message Styles */
.newsletter-message {
    width: 100%;
    padding: 12px 16px;
    margin-top: 10px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    text-align: center;
    display: none;
}

.newsletter-message-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.newsletter-message-error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Arabic font for newsletter message on Arabic pages */
html[lang="ar"] .newsletter-message,
html[dir="rtl"] .newsletter-message {
    font-family: var(--font-arabic);
}

/* Main Footer Section */
.footer-main {
    background-color: var(--primary-blue);
    padding: 25px 0;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
}

/* Top Row: Follow Us & Navigation Links */
.footer-top-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
}

.follow-us-section {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 40px;
}

.footer-heading {
    font-size: 16px;
    font-weight: 400;
    color: #ffffff;
    margin-bottom: 0;
    white-space: nowrap;
}

.follow-us-section .footer-heading {
    margin-bottom: 0;
}

.social-icons {
    display: flex;
    gap: 12px;
    align-items: center;
}

.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.social-icon:hover {
    opacity: 0.7;
}

.social-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.footer-separator {
    width: 100%;
    height: 1px;
    background-color: #ffffff;
    margin: 15px 0;
    opacity: 0.3;
}

.contact-section {
    margin-top: 0;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 40px;
}

.contact-section .footer-heading {
    margin-bottom: 0;
    white-space: nowrap;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #ffffff;
    font-size: 14px;
}

.contact-item-icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    object-fit: contain;
}

.contact-items-row {
    display: flex;
    gap: 60px;
    flex-wrap: wrap;
}

/* Navigation Links */
.footer-nav {
    display: flex;
    gap: 60px;
    flex-wrap: wrap;
    align-items: flex-start;
}

.footer-link {
    color: #ffffff;
    text-decoration: none;
    font-size: 16px;
    font-weight: 400;
    transition: opacity 0.2s ease;
    white-space: nowrap;
}

.footer-link:hover {
    opacity: 0.7;
}

/* Copyright Footer Section */
.copyright-footer {
    background-color: var(--primary-blue);
    padding: 10px 0;
    width: 100%;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.copyright-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.copyright-text {
    color: #ffffff;
    font-size: 14px;
    font-weight: 400;
}

.copyright-dev {
    color: #ffffff;
    font-size: 14px;
    font-weight: 400;
}

.copyright-dev-link {
    color: #ffffff;
    text-decoration: underline;
    transition: opacity 0.2s ease;
}

.copyright-dev-link:hover {
    opacity: 0.8;
}

/* RTL Support for Copyright */
html[dir="rtl"] .copyright-container {
    flex-direction: row-reverse;
}

/* Responsive Design - Footer */
@media (max-width: 768px) {
    .newsletter-container {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
    }
    
    .newsletter-form {
        width: 100%;
        max-width: 100%;
        margin-left: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }
    
    .newsletter-title {
        white-space: normal;
        text-align: center;
    }
    
    .newsletter-input {
        width: 100%;
    }
    
    .newsletter-submit {
        width: 100%;
        min-width: unset;
        padding: 14px 16px;
    }
    
    .footer-top-row {
        flex-direction: column;
        gap: 30px;
    }
    
    .footer-nav {
        gap: 20px;
    }
    
    .contact-items-row {
        flex-direction: column;
        gap: 15px;
    }
    
    .copyright-container {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
}

