/* HTML Tags Styling */

nav {
  overflow-x: clip;
  width: 100%;
  display: grid;
  position: relative;
  z-index: var(--z-navigation--index, 100);
  box-sizing: border-box;
}

footer {
  padding: 0px;
}

blockquote {
  height: 274.61px;
}

aside {
  --z-safe-space--size: var(--_sf);
  --z-image--radius: 50%;
  --z-shape--size: calc(var(--_sf) / 5);
  max-height: 100%;
  height: auto;
  position: relative;
  width: calc(var(--_sf) - var(--_sf-gap));
  overflow: visible;
  z-index: 1;
  order: 2;
}

article {
  --z-article-card--width: 540px;
  width: var(--z-action-card--width, 540px);
  width: 540px;
  width: var(--z-article-card--width, 540px);
}

body {
  text-rendering: optimizeLegibility;
}

/* Styling for Components */

#logo {
  padding: 0px;
}

/* Header Styling */

@media (max-width: 767px) {
  #header {
    height: 50px;
  }
}

/* Devworks Bar Styling */

#devworks-bar {
  background-color: #2167AE !important;
  --z-bg: #2167AE !important;
  --z-sf-base: #2167AE !important;
}

/* Build with Zurich Bar + Cards Styling */

/* Base styles for desktop first */
#build-with-zurich-wrapper {
  margin-top: 32px;
  margin-bottom: 40px;
  align-content: space-between;
  justify-content: space-between;
  display: flex;
  flex-direction: column;
}

#build-with-zurich-title {
  margin: 0px !important;
}

/* Mobile first: 1 column, 4 rows (stacked) */
#build-card-wrapper {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: repeat(4, auto);
  gap: 32px;
  justify-items: stretch;
  align-items: stretch;
  padding: 0;
}

/* For screens wider than 768px: 2x2 grid */
@media (min-width: 426px) {
  #build-card-wrapper {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 1fr);
  }
  .build-card {
    width: 100%;
    max-width: 400px;
  }
}

/* Support Bar Styling */

#support {
  justify-content: center;
  align-items: center;
  display: flex;
  background-color: #eceeef;
}

#support-wrapper {
  margin: 36px;
  display: flex;
  flex-direction: column;
  width: 100%;
}

#support-div {
  display: flex;
  flex-direction: column;
  width: 100%;
}

#support-div p {
  margin-top: 8px;
  margin-bottom: 8px;
}

#support-div a {
  color: #2167ae;
}

/* Mobile (315px < x ≤ 767px) */
@media (max-width: 767px) {
  #support {
    height: auto;
  }

  #support-wrapper {
    width: 100%;
  }
}

/* Portrait (768px < x ≤ 991px) */
@media (min-width: 768px) and (max-width: 991px) {
  #support-wrapper {
    width: 690px;
  }
}

/* Landscape (992px < x ≤ 1199px) */
@media (min-width: 992px) and (max-width: 1199px) {
  #support-wrapper {
    width: 930px;
  }
}

/* Desktop (≥ 1200px) */
@media (min-width: 1200px) {
  #support-wrapper {
    width: 1110px;
  }
}


/* Footer Bar Styling */

#follow-us-footer {
  background-color: #2167AE;
}

#legal-terms {
  height: 20px;
}

#group-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #2167AE;
  width: 100%;
  height: auto; 
}

@media (min-width: 1200px) {
  #footer-wrapper {
    height: 350px;
    margin-top: 32px;
    margin-bottom: 32px;
    width: 1110px;
    padding: 0;
    align-content: space-between;
  }

  #link-wrapper {
    display: flex;
    flex-direction: row;
    max-width: 1110px;
    justify-content: space-between;
  }

  .link-column {
    width: 33%;
    text-align: left;
    list-style-type: none;
  }
}

@media (min-width: 992px) and (max-width: 1199px) {
  #footer-wrapper {
    height: auto;
    margin-top: 32px;
    margin-bottom: 32px;
    width: 930px;
    padding: 0;
    align-content: space-between;
  }

  #link-wrapper {
    display: flex;
    flex-direction: row;
    max-width: 930px;
    justify-content: space-between;
  }

  .link-column {
    width: 33%;
    text-align: left;
    list-style-type: none;
  }
}

@media (min-width: 768px) and (max-width: 991px) {
  #footer-wrapper {
    height: auto;
    margin-top: 32px;
    margin-bottom: 32px;
    width: 690px;
    padding: 0;
    align-content: space-between;
  }

  #link-wrapper {
    display: flex;
    flex-direction: row;
    max-width: 690px;
    justify-content: space-between;
  }

  .link-column {
    width: 33%;
    text-align: left;
    list-style-type: none;
  }
}

@media (max-width: 767px) {
  #footer-wrapper {
    height: auto;
    margin-top: 32px;
    margin-bottom: 32px;
    margin-left: 32px;
    margin-right: 32px;
    width: calc(100% - 64px); /* Subtracting margins from the total width */
    padding: 0;
    align-content: space-between;
  }

  #link-wrapper {
    display: flex;
    flex-direction: column;
    max-width: 100%;
    justify-content: space-between;
    padding-top: 16px;
  }

  .link-column {
    width: 100%;
    text-align: left;
    list-style-type: none;
    padding-bottom: 15px;
  }

  #legal-wrapper {
    margin-bottom: 16px;
  }
}

@media (max-width: 337px) {
  #legal-links p {
    font: var(--zf-body-14);
  }
}

.link-column li {
  padding-top: 6px;
  padding-bottom: 6px;
}

#legal-wrapper {
  display: flex;
  flex-direction: column;
}

#social-media-icons { 
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
}

#social-media-icons i { 
  padding-right: 40px;
}

#legal-links {
  display: flex; 
  flex-direction: row; 
  align-items: center;
  justify-content: flex-end;
}

#legal-links a {
  padding-right: 10px;
}

.legal-row {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  text-align: left; 
}


/* Error bar for 404 page Styling           */
#error {
  justify-content: center;
  align-items: center;
  display: flex;
  background-color: #eceeef;
  flex: 1 0 auto;
}

#error-wrapper {
  margin: 36px;
  display: flex;
  flex-direction: column;
  width: 100%;
}

#error-div {
  display: flex;
  flex-direction: column;
  width: 100%;
}

#error-div p {
  margin-top: 8px;
  margin-bottom: 8px;
}

#error-div a {
  color: #2167ae;
}

/* Mobile (315px < x ≤ 767px) */
@media (max-width: 767px) {
  #error {
    height: auto;
  }

  #error-wrapper {
    width: 100%;
  }
}

/* Portrait (768px < x ≤ 991px) */
@media (min-width: 768px) and (max-width: 991px) {
  #error-wrapper {
    width: 690px;
  }
}

/* Landscape (992px < x ≤ 1199px) */
@media (min-width: 992px) and (max-width: 1199px) {
  #error-wrapper {
    width: 930px;
  }
}

/* Desktop (≥ 1200px) */
@media (min-width: 1200px) {
  #error-wrapper {
    width: 1110px;
  }
}