/* --- Global Variables (Color Palette & Functional) --- */
:root {
    --ocean-dark: #2F5C6A;          /* Deep, muted blue/teal */
    --ocean-mid: #5E8F9B;           /* Mid-tone blue-green */
    --ocean-light: #A0C5CC;         /* Light, faded blue-green */
    --ocean-foam: #E1E9EC;          /* Greenish grey / Off-white */
    --text-main: #1A3B45;           /* Very dark, subtle blue for primary text */
    --nav-accent: #224A53;          /* Slightly darker blue/teal for nav background */
    --coral-accent: #FFA07A;        /* Earthy, coral orangey, lighter accent color */
    --bright-coral: #F55027;		/* brighter coral color */
    --ocean-bright-light: #C0E8F0;  /* A brighter version of light ocean tones (for H2 and nav text) */
    --grey: #CCCCCC;                /* Light grey */
    --pale_grey :#EEEEEE;           /* Very pale grey */
    --white :#FFFFFF;               /* Pure white */
    --ocean-water: #83A59C;         /* Pale grayish green for visited links */
	
    /* Functional Colors */
    --bg-light-transparent: rgba(255, 255, 255, 0.9); /* Semi-opaque white for content boxes */
    --border-light: #DDD;
}


/* --- Base HTML Elements & Global Styles --- */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.6;
    color: var(--text-main); /* Default text color for body */
    background-color: var(--ocean-foam); /* Light background for base */
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Ensure all main headings have consistent primary text color by default */
h1, h2, h3, h4, h5, h6 {
    color: var(--text-main);
}

/* General link styling for content areas */
a {
    color: var(--ocean-dark);
    text-decoration: underline;
    transition: color 0.3s ease;
}
a:hover {
    color: var(--ocean-mid);
    text-decoration: underline;
}
a:visited {
    color: var(--ocean-dark);
}
/* General paragraph styling to left align everything by default */
p {
    text-align: left;
}


/* --- Structural Wrappers & Layout --- */
.main-content-wrapper {
    background-image: url('/images/tiling_waves5.png'); /* Decorative wave background */
    background-repeat: repeat;
    background-size: 30%; /* Tiled at 30% */
    padding: 2rem 0;
    flex-grow: 1; /* Allows it to take up available space */
    display: flex;
    flex-direction: column;
    justify-content: center; /* Vertically center content */
    align-items: center; /* Horizontally center content */
    text-align: center; /* This is the inherited centering for content */
}

.container.py-5 { /* Common styling for main content containers on secondary pages */
    background-color: var(--bg-light-transparent);
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    padding: 3rem;
}


/* --- Header Styles --- */
.site-header {
    background-color: var(--ocean-dark);
    background-image: url('/images/tiling_waves5.png');
    background-size: 30%;
    background-position: center center;
    background-repeat: repeat;
    min-height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ocean-foam);
    padding: 1.5rem 0;
    text-align: center;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
}

/* Overlay for better text readability over header background image */
.site-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.3);
    z-index: 1;
}

/* Base style for H1 and H2 text within header (bring above overlay) */
.site-header h1,
.site-header h2 {
    position: relative;
    z-index: 2;
}

/* H1 specific styling */
.site-header h1 {
    margin-bottom: 0.2rem;
    font-size: 3em;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--ocean-foam);
    text-shadow:
        -2px -2px 0 var(--ocean-dark),
        2px -2px 0 var(--ocean-dark),
        -2px 2px 0 var(--ocean-dark),
        2px 2px 0 var(--ocean-dark),
        4px 4px 6px rgba(0, 0, 0, 0.4);
}

/* H1 Link specific styling */
.site-header h1 a {
    text-decoration: none;
    color: var(--ocean-foam);
    transition: color 0.3s ease;
}
.site-header h1 a:hover,
.site-header h1 a:focus {
    color: var(--coral-accent) !important;
}
.site-header h1 a:visited {
    color: var(--ocean-foam);
}

/* H2 specific styling */
.site-header h2 {
    font-size: 1.3em;
    margin-top: 0;
    color: var(--ocean-bright-light);
    text-shadow:
        1px 1px 0 var(--ocean-dark),
        -1px -1px 0 var(--ocean-dark),
        1px -1px 0 var(--ocean-dark),
        -1px 1px 0 var(--ocean-dark),
        2px 2px 4px rgba(0, 0, 0, 0.4);
}


/* --- Navigation Styles --- */
.main-nav {
    background-color: var(--nav-accent);
    padding: 15px 0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    position: sticky;
    top: 0;
    z-index: 1020;
}

.main-nav .nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 25px;
}

.main-nav .nav-list li a {
    color: var(--ocean-bright-light);
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    padding: 8px 15px;
    border-radius: 5px;
    transition: background-color 0.3s ease, color 0.3s ease;
    white-space: nowrap;
}
.main-nav .nav-list li a:visited {
    color: var(--ocean-mid) !important; /* Re-enabled for testing */
    text-decoration: none;
}
.main-nav .nav-list li a:hover,
.main-nav .nav-list li a:focus {
    background-color: var(--ocean-dark);
    color: var(--coral-accent);
}


/* --- Content Section Styles (General for Secondary Pages) --- */
.section-title {
    color: var(--text-main);
    font-size: 2.8em;
    margin-bottom: 2rem;
    position: relative;
    padding-bottom: 0.8rem;
    text-align: center;
}
.section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: 0;
    width: 120px;
    height: 4px;
    background-color: var(--ocean-mid);
    border-radius: 2px;
}

.content-section {
    background-color: var(--white);
    padding: 2.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--border-light);
    margin-bottom: 2rem;
}
.content-section h3 {
    color: var(--ocean-dark);
    font-size: 2.2em;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid var(--ocean-mid);
    padding-bottom: 0.5rem;
}
.content-section p {
    font-size: 1.05em;
    margin-bottom: 1em;
    text-align: left;
}

/* Styles for unordered lists within content sections */
.content-section ul {
    list-style: disc;
    list-style-position: outside;
    padding-left: 1.5em;
    margin-bottom: 1em;
    text-align: left;
}
.content-section ul li {
    margin-bottom: 0.5em;
    line-height: 1.5;
}
.content-section ul li:last-child {
    margin-bottom: 0;
}


/* --- Button Styles (Bootstrap Overrides) --- */
.btn-primary {
    background-color: var(--ocean-dark);
    border-color: var(--ocean-dark);
    color: var(--ocean-foam);
    transition: all 0.3s ease;
}
.btn-primary:hover {
    background-color: var(--ocean-dark);
    border-color: var(--ocean-dark);
    color: var(--coral-accent);
}

.btn-outline-secondary {
    color: var(--ocean-dark);
    border-color: var(--ocean-dark);
    background-color: transparent;
    transition: all 0.3s ease;
}
.btn-outline-secondary:hover {
    background-color: var(--coral-accent);
    color: var(--text-main);
    border-color: var(--coral-accent);
}


/* --- Footer Styles --- */
.site-footer {
    background-color: var(--text-main);
    color: var(--ocean-light);
    text-align: center;
    padding: 1.5rem 0;
    margin-top: auto;
    box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.2);
}


/* --- Page-Specific & Component Styles --- */

/* Landing Page: Central Content Box */
.landing-content-box {
    background-color: var(--bg-light-transparent);
    padding: 3rem;
    margin: 1rem auto;
    max-width: 900px;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    text-align: left;
}

/* Contact Form Specific Styles */
.contact-form-container {
    max-width: 700px;
    margin: 2rem auto;
    padding: 3rem;
    background-color: var(--bg-light-transparent);
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    text-align: left;
}
.contact-form-container h2 {
    color: var(--text-main);
    font-size: 2.2em;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid var(--ocean-mid);
    padding-bottom: 0.8rem;
}
.honeypot-field {
    position: absolute;
    left: -9999px;
    opacity: 0;
    height: 0;
    overflow: hidden;
    pointer-events: none;
}

/* Thank You Page Specific Styles */
.thankyou-container {
    max-width: 800px;
    margin: 4rem auto;
    padding: 3rem;
    background-color: var(--bg-light-transparent);
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    text-align: center;
}
.thankyou-container h2 {
    color: var(--text-main);
    font-size: 2.5em;
    margin-bottom: 1.5rem;
}
.thankyou-container p {
    font-size: 1.1em;
    color: var(--text-main);
    margin-bottom: 1.5rem;
}
.thankyou-container .btn {
    margin-top: 1rem;
}

/* Correspondence Page (Year List & Yearly Archive Tables) */
.year-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}
.year-list li a {
    display: block;
    padding: 15px 25px;
    background-color: var(--ocean-dark);
    color: var(--ocean-foam);
    text-decoration: none;
    font-size: 1.5em;
    font-weight: bold;
    border-radius: 8px;
    transition: all 0.3s ease;
    min-width: 120px;
    text-align: center;
}
.year-list li a:hover {
    background-color: var(--nav-accent);
    color: var(--coral-accent);
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.yearly-sub-nav {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-bottom: 2rem;
    background-color: var(--pale_grey);
    padding: 10px;
    border-radius: 5px;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.1);
}
.yearly-sub-nav li a {
    padding: 5px 10px;
    background-color: var(--ocean-light);
    color: var(--text-main);
    text-decoration: none;
    font-weight: bold;
    border-radius: 3px;
    transition: all 0.2s ease;
    font-size: 0.9em;
}
.yearly-sub-nav li a:hover,
.yearly-sub-nav li a.active {
    background-color: var(--ocean-mid);
    color: var(--ocean-foam);
}

.table-responsive-container {
    margin-top: 2rem;
    padding: 1.5rem;
    background-color: var(--bg-light-transparent);
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.table th {
    color: var(--ocean-dark);
    background-color: var(--pale_grey);
    vertical-align: middle;
}

.table td {
    vertical-align: middle;
    color: var(--text-main);
}

.table-striped tbody tr:nth-of-type(odd) {
    background-color: var(--ocean-foam);
}

/* DOJ Related Table Row Highlight */
.doj-related { /* Note: This class is defined but not currently applied in HTML as per user's request to drop it */
    background-color: var(--ocean-light) !important;
    border-left: 8px solid var(--ocean-dark);
}

/* Pet Abuse Page Specific Styles */
.pet-entry {
    display: flex;
    align-items: flex-start;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px dashed var(--pale_grey);
}
.pet-entry:last-child {
    border-bottom: none;
    padding-bottom: 0;
}
.pet-entry.reverse {
    flex-direction: row-reverse;
}
.pet-entry .pet-photo-container {
    flex-shrink: 0;
    width: 150px;
    height: 150px;
    margin-right: 2rem;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--ocean-light);
    background-color: var(--pale_grey);
    display: flex;
    align-items: center;
    justify-content: center;
}
.pet-entry.reverse .pet-photo-container {
    margin-right: 0;
    margin-left: 2rem;
}
.pet-entry .pet-photo-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.pet-entry .pet-text {
    flex-grow: 1;
}
.pet-entry .pet-text h4 {
    margin-top: 0;
    color: var(--ocean-dark);
}
.pet-entry .pet-text p {
    font-size: 1.0em;
}

@media (max-width: 767.98px) {
    .pet-entry, .pet-entry.reverse {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .pet-entry .pet-photo-container, .pet-entry.reverse .pet-photo-container {
        margin: 0 0 1rem 0;
    }
}

/* Research Page Specific Styles */
.research-point {
    margin-bottom: 1.5rem;
    padding-left: 1rem;
    border-left: 3px solid var(--ocean-light);
}
.research-point h4 {
    color: var(--ocean-dark);
    margin-bottom: 0.5rem;
}

/* Litigation Page Specific Styles */
.lawsuit-card {
    margin-bottom: 2rem;
    border-left: 4px solid var(--ocean-mid);
}
.lawsuit-card .card-header {
    background-color: var(--pale_grey);
    color: var(--ocean-dark);
    font-weight: bold;
}
.lawsuit-card .card-body h5 {
    color: var(--text-main);
    font-size: 1.5em;
    margin-bottom: 0.5rem;
}
.lawsuit-card .card-subtitle {
    font-size: 0.9em;
    margin-bottom: 1rem;
}

/* Social Media Page Specific Styles */
.social-link-group {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}
.social-link-group a {
    font-size: 1.2em;
    font-weight: bold;
    color: var(--ocean-dark);
    text-decoration: none;
    padding: 10px 15px;
    border: 2px solid var(--ocean-mid);
    border-radius: 5px;
    transition: all 0.3s ease;
}
.social-link-group a:hover {
    background-color: var(--ocean-mid);
    color: var(--ocean-foam);
    border-color: var(--ocean-dark);
}
.embed-container {
    margin-top: 2rem;
    padding: 1.5rem;
    background-color: var(--pale_grey);
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    text-align: center;
}

/* Blockquote Styles */
blockquote {
    margin-left: 2rem;
    margin-right: 2rem;
    padding: 1.5rem;
    border-left: 5px solid var(--ocean-mid);
    border-right: 1px solid var(--pale_grey);
    background-color: var(--pale_grey);
    color: var(--text-main);
    font-style: italic;
    line-height: 1.5;
    text-align: left;
}
blockquote p:last-child {
    margin-bottom: 0;
}

/* NEW: Styles for Police, FBI, & DOJ timeline (from police_fbi_doj/index.php) */
.simple-timeline-list {
    list-style: none;
    padding-left: 0;
    margin: 0;
}
.simple-timeline-list li {
    list-style-type: none;
    margin-bottom: 1.5em;
    text-align: left;
}
.simple-timeline-list li:last-child {
    margin-bottom: 0;
}
.simple-timeline-list li .timeline-date {
    font-weight: bold;
    color: var(--ocean-dark);
    display: block;
    margin-bottom: 0.2em;
    font-size: 1.1em;
}
.simple-timeline-list li p {
    margin-bottom: 0;
    font-size: 1.0em;
}
/* Style for the "Note" event */
.simple-timeline-list li.note-entry {
    font-style: italic;
    color: var(--grey); /* Using var from palette */
    margin-top: 2.5em;
    margin-bottom: 2.5em;
    border-left: 3px solid var(--ocean-light);
    padding-left: 10px;
}

/* Style for police-related timeline items */
.simple-timeline-list li.police-related {
    background-color: #D3E3E9; /* Background color for police-related items */
    padding: 1rem;
    border-radius: 5px;
}


/* --- Responsive Adjustments (Global Media Queries) --- */
@media (max-width: 991.98px) { /* Medium devices and below */
    .site-header h1 {
        font-size: 2.5em;
    }
    .site-header p {
        font-size: 1.3em;
    }
    .main-nav .nav-list {
        gap: 15px;
    }
    .landing-content-box {
        padding: 2rem;
        margin: 1.5rem auto;
    }
}

@media (max-width: 767.98px) { /* Small devices and below */
    .site-header h1 {
        font-size: 2em;
    }
    .site-header p {
        font-size: 1em;
    }
    .main-nav .nav-list {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }
}