/*
Theme Name: TPL Blog Template
Description: A clean, responsive blog template based on Toronto Public Library design, optimized for WordPress theme development.
Version: 1.0
Author: TPL Blog Team
Text Domain: tpl-blog
*/

/* ==========================================================================
   TPL Blog Template - Clean CSS for WordPress Integration
   Based on Toronto Public Library Blog Design
   ========================================================================== */

/* ==========================================================================
   CSS Reset & Base Styles
   ========================================================================== */

* {
    box-sizing: border-box;
}

html {
    font-family: "Roboto", -apple-system, BlinkMacSystemFont, "Segoe UI", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", Arial, sans-serif;
    -ms-text-size-adjust: 100%;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    font-size: 16px;
    line-height: 1.6;
    color: #0A0A0A;
    background-color: #fff;
    font-family: "Roboto", -apple-system, BlinkMacSystemFont, "Segoe UI", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", Arial, sans-serif;
}

/* ==========================================================================
   Typography
   ========================================================================== */

h1 {
    font-size: 44px;
    font-family: "Roboto", -apple-system, BlinkMacSystemFont, "Segoe UI", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", Arial, sans-serif;
    font-weight: 700;
    line-height: 54px;
    letter-spacing: 0px;
    margin: 0.67em 0 0em 0;
    color: #0A0A0A;
}

h1 a {
    font-size: 44px;
    font-family: "Roboto", -apple-system, BlinkMacSystemFont, "Segoe UI", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", Arial, sans-serif;
    font-weight: 700;
    line-height: 54px;
    letter-spacing: 0px;
    color: #005FC0;
}

h1 a:hover {
    color: #003D7C;
}

h2 {
    font-size: 36px;
    font-family: "Roboto", -apple-system, BlinkMacSystemFont, "Segoe UI", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", Arial, sans-serif;
    font-weight: 700;
    line-height: 43px;
    letter-spacing: 0px;
    color: #0A0A0A;
}

h2 a {
    font-size: 36px;
    font-family: "Roboto", -apple-system, BlinkMacSystemFont, "Segoe UI", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", Arial, sans-serif;
    font-weight: 700;
    line-height: 43px;
    letter-spacing: 0px;
    color: #005FC0;
}

h2 a:hover {
    color: #003D7C;
}

/* Handle cases where link wraps the heading */
a h2 {
    color: #005FC0;
}

a:hover h2 {
    color: #003D7C;
}

h3 {
    font-size: 28px;
    font-family: "Roboto", -apple-system, BlinkMacSystemFont, "Segoe UI", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", Arial, sans-serif;
    font-weight: 700;
    line-height: 30px;
    letter-spacing: 0px;
    margin-bottom: 0.5em;
    color: #0A0A0A;
}

h3 a {
    font-size: 28px;
    font-family: "Roboto", -apple-system, BlinkMacSystemFont, "Segoe UI", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", Arial, sans-serif;
    font-weight: 700;
    line-height: 30px;
    letter-spacing: 0px;
    color: #005FC0;
}

h3 a:hover {
    color: #003D7C;
}

/* Subtitle - Type Scale specification */
.subtitle {
    font-size: 22px;
    font-family: "Roboto", -apple-system, BlinkMacSystemFont, "Segoe UI", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", Arial, sans-serif;
    font-weight: 400;
    line-height: 26px;
    letter-spacing: 0px;
    color: #0A0A0A;
    margin-bottom: 0em;
}

h4, h5 {
    font-size: 20px;
    font-family: "Roboto", -apple-system, BlinkMacSystemFont, "Segoe UI", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", Arial, sans-serif;
    font-weight: 700;
    line-height: 24px;
    letter-spacing: 0px;
    color: #0A0A0A;
    margin-bottom: 0.5em;
}

h4 a, h5 a {
    font-size: 20px;
    font-family: "Roboto", -apple-system, BlinkMacSystemFont, "Segoe UI", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", Arial, sans-serif;
    font-weight: 700;
    line-height: 24px;
    letter-spacing: 0px;
    color: #005FC0;
}

h4 a:hover, h5 a:hover {
    color: #003D7C;
}

h6 {
    font-size: 16px;
    font-family: "Roboto", -apple-system, BlinkMacSystemFont, "Segoe UI", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", Arial, sans-serif;
    font-weight: 400;
    line-height: 24px;
    letter-spacing: 0px;
    color: #0A0A0A;
    margin: 0.5em 0 0 0;
}

h6 a {
    font-size: 16px;
    font-family: "Roboto", -apple-system, BlinkMacSystemFont, "Segoe UI", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", Arial, sans-serif;
    font-weight: 400;
    line-height: 24px;
    letter-spacing: 0px;
    color: #005FC0;
}

h6 a:hover {
    color: #003D7C;
}

p {
    font-size: 16px;
    font-family: "Roboto", -apple-system, BlinkMacSystemFont, "Segoe UI", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", Arial, sans-serif;
    margin-top: 0.1em;
    line-height: 1.5em;
}

ul, ol {
    font-size: 16px;
    font-family: "Roboto", -apple-system, BlinkMacSystemFont, "Segoe UI", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", Arial, sans-serif;
}

a {
    font-size: 16px;
    font-family: "Roboto", -apple-system, BlinkMacSystemFont, "Segoe UI", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", Arial, sans-serif;
    font-weight: 600;
    text-decoration: none;
    color: #005FC0;
}

a:hover {
    color: #003D7C;
}

/* ==========================================================================
   Grid System (12-column) - TPL Style
   ========================================================================== */

.container {
    position: relative;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -10px;
}

.columns {
    padding: 0 10px;
    flex: 1;
    min-width: 0; /* Allow flex items to shrink below content size */
}

/* Column widths - TPL exact specifications */
.one.columns { flex: 0 0 8.333333%; }
.two.columns { flex: 0 0 16.666667%; }
.three.columns { flex: 0 0 25%; }
.four.columns { flex: 0 0 33.333333%; }
.five.columns { flex: 0 0 41.666667%; }
.six.columns { flex: 0 0 50%; }
.seven.columns { flex: 0 0 58.333333%; }
.eight.columns { 
    flex: 0 0 66.666667%;
    max-width: 66.666667%; /* Prevent content overflow */
    overflow-x: hidden; /* Safety for main content column */
}
.nine.columns { flex: 0 0 75%; }
.ten.columns { flex: 0 0 83.333333%; }
.eleven.columns { flex: 0 0 91.666667%; }
.twelve.columns { flex: 0 0 100%; }

/* Top-bar Navigation Flex Layout */
.top-bar .row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.top-bar .four.columns {
    flex: none;
    width: auto;
}

.top-bar .two.columns {
    flex: none;
    width: auto;
}

.top-bar .offset-by-two.two.columns {
    flex: none;
    width: auto;
    margin-left: 0;
}

.top-bar .title {
    flex: 1;
    text-align: center;
}

.top-bar .pull-right {
    display: flex;
    gap: 10px;
    align-items: center;
}

.offset-by-two { margin-left: 16.666667%; }

/* TPL specific grid adjustments */
@media (max-width: 850px) {
    .top-bar .btn-container {
        width: 20%;
        margin-left: 0%;
    }
    
    .top-bar .row {
        flex-wrap: nowrap;
        justify-content: space-between;
    }
}

@media (min-width: 550px) {
    .offset-by-two.column, 
    .offset-by-two.columns {
        margin-left: 12.333333%;
    }
}

@media (min-width: 550px) {
    .two.columns {
        width: 22.333333%;
    }
}

/* Utility classes */
.clearfix::after {
    content: "";
    display: table;
    clear: both;
}

/* ==========================================================================
   Top Navigation Bar
   ========================================================================== */

.top-bar {
    background-color: #001c71;
}

.top-bar button {
    width: 44px;
    height: 44px;
    background-repeat: no-repeat;
    background-size: 32px auto;
    vertical-align: middle;
}

.top-bar .title img {
    height: 40px;
    margin-top: 5px;
}

.top-bar .title a {
    text-align: center;
    display: block;
}

.pull-right {
    float: right;
}

/* ==========================================================================
   Hamburger Menu Button
   ========================================================================== */

button.reveal-menu {
    background: none;
    display: block;
    position: relative;
    overflow: hidden;
    margin: 0;
    padding: 0;
    font-size: 0;
    text-indent: -9999px;
    appearance: none;
    box-shadow: none;
    border-radius: none;
    border: none;
    cursor: pointer;
    transition: background 0.3s;
}

button.reveal-menu:hover, 
button.reveal-menu:focus {
    outline: none;
}

button.reveal-menu:hover span, 
button.reveal-menu:hover span::before, 
button.reveal-menu:hover span::after, 
button.reveal-menu:focus span, 
button.reveal-menu:focus span::before, 
button.reveal-menu:focus span::after {
    box-shadow: 0px 0px 3px #fff;
}

button.reveal-menu.is-active span, 
button.reveal-menu[data-close] span {
    background: none;
    box-shadow: none;
}

button.reveal-menu.is-active span::before, 
button.reveal-menu[data-close] span::before {
    top: 0;
    transform: rotate(45deg);
}

button.reveal-menu.is-active span::after, 
button.reveal-menu[data-close] span::after {
    bottom: 0;
    transform: rotate(-45deg);
}

button.reveal-menu.is-active span::before,
button.reveal-menu.is-active span::after, 
button.reveal-menu[data-close] span::before,
button.reveal-menu[data-close] span::after {
    box-shadow: none;
    transition-delay: 0s, 0.3s;
}

button.reveal-menu.is-active:hover, 
button.reveal-menu.is-active:focus, 
button.reveal-menu[data-close]:hover, 
button.reveal-menu[data-close]:focus {
    outline: none;
}

button.reveal-menu.is-active:hover span::before, 
button.reveal-menu.is-active:hover span::after, 
button.reveal-menu.is-active:focus span::before, 
button.reveal-menu.is-active:focus span::after, 
button.reveal-menu[data-close]:hover span::before, 
button.reveal-menu[data-close]:hover span::after, 
button.reveal-menu[data-close]:focus span::before, 
button.reveal-menu[data-close]:focus span::after {
    box-shadow: 0px 0px 3px #fff;
}

button.reveal-menu span {
    display: block;
    position: absolute;
    top: 22px;
    left: 9px;
    right: 8px;
    height: 2px;
    background: white;
    border-radius: 3px;
    transition: background 0s 0.3s;
}

button.reveal-menu span::before, 
button.reveal-menu span::after {
    position: absolute;
    display: block;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #fff;
    content: "";
    transition-duration: 0.3s, 0.3s;
    transition-delay: 0.3s, 0s;
    border-radius: 3px;
}

button.reveal-menu span::before {
    top: -9px;
    transition-property: top, transform;
}

button.reveal-menu span::after {
    bottom: -9px;
    transition-property: bottom, transform;
}

/* ==========================================================================
   Account Button
   ========================================================================== */

button.reveal-account {
    background-color: transparent;
    border: none;
    background-position: center center;
    width: 44px;
    height: 44px;
    background-repeat: no-repeat;
    background-size: 32px auto;
    cursor: pointer;
}

button.reveal-account[data-open] {
    background-image: url("img/account.svg");
}

button.reveal-account[data-close] {
    background-image: url("img/account_close.svg");
}

button.reveal-account:hover, 
button.reveal-account:focus {
    background-image: url("img/account_hover.svg");
}

/* ==========================================================================
   Search Button
   ========================================================================== */

button.reveal-search {
    background-color: transparent;
    border: none;
    background-position: center center;
    width: 44px;
    height: 44px;
    background-repeat: no-repeat;
    background-size: 32px auto;
    cursor: pointer;
}

button.reveal-search[data-open] {
    background-image: url("img/search.svg");
}

button.reveal-search:hover, 
button.reveal-search:focus {
    background-image: url("img/search_hover.svg");
}

button.reveal-search[data-close] {
    background-size: 26px auto;
    background-image: url("img/close.svg");
}

button.reveal-search[data-close]:hover, 
button.reveal-search[data-close]:focus {
    background-image: url("img/close_hover.svg");
}

/* ==========================================================================
   Reveal Dropdowns
   ========================================================================== */

.reveal-is-open {
    overflow: hidden;
}

.reveal {
    background-color: rgba(0, 0, 0, 0.8);
    border-top: 1px rgba(235, 235, 235, 0.25) solid;
    position: absolute;
    top: 50px !important;
    left: 0;
    right: 0;
    z-index: 1000;
    display: none !important;
}

.reveal.show {
    display: block !important;
}

.reveal.without-overlay {
    background-color: #001c71;
    border-top: none;
}

.menu-bg {
    background-color: #001c71;
    padding: 20px 0;
}

.menu-bg ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.menu-bg ul li {
    margin: 0;
    padding: 0;
}

.menu-bg ul li a {
    display: block;
    padding: 15px 20px;
    color: white;
    font-size: 1.25rem;
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.menu-bg ul li a:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
}

/* Search form in dropdown */
.menu-bg form {
    padding: 20px;
}

.menu-bg input[type="search"] {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    margin-bottom: 10px;
}

.menu-bg .search-button {
    display: inline-block;
}

.menu-bg .search-button input {
    background-color: #001c71;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
}

.menu-bg .search-button input:hover {
    background-color: #001657;
}

/* Screen reader only text */
.show-for-sr,
.screen-reader-text {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Search form styling moved to css/styles.css for proper loading order */

/* ==========================================================================
   Title Bar
   ========================================================================== */

.title-bar {
    background: #E2F0FF;
    padding-bottom: 1.6em;
    margin-bottom: 0.5em;
}

.title-bar h1 {
    font-size: 2.5rem;
}

.title-bar h4 {
    margin-top: 0.2em;
    color: #333333;
}

/* ==========================================================================
   Main Content
   ========================================================================== */

.top-border {
    border-top: 3px solid #001c71;
    padding-top: 20px;
}

/* Responsive images */
.asset-image {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 15px 0;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.asset-image.img-responsive {
    max-width: 640px;
    height: auto;
}

/* Photo wrapper and caption styling for migrated content */
.photo-wrap {
    display: inline-block;
    margin: 15px 0;
    max-width: 100%;
}

.photo-wrap.photo-full {
    width: 100%;
    text-align: center;
}

.photo-wrap .asset-img-link {
    display: inline-block;
    text-decoration: none;
}

.photo-wrap .asset-img-link:hover {
    text-decoration: none;
}

.photo-wrap .asset-image {
    margin: 0;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.photo-caption {
    font-size: 14px;
    font-style: italic;
    color: #666;
    text-align: center;
    margin-top: 8px;
    padding: 0 10px;
    line-height: 1.4;
    max-width: 100%;
}

.photo-caption:before {
    content: "— ";
}

.photo-caption:after {
    content: " —";
}

/* Ensure captions are visually connected to their images */
.photo-wrap .photo-caption {
    display: block;
    margin-top: 8px;
    font-family: "Roboto", -apple-system, BlinkMacSystemFont, "Segoe UI", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", Arial, sans-serif;
}

/* WordPress image sizing - Responsive images at original size within container */
.entry-content img,
.wp-post-image,
.attachment-post-thumbnail,
.size-full,
.size-large,
.size-medium,
.size-thumbnail {
    max-width: 100%;
    height: auto;
}

/* WordPress Gutenberg block images - override inline styles while maintaining responsiveness */
.wp-block-image img,
.wp-block-image.size-full img,
.wp-block-image.size-large img,
.wp-block-image.size-medium img,
.wp-block-image.size-thumbnail img {
    max-width: 100% !important;
    height: auto !important;
}

/* Override inline styles on WordPress images - maintain responsiveness */
.entry-content img[style*="width"],
.entry-content img[style*="height"] {
    max-width: 100% !important;
    height: auto !important;
}

/* Specific overrides for resized Gutenberg images */
.wp-block-image.is-resized img {
    max-width: 100% !important;
    height: auto !important;
}

/* Override any image with wp-image class */
img[class*="wp-image-"] {
    max-width: 100% !important;
    height: auto !important;
}

/* Force override for images with width/height attributes from TypePad migration */
img[width][height] {
    max-width: 100% !important;
    height: auto !important;
}

/* Override WordPress figure elements */
figure.wp-block-image img {
    max-width: 100% !important;
    height: auto !important;
}

/* Override specific size-full images */
figure.wp-block-image.size-full img {
    max-width: 100% !important;
    height: auto !important;
}

/* Override images with specific sizes attribute */
img[sizes] {
    max-width: 100% !important;
    height: auto !important;
}

/* Most aggressive override for WordPress and migrated TypePad images */
.entry-content figure img,
.entry-content .wp-block-image img,
.entry-content img[class*="wp-image-"],
.entry-content img[width],
.entry-content img[height] {
    max-width: 100% !important;
    height: auto !important;
    min-width: 0 !important;
}

/* Ensure all entry content images are responsive */
.entry-content img {
    max-width: 100% !important;
    height: auto !important;
    min-width: 0 !important;
}

.entry {
    width: 85%;
    max-width: 100%;
    overflow-x: hidden; /* Prevent horizontal scroll from oversized content */
}

.entry-content {
    max-width: 100%;
    overflow-x: hidden; /* Additional safety for content area */
}

.entry ul {
    padding-left: 15px;
    margin-left: .2em;
}

.entry ul li a {
    font-size: 16px;
}

.entry ol {
    padding-left: 15px;
    margin-left: .2em;
}

.entry ol li a {
    font-size: 16px;
}

.entry blockquote {
    border-left: .3em solid #ddd;
    padding-left: 1em;
}

/* ==========================================================================
   Meta Information
   ========================================================================== */

.meta p {
    font-size: 14px;
    font-family: "Roboto", -apple-system, BlinkMacSystemFont, "Segoe UI", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", Arial, sans-serif;
    font-weight: 600;
    line-height: 26px;
    color: #000;
}

.meta a {
    font-size: 14px;
    font-family: "Roboto", -apple-system, BlinkMacSystemFont, "Segoe UI", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", Arial, sans-serif;
    font-weight: 600;
    line-height: 26px;
    color: #005FC0;
}

/* ==========================================================================
   Sidebar
   ========================================================================== */

.sidebar {
    padding-left: 20px;
}

@media (min-width: 550px) {
    .sidebar {
        border-left: 3px solid #ddd;
        padding-left: 40px;
        align-self: flex-start;
    }
    
    .sidebar .top-border--thick {
        border-bottom: 3px solid #001c71;
        padding: 10px 0 40px 0;
    }
    
    .sidebar ul {
        padding-right: 20px;
    }
}

.sidebar ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar ul li {
    margin-bottom: 10px;
}

.sidebar ul li a {
    font-size: 15px;
}

/* Consolidated sidebar select and search form styling */
.sidebar select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right;
    background-size: auto 100%;
    border: 2px solid #ddd;
    border-radius: 0;
    padding: 10px 30px 10px 10px;
    width: 100%;
    font-size: 14px;
    color: #333333;
    font-size: 1em;
    font-family: "Roboto", -apple-system, BlinkMacSystemFont, "Segoe UI", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", Arial, sans-serif;
    background-color: #fff;
    box-sizing: border-box;
    line-height: normal;
}

/* Search form styling to match sidebar selects */
.search-form {
    margin: 0;
}

.search-form-wrapper {
    display: flex;
    gap: 0;
    align-items: stretch;
    height: auto;
}

.search-field {
    flex: 1;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    border: 2px solid #ddd;
    border-right: none;
    border-radius: 0;
    padding: 10px 10px 10px 10px;
    width: 100%;
    font-size: 14px;
    color: #333333;
    font-size: 1em;
    font-family: "Roboto", -apple-system, BlinkMacSystemFont, "Segoe UI", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", Arial, sans-serif;
    background-color: #fff;
    min-width: 0;
    box-sizing: border-box;
    line-height: normal;
}

.search-field:focus {
    outline: none;
    border-color: #005fc0;
}

.search-submit {
    border: 2px solid #001c71;
    border-radius: 0;
    padding: 10px 15px;
    background-color: #001c71;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 50px;
    font-size: 14px;
    font-size: 1em;
    box-sizing: border-box;
    line-height: normal;
    font-family: "Roboto", -apple-system, BlinkMacSystemFont, "Segoe UI", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", Arial, sans-serif;
}

.search-submit:hover,
.search-submit:focus {
    background-color: #001657;
    border-color: #001657;
    outline: none;
}

.search-submit svg {
    width: 16px;
    height: 16px;
    stroke: currentColor;
}

.top-border--thick {
    border-bottom: 3px solid #001c71;
    padding: 10px 0 40px 0;
}


/* ==========================================================================
   Blog Navigation
   ========================================================================== */

.blog-navigation {
    margin: 30px 0;
    padding: 20px 0;
    border-top: 1px solid #ddd;
    border-bottom: 1px solid #ddd;
    position: relative;
    min-height: 70px;
}

.btn--blog-navigation {
    position: absolute;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    border-radius: 50%;
    background-color: #005FC0;
    border: none;
    transition: background-color 0.3s ease;
    cursor: pointer;
    top: 50%;
    transform: translateY(-50%);
}

.btn--blog-navigation::before {
    content: "→";
    font-size: 18px;
    font-weight: bold;
    color: white;
    line-height: 1;
}

.btn--blog-navigation:hover {
    background-color: #001c71;
}

.btn--blog-navigation--prev {
    left: 0;
    transform: translateY(-50%) rotate(180deg);
}

.btn--blog-navigation--next {
    right: 0;
}

/* .btn--blog-navigation--next - No additional styles needed - flexbox handles positioning */

/* ==========================================================================
   Comments - TPL Style
   ========================================================================== */

.comments {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #ddd;
}

.comments-header {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: #003D7C;
}

/* TPL Comment Structure */
#tpc_thread {
    margin-top: 20px;
}

.comment {
    margin-bottom: 30px;
    padding: 20px 0;
    border-bottom: 1px solid #eee;
}

.comment:last-child {
    border-bottom: none;
}

.comment-avatar {
    float: left;
    margin-right: 15px;
    width: 50px;
    height: 50px;
}

.comment-avatar img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid #ddd;
}

.comment-data {
    margin-left: 65px;
}

.comment-header {
    margin-bottom: 10px;
}

.comment-header span {
    font-size: 14px;
    font-weight: 400;
    color: #000;
}

.comment-header span a {
    color: #005FC0;
    font-family: "Roboto", -apple-system, BlinkMacSystemFont, "Segoe UI", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", Arial, sans-serif;
    font-weight: 600;
    font-size: 16px;
}

.comment-content {
    margin-left: 0 !important;
    margin-bottom: 15px;
}

.comment-content span p {
    font-size: 14px;
    line-height: 1.5;
    margin: 0 0 10px 0;
}

.comment-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: #666;
}

.comment-footerlinks a {
    color: #005FC0;
    text-decoration: none;
    font-size: 14px;
    margin-right: 15px;
}

.comment-footerlinks a:hover {
    text-decoration: underline;
}

.comment-datetime a {
    color: #666;
    text-decoration: none;
    font-size: 14px;
    font-weight: 400;
}

.comment-datetime a:hover {
    color: #005FC0;
}

/* Comments Area */
.comments-area {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 2px solid #005fc0;
}

.comments-title {
    font-size: 1.5rem;
    margin-bottom: 30px;
    color: #003D7C;
    font-weight: 600;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

/* Comment List */
.comment-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.comment-list li {
    margin: 0;
    padding: 0;
}

/* Individual Comment */
.comment {
    margin-bottom: 30px;
    padding: 20px 0;
    border-bottom: 1px solid #eee;
    position: relative;
}

.comment:last-child {
    border-bottom: none;
}

.comment-avatar img {
    transition: border-color 0.3s ease;
}

.comment-avatar img:hover {
    border-color: #005fc0;
}

.comment-header span a {
    text-decoration: none;
}

.comment-header span a:hover {
    text-decoration: underline;
}

.comment-content p {
    font-size: 14px;
    line-height: 1.6;
    margin: 0 0 10px 0;
    color: #333;
}

.comment-footer {
    font-size: 14px;
    margin-top: 10px;
}

.comment-footerlinks a {
    font-weight: 500;
    transition: color 0.3s ease;
}

.comment-footerlinks a:hover {
    color: #003D7C;
}

.comment-datetime a {
    transition: color 0.3s ease;
}

/* Comment Form Styling */
.comment-respond {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 2px solid #005fc0;
    margin-left: 0;
    padding-left: 0;
}

.comment-reply-title {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: #003D7C;
    font-weight: 600;
}

.comment-form {
    background: transparent;
    padding: 0;
    border: none;
    border-radius: 0;
    max-width: none;
}

.comment-notes {
    font-size: 14px;
    color: #666;
    margin-bottom: 25px;
    font-style: normal;
}

.comment-form-comment,
.comment-form-author,
.comment-form-email,
.comment-form-url {
    margin-bottom: 20px;
}

.comment-form-comment label,
.comment-form-author label,
.comment-form-email label,
.comment-form-url label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
    font-size: 16px;
}

.required {
    color: #005FC0;
    font-weight: bold;
}

.comment-form-comment textarea,
.comment-form-author input,
.comment-form-email input,
.comment-form-url input {
    width: 100%;
    padding: 15px;
    border: 2px solid #ddd;
    border-radius: 0;
    font-size: 16px;
    font-family: "Roboto", -apple-system, BlinkMacSystemFont, "Segoe UI", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", Arial, sans-serif;
    transition: border-color 0.3s ease;
    background: #fff;
    box-sizing: border-box;
}

.comment-form-comment textarea:focus,
.comment-form-author input:focus,
.comment-form-email input:focus,
.comment-form-url input:focus {
    outline: none;
    border-color: #005fc0;
}

.comment-form-comment textarea {
    min-height: 150px;
    resize: vertical;
}

.comment-form-comment textarea::placeholder {
    color: #999;
    font-style: normal;
}

/* Custom Submit Button */
.form-submit {
    margin-top: 25px;
}

#submit {
    background-color: #005FC0;
    color: white;
    border: none;
    padding: 15px 40px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 0;
    cursor: pointer;
    transition: background-color 0.3s ease;
    font-family: "Roboto", -apple-system, BlinkMacSystemFont, "Segoe UI", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", Arial, sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

#submit:hover {
    background-color: #001c71;
}

#submit:active {
    background-color: #001c71;
}

/* Cancel Reply Link */
#cancel-comment-reply-link {
    color: #666;
    text-decoration: none;
    font-size: 14px;
    margin-left: 15px;
    transition: color 0.3s ease;
}

#cancel-comment-reply-link:hover {
    color: #e74c3c;
    text-decoration: underline;
}

/* Comment Navigation */
.comment-navigation {
    margin: 30px 0;
    text-align: center;
}

.nav-links {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-previous a,
.nav-next a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    padding: 0;
    border: none;
    border-radius: 50%;
    transition: background-color 0.3s ease;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #005FC0;
    cursor: pointer;
}

.nav-previous a::before,
.nav-next a::before {
    content: "→";
    font-size: 18px;
    font-weight: bold;
    color: white;
    line-height: 1;
}

.nav-previous a:hover,
.nav-next a:hover {
    background-color: #001c71;
}

.nav-previous a {
    transform: rotate(180deg);
}

/* No Comments Message */
.no-comments {
    text-align: center;
    color: #666;
    font-style: italic;
    margin: 30px 0;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 4px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .comment-data {
        margin-left: 0;
        margin-top: 15px;
    }
    
    .comment-avatar {
        float: none;
        margin-right: 0;
        margin-bottom: 10px;
    }
    
    .comment-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .comment-form {
        padding: 20px;
    }
    
    .nav-links {
        flex-direction: column;
        gap: 10px;
    }
}

/* Comment Sign-in Section */
.login-list {
    margin: 20px 0;
    padding: 20px;
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    text-align: center;
}

.login-list .first {
    font-size: 14px;
    color: #666;
    margin-right: 10px;
}

.login-list span {
    margin-right: 15px;
}

.login-list a {
    color: #005FC0;
    text-decoration: none;
    font-weight: 600;
}

.login-list a:hover {
    text-decoration: underline;
}

/* Clear floats */
.clr {
    clear: both;
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */

@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    .row {
        margin: 0 -5px;
    }
    
    .columns {
        padding: 0 5px;
    }
    
    .eight.columns,
    .four.columns {
        flex: 0 0 100%;
        max-width: 100%;
        overflow-x: hidden;
    }
    
    .sidebar {
        padding-left: 0;
        margin-top: 30px;
    }
    
    h2 {
        font-size: 1.6em;
    }
    
    h3 {
        font-size: 1.3em;
    }
    
    .entry {
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
    }
    
    .entry-content {
        max-width: 100%;
        overflow-x: hidden;
    }
    
    /* Ensure mobile images stay contained */
    .entry-content img {
        max-width: 100% !important;
        height: auto !important;
    }
    
    .asset-image.img-responsive {
        max-width: 100% !important;
        height: auto !important;
    }
    
    /* Mobile responsive styles for photo captions */
    .photo-wrap {
        margin: 10px 0;
    }
    
    .photo-caption {
        font-size: 13px;
        padding: 0 5px;
        margin-top: 6px;
    }
    
    /* Override inline styles for tablet dropdown positioning */
    .reveal {
        top: 50px !important;
    }
}

@media (max-width: 480px) {
    .top-bar .title img {
        height: 30px;
    }
    
    .title-bar h1 {
        font-size: 1.8rem;
    }
    
    h2 {
        font-size: 1.6em;
    }
    
    h3 {
        font-size: 1.2em;
    }
    
    /* Override inline styles for mobile dropdown positioning */
    .reveal {
        top: 43px !important;
    }
}

/* ==========================================================================
   Print Styles
   ========================================================================== */

@media print {
    .top-bar,
    .sidebar,
    .blog-navigation,
    .comments,
    .pull-right {
        display: none !important;
    }
    
    .eight.columns {
        width: 100% !important;
        max-width: 100% !important;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
        color: #000;
        background: #fff;
    }
    
    h1, h2, h3, h4, h5, h6 {
        page-break-after: avoid;
        color: #000;
    }
    
    a {
        color: #000;
        text-decoration: underline;
    }
}

/* Alphabetical Category List Styling */
.category-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.category-list li {
    margin-bottom: 8px;
    padding: 4px 0;
    border-bottom: 1px solid #eee;
}

.category-list li:last-child {
    border-bottom: none;
}

.category-list a {
    color: #003D7C;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.category-list a:hover {
    color: #0056b3;
    text-decoration: underline;
}

.category-list .count {
    color: #666;
    font-size: 0.9em;
    margin-left: 5px;
}

/* Category and form styling consolidated in css/styles.css */