html {
    scroll-behavior: smooth;
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    list-style-type: none;
    text-decoration: none;
}
:root {
    --PC: black;
    --SC: white;
    --otherbg: hsl(210 15% 93%);
    --red: hsl(0 75% 55%);
    --lred: hsl(0 75% 95%);
    --blue: hsl(210 80% 45%);
    --lblue: hsl(210 80% 95%);
    --green: hsl(150 60% 40%);
    --lgreen: hsl(150 60% 93%);
    --pt: hsl(220 10% 45%);
    --df: dm-sans, sans-serif;
    --h2font: 2.4rem;
}
img {
    display: block;
}
body {
    min-height: 100vh;
}
.container {
    max-width: 1200px;
    padding: 0 30px;
    margin: 0 auto;
}
/* general */
a {
    color: white;
}
.btn {
    padding: 12px;
    font-size: 1rem;
    font-family: var(--df);
    border: none;
    border-radius: 20px;
    cursor: pointer;
}
h2 {
    font-size: var(--h2font);
    font-family: var(--df);
}
/* hero */
.hero {
    padding-top: 4rem;
    padding-bottom: 4rem;
    background-image: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.3)),url('flod.avif');
    min-height: 70vh;
    background-position: center;
    background-size: cover;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}
.hero h4 {
    background-color: var(--red);
    color: var(--SC);
    max-width: 450px;
    padding: 10px;
    width: 100%;
    margin: 0 auto 1.5rem;
    font-weight: bolder;
    font-size: 1.3rem;
}
.hero h1 {
    color: var(--SC);
    font-family: dm-sans, sans-serif;
    font-weight: bolder;
    font-size: clamp(2.6rem, 6vw, 3.5rem);
    margin-bottom: 2rem;
}
.hero p {
    color: var(--SC);
    font-size: 1.2rem;
    font-family: dm-sans, sans-serif;
    max-width: 530px;
    width: 100%;
    margin: 0 auto 2rem;
}
.hero p span {
    font-weight: bold;
}
.hero .flex {
    display: flex;
    gap: 10px;
    justify-content: center;
}
.hero .btn1, .btn2, .btn3 {
    font-weight: bolder;
    font-size: 1.2rem;
    border-radius: 15px;
} 
.hero .btn1 {
    background-color: var(--blue);
}
.hero .btn2 {
    background-color: var(--red);
}
.hero .btn3 {
    background-color: var(--green);
}

/* before */
#before {
    padding-top: 4rem;
    padding-bottom: 4rem;
}
#before h4 {
    background-color: var(--blue);
    max-width: 100px;
    width: 100%;
    color: white;
    text-align: center;
    margin: 0 auto;
    cursor: default;
}
#before h2 {
    text-align: center;
    margin-top: 1rem;
    margin-bottom: 1rem;
}
#before h5 {
    text-align: center;
    max-width: 600px;
    width: 100%;
    margin: 0 auto 3rem;
    font-size: 1.2rem;
    font-weight: 570;
    font-family: var(--df);
    color: var(--pt);
}
#before .flex {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    place-items: center;
    gap: 15px;
}
#before .flex .items {
    display: flex;
    flex-direction: column;
    justify-content: center;
    background-color: var(--lblue);
    padding: 20px;
    border-radius: 10px;
    max-width: 500px;
    min-height: 100px;
    height: 100%;
    width: 100%;
}
#before .flex .items i {
    color: var(--blue);
    font-size: 30px;
    margin-bottom: 0.8rem;
}
#before .flex .items h3 {
    margin-bottom: 0.5rem;
    font-family: var(--df);
}
#before .flex .items p {
    font-size: 1.1rem;
    font-family: var(--df);
    color: var(--pt);
}
/* checklist */
#checklist {
    padding-top: 4rem;
    padding-bottom: 4rem;
    background-color: var(--otherbg);
}
#checklist i {
    font-size: 3.5rem;
    text-align: center;
    margin: 0 auto;
    color: var(--blue);
    display: flex;
    justify-content: center;
}
#checklist h2 {
    text-align: center;
    margin-top: 1rem;
    margin-bottom: 1rem;
}
#checklist h5 {
    text-align: center;
    max-width: 600px;
    width: 100%;
    margin: 0 auto 2rem;
    font-size: 1.2rem;
    font-weight: 570;
    color: var(--pt);
    font-family: var(--df);
}
#checklist .flex {
    display: grid;
    grid-template-columns: repeat(2, max-content);
    justify-content: center;
    gap: 15px;
}
#checklist .flex .items {
    display: flex;
    flex-direction: column;
    justify-content: center;
    background-color: var(--SC);
    padding: 14px;
    border-radius: 10px;
    max-width: 350px;
    min-height: 80px;
    height: 100%;
    width: 100%;
}
#checklist .flex .items .innerflex {
    display: flex;
    align-items: center;
    gap: 7px;
}
#checklist .flex .items .innerflex p{
    font-size: 1.3rem;
}
/* during */
#during {
    padding-top: 4rem;
    padding-bottom: 4rem;
}
#during h4 {
    background-color: var(--red);
    max-width: 100px;
    width: 100%;
    color: white;
    text-align: center;
    margin: 0 auto;
    cursor: default;
}
#during h2 {
    text-align: center;
    margin-top: 1rem;
    margin-bottom: 1rem;
}
#during h5 {
    text-align: center;
    max-width: 600px;
    width: 100%;
    margin: 0 auto 3rem;
    font-size: 1.2rem;
    font-weight: 570;
    font-family: var(--df);
    color: var(--pt);
}
#during .flex {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    place-items: center;
    gap: 15px;
}
#during .flex .items {
    display: flex;
    flex-direction: column;
    justify-content: center;
    background-color: var(--lred);
    padding: 20px;
    border-radius: 10px;
    max-width: 500px;
    min-height: 100px;
    height: 100%;
    width: 100%;
}
#during .flex .items i {
    color: var(--red);
    font-size: 30px;
    margin-bottom: 0.8rem;
}
#during .flex .items h3 {
    margin-bottom: 0.5rem;
    font-family: var(--df);
}
#during .flex .items p {
    font-size: 1.1rem;
    font-family: var(--df);
    color: var(--pt);
}
/* after */
#after {
    padding-top: 4rem;
    padding-bottom: 4rem;
}
#after h4 {
    background-color: var(--green);
    max-width: 100px;
    width: 100%;
    color: white;
    text-align: center;
    margin: 0 auto;
    cursor: default;
}
#after h2 {
    text-align: center;
    margin-top: 1rem;
    margin-bottom: 1rem;
}
#after h5 {
    text-align: center;
    max-width: 600px;
    width: 100%;
    margin: 0 auto 3rem;
    font-size: 1.2rem;
    font-weight: 570;
    font-family: var(--df);
    color: var(--pt);
}
#after .flex {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    place-items: center;
    gap: 15px;
}
#after .flex .items {
    display: flex;
    flex-direction: column;
    justify-content: center;
    background-color: var(--lgreen);
    padding: 20px;
    border-radius: 10px;
    max-width: 500px;
    min-height: 100px;
    height: 100%;
    width: 100%;
}
#after .flex .items i {
    color: var(--green);
    font-size: 30px;
    margin-bottom: 0.8rem;
}
#after .flex .items h3 {
    margin-bottom: 0.5rem;
    font-family: var(--df);
}
#after .flex .items p {
    font-size: 1.1rem;
    font-family: var(--df);
    color: var(--pt);
}
/* emergecny */
#contact {
    padding-top: 4rem;
    padding-bottom: 4rem;
    background-color: var(--otherbg);
}
#contact h2 {
    font-size: 2rem;
    text-align: center;
    margin-top: 1rem;
    margin-bottom: 3rem;
}
#contact i {
    font-size: 2.5rem;
    color: var(--red);
    display: flex;
    justify-content: center;
    align-items: center;
}
#contact .flex {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}
#contact .flex .items {
    display: flex;
    flex-direction: column;
    text-align: center;
    max-width: 300px;
    gap: 5px;
    width: 100%;
    padding: 20px;
    background-color: var(--SC);
    border-radius: 10px;
}
#contact .flex .items .icon {
    font-size: 30px;
}
#contact .flex .items h4 {
    color: var(--pt);
    font-weight: bold;
}
#contact .flex .items a {
    font-size: 1.8rem;
    color: black;
    font-weight: bold;
}
/* footer */
footer {
    padding-top: 2.5rem;
    padding-bottom: 2.5rem;
}
#footer .footer-p {
    text-align: center;
    color: var(--pt);
    font-size: 1.1rem;
}

@media screen and (max-width: 768px) {
    #before .flex,
    #during .flex,
    #after .flex,
    #checklist .flex {
        grid-template-columns: 1fr;
        place-items: center;
    }
}
