﻿/* ===== Reset & Base Styles ===== */
body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    color: #333;
    background-color: #f9f9f9;
}

/* ===== Header Section ===== */
.pig-header {
    background: url('../images/pig1.jpg') no-repeat center center;
    background-size: cover;
    height: 150px;
    color: #f0f0f0;
    padding: 20px 0;
    border-bottom: 4px solid #444;
    position: relative;
    overflow: hidden;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
	max-width: 1400px;
    margin: 0 auto;
}

.pig-header::after {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 0;
}

.pig-header h1,
.pig-header p {
    position: relative;
    margin: 0;
    padding: 0 15px;
    z-index: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pig-header h1 {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 2em;
    color: #ffffff;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.6);
}

.pig-header p {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 1em;
    color: #dddddd;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.4);
    margin-top: 5px;
}


/* ===== Navigation ===== */
nav {
    background: #444;
    padding: 10px 0;
    width: 90%;
    max-width: 1400px;
    margin: 0 auto;
    border-radius: 5px;
}

nav .nav-container ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

nav .nav-container ul li {
    margin: 0 15px;
}

nav .nav-container ul li a {
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    font-size: 1em;
}

nav .nav-container ul li a:hover {
    text-decoration: underline;
}

/* ===== Main Container ===== */
.container {
    width: 90%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px 0;
}

/* Section Titles */
h2 {
    color: #444;
    margin-top: 0;
    font-size: 2em;
}

/* Featured Section */
.featured {
    background-color: #fff3e0;
    padding: 20px;
    margin: 40px auto;
    max-width: 960px;
    font-style: italic;
    border-left: 6px solid #ff6f00;
}

/* About Page Book Cover */
.book-cover {
    display: block;
    border-radius: 10px;
    width: 25%;
    height: auto;
    margin: 20px 40px 40px 0;
    float: left;
}

/* Lists (Scoped — avoid global override) */
.container ul,
.featured ul,
main ul {
    list-style-type: disc;
    padding-left: 20px;
    margin: 10px 0;
}

.container ul li,
.featured ul li {
    margin: 5px 0;
}

/* Blockquote */
blockquote {
    border-left: 4px solid #ddd;
    margin: 20px 0;
    padding-left: 15px;
    font-style: italic;
    color: #666;
}

/* Buttons */
.btn {
    display: inline-block;
    background: #007BFF;
    color: #fff;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
    text-align: center;
    font-size: 1em;
}

.btn:hover {
    background: #0056b3;
}

/* ===== Footer ===== */
footer {
    background: #333;
    color: #fff;
    width: 90%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 10px 20px;
    font-size: 0.9em;
    border-radius: 5px;
    min-height: 50px;
}

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

/* ===== Quick Thought Box ===== */
.quick-thought-title {
    margin: 10px auto 5px auto;
    max-width: 1000px;
    font-size: 1.4em;
    font-weight: bold;
    text-align: center;
    color: #333;
}

.quick-thought-box {
    width: 100%;
    max-width: 1000px;
    margin: 20px auto;
    border: 2px solid #444;
    border-radius: 8px;
    background-color: #f4f4f4;
    padding: 10px 15px;
    box-shadow: 2px 2px 6px rgba(0,0,0,0.1);
    font-family: Georgia, serif;
}

.thought-content {
    height: 150px;
    overflow-y: auto;
    padding: 0;
    margin: 0;
}

.thought-lines {
    margin: 0;
    padding: 0;
    font-size: 1em;
    line-height: 1.3;
    color: #555;
    white-space: normal;
}

/* ===== Responsive Design ===== */
@media (max-width: 768px) {
    nav .nav-container ul {
        flex-direction: column;
        align-items: center;
    }

    nav .nav-container ul li {
        margin: 10px 0;
    }

    .book-cover {
        width: 50%;
    }

    .pig-header h1 {
        font-size: 1.8em;
    }

    .pig-header p {
        font-size: 1em;
    }
}
