/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #2c5f2d;
    --secondary-color: #4a7c59;
    --text-color: #333;
    --background-color: #f9f9f9;
    --warning-bg: #fff3cd;
    --warning-border: #ffc107;
    --highlight-bg: #e8f5e9;
    --section-bg: #ffffff;
    --border-color: #ddd;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.8;
    color: var(--text-color);
    background-color: var(--background-color);
    padding: 0;
    margin: 0;
}

/* Header */
header {
    background-color: var(--primary-color);
    color: white;
    text-align: center;
    padding: 2rem 1rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

header h1 {
    font-size: 2.5rem;
    font-weight: 600;
    letter-spacing: -0.5px;
}

/* Container */
.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
}

/* Sections */
section {
    background-color: var(--section-bg);
    padding: 2rem;
    margin-bottom: 2rem;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

section h2 {
    color: var(--primary-color);
    font-size: 2rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 3px solid var(--primary-color);
}

section h3 {
    color: var(--secondary-color);
    font-size: 1.4rem;
    margin-top: 1.5rem;
    margin-bottom: 1rem;
}

/* Introduction Section */
.ahimsa-definition {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 1.05rem;
    color: #333;
    text-align: left;
    padding: 1.2rem 1.5rem 1rem 2rem;
    margin: 1rem 0 2rem 0;
    background-color: #fafafa;
    border-left: 3px solid #999;
    border-radius: 2px;
    line-height: 1.7;
}

.ahimsa-definition p {
    margin-bottom: 0.3rem;
}

.ahimsa-definition b {
    font-size: 1.4rem;
    color: #1a1a1a;
    font-weight: 700;
}

.ahimsa-definition .pronunciation {
    color: #666;
    font-size: 0.95rem;
    margin-left: 0.5rem;
}

.ahimsa-definition .part-of-speech {
    color: var(--secondary-color);
    font-style: italic;
    font-size: 0.95rem;
    margin-left: 0.5rem;
    font-weight: 600;
}

.ahimsa-definition .etymology {
    font-size: 0.9rem;
    color: #666;
    margin-top: 0.2rem;
    margin-bottom: 0.5rem;
}

.ahimsa-definition .definition {
    color: #222;
    margin-top: 0.5rem;
}

.intro-text {
    font-size: 1.1rem;
    line-height: 1.9;
    margin-bottom: 1.5rem;
}

/* Warning Box */
.warning {
    background-color: var(--warning-bg);
    border-left: 4px solid var(--warning-border);
    padding: 1.5rem;
    margin: 1.5rem 0;
    border-radius: 4px;
}

/* Proceed Button */
.proceed-container {
    text-align: center;
    margin: 2rem 0;
}

.proceed-button {
    background-color: var(--primary-color);
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
    padding: 1rem 2rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.proceed-button:hover {
    background-color: #DC143C !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.proceed-button:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

/* Hidden Content */
.hidden-content {
    display: none;
}

.warning p {
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.warning p:last-child {
    margin-bottom: 0;
}

/* Animals Covered */
.animals-covered {
    font-weight: 600;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}

.animal-list {
    list-style-type: none;
    padding-left: 1.5rem;
    margin-bottom: 1rem;
}

.animal-list li {
    margin-bottom: 0.3rem;
    position: relative;
}

.animal-list li::before {
    content: "- ";
    position: absolute;
    left: -1rem;
    color: var(--primary-color);
}

/* Animal Sections */
.animal-section {
    border-left: 4px solid var(--secondary-color);
}

/* Paragraphs */
p {
    margin-bottom: 1rem;
    text-align: justify;
}

p strong {
    color: var(--secondary-color);
    font-weight: 600;
}

/* Highlight */
.highlight {
    background-color: var(--highlight-bg);
    padding: 1rem;
    border-radius: 4px;
    border-left: 4px solid var(--primary-color);
    font-weight: 500;
}

/* Response List */
.response-list {
    list-style-type: none;
    padding-left: 1rem;
    margin: 1rem 0;
}

.response-list li {
    margin-bottom: 0.5rem;
    padding-left: 1.5rem;
    position: relative;
}

.response-list li::before {
    content: "- ";
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

/* Footer */
.document-footer {
    background-color: var(--section-bg);
    padding: 1.5rem;
    margin-top: 2rem;
    border-radius: 8px;
    border-top: 3px solid var(--primary-color);
    font-size: 0.9rem;
    font-style: italic;
    color: #666;
}

/* Responsive Design */
@media (max-width: 768px) {
    header h1 {
        font-size: 2rem;
    }

    .container {
        padding: 1rem;
    }

    section {
        padding: 1.5rem;
    }

    section h2 {
        font-size: 1.6rem;
    }

    section h3 {
        font-size: 1.2rem;
    }

    .intro-text {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    header h1 {
        font-size: 1.6rem;
    }

    section h2 {
        font-size: 1.4rem;
    }

    section h3 {
        font-size: 1.1rem;
    }

    p {
        text-align: left;
    }
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Accessibility */
a {
    color: var(--primary-color);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

a:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Lifespan Charts */
.lifespan-chart {
    display: block;
    margin: 1.5rem auto;
    max-width: 100%;
    height: auto;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

@media (max-width: 768px) {
    .lifespan-chart {
        width: 100%;
        height: auto;
    }
}
