﻿/* Enhanced Footer Styling */
.footer-section {
    background: linear-gradient(135deg, #0052cc, #000);
    color: #fff;
    padding: 0 0 2rem;
    position: relative;
    font-family: 'Poppins', sans-serif;
}

/* Wave Top Decoration */
.footer-wave-top {
    width: 100%;
    height: 100px;
    overflow: hidden;
    line-height: 0;
    transform: rotate(180deg);
    margin-bottom: 2rem;
}

.footer-wave-top svg {
    position: relative;
    display: block;
    width: 100%;
    height: 100px;
}

/* Footer Top Section */
.footer-top {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-bottom: 3rem;
}

/* Footer Column Styling */
.footer-column {
    padding: 0 1rem;
}

/* Footer Logo and Company Info */
.footer-logo {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.footer-logo img {
    height: 60px;
    margin-bottom: 1.5rem;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.2));
}

.footer-address {
    font-size: 0.9rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
    position: relative;
}

.footer-icon {
    color: #4a9fff;
    position: absolute;
    left: 0;
    top: 0.3rem;
}

/* Footer Contact List */
.footer-contact-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-contact-list li {
    margin-bottom: 0.75rem;
    padding-left: 1.5rem;
    position: relative;
}

.footer-contact-list a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-contact-list a:hover {
    color: #fff;
    text-decoration: none;
}

/* Footer Titles */
.footer-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: #fff;
    position: relative;
    padding-bottom: 0.75rem;
}

.footer-title:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, #4a9fff, #0066cc);
    border-radius: 3px;
}

.footer-subtitle {
    font-size: 1rem;
    font-weight: 500;
    margin: 1.5rem 0 1rem;
    color: #fff;
}

/* Footer Links List */
.footer-links-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links-list li {
    margin-bottom: 0.75rem;
}

.footer-links-list a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
}

.footer-links-list a:hover {
    color: #fff;
    transform: translateX(5px);
}

.footer-link-icon {
    font-size: 0.7rem;
    margin-right: 0.5rem;
    color: #4a9fff;
}

/* Footer Social Grid */
.footer-social-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.footer-social-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.footer-social-icon:hover {
    background: #4a9fff;
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(74, 159, 255, 0.3);
}

.footer-social-text {
    font-size: 0.9rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 1.5rem;
}

/* Footer Newsletter */
.footer-newsletter-form {
    display: flex;
    margin-top: 1rem;
}

.footer-newsletter-input {
    flex: 1;
    padding: 0.75rem 1rem;
    border: none;
    border-radius: 4px 0 0 4px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 0.9rem;
}

.footer-newsletter-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.footer-newsletter-button {
    padding: 0.75rem 1rem;
    border: none;
    border-radius: 0 4px 4px 0;
    background: #4a9fff;
    color: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
}

.footer-newsletter-button:hover {
    background: #0066cc;
}

/* Footer News Items */
.footer-news-container {
    margin-top: 1rem;
}

.footer-news-item {
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-news-item:last-child {
    border-bottom: none;
}

.news-item-link {
    display: flex;
    text-decoration: none;
    color: #fff;
}

.news-item-image {
    margin-right: 1rem;
    flex-shrink: 0;
}

.news-item-image img {
    width: 80px;
    height: 55px;
    object-fit: cover;
    border-radius: 4px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.news-item-title {
    font-size: 0.9rem;
    font-weight: 500;
    margin: 0 0 0.5rem;
    line-height: 1.4;
}

.news-item-title a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: all 0.3s ease;
}

.news-item-title a:hover {
    color: #4a9fff;
}

.news-item-date {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.6);
}

/* Footer Bottom */
.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-copyright {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

/* ASEAN Flags Section */
.footer-asean-flags {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.footer-flags-label {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 0.5rem;
}

.footer-flags-container {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.footer-flags-container img {
    width: 24px;
    height: auto;
    border-radius: 2px;
    transition: all 0.3s ease;
    opacity: 0.7;
}

.footer-flags-container img:hover {
    opacity: 1;
    transform: translateY(-3px);
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.2);
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #4a9fff, #0066cc);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    overflow: hidden;
}

.back-to-top-content {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2;
}

.back-to-top:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #0066cc, #4a9fff);
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 1;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.back-to-top:hover:before {
    opacity: 1;
}

/* Responsive Adjustments */
@media (max-width: 1200px) {
    .footer-top {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .footer-top {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .footer-column {
        padding: 0;
    }
    
    .footer-bottom {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 1.5rem;
    }
    
    .footer-asean-flags {
        align-items: center;
    }
    
    .footer-flags-container {
        justify-content: center;
    }
    
    .footer-title:after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .footer-logo, .footer-title {
        text-align: center;
        align-items: center;
    }
    
    .footer-address, .footer-contact-list li {
        text-align: center;
        padding-left: 0;
    }
    
    .footer-icon {
        position: static;
        margin-right: 0.5rem;
    }
    
    .footer-links-list a {
        justify-content: center;
    }
    
    .footer-social-grid {
        justify-content: center;
    }
}

@media (max-width: 576px) {
    .footer-social-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-newsletter-form {
        flex-direction: column;
    }
    
    .footer-newsletter-input {
        border-radius: 4px;
        margin-bottom: 0.5rem;
    }
    
    .footer-newsletter-button {
        border-radius: 4px;
        width: 100%;
    }
}