/* Footer Styles */
.footer-new {
    position: relative;
    padding-top: 20px;
    background-size: 100% 100%;
    background-position: center bottom;
    background-repeat: no-repeat;
    color: var(--text-main);
    z-index: 10;
    overflow: hidden;
}

@media (max-width: 991px) {
    /* Hide original background image on mobile */
    html[data-theme="light"] .footer-new,
    html[data-theme="dark"] .footer-new {
        background-image: none !important;
    }
    
    /* Create a rotated background to show the edges vertically */
    .footer-new::before {
        content: "";
        position: absolute;
        top: 50%;
        left: 50%;
        width: 250vh; /* Large enough to cover footer height when rotated */
        height: 100vw; /* Matches the screen width exactly */
        transform: translate(-50%, -50%) rotate(90deg);
        z-index: -1;
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
    }
    
    html[data-theme="light"] .footer-new::before {
        background-image: url('../images/footer_bg_light.png');
    }
    
    html[data-theme="dark"] .footer-new::before {
        background-image: url('../images/footer_bg_dark.png');
    }
}

/* Background images for footer */
html[data-theme="light"] .footer-new {
    background-image: url('../images/footer_bg_light.png');
    background-color: #f8fbff;
}

html[data-theme="dark"] .footer-new {
    background-image: url('../images/footer_bg_dark.png');
    background-color: #0c0a00;
}

.footer-overlay {
    position: relative;
    z-index: 2;
}

.footer-col {
    padding: 5px;
}

@media (min-width: 992px) {
    .footer-col {
        padding: 0 15px;
    }
    .footer-col-border {
        border-left: 1px solid rgba(30, 82, 168, 0.2);
    }
    html[dir="rtl"] .footer-col-border {
        border-left: none;
        border-right: 1px solid rgba(30, 82, 168, 0.2);
    }
    
    html[data-theme="dark"] .footer-col-border {
        border-color: rgba(212, 175, 55, 0.3);
    }
}

.footer-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.15rem;
    font-weight: 700;
    font-style: italic;
    margin-bottom: 8px;
    color: var(--text-heading);
}

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

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

.footer-links-list a {
    display: flex;
    align-items: center;
    color: var(--text-main);
    text-decoration: none;
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.footer-links-list a:hover {
    color: var(--accent-color);
    transform: translateX(5px);
}

html[dir="rtl"] .footer-links-list a:hover {
    transform: translateX(-5px);
}

.footer-links-list a i.icon-left {
    margin-right: 12px;
    font-size: 1.1rem;
    color: var(--text-main);
    width: 20px;
    text-align: center;
}

html[dir="rtl"] .footer-links-list a i.icon-left {
    margin-right: 0;
    margin-left: 12px;
}

.footer-links-list a i.icon-right {
    margin-left: auto;
    font-size: 0.8rem;
    color: var(--text-main);
    opacity: 0.5;
}

html[dir="rtl"] .footer-links-list a i.icon-right {
    margin-left: 0;
    margin-right: auto;
    transform: scaleX(-1);
}

/* Support Column */
.footer-divider {
    height: 1px;
    width: 100%;
    background-color: rgba(30, 82, 168, 0.2);
    margin: 10px 0;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

html[data-theme="dark"] .footer-divider {
    background-color: rgba(212, 175, 55, 0.3);
}

.footer-divider {
    border-top: 1px solid rgba(30, 82, 168, 0.2);
    background: none;
    height: 0;
}
html[data-theme="dark"] .footer-divider {
    border-top: 1px solid rgba(212, 175, 55, 0.3);
}
.footer-divider::before {
    content: "◆";
    position: absolute;
    top: -12px;
    background: transparent;
    color: var(--accent-color);
    font-size: 0.8rem;
    text-shadow: 0 0 5px var(--bg-main);
}


.footer-email {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-main);
    text-decoration: none;
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
}

.footer-email i {
    margin-right: 10px;
    font-size: 1.2rem;
}
html[dir="rtl"] .footer-email i {
    margin-right: 0;
    margin-left: 10px;
}

.footer-socials {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.footer-social-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: rgba(30, 82, 168, 0.05);
    border: 1px solid rgba(30, 82, 168, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-main);
    font-size: 0.95rem;
    transition: all 0.3s ease;
    text-decoration: none;
}

html[data-theme="dark"] .footer-social-btn {
    background-color: rgba(212, 175, 55, 0.05);
    border-color: rgba(212, 175, 55, 0.3);
}

.footer-social-btn:hover {
    background-color: var(--accent-color);
    color: var(--btn-primary-text);
    transform: translateY(-3px);
}

.footer-slogan {
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-align: center;
    font-weight: 600;
    white-space: nowrap;
}

.footer-scarab {
    display: none;
    text-align: center;
}

/* We want to show the slogan in dark mode now */
html[data-theme="dark"] .footer-slogan {
    display: block;
}
html[data-theme="dark"] .footer-scarab {
    display: block;
}
.footer-scarab img {
    height: 40px;
    opacity: 0.8;
}

/* App Buttons */
.footer-app-btn {
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #0e2a5c, #1e52a8);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 8px;
    padding: 6px 12px;
    color: #fff !important;
    text-decoration: none;
    margin-bottom: 6px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    width: 100%;
    max-width: 170px;
}

html[data-theme="dark"] .footer-app-btn {
    background: #000;
    border: 1px solid rgba(212, 175, 55, 0.5);
}

.footer-app-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
    color: #fff;
}

.footer-app-icon {
    font-size: 1.4rem;
    margin-right: 10px;
}
html[dir="rtl"] .footer-app-icon {
    margin-right: 0;
    margin-left: 10px;
}

.footer-app-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.footer-app-text-sub {
    font-size: 0.6rem;
    font-family: 'Inter', sans-serif;
    opacity: 0.9;
}

.footer-app-text-main {
    font-size: 0.95rem;
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    line-height: 1.1;
}

/* Copyright Bottom */
.footer-bottom-bar {
    margin-top: 10px;
    padding: 5px 0;
    text-align: center;
    position: relative;
    border-top: 1px solid rgba(30, 82, 168, 0.2);
}

html[data-theme="dark"] .footer-bottom-bar {
    border-top: 1px solid rgba(212, 175, 55, 0.3);
}

.footer-bottom-ornament {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--accent-color);
    font-size: 0.8rem;
    background: var(--bg-main);
    padding: 0 15px;
    display: flex;
    align-items: center;
    white-space: nowrap;
}

.footer-bottom-ornament::before, .footer-bottom-ornament::after {
    content: "";
    display: inline-block;
    width: 30px;
    height: 1px;
    background-color: var(--accent-color);
    opacity: 0.5;
    vertical-align: middle;
}
.footer-bottom-ornament i {
    margin: 0 10px;
}

.footer-copyright {
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    color: #ffffff;
    position: relative;
    z-index: 10;
}

html[data-theme="dark"] .footer-copyright {
    color: var(--accent-color);
}

/* Base style for the absolute bottom to match the image's bottom strip */
.footer-bottom-bg {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 40px;
    background-color: #0b2554;
    z-index: 1;
}

html[data-theme="dark"] .footer-bottom-bg {
    background-color: #060500;
    border-top: 1px solid rgba(212, 175, 55, 0.2);
}

/* Mobile Centering */
@media (max-width: 991px) {
    .footer-col {
        text-align: center;
    }
    .footer-title {
        text-align: center;
    }
    .footer-links-list a {
        justify-content: center;
    }
    .footer-links-list a i.icon-right {
        display: none;
    }
    .footer-app-text {
        align-items: center;
        text-align: center;
    }
    .footer-email {
        justify-content: center;
    }
    .footer-copyright {
        color: var(--accent-color);
    }
    html[data-theme="dark"] .footer-copyright {
        color: var(--accent-color);
    }
}
