/* footer.css */
:root {
    --primary-green: #5DB85F;
    --dark-green: #3A9B3D;
    --light-green: #8FD892;
    --accent-green: #6FC972;
    --gold: #C8964F;
    --brown-gold: #B8863F;
    --cream: #FAFAFA;
    --text-dark: #2D7A30;
    --text-light: #424242;
    --text-brown: #5D4037;
    --footer-brown: #5D4037;
    --footer-dark-brown: #4A3229;
}

/* Footer Main */
.footer {
    background: linear-gradient(135deg, #5D4037 0%, #4A3229 100%);
    color: white;
    padding: 30px 0 0;
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--brown-gold), var(--gold), var(--brown-gold));
}

.footer h5 {
    color: #ffffff;
    margin-bottom: 12px;
    font-weight: 700;
    font-size: 1.1rem;
    animation: fadeInLeft 0.8s ease-out;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.footer-widget {
    animation: fadeInUp 0.8s ease-out;
    margin-bottom: 15px;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.footer-widget:nth-child(2) {
    animation-delay: 0.1s;
}

.footer-widget:nth-child(3) {
    animation-delay: 0.2s;
}

.footer-widget:nth-child(4) {
    animation-delay: 0.3s;
}

.footer p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.5;
    margin-bottom: 0;
    font-size: 0.9rem;
}

.footer a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    display: block;
    margin-bottom: 15px;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    padding-left: 0;
    font-size: 0.9rem;
}

.footer a::before {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background: var(--gold);
    transition: width 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.footer a:hover {
    color: var(--gold);
    padding-left: 8px;
}

.footer a:hover::before {
    width: 100%;
}

/* Logo & Brand Section */
.footer-logo {
    height: 60px;
    width: auto;
}

.footer-title {
    font-size: 20px;
    font-weight: 700;
    color: #ffffff;
}

.footer-brand {
    text-decoration: none;
    margin-bottom: 10px;
    display: inline-flex;
}

.footer-desc {
    margin-top: 8px;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.5;
}

/* Social Links */
.social-links {
    display: flex;
    gap: 8px;
    margin-top: 10px;
}

.social-links a {
    color: white;
    font-size: 1.1rem;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    margin-bottom: 0;
    padding-left: 0;
    border: 2px solid rgba(255, 255, 255, 0.3);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    overflow: hidden;
}

.social-links a::before {
    content: none;
}

.social-links a::after {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gold);
    border-radius: 50%;
    z-index: -1;
    transform: scale(0);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.social-links a:hover::after {
    transform: scale(1);
}

.social-links a:hover {
    color: #333;
    transform: translateY(-3px) scale(1.1);
    border-color: var(--gold);
}

/* Recent News Section */
.recent-news-item {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
    animation: slideInRight 0.8s ease-out backwards;
}

.recent-news-item:nth-child(1) {
    animation-delay: 0.3s;
}

.recent-news-item:nth-child(2) {
    animation-delay: 0.4s;
}

.recent-news-item:last-child {
    margin-bottom: 0;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(20px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.news-image {
    width: 60px;
    height: 60px;
    border-radius: 6px;
    overflow: hidden;
    flex-shrink: 0;
    transition: transform 0.4s ease;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.recent-news-item:hover .news-image img {
    transform: scale(1.1);
}

.news-content h6 {
    color: var(--gold);
    font-size: 0.75rem;
    margin-bottom: 2px;
    font-weight: 600;
}

.news-content p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.85rem;
    margin: 0;
    font-weight: 600;
    transition: color 0.3s ease;
    line-height: 1.3;
}

.recent-news-item:hover .news-content p {
    color: var(--gold);
}

/* Address Section */
.footer-address-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 10px;
    animation: fadeInUp 0.8s ease-out backwards;
}

.footer-address-item:last-child {
    margin-bottom: 0;
}

.footer-address-item:nth-child(1) {
    animation-delay: 0.4s;
}

.footer-address-item:nth-child(2) {
    animation-delay: 0.5s;
}

.footer-address-item:nth-child(3) {
    animation-delay: 0.6s;
}

.address-icon {
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: white;
    font-size: 1rem;
    transition: all 0.4s ease;
}

.footer-address-item:hover .address-icon {
    background: var(--gold);
    color: #333;
    transform: scale(1.1);
}

.address-content p {
    margin: 0;
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.85rem;
    line-height: 1.4;
}

.address-content strong {
    color: white;
    display: block;
    margin-bottom: 2px;
    font-weight: 600;
    font-size: 0.9rem;
}

/* Footer Bottom */
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 12px 0;
    margin-top: 15px;
    animation: fadeIn 0.8s ease-out 0.7s backwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.copyright-text {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.8rem;
    margin: 0;
}

.footer-bottom-links {
    display: flex;
    gap: 8px;
    align-items: center;
}

.footer-bottom-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.8rem;
    margin-bottom: 0;
    transition: color 0.3s ease;
}

.footer-bottom-links a::before {
    content: '';
    display: none;
}

.footer-bottom-links a:hover {
    color: var(--gold);
    padding-left: 0;
}

.footer-bottom-links span {
    color: var(--gold);
    font-size: 0.8rem;
}

/* Scroll to Top Button */
.scroll-top-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--gold);
    color: #333;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: 0 4px 20px rgba(200, 150, 79, 0.5);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    opacity: 0;
    visibility: hidden;
    z-index: 999;
}

.scroll-top-btn.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-top-btn:hover {
    background: var(--brown-gold);
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 6px 30px rgba(200, 150, 79, 0.6);
}

.scroll-top-btn:active {
    transform: translateY(-2px) scale(0.95);
}

/* Responsive Design */
@media (max-width: 991px) {
    .footer {
        padding: 25px 0 0;
    }

    .footer h5 {
        font-size: 1rem;
    }
}

@media (max-width: 768px) {
    .footer {
        padding: 20px 0 0;
    }

    .footer-widget {
        margin-bottom: 20px;
    }

    .footer h5 {
        font-size: 0.95rem;
        margin-bottom: 10px;
    }

    .social-links {
        justify-content: flex-start;
    }

    .footer-bottom {
        padding: 10px 0;
        margin-top: 12px;
    }

    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
        gap: 8px;
    }

    .footer-bottom-links {
        flex-wrap: wrap;
        justify-content: center;
    }

    .copyright-text {
        font-size: 0.75rem;
        line-height: 1.4;
    }

    .scroll-top-btn {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
        font-size: 1rem;
    }
}

@media (max-width: 576px) {
    .footer {
        padding: 15px 0 0;
    }

    .footer-widget {
        margin-bottom: 18px;
    }

    .footer h5 {
        font-size: 0.9rem;
        margin-bottom: 8px;
    }

    .footer p,
    .footer a {
        font-size: 0.8rem;
    }

    .recent-news-item {
        margin-bottom: 8px;
    }

    .news-image {
        width: 50px;
        height: 50px;
    }

    .footer-address-item {
        margin-bottom: 8px;
    }

    .footer-bottom {
        padding: 8px 0;
        margin-top: 10px;
    }

    .footer-bottom-links {
        gap: 6px;
    }

    .scroll-top-btn {
        width: 40px;
        height: 40px;
        font-size: 0.9rem;
        bottom: 15px;
        right: 15px;
    }
}

@media (min-width: 992px) {
    .footer a {
        font-size: 0.95rem;
    }

    .footer p {
        font-size: 0.9rem;
    }
}