@tailwind base;
@tailwind components;
@tailwind utilities;

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body{
  overflow-x: hidden;
}
.common_title {
  font-size: 28px;
  color: #333;
  font-weight: 700;
  margin: 40px 0;
  text-align: center;
}
.common_subtitle {
  font-size: 32px;
  text-align: center;
  color: #333;
  font-weight: 700;
}

.login {
  box-shadow: rgba(0, 0, 0, 0.24) 0px 3px 8px;
  padding: 20px 40px;
  border-radius: 15px;
}
.bg_img1 {
  background-image: linear-gradient(to bottom, rgb(0, 0, 0, 0.6), rgb(0, 0, 0, 0.7)), url("/img/1.jpg");
  background-size: 100% 580px;
  width: 100%;
  background-repeat: no-repeat;
}
.bg_img2 {
  background-image: linear-gradient(to bottom, rgb(0, 0, 0, 0.6), rgb(0, 0, 0, 0.7)), url("/img/2.avif");
  background-size: 100% 580px;
  width: 100%;
  background-repeat: no-repeat;
}
.bg_img3 {
  background-image: linear-gradient(to bottom, rgb(0, 0, 0, 0.6), rgb(0, 0, 0, 0.7)), url("/img/3.avif");
  background-size: 100% 580px;
  width: 100%;
  background-repeat: no-repeat;
}
/* Main category */
.main_category_wrap{
  grid-template-columns: repeat(5, minmax(0, 1fr));
}
.main_category {
  position: relative;
  transition: box-shadow 0.3s;
  border-radius: 15px;
}
.main_category:hover{
  box-shadow: rgba(0, 0, 0, 0.5) 0px 10px 20px;
}
.main_category img {
  vertical-align: middle;
  border-radius: 15px;
}

.main_category .content {
  position: absolute;
  bottom: 0;
  background: rgb(0, 0, 0); 
  background: rgba(0, 0, 0, 0.5); 
  color: #f1f1f1;
  width: 100%;
  padding: 10px;
  border-radius: 15px;
}
.card_wrapper {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  justify-content: space-between;
  gap: 50px;
}
.read_books {
  height: 500px;
  overflow-y: scroll;
  background-color: #343d4dff;
  color: #fff;
  border-radius: 15px;
  padding: 20px;
}
.read_books * {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.read_books::-webkit-scrollbar-track {
  -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);
  border-radius: 10px;
  background-color: #f5f5f5;
}

.read_books::-webkit-scrollbar {
  width: 8px;
  background-color: #f5f5f5;
}

.read_books::-webkit-scrollbar-thumb {
  border-radius: 10px;
  -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);
  background-color: #afafaf;
}
.contact_form input:focus,
.contact_form textarea:focus {
  border: 2px solid #0084a8ff;
}
.c_grid {
  display: grid;
  gap: 20px;
  grid-template-areas:
    "d1 d1 d2 d3"
    "d1 d1 d4 d5";
}
.grid_big_box {
  background-color: #eef1f3ff;
  padding: 25px;
  border-radius: 15px;
}
.grid_box {
  background-color: #eef1f3ff;
  padding: 25px;
  border-radius: 15px;
}
.grid_big_box img,
.grid_box img {
  width: 50px;
  margin-bottom: 17px;
}
.grid_big_box img {
  width: 80px;
  margin-bottom: 20px;
}
.grid_box h2 {
  font-size: 30px;
  font-family: "Poppins", sans-serif;
  font-weight: 400;
  font-style: italic;
  margin-bottom: 10px;
}
.grid_box p {
  font-size: 16px;
  font-family: "Poppins", sans-serif;
  font-weight: 300;
  font-style: normal;
  margin-bottom: 15px;
}
.grid_big_box p {
  margin-bottom: 25px;
  font-family: "Poppins", sans-serif;
  font-weight: 300;
}
.grid_1 {
  grid-area: d1;
  width: 100%;
}
.grid_2 {
  grid-area: d2;
  width: 100%;
}
.grid_3 {
  grid-area: d3;
  width: 100%;
}
.grid_4 {
  grid-area: d4;
  width: 100%;
}
.grid_5 {
  grid-area: d5;
  width: 100%;
}
.swiper {
  width: 100%;
  height: 100%;
}

.swiper-slide {
  text-align: center;
  font-size: 18px;
  background: #fff;
  display: flex;
  justify-content: center;
  margin-top: 50px;
  align-items: center;
}

.swiper-slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.swiper-button-next,
.swiper-button-prev {
  position: absolute;
  top: 85px !important;
  width: 40px !important;
  height: 40px !important;
  margin-top: 10px;
  z-index: 10;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff !important;
  background-color: rgb(206, 202, 202);
  border-radius: 50%;
}
.swiper-button-prev {
  left: 91% !important;
}
.swiper-button-next::after,
.swiper-button-prev::after {
  font-size: 20px !important;
  font-weight: 700 !important;
}

.slider {
  background: white;
  box-shadow: 0 2px 20px -5px rgba(0, 0, 0, 0.125);
  height: 100px;
  overflow: hidden;
  position: relative;
}
.slider::before,
.slider::after {
  background: linear-gradient(to right, white 0%, rgba(255, 255, 255, 0) 100%);
  content: "";
  height: 100px;
  position: absolute;
  width: 200px;
  z-index: 2;
}
.slider::after {
  right: 0;
  top: 0;
  transform: rotateZ(180deg);
}
.slider::before {
  left: 0;
  top: 0;
}
.slider .slide-track {
  -webkit-animation: scroll 40s linear infinite;
  animation: scroll 40s linear infinite;
  display: flex;
  width: calc(250px * 14);
}
.slider .slide {
  height: 100px;
  width: auto;
  padding: 0 25px;
}
.slider .slide:hover {
  opacity: 0.7;
}
.slider .slide p {
  font-family: "Oswald", sans-serif;
  line-height: 100px;
  font-size: 24px;
  font-weight: 700;
  font-style: italic;
}
@-webkit-keyframes scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(calc(-250px * 7));
  }
}

@keyframes scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(calc(-250px * 7));
  }
}

[type="checkbox"]:checked:hover,
[type="checkbox"]:checked:focus,
[type="radio"]:checked:hover,
[type="radio"]:checked:focus {
  border-color: transparent;
  background-color: currentColor;
}

[type="checkbox"]:indeterminate:hover,
[type="checkbox"]:indeterminate:focus {
  border-color: transparent;
  background-color: currentColor;
}

.hover\:bg-blue-700:hover {
  --tw-bg-opacity: 1 !important;
  background-color: rgb(29 78 216 / var(--tw-bg-opacity)) !important;
}

.hover\:bg-gray-900:hover {
  --tw-bg-opacity: 1 !important;
  background-color: rgb(17 24 39 / var(--tw-bg-opacity)) !important;
}

.hover\:bg-primary:hover {
  --tw-bg-opacity: 1 !important;
  background-color: rgb(254 166 2 / var(--tw-bg-opacity)) !important;
}

.hover\:text-blue-500:hover {
  --tw-text-opacity: 1 !important;
  color: rgb(59 130 246 / var(--tw-text-opacity)) !important;
}

.hover\:text-gray-200:hover {
  --tw-text-opacity: 1 !important;
  color: rgb(229 231 235 / var(--tw-text-opacity)) !important;
}

.hover\:text-primary:hover {
  --tw-text-opacity: 1 !important;
  color: rgb(254 166 2 / var(--tw-text-opacity)) !important;
}

.hover\:text-white:hover {
  --tw-text-opacity: 1 !important;
  color: rgb(255 255 255 / var(--tw-text-opacity)) !important;
}

.focus\:border-primary:focus {
  --tw-border-opacity: 1 !important;
  border-color: rgb(254 166 2 / var(--tw-border-opacity)) !important;
}

.focus\:ring-primary:focus {
  --tw-ring-opacity: 1 !important;
  --tw-ring-color: rgb(254 166 2 / var(--tw-ring-opacity)) !important;
}

.disabled\:pointer-events-none:disabled {
  pointer-events: none !important;
}

.disabled\:opacity-50:disabled {
  opacity: 0.5 !important;
}

.group:hover .group-hover\:scale-110 {
  --tw-scale-x: 1.1 !important;
  --tw-scale-y: 1.1 !important;
  -webkit-transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate))
    skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y)) !important;
  transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x))
    skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y)) !important;
}

.group:hover .group-hover\:shadow-sm {
  --tw-shadow: 0px 2px 6px 0px rgba(60, 72, 88, 0.15) !important;
  --tw-shadow-colored: 0px 2px 6px 0px var(--tw-shadow-color) !important;
  -webkit-box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow) !important;
  box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow) !important;
}
.two_line {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}


.search_component select:focus {
  border-color: #046884;
  -webkit-box-shadow: none;
  box-shadow: 1px #046884;
}

.search_component option:hover{
  background-color: #0084a8ff !important;
}
.search_component select:focus > option:hover { 
  background: #046884;
}
.formula_content{
  height: 100dvh;
}
.formula_page{
  height: 100dvh;
  padding: 10px;
}
.formula_list{
  height: 100dvh;
  box-shadow: rgba(0, 0, 0, 0.15) 1.95px 1.95px 2.6px;
  height: 100%;
  z-index: 0;
  overflow-y: scroll;
}
.formula_list::-webkit-scrollbar-track {
  -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);
  border-radius: 10px;
  background-color: #f5f5f5;
}

.formula_list::-webkit-scrollbar {
  width: 8px;
  background-color: #f5f5f5;
}

.formula_list::-webkit-scrollbar-thumb {
  border-radius: 10px;
  -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);
  background-color: #afafaf;
}
.formula_list_wrap {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.formula_list_wrap a{
  width: 100%;
  text-align: center;
}

@media (max-width: 500px) {
  .common_title {
    font-size: 24px;
    font-size: #333;
    font-weight: 700;
    margin: 20px 0;
  }
  .common_subtitle {
    font-size: 24px;
    color: #333;
    font-weight: 700;
  }
  .card_wrapper {
    display: grid;
    grid-template-columns: repeat(1, minmax(0, 1fr));
    justify-content: space-between;
    gap: 20px;
  }
  .bg_img1 {
    background-image: linear-gradient(to bottom, rgb(0, 0, 0, 0.6), rgb(0, 0, 0, 0.7)), url("/img/1.jpg");
    background-size: 100% 250px;
    width: 100%;
    background-repeat: no-repeat;
  }
  .bg_img2 {
    background-image: linear-gradient(to bottom, rgb(0, 0, 0, 0.6), rgb(0, 0, 0, 0.7)), url("/img/2.avif");
    background-size: 100% 250px;
    width: 100%;
    background-repeat: no-repeat;
  }
  .bg_img3 {
    background-image: linear-gradient(to bottom, rgb(0, 0, 0, 0.6), rgb(0, 0, 0, 0.7)), url("/img/3.avif");
    background-size: 100% 250px;
    width: 100%;
    background-repeat: no-repeat;
  }
  .main_category_wrap{
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .login {
    box-shadow: none;
    padding: 20px;
    margin-top: 0;
    border-radius: 0;
  }

  .c_grid {
    display: grid;
    gap: 20px;
    grid-template-areas:
      "d1"
      "d2"
      "d3"
      "d4"
      "d5";
  }
  .grid_big_box {
    padding: 15px;
  }
  .grid_box {
    padding: 15px;
  }
  .grid_big_box img,
  .grid_box img {
    width: 50px;
    margin-bottom: 17px;
  }
  .grid_big_box img {
    width: 80px;
    margin-bottom: 20px;
  }
  .grid_box h2 {
    font-size: 20px;
  }
  .grid_box p {
    font-size: 14px;
    margin-bottom: 12px;
  }
  .grid_big_box p {
    margin-bottom: 20px;
  }

  .swiper-slide {
    text-align: center;
    font-size: 18px;
    background: #fff;
    display: flex;
    justify-content: center;
    margin-top: 30px;
    align-items: center;
  }
  .swiper-button-next,
  .swiper-button-prev {
    position: absolute;
    top: 55px !important;
    width: 30px !important;
    height: 30px !important;
    margin-top: 10px;
    z-index: 10;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff !important;
    background-color: rgb(206, 202, 202);
    border-radius: 50%;
  }
  .swiper-button-prev {
    left: 80% !important;
  }
  .swiper-button-next::after,
  .swiper-button-prev::after {
    font-size: 14px !important;
    font-weight: 600 !important;
  }
  .slider {
    background: white;
    box-shadow: 0 2px 20px -5px rgba(0, 0, 0, 0.125);
    height: 70px;
    overflow: hidden;
    position: relative;
  }
  .slider::before,
  .slider::after {
    background: linear-gradient(to right, white 0%, rgba(255, 255, 255, 0) 100%);
    content: "";
    height: 100px;
    position: absolute;
    width: 200px;
    z-index: 2;
  }
  .slider::after {
    right: 0;
    top: 0;
    transform: rotateZ(180deg);
  }
  .slider::before {
    left: 0;
    top: 0;
  }
  .slider .slide-track {
    -webkit-animation: scroll 40s linear infinite;
    animation: scroll 40s linear infinite;
    display: flex;
    width: calc(250px * 14);
  }
  .slider .slide {
    height: 70px;
    width: auto;
    padding: 0 15px;
  }
  .slider .slide:hover {
    opacity: 0.7;
  }
  .slider .slide p {
    font-family: "Oswald", sans-serif;
    line-height: 70px;
    font-size: 16px;
    font-weight: 700;
    font-style: italic;
  }
  .read_books {
    padding: 10px;
  }
  .formula_content{
    height: auto;
  }
  .formula_page{
    height: auto;
    padding: 10px;
  }
}
