body {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  min-height: 100vh;
}

header {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 3rem 0;
}

header .logo {
  text-transform: uppercase;
  line-height: 1.4;
}

header ul {
  display: flex;
  list-style: none;
  align-items: center;
  gap: 1rem;
}

.hero-section {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 4fr 1fr;
  gap: 1.5rem;
  margin-bottom: 6rem;
}

.hero-section > :nth-child(1) > img,
:nth-child(3) > img {
  width: 100%;
  height: auto;
  border-radius: 1rem;
  aspect-ratio: 3/4;
  object-fit: cover;
}

.hero-section > :nth-child(1) {
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.hero-section > :nth-child(3) {
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.hero-section > :nth-child(2) {
  padding: 0 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 2rem;
}

.hero-section > :nth-child(2) h1 {
  text-align: center;
  padding: 2rem 0;
}

.hero-search {
  width: 90%;
  max-width: 700px;
  margin: 0 auto;
  display: flex;
  gap: 1rem;
  align-items: center;
}

.dropdown-section {
  width: 100%;
}

.dropdown-section:last-of-type {
  padding-bottom: 4rem;
}

.dropdown-section > button {
  width: 100%;
  border-top: 2px solid var(--primary-color);
  border-bottom: 2px solid var(--primary-color);
  padding: 2.5rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}

.dropdown-section > button img {
  width: 2.5rem;
  height: 2.5rem;
}

.dropdown-content-first,
.dropdown-content-second,
.dropdown-content-third {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.75s ease-in-out;
}

.dropdown-content-first {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.dropdown-content-first > div:nth-child(2) {
  border-right: 2px solid var(--primary-color);
  border-left: 2px solid var(--primary-color);
}

.dropdown-content-first > div {
  padding: 2.5rem;
  padding-bottom: 4rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.dropdown-content-first > div p {
  line-height: 1.8;
}

.dropdown-content-first img {
  width: 100%;
  height: auto;
  border-radius: 1rem;
  aspect-ratio: 4/3;
  object-fit: cover;
}

.dropdown-content-second {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr;
}

.dropdown-content-second > div {
  display: grid;
  grid-template-columns: 3fr 1fr;
  align-items: center;
  padding: 2.5rem 0;
  gap: 2rem;
}

.dropdown-content-second > div > div {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.5rem;
}

.dropdown-content-second > div p {
  line-height: 1.6;
}

.dropdown-content-second > div:nth-child(2) {
  border-top: 2px solid var(--primary-color);
  border-bottom: 2px solid var(--primary-color);
}

.dropdown-content-second img {
  width: 60%;
  height: auto;
  margin: 0 auto;
  border-radius: 1rem;
  aspect-ratio: 1;
  object-fit: cover;
}

.dropdown-content-third {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  border-bottom: 2px solid var(--primary-color);
  gap: 2rem;
}

.dropdown-content-third div {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.5rem;
  padding: 2.5rem 0;
}

.dropdown-content-third p {
  line-height: 1.6;
}

.dropdown-content-third img {
  width: 60%;
  height: auto;
  margin: 0 auto;
  border-radius: 1rem;
  aspect-ratio: 1;
  object-fit: cover;
}

.dropdown-content-first.show {
  max-height: 800px;
}

.dropdown-content-second.show {
  max-height: 1800px;
}

.dropdown-content-third.show {
  max-height: 500px;
}

.dropdown-section button .icon {
  transition: transform 0.3s ease-out;
}

.dropdown-section button.active .icon {
  transform: rotate(-180deg);
}

.profile-button {
  width: 4rem !important;
  height: 4rem !important;
}

.profile-button > img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
}

li,
ul {
  position: relative;
}

.user-menu-popup {
  top: 5rem;
  right: -0.5rem;
}

.user-menu-popup > a {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.search-result {
  gap: 1rem;
}

/* 2K Resolution Styles */
@media (min-width: 2560px) {
  header {
    padding: 4rem 0;
  }

  .hero-section {
    margin-bottom: 10rem;
    gap: 2rem;
  }

  .hero-section > :nth-child(2) {
    padding: 0 4rem;
    gap: 3rem;
  }

  .hero-section > :nth-child(2) h1 {
    padding: 4rem 0;
  }

  .hero-search {
    max-width: 900px;
  }

  .dropdown-section > button {
    padding: 3.5rem 0;
  }

  .dropdown-section > button img {
    width: 3.5rem;
    height: 3.5rem;
  }

  .dropdown-content-first > div {
    padding: 3.5rem;
    padding-bottom: 5rem;
  }

  .dropdown-content-second > div,
  .dropdown-content-third div {
    padding: 3.5rem 0;
  }

  .dropdown-content-first.show {
    max-height: 1000px;
  }

  .dropdown-content-second.show {
    max-height: 2200px;
  }

  .dropdown-content-third.show {
    max-height: 650px;
  }

  .profile-button {
    width: 5rem !important;
    height: 5rem !important;
  }
}

/* Large Desktop Styles */
@media (min-width: 1920px) {
  header {
    padding: 3.5rem 0;
  }

  .hero-section {
    margin-bottom: 8rem;
  }

  .hero-section > :nth-child(2) h1 {
    padding: 3rem 0;
  }

  .dropdown-section > button {
    padding: 3rem 0;
  }

  .dropdown-section > button img {
    width: 3rem;
    height: 3rem;
  }

  .dropdown-content-first.show {
    max-height: 900px;
  }

  .dropdown-content-second.show {
    max-height: 2000px;
  }

  .dropdown-content-third.show {
    max-height: 550px;
  }
}

/* Standard Desktop Adjustments */
@media (max-width: 1400px) {
  .hero-section {
    margin-bottom: 5rem;
  }

  .hero-section > :nth-child(2) {
    padding: 0 1.5rem;
  }

  .dropdown-content-first > div {
    padding: 2rem;
  }
}

@media (max-width: 1200px) {
  header {
    padding: 2.5rem 0;
  }

  .hero-section {
    grid-template-columns: 1fr 3fr 1fr;
    margin-bottom: 4rem;
  }

  .hero-section > :nth-child(2) {
    padding: 0 1rem;
  }

  .dropdown-section > button {
    padding: 2rem 0;
  }

  .dropdown-section > button img {
    width: 2rem;
    height: 2rem;
  }

  .dropdown-content-first > div {
    padding: 1.5rem;
    padding-bottom: 3rem;
  }

  .dropdown-content-second > div {
    grid-template-columns: 2.5fr 1fr;
  }

  .dropdown-content-first.show {
    max-height: 700px;
  }

  .dropdown-content-second.show {
    max-height: 1600px;
  }

  .dropdown-content-third.show {
    max-height: 420px;
  }
}

@media (max-width: 992px) {
  header {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 2rem 0;
  }

  header .logo {
    font-size: 1.75rem;
  }

  header ul {
    flex-wrap: nowrap;
    gap: 0.75rem;
  }

  .hero-section {
    grid-template-columns: 1fr;
    text-align: center;
    margin-bottom: 3rem;
    gap: 1.5rem;
  }

  .hero-section > :nth-child(1),
  .hero-section > :nth-child(3) {
    display: none;
  }

  .hero-section > :nth-child(2) {
    padding: 0;
    gap: 1.5rem;
  }

  .hero-section > :nth-child(2) h1 {
    padding: 1rem 0;
  }

  .hero-search {
    flex-direction: column;
    width: 100%;
    max-width: 500px;
  }

  .hero-search .search-input {
    width: 100%;
  }

  .hero-search .button-primary {
    width: 100%;
  }

  .dropdown-section > button {
    padding: 1.75rem 0;
  }

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

  .dropdown-content-first > div:nth-child(2) {
    border-right: none;
    border-left: none;
  }

  .dropdown-content-first > div:nth-child(1) {
    border-right: 2px solid var(--primary-color);
  }

  .dropdown-content-first > div:nth-child(3) {
    grid-column: span 2;
    border-top: 2px solid var(--primary-color);
  }

  .dropdown-content-second > div {
    grid-template-columns: 2fr 1fr;
    padding: 2rem 0;
    gap: 1.5rem;
  }

  .dropdown-content-third {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .dropdown-content-third div {
    align-items: center;
    padding: 2rem 0;
  }

  .dropdown-content-third img {
    width: 50%;
    max-width: 300px;
  }

  .dropdown-content-first.show {
    max-height: 1200px;
  }

  .dropdown-content-second.show {
    max-height: 1400px;
  }

  .dropdown-content-third.show {
    max-height: 600px;
  }

  .profile-button {
    width: 3rem !important;
    height: 3rem !important;
  }

  .user-menu-popup {
    top: 4rem;
  }
}

@media (max-width: 768px) {
  header {
    padding: 1.5rem 0;
    flex-wrap: wrap;
  }

  header .logo {
    font-size: 1.5rem;
  }

  header ul {
    gap: 0.5rem;
  }

  .hero-section {
    margin-bottom: 2.5rem;
  }

  .hero-section > :nth-child(2) h1 {
    font-size: 2.5rem;
    line-height: 1.2;
  }

  .dropdown-section > button {
    padding: 1.5rem 0;
  }

  .dropdown-section > button img {
    width: 1.75rem;
    height: 1.75rem;
  }

  .dropdown-section:last-of-type {
    padding-bottom: 2rem;
  }

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

  .dropdown-content-first > div {
    padding: 1.5rem 0;
  }

  .dropdown-content-first > div:nth-child(1) {
    border-right: none;
  }

  .dropdown-content-first > div:nth-child(2) {
    border-top: 2px solid var(--primary-color);
    border-bottom: 2px solid var(--primary-color);
  }

  .dropdown-content-first > div:nth-child(3) {
    grid-column: span 1;
    border-top: none;
  }

  .dropdown-content-second > div {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 1.25rem;
  }

  .dropdown-content-second > div > div {
    align-items: center;
  }

  .dropdown-content-second img {
    width: 50%;
    max-width: 200px;
    order: -1;
  }

  .dropdown-content-third img {
    width: 60%;
    max-width: 250px;
  }

  .dropdown-content-first.show {
    max-height: none;
  }

  .dropdown-content-second.show {
    max-height: none;
  }

  .dropdown-content-third.show {
    max-height: none;
  }
}

@media (max-width: 576px) {
  header {
    padding: 1rem 0;
  }

  header .logo {
    font-size: 1.25rem;
  }

  header ul {
    gap: 0.4rem;
  }

  header .button-primary {
    padding: 0.5rem 0.75rem;
    font-size: 0.85rem;
  }

  .hero-section {
    margin-bottom: 2rem;
    gap: 1rem;
  }

  .hero-section > :nth-child(2) h1 {
    font-size: 2rem;
  }

  .hero-search {
    gap: 0.75rem;
  }

  .dropdown-section > button {
    padding: 1.25rem 0;
  }

  .dropdown-section > button img {
    width: 1.5rem;
    height: 1.5rem;
  }

  .dropdown-section:last-of-type {
    padding-bottom: 1.5rem;
  }

  .dropdown-content-first > div,
  .dropdown-content-second > div,
  .dropdown-content-third div {
    padding: 1.25rem 0;
    gap: 1rem;
  }

  .dropdown-content-second img,
  .dropdown-content-third img {
    width: 70%;
    max-width: 180px;
  }

  .profile-button {
    width: 2.5rem !important;
    height: 2.5rem !important;
  }

  .user-menu-popup {
    top: 3.5rem;
    right: 0;
  }
}
