/*
Theme Name: Scroll Reader – Audiobook Theme 6-02
Theme URI: https://scrollreader.com
Author: Vexona
Author URI: https://vexona.com
Description: A clean, fast, and accessible audiobook-focused WordPress theme developed by Vexona for Scroll Reader.
Version: 6.2
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: scroll-reader
*/


body {
    margin: 0;
    font-family: "Roboto", "Arial", sans-serif;
    display: flex;
    min-height: 100vh;
    flex-direction: column;
    font-weight: 400;
    background-color: #fff;
}

.view-all-title{ margin-top:39px;}
/*
 * Fix for WordPress Admin Bar Overlapping Fixed Elements
 */

/* For standard desktop screens */
.admin-bar .site-header {
    top: 32px;
}

.admin-bar .vtsidebar {
    top: 97px; /* Header top (32px) + Header height (65px) */
    height: calc(100vh - 97px);
}

/* For smaller screens (where admin bar is taller) */
@media screen and (max-width: 782px) {
    .admin-bar .site-header {
        top: 46px;
		
    }

    .admin-bar .vtsidebar {
        top: 111px; /* Header top (46px) + Header height (65px) */
        height: calc(100vh - 111px);
    }
}

/* Spinner Styles */
#global-loading-progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 0;
    height: 4px;
    background-color: #2255a2;
    z-index: 10000;
    transition: width 0.4s ease-out;
    display: block;
    opacity: 1;
}

/* Header Styles */
.site-header {
    background-color: #fff;
    border-bottom: 1px solid #ccc;
    height: 65px;
    display: flex;
    align-items: center;
    padding: 0 20px;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1001;
	transition: top 0.3s ease, opacity 0.3s ease;
	padding-bottom:11px;
}

.header-container {
    display: flex;
    width: 100%;
    justify-content: flex-start;
    align-items: center;
}

.site-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    margin-left: -9px;
}

.site-logo img,
.custom-logo {
    max-height: 65px;
    height: auto;
    width: auto;
}

.site-title {
    display: none;
    margin-left: 10px;
    font-size: 1.5em;
    font-weight: bold;
    color: #000;
    text-decoration: none;
    align-self: center;
    transition: opacity 0.3s ease;
}

.site-tagline {
    font-size: 1em;
    color: #666;
    margin-top: 0.2em;
    line-height: 1.4;
    text-align: center;
    margin-left: 10px;
	font-style:italic;
}

.site-logo:hover,
.site-title:hover {
    opacity: 0.7;
}

.header-center {
    flex-grow: 1;
    display: flex;
    justify-content: center;
}

/* Content Styles */
#content {
    transition: transform 0.3s ease-in-out, margin-left 0.3s ease-in-out, width 0.3s ease-in-out;
    box-sizing: border-box;
    width: 96%;
    padding-top: 56px;
    transform-origin: top left;
    margin-left: 78px;
}

.content-area {
    margin-left: 0;
}

.post-content {
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
    font-size: 18px;
    font-family: sans-serif;
    color: #333;
}

.post-content p {
    padding: 10px 0;
}

/* Admin Styles */
.bible-reference input[type="number"],
.bible-reference input[type="text"],
.bible-reference select {
    width: auto;
    display: inline-block;
    margin-right: 10px;
}

.close-button {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.2em;
    color: #fff;
}

.view-series-page-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin-bottom: 10px;
    padding: 10px;
    background-color: #000;
    color: #333;
    border: 1px solid #ccc;
    border-radius: 5px;
    text-align: center;
    cursor: pointer;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.view-series-page-button:hover {
    background-color: #f1f1f1;
}

.view-series-page-button i {
    margin-right: 5px;
}


.row-subtitle {
    margin: 0 0 1em;
    font-size: 1rem;
    color: #666;
    max-width: 600px;
    line-height: 1.4;
}



#series-search {
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid #444;
    background-color: #444;
    color: #f1f1f1;
    border-radius: 5px;
}

/* Full Post Link Styles */
.full-post-link {
    margin-top: 20px;
    text-align: center;
}

.full-post-link a {
    display: inline-block;
    padding: 10px 20px;
    background-color: #444;
    color: #fff;
    border-radius: 5px;
    text-decoration: none;
    font-size: 14px;
    transition: background-color 0.3s;
}

.full-post-link a:hover {
    background-color: #555;
}

/* Featured Label Styles */
.featured-label {
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: gold;
    color: #fff;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 0.8em;
    font-weight: bold;
    display: flex;
    align-items: center;
}

.featured-label .fas {
    margin-right: 5px;
}

/* Loading Indicator Styles */
.loading-indicator {
    display: none;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin: 20px 0;
}

.loading-indicator .spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(0, 0, 0, 0.1);
    border-top: 4px solid #333;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Share Button Styles */
#share-list ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

#share-list ul li {
    margin-bottom: 10px;
}

#share-list ul li a {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 15px;
    background-color: #0073aa;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease, color 0.3s ease;
    font-size: 14px;
}

#share-list ul li a i {
    margin-right: 8px;
}

#share-list ul li a:hover {
    background-color: #005f8d;
    color: #fff;
}

/* Save Button */
.save-button {
    z-index: 9999;
    padding: 5px 10px;
    background-color: #0073aa;
    color: #fff;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    transition: opacity 2s ease-out;
}

.save-button.fade-out {
    opacity: 0;
}

/* Highlight */
.highlight {
    background-color: yellow;
}




/*Sidebar-menu*/
body.sidebar-open {
    overflow: hidden; /* Disable body scroll */
}

/* Initially hide the "More" section content */
/* Initially hide the "More Options" section content */
/* Initially hide the "More" section content */
.unique-menu-hidden {
    display: none;
}

/* Toggle the icon rotation */
#unique-more-toggle i {
    transition: transform 0.3s;
}

#unique-more-toggle.expanded i {
    transform: rotate(180deg); /* Rotate icon when expanded */
}

/* END Initially hide the "More" section content */

.vtsidebar {
    position: fixed;
    top: 74px; /* Start below the header */
    left: 0;
    width: 250px;
    /* THE FIX: The value subtracted MUST match the 'top' property */
    height: calc(100vh - 74px); 
    overflow-y: auto;
    overflow-x: hidden;
    background-color: #fff;
    color: #000;
    z-index: 1000;
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1);
    transition: width 0.3s;
}


#continue-listening-heading {margin-top:-2px;margin-left:17px;font-size:20px;color:#1B5E20;}



.audiobook-length, .author-name {
    position: absolute;
    padding: 5px 10px;
    font-size: 11px;
    background: rgba(0, 0, 0, 0.7); /* Slightly darker background for better legibility */
    color: #fff;
    border-radius: 5px; /* Slightly larger radius for a softer look */

}

.audiobook-meta .audiobook-length {
    bottom: 10px;
    left: 10px;
	font-size: 0.65em;
    color: #eaeaea;
    margin-left: 5px;
}

.author-name {
    bottom: 10px;
    right: 10px;
}




/* End sidebar-menu */
/* content-audiobook-post.css */

.vtsidebar:not(.vtclosed) {
    overflow-y: auto;
}

.vtsidebar.vtclosed {
    width: 60px;
}

.vtpin-unpin-container {
    display: none;
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 1010;
    justify-content: flex-end;
    align-items: center;
    padding: 10px;
}

.vtsidebar:not(.vtclosed) .vtpin-unpin-container {
    display: flex;
}

.vtpin-unpin {
    cursor: pointer;
    background-color: #fff;
    text-align: right;
    visibility: visible;
}

.vtpin-unpin i {
    color: #000;
    font-size: 1.5em;
}

.vtmenu-section {
    padding: 10px 0;
    border-top: 1px solid #333;
    width: 90%;
    margin: 0 auto;
}

.vtmenu-title {
    padding: 10px 15px;
    font-size: 1.1em;
    font-weight: bold;
    height: 20px;
    visibility: visible;
    white-space: nowrap;
}

.vtsidebar.vtclosed .vtmenu-title {
    visibility: hidden;
}

.vtmenu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.vtmenu li {
    position: relative;
    cursor: pointer;
    transition: background-color 0.3s;
    font-size: 1.0em;
}

.vtmenu li:hover {
    background-color: #f0f0f0;
}

.vtmenu li a {
    display: flex;
    align-items: center;
    width: 100%;
    height: 100%;
    padding: 15px;
    color: inherit;
    text-decoration: none;
    transition: padding 0.3s, background-color 0.3s;
}

.vtsidebar.vtclosed .vtmenu li a {
    padding: 15px 10px;
}

.vtmenu li a:hover {
    text-decoration: none !important;
}

.vtmenu li a i {
    margin-left: 5px;
    margin-right: 15px;
    font-size: 1.1em;
}

.vtmenu li a .vtmenu-text,
.vtmenu li a .menu-text {
    font-size: 16px;
    white-space: nowrap;
    visibility: visible;
    transition: opacity 0.3s, width 0.3s;
}

.vtsidebar.vtclosed .vtmenu li a .vtmenu-text,
.vtsidebar.vtclosed .vtmenu li a .menu-text {
    visibility: hidden;
    opacity: 0;
    width: 0;
}

.vtmenu-item.vtactive i {
    color: black;
}

.vtmenu-item:not(.vtactive) i {
    color: grey;
}

.vtsidebar::-webkit-scrollbar {
    width: 8px;
}

.vtsidebar::-webkit-scrollbar-thumb {
    background-color: #bbb;
    border-radius: 4px;
}

.vtsidebar::-webkit-scrollbar-thumb:hover {
    background-color: #888;
}

.vtpin-unpin[title]:hover::after {
    content: attr(title);
    position: absolute;
    left: -100px;
    top: 10px;
    background: #333;
    color: #fff;
    padding: 5px;
    border-radius: 3px;
    white-space: nowrap;
    z-index: 1001;
    font-size: 12px;
}

/* Initially hide the close button */
#sidebarHamburger {
    display: none;
position: fixed;
    top: 10px;
    right: 10px;
    font-size: 41px;
    background-color: transparent;
    color: #000;
    border: none;
    cursor: pointer;
    z-index: 1001;
    margin-right: 15px;
}

/* Show the close button when the sidebar is open and only on mobile */
@media (max-width: 1024px) {
    .vtsidebar:not(.vtclosed) #sidebarHamburger {
        display: block; /* Show the button when the sidebar is open */
    }
}



.hamburger-menu {
    display: none;
}

.search-form {
    display: flex;
    align-items: center;
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
}

.search-form input {
    flex: 1;
    padding: 10px;
    font-size: 1em;
    border: 1px solid #ccc;
    border-radius: 16px 0 0 16px;
    box-shadow: none;
    outline: none;
}

.search-form button {
    padding: 10px 20px;
    border: 1px solid #ccc;
    border-left: none;
   background: linear-gradient(135deg, #0a4771 0%, #1976a5 100%);
    color: #fff;
    font-size: 1em;
    cursor: pointer;
    border-radius: 0 16px 16px 0;
    box-shadow: none;
    outline: none;
    transition: background-color .3s, border-color .3s;
}

.search-form button:hover {
    background-color: #000;
    border-color: #cc2336;
}

.search-container {
    display: flex;
    align-items: center;
    position: relative;
    justify-content: center;
    width: 100%;
}

.search-icon {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.5em;
}


/* content-audiobook-post.css */

.post-thumbnail img {
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

.progress-bar-container {
    position: absolute;
    bottom: 4px;
    left: 0;
    width: 100%;
    height: 8px;
    background-color: #e0e0e0;
    border-radius: 0 0 10px 10px;
    overflow: hidden;
    z-index: 2;
}

.progress-bar {
    height: 100%;
    background-color: #27ae60;
    transition: width 0.3s ease;
}

.progress-bar[data-progress="100"] {
    background-color: #28a745;
}

.progress-percentage {
    display: none;
}

.post-details a {
    text-decoration: none;
    color: #555;
    transition: color 0.3s ease;
}

.post-details a:hover {
    color: #333;
}


/* Home page and view all CSS */
#tags-filter-container {
    overflow-x: auto;
    white-space: nowrap;
    margin-top: 28px;
}

#tags-filter {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

#tags-filter .tag {
    padding: 10px 20px;
    background-color: #fff;
    border: none;
    cursor: pointer;
    border-radius: 5px;
    white-space: nowrap;
    border: 1px solid #1d8dca;
    border-radius: 16px;
}

#tags-filter .tag.active {
    background-color: #333;
    color: #fff;
}

#tags-filter .tag:hover {
    background-color: #1f6ab0; /* Main theme color */
    color: #fff; /* Text turns white on hover */
}

.content-section {
    margin-bottom: 40px;
    margin-left: 15px;
}

.post-row-container {
    position: relative;
	margin-bottom:-3px;
}

.post-row {
    display: flex;
    overflow-x: auto;
    gap: 20px;
    scroll-behavior: smooth;
}

.post-row::-webkit-scrollbar {
    display: none;
}

.post-row-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(265px, 1fr));
    gap: 20px;
}

#continue-listening-container .post-row .post-item {height:127px;width:129px;}

.post-item {
    width: 213px;
    flex: 0 0 auto;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    transition: all 0.3s ease;
}

.post-thumbnail {
    display: block;
    position: relative;
}

.post-thumbnail img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    transition: opacity 0.3s ease;
}

.post-thumbnail:hover img {
    opacity: 0.7;
}

.duration {
    bottom: 10px;
    right: 10px;
}

.series-parts {
    position: absolute;
    top: 10px;
    right: 10px;
}

.post-details {
    padding: 10px 10px 2px 10px;
    text-align: left;
}

/* remove the clamp on the entire info block */
.post-item .post-info {
  overflow: hidden;
}

/* clamp the title to 2 lines */
.post-title {
    font-size: 16px;
    margin: 10px 0 4px;           /* tighten bottom margin so author sits close */
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;        /* limit to 2 lines */
    overflow: hidden;
    text-overflow: ellipsis;
    word-wrap: break-word;
    word-break: break-word;
    overflow-wrap: break-word;
}
#topic-title {display:none;}

/* title link styling */
.post-title a {
    display: block;
    text-decoration: none;
    color: #333;
    white-space: normal;           /* allow wrapping */
	margin-top:6px;
}

/* author always shows on one line under the title */
.post-info .post-author {
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}


/* optionally reset margins so the math is exact */
.post-item .post-info .post-title,
.post-item .post-info .post-author {
  margin: 0;
}

.post-author {
    font-size: 0.9em;
    color: #666;
    margin-top: -4px;
}

.post-author a {
    font-weight: bold;
}

.audiobook-length {
    font-size: 0.85em; /* Make it smaller */
    color: #666; /* A lighter color to differentiate */
    margin-left: 5px;
}

.audiobook-length i {
    margin-right: 3px; /* Add space between the clock icon and the text */
}

.arrow-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: #0a4771;
    color: #fff;
    border-radius: 24px;
    padding: 11px;
    cursor: pointer;
    z-index: 1;
    display: none;
    bordeR: none;
}

.arrow-button.left {
    left: 10px;
}

.arrow-button.right {
    right: 10px;
}

.arrow-button i {
    font-size: 16px;
}

#about-us-section {
    background-color: #f8f9fa; /* Light background color */
    padding: 30px;
    border-top: 2px solid #1f6ab0; /* Border to match your main color */
    margin-top: 40px;
    text-align: center;
}

#about-us-section h2 {
    color: #1f6ab0;
    font-size: 2em;
    margin-bottom: 20px;
}

#about-us-section p {
    font-size: 1.1em;
    line-height: 1.6;
    color: #333;
    max-width: 600px;
    text-align: center;
    margin: 0 auto;
}

/* Home page 'Consider listening to' */
.consider-box {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    background: linear-gradient(90deg, #3f6ab0, #1d8dca);
    margin-bottom: 20px;
    width: 311px;
    box-sizing: border-box;
	max-height: 125px;
}

.considerheading {
    margin: 0;
    font-size: 1.0em;
    color: #f1f1f1;
}

.consider-description {
    margin-top: 10px;
    font-size: 11px;
    color: #fff;
	width:244px;
}

.consider-description a {
    display: inline-block;
    padding: 10px 10px;
    background-color: #ffffff;
    color: #004080;
    border: 2px solid #004080;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    text-align: center;
    transition: background-color 0.3s, color 0.3s;
    text-transform: capitalize;
    margin-top: 4px;
}

.consider-description a:hover {
    background-color: #004080;
    color: #ffffff;
    border-color: #004080;
}

.post-category {
    position: absolute;
    top: 1px;
    right: -1px;
    background-color: #333;
    color: #fff;
    padding: 5px 10px;
    border-radius: 5px;
    z-index: 3;
    font-size: 12px;
}

.post-category a {
    color: #fff;
    text-decoration: none;
}

.post-category a:hover {
    text-decoration: underline;
}

/* Right Menu Language Button */
.header-right {
    margin-right: 32px;
}

.language-btn {
    background-color: #fff;
    color: #333;
    border: 1px solid #333;
    padding: 10px;
    font-size: 1em;
    display: flex;
    align-items: center;
    cursor: pointer;
    border-radius: 16px;
    position: relative;
    transition: background-color 0.3s ease;
	
text-decoration:none !important;
}

.language-btn:hover {
    background-color: #0d4e88;
    color: #fff;
}

.language-btn i {
    margin-right: 5px;
}

.language-text {
    display: inline-block;
}

.language-dropdown {
    display: none;
    position: absolute;
    top: calc(49% + 3px);
    right: 50px;
    background-color: white;
    border: 1px solid #ccc;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    list-style: none;
    padding: 10px;
    border-radius: 5px;
    min-width: 150px;
    transition: all 0.3s ease;
}

.language-dropdown li {
    padding: 10px;
}

.language-dropdown li a {
    color: #333;
    text-decoration: none;
    transition: background-color 0.3s ease, color 0.3s ease;
    padding: 5px 10px;
    display: block;
}

.language-dropdown li a:hover {
    background-color: #f4f4f4;
    color: #000;
}

.language-selector.active .language-dropdown {
    display: block;
}

.post-row .post-item {

    transition: box-shadow 0.3s ease-in-out;
}
@media (min-width: 1024px) {
    .post-row .post-item {
        height: 298px;
    }
}

/* back button */
.back-button {
    margin-bottom: 10px;
    padding: 7px 0;
	margin-top:16px;
}

.back-button .back-link {
    display: inline-block;
    color: #333;
    text-decoration: none;
    font-size: 14px;
    border-radius: 4px;
    font-weight: bold;
    transition: background-color 0.3s ease;
	margin-left:11px;
	margin-top:11px;
}

.back-button .back-link:hover {
    color: #144a7d; /* Darker shade for hover effect */
}

.back-button .back-link i {
    margin-right: 8px; /* Space between the arrow icon and the text */
    font-size: 16px;
    vertical-align: middle;
}

/* end back up button */


.post-row .post-item.also-consider {
    background-color: #e8f5e9; /* Change this color as needed */
}
#continue-listening-container {
    margin-left: 15px;
    padding: 8px;
    margin-left: 0px;
    display: flex;
    overflow-x: auto;
    gap: 20px;
    scroll-behavior: smooth;
    padding-bottom: 1px;
    background-color: #E8F5E9;
    padding-top: 13px;
    padding-left: 10px;
    border-radius: 12px;
	}


#history-list-main-page {
    list-style: none !important;
    padding: 0 !important;
    display: flex !important;
    overflow-x: auto !important;
    scroll-behavior: smooth !important;
    white-space: nowrap !important; /* Ensures items stay in a single line */
}

#history-list-main-page .post-item {min-width:calc(30% - 15px)}

#history-container {
    max-width: 800px;
    margin: 20px auto;
    padding: 20px;
    margin-top: 60px;
    width: 80%;
}
#history-continue-listening {
	    font-family: 'Helvetica Neue', Arial, sans-serif;
    font-size: 17px;
    font-weight: bold;
    color: #0a4771;
    letter-spacing: 0.5px;
    line-height: 1.4;
    margin-left: 20px;
    margin-top: -20px;
    padding-top: 9px;
}

#history-container-main-page {
	    background-color: #E0EFD7;
    padding-bottom: 9px;
    border-bottom: 1px solid #0a4771;
    border-top: 1px solid #0a4771;
    padding-top: 16px;
    margin-top: -10px;
}
#history-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

#history-controls {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    margin-bottom: 20px;
}

#clear-history {
    background-color: #f00;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    padding: 10px 15px;
}

#clear-history:hover {
    background-color: #c00;
}

#history-list {
    list-style: none;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.history-item {
    flex: 1 1 calc(12.5% - 20px); /* 8 items per row */
    max-width: calc(12.5% - 20px);
    overflow: hidden;
    position: relative;
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.history-item:hover {
    background-color: #f0f0f0;
}
.history-item .item-thumbnail:hover img {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3); /* Add a subtle shadow */
    filter: brightness(0.8); /* Slightly brighten the image */
}
.history-item .progress-bar-container {bottom:0px;}
.history-item a {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    width: 100%;
    color: inherit;
}

.history-item .item-thumbnail {
    position: relative;
    width: 100%;
}

.history-item .item-thumbnail img {
    width: 100%;
    height: auto;
    display: block;
	border-radius:14px;
}

.history-item .item-thumbnail .item-type {
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: #007bff;
    color: white;
    padding: 5px 10px;
    font-size: 14px;
    border-radius: 3px;
    white-space: nowrap;
}

.history-item .item-details {
    padding: 20px;
    text-align: left;
    width: 100%;
}

.history-item h3.post-title {
    color: #333;
    margin: 10px 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}
.history-item .item-details {display:none;}
.history-item p.post-author {
    margin: 0;
    color: #666;
}
.taxonomy-description {max-width:700px;text-align:justify;}

/* Preloader Styles */
.history-placeholder {
    flex: 1 1 calc(20% - 20px);
    max-width: calc(20% - 20px);
    height: 200px;
    margin-bottom: 10px;
    background: linear-gradient(90deg, #eee 30%, #ddd 50%, #eee 70%);
    background-size: 200% 100%;
    border-radius: 4px;
    animation: loading-shimmer 1.2s infinite alternate;
}
.rowheading {font-size:20px;}
.taxonomy-description p{padding:10px;}


.close-button {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 24px;
    background-color: transparent;
    color: #000;
    border: none;
    cursor: pointer;
    z-index: 1001;
}




@keyframes loading-shimmer {
    0% {
        background-position: -100% 0; 
    }
    100% {
        background-position: 100% 0; 
    }
}

@media (max-width: 768px) {
    .history-item, .history-placeholder {
        flex: 1 1 calc(50% - 20px);
        max-width: calc(50% - 20px);
    }
}

@media (max-width: 480px) {
    .history-item, .history-placeholder {
        flex: 3 0 32%;
        max-width: 100%;
    }
	#history-header h1 {font-size:21px;}
	#history-header {margin-top:16px;padding-left:12px;}
	#history-list-main-page .post-item {max-width:106px;margin-bottom: 11px;}
	#tags-filter-container {margin-top:12px;}
}





/* Show only the icon on mobile */
@media (max-width: 768px) {
    .language-text {
        display: none;
    }
}

/* iPad Mini in Portrait Orientation */
@media only screen and (min-device-width: 744px) and (max-device-width: 834px) and (orientation: portrait) {
    .post-item {
        min-width: calc(35% - 15px) !important;
        margin-left: 19px;
    }
    .consider-box {
        display: none;
    }
    .post-row {
        gap: 3px;
    }
}

@media (min-width: 768px) { 
    /* Styles for larger screens if needed */
    .post-category {
        font-size: 12px;
    }
}

@media (max-width: 768px) {
    .vtsidebar {
        width: 100vw;
        /* THE FIX: Calculate height to fit perfectly below the header */
        height: calc(110vh - 74px); 
        overflow-y: auto;
        background-color: #fff;
        box-sizing: border-box;
        /* "touch-action" removed as it can cause scroll issues */
        user-select: none;
        z-index: 9999;
        /* "margin-top" removed as it's no longer needed for positioning */
        padding-bottom: 40px; /* Keep the padding for internal spacing */
    }
    #continue-listening-heading {
        display: block;
        margin-left: 13px;
        margin-top: -3px;
        font-size: 20px;
    }
	#continue-listening-container .post-item {
		min-width:calc(36% - 15px)!important;margin-left:12px !important;
	}
	#continue-listening-container .post-item .post-info {display:none;}
#continue-listening-container .post-category {display:none;}
.progress-bar-container {height:5px;}

    .header-right {
        display: none;
    }
}
.back-button .back-link {}

@media (max-width: 1024px) {
    .hamburger-menu {
        display: block;
        font-size: 27px;
    }
    .vtsidebar {
        width: 100%;
        zoom: 1.0;
    }
	.vtmenu li a .vtmenu-text, .vtmenu li a .menu-text {font-size:20px;}
    .vtsidebar.vtclosed {
        width: 0;
        transition: width 0.3s;
    }
    .vtpin-unpin-container {
        display: none !important;
    }
    .custom-logo {
        max-height: 56px !important;
        margin-left: 13px;
    }
    #content {
        margin-left: 0 !important;
    }
    .site-logo {
        margin-left: 23px;
    }
    .site-tagline {
        display: none;
    }
    .book-cover-container {
        text-align: center;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .search-icon {
        display: inline-block;
    }
    .search-form {
        display: none;
        position: fixed;
        top: 56px;
        left: 0;
        width: 90%;
        height: auto;
        background: #fff;
        padding: 20px;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
        z-index: 1000;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }
    .search-form.active {
        display: flex;
    }
    .search-form input {
        width: 100%;
        margin-bottom: 10px;
        border-radius: 4px;
    }
    .search-form button {
        width: 100%;
        border-radius: 4px;
    }
}

@media (max-width: 768px) {
    .post-item {
        min-width: calc(65% - 15px);

        margin-left: 20px;
    }
    .arrow-button {
        display: none !important;
    }
	.post-row {gap: 2px !important;}
}

@media (max-width: 480px) {
    .post-item {
        width: calc(64% - 10px);
    }
	#continue-listening-container .post-item {width:130px !important;}
	#content h1 {    margin-left: 10px;margin-top:25px;
    font-size:24px;}
	#continue-listening-container .post-row .post-item {height:143px;}
}



.filtered-topic-section {

}

@media (max-width: 768px) {
  .filtered-topic-section {
    margin-left: 0px;
  }
}



/* ===== Chapters row styling ===== */
.chapters-row .post-row{
    white-space:nowrap;
}

.chapter-card,
.chapter-card *{            /* allow wrapping inside card */
    white-space:normal;
}

.chapter-card{
    display:inline-block;
    width:260px;            /* wider for long titles */
    height:150px;
    margin:0 10px;
    padding:16px 18px 18px;
    border-radius:12px;
    color:#fff;
    position:relative;
    overflow:hidden;
    box-shadow:0 4px 12px rgba(0,0,0,.14);
    transition:transform .2s ease;
}
.chapter-card:hover{transform:translateY(-4px);}
.chapter-card a{color:inherit;text-decoration:none;}

/* title: up to two lines, ellipsis after */
.chapter-title{
    font-size:1rem;
    font-weight:600;
    margin:0 0 6px;
    line-height:1.25;
    overflow:hidden;
    display:-webkit-box;
    -webkit-box-orient:vertical;
    -webkit-line-clamp:2;
}

/* author + date */
.chapter-author{font-size:.85rem;margin:0 0 4px;opacity:.9;}
.chapter-date{font-size:.75rem;opacity:.8;position:absolute;bottom:12px;right:18px;}

/* harmonious blue‑based gradients (rotating every 5 cards) */
.chapter-card:nth-child(5n+1){background:linear-gradient(135deg,#0a4771,#1976a5);}
.chapter-card:nth-child(5n+2){background:linear-gradient(135deg,#0a4771,#1490c8);}
.chapter-card:nth-child(5n+3){background:linear-gradient(135deg,#0a4771,#1a638d);}
.chapter-card:nth-child(5n+4){background:linear-gradient(135deg,#0a4771,#0d5b83);}
.chapter-card:nth-child(5n+5){background:linear-gradient(135deg,#0a4771,#1280b2);}



/* page-view-all-audiobook.php CSS */
/* page-view-all-audiobook.php CSS */
/* ────────── GRID CONTAINER ────────── */
#post-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 24px;
}

/* ────────── GRID CARD STYLES ────────── */
.va-item {
  flex: 0 1 240px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  transition: transform .2s;
}
.va-item:hover {
  transform: translateY(-4px);
}
.va-thumb {
  width: 100%;
  height: 241px;
  overflow: hidden;
  border-bottom: 1px solid #eee;
  border-radius: 10px 10px 0px 0px;
}
.va-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.va-details {
  padding: 10px;
}
.va-title {
  font-size: 1rem;
  font-weight: 600;
  margin: 8px 0;
  line-height: 1.3;
}
.va-title a {
  color: #222;
  text-decoration: none;
}
.va-title a:hover {
  text-decoration: underline;
}
.va-meta {
  display: flex;
  gap: 6px;
  font-size: 0.85rem;
  color: #555;
}
.va-meta span {
  flex: 1;
  background: #f7f7f7;
  padding: 4px 6px;
  border-radius: 4px;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ────────── FILTER CONTROLS ────────── */
#filter-controls {
  margin-bottom: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}
.filter-control {
  position: relative;
  flex: 1 1 200px;
  max-width: 200px;
}
.filter-control i {
  position: absolute;
  top: 50%;
  left: 10px;
  transform: translateY(-50%);
  color: #888;
  pointer-events: none;
}
.filter-control select,
.filter-control input {
  width: 100%;
  padding: 8px 8px 8px 36px;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-size: 14px;
}
#sort-toggle,
#toggle-view {
  padding: 8px 12px;
  background: #1f6ab0;
  color: #fff;
  border: none;
  border-radius: 5px;
  font-size: 14px;
  cursor: pointer;
  white-space: nowrap;
}

/* ────────── RESPONSIVE ────────── */
@media (max-width: 1024px) {
  .va-item { flex: 0 1 calc(33.333% - 24px); }
}
@media (max-width: 768px) {
  .va-item { flex: 0 1 calc(50% - 24px); }
}
@media (max-width: 480px) {
  .va-item { flex: 0 1 calc(50% - 20px); margin-left:5px;}
  #post-grid {padding-left:11px;}
  #filter-controls {
    flex-direction: column;
    align-items: stretch;
  }
  .site-header {padding-bottom:2px;
  		padding-bottom: 2px;
        height: 57px;
        border-bottom: none;
  }
  .vtsidebar {margin-top:-75px;}
  .filter-control {
    max-width: none;
    flex: 1 1 100%;
  }
  #sort-toggle,
  #toggle-view {
    width: 100%;
    text-align: center;
  }
  .page-template-page-view-all-audiobooks #content h1 {text-align:center;}
}

.filtersearch {padding-right:47px;}
/* end page-view-all-audiobook.php CSS */
/* end page-view-all-audiobook.php CSS */


@media (max-width: 480px) {
	.va-thumb {height: 172px;}
}


/* Wrapper holds the row and arrows */
#chapters-wrapper {
  position: relative;
  overflow: hidden;
  padding: 1rem 0;
}

/* Horizontal scrolling row */
#chapters-wrapper .post-row {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  gap: 1rem;
  padding-bottom: 0.5rem;
}

/* Hide native scrollbar */
#chapters-wrapper .post-row::-webkit-scrollbar {
  display: none;
}
#chapters-wrapper .post-row {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* Individual cards */
.chapter-card {
  flex: 0 0 68%;
  scroll-snap-align: start;
  background: #fff;
  border-radius: 0.5rem;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  transition: transform 0.2s;
}
.chapter-card:hover {
  transform: translateY(-4px);
}

/* Responsive sizes */
@media (min-width: 600px) {
  .chapter-card {
    flex: 0 0 45%;
  }
}
@media (min-width: 1024px) {
  .chapter-card {
    flex: 0 0 16%;
  }
}

/* Arrow buttons */
#chapters-wrapper .arrow-button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.9);
  border: none;
  padding: 0.5rem;
  font-size: 1.25rem;
  cursor: pointer;
  z-index: 10;
  border-radius: 50%;
}
#chapters-wrapper .arrow-button.left {
  left: 0.5rem;
}
#chapters-wrapper .arrow-button.right {
  right: 0.5rem;
}

/* Optional: disable arrows when at ends */
#chapters-wrapper .arrow-button:disabled {
  opacity: 0.3;
  cursor: default;
}

/* Heading and subtitle spacing */
.rowheading {
    font-size: 1.25rem;
    margin-bottom: 0.25rem;
    margin-left: 6px;
    padding-bottom: 6px;
}
.row-subtitle {
  font-size: 1rem;
  color: #666;
  margin-bottom: 1rem;
  max-width: 45rem;
}



/* Wrapper for the skip forward button and its settings */
.skip-control-wrapper {
    position: relative; /* This is crucial for positioning the popover */
    display: inline-flex;
    align-items: center;
}

/* The settings icon button next to skip forward */
#skip-time-config-trigger {
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: 10px;
    line-height: 20px;
    text-align: center;
    cursor: pointer;
    padding: 0;
    z-index: 2; /* Sits above the main button */
    transition: transform 0.2s ease;
	        background-color: #f1f1f1;
        border: 1px solid blue;
}

#skip-time-config-trigger:hover {
    transform: scale(1.1) rotate(45deg);
}

/* The popover container, hidden by default */
.skip-time-popover {
    display: none; /* Hidden initially */
    position: absolute;
    bottom: calc(100% + 10px); /* Position above the button with 10px gap */
    left: 50%;
    transform: translateX(-50%);
    background-color: #333;
    color: white;
    padding: 10px 15px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.25);
    z-index: 10;
    white-space: nowrap; /* Prevents the label and select from wrapping */
}

/* The little triangle pointing down from the popover */
.skip-time-popover::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-width: 6px;
    border-style: solid;
    border-color: #333 transparent transparent transparent;
}

/* The class we'll toggle with JavaScript to show the popover */
.skip-time-popover.is-active {
    display: block;
}

/* Styling for the label and select inside the popover */
.skip-time-popover label {
    margin-right: 8px;
    font-size: 14px;
}

.skip-time-popover select {
    background-color: #555;
    color: white;
    border: 1px solid #777;
    border-radius: 4px;
    padding: 2px 4px;
}

/* ==========================================================
   Responsive Fix for Skip Time Icon on Mobile
   ========================================================== */
@media (max-width: 768px) {

    #skip-time-config-trigger {
right: 2px;
        top: -25px;
        width: 22px;
        height: 22px;
        font-size: 11px;
        line-height: 18px;
        background-color: #f1f1f1;
        border: 1px solid blue;
    }

}


/* Reserve space for Continue Listening to prevent layout shift */
#history-container-main-page,
#continue-listening-container {
  min-height: 145px;   /* adjust this to exactly the height of your .post-item row */
}

/* If you want to hide any overflow while it’s loading: */
#history-container-main-page .post-row,
#continue-listening-container .post-row {
  overflow: hidden;
}


Here's your CSS scoped under `#favorites-section`:

```css
@media (max-width: 480px) {
    #favorites-section .post-item {
        width: calc(99% - 10px);
    }
}

@media (max-width: 768px) {
    #favorites-section .post-item {
        min-width: calc(94% - 15px);
        margin-left: 5px;
    }

    #favorites-section .post-row-grid {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(173px, 1fr));
        gap: 12px;
    }
}
```
