@font-face {
  font-family: 'Cairo';
  src: url('/asset/font/static/Cairo-Regular.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Cairo';
  src: url('/asset/font/static/Cairo-Bold.ttf') format('truetype');
  font-weight: bold;
  font-style: normal;
  font-display: swap;
}

body {
  font-family: 'Cairo', sans-serif;
  font-weight: bold;
  color: rgb(35, 33, 33);
  margin: 0;
  padding: 0;
}

header {
    background-image: url("/images/bg.jpg");
    background-size: cover;
    background-position: center;
    position: relative;
    height: 100vh;
    overflow: hidden;

}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1;
    pointer-events: none;
}

.navbar {
    height: 80px;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.715) !important;
    position: fixed;
    z-index: 9999;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar-brand img {
  height: 40px;
  align-items: flex-end !important; 
}


.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between !important;
}

.navbar-brand {
    color: #7f6c49;
    font-weight: bold;
    order: 1;
    margin-left: auto;
}

.nav-link {
    color: #7f6c49;
    font-weight: bold;
    position: relative;
}

.nav-link:hover {
    color: rgba(0, 0, 0, 0.715);
    font-weight: bolder;
    background-color: #7f6c49;
    border: 2px solid #7f6c493d;
    border-radius: 10px;
}

.search-box {
  display: flex;
  align-items: center;
  flex-direction: row-reverse;
}

.search-box .input {
  width: 0;
  opacity: 0;
  pointer-events: none;
  transition: width 0.4s ease, opacity 0.3s ease;
  padding: 8px 12px;
  border-radius: 25px;
  border: none;
  background-color: #7f6c49;
  margin-right: 10px;
  text-align: right;
}

.input::placeholder {
color:rgba(0, 0, 0, 0.715) ;
opacity: 1;
}

.search-box:hover .input {
  width: 400px;
  opacity: 1;
  pointer-events: auto;
}

.search-icon {
  color: #7f6c49; 
  transition: color 0.3s ease;
}

.btn {
padding: 10px;
display: flex;
align-items: center;
justify-content: center;
font-weight: bold;
}

.btn:hover .search-icon {
color: rgba(0, 0, 0, 0.715);
font-weight: bolder;
background-color: #7f6c49;
border: 2px solid #7f6c493d;
border-radius: 10px;

}


@media (max-width: 991px) {
  header {
    height: 70vh;

}
  .navbar .container {
    flex-direction: row !important;
    justify-content: space-between !important;
    align-items: center !important;
  }

  .search-box {
    display: none;
  }

  .navbar-collapse {
    position: absolute;
    top: 85px;
    right: 0;
    left: 0;
    background-color: rgba(0, 0, 0, 0.715);
    border-radius: 10px;
    padding: 10px;
    text-align: right;
  }

  .navbar-brand {
    margin-left: 0;
    order: 0;
  }

   .navbar-toggler {
  border: none !important;
  padding: 4px 8px;
  background: transparent !important;
  width: 30px;
  height: 30px;
  position: relative;
}

.navbar-toggler:focus {
  box-shadow: none !important;
  outline: none !important;
}

.navbar-toggler-icon {
  background-image: none !important;
  display: block;
  width: 25px;
  height: 18px;
  position: relative;
}

.navbar-toggler-icon span {
  display: block;
  width: 25px;
  height: 2px;
  background-color: #7f6c49 ;
  position: absolute;
  left: 0;
  transition: all 0.3s ease;
}

.navbar-toggler-icon span:nth-child(1) {
  top: 0;
}

.navbar-toggler-icon span:nth-child(2) {
  top: 8px;
}

.navbar-toggler-icon span:nth-child(3) {
  top: 16px;
}

.navbar-toggler[aria-expanded="true"] .navbar-toggler-icon span:nth-child(1) {
  transform: rotate(45deg);
  top: 8px;
}

.navbar-toggler[aria-expanded="true"] .navbar-toggler-icon span:nth-child(2) {
  opacity: 0;
}

.navbar-toggler[aria-expanded="true"] .navbar-toggler-icon span:nth-child(3) {
  transform: rotate(-45deg);
  top: 8px;
}

.navbar-collapse.show {
                display: block !important;
            }
          }




.middle-section {
    min-height: 700px;
    position: relative;
}

.img {

    height: 700px;
    display: flex;
    justify-content: center;
    align-items: center;
    transform: scale(0.5);
}
  

@media (max-width: 768px) {

   .img  {
    height: 425px; 
  }
}

@media (max-width: 992px) {

   .img  {
    height: 425px; 
  }
}

  .key {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transform-style: preserve-3d;
    transition: transform 0.1s linear;
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.2));
    animation: swing 3s infinite ease-in-out alternate;
  }

footer {
    background-color: rgba(36, 32, 27);
    color: white;
    padding: 20px 0;
}

.footer-section {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
}

.footer-box {
    flex: 1;
    min-width: 200px;
    margin: 10px;
}

.footer-title {
    font-weight: bold;
    color: #6f5f43;
    margin-bottom: 10px;
}

.footer-link {
    color: white;
    text-decoration: none;
    display: block;
    margin-bottom: 5px;
}

.footer-link:hover {
    color: #6f5f43;
}

.media {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 20px;
  position: relative;
  padding: 20px;
}

.media-overlay {
  position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #4a3e262b;
    z-index: 1;
    pointer-events: none;
}

.string  {
  flex: 1;
  text-align: right;
  color: #7f6c49;
  font-weight: bold;
  
}
.string img {
  height: 150px;
  width: 300px;
 
}

#sliderSection {
  position: relative;
  background: linear-gradient(to right, #40362d, #2e2822);
  color: #c5a874;
  min-height: 450px;
  overflow: hidden;
  transition: background-image 1s ease-in-out;
  background-repeat: no-repeat;
  background-size: cover;
  padding: 40px 10px;
  border-radius: 12px;
  margin: 20px auto;
  max-width: 1000px;
  
}
@media (max-width: 768px) {

  #sliderSection  {
    max-width: 450px;
 }
}

.slider-overlay {
  background-color: rgba(64, 54, 45, 0.6);
  backdrop-filter: blur(3px);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  border-radius: 12px;
}

.slider-container {
  position: relative;
  z-index: 1;
  width: 100%;
  overflow: hidden;
  padding: 20px 0;
}

.slider-track {
  direction: rtl;
  display: flex;
  gap: 24px;
  transition: transform 0.6s ease-in-out;
  padding-left: 24px;
}

.card {
  flex: 0 0 260px;
  height: 360px;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.35);
  position: relative;
  background-color: rgba(0, 0, 0, 0.7);
  color: #c5a874;
  cursor: pointer;
  transition: transform 0.4s ease;
}

.card:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
}

.card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.75);
  transition: filter 0.4s ease;
}

.card:hover img {
  filter: brightness(0.9);
}

.card .info {
  position: absolute;
  bottom: 16px;
  left: 16px;
  right: 16px;
  text-shadow: 0 0 5px rgba(0, 0, 0, 0.7);
  color: #f5d78c;
}

.card .info h3 {
  margin: 0;
  font-size: 20px;
  font-weight: bold;
  color: #f5d78c;
}

.card .info span {
  font-size: 13px;
  color: #e6d6b8;
  opacity: 0.9;
}

.pagination {
  text-align: center;
  margin-top: 10px;
  font-weight: bold;
  font-size: 18px;
  color: #c5a874;
  z-index: 2;
  position: relative;
  user-select: none;
}

@media (max-width: 768px) {
  .media {
    flex-direction: column; 
  }

  .string {
    order: 1; 
  }

  #sliderSection {
    order: 2; 
  }
}