/* Localized Footer Styles */

.gh-foot {
    background: #fff;
    padding: 60px 0 40px;
    border-top: 1px solid #e5e5e5;
}

.gh-foot-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    grid-template-columns: 1fr !important;
}

.gh-foot-content {
    display: grid;
    grid-template-columns: 200px 1fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 40px;
}

/* Logo Section */
.gh-foot-logo {
    display: flex;
    align-items: flex-start;
}

.gh-foot-logo a {
    display: inline-block;
    text-decoration: none;
}

.gh-foot-logo img {
    max-width: 140px;
    height: auto;
}

/* Footer Sections */
.gh-foot-section {
    display: flex;
    flex-direction: column;
}

.gh-foot-region-section {
    justify-content: space-between;
}

.gh-foot-section-title {
    font-size: 16px;
    font-weight: 600;
    color: #15171a;
    margin: 0 0 20px;
    line-height: 1.4;
}

.gh-foot-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.gh-foot-links li {
    margin: 0;
    padding: 0;
}

.gh-foot-links a {
    color: #626d79;
    text-decoration: none;
    font-size: 15px;
    line-height: 1.6;
    transition: color 0.2s ease;
}

.gh-foot-links a:hover {
    color: #15171a;
}

/* Region Section */
.gh-foot-region-wrapper {
    margin-bottom: 20px;
}

.gh-foot-region-dropdown {
    position: relative;
}

.gh-foot-region-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    border: 1px solid #e5e5e5;
    border-radius: 6px;
    padding: 10px 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    width: 100%;
    max-width: 200px;
}

.gh-foot-region-toggle:hover {
    border-color: #15171a;
}

.region-flag {
    font-size: 20px;
    line-height: 1;
}

.region-name {
    color: #15171a;
    font-size: 15px;
    flex: 1;
}

.region-arrow {
    color: #626d79;
    transition: transform 0.2s ease;
}

.gh-foot-region-dropdown.active .region-arrow {
    transform: rotate(180deg);
}

.gh-foot-region-menu {
    position: absolute;
    bottom: 100%;
    left: 0;
    margin-bottom: 8px;
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.2s ease;
    z-index: 100;
}

.gh-foot-region-dropdown.active .gh-foot-region-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.region-option {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    text-decoration: none;
    color: #15171a;
    transition: background-color 0.2s ease;
}

.region-option:hover {
    background-color: #f5f5f5;
}

.region-option:first-child {
    border-radius: 6px 6px 0 0;
}

.region-option:last-child {
    border-radius: 0 0 6px 6px;
}

/* Copyright and Powered By */
.gh-copyright,
.gh-powered-by {
    text-align: center;
    color: #626d79;
    font-size: 14px;
}

.gh-powered-by a {
    color: #626d79;
    text-decoration: none;
    transition: color 0.2s ease;
}

.gh-powered-by a:hover {
    color: #15171a;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .gh-foot-content {
        grid-template-columns: 1fr 1fr 1fr;
        gap: 40px;
    }

    .gh-foot-logo {
        grid-column: 1 / -1;
        margin-bottom: 20px;
    }
}

@media (max-width: 767px) {
    .gh-foot {
        padding: 40px 0 30px;
    }

    .gh-foot-content {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }

    .gh-foot-logo {
        grid-column: 1 / -1;
    }

    .gh-foot-region-wrapper {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 480px) {
    .gh-foot-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .gh-foot-section-title {
        font-size: 15px;
        margin-bottom: 15px;
    }

    .gh-foot-links {
        gap: 10px;
    }

    .gh-foot-logo {
        justify-content: center;
        margin-bottom: 0;
    }

    .gh-foot-links a {
        font-size: 14px;
    }

    .gh-foot-logo img {
        max-width: 96px;
        justify-content: center;
    }
}

/* Hide templates from rendering */
template {
    display: none !important;
}
