/* ============ FOOTER ============ */





body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    margin: 0;
    padding: 0;
}

main {
  flex: 1;
}

footer {
  margin-top: auto;
  flex-shrink: 0;
}

body > *:not(.footer) {
    flex: 1 0 auto;
}

.footer {
    background: linear-gradient(135deg, var(--color-primary) 0%, #1f4d38 100%);
    color: rgba(255, 255, 255, 0.9);
    padding: 60px 60px 20px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    width: 100%;
    box-sizing: border-box;
    flex-shrink: 0;
    margin-top: auto;
}

.footer a {
    text-decoration: none;
}

.footer-section a,
.footer-section a:visited,
.footer-section a:hover,
.footer-section a:focus,
.footer-section a:active {
    color: rgba(255, 255, 255, 0.75);
    font-weight: 500;
    transition: color 0.3s ease;
    text-decoration: none;
    outline: none;
}

.footer-section a:hover,
.footer-section a:focus {
    color: var(--color-primary-light);
    text-decoration: none;
    outline: none;
}

.footer-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 60px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 60px;
}

.footer-section {
    min-width: 200px;
    display: flex;
    flex-direction: column;
    padding-left: 30px;
    border-left: 1px solid rgba(183, 228, 199, 0.2);
}

.footer-section:first-child {
    border-left: none;
    padding-left: 0;
}

.footer-section h4 {
    color: var(--color-primary-light);
    margin-bottom: 15px;
    font-weight: 700;
    font-size: 1.1rem;
}

.footer-section a {
    margin-bottom: 10px;
    font-size: 0.95rem;
}

.logo-section {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.logo-box {
    width: 50px;
    height: 50px;
    background-color: var(--color-primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 12px;
    box-shadow: 0 4px 12px rgba(46, 111, 84, 0.3);
}

.logo-text {
    font-weight: 700;
    color: var(--color-primary);
    font-size: 1.4rem;
}

.footer-logo-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    border-radius: 8px;
}
.site-name {
    font-weight: 700;
    color: white;
    font-size: 1.5rem;
    margin-bottom: 15px;
    letter-spacing: 0.5px;
}

.social-icons {
    display: flex;
    gap: 18px;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    transition: all 0.3s ease;
}

.social-icons a:hover {
    background: rgba(183, 228, 199, 0.2);
    border-color: var(--color-primary-light);
}

.social-icons i {
    color: rgba(255, 255, 255, 0.8);
    font-size: 18px;
    transition: color 0.3s ease;
}

.social-icons a:hover i {
    color: var(--color-primary-light);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 40px;
    padding: 20px 60px 20px 60px;
    font-size: 14px;
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
}

.footer-bottom a {
    color: rgba(255, 255, 255, 0.7);
    transition: color 0.3s ease;
    text-decoration: none;
}

.footer-bottom a:hover {
    color: var(--color-primary-light);
    text-decoration: none;
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
  text-align: start;
}

@media (max-width: 900px) {
    .footer-container {
        flex-direction: column;
        gap: 40px;
        padding: 0 40px;
    }

    .footer-section {
        min-width: auto;
        padding-left: 0;
        border-left: none;
    }

    .logo-section {
        align-items: flex-start;
    }

    .social-icons {
        gap: 12px;
    }
}

@media (max-width: 600px) {
    .footer {
        padding: 40px 20px 20px;
    }

    .footer-container {
        gap: 30px;
        padding: 0 20px;
    }

    .footer-section {
        min-width: auto;
    }

    .footer-section h4 {
        font-size: 1rem;
    }

    .footer-section a {
        font-size: 0.9rem;
    }

    .site-name {
        font-size: 1.3rem;
    }

    .logo-box {
        width: 45px;
        height: 45px;
    }

    .social-icons a {
        width: 36px;
        height: 36px;
    }

    .social-icons i {
        font-size: 16px;
    }

    .footer-bottom {
        font-size: 12px;
        padding: 15px 20px 15px 20px;
        margin-top: 30px;
    }
}