/* Header Styles */


header {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 999;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
  height: 70px;
  display: flex;
  align-items: center;
  margin-bottom: 100px;
}



/* বাকি CSS আপনার মতোই থাকবে */


    .search-icon {
      cursor: pointer;
    }

    .search-container {
      display: flex;
      align-items: stretch;
      max-width: 400px;
      margin: 20px auto;
      border-radius: 6px;
      overflow: hidden;
      box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
      border: 1px solid #077A7D;
    }

    .search-container input {
      flex-grow: 1;
      border: none;
      padding: 12px 15px;
      font-size: 16px;
      outline: none;
      border-right: 1px solid #077A7D;
    }

    .search-container button {
      background: #077A7D;
      border: none;
      color: white;
      padding: 0 18px;
      cursor: pointer;
      font-size: 18px;
      display: flex;
      align-items: center;
      justify-content: center;
    }

    .hidden {
      display: none;
    }

.search-container button:hover {
  background: #055a5c;
}


/* Search Popup */
.search-popup {
  position: fixed;
  top: 170px;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  max-height: 800px;
  background: white;
  border: 1px solid #077A7D;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(7, 122, 125, 0.3);
  overflow-y: auto;
  z-index: 9999;
}


.search-popup.hidden {
  display: none;
}

.popup-header {
  display: flex;
  justify-content: space-between;
  background: #077A7D;
  color: white;
  padding: 10px 15px;
  font-weight: bold;
  border-top-left-radius: 8px;
  border-top-right-radius: 8px;
}

.popup-header button {
  background: transparent;
  border: none;
  font-size: 22px;
  color: white;
  cursor: pointer;
}

.search-results {
  padding: 10px 15px;
}

.search-results p {
  margin: 10px 0;
  cursor: pointer;
  border-bottom: 1px solid #eee;
  padding-bottom: 5px;
  color: #077A7D;
}

.search-results p:hover {
  background-color: #e0f2f2;
}
@media (max-width: 600px) {
  .search-popup {
    width: 90%;
  }

  .search-container {
    margin-left: 15px;
    margin-right: 15px;
    overflow: auto;
    margin-top: -20px;
  }


    .hidden {
      display: none;
    }
  
}








.header-container {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo img {
  height: 40px;
}

.menu-toggle {
  font-size: 26px;
  cursor: pointer;
  display: none;
  color: #077A7D;
  background: none;
  border: none;
  padding: 0;
  margin: 0;
}

.menu-group {
  display: none;
  gap: 10px;
  align-items: center;
}

#toggleTheme,
#toggleThemeCanvas {
  background-color: #077A7D;
  border: none;
  border-radius: 6px;
  color: white;
  padding: 6px 12px;
  font-size: 18px;
  cursor: pointer;
  transition: 0.3s;
}

#toggleTheme:hover,
#toggleThemeCanvas:hover {
  background-color: #066264;
}

.desktop-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
  border-radius: 8px;
  background-color: #077A7D;
}

.nav-menu {
  display: flex;
}

.nav-menu ul {
  list-style: none;
  display: flex;
  gap: 15px;
  margin: 0;
  padding: 0;
}

.nav-menu ul li a {
  text-decoration: none;
  padding: 10px 18px;
  background-color: #077A7D;
  color: #fff;
  border-radius: 8px;
  font-weight: 500;
  transition: 0.3s;
  display: inline-block;
}

.nav-menu ul li a:hover {
  background-color: #066264;
  transform: translateY(-2px);
}

/* Mobile Canvas */
.mobile-canvas {
  position: fixed;
  top: 0;
  right: 100%;
  width: 100vw;
  height: 100vh;
  background-color: #077A7D;
  color: #fff;
  transition: right 0.3s ease;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  overflow: hidden;
 
}

.mobile-canvas.active {
  right: 0;
}

body.dark-mode .mobile-canvas {
  background: #222;
  color: #fff;
}

/* Canvas Header */
.canvas-header {
  flex-shrink: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 2px solid rgba(255,255,255,0.3);
  padding: 20px;
  background-color: azure;
}

.canvas-header h2 {
  font-size: 24px;
  font-weight: 700;
  margin: 0;
}

#closeCanvas {
  font-size: 28px;
  background: transparent;
  border: none;
  color: #077A7D;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin: 0;
  padding: 0;
}

/* Scrollable Canvas Content */
.canvas-content {
  flex-grow: 1;
  overflow-y: auto;
  padding: 20px;
  padding-bottom: 100px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;          /* Firefox */
  -ms-overflow-style: none;       /* IE 10+ */
}

.canvas-content::-webkit-scrollbar {
  display: none; 
}
.canvas-content::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.3);
  border-radius: 3px;
}

/* Canvas Sections - New */
.canvas-section {
  margin-bottom: 30px;
}

/* Section header flexbox with title + optional button */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 2px solid rgba(255,255,255,0.3);
  padding-bottom: 8px;
  margin-bottom: 16px;
}

/* Section titles */
.section-header h3 {
  margin: 0;
  font-size: 22px;
  font-weight: 700;
  color: inherit;
}

/* Buttons next to section titles */
.section-btn,
#toggleThemeCanvas {
  background: transparent;
  border: none;
  color: inherit;
  font-size: 24px;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 4px;
  transition: color 0.3s ease;
}

.section-btn:hover,
#toggleThemeCanvas:hover {
  color: #ddd;
}

/* Navigation Links */
.canvas-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.canvas-nav ul li {
  margin-bottom: 10px;
}

.canvas-nav ul li a {
  text-decoration: none;
  font-size: 16px;
  color: inherit;
  font-weight: 600;
  display: block;
  padding: 6px 0;
  transition: color 0.3s;
}

.canvas-nav ul li a:hover {
  color: #ddd;
}

/* Footer */
.canvas-footer {
  border-top: 2px solid rgba(255,255,255,0.3);
  padding-top: 20px;
  margin-top: 30px;
}

.canvas-footer h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 10px;
}

/* Responsive */
@media (max-width: 768px) {
header {
    height: 60px;
  }
  .header-container {
    padding: 0 20px;
  }
  .canvas-header {
    height: 20px;
  }
#closeCanvas {
  font-size: 32px;
  width: 40px;
  height: 40px;
  color: rgb(180, 4, 4);

}
  .logo img {
    height: 25px;
  }

  .menu-toggle {
    display: block;
  }

  .menu-group {
    display: flex;
  }

  .desktop-toggle {
    display: none;
  }

  .nav-menu {
    display: none;
  }


.search-icon {
  cursor: pointer;
  font-size: 18px;
  margin-right: 5px !important;
}
.theme-toggle {
  cursor: pointer;
  font-size: 18px;
  margin-right: 12px;
}
.lang-toggle {
  cursor: pointer;
  font-size: 18px;
  margin-right: 12px;
}
.menu-toggle {
  cursor: pointer;
  font-size: 18px;
  margin-right: 12px;
  color: #1e293b;
}
.search-icon i,
.theme-toggle i,
.menu-toggle i, 
.lang-toggle i {
  font-size: 18px;
  cursor: pointer;
  color: inherit;
}
}


/* ভাষার মেনু */
.lang-menu {
  position: absolute;
  top: 90%;
  right: 0;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: transform 0.2s ease, opacity 0.2s ease;
  transform-origin: top right;
  z-index: 99;
  min-width: 120px;
}

.lang-menu.hidden {
  transform: scaleY(0);
  opacity: 0;
  pointer-events: none;
}

.lang-menu li {
  padding: 10px 14px;
  font-size: 0.9rem;
  cursor: pointer;
  list-style: none;
  transition: background 0.2s;
}

.lang-menu li:hover {
  background: #f0f0f0;
}

/* dark mode */
html.dark-mode .lang-menu {
  background: #1f1f1f;
  color: #fff;
}

html.dark-mode .lang-menu li:hover {
  background: #333;
}
.hidden { display: none; }



/* 🌙 Dark Mode Toggle Switch (common for both desktop & mobile) */
.theme-switch {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 26px;
  margin: 0;
  flex-shrink: 0;
}

.theme-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.theme-switch .slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  transition: 0.4s;
  border-radius: 34px;
}

.theme-switch .slider::before {
  position: absolute;
  content: "";
  height: 20px;
  width: 20px;
  left: 4px;
  bottom: 3px;
  background-color: rgb(0, 0, 0);
  transition: 0.4s;
  border-radius: 50%;
}

.theme-switch input:checked + .slider {
  background-color: #ffffff;
}

.theme-switch input:checked + .slider::before {
  transform: translateX(24px);
}


.setting-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 0;
  font-size: 16px;
  font-weight: 600;
  color: inherit;
}

.setting-label {
  flex: 1;
}

/* Optional spacing tweaks */
.theme-switch {
  margin-left: 12px;
}


/* DARK MODE STYLES */


html.dark-mode header {
  background: rgba(18, 18, 18, 0.8);
  box-shadow: 0 2px 5px rgba(255, 255, 255, 0.05);
}

html.dark-mode .menu-toggle {
  color: #ffffff !important;
}

html.dark-mode .nav-menu ul li a {
  background-color: #1e293b;
  color: #fff;
}

html.dark-mode .nav-menu ul li a:hover {
  background-color: #1e293b;
}

/* Mobile Canvas */
html.dark-mode .mobile-canvas {
  background-color: #1e1e1e;
  color: #f5f5f5;
}

/* Canvas Header */
html.dark-mode .canvas-header {
  background-color: #1e293b;
  border-bottom: 2px solid rgba(255, 255, 255, 0.1);
}

html.dark-mode #closeCanvas {
  color: #fff;
}

/* Canvas Sections & Links */
html.dark-mode .canvas-section {
  border-color: rgba(255, 255, 255, 0.1);
}

html.dark-mode .section-header h3,
html.dark-mode .canvas-nav ul li a,
html.dark-mode .setting-item,
html.dark-mode .canvas-footer h3 {
  color: #f5f5f5;
}

html.dark-mode .canvas-nav ul li a:hover {
  color: #ddd;
}

/* Theme Switcher */
html.dark-mode .theme-switch .slider {
  background-color: #555;
}

html.dark-mode .theme-switch input:checked + .slider {
  background-color: #fff;
}

html.dark-mode .theme-switch .slider::before {
  background-color: #000;
}

/* Button Styles */
html.dark-mode #toggleTheme,
html.dark-mode #toggleThemeCanvas {
  background-color: #444;
  color: #fff;
}

html.dark-mode #toggleTheme:hover,
html.dark-mode #toggleThemeCanvas:hover {
  background-color: #666;
}
html.dark-mode .desktop-toggle {background-color: #1e293b;
  }

 html.dark-mode .menu-toggle {
    
    color: #077A7D;
  }




.search-icon {
  font-size: 20px;
  padding: 10px;
  cursor: pointer;
  color: inherit;
}
.mobile-only {
  display: none;
}

.desktop-only {
  display: inline-block;
}

@media (max-width: 768px) {
  .mobile-only {
    display: inline-block;
  }
  .desktop-only {
    display: none;
  }
}







  