footer {
    height: auto;
    /* display: flex;
    flex-direction: column;
    justify-content: space-between; */
    color: var(--text-white);
}

.footer-container {
    padding: 86px 121px;
    background: var(--primary-second);
}

.footer-link-container {
    /* border: 1px solid white; */
    display: flex;
    height: 25rem;
}

.footer-flex-item {
    /* border: 1px solid white; */
    width: 28%;

}

.flex-item-tag {
    font-weight: 700;
    font-size: 27px;
}

.q-link {
    width: 23%;
}

.footer-flex-link-container {
    display: flex;
    flex-direction: column;
    margin-top: 20px;
    justify-content: space-between;
    height: 13rem;
    font-weight: 400;
    font-size: 16px;
    text-transform: capitalize;
    letter-spacing: 0.6px;
}

.q-span {
    height: 3rem;
}

.footer-contact-info {
    margin-bottom: 15px;
    font-size: 22px;
}

.footer-socials-container {
    background: var(--footer-end-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 121px;
    height: 70px;
}

.footer-social-icons {
    text-align-last: justify;
    width: 5%;
}

.flex-address {
    height: 13rem;
}

.footer-address a,
.footer-telephone a,
.footer-mail a {
    text-decoration: none;
    color: white;
}

.footer-address a:hover,
.footer-telephone a:hover,
.footer-mail a:hover {
    text-decoration: underline;
    color: var(--accent-color);
}

.footer-mail {
    display: inline-block;
    margin-top: 7px;
    text-transform: lowercase;
}

/* mobile footer */
.mobile-footer-container,
.mobile-copyright {
    display: none;
}

/* Minimal Footer Styles */
.minimal-footer {
    background: var(--primary-second);
    padding: 32px 0 16px 0;
    text-align: center;
}

.footer-content-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
}

.footer-mail a {
    color: var(--text-white);
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 500;
}

.footer-mail a:hover {
    color: var(--accent-color);
    text-decoration: underline;
}

@media (max-width: 600px) {
    .minimal-footer {
        padding: 20px 0 10px 0;
    }

    .footer-mail a {
        font-size: 1rem;
    }
}

/* ------------------------------------------------------------- */
/* Media Queries */

/* Mobile */
@media screen and (min-width: 320px) and (max-width: 767px) {
    footer {
        height: auto;
    }

    .footer-socials-container {
        display: none;
    }

    .footer-container:not(.minimal-footer) {
        display: none;
    }

    .minimal-footer {
        display: flex;
        flex-direction: column;
        gap: 15px;
        padding-top: 40px;
        padding-bottom: 20px;
    }

    .mobile-footer-container {
        display: flex;
        flex-direction: column;
        justify-content: space-around;
        background: var(--primary-second);
        height: 51rem;
        padding: 52px 21px;
    }

    .mobile-quick-links {
        display: flex;
        justify-content: space-between;
    }

    .mobile-flex-item-tag {
        font-size: 23px;
    }

    .mobile-quick-links span {
        font-size: 0.8rem;
        height: 2rem;
        color: var(--text-font-color);
    }

    .mobile-footer-flex-link-container {
        display: flex;
        flex-direction: column;
        margin-top: 20px;
        justify-content: space-between;
        height: 10rem;
        font-weight: 400;
        font-size: 16px;
        text-transform: capitalize;
        letter-spacing: 0.6px;
    }

    .mobile-flex-item-tag {
        font-weight: 700;
        font-size: 25px;
    }

    .mobile-footer-address {
        margin-top: 10px;
    }

    /* .mobile-footer-address a {
        text-decoration: none;
        color: var(--text-font-color);
    }
    .mobile-footer-address a:hover {
        opacity: 0.5;
    } */
    .footer-contact-info {
        margin-bottom: 15px;
    }

    .mobile-social {
        display: flex;
        justify-content: space-between;
        width: 18%;
    }

    .mobile-copyright {
        background-color: var(--footer-end-color);
        display: flex;
        justify-content: center;
        align-items: center;
        height: 70px;
    }

    .copyright {
        font-size: 0.9rem;
    }

}

/* Tablet */
@media screen and (min-width: 768px) and (max-width: 1023px) {
    .footer-container {
        padding: 40px 42px;
    }

    .footer-logo {
        height: 3rem;
    }

    .item-1 {
        width: 30%;
    }

    .q-link {
        width: 31%;
    }

    .item-3 {
        width: 40%;
    }

    .item-4 {
        width: 40%;
    }

    .flex-item-tag {
        font-size: 22px;
    }

    .footer-flex-link-container {
        font-size: 13px;
        height: 10rem;
    }

    .footer-socials-container {
        padding: 0 42px;
    }

    .copyright {
        font-size: 13px;
    }

    .footer-social-icons {
        width: 9%;
    }

    .s-span {
        height: 2rem;
    }

    .footer-contact-info {
        font-size: 17px;
    }

}


/* Small Laptop */
@media screen and (min-width: 1024px) and (max-width: 1439px) {
    .footer-container {
        padding: 40px 50px;
    }

    .footer-logo {
        height: 3rem;
    }

    .item-1 {
        width: 30%;
    }

    .q-link {
        width: 31%;
    }

    .item-3 {
        width: 40%;
    }

    .item-4 {
        width: 40%;
    }

    .flex-item-tag {
        font-size: 22px;
    }

    .footer-flex-link-container {
        font-size: 13px;
        height: 10rem;
    }

    .footer-socials-container {
        padding: 0 50px;
    }

    .copyright {
        font-size: 13px;
    }

    .footer-social-icons {
        width: 6%;
    }

    .s-span {
        height: 2rem;
    }

    .footer-contact-info {
        font-size: 17px;
    }


}

/* 21st.dev Modern Footer Styles */
.modern-footer {
    width: 100%;
    background-color: var(--primary-second);
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 64px 32px 0 32px;
    color: var(--text-white);
    font-family: inherit;
}

.modern-footer * {
    box-sizing: border-box;
}

.modern-footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 48px;
    padding-bottom: 64px;
}

.modern-footer-brand {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.modern-footer-logo-layout {
    display: flex;
    align-items: center;
    gap: 12px;
}

.modern-footer-logo {
    height: 48px;
    width: auto;
}

.modern-footer-company {
    font-size: 1.5rem;
    font-weight: 700;
}

.modern-footer-description {
    color: #94a3b8; 
    max-width: 320px;
    line-height: 1.6;
    font-size: 0.95rem;
    margin: 0;
}

.modern-footer-socials h4 {
    font-weight: 600;
    margin-bottom: 12px;
    margin-top: 8px;
    color: #e2e8f0;
}

.modern-footer-social-icons {
    display: flex;
    gap: 16px;
}

.modern-footer-social-icons a {
    color: #94a3b8;
    transition: color 0.2s ease;
}

.modern-footer-social-icons a:hover {
    color: #ffffff;
}

.modern-footer-links h4,
.modern-footer-subscribe h4 {
    font-weight: 600;
    margin-bottom: 16px;
    margin-top: 0;
    color: #e2e8f0;
}

.modern-footer-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.modern-footer-links ul li a {
    color: #94a3b8;
    text-decoration: none;
    transition: color 0.2s ease;
}

.modern-footer-links ul li a:hover {
    color: #ffffff;
}

.modern-subscribe-form {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.modern-input {
    flex-grow: 1;
    height: 40px;
    border-radius: 6px;
    border: 1px solid #334155; 
    background-color: #0f172a; 
    padding: 8px 12px;
    font-size: 0.875rem;
    color: #f8fafc;
    outline: none;
    transition: border-color 0.2s;
    min-width: 200px;
}

.modern-input:focus {
    border-color: #3b82f6; 
}

.modern-btn {
    height: 40px;
    padding: 0 16px;
    background-color: #f8fafc;
    color: #0f172a;
    font-weight: 500;
    font-size: 0.875rem;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.modern-btn:hover {
    background-color: #e2e8f0;
}

.modern-footer-bottom {
    text-align: center;
    padding: 24px 16px;
    font-size: 0.875rem;
    color: #64748b; 
    border-top: 1px solid rgba(255,255,255,0.1);
    background-color: var(--footer-end-color);
}

/* Responsive */
@media (max-width: 768px) {
    .modern-footer-container {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}