body {
    font-family: "Georgia", "Times New Roman", Times, serif;
    background-color: #FDFCFB;
    color: #121212;
    margin: 0;
    padding: 0;
}

img {
    border: .5px solid #555;
}

a {
    color: #121212;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

hr {margin:30px 0;}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    border-bottom: 3px double #121212;
    margin-bottom: 10px;
}

#date-widget, #weather-widget {
    font-size: 0.8rem; /* Smaller font size */
    color: #666;
    flex-shrink: 0; /* Prevent shrinking */
    display: flex;
    align-items: center;
    line-height: 1.7rem;
    margin-top: 0;
}

#weather-widget {
    margin-left: 10px;
    margin-bottom: 20px; /* Add space below the weather widget */
}

#weather-icon {
    border: none; /* Remove border from weather icon */
    width: 60px;
    height: 60px;
}

.header-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.header-center {
    text-align: center;
    flex-grow: 1; /* Allow it to take up space */
}

header h1 {
    font-family: 'UnifrakturMaguntia', 'Old English Text MT', 'Gothic', cursive, serif;
    font-size: 5rem;
    margin: 0;
    font-weight: normal;
    padding-bottom: 10px;
}

header p {
    font-size: 1rem;
    color: #666;
    margin-top: 0;
}

.nav-bar {
    text-align: center;
    padding: 10px 0;
    border-bottom: 1px solid #ccc;
    margin-bottom: 20px;
}

.nav-bar a {
    margin: 0 15px;
    text-decoration: none;
    color: #121212;
    font-size: 1.1rem;
    font-weight: bold;
    line-height: 2;
}

.nav-bar a:hover {
    text-decoration: underline;
}

.main-content {
    display: grid;
    grid-template-columns: 2fr 2fr 1fr;
    gap: 55px;
    padding-top: 20px;
}

.main-content .featured-article:first-child,
.featured-category-articles .featured-category-article:first-child {
    position: relative;
}

.main-content .featured-article:first-child::after,
.featured-category-articles .featured-category-article:first-child::after {
    content: '';
    position: absolute;
    top: 0;
    right: -27.5px; /* Half of the 55px gap */
    width: 1px;
    height: 100%;
    background-color: #eee;
}

.featured-article img {
    width: 100%;
    max-width: 100%;
    height: auto;
    margin-bottom: 10px;
}

.featured-article h2 {
    font-size: 2.5rem;
    margin-top: 0;
}

.featured-article h2 a {
    text-decoration: none;
}

.featured-article h2 a:hover {
    text-decoration: underline;
}

.featured-article p {
    font-size: 1.1rem;
    line-height: 1.6;
}

.read-more {
    display: block;
    margin-top: 10px;
    font-weight: bold;
    text-align: right;
}

.latest-articles {
    border-left: 1px solid #ccc;
    padding-left: 20px;
}

.latest-articles h3 {
    font-size: 1.5rem;
    margin-top: 0;
    border-bottom: 1px solid #121212;
    padding-bottom: 5px;
}

.latest-articles ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.latest-articles li {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
    overflow: auto; /* contain floated elements */
}

.latest-articles li:last-child {
    border-bottom: none;
}

.latest-articles a {
    text-decoration: none;
    font-weight: normal;
    overflow: auto; /* Clearfix */
}

.latest-articles-title {
    font-weight: bold; /* Apply bold only to the title */
    overflow-wrap: break-word;
}

.latest-articles-title, .category-column strong {
    line-height:1.2rem;
}

.latest-articles-text {
    margin-top: 5px; /* Add some space between title and timestamp */
}

.timestamp-placeholder {
    line-height: 1.2rem;
}

.latest-articles .thumbnail-small {
    width: 50px;
    height: 50px;
    object-fit: cover;
    float: right;
    margin: 0 0 5px 10px; /* top, right, bottom, left */
}

.latest-articles a:hover {
    text-decoration: underline;
}

.category-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #ccc;
}

.category-column h3 {
    font-size: 1.5rem;
    border-bottom: 1px solid #121212;
    padding-bottom: 5px;
}

.category-column ul {
    list-style: none;
    padding: 0;
}

.category-column li {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.category-column li:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.category-column li img.thumbnail {
    width: 100%;
    max-width: 100%;
    height: 150px;
    object-fit: cover;
    margin-bottom: 10px;
}

.category-column a {
    text-decoration: none;
}

.category-column {
    border-right: 1px solid #eee;
    padding-right: 20px;
}

.category-column:last-child {
    border-right: none;
    padding-right: 0;
}

.article-snippet {
    font-size: 0.9rem;
    color: #555;
    line-height: 1.5;
}

.article-list {
    list-style: none;
    padding: 0;
}

.article-list li {
    margin-bottom: 30px;
    border-bottom: 1px solid #eee;
    padding-bottom: 20px;
    overflow: auto; /* Clearfix for floated children */
}

.article-list img.thumbnail-large {
    width: 300px; /* Adjust width as needed */
    height: auto;
    margin-bottom: 10px;
    float: left;
    margin-right: 20px;
}

.article-list .article-details {
    overflow: hidden; /* Takes up remaining space */
}


.article-list h2 {
    margin: 0 0 10px 0;
}

.article-list a {
    text-decoration: none;
    font-size: 1.8rem;
}

.article-list a:hover {
    text-decoration: underline;
}

.article-list a:hover {
    text-decoration: underline;
}

.article-list-condensed {
    list-style: none;
    padding: 0;
    column-count: 3;
    column-gap: 20px;
}

.article-list-condensed li {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
    -webkit-column-break-inside: avoid;
    page-break-inside: avoid;
    break-inside: avoid;
    overflow: auto; /* contain floated elements */
}

.article-list-condensed a {
    text-decoration: none;
}

.article-list-condensed a:hover {
    text-decoration: underline;
}

.article-list-condensed img.thumbnail-small {
    width: 80px;
    height: 80px;
    object-fit: cover;
    margin-right: 15px;
    float: left;
    margin-bottom: 5px;
}

.article-list-condensed h4 {
    margin: 0;
    font-size: 1rem;
    line-height: 1.2rem;
    overflow-wrap: break-word;
}

.condensed-info {
    overflow: hidden;
}

.condensed-info p {
    margin-bottom: 0;
}

.article-content {
    font-size: 1.2rem;
    line-height: 1.7;
    text-align: justify;
}

.article-content .article-image-container {
    width: 48%; /* Adjusted width */
    max-width: 500px;
    margin-bottom: 15px;
}

.article-content .article-image-container.article-image-right {
    float: right;
    margin-left: 3%; /* Use percentage for responsive spacing */
    margin-right: 0;
}

.article-content .article-image-container.article-image-left {
    float: left;
    margin-right: 3%; /* Use percentage for responsive spacing */
    margin-left: 0;
}

.article-content .article-image {
    width: 100%;
    height: auto;
}

.article-content figcaption {
    font-size: 0.7em;
    color: #888;
    text-align: center;
    margin-top: 0px;
}

.article-content p {
    overflow-wrap: break-word;
}

.post-category {
    float: left;
}

.post-category a {
    text-decoration: underline;
}

.post-bottom-nav {
    margin-top: 40px;
    float: right;
}

.back-link {
    display: inline-block;
    margin-top: 20px;
    text-decoration: none;
    font-weight: bold;
}

.back-link:hover {
    text-decoration: underline;
}

footer {
    text-align: center;
    padding: 20px 0;
    margin-top: 40px;
    border-top: 1px solid #ccc;
    font-size: 0.9rem;
    color: #666;
    clear: both;
}

.footer-nav {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 20px;
}

.footer-row {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    padding: 10px 0;
}

.footer-row a {
    color: #555;
    text-decoration: none;
    padding: 0 10px;
    position: relative;
    font-size: 0.9rem;
}

.footer-row a:not(:last-child)::after {
    content: '|';
    position: absolute;
    right: -2px;
    color: #ccc;
}

.footer-row a:hover {
    text-decoration: underline;
    color: #121212;
}

footer p {
    font-size: 0.8rem;
    color: #999;
}

/* Featured Category Articles */
.featured-category-articles {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 55px;
}

.featured-category-article .thumbnail-large {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

/* Shared Page Title Styles */
.page-title {
    font-size: 3rem;
    margin-bottom: 20px;
    border-bottom: 1px solid #ccc;
    padding-bottom: 30px;
}

.nav-bar a.current {
        text-decoration: underline;
   }

.timestamp-placeholder {
    text-align: left;
    font-size: 0.8rem;
    color: #999;
}

#disqus_thread {
    margin-top: 90px;
}

.author-page-header {
    overflow: auto; /* Contain the float */
    margin: 30px 0;
}

.author-page-header h1 {
    margin-top: -5px;
}

.author-page-image {
    float: left;
    width: 150px;
    height: 150px;
    object-fit: cover;
    margin-right: 20px;
    margin-bottom: 10px;
}

.author-page-details {
    overflow: hidden; /* Prevent text from wrapping under the image */
}

/* Post author styles */
.post-meta .author-info {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
}
.post-meta .author-image-small {
  width: 80px;
  height: 80px;
  border-radius: 4px;
  margin-right: 20px;
  object-fit: cover;
}
.post-meta .author-details {
  display: flex;
  flex-direction: column;
}
.post-meta .author-name {
  font-weight: bold;
  text-decoration: none;
  color: inherit;
  font-size: 1.4em;
  line-height: 2em;
  margin-top: -15px;
}
.post-meta .post-date {
  font-size: 1em;
  color: #666;
}

/* Author/Team Page Grid */
.author-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
  gap: 40px;
  margin-top: 40px;
}
.author-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  border: 1px solid #eee;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}
.author-card img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 15px;
}
.author-card h2 {
  margin: 0;
  font-size: 1.5rem;
}
.author-card .author-bio {
  font-size: 1rem;
  color: #555;
  line-height: 1.5;
  margin-top: 10px;
}
.author-card a {
  text-decoration: none;
  color: inherit;
}
.author-card a:hover {
  text-decoration: underline;
}
.view-articles-link {
  margin-top: 15px;
  font-weight: bold;
}

/* Search Page Specific Styles */
.search-page-container .article-list h2 {
    font-size: 1.6rem; /* Adjusted title size */
}

.search-page-container .article-list a {
    font-size: 1rem; /* Resetting the link font size */
}

.search-page-container .timestamp-placeholder {
    font-size: 0.9rem; /* Adjusting metadata font size */
    color: #666;
}

.search-page-container .timestamp-placeholder a {
    color: inherit; /* Inherit color from parent */
}

/* Header Search Form */
.search-container form {
    display: flex;
    align-items: center;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.search-container input[type="text"] {
    border: none;
    background: transparent;
    outline: none;
    padding: 5px 10px;
    font-size: 0.9rem;
    flex-grow: 1;
}

.search-container button {
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 1.2rem;
    padding: 0 5px;
    color: #555;
}

.search-container form:focus-within {
    border-color: #121212;
}

/* Search Page Form */
.search-form {
    display: flex;
    margin-bottom: 30px;
}
#search-input {
    flex-grow: 1;
    padding: 10px;
    font-size: 1.2rem;
    border: 1px solid #ccc;
    border-radius: 4px 0 0 4px;
}
.search-form button {
    padding: 10px 20px;
    font-size: 1.2rem;
    border: 1px solid #ccc;
    border-left: none;
    background-color: #f0f0f0;
    cursor: pointer;
    border-radius: 0 4px 4px 0;
}


.post-header {
    display: flex;
    justify-content: space-between;
    align-items: center; /* Align to top */
    border-bottom: 1px solid #ccc;
    padding-bottom: 20px;
    margin-bottom: 20px;
}

.post-header .page-title {
    margin: 0 20px 0 0;
    border-bottom: none;
    padding-bottom: 0;
    border-right: .5px solid #ddd;
}

.post-header .post-meta {
    flex-shrink: 0;
    margin-left: 20px;
}

/* Remove bottom margin from author info only in the post header */
.post-header .author-info {
    margin-bottom: 0;
}

#email {
  font-family: "Comic Sans MS", "Comic Sans", cursive, sans-serif;
  font-size: 3em;
  white-space: pre-wrap;
}

#email a {
  text-decoration: none;
}