/**
 * FPG Custom Overrides
 * Fortune Publishing Group site-specific styling adjustments
 * Load AFTER main style.css
 * Created: 2026-03-02
 * Updated: 2026-03-12 - Hero circle fix, breadcrumb legibility
 */

/* ==========================================================================
   PHASE 4: Hero Banner Media Image Constraints
   Constrains tall book cover images to maintain balanced hero layout
   ========================================================================== */

.banner-media img {
    max-width: 460px;
    max-height: 620px;
    width: auto;
    height: auto;
    object-fit: contain;
}

/* Ensure the media container itself doesn't overflow */
.banner-media {
    max-width: 460px;
    margin: 0 auto;
}

/* ==========================================================================
   HERO SLIDER CIRCLE FIX
   Added: 2026-03-12
   Fixes double-circle visual glitch by aligning pseudo-element with 
   constrained banner-media container
   ========================================================================== */

/* Override the original slider banner-media sizing */
.main-slider.style-1 .banner-media {
    width: 460px !important;
    max-width: 100%;
    margin-top: 0;
}

/* Scale down the circular background to match constrained container */
.main-slider.style-1 .banner-media::after {
    width: 520px !important;
    height: 520px !important;
    bottom: -60px !important;
    opacity: 0.12 !important;
    background-color: var(--primary) !important;
}

/* Slider-white variant circle */
.main-slider.style-1.slider-white .banner-media::after {
    opacity: 0.15 !important;
    background-color: var(--primary) !important;
}

/* Responsive adjustments for hero circle */
@media (max-width: 1280px) {
    .main-slider.style-1 .banner-media {
        width: 400px !important;
    }
    .main-slider.style-1 .banner-media::after {
        width: 460px !important;
        height: 460px !important;
        bottom: -50px !important;
    }
}

@media (max-width: 991px) {
    .main-slider.style-1 .banner-media {
        width: 320px !important;
    }
    /* Hide circle on tablet/mobile as per original template */
    .main-slider.style-1 .banner-media::after {
        display: none !important;
    }
}

@media (max-width: 767px) {
    .main-slider.style-1 .banner-media {
        width: 280px !important;
        margin: 20px auto 0;
    }
}

/* ==========================================================================
   PHASE 5: Service Card Uniform Image Heights
   Enforces consistent image cropping across service listing cards
   ========================================================================== */

.content-box.style-1 .dz-media {
    height: 220px;
    overflow: hidden;
}

.content-box.style-1 .dz-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ==========================================================================
   FAQ Accordion Enhancements
   Ensures proper styling for Bookland card-based FAQ accordion
   ========================================================================== */

.faq-accordion .card {
    margin-bottom: 15px;
    border: none;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.08);
    border-radius: 8px;
    overflow: hidden;
}

.faq-accordion .card-header {
    background: #fff;
    padding: 0;
    border: none;
}

.faq-accordion .card-header .title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.faq-accordion .card-header .title:hover {
    color: var(--bs-primary, #7B2D26);
}

.faq-accordion .card-header .title .icon {
    transition: transform 0.3s ease;
}

.faq-accordion .card-header .title[aria-expanded="true"] .icon {
    transform: rotate(-90deg);
}

.faq-accordion .card-body {
    padding: 0 25px 20px;
}

.faq-accordion .card-body p {
    margin: 0;
    color: #666;
    line-height: 1.7;
}

/* ==========================================================================
   IMAGE UPGRADE PASS: Book Grid & Author Avatar Consistency
   Added: 2026-03-03
   Ensures consistent image rendering across shop and author pages
   ========================================================================== */

/* Book covers in shop grid - maintain aspect ratio with cover fit */
.col-book .dz-media img,
.book-grid-row .dz-media img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

/* Author avatar consistency - square with cover fit */
.author-card img,
img[src*="authors/"] {
    object-fit: cover;
}

/* ==========================================================================
   FPG BRAND COLOR SCHEME
   Updated: 2026-03-12
   Replaces Bookland gold/orange with FPG blue/red brand palette
   Source: Fallback palette derived from FPG logo and previous site SQL backup
   ========================================================================== */

:root {
    /* Primary Colors - Blue */
    --primary: #0090F0;
    --primary-hover: #007ACC;
    --primary-dark: #1F2A7A;
    
    /* RGBA variants for transparency effects */
    --rgba-primary-1: rgba(0, 144, 240, 0.1);
    --rgba-primary-2: rgba(0, 144, 240, 0.2);
    --rgba-primary-3: rgba(0, 144, 240, 0.3);
    --rgba-primary-4: rgba(0, 144, 240, 0.4);
    --rgba-primary-5: rgba(0, 144, 240, 0.5);
    --rgba-primary-6: rgba(0, 144, 240, 0.6);
    --rgba-primary-7: rgba(0, 144, 240, 0.7);
    --rgba-primary-8: rgba(0, 144, 240, 0.8);
    --rgba-primary-9: rgba(0, 144, 240, 0.9);
    
    /* Bootstrap overrides */
    --bs-primary: #0090F0;
    --bs-primary-rgb: 0, 144, 240;
    --bs-secondary: #1F2A7A;
    --bs-secondary-rgb: 31, 42, 122;
    
    /* Accent color - Red for CTAs and highlights */
    --fpg-accent: #B01010;
    --fpg-accent-hover: #8C0D0D;
    
    /* Neutral palette */
    --fpg-bg-soft: #F7F8FB;
    --fpg-text-body: #2B2B2B;
    --fpg-text-muted: #6B7280;
    --fpg-border: #E5E7EB;
}

/* Button Primary - Blue */
.btn-primary {
    background-color: var(--primary) !important;
    border-color: var(--primary) !important;
    color: #fff !important;
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active {
    background-color: var(--primary-hover) !important;
    border-color: var(--primary-hover) !important;
    color: #fff !important;
}

/* Button Outline Primary */
.btn-outline-primary {
    color: var(--primary) !important;
    border-color: var(--primary) !important;
    background-color: transparent !important;
}

.btn-outline-primary:hover,
.btn-outline-primary:focus,
.btn-outline-primary:active {
    background-color: var(--primary) !important;
    border-color: var(--primary) !important;
    color: #fff !important;
}

/* Link colors */
a {
    color: var(--primary);
}

a:hover {
    color: var(--primary-hover);
}

/* Text primary color class */
.text-primary {
    color: var(--primary) !important;
}

/* Background primary color class */
.bg-primary {
    background-color: var(--primary) !important;
}

/* Header/Nav accent styling */
.header-info-bar {
    border-bottom: 3px solid var(--primary-dark);
}

/* Active nav link */
.header-nav .nav > li > a.active,
.header-nav .nav > li:hover > a {
    color: var(--primary) !important;
}

/* Footer styling with deep blue */
.footer-dark {
    background-color: var(--primary-dark);
}

.footer-dark .footer-bottom {
    background-color: #151d4d;
}

/* Sub-menu hover states */
.sub-menu li a:hover {
    color: var(--primary) !important;
}

/* Section title underlines */
.section-head .title::after,
.section-head.style-1 .title::after {
    background-color: var(--primary);
}

/* Icon boxes and feature cards */
.icon-bx-wraper.style-1:hover,
.icon-bx-wraper.style-2:hover {
    border-color: var(--primary);
}

.icon-bx-wraper .icon-cell {
    color: var(--primary);
}

/* Price/badge highlights */
.price-num {
    color: var(--primary);
}

/* Tags and badges */
.badge.bg-secondary {
    background-color: var(--bs-secondary) !important;
}

.dz-tags li a {
    color: var(--primary);
}

.dz-tags li a:hover {
    background-color: var(--primary);
    color: #fff;
}

/* Swiper/carousel pagination */
.swiper-pagination-bullet-active {
    background-color: var(--primary) !important;
}

/* Form focus states */
.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.2rem rgba(0, 144, 240, 0.25);
}

/* Testimonial card accent */
.testimonial-1 .testimonial-info::before {
    background-color: var(--primary);
}

/* Newsletter section */
.newsletter-wrapper {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
}

/* Content box hover effects */
.content-box.style-1:hover {
    border-color: var(--primary);
}

/* Social icons */
.dz-social-icon li a:hover {
    background-color: var(--primary);
    color: #fff;
}

/* Breadcrumb active */
.breadcrumb-row .breadcrumb-item.active {
    color: var(--primary);
}

/* Blockquote border */
blockquote {
    border-left-color: var(--primary);
}

/* Accordion/FAQ active state override */
.faq-accordion .card-header .title:hover {
    color: var(--primary);
}

/* Service card icon */
.service-box .icon-cell {
    background-color: var(--primary);
}

/* Pricing table highlight */
.pricingtable-wrapper.style-1.active,
.pricingtable-wrapper.style-1:hover {
    border-color: var(--primary);
}

.pricingtable-wrapper .pricingtable-title {
    background-color: var(--primary);
}

/* Preloader */
.preloader-inner span {
    background-color: var(--primary);
}

/* Box btn hover */
.btnhover:hover {
    background-color: var(--primary-hover) !important;
}

/* Shadow on primary buttons */
.shadow-primary {
    box-shadow: 0 5px 15px rgba(0, 144, 240, 0.35) !important;
}

/* Banner overlay using deep blue */
.overlay-secondary-dark::before {
    background-color: rgba(31, 42, 122, 0.85);
}

/* ==========================================================================
   NON-BLOG / NON-BOOK PAGE REFINEMENT PASS
   Updated: 2026-03-12
   Premium visual polish for main site pages
   ========================================================================== */

/* --------------------------------------------------------------------------
   HERO SLIDER REFINEMENTS
   Cleaner, more professional composition
   -------------------------------------------------------------------------- */

/* Reduce visual noise from decorative pattern */
.main-slider .swiper-slide .pattern {
    opacity: 0.15;
    filter: blur(1px);
}

/* Cleaner hero background - softer gradient feel */
.main-slider.style-1 .swiper-slide {
    background-color: #f8fafc;
    background-size: cover;
    background-position: center;
}

/* More premium hero content spacing */
.main-slider .banner-content {
    padding: 40px 0;
}

.main-slider .banner-content .title {
    font-weight: 700;
    letter-spacing: -0.5px;
    line-height: 1.2;
}

.main-slider .banner-content .sub-title {
    letter-spacing: 3px;
    font-size: 13px;
    font-weight: 600;
    color: var(--primary);
}

.main-slider .banner-content .text {
    font-size: 16px;
    line-height: 1.7;
    color: #4a5568;
}

/* Thumb cards - cleaner shadow */
.main-swiper-thumb .books-card {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.03);
}

.main-swiper-thumb .books-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

/* --------------------------------------------------------------------------
   INNER PAGE BANNER REFINEMENTS
   Premium banner treatment without relying on templated images
   -------------------------------------------------------------------------- */

/* Default premium banner gradient overlay */
.dz-bnr-inr {
    background-color: var(--primary-dark);
    position: relative;
}

.dz-bnr-inr::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(31, 42, 122, 0.95) 0%, rgba(0, 144, 240, 0.85) 100%);
    z-index: 1;
}

.dz-bnr-inr .container {
    position: relative;
    z-index: 2;
}

/* Banner title styling */
.dz-bnr-inr h1 {
    font-weight: 700;
    letter-spacing: -0.5px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* ==========================================================================
   BREADCRUMB LEGIBILITY FIX
   Updated: 2026-03-12
   Enhanced contrast and readability across all banner pages
   ========================================================================== */

.breadcrumb-row .breadcrumb {
    background: rgba(0, 0, 0, 0.25);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    border-radius: 30px;
    padding: 10px 22px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.breadcrumb-row .breadcrumb-item,
.breadcrumb-row .breadcrumb-item a {
    color: #fff;
    font-weight: 500;
    font-size: 14px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.breadcrumb-row .breadcrumb-item a:hover {
    color: #fff;
    text-decoration: underline;
}

.breadcrumb-row .breadcrumb-item.active {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 400;
}

.breadcrumb-row .breadcrumb-item + .breadcrumb-item::before {
    color: rgba(255, 255, 255, 0.7);
    content: "›";
    font-size: 16px;
    font-weight: 300;
    padding-right: 10px;
}

/* --------------------------------------------------------------------------
   SECTION POLISH
   Refined spacing, shadows, and visual hierarchy
   -------------------------------------------------------------------------- */

/* Section heads - cleaner underline treatment */
.section-head .title {
    position: relative;
    margin-bottom: 20px;
}

.section-head .title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--primary);
    border-radius: 3px;
}

.section-head.style-1 .title::after {
    left: 0;
    transform: none;
}

/* Content boxes - cleaner cards */
.content-box.style-1 {
    background: #fff;
    border-radius: 12px;
    border: 1px solid #eef2f7;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
    transition: all 0.3s ease;
    overflow: hidden;
}

.content-box.style-1:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    border-color: var(--primary);
    transform: translateY(-4px);
}

/* Icon boxes - refined styling */
.icon-bx-wraper.style-1 {
    background: #fff;
    border-radius: 12px;
    padding: 30px 25px;
    border: 1px solid #eef2f7;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
    transition: all 0.3s ease;
}

.icon-bx-wraper.style-1:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
}

.icon-bx-wraper.style-1 .icon-cell {
    font-size: 40px;
    margin-bottom: 15px;
}

.icon-bx-wraper.style-2 {
    padding: 25px 20px;
}

/* --------------------------------------------------------------------------
   PRICING TABLES - PREMIUM REFINEMENT
   -------------------------------------------------------------------------- */

.pricingtable-wrapper.style-1 {
    border-radius: 16px;
    border: 1px solid #eef2f7;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.pricingtable-wrapper.style-1.active {
    transform: scale(1.02);
    box-shadow: 0 12px 40px rgba(0, 144, 240, 0.15);
}

.pricingtable-wrapper .pricingtable-title {
    padding: 25px 20px;
    border-radius: 0;
}

.pricingtable-wrapper .pricingtable-title .badge {
    background: rgba(255, 255, 255, 0.2) !important;
    font-size: 11px;
    letter-spacing: 1px;
    padding: 5px 12px;
    border-radius: 20px;
}

.pricingtable-features li {
    padding: 12px 0;
    border-bottom: 1px solid #f0f3f8;
}

.pricingtable-features li:last-child {
    border-bottom: none;
}

/* --------------------------------------------------------------------------
   TESTIMONIALS - CLEANER PRESENTATION
   -------------------------------------------------------------------------- */

.testimonial-1 {
    background: #fff;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    border: 1px solid #eef2f7;
}

.testimonial-1 .testimonial-pic {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--primary);
}

.testimonial-1 .testimonial-pic img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.testimonial-1 .testimonial-text p {
    font-size: 15px;
    line-height: 1.8;
    color: #4a5568;
    font-style: italic;
}

/* --------------------------------------------------------------------------
   NEWSLETTER SECTION - PREMIUM TREATMENT
   -------------------------------------------------------------------------- */

.newsletter-wrapper.style-2 {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%) !important;
    background-image: none !important;
}

.newsletter-wrapper .section-head .title {
    font-weight: 700;
}

.newsletter-wrapper .section-head .title::after {
    background: rgba(255, 255, 255, 0.5);
}

/* Newsletter form styling */
.dzSubscribe.style-1 .form-control {
    background: rgba(255, 255, 255, 0.15) !important;
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #fff;
}

.dzSubscribe.style-1 .form-control::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

/* --------------------------------------------------------------------------
   CTA SECTIONS - REFINED
   -------------------------------------------------------------------------- */

section.bg-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-hover) 100%) !important;
}

/* White button on primary backgrounds */
.btn-white {
    background: #fff;
    color: var(--primary);
    border: none;
    font-weight: 600;
}

.btn-white:hover {
    background: #f8f9fa;
    color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

/* --------------------------------------------------------------------------
   FOOTER REFINEMENT
   -------------------------------------------------------------------------- */

.footer-dark {
    background: linear-gradient(180deg, var(--primary-dark) 0%, #141a4a 100%);
}

.footer-dark .footer-title {
    font-weight: 600;
    position: relative;
    padding-bottom: 12px;
}

.footer-dark .footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--primary);
}

/* --------------------------------------------------------------------------
   FAQ ACCORDION - PREMIUM STYLING
   -------------------------------------------------------------------------- */

.faq-accordion .card {
    border-radius: 12px !important;

/* ======================================================================
   MAX UPDATES PASS V2
   Global typography + catalog-aware layout components
   ====================================================================== */

html,
body,
body *,
.btn,
.form-control,
.form-select {
    font-family: "Times New Roman", Times, serif !important;
}

.experience-highlight {
    font-size: 42px;
    font-weight: 700;
    color: var(--primary-dark);
    line-height: 1;
}

.experience-subtitle {
    font-weight: 600;
    color: #1f2937;
    margin-top: 8px;
}

.testimonial-video-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 22px;
}

.testimonial-video-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.testimonial-video-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.12);
}

.testimonial-video-thumb {
    display: block;
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

.testimonial-video-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.play-badge {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: rgba(176, 16, 16, 0.88);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.testimonial-video-content {
    padding: 14px;
}

.service-media-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.07);
    height: 100%;
}

.service-media-card .media {
    width: 100%;
    height: 220px;
}

.service-media-card .media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.service-media-card .content {
    padding: 20px;
}

.author-index-list {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.author-horizontal-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    box-shadow: 0 8px 26px rgba(0, 0, 0, 0.07);
    padding: 18px;
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: 18px;
    align-items: center;
}

.author-horizontal-card .author-photo {
    width: 140px;
    height: 140px;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #d1d5db;
}

.author-horizontal-card .author-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.author-horizontal-card h4 {
    margin-bottom: 8px;
}

.author-books-list {
    margin: 10px 0 12px;
    padding-left: 18px;
}

.author-books-list li {
    margin-bottom: 6px;
}

.author-card-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
}

.shop-packages-row .pricingtable-wrapper.style-1 {
    height: 100%;
}

.standalone-service-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 22px;
    height: 100%;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

.standalone-service-card .price {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary-dark);
    margin: 8px 0 12px;
}

.contact-info::before,
.contact-info::after {
    display: none !important;
}

@media (max-width: 991px) {
    .testimonial-video-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .author-horizontal-card {
        grid-template-columns: 1fr;
    }

    .author-horizontal-card .author-photo {
        width: 100%;
        max-width: 220px;
        height: 220px;
    }
}

@media (max-width: 575px) {
    .testimonial-video-grid {
        grid-template-columns: 1fr;
    }
}

.faq-accordion .card-header .title {
    font-size: 16px;
    font-weight: 600;
    padding: 20px 25px;
}

.faq-accordion .card-header .title[aria-expanded="true"] {
    color: var(--primary);
    background: var(--rgba-primary-1);
}

/* --------------------------------------------------------------------------
   AUTHOR CARDS - REFINED PRESENTATION
   -------------------------------------------------------------------------- */

.content-box.style-1 .dz-media img.rounded-circle {
    border: 4px solid var(--primary);
    box-shadow: 0 4px 15px rgba(0, 144, 240, 0.2);
}

/* --------------------------------------------------------------------------
   BODY TEXT & TYPOGRAPHY REFINEMENT
   -------------------------------------------------------------------------- */

body {
    color: var(--fpg-text-body);
    font-size: 15px;
    line-height: 1.7;
}

h1, h2, h3, h4, h5, h6 {
    color: #1a202c;
    font-weight: 600;
}

.lead {
    font-size: 18px;
    line-height: 1.7;
    color: #4a5568;
}

/* --------------------------------------------------------------------------
   ERROR 404 PAGE STYLING
   -------------------------------------------------------------------------- */

.error-page {
    background: linear-gradient(135deg, var(--primary-dark) 0%, #0a1245 100%);
}

.error-page::before {
    background: linear-gradient(135deg, rgba(31, 42, 122, 0.7) 0%, rgba(0, 144, 240, 0.5) 100%);
}

/* --------------------------------------------------------------------------
   LIVE DESIGN CLEANUP PASS V2
   -------------------------------------------------------------------------- */

.homepage-featured-books {
    padding-top: 72px;
    padding-bottom: 56px;
}

.homepage-featured-books .section-head {
    margin-bottom: 34px;
}

.homepage-featured-books .books-card.style-1 {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.homepage-featured-books .books-card.style-1 .dz-media {
    height: 285px;
    overflow: hidden;
}

.homepage-featured-books .books-card.style-1 .dz-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.homepage-featured-books .books-card.style-1 .dz-content {
    min-height: 204px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 10px;
}

.homepage-featured-books .books-card.style-1 .title {
    margin-bottom: 4px;
    min-height: 54px;
    line-height: 1.25;
}

.homepage-featured-books .books-card.style-1 .author {
    display: inline-block;
    min-height: 24px;
    color: #4b5563;
    font-weight: 600;
}

.homepage-featured-books .text-center.mt-4 {
    margin-top: 24px !important;
}

.homepage-services {
    padding-top: 74px;
}

.about-template-testimonials {
    padding-top: 68px;
    padding-bottom: 62px;
}

.about-template-testimonials .section-head {
    margin-bottom: 30px;
}

.about-template-testimonials .testimonial-1 {
    height: 100%;
    padding: 30px 28px;
    border-radius: 12px;
    border: 1px solid #dce3ee;
    background: #ffffff;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
    transition: all 0.3s ease;
}

.about-template-testimonials .testimonial-1 .dz-rating {
    margin-bottom: 12px;
}

.about-template-testimonials .testimonial-1 .dz-rating li {
    font-size: 17px;
}

.about-template-testimonials .testimonial-1 .testimonial-text p {
    font-size: 15px;
    line-height: 1.65;
    font-style: italic;
    color: #334155;
}

.about-template-testimonials .testimonial-1 .testimonial-detail {
    display: flex;
    align-items: center;
    margin-top: 18px;
    gap: 12px;
}

.about-template-testimonials .testimonial-1 .testimonial-pic {
    width: 56px;
    height: 56px;
    min-width: 56px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 0;
}

.about-template-testimonials .testimonial-1 .testimonial-pic img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.about-template-testimonials .testimonial-1:hover {
    transform: translateY(-2px);
}

.footer-dark .footer-title {
    color: #ffffff !important;
    font-weight: 700;
    letter-spacing: 0.01em;
}

.footer-dark .widget_about .text,
.footer-dark .widget_getintuch ul li span,
.footer-dark .widget_services ul li a,
.footer-dark .footer-bottom p {
    color: rgba(255, 255, 255, 0.9) !important;
}

.footer-dark .widget_services ul li a:hover,
.footer-dark .widget_getintuch ul li span a:hover {
    color: #ffffff !important;
}

.authors-author1-section .author-index-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}

.authors-author1-section .author-horizontal-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 24px 22px;
    border-radius: 12px;
    border: 1px solid #dfe5ef;
    background: #ffffff;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.08);
    text-align: center;
}

.authors-author1-section .author-horizontal-card .author-photo {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    overflow: hidden;
    background: #e9edf5;
    border: 1px solid #d7deea;
    margin: 0 auto 16px;
}

.authors-author1-section .author-horizontal-card .author-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.authors-author1-section .author-horizontal-card > div:not(.author-photo) {
    min-width: 0;
    display: flex;
    flex-direction: column;
    height: 100%;
    align-items: center;
}

.authors-author1-section .author-horizontal-card h4 {
    margin-bottom: 8px;
    line-height: 1.25;
    font-size: 22px;
}

.authors-author1-section .author-horizontal-card p {
    margin-bottom: 12px;
    line-height: 1.55;
    font-size: 14px;
    color: #475569;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.authors-author1-section .author-books-list {
    margin: 0 0 14px;
    padding: 0;
    list-style: none;
    width: 100%;
}

.authors-author1-section .author-books-list li {
    margin-bottom: 4px;
    line-height: 1.4;
    font-size: 13px;
    color: #64748b;
}

.authors-author1-section .author-books-list li:first-child {
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #0f172a;
}

.authors-author1-section .author-books-list li:first-child::before {
    content: "Book: ";
    font-weight: 700;
    color: #334155;
}

.authors-author1-section .author-books-list li a {
    color: inherit;
}

.authors-author1-section .author-card-cta {
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    padding: 10px 16px;
    border-radius: 8px;
    background: var(--primary);
    color: #fff;
    line-height: 1;
}

.authors-author1-section .author-card-cta:hover {
    background: var(--primary-hover);
    color: #fff;
}

@media (max-width: 1199px) {
    .authors-author1-section .author-index-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 991px) {
    .homepage-services {
        padding-top: 62px;
    }

    .authors-author1-section .author-horizontal-card .author-photo {
        width: 170px;
        height: 170px;
    }
}

@media (max-width: 767px) {
    .homepage-featured-books {
        padding-top: 60px;
    }

    .about-template-testimonials {
        padding-top: 56px;
        padding-bottom: 52px;
    }

    .authors-author1-section .author-index-list {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .authors-author1-section .author-horizontal-card .author-photo {
        width: 160px;
        height: 160px;
    }
}

/* --------------------------------------------------------------------------
   UTILITY REFINEMENTS
   -------------------------------------------------------------------------- */

/* Cleaner grey backgrounds */
.bg-grey, 
.bg-light {
    background-color: #f8fafc !important;
}

/* Better list styling */
.list-check-circle li {
    padding: 8px 0;
}

.list-check.primary li::before {
    color: var(--primary);
}

/* Contact form refinements */
.contact-area1 {
    border-radius: 16px;
}

.contact-area1 .form-control {
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    padding: 12px 16px;
}

.contact-area1 .form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--rgba-primary-1);
}

/* --------------------------------------------------------------------------
   RESPONSIVE ADJUSTMENTS
   -------------------------------------------------------------------------- */

@media (max-width: 991px) {
    .dz-bnr-inr h1 {
        font-size: 28px;
    }
    
    .main-slider .banner-content .title {
        font-size: 32px;
    }
}

@media (max-width: 767px) {
    .dz-bnr-inr h1 {
        font-size: 24px;
    }
    
    .main-slider .banner-content .title {
        font-size: 26px;
    }
    
    .pricingtable-wrapper.style-1.active {
        transform: none;
    }
}
/* ==========================================================================
   BLOG PAGE POLISH
   Added: 2026-03-12
   Refined styling for blog listing and detail pages
   ========================================================================== */

/* --------------------------------------------------------------------------
   BLOG LISTING CARDS
   -------------------------------------------------------------------------- */

.dz-blog.style-1 {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #eef2f7;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
    transition: all 0.3s ease;
}

.dz-blog.style-1:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    transform: translateY(-4px);
}

/* Blog card image */
.dz-blog.style-1 .dz-media {
    height: 220px;
    overflow: hidden;
}

.dz-blog.style-1 .dz-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.dz-blog.style-1:hover .dz-media img {
    transform: scale(1.05);
}

/* Blog card content */
.dz-blog.style-1 .dz-info {
    padding: 24px;
}

.dz-blog.style-1 .dz-title {
    font-size: 18px;
    line-height: 1.4;
    margin-bottom: 12px;
}

.dz-blog.style-1 .dz-title a {
    color: #1a202c;
    transition: color 0.2s ease;
}

.dz-blog.style-1 .dz-title a:hover {
    color: var(--primary);
}

/* Badge styling */
.dz-blog .badge.badge-primary,
.dz-meta .badge.badge-primary {
    background-color: var(--primary) !important;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.5px;
    padding: 6px 12px;
    border-radius: 20px;
}

/* --------------------------------------------------------------------------
   BLOG DETAIL PAGE
   -------------------------------------------------------------------------- */

.blog-single.dz-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.blog-single .dz-media {
    max-height: 450px;
    overflow: hidden;
}

.blog-single .dz-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.blog-single .dz-info {
    padding: 30px;
}

.blog-single .dz-title {
    font-size: 28px;
    line-height: 1.3;
    margin-bottom: 20px;
    color: #1a202c;
}

.blog-single .dz-post-text {
    font-size: 16px;
    line-height: 1.8;
    color: #4a5568;
}

.blog-single .dz-post-text h4 {
    margin-top: 30px;
    margin-bottom: 15px;
    color: #1a202c;
}

.blog-single .dz-post-text p {
    margin-bottom: 20px;
}

.blog-single .dz-post-text ul {
    margin-bottom: 20px;
    padding-left: 20px;
}

.blog-single .dz-post-text li {
    margin-bottom: 8px;
}

/* Blockquote styling */
.blog-single blockquote,
.wp-block-quote {
    background: var(--fpg-bg-soft, #f8fafc);
    border-left: 4px solid var(--primary);
    padding: 25px 30px;
    margin: 30px 0;
    border-radius: 0 12px 12px 0;
}

.blog-single blockquote p,
.wp-block-quote p {
    font-size: 18px;
    font-style: italic;
    line-height: 1.7;
    color: #4a5568;
    margin: 0;
}

/* Post tags */
.dz-share-post {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eef2f7;
}

.dz-share-post .badge {
    background-color: var(--rgba-primary-1, rgba(0, 144, 240, 0.1)) !important;
    color: var(--primary) !important;
    font-weight: 500;
    padding: 8px 14px;
    border-radius: 20px;
    margin-right: 8px;
    transition: all 0.2s ease;
}

.dz-share-post .badge:hover {
    background-color: var(--primary) !important;
    color: #fff !important;
}

/* --------------------------------------------------------------------------
   BLOG SIDEBAR
   -------------------------------------------------------------------------- */

.side-bar .widget {
    background: #fff;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 25px;
    border: 1px solid #eef2f7;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

.side-bar .widget-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--primary);
    color: #1a202c;
}

/* Recent posts widget */
.widget-post-bx .widget-post {
    display: flex;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #f0f3f8;
}

.widget-post-bx .widget-post:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.widget-post-bx .dz-media {
    width: 80px;
    height: 60px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
}

.widget-post-bx .dz-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.widget-post-bx .dz-info {
    padding-left: 15px;
}

.widget-post-bx .title {
    font-size: 14px;
    line-height: 1.4;
    margin-bottom: 5px;
}

.widget-post-bx .title a {
    color: #1a202c;
}

.widget-post-bx .title a:hover {
    color: var(--primary);
}

.widget-post-bx .post-date {
    font-size: 12px;
    color: #6b7280;
}

/* Categories widget */
.widget_categories ul li {
    padding: 10px 0;
    border-bottom: 1px solid #f0f3f8;
}

.widget_categories ul li:last-child {
    border-bottom: none;
}

.widget_categories ul li a {
    color: #4a5568;
    transition: color 0.2s ease;
}

.widget_categories ul li a:hover {
    color: var(--primary);
}

/* Tag cloud widget */
.widget_tag_cloud .tagcloud a {
    display: inline-block;
    background: var(--rgba-primary-1, rgba(0, 144, 240, 0.1));
    color: var(--primary);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 13px;
    margin: 4px;
    transition: all 0.2s ease;
}

.widget_tag_cloud .tagcloud a:hover {
    background: var(--primary);
    color: #fff;
}

/* CTA Widget */
.widget.widget_cta {
    text-align: center;
    padding: 30px 25px;
}

.widget.widget_cta h4 {
    margin-bottom: 10px;
}

.widget.widget_cta p {
    opacity: 0.9;
    margin-bottom: 20px;
}

/* Newsletter widget form */
.side-bar .widget .form-control {
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    padding: 12px 16px;
}

.side-bar .widget .form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--rgba-primary-1);
}

/* --------------------------------------------------------------------------
   BLOG PAGINATION
   -------------------------------------------------------------------------- */

.pagination.style-1 .page-link {
    border-radius: 8px;
    padding: 10px 18px;
    margin: 0 4px;
    font-weight: 500;
    border: 1px solid #e2e8f0;
    color: #4a5568;
    transition: all 0.2s ease;
}

.pagination.style-1 .page-link:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

.pagination.style-1 .page-link.active {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

/* --------------------------------------------------------------------------
   BLOG RESPONSIVE
   -------------------------------------------------------------------------- */

@media (max-width: 991px) {
    .blog-single .dz-title {
        font-size: 24px;
    }
    
    .blog-single .dz-info {
        padding: 20px;
    }
}

@media (max-width: 767px) {
    .blog-single .dz-title {
        font-size: 20px;
    }
    
    .dz-blog.style-1 .dz-media {
        height: 180px;
    }
    
    .side-bar .widget {
        padding: 20px;
    }
}

/* ==========================================================================
   BOOK DETAIL PAGE — PREMIUM REDESIGN STYLES
   Added: 2026-03-13
   Supports the premium book detail page layout across all catalog titles
   ========================================================================== */

/* Featured Title Badge */
.fpg-featured-badge {
    background: linear-gradient(135deg, #FFD700 0%, #FF8C00 100%);
    color: #333;
    padding: 5px 14px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    display: inline-block;
    margin-bottom: 8px;
    box-shadow: 0 2px 8px rgba(255, 165, 0, 0.25);
}

/* Catalog Updating placeholder text */
.catalog-updating {
    color: var(--fpg-text-muted, #6B7280);
    font-style: italic;
    font-size: 14px;
}

/* Book detail hero image polish */
.book-grid-row.style-4 .dz-media img {
    border-radius: 8px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    transition: transform 0.3s ease;
}

.book-grid-row.style-4 .dz-media img:hover {
    transform: scale(1.02);
}

/* Book overview table polish */
.book-overview th {
    background: var(--fpg-bg-soft, #F7F8FB);
    font-weight: 600;
    width: 160px;
}

.book-overview .badge {
    background: var(--rgba-primary-1, rgba(0, 144, 240, 0.1));
    color: var(--primary, #0090F0);
    padding: 6px 14px;
    border-radius: 20px;
    font-weight: 500;
    font-size: 13px;
    margin: 2px;
    transition: all 0.2s ease;
}

.book-overview .badge:hover {
    background: var(--primary, #0090F0);
    color: #fff;
}

/* Author profile card in about-author tab */
.author-profile-block {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 15px;
}

.author-profile-block img {
    border-radius: 50%;
    border: 3px solid var(--primary, #0090F0);
    box-shadow: 0 4px 12px rgba(0, 144, 240, 0.15);
}

/* Related books sidebar card hover */
.dz-shop-card.style-1 {
    transition: all 0.3s ease;
    border-radius: 8px;
    overflow: hidden;
}

.dz-shop-card.style-1:hover {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

/* Book page CTA section title centering */
.book-page-cta .section-head .title::after {
    left: 50%;
    transform: translateX(-50%);
}

/* Genre badge in book hero section */
.book-genre-badge {
    display: inline-block;
    background: var(--bs-secondary, #1F2A7A);
    color: #fff;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-bottom: 10px;
}

/* Book detail responsive refinements */
@media (max-width: 991px) {
    .book-grid-row.style-4 .dz-box {
        flex-direction: column;
        text-align: center;
    }
    
    .book-grid-row.style-4 .dz-media {
        margin: 0 auto 30px;
        max-width: 300px;
    }
    
    .book-grid-row.style-4 .book-info {
        justify-content: center;
    }
    
    .book-grid-row.style-4 .book-footer {
        justify-content: center;
    }
}

@media (max-width: 767px) {
    .book-grid-row.style-4 .dz-media {
        max-width: 250px;
    }
    
    .book-overview th {
        width: 120px;
    }
}