/* Bring In Fonts */
/* @import url("https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;500;700&family=Montserrat:wght@400;500;700&family=Roboto:wght@400;500;700&display=swap"); */


:root {
    /* Color Palette */
    --link-color: #306ebb;
    --link-hover-color: #205290;
    --text-color: #333;
    --error-color: #d9534f;
    --form-background-color: #f9f9f9;
    --link-color: #306ebb;
    --link-hover-color: #205290;
    --input-border-color: #ddd;

    /* Modern Font Stack */
    --font-family-primary: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-family-secondary: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-family-reading: "Source Sans Pro", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

    /* Responsive Font Sizes */
    --font-size-xs: clamp(12px, 2.5vw, 13px);
    --font-size-sm: clamp(14px, 3.5vw, 15px);
    --font-size-base: clamp(16px, 4vw, 18px);
    --font-size-lg: clamp(18px, 4.5vw, 20px);
    --font-size-xl: clamp(20px, 5vw, 24px);
    --font-size-2xl: clamp(24px, 6vw, 32px);
    --font-size-3xl: clamp(32px, 7vw, 48px);

    /* Line Heights */
    --line-height-tight: 1.25;
    --line-height-normal: 1.5;
    --line-height-relaxed: 1.625;
    --line-height-loose: 1.75;

    /* Spacing */
    --spacing-small: 5px;
    --spacing-medium: 15px;
    --spacing-large: 25px;

    /* Border Styles */
    --border-color: #ddd;
    --border-radius-small: 5px;
    --border-radius-small-right: 5px;
    --border-radius-small-bottom: 5px;
    --border-radius-medium: 10px;

    /* Box Shadows */
    --box-shadow-small: 0 2px 4px rgba(0, 0, 0, 0.1);
    --box-shadow-medium: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Basic CSS Reset */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.clearfix::after {
    content: "";
    display: table;
    clear: both;
}

body {
    line-height: var(--line-height-relaxed);
    font-size: var(--font-size-base);
    color: var(--text-color);
    background-color: var(--site-background-color);
    word-wrap: break-word;
    font-family: var(--font-family-reading);
    font-weight: 400;
    letter-spacing: 0.01em;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-family-secondary);
    font-weight: 600;
    color: #1a1a1a;
    line-height: var(--line-height-tight);
    letter-spacing: -0.025em;
    margin-bottom: 0.75em;
    margin-top: 1.5em;
}

h1:first-child,
h2:first-child,
h3:first-child,
h4:first-child,
h5:first-child,
h6:first-child {
    margin-top: 0;
}

h1 {
    font-size: var(--font-size-3xl);
    font-weight: 700;
    letter-spacing: -0.05em;
}

h2 {
    font-size: var(--font-size-2xl);
    font-weight: 600;
}

h3 {
    font-size: var(--font-size-xl);
    font-weight: 600;
}

h4 {
    font-size: var(--font-size-lg);
    font-weight: 500;
}

h5 {
    font-size: var(--font-size-base);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

h6 {
    font-size: var(--font-size-sm);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #666;
}

.nav,
nav {
    font-family: var(--font-family-secondary);
    font-weight: 500;
}

/* Standard Paragraph Styling */
p {
    margin-bottom: 1.25em;
    line-height: var(--line-height-relaxed);
    font-size: var(--font-size-base);
    color: #2c2c2c;
}

/* WordPress adds .wp-block-paragraph class to block editor paragraphs. */
.wp-block-paragraph {
    margin-bottom: 1.5em;
    line-height: 1.5;
    font-size: 1rem;
    color: var(--text-color);
}

/* Standard Link Styling */


/* Specific Link Styling within the main content area */
/* REMOVED: Broad content area link styling was affecting shortcodes and plugins */


/* Specific Link Styling within the home content area */
.ttb-home-content a,
.ttb-home-content a:visited {
    color: var(--link-color);
    text-decoration: var(--link-text-decoration);
}

.ttb-home-content a:hover,
.ttb-home-content a:active,
.ttb-home-content a:focus {
    color: var( --link-hover-color);
    text-decoration: var(--link-hover-text-decoration);
}


/* Specific Link Styling within the sidebar content area */

.ttb-sidebar-widget-area a,
.ttb-sidebar-widget-area a:visited {
    color: var(--link-color);
    text-decoration: var(--link-text-decoration);
}

.ttb-sidebar-widget-area a:hover,
.ttb-sidebar-widget-area a:active,
.ttb-sidebar-widget-area a:focus {
    color: var( --link-hover-color);
    text-decoration: var(--link-hover-text-decoration);
} a,
.ttb-sidebar-widget-area a:visited {
    color: var(--link-color);
    text-decoration: var(--link-text-decoration);
}

.ttb-sidebar-widget-area a:hover,
.ttb-sidebar-widget-area a:active,
.ttb-sidebar-widget-area a:focus {
    color: var( --link-hover-color);
    text-decoration: var(--link-hover-text-decoration);
}




form {
    background: var(--form-background-color);
    border-radius: var(--border-radius-small);
    box-shadow: var(--box-shadow-medium);
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="tel"],
textarea,
select {
    width: 100%;
    padding: 15px!important;
    /* margin-bottom: 15px; */
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-small);
    box-sizing: border-box;
    font-family: var(--font-family-reading);
    font-size: var(--font-size-base);
    line-height: var(--line-height-normal);
}

input[type="submit"] {
    width: auto;
    padding: 10px 30px;
    background-color: #0d8d06;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1.55rem!important;
    transition: background-color 0.3s;
}

input[type="submit"]:hover {
    background-color: #094506;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
input[type="tel"]:focus,
textarea:focus,
select:focus {
    border-color: #085b03;
    outline: none;
}

.has-error input,
.has-error textarea,
.has-error select {
    border-color: #d9534f;
}

.error-message {
    color: #d9534f;
    font-size: 0.9em;
    margin-top: -10px;
    margin-bottom: 15px;
}

/* Enhanced mobile responsive styles */
@media (max-width: 768px) {
    form {
        padding: 15px;
        margin: 10px 0;
    }

    input[type="text"],
    input[type="email"],
    input[type="password"],
    input[type="tel"],
    textarea,
    select {
        font-size: 16px; /* Prevents zoom on iOS */
        padding: 12px !important;
        border-radius: 8px;
    }

    input[type="submit"] {
        width: 100%;
        font-size: 1.25rem!important;
        padding: 15px 20px;
        border-radius: 8px;
        margin-top: 10px;
    }

    /* Better touch targets */
    button,
    .ttb-read-more,
    .ttb-category-bubble,
    .ttb-tag-bubble {
        /* min-height: 44px; */
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
}

/*****************************/
/*  Handle Images - front-end.css */
/*****************************/
.wp-caption {
    max-width: 100%;
    box-sizing: border-box;
}

.wp-caption img {
    width: 100% !important;
    height: auto !important;
    padding: 0 !important;
}

.wp-caption-text {
    font-size: 0.8em;
    color: #444;
    padding: 5px;
    text-align: center;
    background: #e9e9e9;
    margin-bottom: 1em;
    box-sizing: border-box;
}

.wp-caption.alignleft {
    float: left;
    margin-right: 1em;
}

.wp-caption.aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.wp-caption.alignright {
    float: right;
    margin-left: 1em;
}

.wp-caption p:empty {
    display: none;
}

@media (max-width: 767px) {
    .wp-caption {
        width: 100% !important;
    }

    .wp-caption.alignleft,
    .wp-caption.alignright {
        float: none;
        margin: 0 auto;
    }

    .wp-caption img {
        width: 100% !important;
        height: auto !important;
    }
}


/* Base styles for images */
img.size-full,
img.alignleft,
img.alignright,
img.aligncenter {
    max-width: 100%;
    height: auto;
    /* Maintain aspect ratio */
}

/* Image alignment styles with better text wrapping */
img.alignleft {
    float: left;
    margin: 0 1.5em 1em 0;
    clear: left;
}

img.aligncenter {
    display: block;
    margin: 1em auto;
    clear: both;
}

img.alignright {
    float: right;
    margin: 0 0 1em 1.5em;
    clear: right;
}

/* Basic responsive images - minimal interference */
#ttb-content img,
.ttb-post-content img,
.ttb-page-content img,
.ttb-home-content img,
.entry-content img {
    max-width: 100%;
}

/* REMOVED: No forced spacing on paragraph images - let them use natural spacing */

/* Figure elements (Gutenberg blocks) */
figure {
    margin: 20px 0;
    text-align: center;
}

figure img {
    margin: 0 auto;
    display: block;
}

figcaption {
    font-size: 0.9em;
    color: #666;
    font-style: italic;
    margin-top: 8px;
    text-align: center;
}


/* Better responsive styles for mobile images */
@media (max-width: 767px) {
    /* Prevent floated images from breaking mobile layout */
    img.alignleft,
    img.alignright {
        float: none;
        display: block;
        margin: 15px auto;
        max-width: 90%;
        width: auto;
        height: auto;
    }
    
    /* Large images should be contained but not forced to full width */
    img.size-large,
    img.size-full {
        max-width: 100%;
        height: auto;
        margin: 15px auto;
        display: block;
    }
    
    /* Medium images work well at smaller sizes on mobile */
    img.size-medium {
        max-width: 80%;
        height: auto;
        margin: 10px auto;
        display: block;
    }
    
    /* Small images should stay small */
    img.size-thumbnail,
    img.size-small {
        max-width: 50%;
        height: auto;
        margin: 10px auto;
        display: block;
    }
}


/****************************/
/*  Top Bar - front-end.css */
/****************************/

#ttb-topnavbar {
    background-color: var(--top-bar-bg-color);
    color: var(--top-bar-text-color);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    padding: 5px;
}


#ttb-topnavbar a {
    color: var(--top-bar-text-color);
}

.ttb-top-nav-date {
    flex: 1;
    margin-left: 15px;
}

.ttb-nav-date-wrapper {
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.ttb-top-nav-date-text {
    font-size: 13px;
    padding: 10px;
    border-radius: var(--border-radius-small);
    background: rgba(0, 0, 0, 0.2);
}

.ttb-nav-menu-wrapper {
    display: flex;
    justify-content: flex-end;
}

.ttb-top-nav-menu,
.ttb-top-nav-social {
    display: flex;
    align-items: right;
}

/* Right align content in .ttb-nav-menu-wrapper */
.ttb-nav-menu-wrapper>* {
    margin-left: auto;
}

/* Top Bar Style for mobile */
@media (max-width: 768px) {

    #ttb-topnavbar,
    .ttb-nav-menu-wrapper {
        display: none;
    }

    .ttb-nav-menu-wrapper>* {
        margin-left: 0;
        width: 100%;
    }
}

.ttb-top-nav-button {
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 20px;
    background: rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease-in-out;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    margin-left: 5px;
    cursor: pointer;
}

.ttb-top-nav-button:hover {
    transform: scale(1.1);
}

.ttb-top-nav-button-social {
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 18px;
    background: rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease-in-out;
    border-radius: 50%;
    width: 35px;
    height: 35px;
    margin-left: 5px;
    cursor: pointer;
}

.ttb-top-nav-button-social:hover {
    transform: scale(1.1);
}

.ttb-social-media-icons-header {
    display: inline-flex;
    order: 2;
    flex-basis: content;
    text-align: center;
    margin-top: 0px;
    margin-right: 10px;
}

.ttb-social-media-icons-header a {
    color: inherit;
    margin: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.ttb-social-media-icons-header i.fa-brands,
.ttb-social-media-icons-header .apple-news-icon img,
.ttb-social-media-icons-header .newsbreak-icon img {
    font-size: 20px;
    height: 20px;
    min-width: 20px;
}

/****************************/
/*  Top Bar  Menu */
/****************************/

.ttb-top-bar-navbar {
    display: flex;
    justify-content: center;
    align-items: center;
}

.ttb-top-bar-content {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    background: rgba(0, 0, 0, 0.2);
    border-radius: var(--border-radius-small);
    padding: 1px 15px;
}

.ttb-menu-top-bar {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.ttb-menu-top-bar>li {
    position: relative;
}

.ttb-menu-top-bar a {
    display: block;
    padding: 6px;
    color: var(--top-bar-text-color);
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius-small);
    margin: 6px 4px;
    white-space: nowrap;
    font-size: 14px;
    line-height: normal;
}

/* Style for active menu item in the top-bar menu */
.ttb-menu-top-bar a.active,
.ttb-menu-top-bar a:hover,
.ttb-menu-top-bar .current-menu-item>a {
    color: var(--top-bar-text-color);
    background: rgba(255, 255, 255, 0.1);
}

/* Dropdown Styles for the top-bar menu */
.ttb-menu-top-bar li ul {
    display: block;
    visibility: hidden;
    opacity: 0;
    position: absolute;
    z-index: 12200;
    margin: 0;
    padding: 5px 5px 5px 5px;
    min-width: 200px;
    max-width: 350px;
    width: auto;
    white-space: nowrap;
    text-overflow: ellipsis;
    transition: visibility 0s linear 0.3s, opacity 0.3s ease-out;
    border-radius: 0px 0px 5px 5px;
}

/* Show submenu on hover of the parent li with immediate effect for the top-bar menu */
.ttb-menu-top-bar>li:hover>ul,
.ttb-menu-top-bar>li>ul>li:hover>ul {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0s;
}

/* top-bar level dropdown for the top-bar menu */
.ttb-menu-top-bar>li>ul {
    top: 100%;
    left: 0;
    background: var(--top-bar-dropdown-bg-color);
    transform: translateY(-20px);
    transition: transform 0.5s ease, opacity 0.5s ease;
}

/* Show third level menu on hover for the top-bar menu */
.ttb-menu-top-bar>li>ul>li:hover>ul {
    visibility: visible;
    opacity: 1;
    transform: translateX(0);
    border-radius: var(--border-radius-small);
}

.ttb-menu-top-bar>li.menu-item-has-children>a {
    position: relative;
    padding-right: 30px;
}

.ttb-menu-top-bar>li.menu-item-has-children>a::after {
    font-family: "Font Awesome 6 Free";
    content: "\f055";
    font-size: 0.8em;
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%) rotate(0deg);
    transition: transform 0.3s ease;
    font-weight: 900;
    vertical-align: middle;
}

.ttb-menu-top-bar>li.menu-item-has-children:hover>a::after {
    transform: translateY(-50%) rotate(180deg);
    content: "\f0aa";
}

.ttb-menu-top-bar li ul li a {
    font-size: 14px;
}

.ttb-menu-top-bar>li>ul li.menu-item-has-children>a::after {
    font-family: "Font Awesome 6 Free";
    content: "\f0a9";
    font-size: 0.8em;
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    transition: right 0.3s ease;
    font-weight: 900;
}

.ttb-menu-top-bar>li>ul li.menu-item-has-children:hover>a::after {
    right: 5px;
}

.ttb-menu-top-bar>li>ul li.menu-item-has-children>a {
    padding-right: 30px;
    position: relative;
}

.ttb-menu-top-bar>li:last-child>ul {
    right: 0;
    left: auto;
}

.ttb-menu-top-bar>li:last-child>ul li ul {
    right: 100%;
    left: auto;
}

/* Responsive styles for the top-bar menu */
@media (max-width: 1024px) {
    .ttb-top-bar-navbar {
        display: none;
    }

    .ttb-menu-top-bar {
        display: none;
    }
}

@media (max-width: 1024px) {

    .ttb-top-bar-navbar,
    .ttb-menu-top-bar {
        display: none;
    }
}

/****************************/
/*  Header  - front-end.css */
/****************************/

.ttb-site-header-container {
    background-color: var(--header-bg-color);
    display: flex;
    justify-content: center;
    width: 100%;
}

.ttb-site-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 1400px;
    padding: 1rem;
}

.ttb-header-logo {
    max-height: 200px;
    height: auto;
    width: auto;
    max-width: 100%;
}

.ttb-custom-logo {
    max-height: 160px;
}

.ttb-header-widget-area {
    display: flex;
    justify-content: flex-end;
    /* padding-left: 1rem; */
    align-items: center;
}

.ttb-header-widget-area img {
    max-width: 100%;
    height: auto;
}


/* Responsive adjustments for mobile */
@media (max-width: 768px) {
    .ttb-site-header {
        flex-wrap: wrap;
    }

    .ttb-header-logo,
    .ttb-header-widget-area {
        flex: 0 0 100%;
        max-width: 100%;
        text-align: center;
    }

    .ttb-custom-logo {
        max-height: 200px;
        height: auto;
        width: auto;
        max-width: 100%;
    }

    .ttb-header-widget-area {
        justify-content: center;
        padding-left: 0;
        margin-top: 20px;
    }

    .ttb-header-widget-area>* {
        width: 100%;
        justify-content: center;
    }

    .ttb-header-widget-area img {
        max-width: 100%;
        height: auto;
    }
}

/****************************/
/*  Footer  - front-end.css */
/****************************/

.ttb-footer {
    background-color: var(--footer-bg-color);
    color: var(--footer-text-color);
  }

  .ttb-footer a {
    color: var(--footer-text-color);
  }

  .ttb-footer-paragraph p {
    color: var(--footer-text-color);
    font-size: 1em;
  }


.ttb-footer-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
}

.ttb-footer-row {
    display: flex;
    justify-content: space-between;
    width: 100%;
}

.ttb-footer-column {
    padding: 0em;
    flex-basis: 100%;
    /* This will ensure each column takes full width if alone */
}

.ttb-footer-column-logo {
    flex: 1;
}

.ttb-footer-column-widgets {
    flex: 3;
    display: flex;
    justify-content: space-between;
}

.ttb-above-footer-widgets {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    max-width: 1400px;
    width: 100%;
    align-items: stretch;
    gap: 10px;
    padding: 10px 10px;
}

.ttb-above-footer-widget {
    flex: 1 1 calc(25% - 20px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    box-sizing: border-box;
    border: 1px solid #ededed;
    border-radius: var(--border-radius-small);
}

/* Mobile Styles */
@media (max-width: 768px) {
    .ttb-above-footer-widget {
        flex: 0 0 100%;
        /* Make widgets take full width */
        margin: 10px 0;
        /* Adjust for any necessary margins */
    }
}

.ttb-footer-widgets {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: stretch;
    gap: 10px;
}

.ttb-footer-widget {
    flex: 1 1 calc(33.333% - 20px);
}

.ttb-bottom-footer-row {
    padding: 10px 0px;
    flex-grow: 1;
}

@media (max-width: 768px) {
    .ttb-footer-row {
        flex-direction: column;
        padding: 0;
    }

    .ttb-footer-column-logo,
    .ttb-footer-column-widgets {
        width: 100%;
        padding: 15px;
    }

    .ttb-footer-widgets {
        justify-content: center;
        gap: 10px;
    }

    .ttb-footer-widget {
        flex: 0 0 100%;
        max-width: 100%;
        margin: 10px 0;
    }
}

.ttb-footer-logo {
    margin: 20px 10px;
}

.ttb-footer-logo img {
    width: 90%;
    max-width: 300px;
}

.ttb-footer ul li,
ol li {
    margin: 0px !important;
}

.ttb-footer ul li {
    list-style: disc;
    padding-left: 0px !important;
    margin: 0px !important;
}

.ttb-footer ul li a:hover {
    text-decoration: underline;
}

.ttb-footer h2 {
    font-size: 20px;
    font-weight: bold;
    color: var(--footer-text-color);
}

.ttb-footer-pad {
    padding: 20px;
}

.ttb-footer-no-pad {
    padding: 0px;
}

.ttb-footer-align-left {
    text-align: left;
}

.ttb-footer-align-right {
    text-align: right;
}

.ttb-footer-cr {
    background-color: rgba(0, 0, 0, 0.1);
}

.ttb-footer-cr {
    background-color: rgba(0, 0, 0, 0.1);
}

/* New Footer Menu */

.ttb-footer-menu-wrap {
    height: auto;
    background-color: rgba(0, 0, 0, 0.1);
    line-height: 50px;
    display: block;
    margin-bottom: 20px;
}

.ttb-footer-menu {
    text-align: center !important;
    margin: 0px 0px 0px 0px;
}

.ttb-footer-menu ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
}

.ttb-footer-menu li {
    display: inline-block;
    margin-right: 0px;
}

.ttb-footer-menu li:last-child {
    margin-right: 0;
}

.ttb-footer-menu a {
    font-size: 16px;
    padding: 5px 10px;
    margin: 0px 5px;
    text-decoration: none !important;
}

.ttb-footer-menu a:hover {
    padding: 10px 10px;
    background-color: rgba(0, 0, 0, 0.1);
    border-radius: var(--border-radius-small);
}

.ttb-footer-menu li .fa {
    margin-right: 5px;
}

.ttb-footer-menu .sub-menu {
    display: none;
}

/* Mobile Styles */
@media (max-width: 768px) {
    .ttb-footer-menu-wrap {
        height: auto;
        line-height: normal;
        padding: 10px 0px;
        width: 95%;
        margin: 0 auto;
        border-radius: var(--border-radius-small);
    }

    .ttb-footer-menu ul {
        display: block;
        width: 100%;
        text-align: center;
        padding: 10px;
    }

    .ttb-footer-menu li {
        display: block;
        width: 100%;
        text-align: center;
        margin: 0 auto;
    }

    .ttb-footer-menu a {
        padding: 10px;
        display: block;
        margin: 5px 0px;
        border: 1px solid #ccc;
        border-radius: var(--border-radius-small);
    }

    .ttb-footer-menu a:hover {
        padding: 10px;
    }
}

/* Social Media Icons */

.ttb-social-media-icons-footer {
    display: inline-flex;
    order: 2;
    flex-basis: content;
    text-align: center;
    margin-top: 0px;
}

.ttb-social-media-icons-footer a {
    color: inherit;
    margin: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.ttb-social-media-icons-footer i.fa-brands,
.ttb-social-media-icons-footer .apple-news-icon img,
.ttb-social-media-icons-footer .newsbreak-icon img {
    font-size: 25px;
    height: 25px;
    min-width: 25px;
}

.ttb-footer-button-social {
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 18px;
    background: rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease-in-out;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    margin-left: 5px;
    cursor: pointer;
}

.ttb-footer-button-social:hover {
    transform: scale(1.1);
    /* Enlarge the button on hover */
}

/* Mobile Styles */
@media (max-width: 768px) {

    /* Adjust the max-width as needed for your breakpoint */
    .ttb-social-media-icons-footer {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        margin-top: 20px;
        margin-bottom: 20px;
    }

    .ttb-social-media-icons-footer a {
        margin-right: 5px;
        margin-bottom: 5px;
    }

    /* Reset the right margin for the last item */
    .ttb-social-media-icons-footer a:last-child {
        margin-right: 0;
    }
}

/* Copyright */
.ttb-footer-copyright {
    text-align: center;
    padding: 10px 0;
    font-size: 14px;
    padding: 5px 20px 20px 20px;
    color: var(--footer-text-color);
}

/* Disclaimer */
.ttb-footer-disclaimer {
    text-align: center;
    padding: 5px 20px 20px 20px;
    font-size: 13px;
    color: var(--footer-text-color);
}

@media (max-width: 768px) {
    .ttb-footer-disclaimer {
        padding: 15px 20px 20px 20px;
    }

    .ttb-footer-copyright {
        padding: 15px 20px 90px 20px;
    }
}

/* Policy Nav */

.ttb-policy-menu {
    background-color: var(--footer-bg-color);
    text-align: center !important;
    margin: 10px 0px 0px 0px;
    height: auto;
    line-height: 40px;
    display: block;
    width: auto;
    border-radius: var(--border-radius-small);
}

.ttb-policy-menu ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
}

.ttb-policy-menu li {
    display: inline-block;
    margin-right: 0px;
}

.ttb-policy-menu li:last-child {
    margin-right: 0;
}

.ttb-policy-menu a {
    font-size: 15px;
    padding: 5px 10px;
    margin: 0px 5px;
    text-decoration: none !important;
}

.ttb-policy-menu a:hover {
    padding: 5px 10px;
    background-color: rgba(0, 0, 0, 0.1);
    border-radius: var(--border-radius-small);
}

.ttb-policy-menu li .fa {
    margin-right: 5px;
}

.ttb-policy-menu .sub-menu {
    display: none;
}

/* Mobile Styles */
@media (max-width: 768px) {
    .ttb-policy-menu {
        height: auto;
        line-height: normal;
        padding: 10px 10px;
        margin-top: 20px;
        width: 100%;
        margin: 0 auto;
    }

    .ttb-policy-menu ul {
        display: block;
        width: 100%;
        text-align: center;
        margin: 0 auto;
    }

    .ttb-policy-menu li {
        display: block;
        width: 100%;
        text-align: center;
        margin: 0 auto;
    }

    .ttb-policy-menu a {
        padding: 10px;
        display: block;
        margin: 5px 0px;
        border: 1px solid #ccc;
        border-radius: var(--border-radius-small);
    }

    .ttb-policy-menu a:hover {
        padding: 10px;
    }
}

/****************************/
/*  Widgets - front-end.css */
/****************************/

.ttb-widget {
    margin-bottom: 25px;
    width: 100%;
    /* Add space between widgets */
}

.ttb-widget img {
    width: 100%;
}

.ttb-widget ul,
.ttb-widget ol {
    margin: 5px 0px 0px 25px;
}
/* Correct the internal HTML Display of H2 tags in Widgets */
.ttb-widget h2 {
    line-height: normal;
    font-size: 20px;
    margin-bottom: 15px;
	background: none;
	padding: 0px;
}

h2.ttb-h2-sidebar-main {
    background: var(--widget-headline-bg-color);
    color: var(--widget-headline-text-color);
    padding: 10px;
    line-height: normal;
    font-size: 20px;
    border-radius: var(--border-radius-small);
    margin-bottom: 15px;
}

.ttb-sidebar-widget-area h2.wp-block-heading {
    background: var(--widget-headline-bg-color);
    color: var(--widget-headline-text-color);
    padding: 10px;
    line-height: normal;
    font-size: 20px;
    border-radius: var(--border-radius-small);
    margin-bottom: 15px;
}

.ttb-sidebar-widget-area {
    padding-top: 25px;
}

.ttb-footer-widget ul {
    margin: 0px;
}

/* Recent Posts  Widget */

ul.ttb-recent-posts {
    padding: 0px 20px;
}

.ttb-home-above-content-widget,
.ttb-home-top-content-widget,
.ttb-home-left-content-widget,
.ttb-home-right-content-widget,
.ttb-home-bottom-content-widget {}

/****************************/
/*  Overall Structure Items - front-end.css */
/****************************/

@-webkit-keyframes text-focus-in {
    0% {
        -webkit-filter: blur(5px);
        filter: blur(5px);
        opacity: 0;
    }

    100% {
        -webkit-filter: blur(0px);
        filter: blur(0px);
        opacity: 1;
    }
}

@keyframes text-focus-in {
    0% {
        -webkit-filter: blur(5px);
        filter: blur(5px);
        opacity: 0;
    }

    100% {
        -webkit-filter: blur(0px);
        filter: blur(0px);
        opacity: 1;
    }
}

#ttb-site-content-container {
    display: flex;
    flex-wrap: wrap;
    max-width: 1400px;
    margin: 0 auto;
    background: #ffffff;
    border-right: 1px solid rgba(0, 0, 0, 0.1);
    border-left: 1px solid rgba(0, 0, 0, 0.1);
}

/* Remove max-width constraint when full-width page builder is active */
#ttb-site-content-container:has(.ttb-container-full-width) {
    max-width: 100%;
}

/* Fallback for browsers that don't support :has() - uses body class */
body.ttb-full-width-page #ttb-site-content-container {
    max-width: 100%;
}

/****************************/
/*  Home Page - front-end.css */
/****************************/

.ttb-home-welcome {
    width: 100%;
}

/* Set up the main container to be a flex container */
.ttb-home-container {
    display: flex;
    flex-wrap: wrap;
    max-width: clamp(320px, 95vw, 100%);
    width: 100%;
    margin: 0 auto;
    padding: 0 var(--spacing-medium);
}

/* Set up the main content area to grow and fill the available space */
.ttb-home-content {
    flex-grow: 1;
    flex-basis: calc(100% - 337px);
    /* Take full width minus sidebar width */
    max-width: calc(100% - 337px);
}

.ttb-home-main-content {
    display: flex;
    flex-direction: column;
}

.ttb-home-columns {
    display: flex;
    flex-wrap: wrap;
}

.ttb-home-left,
.ttb-home-right {
    flex: 1;
}

@media (max-width: 768px) {

    .ttb-home-left,
    .ttb-home-right {
        flex-basis: 100%;
        /* On small screens, take full width */
    }
}

/* Set up the sidebar to have a fixed width */
.ttb-sidebar-home {
    flex-basis: 337px;
    max-width: 337px;
    flex-shrink: 0;
}

/* Full-width for content if there's no sidebar */
.full-width-home {
    flex-basis: 100%;
    max-width: 100%;
}

/* Responsive layout for mobile */
@media (max-width: 1024px) {

    .ttb-home-content,
    .ttb-sidebar-home {
        flex-basis: 100%;
        max-width: 100%;
    }

    .ttb-sidebar-home {
        padding: 15px !important;
    }
}

/****************************/
/*  Default Page - front-end.css */
/****************************/

.ttb-page-welcome {
    width: 100%;
}

.ttb-page-bottom {
    width: 100%;
}

/* Set up the main container to be a flex container */
.ttb-page-container {
    display: flex;
    flex-wrap: wrap;
    max-width: clamp(320px, 95vw, 1400px);
    width: 100%;
    margin: 0 auto;
    padding: 0 var(--spacing-medium);
}

/* Set up the main content area to grow and fill the available space */
.ttb-page-content {
    flex-grow: 1;
    flex-basis: calc(100% - 337px);
    max-width: calc(100% - 337px);
}

.ttb-page-main-content {
    display: flex;
    flex-direction: column;
}

/* Set up the sidebar to have a fixed width */
.ttb-sidebar-page {
    flex-basis: 337px;
    max-width: 337px;
    flex-shrink: 0;
}

/* Full-width for content if there's no sidebar */
.full-width-page {
    flex-basis: 100%;
    max-width: 100%;
}

/* Full-width page builder - 100% viewport width for page builders */
.ttb-page-builder-full-width {
    flex-basis: 100%;
    max-width: 100%;
}

.ttb-container-full-width {
    max-width: 100% !important;
    padding: 0 !important;
}

.ttb-page-builder-full-width #ttb-content {
    padding: 0 !important;
}

/* Responsive layout for mobile */
@media (max-width: 1024px) {

    .ttb-page-content,
    .ttb-sidebar-page {
        flex-basis: 100%;
        max-width: 100%;
    }

    .ttb-sidebar-page {
        padding: 15px !important;
    }
}

/* Mobile-specific padding removal for maximum screen space */
@media (max-width: 768px) {
    .ttb-page-content {
        padding: 0 !important;
    }
}

/****************************/
/*  Single Post - front-end.css */
/****************************/

.ttb-post-welcome {
    width: 100%;
}

.ttb-post-bottom {
    width: 100%;
}

/* Set up the main container to be a flex container */
.ttb-post-container {
    display: flex;
    flex-wrap: wrap;
    max-width: clamp(320px, 95vw, 1400px);
    width: 100%;
    margin: 0 auto;
    padding: 0 var(--spacing-medium);
}

/* Set up the main content area to grow and fill the available space */
.ttb-post-content {
    flex-grow: 1;
    flex-basis: calc(100% - 337px);
    max-width: calc(100% - 337px);
}

.ttb-post-main-content {
    display: flex;
    flex-direction: column;
}

.ttb-post h1 {
    font-size: 2.5em;
    font-weight: 500;
    line-height: 1.25;
    margin-bottom: 15px;
}

.ttb-post h2 {
    font-size: 2.25em;
    font-weight: 500;
    line-height: 1.25;
    margin-bottom: 15px;
}

.ttb-post h3 {
    font-size: 2em;
    font-weight: 500;
    line-height: 1.25;
    margin-bottom: 15px;
}

.ttb-post h4 {
    font-size: 1.75em;
    font-weight: 500;
    line-height: 1.25;
    margin-bottom: 15px;
}

.ttb-post h5 {
    font-size: 1.5em;
    font-weight: 500;
    line-height: 1.25;
    margin-bottom: 15px;
}

.ttb-post h6 {
    font-size: 1.25em;
    font-weight: 500;
    line-height: 1.25;
    margin-bottom: 15px;
}

.ttb-post ul,
.ttb-post ol {
    margin: 5px 0px 15px 30px;
}

blockquote {
    clear: both;
    position: relative;
    padding: 20px 20px 20px 45px;
    margin: 30px 0;
    font-size: var(--font-size-lg);
    line-height: var(--line-height-relaxed);
    font-style: italic;
    color: #555;
    background-color: #f8f9fa;
    border-left: 4px solid var(--primary-color);
    text-shadow: 1px 1px 1px #fff;
}

blockquote p {
    margin-bottom: 0;
}

blockquote cite {
    display: block;
    margin-top: 1em;
    font-size: var(--font-size-sm);
    font-style: normal;
    color: #666;
}

/* Set up the sidebar to have a fixed width */
.ttb-sidebar-post {
    flex-basis: 337px;
    max-width: 337px;
    flex-shrink: 0;
}

/* Full-width for content if there's no sidebar */
.full-width-post {
    flex-basis: 100%;
    max-width: 100%;
}

.ttb-post-author-info {
    display: flex;
    align-items: center;
    /* Aligns items vertically in the center */
    padding-left: 20px;
}

.ttb-author-text {
    display: flex;
    align-items: center;
    gap: 5px;
}

.ttb-author-name {
    display: inline-block;
    background-color: #d9ead3;
    color: #274e13!important;
    border-radius: 0px 20px 20px 0px;
    padding: 5px 15px;
    font-size: 0.75rem;
    white-space: nowrap;
    z-index: 10;
}

.ttb-author-text img {
    border-radius: 50%;
    overflow: hidden;
    width: 32px;
    height: 32px;
    object-fit: cover;
    margin: 0px -15px 0px 0px;
    border: 1px solid #d9ead3;
    z-index: 20;
}

.ttb-post-meta-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
}

.ttb-post-author-info {
    flex: 0 auto;
}

.ttb-post-date-info {
    display: flex;
    align-items: center;
    margin-left: auto;
    gap: 5px;
}

.ttb-date-bubble {
    display: inline-block;
    background-color: #e9e9e9;
    color: #333;
    border-radius: 20px;
    padding: 5px 15px;
    font-size: 0.75rem;
    white-space: nowrap;
}

#ttb-cats-tags-meta {
    margin-top: 20px;
}

.ttb-categories-label {
    display: block;
    margin-bottom: 5px;
    font-size: 0.85rem;
}

.ttb-post-categories-row {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-bottom: 15px;
}

.ttb-category-bubble {
    background-color: #e9e9e9;
    color: #333!important;
    border-radius: 20px;
    padding: 5px 15px;
    text-decoration: none;
    font-size: 0.75rem;
    white-space: nowrap;
}

.ttb-category-bubble:hover {
    background-color: #d0d0d0;
}

.ttb-tags-label {
    display: block;
    margin-bottom: 5px;
    font-size: 0.85rem;
}

.ttb-post-tags-row {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-bottom: 15px;
}

.ttb-tag-bubble {
    background-color: #d9ead3;
    color: #274e13!important;
    border-radius: 20px;
    padding: 5px 15px;
    text-decoration: none;
    font-size: 0.75rem;
    white-space: nowrap;
}

.ttb-tag-bubble:hover {
    background-color: #b6d7a8;
}

/* Responsive layout for mobile */
@media (max-width: 1024px) {

    .ttb-post-content,
    .ttb-sidebar-post {
        flex-basis: 100%;
        max-width: 100%;
    }

    .ttb-sidebar-post {
        padding: 15px !important;
    }
}

/* Archive - front-end.css */

.ttb-archive-welcome,
.ttb-archive-bottom {
    width: 100%;
}

/* Set up the main container to be a flex container */
.ttb-archive-container {
    display: flex;
    flex-wrap: wrap;
    max-width: clamp(320px, 95vw, 1400px);
    margin: 0 auto;
    padding: 0 var(--spacing-medium);
}

/* Set up the main content area */
.ttb-archive-content {
    flex-grow: 1;
    flex-basis: calc(100% - 337px);
    /* Adjust width as needed */
    max-width: calc(100% - 337px);
    /* Ensure it doesn't grow beyond available space */
}

/* Set up the sidebar with a fixed width */
.ttb-sidebar-archive {
    flex-basis: 337px;
    max-width: 337px;
    flex-shrink: 0;
}

/* Full-width for content when sidebar is not present */
.full-width-archive {
    flex-basis: 100%;
    max-width: 100%;
}

.ttb-post-article {
    background: #ffffff;
    border: 1px solid #e1e1e1;
    border-radius: var(--border-radius-small);
    margin-bottom: 30px;
    overflow: hidden;
    transition: box-shadow 0.3s ease-in-out;
}

.ttb-post-article:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.ttb-post-title {
    font-size: 24px;
    margin: 20px;
    line-height: normal;
    text-align: center;
}

.ttb-post-title a {
    color: #333333;
    text-decoration: none;
}

.ttb-post-excerpt {
    padding: 0 20px 20px;
    font-size: 16px;
    line-height: 1.6;
    text-align: justify;
}

.ttb-read-more {
    background-color: var(--main-nav-bg-color);
    color: var(--main-nav-text-color)!important;
    position: relative;
    overflow: hidden;
    display: inline-block;
    padding: 10px 20px;
    border-radius: var(--border-radius-small);
    margin: 20px;
    text-decoration: none;
    font-weight: bold;
}

.ttb-read-more:hover {
    background-color: var(--main-nav-dropdown-bg-color);
    color: var(--main-nav-text-color);
  }

.ttb-read-more::after {
    font-family: "Font Awesome 6 Free";
    content: "\f0a9";
    position: absolute;
    right: 20px;
    transition: all 0.3s ease-in-out;
}

.ttb-read-more:hover::after {
    transform: translateX(10px);
}

.ttb-posts-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-gap: 20px;
    margin: 0 auto;
    max-width: 1400px;
}

.ttb-post-article {
    position: relative;
    background: #fff;
    border: 1px solid #e1e1e1;
    border-radius: var(--border-radius-small);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.ttb-post-article .post-thumbnail {
    width: 100%;
    height: 250px;
    object-fit: contain;
    object-position: center;
}

.ttb-post-article .no-thumbnail {
    width: 100%;
    height: 250px;
    background: url("path/to/your/placeholder-image.jpg") center/cover no-repeat;
    /* Or use a solid color */
    /* background-color: #cccccc; */
}

.ttb-post-article img {
    width: 100%;
    height: 200px;
    object-fit: contain;
    object-position: center;
    background: radial-gradient(circle, lightgray, transparent);
}

.ttb-load-more {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    background-color: #ededed;
    font-size: 20px;
    text-align: center;
    margin-top: 20px;
    padding: 30px;
    border-radius: var(--border-radius-small);
}

.ttb-subcategories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    margin: 20px 0px 40px 0px;
}

.ttb-subcategory {
    background-color: #fcfcfc;
    border-radius: 10px;
    padding: 10px;
    border: 1px solid #ddd;
    /* box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.3s ease-in-out; */
}

.ttb-subcategory h2 {
    margin: 0;
    font-size: 1.1em;
    text-align: center;
}

.ttb-subcategory a {
    color: #333!important;
    text-decoration: none;
}

.ttb-subcategory:hover {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    background: rgba(0, 0, 0, 0.08) !important;
}

.ttb-pagination {
    text-align: center;
    margin-top: 20px;
    display: none !important;
    /* Hide the pagination */
}

.ttb-pagination ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

.ttb-pagination ul li .page-numbers {
    display: inline-block;
    margin: 0 5px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-small);
    padding: 10px;
}

.ttb-pagination ul li .current {
    background-color: #ededed;
}

/* Adjust grid layout for smaller screens */
@media (max-width: 768px) {
    .ttb-posts-grid {
        grid-template-columns: 1fr;
        /* One column layout for smaller screens */
    }
}

.ttb-post-date {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: #fff;
    color: #333;
    padding: 5px 10px;
    border-radius: 20px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    font-size: 12px;
    z-index: 10;
    /* Ensure it appears above the image */
}

.ttb-post-category {
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: #fff;
    color: #333 !important;
    padding: 5px 10px;
    border-radius: 20px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    font-size: 12px;
    z-index: 10;
    /* Ensure it appears above the image */
}

.ttb-post-category a {
    color: #333 !important;
    text-decoration: none;
}

/* Responsive layout for smaller screens */
@media (max-width: 1024px) {

    .ttb-archive-content,
    .ttb-sidebar-archive {
        flex-basis: 100%;
        max-width: 100%;
    }

    .ttb-sidebar-archive {
        padding: 15px !important;
    }
}

/* Breadcrumbs */

#breadcrumbwrap {
    flex: 0 0 100%;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    display: block;
  }
  
  .ttb-breadcrumbs {
      padding: 10px 20px;
      background-color: #f5f5f5;
      font-size: 0.9rem;
      color: #333;
      display: inline-flex;
      align-items: center;
      flex-wrap: wrap;
      border-radius: 0px 0px 5px 0px;
      width: auto;
      max-width: 100%;
      justify-content: flex-start;
  }

.ttb-breadcrumbs__item {
    display: inline-flex;
    width: auto;
    align-items: center;
}
.ttb-breadcrumbs__separator {
    margin: 0 5px;
    color: #666;
}

.ttb-breadcrumbs__current {
    font-weight: bold;
    color: #000;
}

.ttb-breadcrumbs a {
    color: #306ebb;
    text-decoration: none;
    transition: color 0.3s ease;
}

.ttb-breadcrumbs a:hover,
.ttb-breadcrumbs a:focus {
    color: #01447e;
    text-decoration: underline;
}

@media (max-width: 768px) {
    .ttb-breadcrumbs {
        display: none;
    }

    .ttb-breadcrumbs__separator,
    .ttb-breadcrumbs a {
        margin: 0 3px;
    }
}

/* Padding Values for TTB */

.ttb-theme-padding-none {
    padding: 0px !important;
    /* border: 1px solid red; */
}

.ttb-theme-padding {
    padding: 25px;
    /* border: 1px solid red; */
}

.ttb-theme-padding-right {
    padding-right: 15px;
    /* border: 1px solid red; */
}

.ttb-theme-padding-left {
    padding-left: 15px;
    /* border: 1px solid red; */
}

.ttb-theme-padding-top {
    padding-top: 15px;
    /* border: 1px solid red; */
}

.ttb-theme-padding-bottom {
    padding-bottom: 15px;
    /* border: 1px solid red; */
}



/* Temp Styles for Early Version to Fix PublishToolbox / DirectoryToolbox */

.qc-post-author {
	font-size: .70em;
	border-radius: 5px!important;
	border: 1px solid #ddd;
	padding: 5px;
	margin: 0px 10px 0px 0px;
}


ul.list-group {
    display: flex;
    flex-wrap: wrap; 
    list-style: none; 
    padding: 0; 
    margin: 0; 
    gap: 10px; 
}


li.list-group-item {
    flex: 1 1 200px; 
    max-width: calc(33.333% - 10px); 
    box-sizing: border-box;
    padding: 10px; 
    background: #f9f9f9;
    border: 1px solid #ccc; 
    border-radius: 5px; 
}

@media (max-width: 600px) {
    li.list-group-item {
        max-width: calc(50% - 10px);
    }
}

@media (max-width: 400px) {
    li.list-group-item {
        max-width: 100%; 
    }
}

form {
	background: none;
	box-shadow: none;
}


/* Fix for Mobile Menu Logo */

.mobile-menu-logo {
	flex: none;
}




/* Customizations for Directory / PTB */

.listing-item-container .listing-item-actions a {
    color: #fff!important;
}
.dtb-slide-item-actions a {
    color: #fff!important;
}

/****************************/
/*  Mobile Performance & UX Improvements */
/****************************/

/* Touch-friendly navigation improvements */
/* REMOVED: Problematic mobile styling section that was breaking shortcodes and plugins */

/* Tablet-specific improvements */
@media (min-width: 769px) and (max-width: 1024px) {
    .ttb-posts-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .ttb-home-container,
    .ttb-page-container,
    .ttb-post-container,
    .ttb-archive-container {
        padding: 0 20px;
    }
}

/* Performance optimizations */
@media (max-width: 768px) {
    /* Reduce animations on mobile for better performance */
    * {
        animation-duration: 0.3s !important;
        transition-duration: 0.3s !important;
    }
    
    /* Optimize images for mobile */
    .ttb-post-article img,
    .ttb-header-widget-area img {
        object-fit: cover;
        object-position: center;
    }
}

/****************************/
/*  Modern Typography Improvements */
/****************************/

/* Improved paragraph typography */
p {
    margin-bottom: 1.25em;
    line-height: var(--line-height-relaxed);
    font-size: var(--font-size-base);
    color: #2c2c2c;
}

/* Better spacing for content areas */
#ttb-content,
.ttb-post-content,
.ttb-page-content,
.entry-content {
    line-height: var(--line-height-relaxed);
    font-size: var(--font-size-base);
}

/* Improve readability for longer content */
#ttb-content p,
.ttb-post-content p,
.ttb-page-content p,
.entry-content p {
    margin-bottom: 1.5em;
    /* Removed max-width: 65ch to allow proper text wrapping around images */
}

/* Better list typography */
ul, ol {
    margin-bottom: 1.5em;
    padding-left: 1.5em;
}

li {
    margin-bottom: 0.5em;
    line-height: var(--line-height-normal);
}

/* Improved quote typography */
blockquote {
    font-size: var(--font-size-lg);
    line-height: var(--line-height-relaxed);
    font-style: italic;
    margin: 2em 0;
    padding: 1.5em 2em;
    border-left: 4px solid var(--primary-color);
    background: #f8f9fa;
    color: #555;
}

blockquote p {
    margin-bottom: 0;
}

blockquote cite {
    display: block;
    margin-top: 1em;
    font-size: var(--font-size-sm);
    font-style: normal;
    color: #666;
}

/* REMOVED: Global link styles that interfere with plugins */
/* Instead, link styles are properly scoped below to specific content areas */

/* Properly scoped content area links - won't interfere with plugins */
/* REMOVED: More broad content area link styling that was affecting shortcodes and plugins */

/* Archive and post listing links */
.ttb-post-title a,
.ttb-post-article a,
.ttb-archive-content a {
    color: var(--link-color);
    text-decoration: none;
    transition: color 0.2s ease;
}

.ttb-post-title a:hover,
.ttb-post-article a:hover,
.ttb-archive-content a:hover {
    color: var(--link-hover-color);
}

/* Sidebar widget links - scoped to avoid plugin conflicts */
.ttb-sidebar-widget-area a,
.ttb-sidebar-home a,
.ttb-sidebar-page a,
.ttb-sidebar-post a,
.ttb-sidebar-archive a {
    color: var(--link-color);
    text-decoration: none;
    transition: color 0.2s ease;
}

.ttb-sidebar-widget-area a:hover,
.ttb-sidebar-home a:hover,
.ttb-sidebar-page a:hover,
.ttb-sidebar-post a:hover,
.ttb-sidebar-archive a:hover {
    color: var(--link-hover-color);
    text-decoration: underline;
}

/* Better button typography */
button,
.button,
.btn,
input[type="submit"] {
    font-family: var(--font-family-primary);
    font-weight: 500;
    font-size: var(--font-size-base);
    letter-spacing: 0.025em;
}

/* Improved form typography */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="tel"],
textarea,
select {
    font-family: var(--font-family-reading);
    font-size: var(--font-size-base);
    line-height: var(--line-height-normal);
}

/* Better navigation typography - fix menu vertical alignment */
.ttb-navbar-nav a,
.nav-menu a,
.ttb-menu a,
.ttb-menu-second a,
.ttb-menu-top-bar a {
    font-family: var(--font-family-primary);
    font-weight: 500;
    letter-spacing: 0.025em;
    line-height: normal !important; /* Override global line-height changes */
}

/* Ensure main navigation maintains proper vertical alignment */
.ttb-navbar .ttb-menu a {
    line-height: normal !important;
    display: block;
    vertical-align: middle;
    margin: 5px 5px !important; /* Reduce vertical margin from 10px to 5px */
}

/* Fix secondary navigation alignment */
.ttb-second-navbar .ttb-menu-second a {
    line-height: normal !important;
    display: block;
    vertical-align: middle;
    margin: 5px 5px !important; /* Reduce vertical margin from 10px to 5px */
}

/* Fix top navigation alignment */
.ttb-top-bar-navbar .ttb-menu-top-bar a {
    line-height: normal !important;
    display: block;
    vertical-align: middle;
    margin: 3px 4px !important; /* Reduce vertical margin from 6px to 3px */
}

/* Improved mobile typography */
@media (max-width: 768px) {
    /* Optimize reading on mobile */
    #ttb-content,
    .ttb-post-content,
    .ttb-page-content,
    .entry-content {
        font-size: var(--font-size-base);
        line-height: var(--line-height-loose);
    }
    
    /* Better paragraph spacing on mobile */
    p {
        margin-bottom: 1.5em;
    }
    
    /* Ensure optimal line length on mobile */
    #ttb-content p,
    .ttb-post-content p,
    .ttb-page-content p,
    .entry-content p {
        max-width: 100%;
    }
    
    /* Better heading spacing on mobile */
    h1, h2, h3, h4, h5, h6 {
        margin-top: 1.25em;
        margin-bottom: 0.5em;
    }
    
    /* Blockquotes on mobile */
    blockquote {
        padding: 1em 1.5em;
        margin: 1.5em 0;
        font-size: var(--font-size-base);
    }
}

/****************************/
/*  Plugin-Safe Link Styling Guide */
/****************************/

/*
IMPORTANT: This theme uses SCOPED link styles to avoid conflicts with:
- WooCommerce buttons and links
- Contact forms (Contact Form 7, Gravity Forms, etc.)
- Social media plugins
- BuddyPress/bbPress links
- MemberPress checkout links
- Directory/listing plugins
- Any third-party plugin buttons or links

NEVER use global selectors like:
- a { ... }
- button { ... }
- input { ... }

ALWAYS scope link styles to specific content areas:
- #ttb-content a
- .ttb-post-content a
- .ttb-page-content a
- .ttb-home-content a
- .entry-content a
*/

/* Plugin-safe button styling for theme elements only */
.ttb-button,
.ttb-read-more,
.ttb-category-bubble,
.ttb-tag-bubble,
.ttb-pagination .page-numbers {
    display: inline-block;
    padding: 10px 20px;
    background-color: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.2s ease;
    font-weight: 500;
    border: none;
    cursor: pointer;
}

.ttb-button:hover,
.ttb-read-more:hover,
.ttb-category-bubble:hover,
.ttb-tag-bubble:hover,
.ttb-pagination .page-numbers:hover {
    background-color: var(--primary-hover-color);
    color: white;
    text-decoration: none;
    transform: translateY(-1px);
}

/* Navigation link styling - scoped to prevent conflicts */
.ttb-menu a,
.ttb-menu-second a,
.ttb-menu-top-bar a,
.ttb-footer-menu a,
.ttb-policy-menu a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
    line-height: normal; /* Maintain menu alignment */
}

.ttb-menu a:hover,
.ttb-menu-second a:hover,
.ttb-menu-top-bar a:hover,
.ttb-footer-menu a:hover,
.ttb-policy-menu a:hover {
    color: var(--primary-color);
    text-decoration: none;
}

/* Widget area links - scoped to theme widgets only */
.ttb-widget a,
.ttb-footer-widget a {
    color: var(--link-color);
    text-decoration: none;
    transition: color 0.2s ease;
}

.ttb-widget a:hover,
.ttb-footer-widget a:hover {
    color: var(--link-hover-color);
    text-decoration: underline;
}

/* Exclude plugin areas from theme link styling */
.woocommerce a,
.wpcf7 a,
.gform_wrapper a,
.bp-navs a,
.mepr-account-nav a,
.dtb-listing a,
.ptb-directory a {
    /* Let plugins handle their own link styling */
    color: inherit !important;
    text-decoration: inherit !important;
    font-weight: inherit !important;
    transition: inherit !important;
}

/* Mobile-specific plugin-safe improvements */
@media (max-width: 768px) {
    /* Only apply mobile touch targets to theme elements */
    .ttb-button,
    .ttb-read-more,
    .ttb-category-bubble,
    .ttb-tag-bubble,
    .ttb-widget a {
        min-height: 44px;
        min-width: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        /* padding: 12px 16px; */
    }
    
    /* Special handling for menu links - maintain original styling */
    .ttb-menu a,
    .ttb-menu-second a,
    .ttb-menu-top-bar a {
        min-height: 44px; /* Accessibility requirement */
        /* But maintain original display and padding from menu CSS */
        display: block !important;
        align-items: initial !important;
        justify-content: initial !important;
        /* Let menu CSS handle padding */
    }
    
    /* Ensure plugin buttons maintain their own styling */
    .woocommerce .button,
    .wpcf7-submit,
    .gform_button,
    .bp-primary-action,
    .mepr-submit {
        min-height: auto !important;
        min-width: auto !important;
        display: initial !important;
        align-items: initial !important;
        justify-content: initial !important;
        padding: initial !important;
    }
}

/****************************/
/*  Navigation Spacing Fixes */
/****************************/

/* Fix excessive vertical spacing in navigation caused by typography changes */
.ttb-navbar,
.ttb-second-navbar,
#ttb-topnavbar,
.ttb-top-bar-navbar {
    /* Ensure no extra padding/margin from typography changes */
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

.ttb-navbar-content,
.ttb-second-content,
.ttb-top-bar-content {
    /* Remove any extra spacing */
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

.ttb-menu,
.ttb-menu-second,
.ttb-menu-top-bar {
    /* Ensure menu containers don't add extra spacing */
    margin: 0 !important;
    padding: 0 !important;
}

.ttb-menu > li,
.ttb-menu-second > li,
.ttb-menu-top-bar > li {
    /* Remove any extra spacing from list items */
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}
