/*
 Theme Name: Nepalisahityasamaj Custom Theme
 Theme URI: https://nepalisahityasamaj.org.nz/
 Author: SAN micron PTY LTD
 Author URI: https://www.sanmicron.com
 Description:  This website was developed by SAN Micron PTY LIMITED, Australia. For any modifications to the theme, please contact SAN Micron through the following link: https://sanmicron.com/contact-us/
 Version: 1.0
 License: GNU General Public License v2 or later
 License URI: http://www.gnu.org/licenses/gpl-2.0.html
 Text Domain: NEPALI SAHITYA SAMAJ NEW ZEALAND
*/
html, body {
  overflow-x: hidden;
}
body {
font-family: Arial, sans-serif;
background-color: #f4f4f4;
margin: 0;
padding: 0;
overflow-y: hidden;
}
/* General Reset for Container */
.container {
  max-width: 1200px; /* Maximum width of container */
  width: 100%;
  margin: 0 auto;
  padding: 0 15px; /* Add padding to the left and right */
}
.mt-30{
margin-top: 30px;
}
header {
position: relative;
max-width: 100%;
z-index: 999;
width: 100%;
}
header.fixed {
  position: fixed;
  max-width: 100%;
  z-index: 999;
  transition: all 0.3s ease-in-out;
}
/* Top Bar */
.top-bar {
  max-width: 100%;
  padding: 10px 0;
  color: #fff;
}

.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.top-bar .left-section {
  display: flex;
  align-items: center;
}

.top-bar .left-section img {
  margin-right: 10px;
  width: 18px;
}

.top-bar .left-section img.nz-flag {
width: 28px;
}
.top-bar .left-section .nepali-time {
  margin-right: 20px;
  font-size: 14px;
}

.top-bar .left-section .nepali-text-link {
  color: white;
  font-family: 'NepaliFont', sans-serif; /* Replace with actual Nepali font */
  text-decoration: none;
  font-size: 14px;
}

.top-bar .left-section svg.e-font-icon-svg {
  fill: white; /* Set the color of the SVG to white */
  height: var(--e-icon-list-icon-size, 1em); /* Set height */
  width: var(--e-icon-list-icon-size, 1em); /* Set width */
  margin-right: 5px; /* Optional: Add space between the icon and the text */
}

.top-bar .right-section {
  display: flex;
  align-items: center;
}

.top-bar .right-section a {
  margin-left: 10px;
}

.top-bar .right-section img {
  width: 20px; /* Adjust the size of the icons */
}

.language-dropdown {
  position: relative;
  display: inline-block;
}

.language-button {
  background-color: transparent;
  border: none;
  color: #fff;
  cursor: pointer;
}

.language-button svg {
  margin-right: 5px;
}

.language-options {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  background-color: #fff;
  color: #333;
  border: 1px solid #ccc;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
  min-width: 120px;
  z-index: 9999;
}

.language-options ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.language-options ul li {
  padding: 10px;
}

.language-options ul li a {
  color: #333;
  text-decoration: none;
  display: block;
}

.language-options ul li:hover {
  background-color: #f1f1f1;
}

.language-dropdown:hover .language-options {
  display: block;
}

.search-container {
  position: relative;
  display: flex;
  align-items: center;
  margin-right: 10px;
}

.top-bar .right-section svg {
  max-width: 100%;
}

#search-icon{
background: transparent;
  border: none;
  cursor: pointer;
}

#search-form {
display: none;
  position: absolute;
  top: 40px;
  right: 0;
  background: #fff;
  padding: 24px;
  border: 1px solid #EBF3FF;
  border-radius: 0px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
  display: flex;
  z-index: 9;
}

#search-form.active {
  display: flex;
  visibility: visible;
  opacity: 1;
}

#search-form input {
  padding: 10px;
  border: 1px solid #EBF3FF;
  border-radius: 2px;
  width: 200px;
  font-size: 14px;
  background: #D6E7FF;
  outline: none;
}

#search-form button {
  padding: 8px 12px;
  border: none;
  background-color: #0055CC;
  color: white;
  cursor: pointer;
  border-radius: 3px;
  margin-left: 5px;
}

.search-container.active #search-form {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  z-index: 9;
}

.header-main {
  background-color: #fff;
  padding: 10px 0;
  border-bottom: 1px solid #ddd;
}

header.fixed .header-main {
background-color: #fff;
}

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

.header-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.header-logo img {
  height: 70px;
  width: auto;
  margin-right: 10px;
}

.header-text {
  font-size: 16px;
  font-weight: bold;
  color: #014AB9;
}

/* Remove default list styling */
.nav-menu, .nav-menu ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

/* Remove the default marker */
.nav-menu ul li::marker {
  content: none;
}

/* Ensure that the menu items are displayed in a row (for top-level items) */
.nav-menu {
  display: flex;
  align-items: center;
}

/* For individual menu items */
.nav-menu li {
  position: relative; /* Necessary for positioning submenus */
}

/* Style the top-level menu links */
.nav-menu li a {
  text-decoration: none;
  color: #333;
  padding: 10px 15px;
  display: block;
  transition: all 0.3s ease-in-out;
  display: flex;
  align-items: center;
}

/* Add a dropdown icon to menu items with submenus */
.nav-menu li.menu-item-has-children > a::after {
  content: '';
  display: inline-block;
  width: 12px;
  height: 12px;
  background: url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" width="10" height="10" viewBox="0 0 10 10"%3E%3Cpath fill="none" stroke="%23333" stroke-width="2" d="M2 2 L5 5 L8 2"%3E%3C/path%3E%3C/svg%3E') no-repeat center center;
  background-size: contain;
  margin-left: 5px;
  transition: transform 0.3s ease-in-out;
}

header.fixed .nav-menu li.menu-item-has-children > a::after {
background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 10 10'%3E%3Cpath fill='none' stroke='%23ffffff' stroke-width='2' d='M2 2 L5 5 L8 2'/%3E%3C/svg%3E") no-repeat center center;
}

/* Rotate the arrow when the submenu is displayed */
.nav-menu li:hover > a::after {
  transform: rotate(180deg);
}

/* Submenu styles */
.nav-menu li ul {
  display: none; /* Hide dropdowns by default */
  position: absolute;
  top: 100%;
  left: 0;
  background: white;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  min-width: 180px;
  padding: 0;
  z-index: 1000;
  flex-direction: column;
}

.nav-menu li:hover > ul {
  display: block; /* Show the submenu on hover */
}

/* Style for individual submenu items */
.nav-menu li ul li {
  width: 100%;
}

.nav-menu li ul li a {
  padding: 10px 15px;
  font-size: 14px;
  color: #333;
}

header.fixed .nav-menu li ul li a {
color: #333;
}

.nav-menu li ul li a:hover, header.fixed .nav-menu li ul li a:hover {
  background: #014AB9; /* Theme color */
  color: white;
}

/* Initially hide the hamburger icon */
.nav-toggle {
  display: none;
}

/* header.fixed .header-text, header.fixed .nav-menu li a  {
color: #fff;
} */

.contact-btn-container {

}

.contact-btn-container a {
border-radius: 3px;
background-color: #014AB9;
padding: 14px 16px;
color: #fff;
font-size: 14px;
text-decoration: none;
transition: all 0.3s ease-in-out;
}

.contact-btn-container a:hover {
opacity: 0.9;
}

/* Mobile view: Hide the menu and show it when the hamburger is clicked */
@media (max-width: 768px) {
  .nav-toggle {
      display: block; /* Show the hamburger icon on mobile */
      font-size: 24px;
      background: none;
      border: none;
      color: #333;
      padding: 10px;
  }

  .nav-menu {
      display: none; /* Hide the main menu by default on mobile */
      flex-direction: column;
      position: absolute;
      top: 60px;
      left: 0;
      width: 100%;
      background-color: white;
      padding: 10px 0;
      box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  }

  .nav-menu.active {
      display: flex; /* Show the menu when active */
  }

  .nav-menu ul {
      flex-direction: column;
      width: 100%;
  }

  .nav-menu ul li {
      text-align: center;
  }
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
  .top-bar .container {
      flex-direction: row;
      align-items: center;
  }

  .left-section,
  .right-section {
      justify-content: center;
      margin: 10px 0;
  }

  .left-section img.flag-img {
      width: 18px; /* Adjust flag size for smaller screens */
  }

  .left-section .nepali-time {
      margin: 5px 0;
  }

  .right-section img {
      width: 18px; /* Adjust icons size for smaller screens */
  }
}

/* Smaller screens */
@media (max-width: 480px) {
  .top-bar .container {
      padding: 0 10px; /* Add some padding for very small screens */
  }

  .left-section .nepali-time {
      font-size: 12px; /* Smaller text size on mobile */
  }

  .right-section img {
      width: 16px; /* Smaller icons on very small screens */
  }
}

.custom-footer {
background: #0c1b2a;
color: #f4f4f470;
font-size: 15px;
}

.footer-top {
padding: 60px 0;
}

.footer-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
gap: 40px;
}

.footer-col {
display: flex;
flex-direction: column;
}

.footer-title {
font-size: 18px;
margin-bottom: 20px;
font-weight: 600;
color: #f4f4f4d4;
}

.custom-footer p {
color: #f4f4f470;
font-size: 14px;
line-height: 1.8;
}

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

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

.footer-links a {
color: #f4f4f470;
text-decoration: none;
transition: color 0.3s;
}
.custom-footer a {
color: #f4f4f470;
text-decoration: none;
transition: color 0.3s;
}

.custom-footer a:hover, .footer-links a:hover {
color: #ffffff;
}

.newsletter-form {
display: flex;
flex-direction: column;
gap: 10px;
}

.newsletter-form input {
padding: 10px;
border: none;
border-radius: 4px;
outline: none;
font-size: 14px;
}

.newsletter-form button {
padding: 10px;
background: #014AB9;
border: none;
color: #fff;
font-weight: 600;
border-radius: 4px;
cursor: pointer;
transition: background 0.3s;
}

.newsletter-form button:hover {
background: #013a94;
}

.footer-social {
margin-top: 15px;
}

.footer-social a {
margin-right: 10px;
display: inline-block;
}

.footer-social img {
width: 24px;
height: 24px;
filter: brightness(0) invert(1);
}

.footer-social {
display: flex;
gap: 15px;
margin-top: 20px;
}

.footer-social .social-icon {
color: #c9d6e3; /* Default icon color */
font-size: 18px;
transition: color 0.3s ease, transform 0.3s ease;
}

.footer-social .social-icon:hover {
color: #ffffff; /* Hover color */
transform: scale(1.2);
}

.footer-bottom {
background: #08131f;
padding: 20px 0;
text-align: center;
font-size: 14px;
color: #ccc;
}

@media (max-width: 480px) {
svg.e-font-icon-svg, .nepali-text-link, .top-bar .right-section .search-container, .top-bar .right-section .facebook-icon, .header-main .contact-btn-container{
  display: none;
}
.top-bar .left-section{
  margin: 0;
}
.team-img-wrapper {
  height: 260px;
}
header {
  top: 0;
}
}
/* Hamburger button styles */
.hamburger-button {
display: flex;
flex-direction: column;
gap: 4px;
background: none;
border: none;
cursor: pointer;
z-index: 1001;
}
.hamburger-button span {
width: 25px;
height: 3px;
background: #014AB9;
border-radius: 2px;
}

/* Fullscreen overlay */
#mobileMenuOverlay {
max-width: 100%;
position: fixed;
top: 0;
right: 0;
width: 100%;
height: 100%;
background: white;
color: #014AB9; /* Theme color */
z-index: 9999;
transform: translateX(100%);
transition: transform 0.3s ease-in-out;
display: flex;
flex-direction: column;
overflow-y: scroll;
}

/* Slide in */
#mobileMenuOverlay.active {
transform: translateX(0);
}

.mobile-menu-inner {
position: relative;
padding: 40px 20px;
max-width: 100%;
margin: 0 auto;
}

.w-bg-wrapper {
  background: #fff;
}

.theme-bg-wrapper {
  background: #014AB9;
}

.mobile-logo {
  text-align: center;
  padding: 10px 20px;
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
  padding-bottom: 10px;
  margin-top: 10px;
  position: relative;
}

.mobile-logo img {
max-width: 80px;
}

.mobile-logo .header-text {
font-size: 18px;
display: block;
margin-top: 10px;
font-weight: bold;
color: #014AB9;
}

.mobile-nav-menu {
list-style: none;
padding: 0;
margin: 0;
}

.mobile-nav-menu li {
margin-bottom: 20px;
position: relative;
}

.mobile-nav-menu li a {
text-decoration: none;
color: #fff;
font-size: 18px;
font-weight: 600;
display: block;
}

.mobile-nav-menu .menu-item-has-children > a::after {
  content: '';
  display: inline-block;
  width: 12px;
  height: 12px;
  background: url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" width="10" height="10" viewBox="0 0 10 10"%3E%3Cpath fill="none" stroke="%23ffffff" stroke-width="2" d="M2 2 L5 5 L8 2"%3E%3C/path%3E%3C/svg%3E') no-repeat center center;
  background-size: contain;
  margin-left: 5px;
  transition: transform 0.3s ease-in-out;
}

.mobile-nav-menu .menu-item-has-children.expanded > a::after {
transform: rotate(180deg);
}

.mobile-nav-menu .menu-item-has-children ul {
display: none;
padding-left: 25px;
margin-top: 10px;
}

.mobile-nav-menu .menu-item-has-children.expanded ul {
display: block;
}

.close-mobile-menu {
position: absolute;
top: 50%;
right: 10px;
transform: translateY(0);
background: none;
border: none;
font-size: 36px;
color: #014AB9;
cursor: pointer;
}

/* Social icons */
.mobile-social {
margin-top: 30px;
}

.mobile-social span {
  font-weight: bold;
  font-size: 18px;
  font-weight: 600;
  display: block;
  color: #fff;
}

.mobile-social p {
  font-size: 14px;
  color: #fff;
}

.mobile-social p a {
  text-decoration: none;
  color: #fff;
}

.mobile-social a.social-icon {
color: #c9d6e3;
font-size: 18px;
transition: color 0.3s ease, transform 0.3s ease;
}

/* Base styles for submenu */
.mobile-nav-menu .sub-menu {
max-height: 0;
overflow: hidden;
transition: max-height 0.3s ease;
padding-left: 20px;
}

/* When expanded, reveal submenu */
.mobile-nav-menu li.expanded > .sub-menu {
max-height: 500px; /* Enough height to fit submenu items */
}

/* Optional: Better spacing for submenu items */
.mobile-nav-menu .sub-menu li {
padding: 10px 0;
}

.container {
  width: 90%;
  margin: 0 auto
}

@media (max-width:769px) {
  .top-bar .right-section .search-container, .top-bar .right-section .facebook-icon {
      display: none;
  }
  .custom-footer p {
      display: block!important;
      text-align: left;
  }
  .custom-footer p span {
      text-align: left!important;
      display: block!important;
  }
}

@media (max-width: 1024px) {
  .header-main .main-nav, .header-main .contact-btn-container, .top-bar .left-section svg.e-font-icon-svg, .top-bar .left-section .nepali-text-link{
      display: none;
  }
}

/* Responsive display */
@media (min-width: 1024px) {
  #mobile-menu-toggle {
      display: none;
  }
}
.top-bar.hidden, .top-bar-white.hidden {
  display: none;
}
.top-bar-white {
background-color: #fff;
overflow: hidden;
width: 100%;
white-space: nowrap;
height: 40px;
display: flex;
align-items: center;
border-bottom: 1px solid #ccc;
}

.marquee {
display: flex;
flex-wrap: nowrap;
width: 300%;
animation: scroll-marquee 30s linear infinite;
}

.marquee-content {
display: flex;
flex-shrink: 0;
white-space: nowrap;
}

.scrolling-text {
padding-right: 50px;
font-size: 14px;
color: #014AB9;
}

/* Keyframes */
@keyframes scroll-marquee {
0% { transform: translateX(0); }
100% { transform: translateX(-50%); }
}

.date-bar {
    font-size: 14px;
    background: transparent;
    color: #fff;
}