footer {
    margin-top: auto;
}

/* Upper Footer */
.upper-footer {
    background: linear-gradient(
                135deg,
                #2F7E7B 0%,
                #2F7E7B 35%,
                #509290 80%,
                #7EB2B0 100%
                );
    background-position: center;
    background-size: cover;
    color: var(--white);
    padding: 5rem 2rem;
    display: flex;
    justify-content: center;
    flex-direction: column;
    flex: 1;
}
[data-theme="dark"] .upper-footer{
      background: linear-gradient(
 135deg,
  #7EB1AF 35%,
  #509290 80%,
  #2F7D7B 100%
);
}

[data-theme="light"] .footer-nav-logo {
    width: 5rem;
    height: 4.5rem;
    background-image: url("../../assets/images/logo-dark.png");
    background-size: cover;
    background-position: center;
}

[data-theme="dark"] .footer-nav-logo {
    width: 5rem;
    height: 4.5rem;
    background-image: url("../../assets/images/logo.png");
    background-size: cover;
    background-position: center;
}

.footer-columns {
    display: flex;
    justify-content: space-evenly;
    width: 80%;
    margin: auto;
    margin-bottom: 3rem;
    margin-top: 3rem;
    align-items: flex-start;
    flex-wrap: wrap;
}

.footer-column {
    display: flex;
    flex-direction: column;
}

.footer-title {
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    color: var(--white);
    position: relative;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-link {
    color: var(--white);
    text-decoration: none;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: color 0.3s ease;
}

.footer-img{
    position:absolute;
    left:4rem;
    width:8rem;
    margin-top: -4rem;
}

.upper-footer img{
    width: 5rem;
}

.footer-link:hover {
    color: var(--white);
}

.footer-link::before {
    content: '▶';
    font-size: 0.8rem;
    color: var(--white);
}

/* Newsletter Section */
.newsletter-section {
    display: flex;
    justify-content: center;
    align-items: center;
}

.newsletter-container {
    display: flex;
    align-items: center;
    background: var(--white);
    border-radius: 1.7rem;
    padding: 1rem 4rem;
    width: 80%;
    max-width: 850px;
    overflow: hidden;
}

.newsletter-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--light-gray);
    margin-right: 1rem;
}

.newsletter-input {
    flex: 1;
    border: none;
    padding: 0.7rem 1.5rem;
    font-size: 1rem;
    outline: none;
    margin: 0 1rem;
    border-radius: 2rem;
    background: var(--off-white);
    color:var(--light-gray)
}

[data-theme="dark"] .newsletter-input{
    background-color:white;
    color:var(--white);
}

.newsletter-input::placeholder {
    color: var(--very-light-gray);
}

.newsletter-btn {
    background: var(--dark-turquoise);
    color: var(--white);
    border: none;
    padding: 0.9rem 3rem;
    border-radius: 1.5rem;
    font-size: 0.8rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
    font-weight: 700;
}
[data-theme="dark"] .newsletter-btn{
    color:var(--off-white)}

.newsletter-btn:hover {
    background: var(--light-turquoise);
}

/* Lower Footer */
.lower-footer {
    background: var(--white);
    padding: 2rem;
    text-align: center;
}
[data-theme="dark"] .lower-footer{
    background-color: transparent;
}

.copyright {
    color: var(--dark-gray);
    font-size: 1.2rem;
    margin: 0;
}

.company-name {
    color: var(--dark-turquoise);
}

/* Mobile Responsive Styles */
@media (max-width: 800px){
    .footer-img{
        position: relative;
        display: flex;
        margin: auto;
        margin-top: 0;
        left: 0;
        width: auto;
    }
    
    .newsletter-container{
        width: 100%;
        align-items: center;
        justify-content: center;
        gap:1rem;
    }
    
    .newsletter-btn{
        padding:0.5rem  0.9rem;
    }
    
    .newsletter-input{
        font-size:1rem;
        padding:0.5rem 0.5rem;
        text-align: center;
    }
}

@media (max-width: 760px){
       .newsletter-container{
        width: 100%;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap:1rem;
    }
    .newsletter-title{
        font-size: 1rem;
    }
    

    .footer-columns{
        flex-direction: column;
        gap: 2rem;
        align-items: center;
        justify-content: center;
        margin-bottom: 2rem;
        width: 100%;
    }
    
    .footer-column {
        width: 100%;
        max-width: 300px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.2);
        padding-bottom: 1rem;
        position: relative;
    }
    
    .footer-title {
        width: 100%;
        text-align: center;
        margin-bottom: 0;
        padding: 1rem 2.5rem 1rem 0;
        cursor: pointer;
        
        /* Add down arrow icon for mobile only */
        &::after {
            content: '▼';
            position: absolute;
            right: 0;
            top: 50%;
            transform: translateY(-50%);
            font-size: 1rem;
            transition: transform 0.3s ease;
        }
    }
    
    .footer-column.active .footer-title::after {
        transform: translateY(-50%) rotate(180deg);
    }
    
    .footer-links {
        /* Start collapsed on mobile */
        max-height: 0;
        opacity: 0;
        overflow: hidden;
        display: flex;
        flex-direction: column;
        gap: 1rem;
        transition: max-height 0.3s ease, opacity 0.3s ease;
    }
    
    .footer-column.active .footer-links {
        max-height: 500px; /* Adjust based on your content */
        opacity: 1;
        margin-top: 1rem;
    }
    
    .footer-link {
        justify-content: center;
        padding: 0.5rem 0;
    }
    
    /* Hide the arrow icons on mobile */
    .footer-link::before {
        display: none;
    }
}