/* Homepage publishing redesign — navy / gold / cream */
:root {
    --pub-navy: #1a2533;
    --pub-navy-deep: #121a24;
    --pub-gold: #f1b434;
    --pub-gold-soft: #e8a92a;
    --pub-cream: #f7f1e8;
    --pub-white: #ffffff;
    --pub-text: #1a2533;
    --pub-muted: #5c6775;
}

/* Shared */
.pub-heading {
    text-align: center;
    margin-bottom: 2rem;
}
.pub-heading__title {
    font-size: clamp(1.5rem, 2.4vw, 2rem);
    font-weight: 700;
    color: var(--pub-navy);
    margin: 0 0 .65rem;
}
.pub-heading--light .pub-heading__title { color: var(--pub-navy); }
.pub-panel .pub-heading__title { color: var(--pub-navy); }
.pub-heading__rule {
    display: inline-block;
    width: 64px;
    height: 3px;
    border-radius: 2px;
    background: linear-gradient(90deg, transparent, var(--pub-gold), transparent);
    position: relative;
}
.pub-heading__rule::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--pub-gold);
    transform: translate(-50%, -50%);
}
.pub-heading__cta { text-align: center; margin-top: 1.75rem; }
.pub-section-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.75rem;
    flex-wrap: wrap;
}

.pub-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .45rem;
    padding: .85rem 1.35rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: .95rem;
    line-height: 1.2;
    text-decoration: none !important;
    transition: .2s ease;
    border: 2px solid transparent;
}
.pub-btn--sm { padding: .65rem 1.1rem; font-size: .88rem; }
.pub-btn--gold {
    background: var(--pub-gold);
    color: var(--pub-navy-deep) !important;
}
.pub-btn--gold:hover { background: var(--pub-gold-soft); color: #000 !important; }
.pub-btn--outline {
    background: transparent;
    border-color: rgba(255,255,255,.85);
    color: #fff !important;
}
.pub-btn--outline:hover { background: rgba(255,255,255,.1); }
.pub-btn--navy {
    background: var(--pub-navy);
    color: #fff !important;
}
.pub-btn--navy:hover { background: var(--pub-navy-deep); color: #fff !important; }

.pub-band--dark {
    background: var(--pub-navy-deep);
    padding: 3rem 0;
}
.pub-panel {
    background: var(--pub-white);
    border-radius: 18px;
    padding: 2rem 1.5rem 2.25rem;
    box-shadow: 0 12px 40px rgba(0,0,0,.18);
}
@media (min-width: 768px) {
    .pub-panel { padding: 2.5rem 2.25rem 2.75rem; }
}

/* Hero */
.pub-hero {
    position: relative;
    background: var(--pub-navy-deep);
    background-image: var(--pub-hero-bg, none);
    background-size: cover;
    background-position: center right;
    color: #fff;
    overflow: hidden;
    padding: 3.5rem 0 0;
}
.pub-hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(18,26,36,.96) 0%, rgba(18,26,36,.88) 42%, rgba(18,26,36,.45) 70%, rgba(18,26,36,.25) 100%);
    pointer-events: none;
}
.pub-hero__row { position: relative; z-index: 1; padding-bottom: 2.5rem; }
.pub-hero__title {
    font-size: clamp(2rem, 4.5vw, 3.4rem);
    font-weight: 800;
    line-height: 1.15;
    margin: 0 0 1.1rem;
}
.pub-hero__line { display: block; color: #fff; }
.pub-hero__line--accent { color: var(--pub-gold); }
.pub-hero__quill { font-size: .7em; margin-left: .25rem; vertical-align: middle; color: var(--pub-gold); }
.pub-hero__desc {
    color: rgba(255,255,255,.88);
    font-size: 1.02rem;
    line-height: 1.65;
    max-width: 34rem;
    margin: 0 0 1.5rem;
}
.pub-hero__actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.pub-hero__visual {
    display: flex;
    justify-content: center;
    align-items: flex-end;
}
.pub-hero__book {
    max-width: min(100%, 360px);
    width: 100%;
    height: auto;
    filter: drop-shadow(0 24px 40px rgba(0,0,0,.45));
    border-radius: 4px;
}
.pub-hero__stats {
    position: relative;
    z-index: 1;
    background: rgba(10, 14, 20, .72);
    backdrop-filter: blur(8px);
    border-top: 1px solid rgba(255,255,255,.08);
}
.pub-hero__stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0;
}
@media (min-width: 992px) {
    .pub-hero__stats-grid { grid-template-columns: repeat(4, 1fr); }
}
.pub-hero__stat {
    display: flex;
    align-items: center;
    gap: .85rem;
    padding: 1.15rem 1rem;
    border-right: 1px solid rgba(255,255,255,.12);
}
.pub-hero__stat:last-child { border-right: 0; }
.pub-hero__stat-icon {
    width: 40px;
    height: 40px;
    object-fit: contain;
    flex-shrink: 0;
}
.pub-hero__stat-fallback { font-size: 1.75rem; color: var(--pub-gold); }
.pub-hero__stat-value {
    color: var(--pub-gold);
    font-weight: 800;
    font-size: 1.35rem;
    line-height: 1.1;
}
.pub-hero__stat-label {
    color: rgba(255,255,255,.85);
    font-size: .85rem;
    margin-top: .15rem;
}

/* Services */
.pub-services__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: .85rem;
}
@media (min-width: 576px) {
    .pub-services__grid { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 992px) {
    .pub-services__grid { grid-template-columns: repeat(6, 1fr); }
}
.pub-services__card {
    border: 1px solid #e6e8ec;
    border-radius: 12px;
    padding: 1.1rem .75rem;
    text-align: center;
    background: #fff;
    min-height: 100%;
}
.pub-services__icon {
    width: 42px;
    height: 42px;
    object-fit: contain;
    margin: 0 auto .65rem;
    display: block;
}
.pub-services__icon-fallback {
    font-size: 2rem;
    color: var(--pub-navy);
    display: block;
    margin-bottom: .5rem;
}
.pub-services__label {
    font-size: .82rem;
    font-weight: 600;
    color: var(--pub-text);
    margin: 0;
    line-height: 1.35;
}

/* Why choose */
.pub-why__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem 1rem;
}
@media (min-width: 768px) {
    .pub-why__grid { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1200px) {
    .pub-why__grid { grid-template-columns: repeat(6, 1fr); }
}
.pub-why__item { text-align: center; }
.pub-why__icon-wrap {
    width: 72px;
    height: 72px;
    margin: 0 auto .85rem;
    border-radius: 50%;
    background: #f3f5f8;
    display: flex;
    align-items: center;
    justify-content: center;
}
.pub-why__icon { width: 40px; height: 40px; object-fit: contain; }
.pub-why__icon-fallback { font-size: 2rem; color: var(--pub-navy); }
.pub-why__title {
    font-size: .9rem;
    font-weight: 600;
    color: var(--pub-text);
    margin: 0;
    line-height: 1.35;
}

/* Process */
.pub-process__track {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: center;
    gap: .5rem 0;
}
.pub-process__step {
    flex: 1 1 120px;
    max-width: 150px;
    text-align: center;
    padding: 0 .35rem;
}
.pub-process__circle {
    position: relative;
    width: 72px;
    height: 72px;
    margin: 0 auto .75rem;
    border-radius: 50%;
    background: var(--pub-navy);
    display: flex;
    align-items: center;
    justify-content: center;
}
.pub-process__num {
    position: absolute;
    top: -4px;
    left: -4px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--pub-gold);
    color: var(--pub-navy-deep);
    font-size: .72rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
}
.pub-process__icon {
    width: 32px;
    height: 32px;
    object-fit: contain;
    filter: brightness(0) invert(1);
}
.pub-process__icon-fallback { color: #fff; font-size: 1.6rem; }
.pub-process__title {
    font-size: .85rem;
    font-weight: 600;
    color: var(--pub-text);
    margin: 0;
    line-height: 1.35;
}
.pub-process__arrow {
    align-self: center;
    color: #b0b7c3;
    font-size: 1.25rem;
    padding: 0 .15rem;
    margin-top: -1.5rem;
}
@media (max-width: 991px) {
    .pub-process__arrow { display: none; }
}

/* Trust logos */
.pub-trust {
    background: #fff;
    padding: 3rem 0;
}
.pub-trust__row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
}
.pub-trust__item {
    flex: 1 1 140px;
    max-width: 200px;
    padding: 1rem 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-right: 1px solid #e8eaee;
    min-height: 72px;
}
.pub-trust__item:last-child { border-right: 0; }
.pub-trust__logo {
    max-width: 140px;
    max-height: 48px;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: grayscale(10%);
}
.pub-trust__link { display: inline-flex; }

/* Featured books carousel */
.pub-books {
    background: var(--pub-cream);
    padding: 3rem 0 2.5rem;
}
.pub-books__slide { padding: 0 .5rem; }
.pub-books__card {
    display: block;
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 6px 18px rgba(26,37,51,.08);
    transition: transform .2s ease;
}
.pub-books__card:hover { transform: translateY(-4px); }
.pub-books__cover {
    width: 100%;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    display: block;
}
.pub-books__dots {
    display: flex;
    justify-content: center;
    gap: .4rem;
    margin-top: 1.25rem;
}
.pub-books__dots .slick-dots {
    position: static;
    display: flex !important;
    gap: .4rem;
    margin: 0;
    padding: 0;
}
.pub-books__dots .slick-dots li {
    margin: 0;
    width: auto;
    height: auto;
}
.pub-books__dots .slick-dots li button {
    width: 8px;
    height: 8px;
    padding: 0;
    border-radius: 50%;
    background: #c9c2b6;
    border: 0;
}
.pub-books__dots .slick-dots li button:before { display: none; }
.pub-books__dots .slick-dots li.slick-active button { background: var(--pub-navy); }

/* Video testimonials */
.pub-videos {
    background: var(--pub-cream);
    padding: 3rem 0;
}
.pub-video-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 22px rgba(26,37,51,.08);
    height: 100%;
}
.pub-video-card__thumb {
    position: relative;
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #111;
}
.pub-video-card__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.pub-video-card__play {
    position: absolute;
    inset: 0;
    margin: auto;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: rgba(255,255,255,.88);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--pub-navy);
    font-size: 1.4rem;
    box-shadow: 0 8px 20px rgba(0,0,0,.25);
}
.pub-video-card__body { padding: 1rem 1rem 1.15rem; background: #faf7f2; }
.pub-video-card__meta {
    display: flex;
    gap: .75rem;
    align-items: center;
    margin-bottom: .55rem;
}
.pub-video-card__avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}
.pub-video-card__avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.pub-video-card__name {
    font-size: .95rem;
    font-weight: 700;
    margin: 0;
    color: var(--pub-text);
}
.pub-video-card__role {
    margin: 0;
    font-size: .8rem;
    color: var(--pub-muted);
}
.pub-video-card__stars .las { color: #d5d0c8; font-size: .95rem; }
.pub-video-card__stars .las.is-on { color: var(--pub-gold); }

@media (max-width: 575px) {
    .pub-hero { padding-top: 2.25rem; }
    .pub-hero__stat { border-right: 0; border-bottom: 1px solid rgba(255,255,255,.1); }
    .pub-trust__item { border-right: 0; flex: 1 1 45%; }
}
