/* Footer Styles */
.main-footer {
    /* background: linear-gradient(135deg, #2d3748 0%, #4a5568 50%, #2b6cb0 100%); */
    color: white;
    /* padding: 60px 0 30px 0; */
    border-radius: 20px 20px 0 0;
    margin-top: 50px;
    position: relative;
    overflow: hidden;
}

.main-footer .container {
    background: linear-gradient(135deg, #263D95 0%, #050514 100%);
    border-radius: 30px 30px 0 0;
    padding: 30px;
    margin-bottom: 0;
}

/* .main-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="rgba(255,255,255,0.05)"/><circle cx="75" cy="75" r="1" fill="rgba(255,255,255,0.05)"/><circle cx="50" cy="10" r="0.5" fill="rgba(255,255,255,0.03)"/><circle cx="10" cy="60" r="0.5" fill="rgba(255,255,255,0.03)"/><circle cx="90" cy="40" r="0.5" fill="rgba(255,255,255,0.03)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    pointer-events: none;
} */

.footer-content {
    position: relative;
    z-index: 1;
}

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

.footer-title {
    color: white;
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 20px;
    text-align: right;
    position: relative;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    right: 0;
    width: 40px;
    height: 2px;
    background: linear-gradient(90deg, #60a5fa, #a78bfa);
    border-radius: 1px;
    display: none;
}

/* Contact Info */
.contact-info {
    margin-bottom: 30px;
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
    text-align: right;
    gap: 8px;
    text-decoration: none;
}

.contact-item i {
    margin-left: 10px;
    color: #60a5fa;
    font-size: 16px;
    width: 20px;
    text-align: center;
}

.contact-item img {
    width: 20px;
    height: 20px;
    object-fit: contain;
    flex-shrink: 0;
}

.contact-item span {
    color: #e2e8f0;
    font-size: 14px;
    direction: ltr;
    text-align: right;
}

/* Social Section */
.social-title {
    color: white;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 15px;
    text-align: right;
}

.social-icons {
    display: flex;
    gap: 12px;
    /* justify-content: flex-end; */
}

.social-icon {
    /* width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%; */
    display: flex;
    align-items: center;
    justify-content: center;
    /* color: white; */
    text-decoration: none;
    transition: all 0.3s ease;
    /* backdrop-filter: blur(10px); */
}

/* .social-icon:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    color: white;
}

.social-icon.whatsapp:hover {
    background: rgb(45, 183, 66);
}

.social-icon.instagram:hover {
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
}

.social-icon.twitter:hover {
    background: #1da1f2;
}

.social-icon.youtube:hover {
    background: #ff0000;
} */

/* Footer Links */
.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #e2e8f0;
    text-decoration: none;
    font-size: 13px;
    transition: color 0.3s ease;
    text-align: right;
    display: block;
}

.footer-links a:hover {
    color: #60a5fa;
}

/* App Download */
.app-download {
    display: flex;
    flex-direction: row;
    gap: 12px;
    /* align-items: flex-end; */
}

.app-store-btn,
.google-play-btn {
    display: block;
    transition: transform 0.3s ease;
}

.app-store-btn:hover,
.google-play-btn:hover {
    transform: translateY(-2px);
}

.app-store-btn img,
.google-play-btn img {
    height: 40px !important;
    width: auto !important;
    border-radius: 8px;
}

/* Footer Logo */
.footer-logo {
    margin-bottom: 20px;
}

.footer-logo-img {
    max-height: 55px;
    width: auto;
    filter: brightness(0) invert(1);
}

/* Payment Section */
.payment-section {
    text-align: right;
}

.payment-title {
    color: white;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 15px;
}

.payment-methods {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
    /* justify-content: flex-end; */
    flex-wrap: wrap;
}

.payment-method {
    height: 35px;
    width: auto;
    /* background: white; */
    padding: 5px 8px;
    border-radius: 6px;
    transition: transform 0.3s ease;
}

.payment-method:hover {
    transform: translateY(-2px);
}

.registration-number {
    color: #cbd5e0;
    font-size: 12px;
    margin: 0;
}

/* Newsletter Section */
.newsletter-section {
    text-align: right;
}

.newsletter-title {
    color: white;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 15px;
}

.newsletter-form {
    margin-bottom: 20px;
}

.newsletter-form .input-group {
    direction: rtl;
}

.newsletter-form .form-control {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    padding: 12px 15px;
    border-radius: 8px 0 0 8px;
    text-align: right;
    backdrop-filter: blur(10px);
}

.newsletter-form .form-control::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.newsletter-form .form-control:focus {
    background: rgba(255, 255, 255, 0.15);
    border-color: #60a5fa;
    box-shadow: 0 0 0 0.2rem rgba(96, 165, 250, 0.25);
    color: white;
}

.btn-newsletter {
    background: linear-gradient(135deg, #60a5fa, #a78bfa);
    border: none;
    color: white;
    padding: 12px 20px;
    border-radius: 0 8px 8px 0;
    transition: all 0.3s ease;
}

.btn-newsletter:hover {
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    transform: translateY(-1px);
    color: white;
}

.newsletter-description {
    color: #cbd5e0;
    font-size: 12px;
    line-height: 1.5;
    margin: 0;
}

/* Inline Newsletter Section */
.newsletter-section-inline {
    border-top: none;
    padding-top: 30px;
    margin-top: 20px;
}

.newsletter-content-inline {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
}

.newsletter-text-right {
    flex: 1;
    text-align: right;
}

.newsletter-description-inline {
    color: #cbd5e0;
    font-size: 14px;
    line-height: 1.6;
    margin: 0;
}

.newsletter-form-left {
    flex: 0 0 auto;
    min-width: 400px;
}

.newsletter-title-inline {
    color: white;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 15px;
    text-align: right;
}

.newsletter-form-inline {
    margin: 0;
}

.newsletter-input-wrapper-inline {
    position: relative;
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 6px;
    backdrop-filter: blur(10px);
    /* border: 1px solid rgba(255, 255, 255, 0.2); */
    transition: all 0.3s ease;
    max-width: 350px;
    margin-left: auto;
    height: 44px;
}

.newsletter-input-wrapper-inline:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
}

.newsletter-input-wrapper-inline:focus-within {
    background: rgba(255, 255, 255, 0.15);
    border-color: #60a5fa;
    box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.2);
}

.newsletter-input-inline {
    background: transparent !important;
    border: none !important;
    color: white;
    padding: 0px 15px;
    font-size: 14px;
    text-align: right;
    flex: 1;
    outline: none;
    box-shadow: none !important;
}

.newsletter-input-inline::placeholder {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
}

.newsletter-input-inline:focus {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    color: white;
}

.btn-newsletter-icon-inline {
    background: transparent;
    background-color: transparent !important;
    border: 0 !important;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    flex-shrink: 0;
    margin-left: 0px;
}

.btn-newsletter-icon-inline.submit:hover, .btn-newsletter-icon-inline[type='submit']:hover {
    background: transparent;
    background-color: transparent !important;
    border: 0 !important;
}

.btn-newsletter-icon-inline:hover {
    background: transparent;
    background-color: transparent !important;
    border: 0 !important;
    transform: scale(1.05);
    color: white;
    /* box-shadow: 0 4px 15px rgba(96, 165, 250, 0.4); */
}

.btn-newsletter-icon-inline:focus {
    /* box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.3); */
    color: white;
}

.btn-newsletter-icon-inline {
    padding: 0 !important;
    transform: rotate(270deg);
}

.btn-newsletter-icon-inline i {
    font-size: 16px;
}

/* Horizontal Newsletter Section */
.newsletter-section-horizontal {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
    margin-top: 20px;
}

.newsletter-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
}

.newsletter-text {
    flex: 1;
}

.newsletter-text .newsletter-description {
    color: #cbd5e0;
    font-size: 14px;
    line-height: 1.6;
    margin: 0;
    text-align: right;
}

.newsletter-form-wrapper {
    flex: 0 0 auto;
    min-width: 400px;
}

.newsletter-form-wrapper .newsletter-title {
    color: white;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 15px;
    text-align: right;
}

.newsletter-form-wrapper .newsletter-form {
    margin-bottom: 0;
}

.newsletter-form-wrapper .input-group {
    direction: rtl;
    max-width: 350px;
    margin-left: auto;
}

.newsletter-form-wrapper .form-control {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    padding: 12px 15px;
    border-radius: 8px 0 0 8px;
    text-align: right;
    backdrop-filter: blur(10px);
    font-size: 14px;
}

.newsletter-form-wrapper .form-control::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.newsletter-form-wrapper .form-control:focus {
    background: rgba(255, 255, 255, 0.15);
    border-color: #60a5fa;
    box-shadow: 0 0 0 0.2rem rgba(96, 165, 250, 0.25);
    color: white;
}

.newsletter-form-wrapper .btn-newsletter {
    background: linear-gradient(135deg, #60a5fa, #a78bfa);
    border: none;
    color: white;
    padding: 12px 20px;
    border-radius: 0 8px 8px 0;
    transition: all 0.3s ease;
}

.newsletter-form-wrapper .btn-newsletter:hover {
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    transform: translateY(-1px);
    color: white;
}

/* Responsive Design */
@media (max-width: 991px) {
    .main-footer {
        padding: 40px 0 0 0 !important;
        margin-top: 30px;
        margin-bottom: 0 !important;
    }
    
    .main-footer .container {
        margin-bottom: 0 !important;
        border-radius: 30px 30px 0 0 !important;
    }
    
    .footer-section {
        margin-bottom: 25px;
        text-align: center;
    }
    
    .footer-title::after {
        left: 50%;
        transform: translateX(-50%);
        right: auto;
    }
    
    .contact-item {
        justify-content: center;
    }
    
    .social-icons {
        justify-content: center;
    }
    
    .app-download {
        align-items: center;
        justify-content: center;
    }
    
    .payment-methods {
        justify-content: center;
    }
    
    .payment-section,
    .newsletter-section {
        text-align: center;
    }
    
    /* Inline Newsletter - Tablet */
    .newsletter-content-inline {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    .newsletter-text-right {
        text-align: center;
    }
    
    .newsletter-form-left {
        min-width: auto;
        width: 100%;
    }
    
    .newsletter-input-wrapper-inline {
        max-width: 100%;
        margin-left: 0;
        margin: 0 auto;
    }
    
    .newsletter-title-inline {
        text-align: center;
    }
    
    /* Horizontal Newsletter - Mobile */
    .newsletter-content {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    .newsletter-form-wrapper {
        min-width: auto;
        width: 100%;
    }
    
    .newsletter-form-wrapper .input-group {
        max-width: 100%;
        margin-left: 0;
    }
    
    .newsletter-text .newsletter-description {
        text-align: center;
    }
}

@media (max-width: 768px) {
    .main-footer {
        padding: 15px 0 0 0 !important;
        border-radius: 15px 15px 0 0;
        margin-bottom: 0 !important;
    }
    
    .main-footer .container {
        margin-bottom: 0 !important;
        border-radius: 15px 15px 0 0 !important;
        padding: 22px 12px 15px 12px !important;
    }

    .footer-divider {
        display: block !important;
        border: 0 !important;
        height: 1px !important;
        background-color: rgb(255 255 255 / 40%) !important;
        margin: 15px 0 !important;
        opacity: 1 !important;
    }

    .app-download-section {
        margin-top: 0 !important;
        margin-bottom: 12px !important;
    }

    .app-download-section .footer-title {
        position: relative;
        top: -2px !important;
    }

    .footer-section {
        margin-bottom: 8px !important;
    }

    .contact-info {
        margin-bottom: 4px !important;
    }

    .social-section {
        margin-top: 4px !important;
    }

    .footer-copyright {
        margin-bottom: 8px !important;
    }
    
    .footer-title {
        font-size: 13px !important;
        margin-bottom: 6px !important;
        text-align: center;
    }
    
    .contact-item {
        margin-bottom: 4px !important;
    }
    
    .contact-item span {
        font-size: 11px !important;
    }
    
    .social-icons {
        gap: 8px !important;
    }

    .social-icon {
        width: 28px !important;
        height: 28px !important;
    }

    .social-icon img {
        width: 24px !important;
        height: 24px !important;
    }
    
    .app-store-btn img,
    .google-play-btn img {
        height: 32px !important;
        width: auto !important;
    }
    
    .payment-title {
        font-size: 13px !important;
        margin-bottom: 6px !important;
    }

    .payment-methods {
        gap: 6px !important;
        margin-bottom: 4px !important;
    }

    .payment-method {
        height: 22px !important;
        padding: 2px 4px !important;
    }
    
    .registration-number {
        font-size: 11px !important;
        margin-top: 2px !important;
    }

    .footer-logo {
        margin-bottom: 6px !important;
    }

    .footer-logo-img {
        max-height: 30px !important;
    }

    .footer-slogan {
        font-size: 11px !important;
        line-height: 1.4 !important;
    }

    .footer-links li {
        margin-bottom: 0px !important;
    }

    .footer-links a {
        font-size: 12px !important;
    }
    
    .newsletter-form .form-control,
    .btn-newsletter {
        padding: 10px 12px;
    }
    
    .newsletter-form-wrapper .form-control,
    .newsletter-form-wrapper .btn-newsletter {
        padding: 10px 12px;
    }
    
    .newsletter-section-horizontal {
        padding-top: 20px;
        margin-top: 15px;
    }
    
    .newsletter-content {
        gap: 15px;
    }
    
    /* Inline Newsletter - Mobile */
    .newsletter-section-inline {
        padding-top: 20px;
        margin-top: 15px;
    }
    
    .newsletter-content-inline {
        gap: 15px;
    }
    
    .newsletter-description-inline {
        font-size: 11px !important;
        line-height: 1.4 !important;
    }
    
    .newsletter-title-inline {
        font-size: 15px;
        margin-bottom: 12px;
    }
    
    .newsletter-input-wrapper-inline {
        padding: 5px;
        max-width: 320px;
    }
    
    .newsletter-input-inline {
        padding: 10px 12px;
        font-size: 13px;
    }
    
    .newsletter-input-inline::placeholder {
        font-size: 13px;
    }
    
    .btn-newsletter-icon-inline {
        width: 35px;
        height: 35px;
    }
    
    .btn-newsletter-icon-inline i {
        font-size: 14px;
    }

    .social-title , .footer-links a{
        text-align: center;
    }

    .btn-newsletter-icon-inline.submit, .btn-newsletter-icon-inline[type='submit'] {
        background: transparent !important;
    }
}

@media (max-width: 480px) {
    .payment-methods {
        gap: 6px !important;
        margin-bottom: 4px !important;
    }
    
    .payment-method {
        height: 20px !important;
        padding: 2px 4px !important;
    }
    
    .social-icons {
        gap: 6px !important;
    }
    
    .social-icon {
        width: 26px !important;
        height: 26px !important;
    }

    .social-icon img {
        width: 22px !important;
        height: 22px !important;
    }

    .app-store-btn img,
    .google-play-btn img {
        height: 30px !important;
    }
    
    .newsletter-form-wrapper {
        min-width: auto;
    }
    
    .newsletter-form-wrapper .input-group {
        flex-direction: column;
        gap: 10px;
    }
    
    .newsletter-form-wrapper .form-control {
        border-radius: 8px;
        text-align: center;
    }
    
    .newsletter-form-wrapper .btn-newsletter {
        border-radius: 8px;
        width: 100%;
    }
    
    /* Inline Newsletter - Small Mobile */
    .newsletter-section-inline {
        padding-top: 15px;
        margin-top: 10px;
    }
    
    .newsletter-content-inline {
        gap: 12px;
    }
    
    .newsletter-description-inline {
        font-size: 11px !important;
        line-height: 1.4 !important;
    }
    
    .newsletter-title-inline {
        font-size: 14px;
        margin-bottom: 10px;
    }
    
    .newsletter-input-wrapper-inline {
        padding: 4px;
        max-width: 280px;
        border-radius: 40px;
    }
    
    .newsletter-input-inline {
        padding: 8px 10px;
        font-size: 12px;
    }
    
    .newsletter-input-inline::placeholder {
        font-size: 12px;
    }
    
    .btn-newsletter-icon-inline {
        width: 32px;
        height: 32px;
    }
    
    .btn-newsletter-icon-inline i {
        font-size: 12px;
    }
}

/* RTL Support */
[dir="rtl"] .footer-title::after {
    right: 0;
    left: auto;
}

[dir="rtl"] .contact-item {
    flex-direction: row-reverse;
}

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

[dir="rtl"] .newsletter-form .input-group {
    direction: rtl;
}

[dir="rtl"] .newsletter-form .form-control {
    text-align: right;
}

/* ========================================================
   Footer Text Color Overrides - Force all text to white
   ======================================================== */
.main-footer,
.main-footer p,
.main-footer span,
.main-footer h4,
.main-footer h5,
.main-footer h6,
.main-footer li,
.main-footer .footer-title,
.main-footer .contact-item span,
.main-footer .social-title {
    color: #ffffff !important;
}

.main-footer a {
    color: #ffffff !important;
}

.main-footer a:hover {
    color: #60a5fa !important;
}

/* Floating WhatsApp Button */
.floating-whatsapp {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 55px;
    height: 55px;
    background-color: rgb(45, 183, 66);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    z-index: 9999;
    transition: all 0.3s ease;
}

.floating-whatsapp:hover {
    transform: scale(1.1) translateY(-3px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
}

.floating-whatsapp img {
    width: 33px;
    height: 33px;
    /* object-fit: contain;
    filter: brightness(0) invert(1); */
}

@media (max-width: 768px) {
    .floating-whatsapp {
        bottom: 20px;
        right: 20px;
        width: 56px;
        height: 56px;
    }
    
    .floating-whatsapp img {
        width: 28px;
        height: 28px;
    }
}

.app-download-section .footer-title {
    position: relative;
    top: -2px;
}