/* Global Styles - Shared across all pages */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    background-color: #fefefe;
    color: #222;
}
.wrapper {
    max-width: 1100px;
    margin: 20px auto;
    padding: 20px;
    background: white;
    box-shadow: 0 0 15px rgba(0,0,0,0.05);
    border-radius: 8px;
}
/* Headings */
h1 {
    color: #b22222;
    text-align: center;
    font-size: 2.5em;
    margin-bottom: 5px;
    border-bottom: 3px solid #f4a460;
    padding-bottom: 15px;
}
h2 {
    color: #a0522d;
    border-left: 6px solid #cd5c5c;
    padding-left: 15px;
    margin-top: 30px;
}
h3 {
    color: #2e4a62;
    font-style: italic;
}
/* Text attributes */
.highlight {
    color: #b22222;
    font-weight: bold;
}
.indent-text {
    text-indent: 30px;
    margin-left: 10px;
}
.italic-text {
    font-style: italic;
}
.center-text {
    text-align: center;
}
.right-text {
    text-align: right;
}
.caption {
    font-size: 0.9em;
    color: #555;
    text-align: center;
    font-style: italic;
}
/* Navigation */
nav {
    background: #2e4a62;
    padding: 12px;
    border-radius: 30px;
    margin: 20px 0;
    text-align: center;
}
nav a {
    color: white;
    margin: 0 15px;
    text-decoration: none;
    font-weight: bold;
    padding: 6px 12px;
    border-radius: 20px;
    transition: 0.3s;
}
nav a:hover {
    background-color: #f4a460;
    color: #1e1e1e;
}
/* Images */
.content-img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 20px auto;
    border: 3px solid #ddd;
    border-radius: 10px;
    box-shadow: 2px 2px 8px rgba(0,0,0,0.1);
}
.img-left {
    float: left;
    margin: 10px 20px 10px 0;
    max-width: 250px;
}
.img-right {
    float: right;
    margin: 10px 0 10px 20px;
    max-width: 250px;
}
.img-border {
    border: 4px solid #f4a460;
    padding: 5px;
    background: #fff5e6;
}
.thumb-img {
    border: 2px solid #b0c4de;
    padding: 4px;
    background: #f0f8ff;
    margin: 10px;
    max-width: 180px;
    opacity: 0.9;
}
.thumb-img:hover {
    opacity: 1;
    border-color: #b22222;
}
/* Table styling */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 25px 0;
    box-shadow: 0 2px 5px #ccc;
}
caption {
    font-size: 1.3em;
    font-weight: bold;
    margin-bottom: 10px;
    color: #2e4a62;
}
th, td {
    border: 1px solid #aaa;
    padding: 10px;
    text-align: left;
    vertical-align: top;
}
th {
    background-color: #f4a460;
    color: #1e1e1e;
}
/* Lists */
ul, ol {
    margin-left: 25px;
}
li {
    margin: 5px 0;
}
/* Footer */
footer {
    margin-top: 40px;
    padding: 20px;
    background: #2e4a62;
    color: #eee;
    text-align: center;
    border-radius: 0 0 8px 8px;
    font-size: 0.9em;
}
footer a {
    color: #f4a460;
    text-decoration: none;
}
.copyright {
    font-family: monospace;
    letter-spacing: 1px;
}
/* Bookmarks offset */
.section-bookmark {
    scroll-margin-top: 20px;
}
/* Screen tips */
[title] {
    border-bottom: 1px dotted #666;
    cursor: help;
}