
* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Arial, sans-serif;
    color: #244f3d;
    line-height: 1.6;
}

.top, footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 7%;
}

.top {
    background: white;
    position: sticky;
    top: 0;
    z-index: 10;
    border-bottom: 1px solid #eee;
}

.logo {
    color: #244f3d;
    font-size: 20px;
    font-weight: bold;
    text-decoration: none;
}

.logo span, .small-title {
    color: red;
}

nav {
    display: flex;
    gap: 20px;
}

nav a, footer a {
    color: inherit;
    text-decoration: none;
}

nav a:hover, .text-link:hover {
    color: red;
}

nav .nav-contact, .button, form button {
    background: #285641;
    color: white;
    padding: 12px 18px;
    border-radius: 6px;
    text-decoration: none;
}

.hero, .about, .story {
    display: flex;
    align-items: center;
    gap: 45px;
}

.hero {
    padding: 60px 7%;
    background: #f2f7f1;
}

.hero-text, .hero-image, .about > div,
.story-image, .story-text {
    flex: 1;
}

img {
    max-width: 100%;
    object-fit: cover;
    border-radius: 12px;
}

.hero img {
    height: 390px;
    width: 100%;
}

h1 {
    font-size: 48px;
    line-height: 1.2;
}

h1 span {
    color: #397653;
}

h2 {
    font-size: 32px;
}

.section {
    padding: 70px 7%;
}

.about {
    gap: 70px;
}

.about-note, .contact-info {
    background: #f2f7f1;
    padding: 30px;
    border-radius: 12px;
}

.about-note {
    border-left: 5px solid red;
}

.section-heading {
    text-align: center;
    margin: 0 auto 35px;
    max-width: 650px;
}

.animals {
    background: #fbfcfa;
}

.cards, .donate-cards {
    display: flex;
    gap: 24px;
}

.animal-card, .donate-card {
    flex: 1;
    background: white;
    border: 1px solid #eee;
    border-radius: 12px;
    overflow: hidden;
}

.animal-card img {
    width: 100%;
    height: 220px;
}

.card-content {
    padding: 20px;
}

.card-content a, .text-link {
    color: #285641;
    text-decoration: none;
    font-weight: bold;
}

.story img {
    width: 100%;
    height: 340px;
}

.donate {
    background: #f7f5f2;
    text-align: center;
}

.donate-card {
    padding: 25px;
    min-height: 300px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.donate-button {
    padding: 12px;
    color: red;
    border: 1px solid red;
    border-radius: 8px;
    text-decoration: none;
}

.donate-button:hover {
    background: red;
    color: white;
}

.own-amount {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 25px;
}

.own-amount input, form input, form textarea {
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font: inherit;
}

.contact-layout {
    display: flex;
    gap: 40px;
    max-width: 900px;
    margin: auto;
}

.contact-info, form {
    flex: 1;
}

form label {
    display: block;
    margin: 12px 0 5px;
    font-weight: bold;
}

form input, form textarea {
    width: 100%;
}

form button {
    border: none;
    cursor: pointer;
    margin-top: 15px;
}

footer {
    background: #203d30;
    color: white;
}

@media (max-width: 800px) {
    .top, nav, .hero, .about, .story,
    .cards, .donate-cards, .contact-layout,
    .own-amount, footer {
        flex-direction: column;
    }

    nav {
        align-items: center;
        gap: 12px;
    }

    h1 {
        font-size: 38px;
    }

    .hero img, .story img {
        height: 280px;
    }

    footer {
        text-align: center;
    }
}
