/* Modern Footer Styles */
#footer.footer {
    color: #fff;
    padding: 0;
    margin: 0;
    font-family: 'Poppins', 'Roboto', Arial, sans-serif;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%) !important;
    box-shadow: 0 -5px 15px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

#footer.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #e84c3d, #ff7e6b, #e84c3d);
    z-index: 1;
}

#footer .footer-bottom {
    background-color: rgba(0, 0, 0, 0.2) !important;
    position: relative;
    z-index: 2;
    backdrop-filter: blur(5px);
}

#footer .container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    position: relative;
    z-index: 2;
}

#footer .pt-70 {
    padding-top: 70px !important;
}

#footer .pb-40 {
    padding-bottom: 40px !important;
}

#footer .pt-20 {
    padding-top: 20px !important;
}

#footer .pb-20 {
    padding-bottom: 20px !important;
}

#footer .row {
    display: flex;
    flex-wrap: wrap;
    margin-right: -15px;
    margin-left: -15px;
}

/* Column styles */
#footer [class*="col-"] {
    position: relative;
    width: 100%;
    min-height: 1px;
    padding-right: 15px;
    padding-left: 15px;
}

@media (min-width: 576px) {
    #footer .col-sm-6 {
        flex: 0 0 50%;
        max-width: 50%;
    }
}

@media (min-width: 768px) {
    #footer .col-md-3 {
        flex: 0 0 25%;
        max-width: 25%;
    }
    
    #footer .col-md-6 {
        flex: 0 0 50%;
        max-width: 50%;
    }
}

/* Widget styles */
#footer .widget {
    margin-bottom: 30px;
    transition: all 0.3s ease;
    padding: 0 10px;
}

#footer .widget.dark {
    color: rgba(255, 255, 255, 0.7);
}

#footer .widget-title {
    color: #fff;
    font-size: 18px;
    font-weight: 600;
    margin-top: 0;
    margin-bottom: 25px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

#footer .widget-title.line-bottom {
    position: relative;
    padding-bottom: 15px;
}

#footer .widget-title.line-bottom:after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: linear-gradient(90deg, #e84c3d, #ff7e6b);
    border-radius: 3px;
}

/* List styles */
#footer .list-inline {
    padding-left: 0;
    list-style: none;
    margin-left: -5px;
}

#footer .list-inline > li {
    display: block;
    margin-bottom: 12px;
    transition: all 0.3s ease;
    position: relative;
    padding-left: 0;
}

#footer .list-inline a {
    color: rgba(255, 255, 255, 0.7);
    transition: all 0.3s ease;
    text-decoration: none;
    font-size: 15px;
    display: inline-block;
    position: relative;
}

#footer .list-inline a:hover {
    color: #fff;
    transform: translateX(5px);
}

#footer .list-inline a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background-color: #e84c3d;
    transition: width 0.3s ease;
}

#footer .list-inline a:hover::after {
    width: 100%;
}

/* Text styles */
#footer .text-theme-colored {
    color: #e84c3d !important;
}

#footer .text-gray {
    color: rgba(255, 255, 255, 0.7);
}

#footer .text-black-777 {
    color: rgba(255, 255, 255, 0.5);
}

#footer .text-right {
    text-align: right !important;
}

#footer .border-bottom-black {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 40px;
    margin-bottom: 20px;
}

/* Company info styles */
#footer .widget img.mt-10.mb-20 {
    max-height: 60px;
    margin-bottom: 25px !important;
    filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.2));
}

#footer .widget p {
    line-height: 1.8;
    margin-bottom: 20px;
    font-size: 15px;
}

/* Social links styles */
#footer .social-links .btn-social-icon {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    padding: 10px 20px;
    color: #fff;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    text-decoration: none;
    margin-bottom: 15px;
    overflow: hidden;
    position: relative;
    z-index: 1;
}

#footer .social-links .btn-social-icon::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background-color: #e84c3d;
    transition: all 0.3s ease;
    z-index: -1;
}

#footer .social-links .btn-social-icon:hover {
    border-color: #e84c3d;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(232, 76, 61, 0.3);
}

#footer .social-links .btn-social-icon:hover::before {
    width: 100%;
}

#footer .social-links .btn-social-icon i {
    margin-right: 15px;
    font-size: 1.2em;
    transition: all 0.3s ease;
}

#footer .social-links .btn-social-icon:hover i {
    transform: scale(1.2);
}

/* News container styles */
#footer .footer-news-container article {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.08);
    display: flex;
    transition: all 0.3s ease;
}

#footer .footer-news-container article:hover {
    transform: translateY(-3px);
}

#footer .footer-news-container article:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

#footer .footer-news-container .post-thumb {
    margin-right: 15px;
    overflow: hidden;
    border-radius: 5px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

#footer .footer-news-container .post-thumb img {
    width: 80px;
    height: 55px;
    object-fit: cover;
    transition: all 0.5s ease;
}

#footer .footer-news-container article:hover .post-thumb img {
    transform: scale(1.1);
}

#footer .footer-news-container .post-right {
    flex: 1;
}

#footer .footer-news-container .post-title {
    margin-top: 0;
    margin-bottom: 5px;
    font-size: 14px;
    line-height: 1.4;
}

#footer .footer-news-container .post-title a {
    color: rgba(255, 255, 255, 0.85);
    transition: color 0.3s ease;
    text-decoration: none;
}

#footer .footer-news-container .post-title a:hover {
    color: #e84c3d;
}

#footer .footer-news-container .post-date {
    color: rgba(255, 255, 255, 0.5);
    font-size: 12px;
    margin-bottom: 0;
}

/* ASEAN Countries flags */
#footer .mr-5.mb-5.d-inline-block {
    display: inline-block !important;
    margin-right: 8px !important;
    margin-bottom: 8px !important;
    font-size: 22px;
    transition: all 0.3s ease;
    filter: grayscale(30%);
}

#footer .mr-5.mb-5.d-inline-block:hover {
    transform: scale(1.2);
    filter: grayscale(0%);
}

/* Utility classes */
#footer .font-11 { font-size: 11px !important; }
#footer .font-12 { font-size: 12px !important; }
#footer .font-14 { font-size: 14px !important; }
#footer .m-0 { margin: 0 !important; }
#footer .mt-5 { margin-top: 5px !important; }
#footer .mt-10 { margin-top: 10px !important; }
#footer .mt-15 { margin-top: 15px !important; }
#footer .mt-20 { margin-top: 20px !important; }
#footer .mb-5 { margin-bottom: 5px !important; }
#footer .mb-10 { margin-bottom: 10px !important; }
#footer .mb-15 { margin-bottom: 15px !important; }
#footer .mb-20 { margin-bottom: 20px !important; }
#footer .pl-0 { padding-left: 0 !important; }
#footer .pl-10 { padding-left: 10px !important; }
#footer .pr-10 { padding-right: 10px !important; }
#footer .mr-5 { margin-right: 5px !important; }
#footer .d-inline-block { display: inline-block !important; }
#footer .no-border { border: none !important; }

/* Back to top button */
.back-to-top {
    position: fixed;
    bottom: -50px;
    right: 20px;
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, #e84c3d 0%, #ff7e6b 100%);
    color: #fff;
    text-align: center;
    line-height: 45px;
    border-radius: 50%;
    cursor: pointer;
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 9999;
    box-shadow: 0 5px 15px rgba(232, 76, 61, 0.4);
}

.back-to-top.show {
    bottom: 20px;
    opacity: 1;
}

.back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(232, 76, 61, 0.6);
}

.back-to-top i {
    line-height: 45px;
}

/* Responsive fixes */
@media (max-width: 767px) {
    #footer .text-right {
        text-align: center !important;
    }
    
    #footer .sm-text-center {
        text-align: center !important;
    }
    
    #footer .widget-title.line-bottom:after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    #footer .widget {
        padding: 0 20px;
    }
    
    #footer .pt-70 {
        padding-top: 50px !important;
    }
    
    #footer .pb-40 {
        padding-bottom: 30px !important;
    }
}

/* Animation for hover effects */
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}