* {
    box-sizing: border-box;
}
html {
    scroll-behavior: smooth;
}
body {
    margin: 2px;
    background: white;
    font-size: 14px;
    color: black;
    font-family: Arial, sans-serif;
    line-height: 1.5;
}
/* header changes */
.site-header {
    background: white;
    text-align: center;
}
.header-content {
    width: 80%;
    max-width: 900px;
    margin: auto;
}
.site-header p {
    max-width: 700px;
    margin: auto;
}
/* flexbox for navigation */
.navigation {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px;
    background: white;
}
.navigation a {
    width: 100%;
    max-width: 350px;
    padding: 10px;
    color: black;
    text-align: center;
    text-decoration: none;
}
.navigation a:hover {
    color: #fd87ba;
}
/* main sections */
.intro-section,
.common-cats,
.cat-care {
    width: 80%;
    max-width: 1200px;
    margin: 20px auto;
    padding: 20px;
    background: white;
    border-radius: 18px;
    box-shadow: 0 0 12px rgba(70, 80, 65, 0.3);
    text-align: center;
}
/* first grid - about cats */
.feline-five {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    margin-top: 20px;
}
.feline-five article {
    background: white;
    border: 2px solid rgb(200, 199, 199);
    padding: 10px;
    text-align: center;
}
.feline h4 {
    color: #fd87ba;
    margin-bottom: 5px;
}
.feline p {
    color: black;
    margin: 0;
}
/* cat grid */
.cat-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 20px;
}
.cat-image {
    background: white;
    border-radius: 18px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 0 12px rgba(70,80,65,0.15);
    transition: transform .3s ease;
}
.cat-image:hover {
    transform: scale(1.05);
}
.cat-image img {
    width: 180px;
    height: 180px;
    object-fit: cover;
    display: block;
    margin: 0 auto 15px;
}
.about-cat h4 {
    color: #fd87ba;
}
.image-credit {
    color: rgb(122,122,122);
    font-size: 12px;
    margin-bottom: 8px;
}
/* last grid - how to care */
.care-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 20px;
}
.how-to {
    background: white;
    border-radius: 18px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 0 12px rgba(70,80,65,0.15);
}
.care-cat h4 {
    color: #fd87ba;
}
/* all text changes */
h3 {
    margin-top: 0;
}
h4 {
    margin-bottom: 6px;
}
p {
    margin: 5px 0;
}
/* tablet layout */
@media screen and (min-width: 650px) {
    .navigation {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
    }
    .navigation a {
        width: auto;
    }
    .feline-five {
        grid-template-columns: repeat(2, 1fr);
    }
    .cat-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .care-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
/* desktop */
@media screen and (min-width: 1000px) {
    .site-header {
        padding: 90px 20px;
    }
    .feline-five {
        grid-template-columns: repeat(5, 1fr);
    }
    .cat-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .care-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}