
body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Footer Styles */
.custom-footer {
    background-color: #666;
    color: #DAD7CD;
    position: relative;
    margin-top: auto;
    padding: 50px 20px;
    text-align: left;
}

.custom-footer::before {
    content: "";
    position: absolute;
    top: -50px; /* Increased height */
    left: 50%;
    width: 0;
    height: 0;
    border-left: 50vw solid transparent;  /* Wider triangle */
    border-right: 50vw solid transparent;
    border-bottom: 50px solid #666; /* Increased to make it more visible */
    transform: translateX(-50%);
}

/* Scroll Button */
.scroll-to-top {
    position: absolute;
    top: -75px; /* Moved up to sit on the triangle */
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.scroll-btn {
    background: none;
    border: none;
    cursor: pointer;
    transition: 0.3s;
}

.scroll-btn img {
    width: 80px;
    height: 80px;
    object-fit: contain;
}


/* Footer Content */
.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: auto;
}

/* Sections */
.footer-section {
    flex: 1;
    padding: 20px;
    min-width: 250px;
}

.footer-section h2,
.footer-section h3 {
    font-size: 20px;
    font-weight: bold;
    font-family: var(--font-sub-heading);
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li a {
    color: white;
    text-decoration: none;
    margin: 5px 0;
    display: block;
}

.footer-section ul li a:hover {
    text-decoration: underline;
    color: var(--purple);
}

/* Contact Section */
.contact-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.contact-icon {
    width: 20px;
    height: 20px;
}

/* Contact Section */
.contact-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.contact-icon {
    width: 20px;
    height: 20px;
}

/* Search Button Animation */
.search-container {
    display: flex;
    align-items: center;
    position: relative;
}

.search-btn {
    display: flex;
    margin-top:20px;
    align-items: center;
    justify-content: space-between;
    background: red;
    color: white;
    border: none;
    padding: 10px 15px;
    font-size: 18px;
    cursor: pointer;
    border-radius: 30px;
    transition: all 0.3s ease;
    overflow: hidden;
    position: relative;
    width: 245px;
}
.search-btn img{
width:15%;
height:15%;
margin-right:3px;
margin-left: 10px;
}
.search-btn.active {
    justify-content: space-between;
}

.search-text {
    margin-left:10px;
    margin-right: 5px;
    transition: opacity 0.3s ease;
}

.search-icon {
    transition: transform 0.3s ease;
    width: 30%;
    height: 30%;
    cursor: pointer;
}

#search-input {
    padding: 5px;
    border-radius: 20px;
    border: none;
    outline: none;
    width: 0;
    opacity: 0;
    transition: width 0.3s ease, opacity 0.3s ease, padding 0.3s ease;
    flex-grow: 1;
    margin-right: 10px;
}

/* Search Not Found Message */
#search-message {
    color: white;
    margin-top: 10px;
    display: none;
}
.search-btn.active .search-text {
    display: none;
}

.hidden {
    display: none;
}

/* RESPONSIVE DESIGN */

/* Large Screens - up to 2560px */
@media (max-width: 2560px) {
    .footer-content {
        max-width: 85%;
        gap: 50px;
    }
}

/* Tablets - up to 1024px */
@media (max-width: 1024px) {
    .footer-content {
        flex-wrap: wrap;
        gap: 30px;
        justify-content: flex-start;
    }

    .footer-section {
        flex: 1 1 45%;
        max-width: 400px;
    }

    .search-btn {
        margin-top:20px;
        width: 220px;
        font-size: 16px;
    }

    .scroll-btn img {
        width: 65px;
        height: 65px;
    }
}

/* Small Tablets - up to 768px */
@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        gap: 25px;
    }

    .footer-section {
        flex: 1;
        max-width: 100%;
    }

    .search-btn {
        margin-top:20px;
        width: 200px;
        font-size: 16px;
    }

    .scroll-btn img {
        width: 60px;
        height: 60px;
    }
}

/* Small Phones - min 425px, max 690px */
@media (min-width: 425px) and (max-width: 690px) {
    .footer-content {
        flex-direction: column;
        gap: 20px;
    }

    .footer-section {
        flex: 1;
        max-width: 100%;
        padding: 15px;
    }

    .search-btn {
        margin-top:20px;
        width: 180px;
        font-size: 14px;
        padding: 8px 12px;
    }

    #search-input {
        width: 0;
        padding: 3px;
    }

    .scroll-btn img {
        width: 50px;
        height: 50px;
    }
}

/* Extra Small Phones - min 315px, max 430px */
@media (min-width: 315px) and (max-width: 430px) {
    .footer-content {
        flex-direction: column;
        gap: 15px;
    }

    .footer-section {
        flex: 1;
        max-width: 100%;
        padding: 10px;
    }

    .search-btn {
        margin-top:20px;
        width: 160px;
        font-size: 13px;
        padding: 6px 10px;
    }

    #search-input {
        width: 0;
        padding: 2px;
    }

    .scroll-btn img {
        width: 45px;
        height: 45px;
    }
}