.main-footer {
    background-color: #0f172a; /* Slate 900 - Always Dark */
    color: #cbd5e1; /* Slate 300 */
    font-size: 0.95rem;
    position: relative;
    overflow: hidden;
}

/* Footer Heading */
.footer-heading::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 40px;
    height: 3px;
    background-color: var(--primary-color);
    border-radius: 2px;
}

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

/* Social Links */
.social-btn {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(255, 255, 255, 0.05);
    color: #fff;
    border-radius: 50%;
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-btn:hover {
    background-color: var(--primary-color);
    color: #fff;
    transform: translateY(-3px);
}

/* Footer Links */
.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #94a3b8; /* Slate 400 */
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}

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

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

.hover-white:hover {
    color: #fff !important;
}

/* App Buttons */
.main-footer .btn-outline-light {
    border-color: rgba(255,255,255,0.2);
    color: #fff;
}

.main-footer .btn-outline-light:hover {
    background-color: #fff;
    color: #0f172a;
    border-color: #fff;
}

/* Ensure Store Buttons are Styled in Footer to look like official badges */
.main-footer .btn-store {
    padding: 8px 20px !important;
    border-radius: 10px !important; /* Rounded corners like official badges */
    display: flex;
    align-items: center;
    gap: 15px !important;
    transition: all 0.3s ease;
    border: 1px solid #4a4a4a !important; /* Subtle border */
    background: #000000 !important; /* Solid Black Background */
    color: white !important;
    box-shadow: 0 4px 6px rgba(0,0,0,0.3) !important;
    text-decoration: none !important;
    min-width: 180px;
    justify-content: flex-start; /* Align content to start */
}

.main-footer .btn-store i {
    font-size: 32px !important; /* Larger icon */
    line-height: 1;
    display: flex;
    align-items: center;
}

/* Apple Icon */
.main-footer .btn-store i.bi-apple {
    color: #fff;
    margin-bottom: 4px; /* Slight adjustment */
}

/* Google Play Icon - Gradient Effect */
.main-footer .btn-store i.bi-google-play {
    background: linear-gradient(135deg, #4285f4 0%, #34a853 25%, #fbbc05 50%, #ea4335 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    /* Fallback for browsers not supporting background-clip: text */
    color: #fff; 
}

/* Support for Firefox/others if background-clip doesn't work well on icons */
@supports not ((background-clip: text) or (-webkit-background-clip: text)) {
    .main-footer .btn-store i.bi-google-play {
        color: #fff; /* Fallback to white */
        background: none;
    }
}

.main-footer .btn-store .store-text {
    text-align: left;
    display: flex;
    flex-direction: column;
    justify-content: center;
    line-height: 1.1;
}

[dir="rtl"] .main-footer .btn-store .store-text {
    text-align: right;
}

.main-footer .btn-store .store-text small {
    display: block;
    font-size: 0.65rem !important;
    text-transform: uppercase;
    opacity: 0.9;
    font-weight: 400;
    margin-bottom: 2px;
    letter-spacing: 0.5px;
}

.main-footer .btn-store .store-text strong {
    display: block;
    font-size: 1.1rem !important;
    font-weight: 600;
    letter-spacing: 0.3px;
}

.main-footer .btn-store:hover {
    background: #1a1a1a !important; /* Dark Grey on Hover */
    border-color: #666 !important;
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.4) !important;
    color: white !important;
}

/* Ensure icons don't change color on hover in a weird way */
.main-footer .btn-store:hover i.bi-apple {
    color: #fff;
}
