/*
Theme Name: Tinh Hoa Co Vat
Theme URI: http://tinhhoacovat.com
Author: Your Name
Author URI: http://yourwebsite.com
Description: Theme for displaying ancient artifacts and books
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: tinhhoacovat
*/
body {
	background-color: #f5f5f5;
	padding: 0 0 20px 0;
	margin: 0;
	font-family: Arial, sans-serif;
}
.page-wrapper {
	max-width: 1140px;
	margin: 0 auto;
	background: white;
	box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
}
.header-container {
	max-width: 1140px !important;
	margin: 0 auto;
	padding: 0 !important;
}
.nav-container {
	background-color: #38358c;
	padding: 5px 0 0 0;
}
.nav-container a {
	color: white;
	transition: color 0.3s ease;
	text-transform: uppercase;
}
.nav-container a:hover {
	color: red;
	text-decoration: none;
}	
.main-content a {
	color: red;
}
.main-content a:hover {
	text-decoration: underline;
}
/*--------Style cho menu ngang---------------*/
.collection-link {
	color: red;
	font-weight: bold;
	text-decoration: none;
	padding: 2px 5px;
	transition: background-color 0.3s ease;
}
.collection-link:hover {
	background-color: yellow;
}
.read-button{
	background-color: #38358c;
	color: white;
	padding: 12px 40px;
	border: none;
	border-radius: 5px;
	font-size: 1.1em;
	transition: background-color 0.3s ease;
	margin-top: auto;
}
.read-button:hover{
	background-color: #2a2876;
	color: white;
}
/*-------------Form liên hệ------------------*/
.wpcf7-submit {
	background-color: #38358c;
	color: white;
	padding: 12px 40px;
	border: none;
	border-radius: 5px;
	font-size: 1.1em;
	transition: background-color 0.3s ease;
	margin-top: auto;
}
.wpcf7-submit:hover {
	background-color: #2a2876;
	color: white;
}
/*---------Trang giới thiệu-----------------*/
.swiper-wrapper {
    display: flex !important;
}
.swiper 
{
    width: 100%;
    height: 500px;
}
.swiper-slide {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100%;
    width: 100%;
    overflow: hidden;
}

.swiper-slide-img-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 70%; /* Adjust percentage as needed */
    margin-bottom: 10px;
}

.swiper-slide img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.slide-caption {
    width: 100%;
    text-align: center;
    padding: 5px;
    font-size: 16px;
}
/*----------------Style cho footer-------------------*/
.social-music-container {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 15px;
}

.social-music-container .social-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 15px;
}

.social-music-container .social-links li a {
    color: #38358c;
    font-size: 20px;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    text-decoration: none !important;
}

.social-music-container .social-links li a:hover {
    color: red;
}
#music-toggle {
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    background: #f0f0f0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    position: relative;
    text-decoration: none !important;
}
/*--------Trang hiển thị tất cả các comment----------*/	
.comment-section {
	max-width: 800px;
	margin: 0 auto;
}
.comment-card {
	border-left: 3px solid #38358c;
	margin-bottom: 20px;
	padding: 15px;
	background-color: #f8f9fa;
}
.comment-header {
	border-bottom: 1px solid #dee2e6;
	padding-bottom: 8px;
	margin-bottom: 10px;
}
.user-avatar {
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background-color: #38358c;
	color: white;
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: bold;
}
.comment-time {
	color: #6c757d;
	font-size: 0.9em;
}
.post-title {
	color: #38358c;
	text-decoration: none;
}
.post-title:hover {
	text-decoration: underline;
}
/*--------------Trang details sách-------------------*/
/* Import styles from details.html, keeping PDF viewer specific styles */
.book-section {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem;
}
.book-image-container {
    padding-right: 2rem;
}
.book-image {
	padding-top:0.75rem;
    max-width: 100%;
    height: 400px;
    object-fit: cover;  /* This ensures the image covers the area without distortion */
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}
.book-details {
    display: flex;
    flex-direction: column;
    height: 100%;
}
.chapter-list {
    list-style: none;
    padding: 0;
    margin-top: 1rem;
}
.chapter-list li {
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}
.chapter-list a {
    color: #38358c;
    text-decoration: none;
    transition: color 0.3s ease;
}
.chapter-list a:hover {
    color: red;
    text-decoration: underline;
}

.book-title {
    color: #38358c;
    font-size: 1.8em;
    margin-bottom: 20px;
}
.comments-section {
max-width: 900px;
margin: 3rem auto;
padding: 0;
background-color: #f8f9fa;
border-radius: 8px;
}
.comment {
background: white;
padding: 1rem;
margin-bottom: 1rem;
border-radius: 5px;
box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}
.comment-form {
background: white;
padding: 1.5rem;
border-radius: 5px;
box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}
.comment-header {
display: flex;
justify-content: space-between;
margin-bottom: 0.5rem;
color: #666;
font-size: 0.9em;
}
.comment-content {
margin-bottom: 0;
}
.pdf-viewer-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0,0,0,0.9);
    z-index: 9999;
}
.pdf-content {
    width: 100%;
    height: 100%;
    padding: 40px;
    position: relative; /* Thêm position relative */
}
.control-buttons {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 1000;
    display: flex;
    gap: 10px;
}

.play-button, .close-button {
    padding: 5px 10px;
    border: none;
    background: rgba(0, 0, 0, 0.5);
    color: white;
    cursor: pointer;
    border-radius: 4px;
}

.play-button:hover, .close-button:hover {
    background: rgba(0, 0, 0, 0.7);
}

._df_book {
    height: 100% !important;
}
.read-button-container {
    display: inline-block;
}
/*--------giảm khoảng trống giữa phần comment và book detail-------*/
/* Bỏ đường line ngăn cách */
#comments {
	margin: 0 auto;
}
.wpd-separator {
    visibility: hidden;
}
.wpd-form {
	margin-top:0;
}
div.wpd-form-head {
	visibility: hidden;
}
/* Giảm khoảng trống phía trên phần comment */
#wpdcom {
    margin-top: 0;
    padding-top: 0;
}

/* Giảm padding của container chính */
#wpd-post-rating {
    padding-top: 0;
}

/* Điều chỉnh khoảng cách tổng thể của phần comments */
.wpdiscuz-front-actions {
    margin-top: 1rem;
}

/* Giảm khoảng trống của phần book-section */
.book-section {
    margin-bottom: 1rem;
}

/* Đảm bảo không có margin dư thừa từ các phần tử wpDiscuz khác */
.wpd-form {
    margin-top: 1rem;
}

.wpd-thread-list {
    margin-top: 1rem;
}
/*-----Trang comment--------------*/
.comment-section {
    max-width: 800px;
    margin: 0 auto;
}
.comment-card {
    border-left: 3px solid #38358c;
    margin-bottom: 20px;
    padding: 15px;
    background-color: #f8f9fa;
}
.comment-header {
    border-bottom: 1px solid #dee2e6;
    padding-bottom: 8px;
    margin-bottom: 10px;
}
.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #38358c;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}
.comment-time {
    color: #6c757d;
    font-size: 0.9em;
}
.post-title {
    color: #38358c;
    text-decoration: none;
}
.post-title:hover {
    text-decoration: underline;
}

