@import url('https://fonts.googleapis.com/css2?family=Josefin+Sans:wght@400;500;700&display=swap');

body {background:#fff;font-family: 'Josefin Sans', sans-serif;font-size:18px;color:#000;padding:0;margin:0 auto;}
h1, h2, h3, h4 {margin:0 0 15px;}
h1 {font-size:30px;}
h2 {font-size:26px;}
h3 {font-size:22px;}
h4 {font-size:18px;}
p {margin:0 0 15px;}
input:focus {outline:0;}
.form-control:focus, .btn-success.focus, .btn-success:focus  {box-shadow:none;}
section {padding:80px 0;}
a {text-decoration:none;color: #31a9dc;}
ul {padding:0;}
button:focus {outline: none;}
img {max-width: 100%;}
.navbar {
	padding:0;
}
.navbar-nav {
    margin-left: auto;
}
.navbar-expand-lg .navbar-nav li .nav-link {
	padding:2rem 1.5rem;
	color:#454545;
	transition:all 0.4s ease-in-out;
	-webkit-transition:all 0.4s ease-in-out;
}
.navbar-expand-lg .navbar-nav li a.nav-link:hover, .navbar-expand-lg .navbar-nav li.active a.nav-link {
	background:#4d7a89;
	color:#fff !important;
}

/*======================== BANNER CSS STARTS ========================*/
#banner {
	background:#f2f2f2;
	padding:70px 0 82px;
	position:relative;
	width:100%;
}
#banner:before {
	content:"";
	position:absolute;
	top:8%;
	left:2%;
	background-image:url(../images/circel_shape01.png);
	background-repeat:no-repeat;
	background-size:100%;
	height:320px;
	width:320px;
}
#banner:after {
	content:"";
	position:absolute;
	bottom:-68px;
	left:0;
	background-image:url(../images/waves.jpg);
	background-repeat:repeat-x;
	height:68px;
	width:100%;
}
.fs_t1-item-txt h1 {
	font-size:74px;
	line-height:1.2;
	color:#282828;
}
.fs_t1-item-txt strong {
	color:#4d7a89;
}
.fs_t1-item-txt h4 {
	font-size:37px;
	line-height:1.2;
	color:#000;	
}
.fs_t1-item-txt p {
	font-size:19px;
	line-height:1.2;
	color:#282828;	
	max-width:510px;
	margin: 0 auto;
}
.subscribe {
    margin: 50px 10% 0;
}
.subscribe .input-group {
    border-radius: 90px;
    background: #fff;
    border: 1px solid #e3e3e3;
    padding: 10px 10px 10px 0;
}
.subscribe .input-group input.form-control {
    border-radius: 90px 0 0 90px;
    border: none;
    color: #000;
    padding: 0 30px;
}
.subscribe .input-group .btn-success {
    border-radius: 90px;
    background: #4d7a89;
    border: none;
    padding: 10px 20px;
	font-style: italic;
    text-transform: uppercase;
}
.subscribe .input-group .btn-success:hover, .subscribe .input-group .btn-success:focus, .subscribe .input-group .btn-success:active, .subscribe .input-group .btn-success:active:focus {
	background: #000;
	box-shadow:none;
}
.fs_t1-item-img img {
    width: 100%;
}
#book_deal {
	padding:140px 0 80px;
}
.head_title h2 {
    font-size: 55px;
    color: #282828;
    font-weight: 700;
    margin: 0 auto 40px;
    max-width: 720px;
}
.fs_t2-item .fs_t2-item-img img {
    border: 11px solid #f2f2f2;
}
.fs_t2-item h4 {
	color:#282828;
	font-size:17px;
	margin:15px 0 10px;
}
.fs_t2-item a {
    text-decoration: none;
}
.fs_t2-item span {
	color:#4d7a89;
	font-size:15px;
}
#best_seller {
	background:#f2f2f2;
	position:relative;
}
#best_seller:before {
	content:"";
	position:absolute;
	top:8%;
	right:10px;
	background-image:url(../images/circel_shape01.png);
	background-repeat:no-repeat;
	background-size:100%;
	height:320px;
	width:320px;
}
.fs_t3-item {
    background: #fff;
    padding: 10px;
    border-radius: 20px;
    box-shadow: 4px 8px 16px rgb(0 0 0 / 9%);
    margin: 0 0 30px;
}
.fs_t3-item-img img {
    width: 100%;
    margin: 0 0 26px;
}
.fs_t2-item-txt h2 {
	font-size:21px;
	color:#171717;
	font-weight:700;
}
.fs_t2-item-txt p {
	font-size:15px;
	color:#525252;
}
.fs_t2-item-txt a {
	color:#4d7a89;
	transition:all 0.4s ease-in-out;
	-webkit-transition:all 0.4s ease-in-out;
}
.fs_t2-item-txt a:hover {
	color:#000;
}
#testimonial {
	background-image:url(../images/testimonial_bg.jpg);
	background-repeat:no-repeat;
	background-size:cover;
}
#testimonial .head_title h2 {
	color:#fff;
}
.fs_t4-item {
    background: #fff;
    display: inline-block;
    width: 100%;
    padding: 20px;
}
.fs_t4-item-img {
    float: left;
    margin: 0 20px 0 0;
}
.fs_t4-item-text {
    padding: 10px 0 0;
}
.fs_t4-item-text h4 {
    margin: 0;
    color: #161616;
    font-size: 18px;
    font-weight: 700;
}
.fs_t4-item-text span {
    color: #515151;
    font-size: 14px;
	position:relative;
}
.fs_t4-item-text span:after {
    content: "";
    position: absolute;
    bottom: -13px;
    left: 0;
    border: 2px solid #4d7a89;
    height: 2px;
    width: 46px;
}
.rating {
    margin: 14px 0 0;
}
.fs_t4-item p {
    width: 100%;
    float: left;
    margin: 20px 0 0;
}
footer {
	padding:80px 0;
	background:#8dc2d4;
	position:relative;
}
footer:before {
	content: "";
    position: absolute;
    top: 12%;
    left: -10px;
    height: 64px;
    width: 166px;
	background-image:url(../images/ftr_pattern.png);
	background-repeat:no-repeat;
	background-size:100%;
}
footer:after {
	content: "";
    position: absolute;
    bottom: 12%;
    right: 0;
    height: 64px;
    width: 166px;
	background-image:url(../images/ftr_pattern.png);
	background-repeat:no-repeat;
	background-size:100%;
}
.fs_t5-item-txt h3 {
    color: #032437;
    font-size: 19px;
    position: relative;
    margin: 0 0 34px;
	z-index:99;
}
.fs_t5-item-txt h3:after {
    content: "";
    position: absolute;
    bottom: -7px;
    left: 0;
    background: #032437;
    width: 37px;
    height: 3px;
}
.fs_t5-item-txt li {
    color: #032437;
    padding: 0 0 15px 0;
}
.fs_t5-item-txt li a {
    color: #032437;
    font-size: 15px;
	text-decoration:none;
}
.fs_t5-item-txt li a:hover {
    color: #4d7a89;
}
.fs_t5-item-txt .social {
    padding: 0;
}
.fs_t5-item-txt .social li {
    display: inline-block;
    width: 24px;
    height: 24px;
    line-height: 24px;
    text-align: center;
    margin: 0 7px;
    background: #efefef;
    transition: all 0.4s ease-in-out;
    -webkit-transition: all 0.4s ease-in-out;
}
.fs_t5-item-txt .social li:hover {
    background: #4d7a89;
}
.fs_t5-item-txt ul li {
    list-style: none;
}


@media screen and (max-width: 1199px) {
.fs_t1-item-txt h1 {
    font-size: 56px;
}


}

@media screen and (max-width: 991px) {
.fs_t2-item {
    margin: 0 0 30px;
}
.fs_t2-item-img img{
	width:100%;
}
.fs_t5-item-txt h3 {
	font-size:18px;
}
.fs_t5-item-txt li a {
	font-size:14px;	
}
.navbar-nav {
    float: none;
}
.navbar-expand-lg .navbar-nav li .nav-link {
	padding:1rem 1.5rem;
}
.navbar-nav {
	margin-top:20px;
}

}

@media screen and (max-width: 767px) {
.fs_t1-item-txt h1 {
    font-size: 39px;
}
.head_title h2 {
    font-size: 22px;
}
.fs_t4-item {
    margin: 0 0 20px;
}
.fs_t5-item {
    margin: 0 0 40px;
}
footer {
    padding: 80px 0 40px;
}

	
}




.navbar-nav li>span {
    position: relative;
    display: block;
    padding: 10px 15px;
    font-weight:bold;
}

/* adds some margin below the link sets  */
.navbar .dropdown-menu div[class*="col"] {
   margin-bottom:1rem;
}



/* breakpoint and up - mega dropdown styles */
@media screen and (min-width: 767px) {
  
  /* remove the padding from the navbar so the dropdown hover state is not broken */
.navbar {
  padding-top:0px;
  padding-bottom:0px;
}

/* remove the padding from the nav-item and add some margin to give some breathing room on hovers */
.navbar .nav-item {
  padding: 0 .5rem;
  margin:0 .25rem;
}

  
/* makes the dropdown full width  */
.navbar .dropdown {position:static;}

  
.navbar .dropdown-menu {
  width:100%;
  left:0;
  right:0;
/*  height of nav-item  */
  top:100%;
  
  display:block;
  visibility: hidden;
  opacity: 0;
  transition: visibility 0s, opacity 0.3s linear;
  
}
  
 

  
  /* shows the dropdown menu on hover */
.navbar .dropdown:hover .dropdown-menu, .navbar .dropdown .dropdown-menu:hover {
  display:block;
  visibility: visible;
  opacity: 1;
  transition: visibility 0s, opacity 0.3s linear;
}
  
  .navbar .dropdown-menu {
    border: 1px solid rgba(0,0,0,.15);
    background-color: #fff;
  }

}
.dropdown-menu ul li {
    display: inline-block;
    list-style: none;
    padding: 5px 10px;
}

.sidebar-item .subscribe .input-group {
    display: block;
	border: none;
	background: none;
	border-radius: 0;
	padding: 0;
}
.sidebar-item .subscribe .input-group input.form-control {
    border: none;
    width: 100%;
    border-radius: 0;
    padding: 5px 10px;
}
.sidebar-item .fs-t1-inr {
    background: #31a9dc;
    color: #fff;
    padding: 16px;
	margin: 0 0 30px;
}
.sidebar-item .subscribe {margin: 0;}
.sidebar-item .subscribe .input-group .btn-success {
    background: #000;
    border-radius: 0;
    width: 100%;
    margin: 5px 0 0;
    padding: 7px 10px;
}
.audible_img_amz {
    margin: 50px 0;
}
/* Legacy styles - overridden by modern styles */
.book-item-links a:not(.purchase-btn) {
    background: #000;
    color: #fff;
    font-weight: 500;
    text-transform: capitalize;
    padding: 6px 12px;
    display: inline-block;
    border-radius: 3px;
    margin: 0 0 5px;
}
.book-item-price:not(.modern-price) {
    font-size: 20px;
}
.book-item-price:not(.modern-price) span {
    font-size: 30px;
}
.book-item:not(.modern-book-card) {
    margin: 0 0 50px;
    border-bottom: 2px solid #ddd;
    padding: 0 0 50px;
}
.book-item-book h2 span {
    display: block;
    font-size: 18px;
}
header {
    border-bottom: 1px solid #ddd;
}
main {
    margin: 40px 0;
}


.main_contact {
    padding: 70px 0;
}
.main_contact .contact_text {
	text-align:center;
}
.main_contact form {
    max-width: 560px;
    margin: 60px auto 0;
}


.btn-primary {
    background: #4d7a89;
    color: #fff !important;
    border: 1px solid #4d7a89;
    font-size: 14px;
    padding: 10px 12px;
    text-decoration: none !important;
}
.btn-primary:hover {
    color: #fff;
    background-color: #000;
    border-color: #000;
}
.btn.focus, .btn:focus {
    box-shadow: unset;
}
.btn-primary:not(:disabled):not(.disabled).active:focus, .btn-primary:not(:disabled):not(.disabled):active:focus, .show>.btn-primary.dropdown-toggle:focus {
    box-shadow: unset;
}
.btn-primary:not(:disabled):not(.disabled).active, .btn-primary:not(:disabled):not(.disabled):active, .show>.btn-primary.dropdown-toggle {
    color: #fff;
    background-color: #000;
    border-color: #000;
}
.btn-primary.focus, .btn-primary:focus {
    color: #fff;
    background-color: #000;
    border-color: #000;
    box-shadow: unset;
}
li.header_btn {
    margin-top: 0;
}


li.header_btn {
    padding: 25px 0 25px 30px;
}
.navbar .dropdown-menu {
   margin: 0;
}

.fs_t1-item{max-width: 940px; margin: 0 auto;}



@media(max-width: 1199px){
    .navbar-expand-lg .navbar-nav li .nav-link {
      padding: 2rem 18px;
    }
    .navbar .nav-item {
      padding: 0;
      margin: 0;
    }
}

/* ==================== MODERN BOOK PAGE STYLES ==================== */

/* Modern Book Card */
.modern-book-card {
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 6px 30px rgba(0, 0, 0, 0.1);
    padding: 40px;
    margin: 0 0 50px;
    border: none;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
    overflow: hidden;
    position: relative;
}

.book-item-info {
    padding-left: 0;
}

@media (min-width: 992px) {
    .book-item-info {
        padding-left: 30px;
    }
}

.modern-book-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #4d7a89 0%, #2766f3 100%);
}

.modern-book-card:hover {
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
    transform: translateY(-3px);
}

/* Modern Book Cover */
.modern-book-cover {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    background: linear-gradient(135deg, #f5f5f5 0%, #e8e8e8 100%);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 8px;
    background: #fff;
}

.modern-book-cover::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 12px;
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.05);
    pointer-events: none;
}

.modern-book-cover:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.25);
}

.book-cover-wrapper {
    width: 100%;
    aspect-ratio: 2/3;
    overflow: hidden;
    border-radius: 12px;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.book-cover-image {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.modern-book-cover:hover .book-cover-image {
    transform: scale(1.05);
}

/* Modern Price Styling */
.modern-price {
    margin-bottom: 25px;
    padding: 20px 28px;
    background: linear-gradient(135deg, #4d7a89 0%, #2766f3 100%);
    border-radius: 14px;
    display: inline-block;
    box-shadow: 0 4px 15px rgba(77, 122, 137, 0.3);
    position: relative;
    overflow: hidden;
}

.modern-price::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transform: rotate(45deg);
    animation: shine 3s infinite;
}

@keyframes shine {
    0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
    100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

.modern-price .price-main {
    font-size: 42px;
    font-weight: 800;
    color: #ffffff;
    display: block;
    line-height: 1.2;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    position: relative;
    z-index: 1;
}

.modern-price .price-sale {
    color: #ffd700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.modern-price .price-original {
    font-size: 22px;
    color: rgba(255, 255, 255, 0.75);
    margin-left: 12px;
    text-decoration: line-through;
    position: relative;
    z-index: 1;
}

/* Modern Book Title */
.modern-book-title {
    font-size: 36px;
    font-weight: 800;
    line-height: 1.25;
    margin: 0 0 18px;
    color: #1a1a1a;
    letter-spacing: -0.5px;
}

.modern-book-title a {
    color: #1a1a1a;
    text-decoration: none;
    transition: color 0.3s ease;
    display: inline-block;
}

.modern-book-title a:hover {
    color: #2766f3;
}

.book-author-name {
    display: block;
    font-size: 22px;
    font-weight: 500;
    color: #4d7a89;
    margin-top: 10px;
    font-style: italic;
}

/* Modern Date */
.modern-date {
    font-size: 14px;
    color: #666;
    margin-bottom: 25px;
    padding: 10px 18px;
    background: linear-gradient(135deg, #f8f9fa 0%, #f0f0f0 100%);
    border-radius: 8px;
    display: inline-block;
    font-weight: 500;
    border: 1px solid #e8e8e8;
}

/* Modern Description */
.modern-description {
    font-size: 17px;
    line-height: 1.85;
    color: #444;
    margin-bottom: 35px;
    padding: 28px;
    background: linear-gradient(to bottom, #fafbfc 0%, #f8f9fa 100%);
    border-radius: 14px;
    border-left: 5px solid #4d7a89;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: relative;
}

.modern-description::before {
    content: '"';
    position: absolute;
    top: 15px;
    left: 20px;
    font-size: 60px;
    color: #4d7a89;
    opacity: 0.15;
    font-family: Georgia, serif;
    line-height: 1;
}

.modern-description p {
    margin-bottom: 18px;
    position: relative;
    z-index: 1;
}

.modern-description p:last-child {
    margin-bottom: 0;
}

/* Modern Purchase Links */
.modern-purchase-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 25px;
}

.modern-purchase-links.audio-links {
    margin-top: 15px;
    padding-top: 20px;
    border-top: 2px dashed #e8e8e8;
}

.purchase-btn {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    color: #ffffff !important;
    font-weight: 600;
    text-transform: capitalize;
    padding: 14px 26px;
    display: inline-block;
    border-radius: 10px;
    margin: 0;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
    font-size: 14px;
    border: none;
    position: relative;
    overflow: hidden;
}

.purchase-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.purchase-btn:hover::before {
    width: 300px;
    height: 300px;
}

.purchase-btn:hover {
    background: linear-gradient(135deg, #2766f3 0%, #1a52d9 100%);
    color: #ffffff !important;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(39, 102, 243, 0.5);
}

.purchase-btn-audio {
    background: linear-gradient(135deg, #4d7a89 0%, #2766f3 100%);
    box-shadow: 0 3px 10px rgba(77, 122, 137, 0.3);
}

.purchase-btn-audio:hover {
    background: linear-gradient(135deg, #1a52d9 0%, #2766f3 100%);
    box-shadow: 0 6px 20px rgba(39, 102, 243, 0.5);
}

/* Book Meta Info */
.book-meta-info {
    margin-top: 35px;
    padding-top: 28px;
    border-top: 2px solid #e8e8e8;
    background: linear-gradient(to bottom, transparent 0%, #fafbfc 100%);
    padding-bottom: 10px;
    border-radius: 0 0 14px 14px;
    margin-left: -28px;
    margin-right: -28px;
    padding-left: 28px;
    padding-right: 28px;
}

.book-categories-tags {
    margin-bottom: 15px;
}

.book-categories-tags h3 {
    font-size: 16px;
    line-height: 1.6;
    color: #444;
    margin-bottom: 10px;
}

.modern-book-length {
    font-size: 15px;
    color: #666;
    padding: 12px 18px;
    background: #f8f9fa;
    border-radius: 8px;
    display: inline-block;
}

.modern-book-length strong {
    color: #1a1a1a;
    font-weight: 600;
}

/* Modern Sidebar */
.modern-sidebar {
    position: sticky;
    top: 20px;
    height: fit-content;
}

.sidebar-items {
    background: #ffffff;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 6px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid #f0f0f0;
}

.sidebar-item {
    margin-bottom: 0;
}

/* ==================== MODERN TRENDING BOOKS UI ==================== */

.trending-books-modern {
    margin-top: 0;
    padding: 0;
}

.trending-title-modern {
    font-size: 26px;
    font-weight: 800;
    color: #1a1a1a;
    margin: 0 0 28px;
    padding-bottom: 18px;
    border-bottom: 3px solid #e8e8e8;
    text-align: left;
    position: relative;
    letter-spacing: -0.5px;
}

.trending-title-modern::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, #4d7a89 0%, #2766f3 100%);
    border-radius: 2px 2px 0 0;
}

.trending-books-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.trending-book-card-modern {
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid #e8e8e8;
    position: relative;
}

.trending-book-card-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #4d7a89 0%, #2766f3 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.trending-book-card-modern:hover::before {
    opacity: 1;
}

.trending-book-card-modern:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.18);
    border-color: #4d7a89;
}

.trending-book-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.trending-book-cover {
    position: relative;
    width: 100%;
    aspect-ratio: 2/3;
    overflow: hidden;
    background: linear-gradient(135deg, #f5f5f5 0%, #e8e8e8 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.trending-book-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.trending-book-card-modern:hover .trending-book-image {
    transform: scale(1.08);
}

.trending-book-info {
    padding: 20px;
    background: #ffffff;
    border-top: 1px solid #f0f0f0;
}

.trending-book-title {
    font-size: 17px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 10px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    min-height: 48px;
    transition: color 0.3s ease;
}

.trending-book-author {
    font-size: 14px;
    color: #666;
    margin: 0;
    font-weight: 500;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.trending-book-card-modern:hover .trending-book-title {
    color: #2766f3;
}

/* Update existing sidebar-deal-item for promoted books */
.promoted-books-in-sidebar {
    margin-bottom: 30px;
}

.sidebar-deal-item {
    margin-bottom: 28px;
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid #e8e8e8;
    position: relative;
}

.sidebar-deal-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #4d7a89 0%, #2766f3 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.sidebar-deal-item:hover::before {
    opacity: 1;
}

.sidebar-deal-item:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.18);
    border-color: #4d7a89;
}

.sidebar-deal-item .widget-title {
    font-size: 19px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0;
    padding: 20px 20px 15px;
    line-height: 1.3;
    border-bottom: 1px solid #f0f0f0;
}

.sidebar-deal-item a {
    display: block;
    text-decoration: none;
    overflow: hidden;
}

.sidebar-deal-item img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.sidebar-deal-item:hover img {
    transform: scale(1.05);
}

/* Responsive Design */
@media (max-width: 991px) {
    .modern-book-card {
        padding: 20px;
    }
    
    .modern-book-title {
        font-size: 26px;
    }
    
    .modern-price .price-main {
        font-size: 28px;
    }
    
    .modern-purchase-links {
        gap: 8px;
    }
    
    .purchase-btn {
        padding: 10px 18px;
        font-size: 13px;
    }
    
    .trending-title-modern {
        font-size: 20px;
    }
}

@media (max-width: 767px) {
    .modern-book-card {
        padding: 20px;
        margin-bottom: 30px;
        border-radius: 16px;
    }
    
    .modern-book-title {
        font-size: 24px;
    }
    
    .book-author-name {
        font-size: 16px;
    }
    
    .modern-price {
        padding: 16px 22px;
    }
    
    .modern-price .price-main {
        font-size: 28px;
    }
    
    .modern-description {
        font-size: 15px;
        padding: 20px;
    }
    
    .purchase-btn {
        padding: 10px 18px;
        font-size: 13px;
    }
    
    .trending-title-modern {
        font-size: 22px;
    }
    
    .trending-book-title {
        font-size: 15px;
        min-height: 42px;
    }
    
    .trending-book-info {
        padding: 16px;
    }
    
    .sidebar-items {
        padding: 20px;
    }
}
/* ================ Book list/detail pattern additions ================ */
.book-item:not(.modern-book-card) {
	background: #fff;
	border: 1px solid #eee;
	border-radius: 10px;
	box-shadow: 0 2px 10px rgba(0,0,0,.06);
	padding: 25px 25px 20px;
	margin: 0 0 30px;
	overflow: hidden;
}
.book-item-img img {width: 100%;aspect-ratio: 2 / 3;object-fit: cover;display: block;}
.book-item-book h2 {margin: 6px 0 2px;}
.book-item-book h2 a {color: #4d7a89;font-size: 22px;font-weight: 700;line-height: 1.3;}
.book-item-author {font-weight: 700;color: #1a1a1a;margin: 0 0 6px;}
.book-item-price:not(.modern-price) .price-current {color: #4d7a89;font-size: 22px;font-weight: 700;}
.book-item-price:not(.modern-price) .price-regular {color: #999;font-weight: 400;text-decoration: line-through;}
.book-item-meta-row {display: flex;flex-wrap: wrap;justify-content: space-between;gap: 8px 20px;margin: 0 0 6px;}
.book-item-tags {color: #4d7a89;font-weight: 500;margin: 0 0 10px;}
.book-item-tags a {color: #4d7a89;}

.book-item-desc.collapsed {max-height: 220px;overflow: hidden;position: relative;}
.book-item-desc.collapsed:after {content: "";position: absolute;left: 0;right: 0;bottom: 0;height: 60px;background: linear-gradient(to bottom, rgba(255,255,255,0), #fff);}
.read-more-btn {background: none;border: none;color: #4d7a89;font-weight: 700;padding: 0;margin: -4px 0 20px;display: block;cursor: pointer;font-family: inherit;font-size: 15px;}
.read-more-btn:hover {text-decoration: underline;}

.book-item-links a.btn-store, .book-item-links .btn-other-stores {background: #f0f0f0 !important;color: #333 !important;font-weight: 700;text-transform: uppercase;font-size: 13px;letter-spacing: .3px;padding: 12px 20px;border: 1px solid #ddd;border-radius: 6px;display: inline-block;cursor: pointer;font-family: inherit;margin: 0 6px 5px 0;}
.book-item-links a.btn-store:hover, .book-item-links .btn-other-stores:hover {background: #e2e2e2 !important;}
.book-item-links a.btn-store {background: #4d7a89 !important;color: #fff !important;border: 1px solid #4d7a89;}
.book-item-links a.btn-store:hover {background: #3d626e !important;border: 1px solid #3d626e;}
.book-item-links .btn-other-stores {background: #6c757d !important;color: #fff !important;border: 1px solid #6c757d;}
.book-item-links .btn-other-stores:hover {background: #5c636a !important;border: 1px solid #5c636a;}

.other-stores {position: relative;display: inline-block;}
.other-stores-backdrop {display: none;position: fixed;inset: 0;background: rgba(0,0,0,.5);z-index: 1000;}
.other-stores.open .other-stores-backdrop {display: block;}
.other-stores-dropdown {display: none;position: fixed;top: 50%;left: 50%;transform: translate(-50%, -50%);background: #fff;border-radius: 8px;box-shadow: 0 10px 40px rgba(0,0,0,.2);padding: 40px 24px 16px;width: 560px;max-width: 90vw;max-height: 80vh;overflow-y: auto;z-index: 1001;column-count: 3;column-gap: 0;}
.other-stores.open .other-stores-dropdown {display: block;}
.other-stores-close {position: absolute;top: 4px;right: 8px;background: none;border: none;font-size: 26px;line-height: 1;color: #888;cursor: pointer;padding: 4px 10px;font-family: inherit;}
.other-stores-close:hover {color: #333;}
.other-stores-dropdown a {display: block;padding: 8px 10px;color: #333;white-space: nowrap;background: none;font-weight: 400;text-transform: none;border: none;border-radius: 0;margin: 0;break-inside: avoid;}
.other-stores-dropdown a:hover {background: #f5f5f5;}

.site-signup-section {margin: 40px 0 0;padding: 40px 20px;background: #fff;border: 1px solid #e5e5e5;box-shadow: 0 4px 16px rgba(0,0,0,.08);border-radius: 6px;text-align: center;}
.site-signup-section h3 {margin: 0 0 10px;color: #1a1a1a;font-size: 22px;font-weight: 700;}
.single-books input.subBtn {padding: 10px !important;}
.site-signup-section p {margin: 0 0 25px;color: #555;font-size: 15px;}
.site-signup-section .subscribe {margin: 0 auto;max-width: 460px;}
.site-signup-section .subscribe .input-group {border: 1px solid #ccc;border-radius: 6px;overflow: hidden;}
.site-signup-section .subscribe .input-group input.form-control {border-radius: 0;border-right: 1px solid #ccc;}

@media (min-width: 1400px) {
  .container,
  .container-sm,
  .container-md,
  .container-lg,
  .container-xl,
  .container-xxl {
    max-width: 1350px;
  }
}
