@import url("https://fonts.googleapis.com/css2?family=Cairo:wght@200..1000&family=Libre+Franklin:ital,wght@0,100..900;1,100..900&family=M+PLUS+Rounded+1c&family=Madimi+One&family=Newsreader:ital,opsz,wght@0,6..72,200..800;1,6..72,200..800&display=swap");
@import url(./assets/fonts/TwentiethCenturyforKenmoreN.ttf);
@import url(./assets/fonts/TwentiethCenturyforKenmoreNBold.ttf);

:root {
  --background-color: rgb(26, 26, 106);
  --color: #d59289ff;
  --color2: rgba(0, 55, 107, 1);
  --greyColor: #b5afaf;
}

/* ............................................................................. */
* {
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  margin: 0;
  padding: 0;
  /* text-transform: uppercase; */
  letter-spacing: 2px;
}

body {
  background-color: white;
  overflow-x: hidden;
  font-family: "Twentieth Century", sans-serif;
}

/* button  */
.btn {
  cursor: pointer;
  background-color: var(--background-color);
  border: 1px solid var(--background-color);
  border-radius: 10px;
  color: #fff;
  text-transform: capitalize;
  transition: 1s background-color, 1s color;

  &:hover {
    background-color: transparent;
    color: var(--background-color);
  }
}

/* yellow-bar */
.yellow-bar {
  height: 30px;
  background-color: var(--color2);
  font-size: 10.69px;
  text-align: center;
  align-items: center;
  justify-content: center;
  display: flex;
  color: white;
}

/*.....main navbar..... */
.navbar {
  height: 99px;
  display: flex;
  flex-direction: row;
  justify-content: space-evenly;
  align-items: center;
  border-bottom: 3px solid black;
  position: relative;
  /* background-color: var(--background-color); */
}

#Title {
  font-size: 24px;
  font-weight: 400;
  text-transform: uppercase;
  padding-left: 50px;
  font-family: "Madimi One", serif;
}

.left_navbar,
.right_navbar {
  height: 50px;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  gap: 30px;
}

.left_navbar,
.right_navbar a {
  font-size: 14px;
  font-weight: 700;
}

a {
  text-decoration: none;
  color: var(--background-color);
}

.left_navbar a:hover,
.right_navbar a:hover {
  border-bottom: 1.5px solid black;
  padding-bottom: 3px;
}

.nav-item {
  padding: 10px;
  cursor: pointer;
}

.nav-item a {
  font-size: 14px;
  font-weight: 700;
  margin-left: 20px;
  /* text-shadow: 2px 2px 2px black; */
}

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


/* Dropdown Box (Initially Hidden) */
.dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  display: none;
  background-color: white;
  padding: 15px;
  width: 100%;
  max-width: 1200px;
  height: fit-content;
  /* max-height: 600px; Fixed height with scroll for multiple rows */
  overflow-y: auto;
  /* Enable vertical scrolling for 2+ rows */
  text-align: center;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease-in-out, visibility 0.2s ease-in-out;
  margin: 0 auto;
  z-index: 1000;
  /* Ensure it stays above other content */
}

/* Dropdown Content */
.dropdown-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  justify-items: center;
  padding: 20px;
  max-width: 100%;
  margin: 0;
}

.dropdown-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  border: 1px solid black;
  width: 200px;
  color: #000000;
}

.dropdown-item p {
  border-top: 1px solid black;
  padding: 20px;
  width: 80%;
}

.dropdown-item:hover {
  color: white;
  background-color: var(--color2);
}

.dropdown-item img {
  height: auto;
  width: 200px;
}

/* Show dropdown on hover */
.nav-item:hover .dropdown,
.dropdown:hover {
  display: block;
  opacity: 1;
  visibility: visible;
}

/* .............................................................................. */
/* first section */
.container1 {
  background-image: url(./assets/images/background.jpg);
  background-color: #ecebdf;
  background-size: cover;
  background-position: center;
  height: 100vh;
}

.title {
  padding-top: 50px;
  padding-left: 140px;
  display: flex;
  flex-direction: column;
}

.container1 .title h1 {
  font-size: 56px;
  font-weight: 700;
  font-family: "Cheltenham BT", "Goudy Old Style", serif;
  color: var(--background-color);
  text-align: left;
  padding-bottom: 30px;
  /* text-shadow: 5px 5px 5px #1e1862; */
}

.container1 .title .yellow-button {
  background-color: var(--color2);
  color: white;
  width: 325px;
  padding: 20px;
  font-size: 20px;
  font-weight: 600;
  margin-left: 20px;
  border-radius: 8px;
  text-align: center;
  /* border: 2px solid #120c52f9; */
}

.container1 .title .yellow-button:hover {
  background-color: var(--background-color);
  color: white;
}

.container1 .title .white-link {
  color: #120c52f9;
  text-decoration: underline;
  padding-left: 150px;
  font-weight: 600;
}

/* black-bar animated*/
.black-bar {
  height: 50px;
  padding: 10px 0;
  background-color: #000000;
}

/* second section */
.second-section {
  height: 452.7px;
}

/* end of second section */

/* Subtitle style */
.sub-titles {
  gap: 60px;
  padding: 20px 60px 50px 60px;
}

.sub-titles h1 {
  font-size: 56px;
  font-weight: 700;
  font-family: "Cheltenham BT", "Goudy Old Style", serif;
  color: var(--background-color);
  text-align: left;
}

/* product-table.............................. */
.table-container {
  overflow-x: auto;
}

table {
  width: 90%;
  min-width: 600px;
  border-collapse: collapse;
  /* border: 1px solid #EEE171; */
  margin-bottom: 10px;
  margin: auto;
  margin-top: 30px;
}

#up-left {
  border-top-left-radius: 14px;
}

#up-right {
  border-top-right-radius: 14px;
}

th {
  /* border: 1px solid var(--background-color); */
  padding: 10px;
  text-align: center;
  height: 30px;
  /* border-top: 1px solid var(--background-color); */
  border-bottom: 0px;
  color: black;
  background-color: rgb(193, 186, 186);
}

tbody {
  /* border: 1px solid var(--background-color); */
  text-align: center;
}

td {
  /* border: 1px solid var(--background-color); */
  padding: 10px;
  text-align: center;
  background-color: rgb(234, 236, 236);
}

/* ............................................................................. */
.table-title {
  padding: 15px 0;
  /* border: 4px solid #EEE171; */
  border-bottom: 0px;
}

/* ............................................................................. */
#trash {
  color: red;
  cursor: pointer;
}

.action {
  justify-content: center;
  align-items: center;
  gap: 10px;
}

.action button {
  border: none;
  background-color: transparent;
  cursor: pointer;
}

/* Responsive Design Media Queries */

/* Hamburger Menu Base Styles (Hidden on Desktop) */
.menu-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  padding: 10px;
  z-index: 1001;
}

.menu-toggle .bar {
  width: 25px;
  height: 3px;
  background-color: var(--background-color);
  margin: 4px 0;
  transition: 0.4s;
}

/* 1440px - Large Screens */
@media screen and (max-width: 1440px) {
  .container1 .title {
    padding-left: 100px;
  }

  .container1 .title h1 {
    font-size: 48px;
  }

  .sub-titles h1 {
    font-size: 48px;
  }
}

/* 1024px - Laptops/Tablets Landscape */
@media screen and (max-width: 1024px) {
  .navbar {
    padding: 0 20px;
  }

  #Title {
    padding-left: 20px;
    font-size: 20px;
  }

  .left_navbar,
  .right_navbar {
    gap: 15px;
  }

  .container1 .title {
    padding-left: 50px;
    padding-top: 30px;
  }

  .container1 .title h1 {
    font-size: 40px;
  }

  .sub-titles {
    padding: 20px 40px;
  }
}

/* 768px - Tablets Portrait */
@media screen and (max-width: 768px) {
  .navbar {
    height: auto;
    min-height: 99px;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    padding: 10px 20px;
  }

  .menu-toggle {
    display: flex;
    order: 0;
  }

  #Title {
    order: 1;
    padding-left: 0;
    text-align: center;
    flex: 1;
    margin: 0;
    font-size: 18px;
  }

  .left_navbar,
  .right_navbar {
    display: none;
    width: 100%;
    flex-direction: column;
    order: 2;
    padding: 10px 0;
    gap: 15px;
    text-align: left;
    background: transparent;
    position: static;
    height: auto;
    box-shadow: none;
    transition: none;
  }

  .navbar.active .left_navbar,
  .navbar.active .right_navbar {
    display: flex;
  }

  .navbar.active .right_navbar {
    order: 3;
    border-top: 1px solid #eee;
    margin-top: 10px;
    padding-top: 15px;
  }

  .nav-item {
    padding: 10px 0;
    margin-left: 0;
  }

  .nav-item a {
    margin-left: 0;
    font-size: 16px;
  }
}

.container1 {
  height: auto;
  min-height: 100vh;
  padding-bottom: 50px;
}

.container1 .title {
  padding: 30px 20px;
  align-items: center;
  text-align: center;
}

.container1 .title h1 {
  text-align: center;
  font-size: 36px;
}

.container1 .title .yellow-button {
  margin-left: 0;
  width: 100%;
  max-width: 300px;
}

.container1 .title .white-link {
  padding-left: 0;
  margin-top: 15px;
}

.sub-titles {
  padding: 20px;
  gap: 30px;
}

.sub-titles h1 {
  font-size: 36px;
  text-align: center;
}

table {
  width: 100%;
  min-width: unset;
}

.table-container {
  padding: 0 10px;
}

/* 425px - Mobile */
@media screen and (max-width: 425px) {
  .navbar {
    padding: 10px 15px;
  }

  .container1 .title h1 {
    font-size: 28px;
  }

  .container1 .title .yellow-button {
    font-size: 16px;
    padding: 15px;
  }

  .sub-titles h1 {
    font-size: 28px;
  }

  th,
  td {
    padding: 5px;
    font-size: 12px;
  }

  .dropdown {
    width: 90vw;
    left: 50%;
    transform: translateX(-50%);
  }

  .dropdown-content {
    grid-template-columns: 1fr;
  }
}

/* Hamburger Menu Animation */
.navbar.active .menu-toggle .bar:nth-child(1) {
  transform: rotate(-45deg) translate(-5px, 6px);
}

.navbar.active .menu-toggle .bar:nth-child(2) {
  opacity: 0;
}

.navbar.active .menu-toggle .bar:nth-child(3) {
  transform: rotate(45deg) translate(-5px, -6px);
}