@tailwind base;
@tailwind components;
@tailwind utilities;

/* Initial Font */
@font-face {
  font-family: "YekanBakh";
  src: url("/fonts/YekanBakh-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: "YekanBakh";
  src: url("/fonts/YekanBakh-Regular.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
}

@font-face {
  font-family: "YekanBakh";
  src: url("/fonts/YekanBakh-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
}

/* Scrollbar */
*::-webkit-scrollbar {
  width: 4px;
  height: 4px;
}

*::-webkit-scrollbar-track {
  background: #cccccc;
  padding: 0 10px !important;
}

*::-webkit-scrollbar-thumb {
  background: var(--bg-secondary);
  padding: 0 10px !important;
}

*::-webkit-scrollbar-thumb:hover {
  background: var(--bg-active);
  padding: 0 10px !important;
}

.scroll-bar::-webkit-scrollbar {
  width: 4px;
  height: 4px;
  display: flex;
}

.scroll-bar::-webkit-scrollbar-track {
  background: none !important;
  padding: 0 10px !important;
}

.scroll-bar::-webkit-scrollbar-thumb {
  background: var(--bg-secondary) !important;
  padding: 0 10px !important;
  border-radius: 16px !important;
}

.scroll-bar::-webkit-scrollbar-thumb:hover {
  background: var(--bg-primary) !important;
  display: flex !important;
}

/* Default Style */
:root {
  --bg-primary: #003087;
  --bg-hover-primary: #ff6c00;
  --bg-secondary: #273e74;
  --bg-hover-secondary: #4163b2;
  --active: #003087;
  --inactive: #cccccc;
  --border-primary: #c0cdec;
  --border-secondary: #dddddd;
  --border-active: #003087;
  --border-main-primary: #f58634;
  --border-main-secondary: #273e74;
  --tx-primary: #101010;
  --tx-secondary: #404040;
  --tx-accent: #9f9f9f;
  --tx-paragraph: #5c5c5c;
  --tx-active: #003087;
  --tx-main-primary: #f58634;
  --tx-main-secondary: #273e74;
}

html,
body {
  scroll-behavior: smooth;
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}

body {
  width: 100vw;
  min-height: 100vh;
  overflow-x: hidden;
  direction: rtl;
  font-size: 16px;
  font-family: "YekanBakh";
  font-weight: 400;
  font-style: normal;
  background-color: white;
  color: var(--tx-primary);
}

a {
  text-decoration: none !important;
}

/* Navbar Default Style */
.navbar {
  display: flex;
  flex-direction: row;
  align-items: center;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 90px;
  z-index: 99;
  background: white;
  box-shadow: 0 7px 7px rgba(0, 0, 0, 0.07);
}

.navbar > img {
  margin-right: 32px;
}

.navbar > ul {
  list-style: none;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0 32px;
}

.navbar-text-style {
  font-size: 16px;
  font-weight: 600;
  font-family: "YekanBakh";
  color: var(--tx-primary);
  position: relative;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  transition: all 300ms ease-in-out;
}

.navbar > ul > li > a,
.navbar > ul > li > button {
  text-decoration: none;
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%; 
  height: 90px;
  justify-content: center;
}

.navbar > ul > li > a:hover span {
  color:orange  !important;
}


.navbar > ul > li > button:hover > span {
  color:orange  !important;
}

.navbar > ul > li > button > i {
  position: absolute;
  top: 50%;
  left: -10px;
  font-size: 20px;
  color: black;
  transition: all 300ms ease-in-out;
  transform: translate(-50%, -50%);
}


.navbar > ul > li > button:hover > i {
  color: orange;
}


.navbar > ul > li > button.active {
  background: #003087;
  color: white;
  padding: 10px;
}
.navbar > ul > li > button.active > span {
  color: white;
}
.navbar > ul > li > button.active > i {
  color: white;
  top: calc(50% + 12px);
  left: 50%;
  transform: translate(-50%, 0);
}


.navbar > ul > li > button.active:hover > i {
  color: orange;
}

.hamburger {
  display: none;
  font-size: 24px;
  background: none;
  border: none;
  cursor: pointer;
 color:orange  !important;
  z-index: 100;
}

.hamburger.open i::before {
  content: "\2715";
}

.submenu {
  width: 100%;
  height: calc(100vh - 90px);
  overflow-y: auto;
  position: fixed;
  top: 90px;
  left: 0;
  z-index: 90;
  background: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(3px);
  padding: 32px 0;
  display: none;
  opacity: 0;
  transition: opacity 300ms ease-in-out;color: #003087;
}

.submenu.active {
  display: block;
}

.submenu-close {
  position: absolute;
  top: 16px;
  left: 16px;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 24px;
color: #003087;
}

.submenu-close:hover {
 color:#003087 !important;
}

.submenu > ul {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  align-items: center;
  justify-content: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 32px;
}

.submenu > ul > li {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
  text-align: center;
  opacity: 0;
  transform: translateY(20px);
}

@keyframes rotateItem {
  0% {
    transform: translateY(20px) rotate(0deg);
    opacity: 0;
  }
  50% {
    transform: translateY(0) rotate(30deg);
    opacity: 0.5;
  }
  100% {
    transform: translateY(0) rotate(0deg);
    opacity: 1;
  }
}

.submenu.active > ul > li {
  animation: rotateItem 800ms ease-in-out forwards;
  animation-delay: calc(var(--index) * 100ms);
}

.submenu > ul > li > a {
  font-size: 16px;
  font-weight: 500;  
  color: #003087;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  transition: transform 300ms ease-in-out;
}

.submenu > ul > li > a:hover {
  transform: scale(1.1);
}

.submenu > ul > li > a > div {
  width: 85px;
  height: 85px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid  #003087;
  border-radius: 50%;
}

.submenu > ul > li > a > div > i {
  font-size: 40px;
  color: #003087
}

/* Responsive Navbar and Submenu */
@media screen and (max-width: 768px) {
  .navbar {
    height: 60px;
    padding: 0 16px;
    justify-content: space-between;
  }

  .hamburger {
    display: block;
  }

  .navbar > ul {
    display: none;
    flex-direction: column;
    align-items: flex-end;
    justify-content: flex-start;
    position: fixed;
    top: 0;
    right: -100%;
    width: 70%;
    height: 100vh;
    background: white;
    padding: 0;
    margin: 0;
    box-shadow: -7px 0 7px rgba(0, 0, 0, 0.07);
    z-index: 90;
  }

  .navbar > ul.active {
    display: flex;
    right: 0;
  }

  .navbar > ul > li {
    width: 100%;
    padding: 4px 16px;
    margin: 0;
    line-height: 1.2;
  }

  .navbar > ul > li > a,
  .navbar > ul > li > button {
    height: 40px;
    justify-content: center;
  }

  .navbar-text-style {
    font-size: 14px;
    width: 100%;
    justify-content: flex-end;
    flex-direction: row;
    gap: 8px;
    padding: 4px 16px;
    text-align: center ;
    color:black ;
    position: relative;
    line-height: 1.2;
  }

  .navbar > ul > li > button > i {
    font-size: 16px;
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    color: var(--tx-primary);
    transition: transform 300ms ease-in-out;
  }

  .navbar > ul > li > button.active > i {
    left: 0;
    top: 50%;
    transform: translateY(-50%) rotate(90deg);
  }

  .navbar > ul > li > button.active {
    background: none;
  }

  .navbar > ul > li > button.active > span,
  .navbar > ul > li > button.active > i {
    color: var(--active);
  }

  .submenu {
    width: 100%;
    height: auto;
    display: none;
    position: static;
    background: none;
    padding: 0;
    margin: 0;
  }

  .submenu.active {
    display: block;
    opacity: 1;
  }

  .submenu > ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 0 32px;
    margin: 0;
    justify-content: flex-end;
    text-align: center ;
  }

  .submenu > ul > li {
    opacity: 1;
    transform: none;
    text-align: center ;
    padding: 8px 16px;
    margin: 0;
    line-height: 1.5;
  }

  .submenu > ul > li > a {
    font-size: 14px;
    width: 100%;
    display: flex;
    flex-direction: row;
    justify-content: flex-end;
    gap: 8px;
    padding: 8px 16px;
    margin: 0;
    color: var(--tx-primary) !important;
    line-height: 1.5;
    text-align: center ;
  }

  .submenu > ul > li > a > div {
    display: none;
  }

  .submenu-close {
    display: none;
  }
}

/* Footer Default Style */
.footer {
  position: relative;
  z-index: 1; 
  background: linear-gradient(to left, #003087, #0055b8);
  color: #fff;
  padding: 1rem 1.25rem;
  padding-top: 48px;

}

.footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
background-image: url("../assets/top-bk-2.png");
  background-repeat: repeat;
  background-size: 1920px 100px;
  background-position: center;
  opacity: 0.3;
   z-index: -1; 
}

.footer-content {
  max-width: 75rem;
  margin: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 1.875rem;
  justify-content: space-between;
}

.footer-section {
  flex: 1;
  min-width: 13.75rem;
}

.footer-section h3 {
  margin-bottom: 1.25rem;
  font-size: 1.25rem;
  color: #ffd700;
}

.footer-section ul {
  list-style: none;
}

.footer-section ul li {
  margin-bottom: 0.75rem;
  font-size: 0.9375rem;
}

.footer-section ul li a {
  transition: color 0.3s, padding-right 0.3s;
  color: #fff;
}

.footer-section ul li a:hover {
  color: #ffd700;
  padding-right: 0.3125rem;
}

.footer-section p {
  font-size: 0.9375rem;
  line-height: 1.5;
}

.footer-bottom {
  margin-top: 1.875rem;
  font-size: 0.8125rem;
  border-top: 1px solid rgba(255, 255, 255, 0.3);
  padding-top: 1.25rem;
  text-align: center;
}

.taj-footer {
  position: absolute;
  top: 24px;
  left: 50%;
  transform: translate(-50%, -50%);
  -webkit-transform: translate(-50%, -50%);
  -moz-transform: translate(-50%, -50%);
  -ms-transform: translate(-50%, -50%);
  -o-transform: translate(-50%, -50%);
}

/* Swiper Default Style */
.swiper {
  width: 100%;
  height: 600px;
  margin-top: 90px;
}

.swiper-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.9);
}

.swiper-button-next,
.swiper-button-prev {
  margin: auto 16px;
  background-color: rgba(255, 255, 255, 0.3);
  box-shadow: 0 0 7px rgba(0, 0, 0, 0.1);
  width: 36px;
  height: 36px;
  color: var(--bg-secondary);
  border-radius: 32px;
  transition: all 300ms;
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
  background-color: rgba(255, 255, 255, 0.5);
  color: var(--active);
}

.swiper-button-next::after,
.swiper-button-prev::after {
  font-weight: 700;
  font-size: 16px;
}

.swiper-pagination-bullet {
  width: 32px;
  height: 10px;
  background: #003087;
  border-radius: 8px;
  transition: all 300ms;
}

.swiper-pagination-bullet-active {
  background: #003087;
}

@media screen and (max-width: 768px) {
  .swiper-button-next,
  .swiper-button-prev {
    margin: auto -10px;
    background-color: #003087;
    box-shadow: none;
    color: rgba(255, 255, 255, 0.3);
  }

  .swiper-button-next:hover,
  .swiper-button-prev:hover {
    background-color: #003087;
  }

  .swiper-pagination-bullet {
    width: 16px;
    height: 6px;
  }
}

.taj-top-swiper {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  height: 48px;
  padding: 0;
  margin: 0;
  border-bottom: 2px solid #003087;
  box-sizing: border-box;
  line-height: 0;
}

.taj-top-swiper img {
  height: 48px;
  display: block;
  margin: 0;
  padding: 0;
  line-height: 0;
}


.taj-bottom-swiper {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  height: 48px;
  border-top: 2px solid #003087;
}
