html,
body,
div,
p,
h1,
h2,
h3,
h4,
h5,
h6,
ul,
ol,
li,
dl,
dt,
dd,
form,
fieldset,
caption,
table,
tr,
td,
th,
address,
blockquote,
img {
    margin: 0;
    padding: 0;
}

img,
fieldset,
object {
    border: none;
}

*,
*:after,
*:before {
    box-sizing: border-box;
}

button,
label {
    cursor: pointer;
}

hr {
    display: none;
}

ul,
li,
a {
    list-style: none;
    text-decoration: none;
    color: inherit;
}

body,
button,
input,
table,
textarea,
select {
    font: normal 1rem/1.5 "Open Sans", arial, helvetica, sans-serif;
}

h2, h3 {
    font-family: "Jost", arial, helvetica, sans-serif;
}

h1 {
    font-family: Jost, arial, helvetica, sans-serif;
    font-size: 2rem;
    font-weight: 700;
}

body #header-wrapper {
    color: #FFF;
    background-color: hsl(218,39%,35%);
    position: sticky;
    top: 0;
    box-shadow: 0px 4px 8px 0px rgba(0, 0, 0, 0.25);
    z-index: 10;
}

#header {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 5rem;
    padding: 0 0.5rem;
}

#title {
    display: flex;
    gap: 0.5rem;
}

#title h1 {
    line-height: 1;
    font-weight: 500;
    letter-spacing: 1px;
}

#title span {
    font-family: "Poppins", arial, helvetica, sans-serif;
    font-weight: 600;
    font-size: 1.2rem;
    color: #47B2E4;
    letter-spacing: 2px;
}

#title img {
    height: 3rem;
    align-self: center;
}

#header ul {
    display: flex;
    text-transform: uppercase;
    font-weight: 600;
    font-size: 1.1rem;
    gap: 3.6rem;
}

#header a:hover {
    text-decoration-line: underline;
    text-decoration-thickness: 0.2rem;
}

#sub-search {
    display: flex;
    gap: 2rem;
}

button {
    background-color: #FFF;
    color: #47B2E4;
    font-family: "Poppins";
    font-weight: 600;
    font-size: 1rem;
    border-radius: 6px;
    border: none;
    padding: 0.2rem 0.4rem;
}

button:hover {
    box-shadow: 4px 4px 2px 1px rgba(0, 0, 0, 0.2);
    font-weight: 700;
}

#sub-search a:hover {
    text-decoration-line: none;
}

#search {
    align-items: center;
}

ion-icon {
    font-size: 1.2rem;
    align-self: center;
    --ionicon-stroke-width: 4rem;
}

ion-icon:hover {
    color: #47B2E4;
}

#sub-search a {
    display: flex;
    gap: 0.5rem;
}

#sub-icon {
    align-self: center;
}

#main {
    background: #fdfdfd;
}

#hero {
    max-width: 1200px;
    margin: 0 auto;
    background-image: url("/assets/hero-background.svg");
    background-position: right;
    background-repeat: no-repeat;
    background-size: cover;
}

#hero-wrapper {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-gap: 4rem;
    padding: 4rem 0;
}

@media (max-width: 1080px) {
    #header nav {
        display: none;
    }
}

@media (max-width: 800px) {
    h1 {
        font-size: 1.5rem;
    }

    #hero-wrapper {
        grid-template-columns: repeat(1, 1fr);
        grid-gap: 0;
        padding: 2rem 0;
    }
    #welcome {
        margin: 0 auto;
    }
    #deals {
        padding-top: 2rem;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 1.2rem;
    }

    #header {
        height: 4rem;
    }

    header button {
        display: none;
    }

    #hero {
        background-image: url("/assets/hero-background-mobile.svg");
    }

    #sub-search {
        gap: calc(16px + 16 * ((100vw - 240px) / 480));
    }
}

#welcome {
    background: linear-gradient(110deg, rgba(111, 137, 255, 0.36) 0%, rgba(115, 197, 235, 0.36) 100%); border-radius: 15px; 
    backdrop-filter: blur(20px);
    height: fit-content;
    padding: 1rem 0 1rem 1rem;
    max-width: 30rem;
    box-shadow: 1px 1px 8px 3px rgba(0, 0, 0, 0.1);
}

#welcome h2, #welcome h3, #welcome p, #welcome {
    padding-bottom: 1rem;
}

#welcome h2 {
    font-size: 1rem;
    font-weight: 300;
    font-family: "Poppins";
    letter-spacing: 0.3rem;
    text-align: left;
}

#welcome h3 {
    font-size: 2rem;
    font-weight: 700;
}

#welcome button, #news button {
    color: #FFF;
    background-color: #47B2E4;
}

#deals {
    margin: 0 auto;
}

#deals h2 {
    padding-bottom: 1rem;
    text-align: center;
}

#slideshow-grid {
    padding-bottom: 1rem;
}

#slideshow-grid img {
    height: 20rem;
    box-shadow: 4px 4px 40px 20px rgba(0, 0, 0, 0.25);
}

.wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 0;
}

section h2 {
    text-align: center;
    padding-bottom: 1rem;
}

.news-grid {
    display: grid;
    grid-template-areas: 
    "storyone storytwo"
    "storyone storythree"
    "storyone storyfour";
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
    margin: 0 0.3rem;
    padding-bottom: 2rem;
}

.news-grid span {
    display: flex;
    justify-content: space-between;
}

.top-story {
    grid-area: storyone;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.top-story img {
    width: 100%;
    max-height: 30rem;
    object-fit: cover;
}

.story:nth-child(1) {
    grid-area: storytwo;
}
.story:nth-child(2) {
    grid-area: storythree;
}
.story:nth-child(3) {
    grid-area: storyfour;
}

.story {
    display: grid;
    grid-template-areas: 
    "image h3"
    "image span"
    "image p";
    grid-template-columns: 1fr 2fr;
    grid-gap: 0.5rem;
    align-content: center;
}

.story img {
    grid-area: image;
    width: 100%;
    aspect-ratio: 1/1;
    object-fit: cover;
}

.story span {
    grid-area: span;
}

.story p {
    grid-area: p
}

@media (max-width: 1080px) {
.news-grid {
    grid-template-areas: 
    "storyone"
    "storytwo"
    "storythree"
    "storyfour";
    grid-template-columns: 1fr;
 }

}

.date {
    color: #37517E;
    font-weight: 300;
}

.tag {
    border-radius: 4px;
    color: white;
    padding: 0 0.5rem;
    height: fit-content;
}

.promo-tag {
    background: linear-gradient(114deg, #B219E8 19%, #820AAC 77%);
}

.events-tag {
    background: linear-gradient(114deg, #DC3059 19%, #C20C38 77%);
}

.vendor-tag {
    background: linear-gradient(115deg, #A8AB17 0%, #787A08 100%);
}

.news-tag {
    background: linear-gradient(114deg, #32C21B 0%, #136905 100%);
}

#news .link {
    margin-left: 1rem;
}

section h2+p {
    text-align: center;
    padding-bottom: 1.5rem;
    font-weight: 300;
    color:#37517E;
}

.promo-grid {
    padding-top: 2rem;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-row-gap: 2rem;
    justify-items: center;
}

@media (max-width: 1024px) {
    .promo-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .promo-grid {
        grid-template-columns: repeat(1, 1fr);
    }
}

.promo-grid img {
    max-height: 20rem;
    box-shadow: 3px 3px 40px 10px rgba(0, 0, 0, 0.16);
}