/**
 * Custom CSS for header and footer
 */

/* Header Styles */
.site-header {
    background: linear-gradient(90deg, #4a47e7 0%, #13cfdf 100%);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    color: white;
}

.header-simple {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Logo styles */
.site-branding {
    display: flex;
    align-items: center;
}

.site-logo-text {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: white;
    font-weight: bold;
}

.logo-icon {
    margin-right: 8px;
    display: flex;
    align-items: center;
}

.logo-text {
    font-size: 28px;
    line-height: 1;
}

.logo-text small {
    font-size: 10px;
    font-weight: normal;
    opacity: 0.9;
}

/* Desktop navigation */
.main-navigation {
    display: flex;
    align-items: center;
}

.menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.menu-item {
    margin: 0 15px;
}

.menu-item a {
    color: white;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: opacity 0.3s;
}

.menu-item a:hover {
    opacity: 0.8;
}

/* Language switcher styles */
.desktop-language {
    margin-left: 15px;
}

.language-switcher {
    position: relative;
}

.current-language {
    display: flex;
    align-items: center;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.2);
    padding: 5px 10px;
    border-radius: 4px;
}

.lang-code {
    margin-right: 5px;
    font-size: 14px;
    font-weight: 500;
}

.language-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border-radius: 4px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    display: none;
    list-style: none;
    margin: 0;
    padding: 0;
    width: 150px;
    z-index: 101;
}

.language-dropdown.active {
    display: block;
}

.language-dropdown li {
    padding: 0;
}

.language-dropdown a {
    display: block;
    padding: 10px 15px;
    color: #333;
    text-decoration: none;
    transition: background 0.3s;
}

.language-dropdown a:hover,
.language-dropdown a.active {
    background: #f5f5f5;
}

/* Mobile menu styles */
.mobile-menu-toggle {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    height: 24px;
    width: 30px;
    flex-direction: column;
    justify-content: space-between;
    margin-left: auto; /* Đẩy nút menu sang bên phải */
}

.mobile-menu-toggle span {
    display: block;
    height: 3px;
    width: 100%;
    background-color: white;
    border-radius: 3px;
    transition: transform 0.3s, opacity 0.3s;
}

.mobile-menu-header {
    display: none;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-menu-close {
    display: none;
    background: transparent;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    margin-right: auto; /* Đẩy nút đóng sang bên trái */
}

.mobile-language-switcher {
    display: none;
}

.mobile-language-dropdown {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, #4a47e7 0%, #13cfdf 100%);
    z-index: 200;
    display: none;
    padding: 20px;
    overflow-y: auto;
}

.mobile-language-dropdown.active {
    display: block;
}

.mobile-language-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-language-back {
    background: transparent;
    border: none;
    color: white;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    padding: 0;
}

.mobile-language-back i {
    margin-right: 10px;
}

.mobile-language-dropdown ul {
    list-style: none;
    padding: 0;
    margin: 20px 0 0;
}

.mobile-language-dropdown li {
    margin-bottom: 15px;
}

.mobile-language-dropdown a {
    color: white;
    text-decoration: none;
    font-size: 18px;
    display: block;
    padding: 10px 0;
}

.mobile-menu-footer {
    display: none;
    padding: 20px;
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    line-height: 1.4;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: auto;
}

/* Footer Styles */
.site-footer {
    background-color: #222;
    color: #fff;
    padding: 50px 0 20px;
}

.footer-columns {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-bottom: 40px;
}

.footer-column h3 {
    color: #fff;
    font-size: 18px;
    margin-bottom: 20px;
    font-weight: 600;
    position: relative;
    padding-bottom: 10px;
}

.footer-column h3:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background: var(--primary-color);
}

.footer-column p {
    color: #bbb;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 20px;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    /* color: #fff; */
    transition: all 0.3s;
}

.social-links a:hover {
    background-color: var(--primary-color);
    transform: translateY(-3px);
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #bbb;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
    display: inline-block;
}

.footer-links a:hover {
    color: #fff;
    padding-left: 5px;
}

.footer-links a:before {
    content: '\f105';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    margin-right: 8px;
    color: var(--primary-color);
}

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #999;
    font-size: 14px;
}

/* Responsive Styles */
@media (max-width: 992px) {
    .footer-columns {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .header-simple {
        position: static;
    }
    
    .menu {
        display: none;
    }
    
    .main-navigation {
        margin-left: 0;
    }
    
    .desktop-language {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: flex;
        position: absolute;
        right: 20px;
        top: 50%;
        transform: translateY(-50%);
    }
    
    .main-navigation {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 320px;
        height: 100vh;
        background: linear-gradient(135deg, #4a47e7 0%, #13cfdf 100%);
        z-index: 200;
        flex-direction: column;
        transition: right 0.3s ease;
        padding: 0;
        overflow-y: auto;
    }
    
    .main-navigation.active {
        right: 0;
    }
    
    .mobile-menu-header {
        display: flex;
        width: 100%;
    }
    
    .mobile-menu-close {
        display: block;
    }
    
    .mobile-language-switcher {
        display: block;
    }
    
    .menu {
        display: block;
        padding: 20px;
        height: 100vh;
        width: 100%;
    }
    
    .menu-item {
        margin: 0 0 15px 0;
    }
    
    .menu-item a {
        display: block;
        padding: 10px 0;
        font-size: 16px;
    }
    
    .mobile-menu-footer {
        display: block;
    }
    .menu-item a:hover{
        color: #FFEB3B;
    }
    .pll-parent-menu-item .sub-menu{
        background: #03A9F4;
    }
}

@media (max-width: 768px) {
    .footer-columns {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

@media (max-width: 576px) {
    .site-title {
        font-size: 24px;
    }
    
    .site-description {
        font-size: 12px;
    }
}

/* Page Styles */
.page-section {
    padding: 50px 0;
}

.page-title {
    font-size: 2.5rem;
    margin-bottom: 30px;
    color: #333;
    text-align: center;
}

.page-content {
    max-width: 900px;
    margin: 0 auto;
    line-height: 1.6;
}

/* About Page Styles */
.about-description h2 {
    font-size: 1.8rem;
    margin: 30px 0 15px;
    color: #333;
}

.about-description p {
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.about-features {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin: 30px 0;
}

.about-features h3 {
    margin-bottom: 15px;
    font-size: 1.4rem;
}

.about-features ul {
    padding-left: 20px;
}

.about-features li {
    margin-bottom: 10px;
    font-size: 1.1rem;
}

/* Contact Page Styles */
.contact-description {
    text-align: center;
    margin-bottom: 40px;
    font-size: 1.2rem;
}

.contact-methods {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    margin-bottom: 50px;
}

.contact-method {
    width: 48%;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    margin-bottom: 20px;
}

.contact-method h3 {
    margin-bottom: 15px;
    color: #333;
    font-size: 1.4rem;
}

.contact-method p {
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.contact-form {
    max-width: 700px;
    margin: 0 auto;
}

.contact-form h2 {
    text-align: center;
    margin-bottom: 25px;
    font-size: 1.8rem;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
}

.submit-button {
    background-color: #3897f0;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: 500;
    transition: background-color 0.3s;
}

.submit-button:hover {
    background-color: #1877f2;
}

/* Responsive Styles for Pages */
@media (max-width: 768px) {
    .contact-method {
        width: 100%;
    }
}
