@import url("/css/general.css");

.footer-area {
    background-color: var(--color-bg-primary);		
    transition: background-color 1s ease-in-out;
    color: #2c3e50;
    padding: 80px 0 0 0;
    font-family: 'Kanit', sans-serif;
    border-top: 5px solid #247d01;
    position: relative;
    overflow: hidden;
}
body.dark-theme .footer-area {
    border-top: 5px solid #af5500;
}

.footer-area::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('/assets/image/banners/1708137541265.webp'); 
    opacity: 0.04; 
    pointer-events: none; 
    z-index: 0;
}

.footer-container, .footer-bottom {
    position: relative;
    z-index: 1;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.5fr 0.8fr 0.8fr 1.2fr;
    gap: 50px;
    padding: 0 20px 60px 20px;
}

.footer-band {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 20px;
}

.footer-column img {
    width: 45px;
    height: auto;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

.footer-logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a5d1a; 
    margin: 0;
    letter-spacing: 1px;
}

.footer-logo span {
    color: #eb7f03; 
}

.footer-column h3 {
    color: #1a5d1a;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 25px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
body.dark-theme .footer-column h3 {
    color: var(--color-btn-orange-dark);		
}
.footer-column p {
    color: #6c757d;
    font-size: 0.9rem;
    line-height: 1.7;
    margin-bottom: 20px;
}
body.dark-theme .footer-column p {
  color: var(--color-text-warm-bright);
}		
.footer-column ul {
    list-style: none;
    padding: 0;
}

.footer-column ul li {
    margin-bottom: 12px;
}

.footer-column ul li a {
    color: #6c757d;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.95rem;
    display: inline-block;
}
body.dark-theme .footer-column ul li a {
    color: var(--color-text-warm-bright);
}
.footer-column ul li a:hover {
    color: #27ae60;
    transform: translateX(5px); 
}
body.dark-theme .footer-column ul li a:hover {
    color: var(--color-btn-orange-earth);		
}
.social-links {
    display: flex;
    gap: 12px;
    margin-top: 25px;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: #e8f5e9; 
    color: #2e7d32;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px; 
    transition: all 0.3s ease;
    text-decoration: none;
}
body.dark-theme .social-links a {
    background: none;
    color: var(--color-btn-orange-dark);		
    border: 1px solid var(--color-btn-orange-earth);
}
.social-links a svg {
    transition: transform 0.3s ease;
}

.social-links a:hover {
    background: #2e7d32; 
    color: #ffffff; 
    transform: translateY(-5px);
    box-shadow: 0 4px 12px rgba(46, 125, 50, 0.2);
}
body.dark-theme .social-links a:hover {
    background-color: var(--color-btn-orange-earth);		
    color: #ffffff; 		
}
.social-links a:hover svg {
    transform: scale(1.1); 
}

.tooltip-btn {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}


.tooltip-btn::after {
    content: attr(data-tooltip); 
    position: absolute;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background-color: #1a5d1a; 
    color: #fff;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 0.75rem;
    white-space: nowrap; 
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    z-index: 10;
}
body.dark-theme .tooltip-btn::after {
    background-color: var(--color-btn-orange-earth);			
}
.tooltip-btn::before {
    content: "";
    position: absolute;
    bottom: 110%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    border-width: 6px;
    border-style: solid;
    border-color: #1a5d1a transparent transparent transparent;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 10;
}

.tooltip-btn:hover::after,
.tooltip-btn:hover::before {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0); 
}

.contact-info p {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: var(--color-text-secondary);				
}
body.dark-theme .contact-info p {
    color: var(--color-text-warm-bright);		
}
.contact-info a {
    color: var(--color-text-subhead-green);		
    text-decoration: none;
    font-weight: 500;
}
body.dark-theme .contact-info a {
    color: var(--color-text-emphasis-orange);                			
}
.footer-bottom {
    background-color: var(--color-btn-eco-secondary);			
    padding: 25px 20px;
    border-top: 1px solid #eee;
    text-align: center;
    font-size: 0.85rem;
    color: var(--color-bg-warm);		
}
body.dark-theme .footer-bottom {
    background-color: var(--color-btn-orange-earth);						
}
.footer-bottom a {
    color: var(--color-bg-warm);				    
    text-decoration: none;
    font-weight: 500;
}
.footer-bottom a:hover {
    color: var(--color-text-warm-key);						    
}


@media (max-width: 992px) {
    .footer-container {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
}

@media (max-width: 576px) {
    .footer-area { padding-top: 50px; }
    .footer-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .footer-band { justify-content: center; }
    .social-links { justify-content: center; }
    .contact-info p { justify-content: center; }
    .footer-column ul li a:hover { transform: translateY(-2px); }
}