/* Box sizing rules */
*,
*::before,
*::after {
    box-sizing: border-box;
}

/* Remove default margin */
body,
h1,
h2,
h3,
h4,
p,
figure,
blockquote,
dl,
dd {
    margin: 0;
}

/* Remove list styles on ul, ol elements with a list role, which suggests default styling will be removed */
ul[role='list'],
ol[role='list'] {
    list-style: none;
}

/* Set core root defaults */
html:focus-within {
    scroll-behavior: smooth;
}

/* Set core body defaults */
body {
    min-height: 100vh;
    text-rendering: optimizeSpeed;
    line-height: 1.5;
}

/* A elements that don't have a class get default styles */
a:not([class]) {
    text-decoration-skip-ink: auto;
}

/* Make images easier to work with */
img,
picture {
    max-width: 100%;
    display: block;
}

/* Inherit fonts for inputs and buttons */
input,
button,
textarea,
select {
    font: inherit;
}

/* Remove all animations, transitions and smooth scroll for people that prefer not to see them */
@media (prefers-reduced-motion: reduce) {
    html:focus-within {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

body {
    font-family: 'Raleway', sans-serif;
}

/* NORMAL CSS */

header,
footer {
    background-image: url(assets/img/banner-top.png);
    background-repeat: no-repeat;
    background-size: cover
}

.header-inner-container,
.footer-inner-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-block: 4em;
}

header img,
footer img {
    width: 7%;
    margin-bottom: 1em;
}

.text-div,
.footer-text-div {
    text-align: center;
    color: white;
    width: 42%;
    display: flex;
    flex-direction: column;
    gap: 2em;
}

.text-div h1,
.footer-text-div h1 {
    font-size: 3rem;
    font-weight: 600;
}

.text-div p,
.footer-text-div p {
    font-size: 1.4rem;
}

header span {
    font-weight: bold;
}

.main-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-block: 3em;
}

.main-container h2 {
    color: rgb(149, 12, 61);
    font-size: 2rem;
    font-weight: 600;
    text-align: center;
}

main a {
    background-color: rgba(228, 46, 110, 1);
    padding: .5em 2em;
    font-weight: 600;
    border-radius: 30px;
    border: none;
    color: white;
    font-size: 1.5rem;
    text-transform: uppercase;
    text-decoration: none;
    white-space: nowrap;
    margin-top: auto;
}

main a:hover {
    opacity: .9;
    transition: .4s ease;
}

.first-line {
    display: flex;
    width: 80%;
    margin-top: 2em;
    gap: 3em;
}

.first-line .card {
    width: 33.33%;
}

.card1-img {
    width: 306px;
    max-height: 200px;
}

.card2-img {
    width: 220px;
    max-height: 200px;
}

.card3-img {
    width: 174px;
    max-height: 200px;
}

.card4-img {
    width: 252px;
    height: 180px;
}

.card5-img {
    width: 146px;
    height: 180px;
}

.card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-around; 
    text-align: center;
    gap: 2em;
}

.card-p {
    color: rgb(149, 12, 61);
    font-size: 1.6rem;
    font-weight: 600;
    line-height: 1.2;
}

.second-line {
    display: flex;
    gap: 2em;
    margin-top: 3em;
    width: 80%;
}

.second-line .card {
    width: 50%;
}

.second-line .card .card-p{
    width: 70%
}


.footer-inner-container {
    padding-bottom: 0;
}

.footer-text-div {
    width: 100%;
}

.footer-text-div p {
    font-weight: 600;
    font-size: 1.9rem;
}

.footer-grid-container {
    grid-template-columns: 1fr 1fr 1fr;
    display: grid;
    gap: 2em;
    margin-block: 3em;
}

.footer-grid-item {
    display: flex;
    justify-content: center;
}

.footer-grid-item img {
    width: 80%;
    border-radius: 10px;
}

footer a {
    background-color: white;
    padding: .5em 2em;
    font-weight: 600;
    border-radius: 30px;
    border: none;
    color: rgb(149, 12, 61);
    font-size: 1.5rem;
    text-transform: uppercase;
    text-decoration: none;

}

.copyright-stripe {
    margin-top: 4em;
    background-image: linear-gradient(90deg, rgb(149, 12, 61) 60%, rgba(228, 46, 110, 0.3));
    width: 100%;
    padding-block: 1.5em;
    text-align: center;
    color: white;
    font-size: 1.1rem;
}

@media only screen and (max-width:768px) {


    .card-p {
        font-size: 1.5rem;
    }

    .first-line {
        flex-direction: column;
        width: 100%;
        align-items: center;
    }

    .first-line .card {
        width: 100%;
    }

    .first-line .card-p {
        width: 90%;
    }

    .second-line {
        flex-direction: column;
        width: 100%;
        align-items: center;
    }

    .second-line .card {
        width: 100%;
    }

    .second-line .card .card-p {
        width: 90%;
    }

    

    header img,
    footer img {
        object-fit: contain;
        width: 30%;
    }

    .text-div {
        width: 95%;
    }

    .text-div h1,
    .footer-text-div h1 {
        font-size: 2.3rem;
        font-weight: 600;
        line-height: 1.3;
    }

    .text-div p,
    .footer-text-div p {
        font-size: 1.1rem;
    }

    .main-container h2 {
        color: rgb(149, 12, 61);
        font-size: 1.4rem;
        line-height: 1.2;
        width: 90%;
        font-weight: 600;
        text-align: center;
    }


    main button {
        background-color: rgba(228, 46, 110, 1);
        padding: .5em 2.5em;
        font-weight: 600;
        border-radius: 30px;
        border: none;
        color: white;
        font-size: 1.1rem;
        text-transform: uppercase;
        margin-top: auto;
    }



    .footer-text-div h1 {
        line-height: 1.2;
    }

    .footer-text-div p {
        font-size: 1.5rem;
        margin-top: .5em;
    }

    footer a {
        background-color: white;
        padding: .5em 1em;
        font-weight: 600;
        border-radius: 30px;
        border: none;
        color: rgb(149, 12, 61);
        font-size: 1.2rem;
        text-transform: unset;
        margin-top: auto;
    }

    .footer-grid-container {
        grid-template-columns: 1fr 1fr;
        place-items: center;
    }

    .footer-grid-container .footer-grid-item:nth-child(3) {
        grid-column: 1 / -1;
    }

    .footer-grid-container .footer-grid-item:nth-child(3) img {
        width: 58%;
    }

    .copyright-stripe {
        margin-top: 2em;
        background-image: linear-gradient(90deg, rgb(149, 12, 61) 60%, rgba(228, 46, 110, 0.3));
        width: 100%;
        padding-block: 1em;
        text-align: center;
        color: white;
        font-size: .9rem;
    }

}


button:hover {
    opacity: .9;
    transition: .4s ease;
    cursor: pointer;
}