/* variables.css */
:root {
  --color-accent: 247 140 34; /* #F78C22 */
  --color-fe-metanavigation: 247 140 34; /* #F78C22 */
  --color-fe-metanavigation-foreground: 30 57 108; /* #1E396C */
  --color-fe-metanavigation-foreground-hover: 8 112 172; /* #0870AC*/
  --color-primary: 30 57 108; /* #1E396C */
  --color-primary-medium: 8 112 172; /* #0870AC */
}


/* custom.css */
/* Header menu */
[data-component="header-menu-button"] {
  flex-direction: column !important;
  gap: 0.25rem;
  font-size: 0.75rem;
  line-height: 0.875rem;

  svg {
    width: 2rem;
    height: 2rem;
  }
}

/* Cards */
[data-component="child-list-blog-card"],
[data-component="item-card"],
[data-component="card"] {
  border-radius: 1rem;

  [data-component="card-cta-left"],
  [data-component="card-cta-right"] {
    border-radius: 0.5rem;
  }
}

/* Search card */
[data-component="search-card"] {
  position: relative; /* mantain the element in the normal flow */
  inset-inline: 0;
  width: 100dvw; /* viewport width */
  margin-inline: calc(-50dvw + 50%); /* cancel the parent's centering */
  padding-inline: var(--space-base);
  margin-bottom: -1.5rem;
  padding-bottom: 3rem;
  border-radius: 0 0 2.5rem 2.5rem;

  > * {
    width: 100%;
    max-width: var(--max-width-content);
    margin-inline: auto;
  }

  @media (min-width: 768px) {
    padding-top: 9rem;
    margin-top: -4rem;
    padding-bottom: 8rem;
    margin-bottom: -8rem;
  }

  @media (min-width: 1280px) {
    padding-bottom: 13.5rem;
    margin-bottom: -13.5rem;
    border-radius: 0 0 4.375rem 4.375rem;
  }

  /* section immediatly after the card */
  + section {
    position: relative;
    z-index: 1;
  }
}

/* Search bar */
[data-component="search-bar"] {
  border-radius: 0.5rem;
  overflow: hidden;
}
/* Search bar category button */
[data-component="search-bar-category-button"] {
  border-top-left-radius: 0.5rem;
  border-bottom-left-radius: 0.5rem;
}

/* Search bar submit button and input */
[data-component="search-bar-submit-button"],
[data-component="search-bar-input"] {
  border-top-right-radius: 0.5rem;
  border-bottom-right-radius: 0.5rem;
}

[data-component="search-bar-input-no-category"] {
  border-radius: 0.5rem;
}

/* Search bar submit button */
[data-component="search-bar-submit-button"] {
  top: 0;
  right: 0;
  bottom: 0;
}

[data-component="search-card"]
  [data-component="search-bar-submit-button"]:hover {
  background-color: rgb(var(--color-primary-dark) / var(--tw-bg-opacity));
}

/* Resources carousel */
[data-component="resources-carousel-previous"],
[data-component="resources-carousel-next"] {
  border-radius: 3px;
  border-width: 2px;
  border-color: rgb(var(--color-primary) / var(--tw-bg-opacity));
}

[data-component="resources-carousel-previous"],
[data-component="resources-carousel-next"],
[data-component="resources-carousel-previous"]:disabled,
[data-component="resources-carousel-next"]:disabled {
  background-color: transparent;
  color: rgb(var(--color-primary) / var(--tw-bg-opacity));
}

[data-component="resources-carousel-previous"]:not(:disabled):hover,
[data-component="resources-carousel-next"]:not(:disabled):hover {
  color: rgb(var(--color-primary) / var(--tw-bg-opacity));
  background-color: rgb(var(--color-white) / var(--tw-bg-opacity));
}

[data-component="resources-carousel"] [data-component="resource-card"] {
  border-radius: 1rem;
}
[data-component="item-categories-pill"],
[data-component="item-card"] [data-component="item-actions-explore"] {
  border-radius: 0.5rem;
}

/* Profile bookmark toggle */
[data-component="bookmark-view-toggle"] div div:first-child button {
  border-top-left-radius: 0.5rem !important;
  border-bottom-left-radius: 0.5rem !important;
}

[data-component="bookmark-view-toggle"] div div:last-child button {
  border-top-right-radius: 0.5rem !important;
  border-bottom-right-radius: 0.5rem !important;
}


/* footer.css */
/* FOOTER */
@media (min-width: 1280px) {
  footer {
    border-top-right-radius: 70px !important;
    border-top-left-radius: 70px !important;
  }
}

/* === CONTACTS ===  */
footer > div > div > a,
footer > div > div > a::after {
  background-color: rgb(
    var(--color-primary-medium) / var(--tw-bg-opacity)
  ) !important;
}

footer > div {
  background: #fff;
}

footer > div > div > a {
  border-bottom: 4px solid #fff;
  border-top: 4px solid #fff;
  flex-direction: row-reverse;
  justify-content: flex-end;
}

@media (min-width: 768px) {
  footer {
    border-top-right-radius: 70px;
    border-top-left-radius: 70px;
    overflow: hidden;
  }
  footer > div > div > a {
    border-bottom: 0;
    border-top: 0;
  }
  footer > div {
    border-bottom: 4px solid #fff;
  }
}

.footer-contents {
  background: var(--color-primary);
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 3rem;
  padding-top: 4rem;
  width: 100%;
}

.footer-contents > :nth-child(1),
.footer-contents > :nth-child(2),
.footer-contents > :nth-child(3) {
  width: 100%;
  padding-left: var(--space-base);
  padding-right: var(--space-base);
}

.footer-contents > :nth-child(1) {
  grid-column: span 2;
  grid-row: 1;
  font-size: 0.875rem;
  line-height: 1.25rem;
}

.footer-contents > :nth-child(1) img {
  width: auto;
  height: 87px;
}
.footer-contents > :nth-child(2) {
  grid-column: 1;
  grid-row: 2;
}

.footer-contents > :nth-child(3) {
    grid-column: 2;
    grid-row: 2;
}

@media (min-width: 768px) {
  .footer-contents {
    grid-template-columns: repeat(4, 1fr);
    column-gap: 2rem;
  }

  .footer-contents > :nth-child(1) {
    grid-column: span 2;
    margin-inline: auto;
  }
  .footer-contents > :nth-child(2),
  .footer-contents > :nth-child(3) {
    grid-column: span 1;
    grid-row: 1;
  }
}
/* LOGO */
.footer-contents > img {
  max-width: 282px;
}
@media (min-width: 768px) {
  .footer-contents > img {
    max-width: 282px;
  }
}

@media (min-width: 1280px) {
  .footer-contents {
    max-width: 1280px;
    margin-inline: auto;
    margin-right: auto;
  }
  .footer-contents > :nth-child(1),
  .footer-contents > :nth-child(2),
  .footer-contents > :nth-child(3) {
    padding-left: 0;
    padding-right: 0;
  }
}

/* === LEGAL MENU === */
.footer-contents > .menu-legal {
  grid-column: span 2;
  text-align: center;
  font-size: 0.75rem;
  padding: 0 var(--space-base);
  row-gap: 0.625rem;
}

@media (min-width: 768px) {
  .footer-contents > .menu-legal {
    grid-column: span 4;
  }
}

.footer-contents > .menu-legal nav {
  align-items: center;
  padding-top: 1.125rem;
  padding-bottom: 1.125rem;
  position: absolute;
  background: #f78c22;
  align-items: center;
  left: -50%;
  right: -50%;
}

.footer-contents > .menu-legal nav ul {
  gap: 1.5rem;
}

