﻿/* All CSS from the original <style> block is moved here to be consistent */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    font-family: 'Georgia', 'Times New Roman', serif;
    line-height: 1.6;
    color: #2c3e50;
    background: linear-gradient(135deg, #74b9ff 0%, #0984e3 50%, #6c5ce7 100%);
    min-height: 100vh;
}
.container {
    max-width: 1200px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.98);
    min-height: 100vh;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.15);
}
header {
    /* Changed to a more neutral, professional gray gradient */
    background: linear-gradient(45deg, #f0f0f0, #e0e0e0);
    color: #2c3e50; /* Changed font color to be dark for contrast */
    /* Removed the bottom padding to connect directly to the nav bar */
    padding: 2.5rem 0 0;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
    /* This was updated to remove padding at the bottom, making it a cohesive block with the nav */
    padding-bottom: 0;
}
header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.05); /* Made the overlay more subtle */
    z-index: 1;
}
header > * {
    position: relative;
    z-index: 2;
}
/* New styles to make the H1 larger and H2 smaller */
h1 {
    font-size: 2.5rem; /* H1 is now larger */
    margin-bottom: 0.8rem;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.1); /* Subtle shadow for a lighter background */
    font-weight: 500;
}
.subtitle {
    font-size: 1.3rem;
    font-style: italic;
    opacity: 0.95;
    margin-bottom: 0.5rem;
}
.author-info {
    font-size: 1rem;
    opacity: 0.9;
    margin-top: 1rem;
}
.header-h2 {
    font-size: 1.5rem; /* H2 is now smaller */
    font-weight: bold;
    color: #2c3e50; /* Changed font color to be dark for contrast */
    opacity: 0.9;
    /* This was updated to remove the margin-top that was creating the space */
    margin-top: 0;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.1); /* Subtle shadow for a lighter background */
}
nav {
    background: #2d3436;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    /* The top border was already removed in the previous version */
}
nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}
nav li {
    margin: 0 0.8rem;
}
nav a {
    color: white;
    text-decoration: none;
    padding: 0.8rem 1.2rem;
    border-radius: 6px;
    transition: all 0.3s ease;
    font-weight: 600;
    font-size: 1rem;
}
nav a:hover, nav a.active {
    background: #d63031;
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}
main {
    padding: 2.5rem;
}
.page {
    display: block;
}
h2 {
    color: #d63031;
    font-size: 2.2rem;
    margin: 2rem 0 1.5rem 0;
    border-bottom: 4px solid #d63031;
    padding-bottom: 0.8rem;
    font-weight: bold;
}
h3 {
    color: #2d3436;
    font-size: 1.6rem;
    margin: 2rem 0 1rem 0;
    font-weight: 600;
}
p {
    margin-bottom: 1.2rem;
    /* This line was removed to fix the large word spacing issue */
    /* text-align: justify; */
    line-height: 1.8;
    font-size: 1.05rem;
}
.indent {
    margin-left: 2.5rem;
    font-style: italic;
    color: #636e72;
}
.center {
    text-align: center;
}
.right {
    text-align: right;
}
.large-text {
    font-size: 1.3rem;
    color: #d63031;
    font-weight: 700;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}
.highlight {
    background: linear-gradient(120deg, #fdcb6e 0%, #e17055 100%);
    padding: 0.3rem 0.6rem;
    border-radius: 5px;
    font-weight: bold;
    color: white;
}
.warning-highlight {
    background: linear-gradient(120deg, #d63031 0%, #e84393 100%);
    padding: 0.3rem 0.6rem;
    border-radius: 5px;
    font-weight: bold;
    color: white;
}
ul, ol {
    margin: 1.5rem 0 1.5rem 2.5rem;
}
li {
    margin-bottom: 0.8rem;
    line-height: 1.6;
}
.image-container {
    text-align: center;
    margin: 2.5rem 0;
}
.main-image {
    max-width: 100%;
    height: 350px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25);
    border: 4px solid #d63031;
    margin: 1.5rem 0;
    transition: all 0.3s ease;
}
.main-image:hover {
    transform: scale(1.02);
}
.thumbnail {
    width: 160px;
    height: 110px;
    object-fit: cover;
    border-radius: 8px;
    margin: 0.8rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 3px solid #ddd;
}
.thumbnail:hover {
    transform: scale(1.15);
    border-color: #d63031;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}
table {
    width: 100%;
    border-collapse: collapse;
    margin: 2.5rem 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    border-radius: 8px;
    overflow: hidden;
}
table caption {
    caption-side: top;
    font-size: 1.3rem;
    font-weight: bold;
    color: #d63031;
    margin-bottom: 1.5rem;
    text-align: center;
}
th, td {
    border: 1px solid #ddd;
    padding: 1.2rem;
    text-align: left;
}
th {
    background: linear-gradient(45deg, #d63031, #e84393);
    color: white;
    font-weight: bold;
    font-size: 1.1rem;
}
tr:nth-child(even) {
    background: #f8f9fa;
}
tr:hover {
    background: #ffe8e8;
    transition: background-color 0.3s ease;
}
.merged-cell {
    background: linear-gradient(45deg, #fdcb6e, #e17055);
    font-weight: bold;
    text-align: center;
    color: white;
}
.contact-info {
    background: linear-gradient(45deg, #f8f9fa, #e9ecef);
    padding: 2rem;
    border-radius: 12px;
    margin: 2rem 0;
    border-left: 6px solid #d63031;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}
.email-link {
    color: #d63031;
    text-decoration: none;
    font-weight: bold;
}
.email-link:hover {
    text-decoration: underline;
    color: #b2df7c;
}
.external-link {
    color: #0984e3;
    text-decoration: none;
    font-weight: bold;
    padding: 0.3rem 0.6rem;
    border-radius: 4px;
    transition: all 0.3s ease;
}
.external-link:hover {
    background: #0984e3;
    color: white;
    text-decoration: none;
}
/* Style for the main reference list container */
.reference-list {
    list-style: none; /* Remove default list bullets */
    padding: 0;
    margin: 2rem 0;
}
.reference-list li {
    margin-bottom: 1rem;
}
/* Adding a style to create a hanging indent for APA style references */
.apa-reference {
    text-indent: -2em;
    margin-left: 2em;
}
.bookmark {
    display: block;
    margin: 2.5rem 0;
    padding: 1.5rem;
    background: linear-gradient(45deg, #fff3cd, #ffeaa7);
    border: 2px solid #fdcb6e;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}
.statistics-box {
    background: linear-gradient(45deg, #ffe8e8, #ffcccb);
    padding: 2rem;
    border-radius: 12px;
    margin: 2rem 0;
    border: 3px solid #d63031;
    text-align: center;
}
.stat-number {
    font-size: 2.5rem;
    font-weight: bold;
    color: #d63031;
}
/* --- Updated Footer Styles --- */
footer {
    background: #2d3436;
    color: white;
    text-align: center;
    padding: 2.5rem;
    margin-top: 3rem;
    display: flex; /* Makes the footer a flexible container */
    flex-direction: column; /* Stacks the child elements vertically */
    align-items: center; /* Centers items horizontally */
}
.footer-nav {
    width: 100%;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2); /* Creates a subtle line to separate the nav */
    padding-bottom: 1.5rem;
    margin-bottom: 1.5rem;
}
.footer-nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    padding: 0;
    margin: 0;
    flex-wrap: wrap;
}
.footer-nav li {
    margin: 0 1rem;
}
.footer-nav a {
    color: #b0c4de; /* A lighter color for the links */
    text-decoration: none;
    font-size: 0.9rem;
    padding: 0.5rem;
    transition: all 0.3s ease;
    font-weight: 500;
}
.footer-nav a:hover {
    color: #d63031; /* Uses the bold red color for the hover effect */
    text-decoration: none;
}
/* Style for the copyright text to give it distinct color and spacing */
footer p {
    margin: 0;
    font-size: 0.9rem;
    color: #ccc;
}
@media (max-width: 768px) {
    h1 {
        font-size: 2.2rem;
    }
    nav ul {
        flex-direction: column;
        align-items: center;
    }
    nav li {
        margin: 0.3rem 0;
    }
    main {
        padding: 1.5rem;
    }
    .main-image {
        height: 240px;
    }
    table {
        font-size: 0.9rem;
    }
    th, td {
        padding: 0.8rem;
    }
}
