/* ===================================
    Golden Vet - Footer Styles
    =================================== */

/* CSS Variables for consistent theming */
:root {
    --primary-color: #0072BC; /* Golden Vet Blue */
    --secondary-color: #4CAF50; /* Golden Vet Green */
    --text-color: #333;
    --text-light: #666;
    --white: #ffffff;
    --light-bg: #f8f9fa;
    --border-color: #e0e0e0;
    --transition: all 0.3s ease;
    --shadow-light: 0 5px 15px rgba(0, 0, 0, 0.08);
    --shadow-medium: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Base Footer Styles */
.footer-advanced {
    background: linear-gradient(180deg, #005697 0%, #0072BC 100%); /* Deep blue gradient */
    color: var(--white);
    padding: 20px 0 20px; /* Reduced top padding from 60px to 20px to bring footer closer */
    font-family: 'Inter', sans-serif; /* Consistent font */
}

/* RTL Styles */
[dir="rtl"] .footer-advanced {
    direction: rtl;
    text-align: right;
}

/* LTR Styles */
[dir="ltr"] .footer-advanced {
    direction: ltr;
    text-align: left;
}

/* Main Footer Content Grid */
.footer-main {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); /* Responsive columns */
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px; /* Horizontal padding */
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding-bottom: 40px;
    margin-bottom: 30px;
}

/* Individual Footer Sections */
.footer-section {
    padding: 15px 0;
}

.footer-section h4 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 25px;
    color: var(--white);
    position: relative;
    padding-bottom: 10px;
}

.footer-section h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    width: 50px;
    height: 3px;
    background-color: var(--secondary-color); /* Green accent */
    border-radius: 2px;
}

/* RTL specific positioning */
[dir="rtl"] .footer-section h4::after {
    right: 0;
}

/* LTR specific positioning */
[dir="ltr"] .footer-section h4::after {
    left: 0;
}

.footer-section p {
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 15px;
    color: rgba(255, 255, 255, 0.8);
}

.footer-section p a {
    color: var(--white);
    text-decoration: none;
    transition: var(--transition);
}

.footer-section p a:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

/* Social Links */
.social-links {
    display: flex;
    gap: 15px;
    margin-top: 25px;
}

/* RTL Social Links */
[dir="rtl"] .social-links {
    justify-content: flex-end;
}

/* LTR Social Links */
[dir="ltr"] .social-links {
    justify-content: flex-start;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.15);
    color: var(--white);
    font-size: 1.1rem;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.social-links a:hover {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Quick Links and Services Lists */
.footer-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-section ul li {
    margin-bottom: 12px;
}

.footer-section ul li:last-child {
    margin-bottom: 0;
}

.footer-section ul li a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 0.95rem;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative;
}

.footer-section ul li a::before {
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    font-size: 0.7rem;
    color: var(--secondary-color);
    transition: all 0.3s ease;
}

.footer-section ul li a:hover {
    color: var(--secondary-color);
}

/* RTL specific styles */
[dir="rtl"] .footer-section ul li a::before {
    content: '\f100'; /* FontAwesome chevron-left for RTL list items */
    margin-left: 8px;
}

[dir="rtl"] .footer-section ul li a:hover {
    transform: translateX(-5px); /* Move slightly left on hover for RTL */
}

[dir="rtl"] .footer-section ul li a:hover::before {
    margin-left: 12px; /* Move icon further left on hover */
}

/* LTR specific styles */
[dir="ltr"] .footer-section ul li a::before {
    content: '\f101'; /* FontAwesome chevron-right for LTR list items */
    margin-right: 8px;
}

[dir="ltr"] .footer-section ul li a:hover {
    transform: translateX(5px); /* Move slightly right on hover for LTR */
}

[dir="ltr"] .footer-section ul li a:hover::before {
    margin-right: 12px; /* Move icon further right on hover */
}

/* Footer Bottom */
.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

/* RTL Footer Bottom */
[dir="rtl"] .footer-bottom {
    text-align: right;
}

/* LTR Footer Bottom */
[dir="ltr"] .footer-bottom {
    text-align: left;
}

.payment-icons {
    display: flex;
    gap: 15px;
    font-size: 1.8rem;
    color: rgba(255, 255, 255, 0.7);
}

/* Responsive Adjustments */
@media (max-width: 992px) {
    .footer-main {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        padding: 0 20px;
    }

    .footer-advanced {
        padding: 40px 0 15px;
    }

    .footer-section h4 {
        font-size: 1.3rem;
        margin-bottom: 20px;
    }

    .footer-section p,
    .footer-section ul li a {
        font-size: 0.9rem;
    }

    .social-links {
        justify-content: flex-start; /* Adjust for smaller screens if needed */
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 15px;
        padding: 0 20px;
    }

    .payment-icons {
        margin-top: 10px;
    }
}

@media (max-width: 768px) {
    .footer-main {
        grid-template-columns: 1fr; /* Stack all sections vertically */
        padding: 0 15px;
        text-align: center; /* Center text for stacked layout */
    }

    .footer-section {
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        padding-bottom: 30px;
        margin-bottom: 30px;
    }

    .footer-section:last-child {
        border-bottom: none;
        margin-bottom: 0;
    }

    .footer-section h4::after {
        left: 50%; /* Center the underline for stacked layout */
        transform: translateX(-50%);
        right: auto; /* Remove right alignment */
    }

    .social-links {
        justify-content: center; /* Center social links */
    }

    .footer-section ul li a {
        justify-content: center; /* Center list items */
    }

    [dir="rtl"] .footer-section ul li a::before {
        margin-right: 8px; /* Keep icon on the right for centered text */
        margin-left: 0;
    }

    [dir="ltr"] .footer-section ul li a::before {
        margin-left: 8px; /* Keep icon on the left for centered text */
        margin-right: 0;
    }

    .footer-section ul li a:hover {
        transform: none; /* Remove horizontal transform on hover */
    }

    [dir="rtl"] .footer-section ul li a:hover::before {
        margin-right: 12px; /* Adjust icon position on hover */
    }

    [dir="ltr"] .footer-section ul li a:hover::before {
        margin-left: 12px; /* Adjust icon position on hover */
    }

    .footer-bottom {
        padding: 0 15px;
    }
}

@media (max-width: 480px) {
    .footer-main {
        gap: 30px;
    }

    .footer-section h4 {
        font-size: 1.2rem;
    }

    .footer-section p,
    .footer-section ul li a {
        font-size: 0.85rem;
    }

    .social-links a {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }

    .payment-icons {
        font-size: 1.5rem;
    }

    /* Reduce footer top padding on mobile for tighter layout */
    .footer-advanced {
        padding: 10px 0 20px; /* Even less top padding on mobile to bring footer closer to pagination */
    }
}
