/* Minimal overrides — reference CSS handles most styling */

/* Site logo (US Books Publishing — wide mark) */
header a.logo {
  margin: 0;
  max-width: none;
  line-height: 0;
}

header a.logo img {
  max-height: 42px;
  width: auto;
  max-width: 180px;
  height: auto;
  display: block;
  object-fit: contain;
}

@media (max-width: 767px) {
  header a.logo img {
    max-height: 36px;
    max-width: 150px;
  }
}

.top-inn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 8px 0;
}

.top-bar p.top-promo {
  margin: 0;
  flex: 1;
  text-align: center;
  padding: 6px 20px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1.4;
  white-space: nowrap;
}

.top-bar ul.top-ul a {
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
}

.header {
  padding: 14px 0;
}

.header .header-row {
  justify-content: space-between;
  flex-wrap: nowrap;
  gap: 24px;
}

.site-header-brand {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 16px;
}

.header-nav-wrap {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  flex: 1;
  min-width: 0;
}

.site-header-nav {
  display: flex;
  justify-content: flex-end;
  width: 100%;
}

.site-header-nav .menu {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 4px 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-header-nav .menu > li {
  margin-right: 22px;
}

.site-header-nav .menu > li:last-child {
  margin-right: 0;
}

.site-header-nav .menu > li > a {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.01em;
}

.site-header-nav .drop-down {
  position: relative;
}

.site-header-nav .drop-down-cont {
  width: 320px;
  min-width: 280px;
  left: auto;
  right: 0;
}

.site-header-nav .nav-cta-item {
  margin-left: 4px;
}

.site-header-nav .nav-cta {
  display: inline-block;
  padding: 10px 18px;
  border-radius: 8px;
  background: #1c4a40;
  color: #fff !important;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  transition: background 0.2s ease, transform 0.2s ease;
  box-shadow: 0 2px 8px rgba(28, 74, 64, 0.25);
}

.site-header-nav .nav-cta::after {
  display: none !important;
}

.site-header-nav .nav-cta:hover {
  background: #c45c2a;
  color: #fff !important;
  transform: translateY(-1px);
}

.header.sticked {
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
}

@media (max-width: 1199px) {
  .site-header-nav .menu > li {
    margin-right: 16px;
  }

  .site-header-nav .menu > li > a {
    font-size: 14px;
  }

  .site-header-nav .nav-cta {
    padding: 8px 14px;
    font-size: 13px;
  }
}

@media (max-width: 991px) {
  .top-bar p.top-promo {
    font-size: 11px;
    padding: 5px 12px;
  }

  .header .header-nav-wrap {
    display: none !important;
  }

  a.menu-bottom {
    display: block !important;
  }

  .site-header-brand {
    position: relative;
    width: 100%;
  }

  .main-menu {
    display: block;
    margin: 0;
    overflow: auto;
    position: fixed;
    right: -100%;
    width: 100%;
    top: 0;
    transition: all 0.5s ease-in-out;
    height: 100%;
    z-index: 999 !important;
    padding-top: 20px;
  }

  .menu-open .main-menu {
    right: 0;
    background: #141414;
    padding-top: 60px;
    margin: 0;
  }
}

/* ─── Homepage: Atlas Bookworks typography & palette ─── */
body.homepage {
  --ab-bg: #c9a754;
  --ab-bg-warm: #c9a754;
  --ab-surface: #ffffff;
  --ab-text: #1a2421;
  --ab-text-muted: #4d5c57;
  --ab-primary: #1c4a40;
  --ab-primary-dark: #0f2d26;
  --ab-accent: #c45c2a;
  --ab-accent-hover: #a34a22;
  --ab-gold: #b8956b;
  --ab-font-body: "Plus Jakarta Sans", system-ui, -apple-system, sans-serif;
  --ab-font-display: "Libre Baskerville", Georgia, "Times New Roman", serif;

  font-family: var(--ab-font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ab-text);
  background: var(--ab-bg);
  -webkit-font-smoothing: antialiased;
}

body.homepage h1,
body.homepage h2,
body.homepage h3,
body.homepage .heading h2,
body.homepage .heading h3,
body.homepage .dream_author .heading h2,
body.homepage .our-banner h1 {
  font-family: var(--ab-font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
}

body.homepage .top-bar {
  background: var(--ab-primary-dark);
  font-size: 13px;
}

body.homepage .top-bar p,
body.homepage .top-bar a {
  color: #e8ebe9;
}

body.homepage .header {
  background: var(--ab-bg-warm);
  border-bottom: 1px solid rgba(28, 74, 64, 0.12);
  padding: 12px 0;
}

body.homepage .header ul li a {
  font-size: 15px;
  font-weight: 600;
  color: var(--ab-primary-dark);
}

body.homepage .header ul li a:hover {
  color: var(--ab-accent);
}

body.homepage .site-header-nav .nav-cta {
  background: var(--ab-primary);
  box-shadow: 0 2px 10px rgba(15, 38, 32, 0.2);
}

body.homepage .site-header-nav .nav-cta:hover {
  background: var(--ab-accent);
}

body.homepage .top-bar p.top-promo {
  background: rgba(255, 255, 255, 0.1);
  color: #e8ebe9;
}

body.homepage .our-banner {
  background: var(--ab-primary-dark);
}

body.homepage .our-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    125deg,
    rgba(15, 38, 32, 0.92) 0%,
    rgba(28, 74, 64, 0.78) 45%,
    rgba(20, 45, 38, 0.88) 100%
  );
  z-index: 0;
  pointer-events: none;
}

body.homepage .our-banner > div {
  position: relative;
  z-index: 1;
}

body.homepage .our-banner h1 {
  font-size: clamp(2rem, 4.2vw, 3.125rem);
  line-height: 1.15;
  font-weight: 700;
  margin-bottom: 1.25rem;
}

body.homepage .our-banner p {
  font-size: 1.125rem;
  line-height: 1.65;
  max-width: 36rem;
  opacity: 0.95;
}

body.homepage .our-banner .banner-thumb {
  display: block;
  width: 100%;
  max-width: 420px;
  height: auto;
  margin: 0 auto;
  object-fit: contain;
  background: transparent;
}

body.homepage .btn-block .btn,
body.homepage .btn.btn-orange {
  font-family: var(--ab-font-body);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-shadow: none;
  background: var(--ab-accent);
  border-radius: 999px;
  padding: 13px 32px;
}

body.homepage .btn-block .btn:hover,
body.homepage .btn.btn-orange:hover {
  background: var(--ab-accent-hover);
}

body.homepage .theme-btn.btn2 {
  background: transparent;
  border: 2px solid rgba(255, 255, 255, 0.85);
  color: #fff;
  font-weight: 600;
}

body.homepage .theme-btn.btn2:hover {
  background: rgba(255, 255, 255, 0.12);
}

body.homepage .heading h2 {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  line-height: 1.25;
  color: var(--ab-primary-dark);
}

body.homepage .heading p,
body.homepage p {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--ab-text-muted);
}

body.homepage .book-writing .heading h2,
body.homepage .mark-writing .heading h2 {
  color: var(--ab-primary-dark);
}

body.homepage .exten-array {
  background: var(--ab-bg);
}

body.homepage .ext_item h3 {
  font-family: var(--ab-font-display);
  font-size: 1.5rem;
  color: var(--ab-primary-dark);
}

body.homepage .cta-blocks {
  background: var(--ab-primary-dark);
}

body.homepage .dream_author {
  background: var(--ab-bg-warm);
}

body.homepage .bi_item h4 {
  font-family: var(--ab-font-display);
  color: var(--ab-accent);
}

body.homepage .benefits-scroll,
body.homepage .benefits-scroll .sub-service {
  background: var(--ab-bg);
}

body.homepage #benefits-intro .heading h2 {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  color: var(--ab-primary-dark);
}

body.homepage #benefits-intro .heading p {
  font-size: 1.0625rem;
}

body.homepage #benefits .ex_txt {
  border-radius: 20px;
  box-shadow: 0 4px 28px rgba(28, 74, 64, 0.08);
  border: 1px solid rgba(28, 74, 64, 0.06);
}

body.homepage #benefits .ex_txt h3 small {
  font-family: var(--ab-font-body);
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--ab-primary-dark);
}

body.homepage .footer {
  background: var(--ab-primary-dark);
}

body.homepage .form-yellow {
  border-radius: 16px;
}

body.homepage .drop-down-cont {
  background-color: var(--ab-bg-warm);
}

body.homepage .mark-writing .mar_bg {
  border-radius: 24px;
  box-shadow: 0 8px 40px rgba(28, 74, 64, 0.1);
}

body.homepage .mark-writing .book-stand {
  display: block;
  width: 100%;
  height: auto;
  background: transparent;
}

body.homepage .mkd_item h4 {
  font-family: var(--ab-font-body);
  font-size: 1.0625rem;
  font-weight: 700;
  color: #fff;
}

body.homepage .manuscript .manu_item {
  border-top-color: var(--ab-accent);
}

body.homepage .writerexpend .heading h2 {
  font-size: clamp(1.5rem, 2.5vw, 2rem);
}

body.homepage .writerexpend .book-shelf {
  display: block;
  width: 100%;
  height: auto;
  background: transparent;
}

body.homepage .testimonial .heading h3 {
  font-family: var(--ab-font-display);
  font-size: 1.5rem;
}

.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  z-index: 10000;
  padding: 0.75rem 1rem;
  background: #c45c2a;
  color: #fff;
}

.skip-link:focus { top: 1rem; }

body.homepage .skip-link {
  background: var(--ab-accent);
}

/* Hero — white text + video layer (match reference) */
.our-banner h1,
.our-banner p,
.our-banner .text-white {
  color: #ffffff !important;
}

.our-banner video.hero-video,
.our-banner .position-absolute {
  object-fit: cover;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  z-index: -1;
}

/* Promo CTA blink (reference inline) */
.theme-btn.btn2 {
  border: 1px solid;
  background: #000000;
  color: #ffffff;
}

.gap {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

.book-writing .btn.promo-cta,
.book-writing .btn.btn-orange.promo-cta {
  background-color: #ffffff;
  color: #000000;
  padding: 8px 44px;
  border: none;
  border-radius: 24px;
  cursor: pointer;
  animation: blinker 2s linear infinite;
  font-size: 23px;
  text-shadow: none;
}

@keyframes blinker {
  50% { opacity: 0; }
}

/* Genres — dark text on textured bg (NOT white) */
.ext_item h3 {
  color: #2c2d30;
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 10px;
}

.exten-array .ext_item p {
  color: #2c2d30;
}

/* Genres portfolio (Nighthawk-style) */
.genres-portfolio {
  position: relative;
  padding: 0 0 64px;
  background-color: #0a4a47;
  background-image:
    radial-gradient(ellipse 80% 60% at 20% 30%, rgba(255, 255, 255, 0.06) 0%, transparent 55%),
    radial-gradient(ellipse 70% 50% at 80% 70%, rgba(0, 0, 0, 0.25) 0%, transparent 50%),
    linear-gradient(160deg, #0d5a56 0%, #063a38 45%, #0a4a47 100%);
  color: #fff;
}

.genres-portfolio__top-bar {
  height: 10px;
  background: #ffc107;
  margin-bottom: 40px;
}

.genres-portfolio__heading {
  margin: 0 0 28px;
  text-align: center;
  font-family: "Almendra", var(--ab-font-display, Georgia, serif);
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
  font-weight: 700;
  line-height: 1.2;
  color: #fff;
}

.genres-portfolio__highlight {
  color: #ffc107;
}

.genres-portfolio__tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 20px;
  margin-bottom: 18px;
}

.genres-portfolio__tab {
  border: none;
  background: transparent;
  color: #fff;
  font-family: "Almendra", Georgia, serif;
  font-size: clamp(1rem, 1.8vw, 1.35rem);
  font-weight: 700;
  padding: 8px 18px;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.genres-portfolio__tab:hover {
  color: #ffc107;
}

.genres-portfolio__tab.active {
  background: #ffc107;
  color: #1a2421;
}

.genres-portfolio__rule {
  height: 1px;
  background: rgba(255, 255, 255, 0.35);
  margin: 0 auto 36px;
  max-width: 100%;
}

.genres-portfolio__panel {
  display: none;
  animation: genreFadeIn 0.45s ease;
}

.genres-portfolio__panel.active {
  display: block;
}

.genres-portfolio__panel[hidden] {
  display: none !important;
}

.genres-portfolio__genre-title {
  margin: 0 0 16px;
  font-family: "Almendra", Georgia, serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: #ffc107;
  line-height: 1.1;
}

.genres-portfolio__desc {
  margin: 0 0 28px;
  font-family: var(--ab-font-body, "Plus Jakarta Sans", sans-serif);
  font-size: 1rem;
  line-height: 1.65;
  color: #ffffff;
  max-width: 36rem;
}

body.homepage .genres-portfolio p,
body.homepage .genres-portfolio__desc {
  color: #ffffff;
}

.genres-portfolio__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.genres-portfolio__btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 10px 8px 10px 22px;
  border-radius: 999px;
  font-family: var(--ab-font-body, "Plus Jakarta Sans", sans-serif);
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  border: 2px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.genres-portfolio__btn--primary {
  background: #ffc107;
  color: #1a2421;
}

.genres-portfolio__btn--primary:hover {
  color: #1a2421;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(255, 193, 7, 0.35);
}

.genres-portfolio__btn--ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.85);
}

.genres-portfolio__btn--ghost:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.genres-portfolio__btn-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #5ebfb8;
  color: #1a2421;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
}

.genres-portfolio__covers {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}

.genres-portfolio__cover {
  width: calc(33.333% - 10px);
  max-width: 200px;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
  transition: transform 0.25s ease;
}

.genres-portfolio__cover:hover {
  transform: translateY(-4px) scale(1.02);
}

@keyframes genreFadeIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 991px) {
  .genres-portfolio__covers {
    margin-top: 28px;
  }

  .genres-portfolio__cover {
    width: calc(50% - 8px);
    max-width: 180px;
  }
}

@media (max-width: 575px) {
  .genres-portfolio__tabs {
    gap: 6px 10px;
  }

  .genres-portfolio__tab {
    font-size: 0.95rem;
    padding: 6px 12px;
  }

  .genres-portfolio__cover {
    width: 100%;
    max-width: 220px;
  }

  .genres-portfolio__actions {
    flex-direction: column;
  }

  .genres-portfolio__btn {
    width: 100%;
    justify-content: space-between;
  }
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Testimonials slider */
.testimonial-slider {
  position: relative;
  overflow: hidden;
  min-height: 200px;
}

.titem {
  display: none;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.titem.active {
  display: block;
  opacity: 1;
}

.test-nav {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}

.test-nav button {
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
}

.test-black {
  position: relative;
}

/* Benefits section — sticky scroll + staggered cards (match reference) */
.benefits-scroll {
  position: relative;
  background: #c9a754;
}

.benefits-scroll .sub-service {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  z-index: 2;
  background: #c9a754;
}

#benefits-intro.sub-service {
  padding: 72px 0 32px;
  min-height: 42vh;
  display: flex;
  align-items: center;
  z-index: 2;
}

#benefits-intro .heading {
  margin-bottom: 0;
}

#benefits-intro .heading h2 {
  font-size: 36px;
  font-weight: 600;
  margin-bottom: 16px;
  color: #1d1d1f;
}

#benefits-intro .heading p {
  font-size: 16px;
  line-height: 1.65;
  color: #2c2d30;
  max-width: 820px;
  margin: 0 auto;
}

#benefits.sub-service {
  padding: 24px 0 120px;
  z-index: 3;
}

#benefits .service-cont + .service-cont {
  margin-top: 0;
}

#benefits .ex_txt {
  opacity: 0;
  transform: translateY(48px);
  transition:
    opacity 0.65s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.65s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.3s ease;
  will-change: opacity, transform;
}

#benefits .ex_txt.is-visible {
  opacity: 1;
  transform: translateY(0);
}

#benefits .ex_txt.is-visible:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 40px #00000014;
}

#benefits .ex_txt p {
  color: #2c2d30;
  font-size: 15px;
  line-height: 1.55;
  margin-bottom: 0;
}

/* Inner pages: static sub-service (no sticky stack) */
.sub-service--static {
  position: relative !important;
  top: auto !important;
  z-index: auto !important;
}

/* Lead modal (reference clone) */
.modal[hidden] {
  display: none !important;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
}

.lead-modal__dialog {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 700px;
  margin: 0 auto;
}

.lead-modal__content {
  position: relative;
  background: #c9a754 url("assets/images/pup.webp") 50% 100% / cover no-repeat;
  border: none;
  border-radius: 4px;
  padding: 40px 30px 30px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.35);
}

.lead-modal__close {
  position: absolute;
  top: -10px;
  right: -10px;
  z-index: 5;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 3px solid #8cac05;
  border-radius: 50%;
  background: #fff;
  color: #83ad1d;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.lead-modal__close:hover {
  color: #6d9418;
  border-color: #6d9418;
}

.lead-modal__body {
  display: flex;
  align-items: center;
  gap: 12px;
}

.lead-modal__visual {
  flex: 0 0 46%;
  max-width: 46%;
}

.lead-modal__book-img {
  width: 100%;
  height: auto;
  display: block;
}

.lead-modal__form-wrap {
  flex: 1;
  min-width: 0;
}

.lead-modal__title {
  margin: 0 0 16px;
  font-family: var(--ab-font-body, "Plus Jakarta Sans", system-ui, sans-serif);
  font-size: 30px;
  line-height: 1.15;
  font-weight: 700;
  color: #fb0b0b;
  text-align: center;
  text-shadow: 2px 2px 3px #181223;
}

.lead-modal__title span {
  display: block;
}

.lead-modal__form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.lead-modal__input {
  width: 100%;
  padding: 10px 15px;
  font-size: 16px;
  font-family: inherit;
  color: #1a2421;
  background: #fff;
  border: 1px solid #333;
  border-radius: 10px;
  box-sizing: border-box;
}

.lead-modal__input:focus {
  outline: 2px solid #ad8c4c;
  outline-offset: 1px;
}

.lead-modal__textarea {
  min-height: 100px;
  resize: vertical;
}

.lead-modal__submit {
  width: 100%;
  margin-top: 4px;
  padding: 12px 40px;
  border: none;
  border-radius: 12px;
  background: linear-gradient(to right, rgb(173, 140, 76) 0%, rgb(173, 140, 76) 100%);
  color: #fff;
  font-size: 20px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: filter 0.2s ease, transform 0.2s ease;
}

.lead-modal__submit:hover {
  filter: brightness(1.05);
  transform: translateY(-1px);
}

@media (max-width: 767px) {
  .lead-modal__content {
    padding: 36px 20px 24px;
  }

  .lead-modal__body {
    flex-direction: column;
  }

  .lead-modal__visual {
    flex: none;
    max-width: 100%;
    width: 100%;
  }

  .lead-modal__title {
    font-size: 24px;
  }

  .lead-modal__close {
    top: -8px;
    right: -4px;
  }
}

.w-xl-90 {
  max-width: 90%;
  margin: 0 auto;
}

@media (prefers-reduced-motion: reduce) {
  .book-writing .btn.promo-cta { animation: none; }

  #benefits .ex_txt {
    opacity: 1;
    transform: none;
    transition: box-shadow 0.3s ease;
  }
}

@media only screen and (max-width: 980px) and (min-width: 320px) {
  .gap { justify-content: center; }

  .book-writing .btn.promo-cta {
    font-size: 16px;
    padding: 8px 24px;
  }

  #benefits-intro.sub-service {
    min-height: auto;
    padding: 48px 0 24px;
  }

  #benefits-intro .heading h2 {
    font-size: 28px;
  }

  #benefits.sub-service {
    padding-bottom: 64px;
  }

  body.homepage .our-banner h1 {
    font-size: 1.75rem;
    line-height: 1.2;
  }

  body.homepage .our-banner p {
    font-size: 1rem;
  }

  body.homepage .header ul li a {
    font-size: 14px;
  }

  .header .header-brand-wrap {
    width: 100%;
  }

  .site-header-brand {
    width: 100%;
  }
}

/* ─── bw_inside cards — fix broken 308px padding & overlap layout ─── */
.bw_inside {
  padding: 48px 56px !important;
  width: 100% !important;
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.1);
  background-repeat: no-repeat;
  background-position: right bottom;
  background-size: min(38%, 360px) auto;
}

section.book-writing,
section.abt-writing,
section.genr-writing {
  margin-top: -36px;
  margin-bottom: 0;
  padding: 0 0 56px;
}

section.cnt-writing {
  margin-top: -36px;
  margin-bottom: 0;
  padding: 0 0 80px;
}

section.inn-banner {
  padding-bottom: 72px;
}

.abt-writing .bw_inside,
.cnt-writing .bw_inside,
.pub_writing .bw_inside {
  background-image: none;
  background-color: #fff;
}

section.book-writing .bw_inside {
  min-height: 132px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  background: url("assets/images/supper-con-banner2.jpg") no-repeat right center #fff;
  background-size: min(42%, 400px) auto;
  padding: 32px 48px !important;
}

.book-writing .btn.promo-cta,
.book-writing .btn.btn-orange.promo-cta {
  position: relative;
  margin-top: 0;
  margin-left: 0;
}

section.genr-writing .bw_inside {
  min-height: auto;
  padding-top: 48px !important;
}

.bw_inside .heading h2,
.bw_inside .heading h3 {
  font-size: clamp(1.35rem, 2.2vw, 2rem);
  line-height: 1.35;
}

.bw_inside .heading p {
  max-width: 72ch;
}

/* Contact section */
section.cnt-writing.cont_pg {
  padding-bottom: 80px;
}

.cnt-writing .heading {
  text-align: left;
}

.cnt-writing .heading h3 {
  margin-bottom: 16px;
}

.cnt-writing .row.align-items-center.mt-5 {
  margin-top: 2rem !important;
}

.cnt-writing .ct_item {
  padding: 28px 24px;
  text-align: left;
  border: 1px solid #e5e5e5;
  border-radius: 14px;
  background: #f8f8f8;
  height: 100%;
}

.ct_item:after {
  display: none !important;
}

.ct_item h5 {
  font-size: 1.2rem;
  margin: 12px 0 8px;
}

.ct_item h5 a {
  color: #1c4a40;
  text-decoration: none;
  font-weight: 700;
}

.ct_item h5 a:hover {
  color: #c45c2a;
}

.tc-ico {
  height: auto;
}

.tc-ico img {
  max-height: 52px;
  width: auto;
}

.ct_item .btn {
  margin-top: 16px;
}

img.publ-img,
.bw_inside .editiing-thumb {
  border-radius: 12px;
  width: 100%;
  height: auto;
  display: block;
}

.abt-writing .bw_inside ul {
  margin-top: 16px;
}

@media (max-width: 991px) {
  .bw_inside {
    padding: 36px 32px !important;
    background-size: 160px auto;
    background-position: right top;
  }

  section.book-writing .bw_inside {
    min-height: 110px;
    background-size: 130px auto;
  }
}

@media (max-width: 767px) {
  .bw_inside {
    padding: 28px 24px !important;
    background-image: none !important;
  }

  section.book-writing .bw_inside {
    min-height: auto;
    justify-content: center;
    text-align: center;
  }

  section.inn-banner {
    padding-bottom: 32px;
  }

  section.book-writing,
  section.abt-writing,
  section.genr-writing,
  section.cnt-writing {
    margin-top: 0;
    padding-top: 24px;
    padding-bottom: 48px;
  }

  section.cnt-writing.cont_pg {
    padding-bottom: 48px;
  }
}
