@import url("https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap");

@font-face {
  font-family: "Coolvetica";
  src: url("../../swaranusa_project/assets/Coolvetica\ Rg.otf")
    format("opentype");
}

/* Reset default browser */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  background-color: #f8f8f8;
  font-family: "Coolvetica", "Montserrat", sans-serif;
  min-height: 100vh;
}

.menu-container {
  display: flex;
  min-height: 100vh;
}

/* Letf Side (Sidebar) */
.left-side {
  display: flex;
  flex-direction: column;
  align-items: center;
  top: 0;
  left: 0;
  bottom: 0;
  position: fixed;
  color: #ffffff;
  background-color: #131010;
  width: 200px;
  min-height: 100vh;
  padding: 24px 0;
}

.left-side .logo-text {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  border-bottom: 1px solid #ffffff;
  width: 200px;
  margin-bottom: 24px;
}

.left-side .logo-text h1 {
  color: #ffffff;
  text-align: center;
  font-size: 20px;
  font-family: "Coolvetica", sans-serif;
}

.left-side .logo-text img,
.left-side .logo-text h1 {
  padding-bottom: 25px;
}

.sidebar-menu {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.sidebar-menu div {
  display: flex;
  align-items: center;
  gap: 25px;
  width: 100%;
  padding: 15px 25px;
}

.sidebar-menu div:hover {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 5px;
}

.sidebar-menu div a {
  color: #ffffff;
  text-align: left;
  text-decoration: none;
  font-size: 14px;
  font-family: "Montserrat", sans-serif;
  font-weight: 500;
  width: 100%;
  transition: 0.3s;
  transition: 0.3s;
}

.main-content {
  display: flex;
  flex-direction: column;
  flex: 1;
  margin-left: 200px;
}

/* Right Side (Navbar + Content) */

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
  z-index: 1001;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background-color: #131010;
  transition: 0.3s;
  border-radius: 3px;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5.5px, -5.5px);
}

header {
  background: #ffffff;
  color: #131010;
  padding: 20px 50px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 2001;
}

header h1 {
  font-size: 16px;
  font-family: "Montserrat", sans-serif;
  font-weight: 500;
}

ul {
  list-style: none;
  display: flex;
  align-items: center;
}

nav ul {
  display: flex;
  list-style: none;
  position: relative;
}

.logo-navbar {
  height: 37px;
}

nav ul li {
  margin-left: 55px;
  position: relative;
}

nav ul li a {
  color: #131010;
  text-decoration: none;
  transition: color 0.3s ease;
  position: relative;
  padding-bottom: 5px;
  display: inline-block;
}

nav ul li a:hover {
  color: #543a14;
}

nav ul li a.active {
  color: #543a14;
}

#navMenu {
  font-family: "Montserrat", sans-serif;
  font-weight: 500;
}

.content-area {
  padding: 32px 48px;
}

.content-area h1 {
  font-size: 28px;
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  margin-bottom: 20px;
}

.cards-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
}

.card {
  display: flex;
  align-items: center;
  background-color: #ffffff;
  border-radius: 15px;
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
  width: 100%;
}

.card img {
  display: block;
  width: 100%;
  max-width: 208px;
  height: auto;
  object-fit: cover;
  border-top-left-radius: 15px;
  border-bottom-left-radius: 15px;
}

.card-content {
  display: flex;
  flex: 1;
  flex-direction: column;
  justify-content: center;
  gap: 15px;
  margin: 20px;
}

.card-top {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 15px;
}

.card-top h3 {
  font-size: 16px;
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
}

.card-top p {
  font-size: 14px;
  font-family: "Montserrat", sans-serif;
  font-weight: 400;
}

.card-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.card-bottom p {
  color: #000000;
  background-color: rgba(240, 180, 127, 0.2);
  border-radius: 10px;
  font-size: 14px;
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  padding: 5px 10px;
}

.card-bottom button {
  color: #000000;
  background-color: #f0bb78;
  border: none;
  border-radius: 10px;
  font-size: 14px;
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  padding: 5px 10px;
  cursor: pointer;
  transition: 0.3s;
}

.card-bottom button:hover {
  background-color: #d9a76a;
}

/* Desktop (min-width: 1024px) */
@media (min-width: 1024px) {
}

/* Tablet (max-width: 1024px) */
@media (max-width: 1024px) {
  .left-side {
    position: relative;
    width: 160px;
    padding: 16px 0;
  }

  .left-side .logo-text {
    width: 160px;
    margin-bottom: 16px;
  }

  .sidebar-menu div {
    gap: 5px;
  }

  .sidebar-menu div a {
    font-size: 12px;
    padding: 12px 8px;
  }

  .main-content {
    margin-left: 0;
  }

  .top-navbar {
    justify-content: flex-end;
    padding: 12px 16px;
    left: 0;
    width: 100%;
  }

  .top-navbar ul {
    gap: 20px;
  }

  .top-navbar ul li a {
    font-size: 12px;
  }

  .content-area {
    padding: 24px 16px;
  }

  .cards-container {
    gap: 24px;
  }

  .card img {
    width: 200px;
    height: 100%;
    display: block;
    object-fit: cover;
  }

  .card-content {
    padding: 12px;
    margin: 0;
    gap: 10px;
  }

  .card-top p {
    font-size: 13px;
  }

  .card-bottom p,
  .card-bottom button {
    font-size: 13px;
    padding: 5px 8px;
  }
}

/* Smartphone (max-width: 600px) */
@media (max-width: 600px) {
  .left-side {
    width: 80px;
    padding: 12px 8px;
  }

  .left-side .logo-text {
    width: 80px;
    margin-bottom: 8px;
  }

  .left-side .logo-text h1 {
    display: none;
  }

  .sidebar-menu div {
    flex-direction: column;
    gap: 0;
  }

  .sidebar-menu div a {
    text-align: center;
    font-size: 10px;
    padding: 8px 0;
  }

  .main-content {
    margin-left: 0;
  }

  header {
    padding: 15px 20px;
    flex-direction: row;
    justify-content: space-between;
  }

  header h1 {
    font-size: 14px;
  }

  .hamburger {
    display: flex;
  }

  #navMenu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 70%;
    height: 100vh;
    background-color: #ffffff;
    transition: 0.3s;
    z-index: 1000;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
  }

  #navMenu.active {
    right: 0;
  }

  #navMenu ul {
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    padding: 80px 30px;
  }

  #navMenu ul li {
    margin: 0;
    width: 100%;
    padding: 15px 0;
    border-bottom: 1px solid #e0e0e0;
  }

  #navMenu ul li a {
    font-size: 16px;
    display: block;
    width: 100%;
  }

  #navMenu ul::after {
    display: none;
  }

  .content-area {
    padding: 12px;
  }

  .cards-container {
    flex-direction: column;
  }

  .card {
    padding: 0;
    overflow: hidden;
    align-items: stretch;
  }

  .card img {
    width: 100px;
    height: 200px;
    object-fit: cover;
  }

  .card-content {
    margin: 0;
    padding: 8px;
    gap: 8px;
  }

  .card-top p {
    font-size: 12px;
  }

  .card-bottom p,
  .card-bottom button {
    font-size: 12px;
    padding: 4px 7px;
  }
}
