/*
Theme Name: Tema
Theme URI: https://example.com/tema
Author: Antigravity
Author URI: https://example.com
Description: WordPress theme converted from HTML template.
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: tema
*/

/* 
 * Premium Language Switcher & Controls 
 * Fix for alignment and mobile menu toggle issues.
 */

/* Container Fixes */
nav.navbar .container {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    height: auto !important;
    min-height: 80px !important;
}

/* Ensure navbar controls don't mess up floating or flex flow */
.navbar-controls {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 15px !important;
    order: 3;
    margin-left: auto !important;
}

/* Language Switcher Styling */
.ltx-premium-lang-switcher {
    position: relative !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer;
    font-family: 'Poppins', sans-serif;
    user-select: none;
    height: 40px !important;
}

.lang-current {
    display: flex !important;
    align-items: center !important;
    gap: 6px;
    padding: 0 12px !important;
    height: 34px !important;
    background: rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 50px;
    transition: all 0.3s ease;
}

.lang-current:hover {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    border-color: rgba(0, 0, 0, 0.2);
}

.lang-flag {
    width: 20px !important;
    height: 14px !important;
    object-fit: cover;
    border-radius: 2px;
}

.lang-code {
    font-size: 13px;
    font-weight: 700;
    color: #333;
    letter-spacing: 0.5px;
}

.lang-current i {
    font-size: 11px;
    color: #888;
    margin-left: 2px;
}

.lang-list {
    position: absolute;
    top: 100%;
    left: 50%;
    background: #fff;
    min-width: 140px;
    list-style: none;
    margin: 0;
    padding: 8px 0;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
    border: 1px solid rgba(0, 0, 0, 0.1);
    opacity: 0;
    visibility: hidden;
    transform: translateX(-50%);
    transition: all 0.3s ease;
    z-index: 9999;
}

/* Clear gap between current lang and dropdown list to prevent hover loss */
.lang-list::before {
    content: '';
    position: absolute;
    top: -25px;
    /* Higher bridge */
    left: -20px;
    /* Wider bridge to catch diagonal movement */
    right: -20px;
    height: 30px;
    background: transparent;
    z-index: -1;
}

.ltx-premium-lang-switcher:hover .lang-list {
    opacity: 1;
    visibility: visible;
}


.lang-list li a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 15px;
    color: #333;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
}

.lang-list li a:hover {
    background: #f8f9fa;
}

/* Mobile Toggle Correction */
/* We reset the toggle styles to ensure theme's JS can still target/operate it */
.navbar-controls .navbar-toggle {
    margin: 0 !important;
    padding: 8px !important;
    float: none !important;
    display: inline-block !important;
    /* Restore default-like behavior */
    vertical-align: middle;
}

/* Fixed positioning for toggle spans to ensure they look right but stay native */
.navbar-toggle .icon-bar {
    display: block !important;
    width: 22px !important;
    height: 2px !important;
    background-color: #333 !important;
    border-radius: 1px;
}

.navbar-toggle .icon-bar+.icon-bar {
    margin-top: 4px !important;
}

/* Mobile Specific */
@media (max-width: 1600px) {
    .navbar-controls {
        gap: 10px !important;
    }
}

/* Footer Design Improvements */
#ltx-widgets-footer {
    position: relative;
    padding: 80px 0;
    background-color: #2d3663;
    color: rgba(255, 255, 255, .7);
    overflow: hidden;
}

#ltx-widgets-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-repeat: repeat;
    opacity: .05;
    z-index: 0;
    pointer-events: none;
}

#ltx-widgets-footer .container {
    position: relative;
    z-index: 1;
}

#ltx-widgets-footer .header-widget {
    color: #47ccc8;
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 30px;
    text-transform: none;
}

#ltx-widgets-footer .widget_ltx_icons ul li {
    margin-bottom: 20px;
}

#ltx-widgets-footer .widget_ltx_icons ul li a {
    color: #fff;
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
}

#ltx-widgets-footer .widget_ltx_icons ul li a span.fa {
    width: 36px;
    height: 36px;
    background: #47ccc8;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

#ltx-widgets-footer .widget_ltx_icons ul li a strong {
    color: #47ccc8;
    font-weight: 400;
    margin-right: 5px;
}

/* Explore Menu Two Columns */
#ltx-widgets-footer .widget_ltx_navmenu ul.menu {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px 20px;
    padding: 0;
    list-style: none;
    margin: 0;
}

#ltx-widgets-footer .widget_ltx_navmenu ul.menu li {
    margin: 0;
}

#ltx-widgets-footer .widget_ltx_navmenu ul.menu li a {
    color: #fff;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

#ltx-widgets-footer .widget_ltx_navmenu ul.menu li a::before {
    content: '\f105';
    font-family: FontAwesome;
    color: #47ccc8;
    font-size: 18px;
}

/* Contact Us Button */
.ltx-footer-btn {
    display: inline-flex;
    align-items: center;
    background: #47ccc8;
    color: #fff !important;
    padding: 12px 25px;
    border-radius: 50px;
    font-weight: 700;
    margin-top: 30px;
    gap: 10px;
    transition: all .3s ease;
    text-decoration: none;
}

.ltx-footer-btn:hover {
    background: #fff;
    color: #47ccc8 !important;
}

.ltx-footer-btn i {
    background: #fff;
    color: #47ccc8;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}

/* Recent News Styling */
.widget_ltx_blogposts .items .post {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
}

.widget_ltx_blogposts .items .post .photo {
    flex-shrink: 0;
}

.widget_ltx_blogposts .items .post .photo img {
    border-radius: 8px;
}

.widget_ltx_blogposts .items .post h6,
.widget_ltx_blogposts .items .post h6 a {
    color: #333;
    font-size: 18px;
    line-height: 1.4;
    margin: 5px 0 0;
    font-weight: 600;
}

.widget_ltx_blogposts .items .post .blog-info ul {
    display: flex;
    gap: 15px;
    padding: 0;
    list-style: none;
    margin: 0;
    font-size: 13px;
}

.widget_ltx_blogposts .items .post .blog-info ul li {
    display: flex;
    align-items: center;
    gap: 5px;
    color: rgba(255, 255, 255, .5);
}

.widget_ltx_blogposts .items .post .blog-info ul li span {
    color: #47ccc8;
}

/* Sidebar Fix: Make popular posts and accordion titles black for better visibility */
.widget-area .header-widget,
.div-sidebar .header-widget,
.div-sidebar .accordion-header,
.div-sidebar .accordion-header .title,
.div-sidebar .widget_ltx_blogposts .items .post h6,
.div-sidebar .widget_ltx_blogposts .items .post h6 a {
    color: #333 !important;
}

/* Footer Override: Keep popular posts white in the dark footer */
#ltx-widgets-footer .widget_ltx_blogposts .items .post h6,
#ltx-widgets-footer .widget_ltx_blogposts .items .post h6 a {
    color: #fff !important;
}