.container {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 32px;
}

.containercard {
    margin:30px 0;

    padding:30px;

    background:var(--surface);

    border:1px solid var(--border);

}

:root {
    --bg: #fffbf2;
    --surface: #ffffff;
    --text: #1a1714;
    --text-muted: #7a560d;
    --border: #e4dfd8;

    /* keep Koala greens */
    --primary: #1e410c;
    --accent: #84a456;
    --accent-light: #f0f7ef;
}

*,
*::before,
*::after{
    box-sizing:border-box;
}

body{
    margin:0;
    background:var(--bg);
    color:var(--text);
    line-height:1.7;
}

h1,
h2,
h3{
    font-family:"Google Sans Flex",sans-serif;
    color:var(--primary);

    border:none;
    margin:0 0 20px;
    padding-bottom:12px;

    border-bottom:1px solid var(--border);
}

h1.title{

    background:none;

    color:var(--primary);

    text-align:center;

    padding:70px 20px 40px;

    font-size:3.5rem;

    border:none;

    margin-bottom:20px;
}

h2.subtitle{

    text-align:center;

    font-size:2.6rem;

    margin:15px 0 50px;

    color:var(--text-muted);
}

p{

    font-family:"EB Garamond",serif;

    font-size:1.1rem;

    color:var(--text);

    margin-bottom:20px;
}

nav{

    display:flex;

    justify-content:center;

    align-items:center;

    gap:25px;

    padding:18px;

    background:var(--surface);

    border-top:1px solid var(--border);

    border-bottom:1px solid var(--border);

    margin-bottom:45px;
}

nav a{

    font-family:"EB Garamond",serif;

    font-weight:600;

    color:var(--primary);

    padding:8px 20px;

    border-radius:10px;

    transition:.2s;

    text-decoration:none;
}

nav a:hover{

    background:var(--accent-light);

    color:var(--accent);

    transform:none;
}

header,
main,
section,
article,
aside {

    margin:30px 0;

    padding:30px;

    background:var(--surface);

    border:1px solid var(--border);

    border-radius: 8px;

}

footer{
    background:var(--surface);

    border:1px solid var(--border);

    text-align:center;

    color:var(--text-muted);

    border-top:1px solid var(--border);

    margin-top:60px;

    padding:30px;
}

.footer-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;

    width: 100%;
    margin-bottom: 20px;
    padding-bottom: 20px;

    border-bottom: 1px solid var(--border);
}

.footer-nav a {
    font-family:"EB Garamond",serif;
    font-weight:600;
    color: var(--primary);
    text-decoration: none;
    transition: color .2s ease;
}

.footer-nav a:hover {
    color: var(--accent);
}

ul{

    list-style:none;

    padding:0;

    margin:20px 0;
}

li{

    padding:12px 0 12px 55px;

    position:relative;
}

li::before {
  content: "";
  position: absolute;
  left: 30px;
  top: 50%;
  transform: translateY(-40%);

  width: 16px;
  height: 16px;

  background-image: url("assets/leaf.png");
  background-size: contain;
  background-repeat: no-repeat;
}

img {

    border:1px solid var(--border);

    padding:8px;

    background:white;

    border-radius:6px;

    box-shadow:0 2px 8px rgba(0,0,0,.05);

    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;

}

.video {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;

    margin: 0 auto 30px;
    padding:8px;
    float: none;
    background:white;

    border: 1px solid var(--border);
    border-radius: 8px;
    box-shadow:0 2px 8px rgba(0,0,0,.05);
}

section{

    margin-bottom:40px;
}

.textpaddingh,
.padding{

    padding:0;
}

.first-letter p:first-of-type::first-letter {
  font-size: 3rem;
  float: left;

  margin: 10px 10px -10px 0px;

}

.small-serif {
    font-family: "EB Garamond", serif;
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-top: 20px;
}

.faq-columns {
  column-count: 3;
  column-gap: 30px;
  column-rule: 1px var(--accent) solid;
  padding: 0;
  margin: 0;

    background: none;
    border: none;
    border-radius: 0;
}

.faq-item {
  break-inside: avoid;
  padding-bottom: 5px;
  display: inline-block;
  width: 100%;
  
}



/* Gallery */

.gallery {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 25px;
    margin: 40px 0;

    background: none;
    border: none;
    border-radius: 0;
}

/* Figure */

.gallery figure {
    flex: 1 1 300px;
    max-width: 320px;

    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 8px;

    padding: 12px;
    margin: 0;

    text-align: center;

    box-shadow: 0 2px 8px rgba(0,0,0,.05);
}

/* Images */

.gallery img {
    display: block;

    width: 100%;
    max-width: 100%;
    height: auto;

    border-radius: 6px;
}

/* Captions */

.gallery figcaption {
    margin-top: 12px;

    font-family: "EB Garamond", serif;
    font-size: 1rem;

    color: var(--text-muted);
}

/* Responsive */

@media (max-width:768px){

    .gallery{
        flex-direction: column;
        align-items:center;
    }

    .gallery figure{
        width:100%;
        max-width:100%;
    }

    .container{
        width:100%;
        padding:0 15px;
    }

}

/* ===========================
   Adoption Form
=========================== */

form {
    max-width: 800px;
    margin: 0 auto;
}

fieldset {
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 30px;
    margin-bottom: 30px;
    background: var(--surface);
}

legend {
    padding: 0 12px;
    font-family: "Google Sans Flex", sans-serif;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--primary);
}

/* Each label/input row */

.flex-form {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 18px;
}

.flex-form label {
    flex: 0 0 180px;
    font-family: "EB Garamond", serif;
    font-weight: 600;
    color: var(--primary);
}

.flex-form input,
.flex-form select,
.flex-form textarea {
    flex: 1;

    padding: 12px 14px;

    font-family: "EB Garamond", serif;
    font-size: 1rem;

    border: 1px solid var(--border);
    border-radius: 6px;

    background: #fff;
    color: var(--text);

    transition: border-color .2s ease,
                box-shadow .2s ease;
}

.flex-form textarea {
    min-height: 140px;
    resize: vertical;
}

/* Focus */

.flex-form input:focus,
.flex-form select:focus,
.flex-form textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(132,164,86,.18);
}

/* Radio + Checkbox groups */

.flex-radio {
    display: flex;
    flex-wrap: wrap;
    justify-content: center; /* Centers the options */
    gap: 20px;
    margin: 20px 0 25px;
}

.flex-radio div {
    display: flex;
    align-items: center;
    gap: 8px;
}

.flex-radio label {
    font-family: "EB Garamond", serif;
    color: var(--text);
}

/* Buttons */

.flex-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

.flex-buttons input {
    padding: 12px 32px;

    border: none;
    border-radius: 8px;

    font-family: "Google Sans Flex", sans-serif;
    font-size: 1rem;
    font-weight: 600;

    cursor: pointer;

    transition: .2s ease;
}

.flex-buttons input[type="submit"] {
    background: var(--primary);
    color: white;
}

.flex-buttons input[type="submit"]:hover {
    background: var(--accent);
}

.flex-buttons input[type="reset"] {
    background: #ece8e2;
    color: var(--text);
}

.flex-buttons input[type="reset"]:hover {
    background: #ddd6ce;
}

/* Form paragraph */

form p {
    text-align: center;
    margin-bottom: 20px;
}

/* Responsive */

@media (max-width: 768px) {

    .flex-form {
        flex-direction: column;
        align-items: stretch;
    }

    .flex-form label {
        flex: none;
        margin-bottom: 6px;
    }

    .flex-radio {
        flex-direction: column;
        gap: 12px;
    }

    .flex-buttons {
        flex-direction: column;
    }

    .flex-buttons input {
        width: 100%;
    }
}