/* Shared styles for all templates */
@import url('https://fonts.googleapis.com/css2?family=Ubuntu:wght@400;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Raleway:wght@400;700&display=swap');


body {
    font-family: "Ubuntu", sans-serif;
    margin: 0;
    padding: 0;
    background-color: #292929; /* Darker grey */
    color: #1a1a1a; /* Very dark grey for text */
}

.container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 20px; /* Add some padding for smaller screens */
	background-color: #eee;
}

header {
    text-align: center;
    padding: 20px;
    background-color: #fff; /* Very dark grey */
    color: #1a1a1a;
}

footer {
    text-align: center;
    padding: 10px;
    background-color: #1a1a1a; /* Very dark grey */
    color: #fff;
}

h1, h2 {
    text-transform: uppercase;
    font-weight: bold;
    font-family: "Ubuntu", sans-serif; /* Nice font for headings */
}

h1 {
	letter-spacing: 2px;
}

h2 {
	font-size: 0.9em;
	margin: 20px;
}

a.quote-link {
    text-decoration: none; /* Remove underline */
    color: inherit; /* Inherit the color from the parent element */
    display: block; /* Ensure the entire quote-box is clickable */
}

a.quote-link:hover {
    text-decoration: none; /* Keep underline removed on hover */
    color: inherit; /* Maintain the color on hover */
}

p.scene {
	font-size: 0.9em;
	font-style: italic;
}

/* Card Page Styles */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); /* Increase min-width for cards */
	grid-auto-rows: auto;
    gap: 30px; /* Add more space between cards */
    padding: 20px;
    background-color: #EEEEEE; /* Off-white background */
}

.card {
	position: relative;
    background-color: #FFFFFF; /* White background for cards */
    border: none;
	font-family: Raleway;
    padding: 20px;
    text-align: center;
    transition: transform 0.2s, box-shadow 0.2s; /* Add smooth transition */
	height: auto;
	box-sizing: border-box;
	align-self: start;
}

.card-highlight {
    background-color: #fff; /* White background for cards */
    border: none;
    padding: 20px;
    text-align: center;
    transition: transform 0.2s, box-shadow 0.2s; /* Add smooth transition */
	height: auto;
	box-sizing: border-box;
	align-self: start;
	border-left: 5px solid #ddd;
	font-family: Raleway;
}

.card:hover {
    transform: translateY(-5px); /* Subtle lift on hover */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2); /* Add shadow on hover */
	transition: all 0.3s ease-in-out;
}
.card-highlight:hover {
    transform: translateY(-5px); /* Subtle lift on hover */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2); /* Add shadow on hover */
	transition: all 0.3s ease-in-out;
}

.card h2 {
    color: #1a1a1a; /* Dark grey for card headings */
}

.card-image {
    width: 100%;
    height: auto;
    border-radius: 5px 5px 0 0; /* Rounded corners for the top of the card */
    object-fit: cover;
    margin-bottom: 10px;
}
/* For full-row banner card */
.banner-card {
    grid-column: 1 / -1; /* Span from the first to the last column */
    background-color: #fff; /* Match other card styles */
    border: none;
    padding: 20px;
    text-align: center;
    font-family: Raleway, sans-serif;
    transition: transform 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
	min-width: 500px; /* Prevent shrinking below this size */
	margin: auto;
}

.banner-card:hover {
    transform: translateY(-5px); /* Add hover effect */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}


/* Article Page Styles */
.article-header {
    text-align: center;
    padding: 20px; /* Shorter banner */
    background-color: #fff; /* White banner */
    color: #1a1a1a; /* Very dark grey text */
    width: 100%;
    box-sizing: border-box; /* Ensure padding doesn't affect width */
}

.banner {
    width: 100%;
    max-height: 200px; /* Shorter height */
    object-fit: cover;
    margin-bottom: 10px;
}

.article-nav {
    text-align: center;
    margin: 20px 0;
    background-color: #292929; /* Darker grey */
    color: #f4f4f4;
    padding: 10px;
    box-sizing: border-box;
    width: 100%;
}

.article-nav a {
    margin: 0 10px;
    color: #f4f4f4; /* White or off-white */
    text-decoration: none;
	font-size: 0.8em;
	text-transform: uppercase;
}

.article-nav a:hover {
    text-decoration: underline;
}

.article-body {
	position: relative;
    max-width: 1200px; /* Matches container width */
    margin: 20px auto;
    padding: 20px;
    background-color: #fff; /* White body */
    border-radius: 0; /* Straight modern edges */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    color: #1a1a1a; /* Dark grey for text */
    min-height: calc(100vh - 160px); /* Stretch body to bottom of screen, accounting for header/footer */
    box-sizing: border-box; /* Ensure padding doesn't affect width */
	font-family: Raleway;
	line-height: 1.5em;
}

.article-body section {
    text-align: center; /* Center align sections */
    margin-bottom: 20px;
}

.article-body section h2 {
    text-align: center; /* Center headings */
    color: #1a1a1a; /* Ensure visibility of headings */
}

/* Quotes Page Styles */
.quotes {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 20px;
    background-color: #eee;
}

.quote {
    max-width: 600px;
    padding: 20px;
    background-color: #fff;
    border-radius: 0;
    position: relative;
    color: #3a3a3a; /* Slightly lighter grey for quote text */
    font-size: 0.9em; /* Larger text for quotes */
	font-family: Raleway;
	letter-spacing: 1px;
	transition: all 0.3s ease-in-out;
}

.quote.left {
    margin-left: 0; /* Align left */
    margin-right: auto;
    border-left: 5px solid #292929;
	min-width: 350px;
}

.quote.right {
    margin-right: 0; /* Align right */
    margin-left: auto;
    border-right: 5px solid #292929;
	min-width: 350px;
}

blockquote {
    margin: 10px;
}

.quote footer {
    background: none !important; /* Remove any background inherited globally */
    color: #1a1a1a; /* Dark grey for text */
    font-weight: bold; /* Make the attribution bold */
	letter-spacing: 1px;
    text-transform: uppercase; /* Capitalize text */
    font-size: 0.6em; /* Slightly smaller than the quote text */
    position: absolute;
    bottom: 7px; /* Position at the bottom-right corner */
    margin: 0;
    padding: 0;
}

/* For right-aligned quotes */
.quote.right footer {
    right: 15px; /* Align to the right */
    left: auto; /* Prevent interference with left alignment */
}

/* For left-aligned quotes */
.quote.left footer {
    left: 15px; /* Align to the left */
    right: auto; /* Prevent interference with right alignment */
}

.quote:hover {
    transform: translateY(-5px); /* Subtle lift on hover */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2); /* Add shadow on hover */
	transition: all 0.3s ease-in-out;
}
.quote-image {
    max-width: 100px; /* Set a max-width for the images */
    max-height: 100px; /* Set a max-height to ensure square images */
    width: auto; /* Maintain aspect ratio */
    height: auto; /* Maintain aspect ratio */
    border-radius: 5px; /* Add rounded corners for aesthetics */
    margin: 0 10px; /* Space between the image and the quote text */
    flex-shrink: 0; /* Prevent shrinking of the image */
}

.quote-image-left {
    order: -1; /* Move the image to the start of the flex container */
    margin-right: 10px; /* Add space between the image and the quote */
    margin-left: 0;
}

.quote-image-right {
    order: 1; /* Ensure the image stays at the end of the flex container */
    margin-left: 10px; /* Add space between the image and the quote */
    margin-right: 0;
}

.quote.with-image {
    display: flex;
    align-items: center;
    gap: 10px;
}
pre {
    white-space: pre-wrap; /* Allows text to wrap */
    word-wrap: break-word; /* Break long words if necessary */
    overflow-wrap: break-word; /* Ensures proper wrapping for all browsers */
    overflow-x: auto; /* Adds horizontal scrolling if the text exceeds the container width */
	font-family: monospace; /* Ensures monospace font for proper alignment */
    max-width: 100%; /* Prevents breaking out of its container */
    box-sizing: border-box; /* Includes padding in width calculations */
}
.tag {
    position: absolute;
    top: 0;
    left: 0;
    color: 2b2b2b;
    font-family: "Courier New", monospace; /* Monospaced font */
    font-size: 0.7em; /* Small font size */
	letter-spacing: 0.1em;
	font-weight: bold;
	text-transform: uppercase;
    padding: 4px 10px; /* Padding for better readability */
    border-radius: 3px; /* Rounded corners */
    z-index: 10; /* Ensure it's above other elements */
    pointer-events: none; /* Prevents interference with user interaction */
    margin: 0; /* Remove default paragraph margins */
}
/* Timeline Container */
.timeline {
    position: relative;
    max-width: 1200px;
    margin: 40px auto;
    padding: 20px;
}

/* Central Column */
.timeline::before {
    content: '';
    position: absolute;
    width: 16px;
    background-color: #292929; /* Dark grey central column */
    top: 0;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
}

/* Dots on the Central Column */
.timeline-dot {
    position: absolute;
    width: 16px;
    height: 16px;
    background-color: #ff5555; /* Red dots */
    border: 4px solid #fff; /* White border */
    border-radius: 50%; /* Make the dots circular */
    left: 50%; /* Align to the center of the column */
    transform: translateX(-50%); /* Center horizontally */
    z-index: 2; /* Ensure dots appear above the column */
}

/* Individual Node Container */
.timeline-node {
    position: relative;
    width: 50%;
    padding: 20px 0;
}

/* Left-Side Nodes */
.timeline-node.left {
    left: 0;
    text-align: right;
}

/* Right-Side Nodes */
.timeline-node.right {
    left: 50%;
    text-align: left;
}

/* Connecting Lines from Column to Nodes */
.timeline-node .timeline-line {
    position: absolute;
    height: 4px;
    background-color: #ff5555; /* Red connecting lines */
    top: 50%; /* Center vertically relative to the node */
    transform: translateY(-50%);
    z-index: 1;
}

/* Lines for Left Nodes */
.timeline-node.left .timeline-line {
    width: calc(50% - 24px); /* Adjust length dynamically */
    right: 8px; /* End at the border of the node */
}

/* Lines for Right Nodes */
.timeline-node.right .timeline-line {
    width: calc(50% - 24px); /* Adjust length dynamically */
    left: 8px; /* End at the border of the node */
}

/* Node Content Styling */
.timeline-node .timeline-content {
    background-color: #ffffff; /* White background for nodes */
    padding: 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1); /* Subtle shadow for depth */
    font-family: "Raleway", sans-serif; /* Clean font for content */
    position: relative;
    z-index: 2;
}

/* Left Node Borders */
.timeline-node.left .timeline-content {
    margin-right: 60px; /* Space from the column */
    border-right: 4px solid #ff5555; /* Red border on the right */
}

/* Right Node Borders */
.timeline-node.right .timeline-content {
    margin-left: 60px; /* Space from the column */
    border-left: 4px solid #ff5555; /* Red border on the left */
}

/* Node Headings */
.timeline-node .timeline-content h2 {
    color: #292929; /* Dark grey for headings */
    font-size: 1.2em;
    margin-top: 0;
}

/* Node Paragraph Text */
.timeline-node .timeline-content p {
    font-size: 1em;
    line-height: 1.6;
}

/* Responsive Design for Smaller Screens */
@media (max-width: 768px) {
    .timeline-node {
        width: 100%;
        left: 0;
        text-align: center;
    }
    .timeline-node.left .timeline-content,
    .timeline-node.right .timeline-content {
        margin: 0 auto;
        text-align: center;
        border-left: none;
        border-right: none;
    }
    .timeline-node .timeline-line {
        display: none; /* Hide lines for mobile */
    }
    .timeline-dot {
        left: 50%; /* Keep dots centered */
        transform: translateX(-50%);
    }
}




