/* ========================================
   Footer - Modern Light Design
   ======================================== */

.site-footer {
    background: #154D71;
    border-top: 1px solid #1C6EA4;
    padding: 4rem 0 0;
    color: #ffffff;
}

/* Footer Main Content */
.footer-main {
    padding-bottom: 3rem;
    border-bottom: 1px solid #1C6EA4;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 3rem;
    text-align: start;
}

/* Footer Column */
.footer-column {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    align-items: flex-start;
}



/* Footer Logo */
.footer-logo {
    display: block;
    max-width: 180px;
    height: auto;
}

.footer-logo img {
    width: 100%;
    height: auto;
    display: block;
}

/* Footer About */
.footer-about {
    font-size: 0.938rem;
    line-height: 1.7;
    color: #e5e7eb;
    margin: 0;
}

/* Footer Heading */
.footer-heading {
    font-size: 1.125rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 1rem 0;
}

/* Footer Menu */
.footer-menu {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-menu li {
    margin: 0;
}

.footer-menu a {
    color: #e5e7eb;
    text-decoration: none;
    font-size: 0.938rem;
    transition: all 0.3s ease;
    display: inline-block;
    position: relative;
}

.footer-menu a:hover {
    color: #33A1E0;
    transform: translateX(4px);
}

[dir="rtl"] .footer-menu a:hover {
    transform: translateX(-4px);
}

/* Contact Info */
.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 0.875rem;
    font-size: 0.938rem;
    line-height: 1.6;
}

.footer-contact-icon {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    color: #33A1E0;
    margin-top: 2px;
}

.footer-contact-text {
    color: #e5e7eb;
}

.footer-contact-text a {
    color: #e5e7eb;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-contact-text a:hover {
    color: #33A1E0;
}

/* Phone number LTR direction */
.footer-contact-item:has(svg[viewBox="0 0 24 24"] path[d*="M3 5a2 2 0 012-2h3.28"]) .footer-contact-text,
.footer-contact-item:has(svg path[d*="M3 5a2 2 0 012-2h3.28"]) .footer-contact-text a {
    direction: ltr;
    text-align: left;
    display: inline-block;
}

/* Newsletter Form */
.footer-newsletter {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-newsletter-desc {
    font-size: 0.875rem;
    color: #e5e7eb;
    line-height: 1.6;
    margin: 0;
}

.footer-newsletter-message {
    padding: 0.75rem 1rem;
    border-radius: 8px;
    font-size: 0.875rem;
    margin: 0;
}

.footer-newsletter-message.success {
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #6ee7b7;
}

.footer-newsletter-message.error {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fca5a5;
}

.footer-newsletter-form {
    display: flex;
    gap: 0.5rem;
}

.footer-newsletter-input {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 1px solid #1C6EA4;
    border-radius: 8px;
    font-size: 0.938rem;
    color: #1f2937;
    background: white;
    transition: all 0.3s ease;
}

.footer-newsletter-input:focus {
    outline: none;
    border-color: #33A1E0;
    box-shadow: 0 0 0 3px rgba(51, 161, 224, 0.2);
}

.footer-newsletter-input::placeholder {
    color: #9ca3af;
}

.footer-newsletter-button {
    padding: 0.75rem 1.5rem;
    background: #33A1E0;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 0.938rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.footer-newsletter-button:hover {
    background: #1C6EA4;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(51, 161, 224, 0.3);
}

/* Footer Bottom */
.footer-bottom {
    padding: 2rem 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
    text-align: start;
}

.footer-copyright {
    color: #e5e7eb;
    font-size: 0.875rem;
    margin: 0;
}

[dir="rtl"] .footer-bottom {
    flex-direction: row-reverse;
}

/* Social Media Links */
.footer-social {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.footer-social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    background: #1C6EA4;
    border: none;
    border-radius: 50%;
    color: #ffffff;
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-social-link:hover {
    background: #33A1E0;
    border-color: #33A1E0;
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(51, 161, 224, 0.3);
}

.footer-social-link svg {
    width: 18px;
    height: 18px;
}

/* ======================================
   Responsive Design
   ====================================== */

/* Large Tablets */
@media (max-width: 991px) {
    .site-footer {
        padding: 3rem 0 0;
    }

    .footer-main {
        padding-bottom: 2.5rem;
    }

    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 2.5rem;
    }

    .footer-column:first-child {
        grid-column: 1 / -1;
    }
}

/* Tablets */
@media (max-width: 768px) {
    .site-footer {
        padding: 2.5rem 0 0;
    }

    .footer-main {
        padding-bottom: 2rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-column:first-child {
        grid-column: 1;
    }

    .footer-heading {
        font-size: 1rem;
    }

    .footer-newsletter-form {
        flex-direction: column;
    }

    .footer-newsletter-button {
        width: 100%;
    }

    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
        padding: 1.5rem 0;
    }

    [dir="rtl"] .footer-bottom {
        align-items: flex-end;
		justify-content: center;
    }
}

/* Mobile */
@media (max-width: 640px) {
    .site-footer {
        padding: 2rem 0 0;
    }

    .footer-main {
        padding-bottom: 1.5rem;
    }

    .footer-content {
        gap: 1.75rem;
    }

    .footer-column {
        gap: 1.25rem;
    }

    .footer-logo {
        max-width: 150px;
    }

    .footer-about,
    .footer-menu a,
    .footer-contact-item,
    .footer-newsletter-desc {
        font-size: 0.875rem;
    }

    .footer-heading {
        font-size: 0.938rem;
        margin-bottom: 0.875rem;
    }

    .footer-menu {
        gap: 0.625rem;
    }

    .footer-contact {
        gap: 0.875rem;
    }

    .footer-contact-icon {
        width: 18px;
        height: 18px;
    }

    .footer-newsletter-input,
    .footer-newsletter-button {
        font-size: 0.875rem;
        padding: 0.625rem 0.875rem;
    }

    .footer-social {
        gap: 0.75rem;
        justify-content: flex-start;
    }

    [dir="rtl"] .footer-social {
        justify-content: flex-end;
    }

    .footer-social-link {
        width: 46px;
        height: 46px;
    }

    .footer-social-link svg {
        width: 16px;
        height: 16px;
    }

    .footer-copyright {
        font-size: 0.813rem;
    }

    .footer-bottom {
        padding: 1.25rem 0;
        gap: 1.25rem;
    }
}

/* RTL Adjustments */
[dir="rtl"] .footer-menu a {
    text-align: right;
}

