/* CSS reset for uniform margins and padding calculations */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* Base Body Styling */
body {
    font-family: 'Trebuchet MS', 'Segoe UI', sans-serif;
    background-color: #fbf6ea; /* Soft Cream Color */
    color: #28321f; /* Forest Dark Text */
}

/* Header Banner Section */
header {
    background-color: #1f3d2c; /* Forest Green */
    text-align: center;
    padding: 50px 20px;
    color: #ffffff;
}

header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

header p {
    font-size: 1.1rem;
    color: #d9a441; /* Warm Gold */
    max-width: 700px;
    margin: 0 auto; /* Centers the paragraph text block */
}

/* Container to contain all the content blocks */
.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* Introduction Paragraph Block Design */
.about-section {
    background-color: #ffffff;
    border: 2px solid #3c6e47; /* Leaf Green border */
    border-radius: 15px;
    padding: 25px 30px;
    margin-bottom: 40px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.about-section h2 {
    color: #1f3d2c;
    margin-bottom: 12px;
    font-size: 1.8rem;
    border-bottom: 2px solid #d9a441; /* Gold underline decorative bar */
    padding-bottom: 5px;
    display: inline-block;
}

.about-section p {
    font-size: 1.05rem;
    line-height: 1.6;
    color: #33452b;
}

/* Card layout holding image and description side-by-side */
.long-card {
    background-color: #ffffff;
    border-radius: 15px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
    display: flex; /* Creates the row structure for columns */
    overflow: hidden; /* Keeps image borders nicely rounded inside the card */
}

/* Image container setting standard column width */
.long-card .image-side {
    width: 35%;
}

.long-card img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Prevents the animal photos from stretching */
    display: block;
}

/* Content block setting up texts and media player */
.long-card .content-side {
    width: 65%;
    padding: 30px;
}

.long-card h2 {
    font-size: 1.8rem;
    color: #1f3d2c;
    margin-bottom: 5px;
}

.long-card .latin {
    font-style: italic;
    font-size: 0.95rem;
    color: #6b7a5e;
    margin-bottom: 15px;
}

.long-card p {
    font-size: 1rem;
    line-height: 1.6;
    color: #33452b;
    margin-bottom: 15px;
}

/* Special spotlight alert box for specific highlights */
.note {
    font-size: 0.85rem;
    color: #a3771f;
    background-color: #fff5dc;
    border-left: 4px solid #d9a441;
    padding: 10px 15px;
    border-radius: 4px;
    margin-bottom: 15px;
}

/* Native audio control formatting */
audio {
    width: 100%;
    margin-top: 10px;
    margin-bottom: 10px;
}

/* Reference line metadata markup */
.source {
    font-size: 0.8rem;
    color: #888888;
    text-align: right;
    padding-top: 10px;
    border-top: 1px solid #eeeeee;
}

/* Website Footer */
footer {
    text-align: center;
    color: #ffffff;
    padding: 30px 20px;
    background-color: #1f3d2c;
    line-height: 1.8;
}

.footer-content p {
    font-size: 1rem;
}

.footer-content strong {
    color: #d9a441; /* Highlights headings in gold */
}

.footer-note {
    font-size: 0.8rem;
    color: #a4bfa7; /* Subdued sage green color */
    margin-top: 10px;
    border-top: 1px dashed #3c6e47;
    padding-top: 8px;
}

/* Responsive view layout for mobile screens or small displays */
@media (max-width: 800px) {
    .long-card {
        flex-direction: column; /* Shifts layouts from horizontal row to vertical stacked column */
    }
    
    .long-card .image-side {
        width: 100%;
        height: 250px;
    }
    
    .long-card .content-side {
        width: 100%;
    }
}