/* Top Header Bar Styles */
.top-header-bar {
    background-color: #f8f9fa !important;
    color: #333 !important;
    padding: 10px 0 !important;
    border-bottom: 2px solid #007bff !important;
    position: relative;
    z-index: 999;
    display: block !important;
    width: 100%;
    box-sizing: border-box;
    min-height: 50px;
    line-height: 1.4;
}

.top-header-inner {
    display: flex !important;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    min-height: 30px;
}

/* Left Side - Marquee */
.top-header-left {
    flex: 1;
    overflow: hidden;
    max-width: 60%;
}

.marquee-wrapper {
    overflow: hidden;
    white-space: nowrap;
}

.marquee-content {
    display: inline-block;
    animation: marquee 30s linear infinite;
    padding-left: 100%;
}

.marquee-item {
    display: inline-block;
    padding: 0 30px;
    font-size: 14px !important;
    color: #333 !important;
    font-weight: 600 !important;
}

.marquee-item i {
    margin-right: 8px;
    color: #007bff !important;
    font-size: 16px !important;
}

@keyframes marquee {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-100%);
    }
}

/* Pause marquee on hover */
.marquee-wrapper:hover .marquee-content {
    animation-play-state: paused;
}

/* Right Side - Buttons */
.top-header-right {
    flex-shrink: 0;
}

.top-header-buttons {
    display: flex;
    align-items: center;
    gap: 5px;
}

.top-header-btn {
    display: flex !important;
    align-items: center;
    gap: 6px;
    padding: 8px 15px !important;
    background-color: #fff !important;
    color: #333 !important;
    border: 1px solid #007bff !important;
    border-radius: 20px;
    font-size: 12px !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    transition: all 0.3s ease;
    cursor: pointer;
    white-space: nowrap;
    box-shadow: 0 2px 4px rgba(0,123,255,0.1) !important;
}

.top-header-btn i {
    font-size: 14px;
}

.top-header-btn:hover {
    background-color: #007bff !important;
    color: #fff !important;
    border-color: #007bff !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0,123,255,0.2) !important;
}

.top-header-btn span {
    display: inline-block;
}

/* Language Selector */
.language-selector {
    position: relative;
}

.language-btn {
    position: relative;
}

.language-btn .lnr-icon-chevron-down {
    font-size: 10px;
    margin-left: 2px;
}

.language-dropdown {
    position: absolute;
    top: calc(100% + 5px);
    right: 0;
    background-color: #fff;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    min-width: 180px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
    max-height: 300px;
    overflow-y: auto;
}

.language-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.language-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 15px;
    color: #333;
    text-decoration: none;
    transition: background-color 0.2s ease;
    border-bottom: 1px solid #f0f0f0;
}

.language-option:last-child {
    border-bottom: none;
}

.language-option:hover {
    background-color: #f5f5f5;
}

.language-option.active {
    background-color: #007bff;
    color: #fff;
}

.lang-flag {
    font-size: 18px;
    line-height: 1;
}

/* Responsive Design */
@media (max-width: 1199px) {
    .top-header-btn span {
        display: none;
    }
    
    .top-header-btn {
        padding: 6px 10px;
    }
    
    .top-header-left {
        max-width: 50%;
    }
}

@media (max-width: 991px) {
    .top-header-bar {
        display: none !important;
    }
}

/* Mobile styles removed since top header is hidden on mobile */

/* Scroll to Newsletter smooth scroll */
html {
    scroll-behavior: smooth;
}

/* Debug styles removed - top header is now working properly */

/* Seamless integration with main header */
.top-header-bar {
    border-bottom: none;
}

.main-header {
    margin-top: 59px;
}

/* Ensure smooth transition */
.top-header-bar + .main-header {
    border-top: 1px solid #e9ecef;
}

/* Google Translate Customization */
/* Hide the Google Translate toolbar */
.goog-te-banner-frame {
    display: none !important;
}

body {
    top: 0 !important;
}

.skiptranslate {
    display: none !important;
}

/* Hide Google Translate iframe */
.goog-te-banner-frame.skiptranslate {
    display: none !important;
}

body > .skiptranslate {
    display: none !important;
}

iframe.skiptranslate {
    display: none !important;
}

/* Remove the top padding that Google Translate adds */
body.translated-ltr {
    top: 0 !important;
}

body.translated-rtl {
    top: 0 !important;
}

/* Style adjustments for translated content */
.translated-ltr,
.translated-rtl {
    margin-top: 0 !important;
}

/* Hide the Google Translate widget itself but keep it functional */
#google_translate_element {
    position: absolute !important;
    left: -9999px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
}

/* Hide visual elements but keep select functional */
.goog-te-gadget {
    position: absolute !important;
    left: -9999px !important;
}

/* Keep combo box functional but hidden */
.goog-te-combo {
    position: absolute !important;
    left: -9999px !important;
}

/* Ensure content is not pushed down */
html body {
    position: static !important;
}

/* Fix for RTL languages like Arabic */
html[dir="rtl"] .top-header-bar,
html[dir="rtl"] body {
    direction: rtl;
    text-align: right;
}

