/* ==========================================================================
   Kiwi International Publishing House - Primary Stylesheet
   Strictly engineered to match the provided design mockup with Kiwi branding
   ========================================================================== */

:root {
    /* Color Palette */
    --color-primary-dark: #0e1120;
    --color-secondary-dark: #181d31;
    --color-surface-dark: #1c2137;
    --color-card-dark: #222741;
    --color-card-dark-translucent: rgba(28, 33, 55, 0.85);

    --color-accent-gold: #e59500;
    --color-accent-gold-hover: #f3a311;
    --color-accent-amber: #d97706;
    --color-accent-light: #fff8eb;

    --color-light-bg: #f8f9fc;
    --color-light-surface: #ffffff;
    --color-border-light: #e6e9f0;
    --color-border-dark: rgba(255, 255, 255, 0.1);

    --color-text-dark-primary: #111827;
    --color-text-dark-secondary: #4b5563;
    --color-text-light-primary: #ffffff;
    --color-text-light-secondary: #cbd5e1;
    --color-text-muted: #94a3b8;

    /* Typography */
    --font-heading: 'Playfair Display', Georgia, serif;
    --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-brand: 'Cinzel', 'Playfair Display', serif;

    /* Layout & Transitions */
    --container-max-width: 1240px;
    --transition-smooth: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.05);
    --shadow-hover: 0 20px 40px rgba(0, 0, 0, 0.12);
    --shadow-dark: 0 15px 35px rgba(0, 0, 0, 0.4);
    --shadow-gold-glow: 0 0 25px rgba(229, 149, 0, 0.35);
}

/* ==========================================================================
   Base & Resets
   ========================================================================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    scrollbar-width: thin;
    scrollbar-color: rgba(254, 177, 3, 0.45) #0e1120;
}

/* Custom Sleek Scrollbar */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: #0e1120;
}

::-webkit-scrollbar-thumb {
    background: rgba(254, 177, 3, 0.4);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: #feb103;
}

html {
    scroll-behavior: auto;
    font-size: 16px;
    overflow-x: hidden;
    max-width: 100%;
}

body {
    font-family: var(--font-sans);
    color: var(--color-text-dark-primary);
    background-color: #ffffff;
    line-height: 1.6;
    overflow-x: hidden;
    max-width: 100%;
    position: relative;
    -webkit-font-smoothing: antialiased;
}

/* ==========================================================================
   Full-Screen 100vh Page Preloader (#470000)
   ========================================================================== */
.kiaura-preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    min-height: 100vh;
    background-color: #470000;
    z-index: 99999999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    visibility: visible;
    transition: opacity 0.45s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.45s ease;
    pointer-events: all;
}

.kiaura-preloader.loaded {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.preloader-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    padding: 20px;
}

.preloader-gif {
    width: 440px;
    max-width: 86vw;
    height: auto;
    max-height: 70vh;
    object-fit: contain;
    display: block;
    user-select: none;
    -webkit-user-drag: none;
    /* filter: drop-shadow(0 12px 30px rgba(0, 0, 0, 0.22)); */
}

@media (max-width: 680px) {
    .preloader-gif {
        width: 310px;
        max-width: 88vw;
    }
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-smooth);
}

ul {
    list-style: none;
}

/* Container */
.container {
    width: 100%;
    max-width: var(--container-max-width);
    margin-left: auto;
    margin-right: auto;
    padding-left: 24px;
    padding-right: 24px;
}

.d-flex { display: flex; }
.justify-between { justify-content: space-between; }
.align-center { align-items: center; }

/* Section Utilities */
.section {
    padding: 90px 0;
    position: relative;
}

.text-accent {
    color: var(--color-accent-gold) !important;
}

.sub-badge-gold {
    display: inline-block;
    color: var(--color-accent-gold);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-bottom: 12px;
}

/* Buttons matching design pills */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: var(--font-sans);
    font-size: 0.88rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    padding: 13px 30px;
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition-smooth);
    border: 2px solid transparent;
    text-transform: uppercase;
}

.btn-primary {
    background-color: var(--color-accent-gold);
    color: #ffffff;
    box-shadow: 0 4px 18px rgba(229, 149, 0, 0.35);
}

.btn-primary:hover {
    background-color: var(--color-accent-gold-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(229, 149, 0, 0.45);
}

.btn-outline-white {
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.75);
    color: #ffffff;
}

.btn-outline-white:hover {
    background: #ffffff;
    color: var(--color-primary-dark);
    border-color: #ffffff;
    transform: translateY(-2px);
}

.btn-outline-dark {
    background: transparent;
    border: 2px solid var(--color-primary-dark);
    color: var(--color-primary-dark);
}

.btn-outline-dark:hover {
    background: var(--color-primary-dark);
    color: #ffffff;
    transform: translateY(-2px);
}

.btn-dark {
    background-color: var(--color-secondary-dark);
    color: #ffffff;
}

.btn-dark:hover {
    background-color: var(--color-primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(14, 17, 32, 0.25);
}

.btn-header-cta {
    background-color: var(--color-accent-gold);
    color: #ffffff;
    font-size: 0.8rem;
    padding: 9px 22px;
    border-radius: 50px;
    box-shadow: 0 4px 14px rgba(229, 149, 0, 0.3);
}

.btn-header-cta:hover {
    background-color: var(--color-accent-gold-hover);
    transform: translateY(-1px);
}

.btn-block {
    width: 100%;
}

/* ==========================================================================
   Header & Micro Bar
   ========================================================================== */
.top-announcement-bar {
    background-color: #080a14;
    color: #94a3b8;
    font-size: 0.78rem;
    padding: 7px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.badge-pulsing {
    color: var(--color-accent-gold);
    font-weight: 700;
    margin-right: 8px;
}

.top-announcement-contact a {
    color: #cbd5e1;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-left: 10px;
}

.top-announcement-contact a:hover {
    color: var(--color-accent-gold);
}

.top-announcement-contact .separator {
    color: rgba(255, 255, 255, 0.2);
    margin: 0 4px;
}

.site-header {
    background-color: var(--color-primary-dark);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: var(--transition-smooth);
}

.site-header.scrolled {
    background-color: rgba(14, 17, 32, 0.96);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 14px;
    padding-bottom: 14px;
}

/* Logo */
.brand-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-symbol {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #570310;
    border: 2px solid #feb103;
    overflow: hidden;
    box-shadow: 0 0 15px rgba(254, 177, 3, 0.35);
    flex-shrink: 0;
}

.brand-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.fallback-emblem {
    font-family: var(--font-brand);
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--color-accent-gold);
}

.brand-info {
    display: flex;
    flex-direction: column;
}

.brand-title {
    font-family: var(--font-heading);
    font-size: 1.45rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    color: #feb103;
    line-height: 1;
}

.brand-subtitle {
    font-size: 0.62rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #cbd5e1;
    font-weight: 700;
    margin-top: 3px;
}

/* Desktop Nav */
.main-navigation .nav-list {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-link {
    font-size: 0.9rem;
    font-weight: 500;
    color: #e2e8f0;
    position: relative;
    padding: 6px 0;
}

.nav-link:hover, .nav-link.active {
    color: var(--color-accent-gold);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-accent-gold);
    transition: var(--transition-smooth);
}

.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

/* ==========================================================================
   Header Search Input & Embedded Right-Side Search Button
   ========================================================================== */
.header-search-form {
    position: relative;
    width: 250px;
    transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.header-search-form:focus-within {
    width: 285px;
}

.header-search-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.08);
    border: 1.5px solid rgba(255, 255, 255, 0.16);
    border-radius: 50px;
    padding: 3px 4px 3px 16px;
    height: 42px;
    transition: all 0.25s ease;
    backdrop-filter: blur(4px);
}

.header-search-input-wrap:hover {
    border-color: rgba(229, 149, 0, 0.5);
    background: rgba(255, 255, 255, 0.11);
}

.header-search-input-wrap:focus-within {
    border-color: var(--color-accent-gold);
    background: #0b0e1d;
    box-shadow: 0 0 0 3px rgba(229, 149, 0, 0.25), 0 6px 20px rgba(0, 0, 0, 0.3);
}

.header-search-input {
    flex: 1;
    min-width: 0;
    border: none;
    background: transparent;
    outline: none;
    font-size: 0.88rem;
    font-weight: 500;
    font-family: inherit;
    color: #ffffff;
    padding: 6px 6px 6px 0;
}

.header-search-input::placeholder {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.84rem;
    font-weight: 400;
}

.header-search-btn {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background-color: var(--color-accent-gold);
    color: #ffffff;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 2px 8px rgba(229, 149, 0, 0.35);
}

.header-search-btn:hover {
    background-color: var(--color-accent-gold-hover);
    transform: scale(1.06);
    box-shadow: 0 4px 12px rgba(229, 149, 0, 0.5);
}

.header-search-btn:active {
    transform: scale(0.96);
}

.header-search-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 320px;
    background: #0f1326;
    border: 1px solid rgba(229, 149, 0, 0.3);
    border-radius: 14px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.55);
    max-height: 360px;
    overflow-y: auto;
    z-index: 1050;
    padding: 8px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.header-search-dropdown::-webkit-scrollbar {
    width: 5px;
}
.header-search-dropdown::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
}

.header-search-dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 10px;
    border-radius: 8px;
    text-decoration: none;
    background: rgba(255, 255, 255, 0.03);
    transition: all 0.2s ease;
}

.header-search-dropdown-item:hover {
    background: rgba(229, 149, 0, 0.15);
    transform: translateX(2px);
}

.header-search-dropdown-thumb {
    width: 38px;
    height: 50px;
    object-fit: cover;
    border-radius: 4px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
    flex-shrink: 0;
}

.header-search-dropdown-info {
    flex: 1;
    min-width: 0;
}

.header-search-dropdown-title {
    font-size: 0.84rem;
    font-weight: 600;
    color: #ffffff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 2px;
}

.header-search-dropdown-meta {
    font-size: 0.74rem;
    color: #94a3b8;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.header-search-dropdown-empty {
    padding: 16px;
    text-align: center;
    color: #94a3b8;
    font-size: 0.82rem;
}

.header-search-dropdown-footer {
    padding: 8px;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.header-search-dropdown-footer a {
    font-size: 0.78rem;
    color: var(--color-accent-gold);
    font-weight: 600;
    text-decoration: none;
}

.header-search-dropdown-footer a:hover {
    text-decoration: underline;
}

/* Mobile drawer search form */
.mobile-drawer-search-form {
    width: 100%;
    margin-bottom: 16px;
}

.mobile-drawer-search-form .header-search-input-wrap {
    background: #1a2035;
    border-color: rgba(255, 255, 255, 0.15);
}

.mobile-drawer-search-form .header-search-input {
    color: #ffffff;
}

.mobile-nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 28px;
    height: 20px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
}

.hamburger-bar {
    display: block;
    width: 100%;
    height: 2px;
    background-color: #ffffff;
    border-radius: 2px;
    transition: var(--transition-smooth);
}

/* ==========================================================================
   Section 1: Hero Section (Dark Ambiance with 3D Book Presentation)
   ========================================================================== */
.hero-section {
    position: relative;
    background-color: var(--color-primary-dark);
    background-image: 
        radial-gradient(circle at 75% 45%, rgba(229, 149, 0, 0.14) 0%, transparent 60%),
        radial-gradient(circle at 20% 80%, rgba(24, 29, 49, 0.8) 0%, transparent 50%),
        linear-gradient(180deg, rgba(14, 17, 32, 0.88) 0%, rgba(14, 17, 32, 0.96) 100%),
        url('../images/hero-library-bg.jpg');
    background-size: cover;
    background-position: center;
    padding: 100px 0 120px 0;
    color: #ffffff;
    overflow: hidden;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-badge-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(229, 149, 0, 0.12);
    border: 1px solid rgba(229, 149, 0, 0.3);
    color: var(--color-accent-gold);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    padding: 6px 16px;
    border-radius: 30px;
    margin-bottom: 24px;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    line-height: 1.15;
    font-weight: 700;
    margin-bottom: 22px;
    letter-spacing: -0.02em;
}

.hero-title .text-accent {
    color: var(--color-accent-gold) !important;
}

.hero-subtitle {
    font-size: 1.05rem;
    line-height: 1.68;
    color: #cbd5e1;
    margin-bottom: 36px;
    max-width: 530px;
    font-weight: 400;
}

.hero-cta-group {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-bottom: 40px;
}

.hero-secondary-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #ffffff;
    font-size: 0.88rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    padding: 10px 16px;
}

.hero-secondary-link:hover {
    color: var(--color-accent-gold);
}

.play-icon-glow {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    color: var(--color-accent-gold);
}

.hero-social-block {
    display: flex;
    align-items: center;
    gap: 18px;
    padding-top: 10px;
}

.hero-social-label {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #64748b;
    font-weight: 600;
}

.hero-social-icons {
    display: flex;
    gap: 14px;
}

.hero-social-icons a {
    color: #94a3b8;
    transition: var(--transition-smooth);
}

.hero-social-icons a:hover {
    color: var(--color-accent-gold);
    transform: translateY(-2px);
}

/* ==========================================================================
   3D 5-Book Stepped Carousel (Center Highlighted, 2 Left, 2 Right)
   Smooth, Slow, Continuous Looping Carousel
   ========================================================================== */
.hero-visual-wrapper {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    perspective: 1400px;
    width: 100%;
    min-height: 440px;
}

.hero-ambient-glow {
    position: absolute;
    width: 440px;
    height: 440px;
    background: radial-gradient(circle, rgba(229, 149, 0, 0.28) 0%, transparent 68%);
    border-radius: 50%;
    z-index: 1;
    pointer-events: none;
    filter: blur(35px);
}

.book-showcase-3d {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 420px;
    width: 100%;
    transform-style: preserve-3d;
}

/* Base book container */
.book-3d-item {
    position: absolute;
    width: 200px;
    cursor: pointer;
    transform-style: preserve-3d;
    transition: transform 1.2s cubic-bezier(0.25, 1, 0.35, 1), 
                opacity 1.2s cubic-bezier(0.25, 1, 0.35, 1), 
                filter 1.2s cubic-bezier(0.25, 1, 0.35, 1), 
                box-shadow 1.2s cubic-bezier(0.25, 1, 0.35, 1);
    opacity: 0;
    pointer-events: none;
    will-change: transform, opacity, filter;
}

/* Book Cover Styling with realistic 3D spine and page edge */
.book-cover-frame {
    border-radius: 4px 10px 10px 4px;
    overflow: hidden;
    position: relative;
    background: #111;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.book-cover-frame img {
    display: block;
    width: 100%;
    height: 290px;
    object-fit: cover;
}

/* Spine shadow on the left side of book */
.book-cover-frame::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 14px;
    height: 100%;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.45), rgba(255, 255, 255, 0.15) 40%, transparent 100%);
    z-index: 2;
    pointer-events: none;
}

/* Realistic 3D white/cream page edge on right */
.book-cover-frame::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 7px;
    height: 100%;
    background: linear-gradient(to right, rgba(0,0,0,0.3), #f2ece1 40%, #c4baa7 100%);
    z-index: 2;
    pointer-events: none;
}

/* -------------------------------------------------------------
   5 Stepped Carousel States (Center, Left 1, Left 2, Right 1, Right 2)
   ------------------------------------------------------------- */

/* CENTER HIGHLIGHTED (Hero Focus) */
.book-3d-item.pos-center {
    opacity: 1;
    pointer-events: auto;
    z-index: 10;
    transform: translate3d(0, -10px, 120px) rotateY(0deg) scale(1.15);
    filter: brightness(1.08) drop-shadow(0 25px 35px rgba(0, 0, 0, 0.75));
}
.book-3d-item.pos-center .book-cover-frame {
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.8), 0 0 40px rgba(229, 149, 0, 0.35);
    border-color: rgba(229, 149, 0, 0.5);
}

/* LEFT 1 (Step 1 to the left) */
.book-3d-item.pos-left-1 {
    opacity: 0.88;
    pointer-events: auto;
    z-index: 7;
    transform: translate3d(-105px, 0px, 50px) rotateY(20deg) scale(0.96);
    filter: brightness(0.78) blur(0.2px);
}
.book-3d-item.pos-left-1:hover {
    filter: brightness(0.92);
}

/* LEFT 2 (Step 2 further to the left in background) */
.book-3d-item.pos-left-2 {
    opacity: 0.65;
    pointer-events: auto;
    z-index: 4;
    transform: translate3d(-195px, 10px, -20px) rotateY(32deg) scale(0.82);
    filter: brightness(0.55) blur(0.5px);
}
.book-3d-item.pos-left-2:hover {
    filter: brightness(0.75);
}

/* RIGHT 1 (Step 1 to the right) */
.book-3d-item.pos-right-1 {
    opacity: 0.88;
    pointer-events: auto;
    z-index: 7;
    transform: translate3d(105px, 0px, 50px) rotateY(-20deg) scale(0.96);
    filter: brightness(0.78) blur(0.2px);
}
.book-3d-item.pos-right-1:hover {
    filter: brightness(0.92);
}

/* RIGHT 2 (Step 2 further to the right in background) */
.book-3d-item.pos-right-2 {
    opacity: 0.65;
    pointer-events: auto;
    z-index: 4;
    transform: translate3d(195px, 10px, -20px) rotateY(-32deg) scale(0.82);
    filter: brightness(0.55) blur(0.5px);
}
.book-3d-item.pos-right-2:hover {
    filter: brightness(0.75);
}

/* HIDDEN (Queued for looping in background) */
.book-3d-item.pos-hidden {
    opacity: 0;
    pointer-events: none;
    z-index: 1;
    transform: translate3d(0, 40px, -150px) scale(0.6);
}

/* Floor Shadow / Reflection beneath books */
.book-floor-shadow {
    position: absolute;
    bottom: -8px;
    width: 90%;
    height: 35px;
    background: radial-gradient(ellipse at center, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.3) 50%, transparent 75%);
    z-index: 1;
    pointer-events: none;
}

/* Carousel Navigation Indicator Dots */
.hero-carousel-dots {
    position: absolute;
    bottom: -32px;
    display: flex;
    align-items: center;
    gap: 8px;
    z-index: 12;
}

.h-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.25);
    cursor: pointer;
    transition: all 0.4s ease;
}

.h-dot.active {
    width: 24px;
    border-radius: 12px;
    background: var(--color-accent-gold);
    box-shadow: 0 0 10px rgba(229, 149, 0, 0.6);
}
.book-floor-shadow {
    position: absolute;
    bottom: -15px;
    width: 80%;
    height: 25px;
    background: radial-gradient(ellipse at center, rgba(0,0,0,0.65) 0%, transparent 75%);
    z-index: 1;
}

/* ==========================================================================
   Section 2: "Everything You Need to Succeed" (White 4-Card Services Grid)
   ========================================================================== */
.services-section {
    background-color: var(--color-light-surface);
    padding: 100px 0;
}

.section-header-center {
    text-align: center;
    max-width: 680px;
    margin: 0 auto 55px auto;
}

.section-header-center h2 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-text-dark-primary);
    line-height: 1.22;
    margin-bottom: 16px;
}

.section-header-center p {
    font-size: 1rem;
    color: var(--color-text-dark-secondary);
    line-height: 1.6;
}

.services-grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.service-card {
    background: #ffffff;
    border: 1px solid var(--color-border-light);
    border-radius: 14px;
    padding: 32px 26px;
    position: relative;
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
    border-color: rgba(229, 149, 0, 0.4);
}

.service-card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 22px;
}

.service-number-badge {
    background-color: var(--color-accent-light);
    color: var(--color-accent-gold);
    font-size: 0.8rem;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 6px;
    border: 1px solid rgba(229, 149, 0, 0.25);
    letter-spacing: 0.05em;
}

.service-icon-wrapper {
    width: 38px;
    height: 38px;
    color: var(--color-accent-gold);
    opacity: 0.85;
}

.service-title {
    font-family: var(--font-sans);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--color-text-dark-primary);
    margin-bottom: 12px;
}

.service-desc {
    font-size: 0.88rem;
    line-height: 1.65;
    color: var(--color-text-dark-secondary);
    margin-bottom: 22px;
    flex-grow: 1;
}

.service-learn-more {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--color-accent-gold);
    letter-spacing: 0.04em;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.service-learn-more:hover {
    color: var(--color-accent-amber);
    gap: 10px;
}

/* ==========================================================================
   Shared One-Image Dark Library Background Wrapper
   Both "RECENT PUBLICATIONS" and "Partner with Top…" live inside this wrapper.
   ONE background image, declared once — zero gap, zero seam.
   Gradients are semi-transparent so the library photo is clearly visible.
   ========================================================================== */
.dark-library-bg-wrapper {
    background-color: var(--color-primary-dark);
    background-image: 
        radial-gradient(circle at 75% 45%, rgba(229, 149, 0, 0.14) 0%, transparent 60%),
        radial-gradient(circle at 20% 80%, rgba(24, 29, 49, 0.8) 0%, transparent 50%),
        linear-gradient(180deg, rgba(14, 17, 32, 0.88) 0%, rgba(14, 17, 32, 0.96) 100%),
        url('../images/hero-library-bg.jpg');
    background-size: cover;
    background-position: center center;
    background-attachment: fixed;
    position: relative;
    z-index: 1;
    color: #ffffff;
    overflow-x: hidden;
    max-width: 100%;
}

/* Each child section is transparent — bg image shows through both seamlessly */
.history-section,
.partner-section {
    background: transparent !important;
    background-image: none !important;
    color: #ffffff;
    position: relative;
    z-index: 2;
}

/* Thin gold divider line — just rhythm, no harsh border */
.partner-section::before {
    content: '';
    display: block;
    width: 50%;
    max-width: 420px;
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(229, 149, 0, 0.40), transparent);
    margin: 0 auto;
}

/* history-section spacing */
.history-section {
    padding: 95px 0 55px 0;
}

/* partner-section spacing */
.partner-section {
    padding: 55px 0 95px 0;
    border-top: none;
    box-shadow: none;
}

.history-header-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 45px;
}

.history-header-row h2 {
    font-family: var(--font-heading);
    font-size: 2.4rem;
    font-weight: 700;
    line-height: 1.2;
}

.link-view-all {
    color: var(--color-accent-gold);
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 0.05em;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.link-view-all:hover {
    gap: 10px;
    color: #ffffff;
}

/* 4 Books Grid (Desktop: 4 books per row) */
.history-books-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 28px;
    margin-bottom: 30px;
    align-items: stretch;
}

.history-book-item {
    display: flex;
    flex-direction: column;
    width: 100%;
    transition: var(--transition-smooth);
    opacity: 1;
    transform: translateY(0);
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

.history-book-item:hover {
    text-decoration: none;
    color: inherit;
}

.history-book-item:hover .history-book-meta h4 {
    color: var(--color-accent-gold);
    transition: color 0.3s ease;
}

/* Hidden items before Load More is triggered */
.history-book-item.book-item-hidden {
    display: none;
    opacity: 0;
    transform: translateY(20px);
}

/* Smooth reveal animation when loaded */
.history-book-item.book-item-revealed {
    display: flex;
    animation: bookFadeSlideIn 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes bookFadeSlideIn {
    from {
        opacity: 0;
        transform: translateY(28px) scale(0.96);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Load More / Show All Button Container */
.history-load-more-wrapper {
    display: flex;
    justify-content: center;
    margin-bottom: 100px;
    position: relative;
    z-index: 5;
}

.history-load-more-btn {
    padding: 12px 34px;
    font-size: 0.85rem;
    letter-spacing: 0.08em;
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.07);
    border: 1.5px solid rgba(255, 255, 255, 0.28);
    color: #ffffff;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    cursor: pointer;
    transition: all 0.35s ease;
}

.history-load-more-btn:hover {
    background: var(--color-accent-gold);
    border-color: var(--color-accent-gold);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(229, 149, 0, 0.4);
}

/* State when transformed to Show All */
.history-load-more-btn.btn-show-all {
    background: var(--color-accent-gold);
    border-color: var(--color-accent-gold);
    color: #ffffff;
    box-shadow: 0 8px 25px rgba(229, 149, 0, 0.45);
}

.history-load-more-btn.btn-show-all:hover {
    background: var(--color-accent-gold-hover);
    transform: translateY(-3px);
}

/* Standardized, strictly identical book cover container */
.history-book-cover {
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1.35; /* Strict 1:1.35 book ratio for all covers */
    height: 360px; /* Fixed matching uniform height */
    max-height: 380px;
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.6);
    margin-bottom: 16px;
    background: #111422;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

/* Spine shadow on left */
.history-book-cover::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 12px;
    height: 100%;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.4), transparent);
    z-index: 2;
    pointer-events: none;
}

/* Page edge on right */
.history-book-cover::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 5px;
    height: 100%;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.25), rgba(240, 235, 225, 0.8));
    z-index: 2;
    pointer-events: none;
}

.history-book-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
    transition: transform 0.45s ease;
}

.history-book-item:hover .history-book-cover img {
    transform: scale(1.04);
}

.history-book-item:hover .history-book-cover {
    box-shadow: 0 22px 45px rgba(0, 0, 0, 0.75), 0 0 25px rgba(229, 149, 0, 0.35);
    border-color: rgba(229, 149, 0, 0.45);
}

.history-book-meta {
    padding-top: 2px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.history-book-meta h4 {
    font-size: 0.96rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 6px;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.7em; /* Aligns all book titles uniformly */
}

.history-book-meta p {
    font-size: 0.82rem;
    color: #94a3b8;
    line-height: 1.4;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Featured Testimonial Card */
.featured-testimonial-card {
    background: var(--color-card-dark-translucent);
    backdrop-filter: blur(12px);
    border: 1px solid var(--color-border-dark);
    border-radius: 18px;
    padding: 40px;
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 40px;
    align-items: center;
    box-shadow: var(--shadow-dark);
    position: relative;
}

.testimonial-author-col {
    position: relative;
}

.quote-circle-badge {
    position: absolute;
    top: -12px;
    left: -12px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: var(--color-accent-gold);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    font-family: var(--font-heading);
    box-shadow: 0 4px 15px rgba(229, 149, 0, 0.4);
    z-index: 2;
}

.author-photo-wrapper {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 14px;
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, 0.12);
}

.author-photo-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.testimonial-content-col {
    display: flex;
    flex-direction: column;
}

.rating-stars {
    display: flex;
    gap: 5px;
    color: var(--color-accent-gold);
    font-size: 1.1rem;
    margin-bottom: 14px;
}

.testimonial-headline {
    font-family: var(--font-heading);
    font-size: 1.45rem;
    font-weight: 700;
    line-height: 1.35;
    color: #ffffff;
    margin-bottom: 14px;
}

.testimonial-body {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--color-text-light-secondary);
    margin-bottom: 20px;
}

.testimonial-author-name {
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-accent-gold);
    margin-bottom: 2px;
}

.testimonial-author-role {
    font-size: 0.82rem;
    color: #94a3b8;
}

/* partner-section — base layout only; background inherited from .dark-library-bg-wrapper */
.partner-section {
    padding: 55px 0 95px 0;
    color: #ffffff;
    position: relative;
    z-index: 2;
    overflow: hidden;
    max-width: 100%;
}

.partner-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.25fr;
    gap: 40px;
    align-items: center;
}

.partner-text-col h2 {
    font-family: var(--font-heading);
    font-size: 2.7rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
}

.partner-text-col p {
    font-size: 1.02rem;
    line-height: 1.7;
    color: var(--color-text-light-secondary);
    margin-bottom: 34px;
    max-width: 480px;
}

.partner-buttons-row {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

/* ==========================================================================
   4 Real 3D Hardcover Standing Books Showcase in "Partner with Top..." Section
   Solid volumetric 3D books with hardcover lip, thick white paper block,
   top page bevel, and realistic grounded drop shadows.
   ========================================================================== */
.partner-books-showcase {
    position: relative;
    width: 100%;
    max-width: 100%;
    min-height: 380px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 30px 0;
    overflow: visible;
}

.partner-books-stage {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(10px, 1.8vw, 24px);
    width: 100%;
    max-width: 100%;
    position: relative;
    z-index: 2;
    perspective: 1200px;
    transform-style: preserve-3d;
    padding-right: 18px;
}

/* Individual 3D Book Container */
.partner-book-3d {
    flex: 1 1 0;
    max-width: 138px;
    min-width: 0;
    width: 100%;
    transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1), filter 0.45s ease;
    cursor: pointer;
    position: relative;
    transform-style: preserve-3d;
}

/* Realistic 3D standing book structure turned ~36deg with thick volumetric body */
.partner-book-wrapper {
    position: relative;
    border-radius: 4px 6px 6px 4px;
    background: #0f121e;
    transform-style: preserve-3d;
    /* Consistent 3D isometric turn */
    transform: rotateY(-36deg) rotateX(2deg);
    transform-origin: center center;
    transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.45s ease;
    /* Deep realistic floor & contact shadow */
    box-shadow: -10px 18px 25px rgba(0, 0, 0, 0.75), 
                -3px 6px 12px rgba(0, 0, 0, 0.5);
    width: 100%;
}

/* Front Cover Image with Hardcover bevel */
.partner-book-front {
    position: relative;
    border-radius: 3px 0 0 3px;
    overflow: hidden;
    background: #101322;
    aspect-ratio: 1 / 1.48;
    width: 100%;
    height: auto;
    max-height: 270px;
    /* Hardcover rim definition */
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.15),
                inset 2px 0 5px rgba(0, 0, 0, 0.5);
    z-index: 2;
}

.partner-book-front img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Left spine curvature and crease highlight */
.partner-book-spine {
    position: absolute;
    top: 0;
    left: 0;
    width: 16px;
    height: 100%;
    background: linear-gradient(
        to right,
        rgba(0, 0, 0, 0.65) 0%,
        rgba(0, 0, 0, 0.25) 30%,
        rgba(255, 255, 255, 0.18) 50%,
        rgba(0, 0, 0, 0.3) 70%,
        transparent 100%
    );
    z-index: 4;
    pointer-events: none;
    border-radius: 3px 0 0 3px;
}

/* Hardcover Top Page Bevel */
.partner-book-top-pages {
    position: absolute;
    top: -9px;
    left: 0;
    width: 100%;
    height: 11px;
    background: linear-gradient(
        to bottom,
        #f6f1e7 0%,
        #e3ddd2 50%,
        #b8af9f 100%
    );
    transform: rotateX(80deg);
    transform-origin: bottom center;
    z-index: 1;
    border-radius: 3px 3px 0 0;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Thick Volumetric 3D White/Cream Page Block on Right */
.partner-book-pages {
    position: absolute;
    top: 2px;
    bottom: 2px;
    right: -18px;
    width: 20px;
    height: calc(100% - 4px);
    background: linear-gradient(
        to right,
        #d1c9bd 0%,
        #f4efe6 20%,
        #ffffff 45%,
        #f0e9dd 75%,
        #b3a998 100%
    );
    transform: rotateY(80deg);
    transform-origin: left center;
    box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.35),
                4px 12px 25px rgba(0, 0, 0, 0.5);
    border-radius: 0 3px 3px 0;
    z-index: 1;
}

/* Realistic textured page lines */
.partner-book-pages::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
        to bottom,
        transparent 0px,
        transparent 2px,
        rgba(0, 0, 0, 0.06) 3px
    );
    pointer-events: none;
}

/* Optional Center subtle highlight */
.partner-book-3d.book-center-hero {
    transform: translateZ(25px) translateY(-6px);
}
.partner-book-3d.book-center-hero .partner-book-wrapper {
    box-shadow: -18px 28px 45px rgba(0, 0, 0, 0.8), 
                0 0 30px rgba(229, 149, 0, 0.25);
}

/* Realistic Interactive 3D Hover Effect */
.partner-book-3d:hover .partner-book-wrapper {
    transform: rotateY(-28deg) rotateX(0deg) translateY(-16px) scale(1.06);
    box-shadow: -22px 34px 55px rgba(0, 0, 0, 0.9), 
                0 0 35px rgba(229, 149, 0, 0.4);
}

/* Grounded Ambient Floor Shadow */
.partner-floor-shadow {
    width: 90%;
    height: 35px;
    background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.3) 55%, transparent 75%);
    margin-top: 15px;
    z-index: 1;
    pointer-events: none;
}

/* ==========================================================================
   Section 5: "Turn Your Ideas Into a Published Book" (White Split Layout)
   ========================================================================== */
.turn-ideas-section {
    background-color: #ffffff;
    padding: 100px 0;
}

.turn-ideas-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 60px;
    align-items: center;
}

.turn-ideas-text h2 {
    font-family: var(--font-heading);
    font-size: 2.85rem;
    font-weight: 700;
    line-height: 1.2;
    color: var(--color-text-dark-primary);
    margin-bottom: 18px;
}

.turn-ideas-text .lead-intro {
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--color-text-dark-secondary);
    margin-bottom: 24px;
    font-weight: 500;
}

.turn-ideas-text h3 {
    font-family: var(--font-sans);
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--color-text-dark-primary);
    margin-bottom: 16px;
}

.turn-ideas-text p {
    font-size: 0.94rem;
    line-height: 1.75;
    color: #4b5563;
    margin-bottom: 16px;
}

.turn-ideas-actions {
    display: flex;
    gap: 16px;
    margin-top: 32px;
    flex-wrap: wrap;
}

.turn-ideas-illustration-col {
    display: flex;
    justify-content: center;
    align-items: center;
}

.artistic-illustration-wrapper {
    max-width: 440px;
    width: 100%;
    position: relative;
    border-radius: 12px;
}

.artistic-illustration-wrapper img {
    width: 100%;
    height: auto;
    object-fit: contain;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
    background-color: #0b0e1b;
    color: #94a3b8;
    position: relative;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* ==========================================================================
   Section: Ready to Become a Published Author (Exact Mockup Card Design)
   ========================================================================== */
.ready-author-section {
    background-color: #e5e5e5; /* Exact light gray background from uploaded image */
    padding: 80px 20px 90px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    border-bottom: 1px solid #d4d4d4;
}

.author-connect-card {
    display: flex;
    max-width: 820px;
    width: 100%;
    min-height: 480px;
    margin: 0 auto;
    background: #ffffff;
    border-radius: 28px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.16), 0 4px 15px rgba(0, 0, 0, 0.08);
}

/* Left Column: Yellow Panel with Waves & Sparkles */
.connect-card-brand {
    flex: 0 0 44%;
    background: linear-gradient(145deg, #570310, #3d020b); /* Kiaura Maroon from official brand banner */
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 24px;
    overflow: hidden;
    text-align: center;
}

.connect-brand-waves {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.connect-brand-waves svg {
    width: 100%;
    height: 100%;
    display: block;
}

/* 4 Sparkle Stars from the Mockup */
.sparkle-star {
    position: absolute;
    z-index: 2;
    filter: drop-shadow(0 0 2px rgba(255, 255, 255, 0.8));
    animation: sparkleBlink 3.2s ease-in-out infinite alternate;
}

.sparkle-star svg {
    fill: #ffffff;
}

.star-1 {
    top: 35%;
    left: 14%;
    width: 18px;
    height: 18px;
    animation-delay: 0s;
}

.star-2 {
    top: 23%;
    left: 52%;
    width: 14px;
    height: 14px;
    animation-delay: 0.8s;
}

.star-3 {
    top: 38%;
    right: 16%;
    width: 17px;
    height: 17px;
    animation-delay: 1.6s;
}

.star-4 {
    bottom: 22%;
    left: 52%;
    width: 14px;
    height: 14px;
    animation-delay: 2.4s;
}

@keyframes sparkleBlink {
    0% { transform: scale(0.85); opacity: 0.7; }
    100% { transform: scale(1.15); opacity: 1; }
}

.connect-brand-center {
    position: relative;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.brand-circle-emblem {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    background: #ffffff;
    border: 3px solid #feb103;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.35);
    margin-bottom: 16px;
    padding: 8px;
    overflow: hidden;
}

.brand-emblem-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.brand-company-title {
    font-family: var(--font-heading);
    font-size: 1.55rem;
    font-weight: 800;
    color: #feb103;
    letter-spacing: 0.08em;
    margin-bottom: 4px;
    text-transform: uppercase;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}

.brand-company-subtitle {
    font-size: 0.68rem;
    color: #ffffff;
    letter-spacing: 0.12em;
    font-weight: 700;
    text-transform: uppercase;
    margin: 0;
}

/* Right Column: White Form Panel */
.connect-card-form-wrap {
    flex: 1;
    background: #ffffff;
    padding: 38px 46px 22px;
    display: flex;
    flex-direction: column;
}

.connect-form-title {
    font-family: 'Plus Jakarta Sans', -apple-system, sans-serif;
    font-size: 1.75rem;
    font-weight: 500;
    color: #374151;
    text-align: center;
    margin-top: 4px;
    margin-bottom: 4px;
}

.connect-form-subtitle {
    font-size: 0.75rem;
    color: #9ca3af;
    text-align: center;
    margin-bottom: 22px;
    line-height: 1.4;
}

.author-connect-form {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.connect-input-row {
    display: flex;
    align-items: center;
    border-bottom: 1.5px solid #d1d5db;
    padding: 6px 0;
    margin-bottom: 16px;
    transition: border-bottom-color 0.2s ease;
}

.connect-input-row:focus-within {
    border-bottom-color: #fcbd0b;
}

.connect-row-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    color: #6b7280;
    flex-shrink: 0;
}

.connect-input-row:focus-within .connect-row-icon svg {
    fill: #fcbd0b;
}

.connect-line-input {
    flex: 1;
    border: none;
    background: transparent;
    outline: none;
    font-family: inherit;
    font-size: 0.92rem;
    color: #1f2937;
    padding: 4px 0;
}

.connect-line-input::placeholder {
    color: #9ca3af;
    font-size: 0.88rem;
}

/* Checkbox matching image */
.connect-checkbox-row {
    margin-top: -2px;
    margin-bottom: 8px;
    text-align: center;
}

.connect-custom-checkbox {
    display: inline-flex;
    align-items: center;
    cursor: pointer;
    font-size: 0.75rem;
    color: #9ca3af;
    user-select: none;
}

.connect-custom-checkbox input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.checkbox-box {
    width: 13px;
    height: 13px;
    border-radius: 3px;
    background-color: #fcbd0b;
    margin-right: 7px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.connect-custom-checkbox input:checked ~ .checkbox-box::after {
    content: "✓";
    color: #ffffff;
    font-size: 10px;
    font-weight: 800;
}

/* Centered Yellow Pill Button */
.connect-btn-center {
    text-align: center;
    margin: 10px 0 8px;
}

.btn-yellow-pill {
    background-color: #fcbd0b;
    color: #ffffff;
    font-size: 0.96rem;
    font-weight: 700;
    border: none;
    border-radius: 50px;
    padding: 10px 56px;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(252, 189, 11, 0.4);
    transition: all 0.2s ease;
    font-family: inherit;
}

.btn-yellow-pill:hover {
    background-color: #e5a700;
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(252, 189, 11, 0.5);
}

.btn-yellow-pill:active {
    transform: translateY(0);
}

/* Register / Call hint */
.connect-register-hint {
    text-align: center;
    font-size: 0.73rem;
    color: #9ca3af;
    margin-bottom: 12px;
}

.connect-register-hint .highlight-link {
    color: #fcbd0b;
    font-weight: 700;
    text-decoration: none;
    letter-spacing: 0.02em;
}

.connect-register-hint .highlight-link:hover {
    text-decoration: underline;
}

/* Bottom Divider & Footer Row */
.connect-card-bottom-bar {
    margin-top: auto;
    border-top: 1px solid #e5e7eb;
    padding-top: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.72rem;
    color: #9ca3af;
}

.bottom-bar-left {
    display: flex;
    align-items: center;
    gap: 7px;
}

.bottom-yellow-icon {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: #fcbd0b;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bottom-bar-text {
    color: #9ca3af;
}

.bottom-bar-email {
    color: #9ca3af;
}

/* Feedback alert */
.connect-form-alert {
    padding: 10px 14px;
    border-radius: 8px;
    margin-bottom: 12px;
    font-size: 0.82rem;
    text-align: center;
}

.connect-form-alert.success {
    background: #ecfdf5;
    color: #065f46;
    border: 1px solid #10b981;
}

.connect-form-alert.error {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #f87171;
}

.btn-outline-light {
    border: 2px solid rgba(255, 255, 255, 0.35);
    color: #ffffff;
    background: transparent;
}

.btn-outline-light:hover {
    border-color: #ffffff;
    background: #ffffff;
    color: var(--color-primary-dark);
}

.footer-main {
    padding: 80px 24px 50px 24px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1.2fr 1.4fr;
    gap: 50px;
}

.footer-col-brand .footer-logo {
    display: flex;
    flex-direction: column;
    margin-bottom: 18px;
}

.footer-about {
    font-size: 0.88rem;
    line-height: 1.7;
    color: #94a3b8;
    margin-bottom: 24px;
}

.footer-social-links {
    display: flex;
    gap: 12px;
}

.social-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #cbd5e1;
}

.social-icon:hover {
    background: var(--color-accent-gold);
    color: #ffffff;
    border-color: var(--color-accent-gold);
    transform: translateY(-2px);
}

.footer-heading {
    font-family: var(--font-sans);
    font-size: 1.05rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 22px;
    position: relative;
    padding-bottom: 8px;
}

.footer-heading::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background-color: var(--color-accent-gold);
}

.footer-nav-list li {
    margin-bottom: 12px;
}

.footer-nav-list a {
    font-size: 0.88rem;
    color: #94a3b8;
}

.footer-nav-list a:hover {
    color: var(--color-accent-gold);
    padding-left: 4px;
}

.footer-contact-details li {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
    font-size: 0.88rem;
    line-height: 1.6;
}

.footer-contact-details svg {
    color: var(--color-accent-gold);
    flex-shrink: 0;
    margin-top: 3px;
}

.visitor-counter {
    margin-top: 24px;
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    font-size: 0.8rem;
    color: #cbd5e1;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #22c55e;
    box-shadow: 0 0 10px #22c55e;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 22px 0 0 0;
    font-size: 0.82rem;
    background: #080a14;
}

.footer-bottom-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    padding-bottom: 20px;
}

.footer-copy-text {
    white-space: nowrap;
    color: var(--color-text-muted);
    font-size: 0.84rem;
    margin: 0;
}

.footer-legal {
    display: flex;
    gap: 20px;
    flex-shrink: 0;
}

.footer-legal a:hover {
    color: var(--color-accent-gold);
}

/* Full Row Continuous Marquee Strip (Below All Rights Reserved) */
.footer-marquee-strip {
    width: 100%;
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    padding: 10px 0;
    background: #04060c;
    border-top: 1px solid rgba(254, 177, 3, 0.22);
    border-bottom: 1px solid rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
}

.footer-marquee-track {
    display: inline-flex;
    align-items: center;
    gap: 32px;
    will-change: transform;
    animation: fullRowMarqueeScroll 28s linear infinite;
    font-size: 0.84rem;
    color: #cbd5e1;
    white-space: nowrap;
}

.footer-marquee-strip:hover .footer-marquee-track {
    animation-play-state: paused;
}

.footer-marquee-track .marquee-item {
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
}

.footer-marquee-track a {
    color: #feb103;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 3px;
    margin: 0 4px;
    transition: var(--transition-smooth);
}

.footer-marquee-track a:hover {
    color: #ffffff;
    text-shadow: 0 0 10px rgba(254, 177, 3, 0.6);
}

.footer-marquee-track .marquee-divider {
    color: #feb103;
    font-size: 0.75rem;
    opacity: 0.8;
}

@keyframes fullRowMarqueeScroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

@media (max-width: 992px) {
    .footer-bottom-inner {
        flex-direction: column;
        gap: 14px;
        text-align: center;
    }
    .footer-legal {
        flex-wrap: wrap;
        justify-content: center;
        gap: 14px;
    }
}

/* ==========================================================================
   Modal Dialog
   ========================================================================== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 13, 26, 0.85);
    backdrop-filter: blur(8px);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    display: flex;
    opacity: 1;
}

.modal-card {
    background: #ffffff;
    border-radius: 18px;
    max-width: 620px;
    width: 100%;
    padding: 40px;
    position: relative;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.3);
    max-height: 90vh;
    overflow-y: auto;
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: #f1f5f9;
    border: none;
    font-size: 1.5rem;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    color: #475569;
}

.modal-close:hover {
    background: #e2e8f0;
    color: #0f172a;
}

.modal-header {
    margin-bottom: 24px;
}

.modal-header h3 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    color: var(--color-text-dark-primary);
    margin-bottom: 6px;
}

.modal-header p {
    font-size: 0.9rem;
    color: var(--color-text-dark-secondary);
}

.form-group {
    margin-bottom: 18px;
}

.form-row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.modal-form label {
    display: block;
    font-size: 0.82rem;
    font-weight: 600;
    color: #334155;
    margin-bottom: 6px;
}

.modal-form input,
.modal-form select,
.modal-form textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-family: inherit;
    font-size: 0.9rem;
    color: #1e293b;
    outline: none;
    transition: var(--transition-smooth);
}

.modal-form input:focus,
.modal-form select:focus,
.modal-form textarea:focus {
    border-color: var(--color-accent-gold);
    box-shadow: 0 0 0 3px rgba(229, 149, 0, 0.15);
}

/* Mobile Drawer */
.mobile-drawer {
    position: fixed;
    top: 0;
    right: -320px;
    width: 300px;
    height: 100%;
    background-color: var(--color-primary-dark);
    z-index: 2000;
    padding: 30px 24px;
    display: flex;
    flex-direction: column;
    transition: right 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
}

.mobile-drawer.active {
    right: 0;
}

.drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1999;
    display: none;
}

.drawer-overlay.active {
    display: block;
}

.mobile-drawer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 35px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 16px;
}

.close-drawer-btn {
    background: transparent;
    border: none;
    font-size: 2rem;
    color: #ffffff;
    cursor: pointer;
}

.mobile-nav-list li {
    margin-bottom: 18px;
}

.mobile-nav-link {
    font-size: 1.1rem;
    font-weight: 600;
    color: #ffffff;
}

.mobile-nav-link.active, .mobile-nav-link:hover {
    color: var(--color-accent-gold);
}

.mobile-drawer-footer {
    margin-top: auto;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 24px;
}

.mobile-contact-info {
    margin-top: 16px;
    font-size: 0.8rem;
    color: #94a3b8;
}

/* ==========================================================================
   Inner Page Banners & Page-Specific Components
   ========================================================================== */
.page-banner {
    background-color: var(--color-primary-dark);
    background-image: 
        radial-gradient(circle at 50% 50%, rgba(229, 149, 0, 0.12) 0%, transparent 60%),
        linear-gradient(180deg, rgba(14, 17, 32, 0.92) 0%, rgba(14, 17, 32, 0.98) 100%),
        url('../images/hero-library-bg.jpg');
    background-size: cover;
    background-position: center;
    padding: 70px 0 60px 0;
    color: #ffffff;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.page-banner-title {
    font-family: var(--font-heading);
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 12px;
    letter-spacing: -0.01em;
}

.page-banner-desc {
    font-size: 1.05rem;
    color: #cbd5e1;
    max-width: 680px;
    margin: 0 auto;
}

.text-center {
    text-align: center;
}

/* Services Detail Page */
.service-detail-block {
    padding: 40px 0;
}

.service-detail-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 50px;
    align-items: center;
}

.service-detail-grid.reverse {
    grid-template-columns: 0.8fr 1.2fr;
}

.service-detail-grid.reverse .service-detail-text {
    order: 2;
}

.service-detail-grid.reverse .service-detail-img {
    order: 1;
}

.service-detail-text h2 {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    color: var(--color-text-dark-primary);
    margin-bottom: 14px;
    line-height: 1.25;
}

.service-checklist {
    margin: 24px 0 32px 0;
}

.service-checklist li {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
    font-size: 0.95rem;
    color: #334155;
    font-weight: 500;
}

.service-checklist li span {
    color: var(--color-accent-gold);
    font-weight: 800;
}

.service-feature-img {
    border-radius: 12px;
    max-width: 300px;
    margin: 0 auto;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.service-divider {
    border: none;
    border-top: 1px solid var(--color-border-light);
    margin: 40px 0;
}

/* Process Steps Grid */
.process-section {
    background-color: var(--color-light-bg);
}

.process-grid-5 {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
}

.process-card {
    background: #ffffff;
    border: 1px solid var(--color-border-light);
    border-radius: 12px;
    padding: 28px 20px;
    position: relative;
    text-align: center;
    transition: var(--transition-smooth);
}

.process-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    border-color: var(--color-accent-gold);
}

.process-step-num {
    font-family: var(--font-brand);
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--color-accent-gold);
    margin-bottom: 10px;
}

.process-card h4 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--color-text-dark-primary);
    margin-bottom: 10px;
}

.process-card p {
    font-size: 0.85rem;
    color: var(--color-text-dark-secondary);
    line-height: 1.5;
}

/* Books Catalog Page */
.category-filter-bar {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 45px;
}

.filter-pill {
    padding: 8px 20px;
    border-radius: 30px;
    font-size: 0.86rem;
    font-weight: 600;
    background: #f1f5f9;
    color: #475569;
    border: 1px solid #e2e8f0;
    transition: var(--transition-smooth);
}

.filter-pill:hover, .filter-pill.active {
    background: var(--color-secondary-dark);
    color: #ffffff;
    border-color: var(--color-secondary-dark);
}

.catalog-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.catalog-card {
    background: #ffffff;
    border: 1px solid var(--color-border-light);
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: var(--transition-smooth);
}

.catalog-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
    border-color: rgba(229, 149, 0, 0.4);
}

.catalog-cover-wrap {
    position: relative;
    background: #0f121d;
    padding: 20px 20px 10px 20px;
    display: flex;
    justify-content: center;
}

.catalog-cover-wrap img {
    height: 240px;
    width: auto;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.4);
}

.catalog-badge {
    position: absolute;
    top: 14px;
    right: 14px;
    background: var(--color-accent-gold);
    color: #ffffff;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 4px;
    text-transform: uppercase;
}

.catalog-info {
    padding: 22px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.catalog-cat {
    font-size: 0.75rem;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--color-accent-gold);
    letter-spacing: 0.05em;
    margin-bottom: 6px;
}

.catalog-title {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    color: var(--color-text-dark-primary);
    line-height: 1.3;
    margin-bottom: 8px;
}

.catalog-author {
    font-size: 0.85rem;
    font-weight: 600;
    color: #475569;
    margin-bottom: 6px;
}

.catalog-isbn {
    font-size: 0.78rem;
    color: #64748b;
    margin-bottom: 12px;
}

.catalog-desc {
    font-size: 0.82rem;
    line-height: 1.55;
    color: #64748b;
    margin-bottom: 20px;
    flex-grow: 1;
}

.catalog-card-footer {
    margin-top: auto;
}

.btn-sm {
    padding: 8px 18px;
    font-size: 0.78rem;
}

/* Contact Page */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.15fr;
    gap: 50px;
}

.contact-intro {
    font-size: 0.95rem;
    line-height: 1.7;
    color: #4b5563;
    margin-bottom: 30px;
}

.contact-card-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-detail-card {
    display: flex;
    gap: 18px;
    background: #ffffff;
    border: 1px solid var(--color-border-light);
    border-radius: 12px;
    padding: 22px;
}

.contact-icon-wrap {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: var(--color-accent-light);
    color: var(--color-accent-gold);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-detail-card h4 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-text-dark-primary);
    margin-bottom: 4px;
}

.contact-detail-card p {
    font-size: 0.88rem;
    color: #64748b;
    line-height: 1.5;
}

.contact-detail-card a:hover {
    color: var(--color-accent-gold);
}

.contact-card-centered-wrap {
    display: flex;
    justify-content: center;
    width: 100%;
    margin: 10px auto 40px;
}

.contact-form-card h3 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    color: var(--color-text-dark-primary);
    margin-bottom: 6px;
}

.contact-form-card p {
    font-size: 0.9rem;
    color: #64748b;
    margin-bottom: 24px;
}

.alert-success-box {
    display: flex;
    align-items: center;
    gap: 18px;
    background: #ecfdf5;
    border: 1px solid #10b981;
    border-radius: 12px;
    padding: 20px 24px;
    margin-bottom: 35px;
    color: #065f46;
}

.alert-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #10b981;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.alert-success-box h3 {
    font-size: 1.15rem;
    color: #064e3b;
    margin-bottom: 4px;
}

.alert-success-box p {
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Responsive inner tweaks */
@media (max-width: 992px) {
    .catalog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .process-grid-5 {
        grid-template-columns: repeat(2, 1fr);
    }
    .service-detail-grid,
    .service-detail-grid.reverse {
        grid-template-columns: 1fr;
    }
    .contact-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .catalog-grid {
        grid-template-columns: 1fr;
    }
    .process-grid-5 {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   Book Detail Page Styling
   ========================================================================== */
.book-detail-breadcrumbs-bar {
    background: #0b0e1b;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: 16px 0;
}

.detail-breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    font-size: 0.85rem;
    color: var(--color-text-muted);
}

.detail-breadcrumbs a {
    color: #94a3b8;
    transition: var(--transition-smooth);
}

.detail-breadcrumbs a:hover {
    color: var(--color-accent-gold);
}

.detail-breadcrumbs li.active {
    color: #ffffff;
    font-weight: 600;
}

.book-detail-section {
    padding: 60px 0 80px;
    background: #ffffff;
}

.book-detail-grid {
    display: grid;
    grid-template-columns: 380px 1fr;
    gap: 60px;
    align-items: flex-start;
}

/* Left: Cover Showcase */
.book-detail-visual {
    position: sticky;
    top: 100px;
}

.detail-cover-card {
    position: relative;
    background: linear-gradient(145deg, #181d31, #0e1120);
    border-radius: 16px;
    padding: 40px 30px 35px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.18);
    display: flex;
    justify-content: center;
    align-items: center;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.detail-badge-pill {
    position: absolute;
    top: 18px;
    right: 18px;
    background: linear-gradient(135deg, var(--color-accent-gold), #b45309);
    color: #ffffff;
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    padding: 5px 14px;
    border-radius: 20px;
    box-shadow: 0 4px 15px rgba(229, 149, 0, 0.4);
    z-index: 5;
}

.detail-cover-wrapper {
    position: relative;
    max-width: 250px;
    perspective: 1000px;
    transition: transform 0.4s ease;
}

.detail-cover-wrapper:hover {
    transform: translateY(-8px) rotateY(-5deg);
}

.detail-cover-img {
    width: 100%;
    height: auto;
    border-radius: 4px 8px 8px 4px;
    box-shadow: -8px 12px 30px rgba(0, 0, 0, 0.65), 0 0 15px rgba(255, 255, 255, 0.05);
    display: block;
}

.detail-cover-spine {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: 8px;
    background: linear-gradient(to right, rgba(0,0,0,0.4), transparent);
    border-radius: 4px 0 0 4px;
    pointer-events: none;
}

/* Actions Box Under Cover */
.detail-actions-box {
    margin-top: 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.btn-pdf-view {
    background: linear-gradient(135deg, var(--color-accent-gold), #d97706);
    color: #ffffff;
    font-weight: 800;
    letter-spacing: 0.5px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 20px;
    border-radius: 8px;
    box-shadow: 0 6px 20px rgba(229, 149, 0, 0.35);
    transition: var(--transition-smooth);
}

.btn-pdf-view:hover {
    background: linear-gradient(135deg, var(--color-accent-gold-hover), #b45309);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(229, 149, 0, 0.45);
    color: #ffffff;
}

.btn-jump-pdf {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 18px;
    font-size: 0.85rem;
    font-weight: 600;
    border: 1px solid var(--color-border-light);
    background: var(--color-light-bg);
    border-radius: 8px;
    color: var(--color-text-dark-primary);
    transition: var(--transition-smooth);
}

.btn-jump-pdf:hover {
    border-color: var(--color-accent-gold);
    color: var(--color-accent-gold);
    background: #ffffff;
}

.pdf-notice-box {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 8px;
    background: #f1f5f9;
    border-left: 3px solid #64748b;
    font-size: 0.82rem;
    color: #475569;
    line-height: 1.45;
}

.pdf-notice-box svg {
    flex-shrink: 0;
    stroke: #64748b;
}

.detail-call-advisor {
    text-align: center;
    font-size: 0.82rem;
    color: #64748b;
    padding-top: 6px;
}

.detail-call-advisor a {
    color: var(--color-accent-gold);
    font-weight: 700;
}

.detail-call-advisor a:hover {
    text-decoration: underline;
}

/* Right: Book Details */
.book-detail-info {
    display: flex;
    flex-direction: column;
}

.detail-category-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}

.detail-category-tag {
    display: inline-block;
    padding: 5px 14px;
    border-radius: 20px;
    background: rgba(229, 149, 0, 0.12);
    color: #b45309;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.3px;
    transition: var(--transition-smooth);
}

.detail-category-tag:hover {
    background: var(--color-accent-gold);
    color: #ffffff;
}

.detail-year-tag {
    font-size: 0.82rem;
    font-weight: 600;
    color: #64748b;
    background: #f1f5f9;
    padding: 5px 12px;
    border-radius: 20px;
}

.detail-book-title {
    font-family: var(--font-heading);
    font-size: 2.35rem;
    line-height: 1.25;
    color: var(--color-text-dark-primary);
    margin-bottom: 12px;
}

.detail-author-row {
    display: flex;
    align-items: baseline;
    gap: 8px;
    font-size: 1.05rem;
    color: #4b5563;
    margin-bottom: 28px;
    padding-bottom: 22px;
    border-bottom: 1px solid var(--color-border-light);
}

.detail-author-label {
    color: #94a3b8;
    font-weight: 500;
    font-size: 0.9rem;
}

.detail-author-name {
    font-weight: 700;
    color: var(--color-text-dark-primary);
}

/* Specs Grid */
.detail-specs-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-bottom: 35px;
}

.spec-card {
    background: var(--color-light-bg);
    border: 1px solid var(--color-border-light);
    border-radius: 10px;
    padding: 14px 18px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    transition: var(--transition-smooth);
}

.spec-card:hover {
    border-color: rgba(229, 149, 0, 0.4);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
}

.spec-label {
    font-size: 0.74rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: #64748b;
}

.spec-value {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--color-text-dark-primary);
}

.spec-value.mono {
    font-family: monospace;
    color: #1e293b;
    letter-spacing: 0.5px;
}

/* Synopsis Block */
.detail-synopsis-block {
    margin-bottom: 35px;
}

.detail-synopsis-block h3 {
    font-size: 1.25rem;
    color: var(--color-text-dark-primary);
    margin-bottom: 14px;
    position: relative;
    padding-bottom: 10px;
}

.detail-synopsis-block h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 45px;
    height: 3px;
    background: var(--color-accent-gold);
    border-radius: 2px;
}

.synopsis-content p {
    font-size: 0.98rem;
    line-height: 1.8;
    color: #475569;
}

/* Certification Checklist */
.detail-features-block {
    background: linear-gradient(145deg, #0e1120, #1c2137);
    border-radius: 12px;
    padding: 26px 30px;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.detail-features-block h4 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-accent-gold);
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.features-checklist-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px 24px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.86rem;
    color: #e2e8f0;
}

.feature-item .f-check {
    color: var(--color-accent-gold);
    font-weight: 900;
}

/* Embedded PDF Section */
.pdf-preview-section {
    background: #0e1120;
    color: #ffffff;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.pdf-viewer-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 30px;
    gap: 20px;
    flex-wrap: wrap;
}

.pdf-viewer-header h2 {
    font-size: 1.85rem;
    color: #ffffff;
    margin: 6px 0 8px;
}

.pdf-viewer-header p {
    color: #94a3b8;
    font-size: 0.95rem;
}

.pdf-embed-container {
    background: #181d31;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.55);
}

.pdf-embed-frame {
    display: block;
    width: 100%;
    min-height: 720px;
    border: none;
}

.pdf-fallback-box {
    padding: 60px 30px;
    text-align: center;
    color: #ffffff;
}

.pdf-fallback-box p {
    font-size: 1.1rem;
    margin-bottom: 20px;
    color: #cbd5e1;
}

/* Related Books Section */
.related-books-section {
    background: #f8f9fc;
    border-top: 1px solid var(--color-border-light);
}

/* Responsive adjustments for Detail Page */
@media (max-width: 992px) {
    .book-detail-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .book-detail-visual {
        position: static;
        max-width: 480px;
        margin: 0 auto;
    }
    .detail-book-title {
        font-size: 1.95rem;
    }
    .features-checklist-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .detail-specs-grid {
        grid-template-columns: 1fr;
    }
    .detail-book-title {
        font-size: 1.6rem;
    }
    .pdf-embed-frame {
        min-height: 480px;
    }
}
