/**
 * Enhanced Footer Styles
 * Features:
 * - Email newsletter section prioritized (first on mobile)
 * - App download buttons integrated
 * - Theme color #b38f4b throughout
 * - Clean, minimal design with reduced spacing
 * - Full RTL support
 * - Mobile-first responsive
 */

/* ========================================
   Footer Base Styles
======================================== */

.tg-footer-area {
    background: #000000 !important;
    position: relative;
    line-height: 15px !important;
}

/* Explicit class to force black footer when used in templates */
.site-footer--black,
.site-footer--black .tg-footer-area {
    background: #000000 !important;
}

.tg-footer-area::before {
    display: none !important;
}

/* Remove default background patterns */
.tg-footer-area.include-bg {
    background-image: none !important;
}

.tg-footer-top {
    padding-top: 30px;
    padding-bottom: 20px;
}

/* ========================================
   Newsletter Section (Priority: First on Mobile)
======================================== */

.tg-footer-newsletter {
    background: transparent;
    border: 1px solid rgba(179, 143, 75, 0.3);
    border-radius: 8px;
    padding: 25px 20px;
    margin-bottom: 15px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.tg-footer-newsletter-icon {
    display: none;
}

.tg-footer-newsletter h3 {
    color: #b38f4b;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 15px;
}

.tg-footer-newsletter p {
    display: none;
}

.tg-footer-newsletter-form {
    max-width: 100%;
    position: relative;
}

.tg-footer-newsletter-form input {
    width: 100%;
    height: 48px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(179, 143, 75, 0.3);
    border-radius: 6px;
    padding: 0 120px 0 20px;
    font-size: 14px;
    color: #fff;
    transition: all 0.3s ease;
}

.tg-footer-newsletter-form input:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.08);
    border-color: #b38f4b;
    box-shadow: 0 0 0 2px rgba(179, 143, 75, 0.1);
}

.tg-footer-newsletter-form input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.tg-footer-newsletter-form button {
    position: absolute;
    right: 4px;
    top: 50%;
    transform: translateY(-50%);
    height: 40px;
    padding: 0 20px;
    background: #b38f4b;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tg-footer-newsletter-form button:hover {
    background: #9a7a40;
    transform: translateY(-50%) scale(1.02);
}

.tg-footer-newsletter-form button svg {
    margin-left: 6px;
    vertical-align: middle;
    width: 14px;
    height: 14px;
}

/* RTL Support for Newsletter */
[dir="rtl"] .tg-footer-newsletter-form input {
    padding: 0 20px 0 120px;
    text-align: right;
}

[dir="rtl"] .tg-footer-newsletter-form button {
    right: auto;
    left: 4px;
}

[dir="rtl"] .tg-footer-newsletter-form button svg {
    margin-left: 0;
    margin-right: 6px;
    transform: rotate(180deg);
}

/* ========================================
   Footer Main Content
======================================== */

.tg-footer-widget {
    margin-bottom: 0px;
}

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

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

.tg-footer-widget p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    line-height: 1.6;
}

/* Header white logo with black glow */
.site-logo--white {
    display: inline-block;
    /* subtle black glow */
    filter: drop-shadow(0 0 6px rgba(0, 0, 0, 0.9));
    -webkit-filter: drop-shadow(0 0 6px rgba(0, 0, 0, 0.9));
}

/* Black button variant used across header, homepage and modals */
.tg-btn--black {
    background: #000000 !important;
    color: #ffffff !important;
    border: none !important;
    box-shadow: none !important;
}

.tg-btn--black .btn-text,
.tg-btn--black .btn-icon svg {
    color: #ffffff !important;
}

.tg-btn--black:hover {
    background: #111111 !important;
    transform: none !important;
}

/* OTP dialog specific link colors (Change / Resend) */
#verifyMobileOtpSection a#change_mobile_number,
#resend-otp-container a#resend_otp {
    color: #b38f4b !important;
}

/* Make terms links use theme color across dialogs */
.text-main {
    color: #b38f4b !important;
}

/* Checkbox + label inline and RTL-friendly */
.checkbox {
    display: flex;
    /*align-items: center;*/
    gap: 8px;
    /*justify-content: flex-end;*/
    align-items: baseline;
}
[dir="rtl"] .checkbox{
    justify-content: flex-end;
}


.checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin: 0;
}

.checkbox label {
    margin: 0;
    line-height: 1.2;
}

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

/* Ensure correct visual order in RTL by explicit ordering */
.checkbox input[type="checkbox"] {
    order: 0;
}

.checkbox label {
    order: 1;
}

[dir="rtl"] .checkbox input[type="checkbox"] {
    order: 1;
}

[dir="rtl"] .checkbox label {
    order: 0;
}

/* Add space above checkbox section inside OTP / registration (modal) */
#verifyMobileOtpSection .checkbox-option,
#sendMobileOtpSection .checkbox-option {
    margin-top: 12px;
}

/* Simple inline toast used for login/registration success */
.simple-toast {
    position: fixed;
    top: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.85);
    color: #fff;
    padding: 10px 14px;
    border-radius: 6px;
    z-index: 99999;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
    font-size: 14px;
}

.tg-footer-widget-title {
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 12px;
}

.tg-footer-widget-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 2px;
    background: #b38f4b;
    border-radius: 2px;
}

[dir="rtl"] .tg-footer-widget-title::after {
    left: auto;
    right: 0;
}

/* ========================================
   App Download Buttons
======================================== */

.tg-footer-apps {
    margin-top: 20px;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.tg-footer-apps a {
    display: inline-block;
    transition: all 0.3s ease;
}

.tg-footer-apps a img {
    height: 40px;
    width: auto;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.tg-footer-apps a:hover {
    transform: translateY(-3px);
}

.tg-footer-apps a:hover img {
    box-shadow: 0 4px 15px rgba(179, 143, 75, 0.4);
}

/* ========================================
   Social Media Icons
======================================== */

.tg-footer-social {
    display: flex;
    gap: 10px;
    margin-top: 20px;
    margin-bottom: 20px;
}

.tg-footer-social a {
    width: 38px;
    height: 38px;
    background: rgba(179, 143, 75, 0.15);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #b38f4b;
    font-size: 15px;
    transition: all 0.3s ease;
}

.tg-footer-social a:hover {
    background: #b38f4b;
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(179, 143, 75, 0.3);
}

/* ========================================
   Footer Links
======================================== */

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

.tg-footer-link ul li {
    margin-bottom: 10px;
}

.tg-footer-link ul li a {
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    transition: all 0.3s ease;
    position: relative;
    padding-left: 18px;
}

.tg-footer-link ul li a::before {
    content: '→';
    position: absolute;
    left: 0;
    opacity: 0;
    transition: all 0.3s ease;
    color: #b38f4b;
}

.tg-footer-link ul li a:hover {
    color: #b38f4b;
    padding-left: 22px;
}

.tg-footer-link ul li a:hover::before {
    opacity: 1;
    left: 0;
}

[dir="rtl"] .tg-footer-link ul li a {
    padding-left: 0;
    padding-right: 18px;
}

[dir="rtl"] .tg-footer-link ul li a::before {
    content: '←';
    left: auto;
    right: 0;
}

[dir="rtl"] .tg-footer-link ul li a:hover {
    padding-left: 0;
    padding-right: 22px;
}

/* ========================================
   Footer Information
======================================== */

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

.tg-footer-info ul li {
    margin-bottom: 15px;
    display: flex;
    align-items: flex-start;
}

.tg-footer-info ul li a,
.tg-footer-info ul li p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    line-height: 1.6;
    transition: color 0.3s ease;
}

.tg-footer-info ul li a:hover {
    color: #b38f4b;
}

.tg-footer-info ul li span {
    flex-shrink: 0;
    margin-right: 12px;
}

.tg-footer-info ul li svg,
.tg-footer-info ul li i {
    color: #b38f4b;
}

[dir="rtl"] .tg-footer-info ul li span {
    margin-right: 0;
    margin-left: 12px;
}

/* ========================================
   Footer Copyright
======================================== */

.tg-footer-copyright {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 10px 0;
    margin-top: 20px;
}

.tg-footer-copyright span {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
}

.tg-footer-copyright a {
    color: #b38f4b;
    font-weight: 600;
    transition: color 0.3s ease;
}

.tg-footer-copyright a:hover {
    color: #9a7a40;
}

/* ========================================
   Mobile Responsive Styles
======================================== */

@media (max-width: 991px) {
    .tg-footer-top {
        padding-top: 0px;
        padding-bottom: 15px;
    }

    .tg-footer-newsletter {
        padding: 20px 15px;
        margin-bottom: 25px;
    }

    .tg-footer-newsletter h3 {
        font-size: 16px;
    }

    .tg-footer-link.ml-80 {
        margin-left: 0 !important;
    }

    .tg-footer-widget {
        margin-bottom: 25px;
    }

    .tg-footer-copyright {
        padding: 15px 0;
        margin-top: 0px;
    }
}

@media (max-width: 767px) {
    .tg-footer-newsletter {
        padding: 20px 15px;
        border-radius: 6px;
    }

    .tg-footer-newsletter h3 {
        font-size: 16px;
        margin-bottom: 12px;
        text-align: center;
    }

    .tg-footer-newsletter-form input {
        height: 46px;
        padding: 0 110px 0 15px;
        font-size: 13px;
    }

    .tg-footer-newsletter-form button {
        height: 38px;
        padding: 0 16px;
        font-size: 13px;
    }

    [dir="rtl"] .tg-footer-newsletter-form input {
        padding: 0 15px 0 110px;
    }

    .tg-footer-apps {
        gap: 10px;
        justify-content: center;
    }

    .tg-footer-apps a img {
        height: 42px;
    }

    .tg-footer-social {
        justify-content: center;
    }

    .tg-footer-widget-title {
        font-size: 16px;
        text-align: center;
        margin-bottom: 18px;
    }

    .tg-footer-widget-title::after {
        left: 50%;
        transform: translateX(-50%);
    }

    /* Fix RTL underline alignment on mobile */
    [dir="rtl"] .tg-footer-widget-title::after {
        right: auto;
        left: 50%;
        transform: translateX(-50%);
    }

    .tg-footer-link ul,
    .tg-footer-info ul {
        text-align: center;
    }

    .tg-footer-link ul li {
        margin-bottom: 15px;
        display: inline-block;
        margin-right: 15px;
        margin-left: 15px;
    }

    .tg-footer-link ul li a {
        padding-left: 0;
    }

    .tg-footer-link ul li a::before {
        display: none;
    }

    .tg-footer-info ul li {
        justify-content: center;
        margin-bottom: 12px;
    }

    [dir="rtl"] .tg-footer-link ul li a {
        padding-right: 0;
    }
}

@media (max-width: 575px) {
    .tg-footer-newsletter-form {
        max-width: 100%;
    }

    .tg-footer-logo {
        text-align: center;
    }

    .tg-footer-widget p {
        text-align: center;
        font-size: 13px;
    }

    .tg-footer-widget {
        margin-bottom: 0px;
    }
}