:root {
    --footer-bg-dark: #202124;
    --primary-color: #ff3366;
    --primary-gradient: linear-gradient(45deg, #ff3366, #ff6688);
    --accent-color: #cc0000;
    --text-color: #2d3436;
    --text-muted: #636e72;
    --light-color: #ffffff;
    --bg-gray: #f9f9f9;
    --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.05);
    --shadow-hover: 0 15px 35px rgba(255, 51, 102, 0.15);
    --radius-lg: 24px; 
    --radius-md: 12px;
}

.tg-site-footer {
    background-color: var(--footer-bg-dark);
    padding: 80px 0 0 0;
    font-family: 'Kanit', sans-serif;
    border-top: 1px solid rgba(0,0,0,0.05);
    width: 100%;
    height: 100%;
}

.tg-footer-grid {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 25px;
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 40px;
}

.tg-footer-brand .tg-logo-wrap {
    margin-bottom: 25px;
}

.tg-footer-brand .tg-logo-wrap img {
    height: 70px;
    width: auto;
    object-fit: contain;
}

.tg-brand-text {
    color: var(--light-color);
    line-height: 1.8;
    font-size: 1rem;
    margin-bottom: 30px;
    max-width: 320px;
}

.tg-social-row {
    display: flex;
    gap: 15px;
}

.tg-social-btn {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    background: var(--bg-gray);
    color: var(--text-color);
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1.2rem;
}

.tg-social-btn:hover {
    background: var(--primary-gradient);
    color: var(--light-color);
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.tg-nav-title {
    color: var(--light-color);
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
}

.tg-nav-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 3px;
    background: var(--primary-gradient);
    border-radius: 10px;
}

.tg-footer-nav {
    list-style: none;
    padding: 0;
    margin: 0;
}

.tg-footer-nav li {
    margin-bottom: 15px;
}

.tg-nav-link {
    color: var(--light-color);
    text-decoration: none;
    transition: all 0.2s ease;
    display: inline-block;
}

.tg-nav-link:hover {
    color: var(--primary-color);
    padding-left: 8px;
}

.tg-footer-copyright {
    margin-top: 60px;
    padding: 30px 25px;
    border-top: 1px solid var(--bg-gray);
    text-align: center;
}

.tg-copy-text {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin: 0;
}

@media (max-width: 1024px) {
    .tg-footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 50px;
    }
}

@media (max-width: 640px) {
    .tg-site-footer {
        padding-top: 50px;
        height: auto;
    }
    .tg-footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .tg-nav-title::after {
        left: 50%;
        transform: translateX(-50%);
    }
    .tg-social-row {
        justify-content: center;
    }
    .tg-brand-text {
        max-width: 100%;
    }
}