

/* Fix for Google Translate Top Bar */
.goog-te-banner-frame.skiptranslate {
    display: none !important; /* Truly hide the top bar if you want a clean look */
}

body {
    top: 0px !important; /* Force body back to top if Google tries to push it */
}

/* Ensure the custom dropdown is always above everything */
.lang-dropdown, .user-actions {
    z-index: 999999;
}



/* গুগলের ডিফল্ট অটো বার হাইড করা */
.goog-te-banner-frame.skiptranslate, .goog-te-gadget-icon, .goog-te-gadget span {
    display: none !important;
}
#google_translate_element {
    display: none !important;
}

/* ================= HEADER (FIXED) ================= */
header{
  width: 100%;
  height:50px;
  background:#bf00ff; 
  color:#fff; 
  /* পজিশন ফিক্সড করা হয়েছে */
  position:fixed;
  top:0;
  left:0;
  right:0;
  z-index:1000;
  display:flex;
  align-items:center;
  justify-content:center;
}

/* ইনার কন্টেইনার মার্জিন-প্যাডিং ঠিক রাখার জন্য */
.header-container {
  width: 100%;
  max-width:1330px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:0px 16px;
}

.header-logo img{
  height:55px;
  margin-top:4px;

}

.header-navigation{
  display:flex;
  gap:20px;
}

.header-navigation a{
  color:#fff; 
  text-decoration:none;
}

.header-navigation .active a{
  font-weight:bold;
}

.header-icons{
  display: flex;
  align-items: center;
  gap: 15px;
}

.header-icons a{
  color:#fff; 
  font-size:18px;
  text-decoration: none;
}




/* ================= NEW USER ACTION BUTTONS ================= */
/* ================= NEW USER ACTION BUTTONS (VERTICAL) ================= */
.user-menu-wrapper {
    position: relative; /* ড্রপডাউন পজিশন ঠিক রাখার জন্য */
    display: flex;
    align-items: center;
}

.user-actions {
    display: none; /* শুরুতে হাইড থাকবে */
    flex-direction: column; /* বাটনগুলো একটির নিচে আরেকটি থাকবে */
    gap: 5px;
    position: absolute;
    top: 40px; /* ইউজার আইকন থেকে নিচে নামানোর জন্য */
    right: 0;
    background: #fff;
    padding: 10px;
    border-radius: 8px;
    box-shadow: 0px 4px 12px rgba(0,0,0,0.15);
    z-index: 1001;
    min-width: 120px;
    animation: fadeIn 0.3s ease-in-out;
}

.user-actions.show {
    display: flex;
}

/* বাটনগুলোর স্টাইল */
.user-btn {
    background: #f8f8f8; /* হালকা ব্যাকগ্রাউন্ড */
    color: #bf00ff !important;
    padding: 8px 12px;
    border-radius: 5px;
    font-size: 14px !important;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    transition: 0.3s;
    border: 1px solid #eee;
}

.user-btn:hover {
    background: #bf00ff;
    color: #fff !important;
}

.user-btn i {
    font-size: 14px;
    /* হোভার করলে আইকনের রঙ পরিবর্তনের জন্য এটি ইনহেরিট করবে */
    color: inherit; 
}

/* ট্রায়াঙ্গেল অ্যারো (ঐচ্ছিক - সুন্দর দেখানোর জন্য) */
.user-actions::before {
    content: "";
    position: absolute;
    top: -8px;
    right: 10px;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 8px solid #fff;
}



/* ================= LANGUAGE SELECTOR ================= */
.lang-selector-container {
  position: relative;
  display: inline-block;
}

.custom-lang-btn {
  background: rgba(255,255,255,0.2);
  padding: 5px 10px;
  border-radius: 5px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
  border: 1px solid #fff;
  transition: 0.3s;
}

.custom-lang-btn:hover {
  background: #fff;
  color: #bf00ff;
}

.lang-dropdown {
  position: absolute;
  top: 110%;
  right: 0;
  background: #fff;
  min-width: 180px;
  box-shadow: 0px 8px 16px rgba(0,0,0,0.2);
  border-radius: 5px;
  display: none;
  z-index: 999999; /* ড্রপডাউন সবার উপরে রাখার জন্য */
  max-height: 350px;
  overflow-y: auto;
  animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

.lang-dropdown a {
  color: #333 !important;
  padding: 10px 15px;
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-size: 14px;
  border-bottom: 1px solid #eee;
  transition: 0.2s;
}

.lang-dropdown img {
  width: 22px;
  height: 16px;
  object-fit: cover;
  border-radius: 2px;
  border: 1px solid #ddd;
}

.show-lang {
  display: block !important;
}

/* ================= GOOGLE TRANSLATE MOBILE FIX ================= */

/* গুগলের টপ বার ফিক্স */
.goog-te-banner-frame.skiptranslate {
    display: block !important;
    width: 100% !important;
    height: auto !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    visibility: visible !important;
    z-index: 9999999 !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2) !important;
}

/* গুগলের ফ্রেমের ভেতরের কন্টেন্টকে মোবাইলে ফিট করানো */
@media screen and (max-width: 768px) {
    /* পুরো বডিকে গুগলের বারের কারণে নিচে নামানো */
    body {
        top: 40px !important; 
        position: relative !important;
    }

    /* ক্লোজ বাটন দৃশ্যমান করার জন্য iframe এর ইনলাইন স্টাইল ওভাররাইড */
    iframe.goog-te-banner-frame {
        width: 100vw !important;
        left: 0 !important;
    }
    
    /* ড্রপডাউন পজিশন মোবাইল অনুযায়ী */
    .lang-dropdown {
        right: 0;
        left: auto;
        min-width: 200px;
    }
}

/* অতিরিক্ত গুগল টেক্সট ও লোগো হাইড করা (পরিষ্কার লুকের জন্য) */
.goog-te-gadget span, 
.goog-logo-link {
    display: none !important;
}

.goog-te-gadget {
    color: transparent !important;
    font-size: 0 !important;
}





/* ================= HAMBURGER TO CROSS ANIMATION ================= */
.hamburger{
  width:30px;
  cursor:pointer;
  display:flex;
  flex-direction:column;
  gap:5px;
  z-index: 1005; /* মেনুর উপরে থাকার জন্য */
}
.hamburger div{
  height:3px;
  background:#fff; 
  border-radius:2px;
  transition: 0.3s;
}

/* ক্রস (X) হওয়ার স্টাইল */
.open .line1 {
  transform: rotate(-45deg) translate(-5px, 6px);
}
.open .line2 {
  opacity: 0;
}
.open .line3 {
  transform: rotate(45deg) translate(-5px, -6px);
}

/* ================= OVERLAY ================= */
.overlay-left, .overlay-right{
  position:fixed;
  top:0;
  width:0;
  height:100%;
  background:#bf00ff; 
  overflow-x:hidden;
  transition:0.4s;
  z-index:999;
  padding-top:60px; 
}
.overlay-left{ left:0; }
.overlay-right{ right:0; }

.overlayContent-left, .overlayContent-right{
  display:flex;
  flex-direction:column;
  gap:10px;
  padding:20px;
}
.overlayContent-left a, .overlayContent-right a{
  display:block;
  padding:12px 20px;
  color:#fff; 
  text-decoration:none;
  border-radius:5px;
}

/* ================= SEARCH FORM SPACING & RESPONSIVE (NEW) ================= */
.main-search-container {
    width: 100%;
    margin: 0 !important;
    padding: 0 !important;
    clear: both;
    display: block;
}

/* মোবাইল ও ট্যাবলেটে সার্চ বার রেসপনসিভ রাখার জন্য */
@media(max-width:768px){
  .header-navigation{ display:none; }
  
  .header-logo img {
      height: 38px;
  }
  
  .custom-lang-btn span {
      display: none; /* ছোট স্ক্রিনে 'Language' লেখা হাইড হবে */
  }

  .user-btn span {
      display: none; /* মোবাইলে শুধু আইকন দেখাবে */
  }
}

@media(max-width:480px){
    .header-icons {
        gap: 8px;
    }
}
