@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;700&display=swap');

html, body {
  font-family: 'Poppins', sans-serif;
}


body {
  background-color: #ffffff;
  font-family: Poppins;
}

div#navbarSupportedContent{
  padding-right:15px;
}


.form-control {
  border-radius: 20px;
  font-size: 16px;
  padding: 10px 15px;
}
.search-box-input {
  background: #fff;
}
.search-btn {
  line-height: 1;
}
.search-icon {
  font-size: 1.3rem;
  color: #8c9196;
}

.top-bar {
  font-size: 14px;
}


/* Navbar base */
.navbar {
  font-size: 16px;
  border-bottom: 1px solid #dee2e6;
  position: relative;
  z-index: 1000;
  background: #fff;
}

/* Anchor absolute dropdowns to the container */
.navbar .container {
  position: relative;
  z-index: 1000;
}

.navbar-brand img {
  max-height: 75px;
  width: 73px;
}


.navbar-nav .nav-link {
  color: #8c9196;
  text-align: center;
  font-size: 23px;
  font-weight: 400;
  line-height: 32px;
  padding: 16px 12px;
  transition: color 0.2s ease;
  position: relative;
}
.navbar-nav .nav-link:hover,
.navbar-nav .nav-link:focus {
  color: #000;
}

ul.navbar-nav i {
  font-size: 35px;
}
.navbar-icons .nav-link {
  font-size: 18px;
}
.navbar-icons .navbar-nav {
  gap: 19px;
}
.main-menu .navbar-nav {
  gap: 50px;
}

/* Hide default caret */
.nav-link.dropdown-toggle::after {
  display: none !important;
}

/* Dropdown menu (simple ones) */
.dropdown-menu {
  border-radius: 0;
  border: none;
  font-size: 16px;
}
.dropdown-menu a {
  color: #383a3c;
  padding: 10px 20px;
}
.dropdown-menu a:hover {
  color: #fbbf24;
}
.dropdown-item:focus,
.dropdown-item:hover {
  background-color: transparent;
}


/* ssssssssssssssssssssss */
.mega-dropdown {
  position: absolute;
  top: 100px;
  left: 0%;
  background: #ffffff;
  padding: 40px 26px;
  border-top: 2px solid #fbbf24;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 1001;
  width: 100%;
  right: 0%;
}


/* show when li has open */
.nav-item.kitablar.open .mega-dropdown {
  display: block;
  opacity: 1;
  pointer-events: auto;
}
/* ssssssssssssss Ends */

.nav-item.kitablar {
  position: static !important;
}
.nav-item.kitablar:hover > .nav-link {
  color: #000;
}

.kitablar-dropdown-wrapper {
  display: flex;
  /* gap: 88px; */
}

.məlliflər-div-wrapper{
  gap: 30px;
  flex-wrap: nowrap;
  justify-content: flex-start;
  overflow-x: auto;
  padding-bottom: 10px;
}


.mega-dropdown .column {
  /* flex: 0 0 22%;
  padding: 0 20px;
  min-width: 200px; */
}
.mega-dropdown .column h6 {
  color: #383a3c;
  font-size: 20px;
  font-weight: 400;
  line-height: 28px;
  margin-bottom: 0.5rem;
}
.mega-dropdown .column ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.mega-dropdown .column ul li a {
  padding: 5px 0;
  color: #383a3c;
  font-size: 16px;
  font-weight: 400;
  line-height: 24px;
  text-decoration: none;
}
.mega-dropdown .column ul li a:hover {
  color: #fbbf24;
  cursor: pointer;
}

/* Authors mega variant */
.mega-dropdown.mega-dropdown-Məlliflər {
  overflow:hidden;
    background: #f3f4f4 !important;
    padding: 40px 48px 30px 48px !important;
    margin-left: calc(-47vw + 11%) !important;
}
/* Remove margin-left on mobile */
@media (max-width: 767px) {
  .mega-dropdown.mega-dropdown-Məlliflər {
    margin-left: 0 !important;
  }
}

.author-item {
  flex: 0 0 160px; /* Narrower items to fit more and prevent squeezing */
  max-width: 160px;
}
.mega-dropdown-Məlliflər .kitablar-dropdown-wrapper {
  gap: 30px !important;
}
.author-item .author-img {
  width: 140px;
  height: 140px;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 50%;
  display: block;
  margin-left: auto;
  margin-right: auto;
  transition: transform 0.3s ease;
}
.author-name {
  color: #383a3c;
  font-size: 20px;
  font-style: normal;
  font-weight: 400;
  line-height: 28px;
}

/* Authors Carousel Styles */
.authors-carousel-container {
    padding: 0 40px;
}

.carousel-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: #fff;
    border: none;
    border-radius: 50%;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: all 0.3s ease;
    cursor: pointer;
    color: #333;
}

.carousel-nav-btn:hover {
    background: #fbbf24;
    color: #fff;
    box-shadow: 0 6px 15px rgba(0,0,0,0.15);
}

.carousel-nav-btn.prev {
    left: 0;
}

.carousel-nav-btn.next {
    right: 0;
}

.carousel-nav-btn i {
    font-size: 20px;
    line-height: 1;
}

/* Hide scrollbar but keep functionality */
.məlliflər-div-wrapper {
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
}

.məlliflər-div-wrapper::-webkit-scrollbar {
    display: none; /* Chrome, Safari and Opera */
}

.nav-bar-icons-mobile{
  display:none;
}

.nav-bar-icons-desktop{
  display:block;
}

/* Icons area hide on xs */
@media (max-width: 767.98px) {
      .navbar-search {
        top:85% !important;
        overflow: hidden;
        width: 100% !important;
        left: -13% !important;
        padding: 20px 10px !important;
    }

.nav-bar-icons-mobile{
  display:block;
}

.nav-bar-icons-desktop{
  display:none;
}

  .navbar-icons .navbar-nav {
    gap: 36px;
    display: flex;
    flex-direction: row;
    text-align: center;
        align-items: center;
        justify-content: center;
}
}

/* Mobile behavior: inside collapsed flow */
@media (max-width: 991.98px) {
  /* Let dropdown content flow naturally in the collapse */
  .navbar .container {
    position: static;
  }
  .mega-dropdown {
    position: static !important;
    display: none;
    opacity: 1;
    pointer-events: auto;
    box-shadow: none;
    border-top: none;
    padding: 16px 0;
  }
  .nav-item.kitablar.open > .mega-dropdown {
    display: block !important;
  }
  .kitablar-dropdown-wrapper {
    flex-direction: column;
    gap: 16px !important;
  }
  .mega-dropdown .column {
    /* min-width: auto;
    padding: 0; */
  }
  
  /* Center vertically stacked authors horizontally */
  .məlliflər-div-wrapper {
    align-items: center !important;
  }

  /* Center submenu items on mobile */
  .dropdown-menu, .mega-dropdown {
    text-align: center !important;
  }
  .mega-dropdown .column h6,
  .mega-dropdown .column ul li a,
  .dropdown-menu a {
    text-align: center !important;
    display: block;
  }
}

.author-item:hover .author-img {
  transform: scale(1.05);
}

.author-name {
  padding-top: 10px;
  font-size: 18px; /* Slightly smaller to fit names better */
  font-style: normal;
  font-weight: 400;
  line-height: 1.2; /* Better line height for wrapping */
  margin-top: 5px;
  word-wrap: break-word;
}

/* Language Selector */
.language-selector {
  font-size: 20px;
  border-radius: 4px;
  border: 1px solid #e8e9ea !important;
  background: #fff;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;

  background-image: url("data:image/svg+xml;utf8,<svg fill='gray' height='32' viewBox='0 0 24 24' width='32' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/></svg>");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 28px;  /* slightly bigger */
  padding-right: 3rem;    /* give extra space */
  height: calc(1.5em + 0.5rem + 2px);
}




/* Bread Crum */
.breadcrumb {
  font-size: 14px;
  font-style: normal;
  font-weight: 300;
  line-height: 24px;
  color: #707478;
}
.breadcrumb span {
  font-size: 14px;
  font-style: normal;
  font-weight: 300;
  line-height: 24px;
  color: #707478;
}

/* Footer Section */

.footer-section {
  margin-top: 3rem;
}
.footer-link {
  color: #fff;
  text-decoration: none;
  font-size: 18px;
  font-style: normal;
  font-weight: 400;
  line-height: 28px;
}
.footer-link:hover {
  color: #fde399;
  text-decoration: none;
}

.footer-social {
  color: #fff;
  font-size: 1.7rem;
  transition: color 0.2s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.footer-social:hover {
  color: #fde399;
}
.email-input {
  max-width: 320px;
  border-radius: 8px;
  border: 1px solid #e8e9ea;
  background: #0a5c74;
  color: #fff;
}

.email-input::placeholder {
  color: white;
}

@media (max-width: 767px) {
  .footer-section {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
  .footer-social {
    font-size: 1.3rem;
  }
}


  .position-static{ position: static !important; }
  
/* Profile Icon Dropdown Styling */
.profile-icon-item .dropdown-menu {
    border: 1px solid #eee;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    padding: 10px 0;
    min-width: 200px;
    margin-top: 10px;
}

.profile-icon-item .dropdown-item {
    padding: 8px 20px;
    font-size: 14px;
    color: #4a5568;
    transition: all 0.2s;
}

.profile-icon-item .dropdown-item:hover {
    background-color: #f7fafc;
    color: #fbbf24;
}

.profile-icon-item .dropdown-divider {
    margin: 8px 0;
    border-top: 1px solid #edf2f7;
}

@media (max-width: 991.98px) {
    .profile-icon-item .dropdown-menu {
        position: absolute !important;
        right: 0;
        left: auto;
    }
}