/* Premium responsive redesign layer */

:root {
  --surface-color: #ffffff;
  --surface-soft-color: #f7fbfa;
  --ink-soft-color: #334e56;
  --line-color: rgba(31, 41, 51, 0.12);
  --shadow-soft: 0 24px 70px rgba(18, 45, 52, 0.14);
  --shadow-card: 0 14px 40px rgba(18, 45, 52, 0.1);
}

html {
  scroll-behavior: smooth;
}

body {
  color: var(--dark-color);
  background:
    radial-gradient(circle at 12% 8%, rgba(242, 184, 75, 0.12), transparent 30%),
    linear-gradient(180deg, #ffffff 0%, #f8fbfb 45%, #ffffff 100%);
}

p {
  line-height: 1.75;
}

.navbar {
  backdrop-filter: blur(14px);
}

.sticky-wrapper.is-sticky .navbar {
  background-color: rgba(22, 45, 51, 0.94);
}

@media screen and (max-width: 991px) {
  .navbar {
    background-color: rgba(22, 45, 51, 0.94);
  }
}

.navbar-brand-icon {
  box-shadow: 0 10px 24px rgba(242, 184, 75, 0.35);
}

.custom-btn {
  box-shadow: 0 16px 32px rgba(20, 108, 115, 0.24);
}

.custom-border-btn {
  background: rgba(255, 255, 255, 0.1);
  color: var(--white-color);
}

.hero-section {
  height: auto;
  min-height: 720px;
  background-position: center top;
  overflow: hidden;
  padding: 170px 0 90px;
}

.hero-section::after {
  background:
    linear-gradient(90deg, rgba(12, 31, 37, 0.9) 0%, rgba(20, 64, 70, 0.75) 48%, rgba(20, 108, 115, 0.36) 100%),
    rgba(19, 40, 46, 0.35);
}

.hero-section .row {
  align-items: center;
  top: 0;
}

.hero-section h6 {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #ffe3a0;
  font-size: 15px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-section h6::before {
  content: "";
  width: 34px;
  height: 2px;
  background: var(--secondary-color);
}

.hero-section h1 {
  max-width: 620px;
  font-size: clamp(42px, 4.4vw, 64px);
  line-height: 1.08;
  margin-bottom: 22px;
}

.hero-copy {
  max-width: 560px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 17px;
  margin-bottom: 26px;
}

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

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  max-width: 560px;
  margin-top: 28px;
}

.hero-stat {
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  padding: 14px;
}

.hero-stat strong {
  display: block;
  color: var(--white-color);
  font-size: 26px;
  line-height: 1;
}

.hero-stat span {
  display: block;
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
  margin-top: 8px;
}

.hero-image-wrap {
  position: relative;
}

.hero-image-wrap::before {
  content: "";
  position: absolute;
  inset: 10% 5% 15%;
  border-radius: 34px;
  background: linear-gradient(145deg, rgba(242, 184, 75, 0.36), rgba(255, 255, 255, 0.12));
  transform: rotate(-5deg);
}

.hero-image {
  bottom: 0;
  max-height: 540px;
  object-fit: contain;
  filter: drop-shadow(0 36px 48px rgba(0, 0, 0, 0.28));
}

.featured-section {
  background:
    linear-gradient(135deg, #146c73 0%, #1f8289 55%, #f2b84b 160%);
}

.featured-section .container {
  position: relative;
  z-index: 2;
}

.reviews-group small,
.featured-section .reviews-group strong,
.featured-section .reviews-group i {
  color: var(--white-color);
}

.book-section {
  position: relative;
}

.book-section img.img-fluid {
  border-radius: 24px;
  box-shadow: var(--shadow-soft);
}

.book-section-info {
  padding: 54px;
  background: var(--surface-color);
  border: 1px solid var(--line-color);
  border-radius: 24px;
  box-shadow: var(--shadow-card);
}

.book-feature-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 28px;
}

.book-feature {
  border: 1px solid var(--line-color);
  border-radius: 16px;
  background: var(--surface-soft-color);
  padding: 18px;
}

.book-feature i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(20, 108, 115, 0.12);
  color: var(--primary-color);
  margin-bottom: 12px;
}

.book-feature strong {
  display: block;
  color: var(--dark-color);
  margin-bottom: 4px;
}

.book-feature span {
  display: block;
  color: var(--p-color);
  font-size: 13px;
  line-height: 1.5;
}

#section_2 + section {
  background: linear-gradient(180deg, #ffffff 0%, #eef6f4 100%);
  padding-bottom: 90px;
}

.nav-pills {
  background: var(--surface-color);
  border: 1px solid var(--line-color);
  box-shadow: var(--shadow-card);
}

.nav-pills .nav-link {
  background: transparent;
  border: 1px solid transparent;
}

.nav-pills .nav-link:hover,
.nav-pills .nav-link.active,
.nav-pills .show > .nav-link {
  box-shadow: 0 12px 24px rgba(20, 108, 115, 0.18);
}

.scrollspy-example-2 {
  padding: 0 0 0 28px;
}

.scrollspy-example-item {
  min-height: auto;
  margin-bottom: 24px;
  padding: 30px;
  background: var(--surface-color);
  border: 1px solid var(--line-color);
  border-bottom: 1px solid var(--line-color);
  border-radius: 22px;
  box-shadow: var(--shadow-card);
}

.scrollspy-example-item h5 {
  padding-top: 0;
  color: var(--primary-color);
}

.scrollspy-example-item-image,
.scrollspy-example-item .img-fluid {
  border-radius: 18px;
}

.blockquote {
  position: relative;
  background:
    linear-gradient(135deg, rgba(20, 108, 115, 0.1), rgba(242, 184, 75, 0.18));
  border: 1px solid rgba(20, 108, 115, 0.12);
}

.author-section {
  background:
    radial-gradient(circle at 8% 85%, rgba(242, 184, 75, 0.18), transparent 24%),
    linear-gradient(180deg, #eef6f4 0%, #ffffff 100%);
}

.author-section .row {
  align-items: center;
}

.author-image {
  border-color: var(--white-color);
  box-shadow: 0 28px 70px rgba(20, 108, 115, 0.22);
}

.author-section .col-lg-6:last-child {
  background: var(--surface-color);
  border: 1px solid var(--line-color);
  border-radius: 24px;
  box-shadow: var(--shadow-card);
  padding: 44px;
}

.author-highlights {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 26px;
}

.author-highlights span {
  border-radius: 999px;
  background: var(--section-bg-color);
  color: var(--primary-color);
  font-size: 13px;
  font-weight: 700;
  padding: 10px 12px;
  text-align: center;
}

.reviews-section {
  background: #ffffff;
}

.custom-block {
  min-height: 100%;
  box-shadow: var(--shadow-card);
  transform: translateY(0);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.custom-block:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 60px rgba(18, 45, 52, 0.16);
}

.custom-block::after {
  background:
    linear-gradient(180deg, rgba(22, 45, 51, 0.34), rgba(22, 45, 51, 0.88));
}

.custom-block-image-wrap {
  background-color: rgba(20, 108, 115, 0.92);
}

.contact-section {
  background:
    linear-gradient(135deg, #123840 0%, #146c73 60%, #1f8289 100%);
}

.ebook-download-form {
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.2);
}

.ebook-download-form h2 {
  color: var(--dark-color);
}

.custom-form .form-control {
  border: 1px solid rgba(31, 41, 51, 0.14);
}

.custom-form textarea.form-control {
  border-radius: 24px;
  resize: vertical;
}

.contact-info-panel {
  display: grid;
  gap: 14px;
  margin: 28px 0;
}

.contact-info-card {
  display: flex;
  align-items: center;
  gap: 14px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.1);
  color: var(--white-color);
  padding: 16px;
}

.contact-info-card i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(242, 184, 75, 0.18);
  color: #ffe3a0;
}

.contact-info-card a,
.contact-info-card span {
  color: var(--white-color);
  font-size: 16px;
}

.social-icon-link {
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.14);
}

@media screen and (max-width: 991px) {
  .hero-section {
    min-height: auto;
    padding: 120px 0 40px;
  }

  .hero-section .row {
    top: 0;
  }

  .hero-image {
    bottom: 0;
    max-width: 78%;
  }

  .featured-section {
    margin-top: 0;
  }

  .book-section-info,
  .author-section .col-lg-6:last-child {
    padding: 28px;
    margin-top: 24px;
  }

  .scrollspy-example-2 {
    padding: 26px 0 0;
  }

  .nav-pills {
    position: static;
  }
}

@media screen and (max-width: 767px) {
  .section-padding {
    padding-top: 64px;
    padding-bottom: 64px;
  }

  .hero-section h1 {
    font-size: 42px;
  }

  .hero-copy {
    font-size: 16px;
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .hero-actions .custom-btn,
  .hero-actions .link {
    width: fit-content;
  }

  .hero-stats,
  .book-feature-grid,
  .author-highlights {
    grid-template-columns: 1fr;
  }

  .featured-section .avatar-group {
    justify-content: center;
    text-align: center;
  }

  .reviews-group {
    width: 100%;
  }

  .scrollspy-example-item {
    padding: 22px;
  }

  .contact-section::before,
  .featured-section::after {
    display: none;
  }
}

@media screen and (max-width: 480px) {
  .navbar-brand {
    font-size: 22px;
  }

  .hero-section h1 {
    font-size: 36px;
  }

  .hero-stat {
    padding: 14px;
  }

  .ebook-download-form {
    padding: 24px;
  }
}

/* Final hero layout lock: prevents old template offsets from hiding content. */
@media screen and (min-width: 992px) {
  .hero-section {
    height: auto !important;
    min-height: 680px !important;
    padding: 150px 0 78px !important;
    overflow: hidden !important;
  }

  .hero-section .row {
    top: 0 !important;
    align-items: center !important;
  }

  .hero-section h1 {
    max-width: 760px;
    font-size: clamp(44px, 4vw, 58px) !important;
    line-height: 1.08 !important;
    margin-bottom: 18px !important;
  }

  .hero-copy {
    max-width: 600px;
    color: rgba(255, 255, 255, 0.9) !important;
    font-size: 17px !important;
    line-height: 1.7 !important;
    margin-bottom: 24px !important;
    text-shadow: 0 2px 18px rgba(0, 0, 0, 0.28);
  }

  .hero-actions {
    margin-bottom: 0 !important;
  }

  .hero-stats {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 12px !important;
    max-width: 560px !important;
    margin-top: 26px !important;
  }

  .hero-stat {
    min-height: 78px;
    border: 1px solid rgba(255, 255, 255, 0.24) !important;
    background: rgba(255, 255, 255, 0.14) !important;
    box-shadow: 0 16px 34px rgba(0, 0, 0, 0.16);
    padding: 14px 16px !important;
  }

  .hero-stat strong {
    color: #ffffff !important;
    font-size: 24px !important;
  }

  .hero-stat span {
    color: rgba(255, 255, 255, 0.78) !important;
    font-size: 12px !important;
  }

  .hero-image-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .hero-image {
    bottom: 0 !important;
    max-height: 430px !important;
    width: auto !important;
    max-width: 92% !important;
    object-fit: contain !important;
  }

  .featured-section {
    margin-top: 0 !important;
    position: relative;
    z-index: 3;
  }
}

@media screen and (max-width: 991px) {
  .hero-section {
    height: auto !important;
    min-height: auto !important;
    padding: 118px 0 56px !important;
  }

  .hero-section .row {
    top: 0 !important;
  }

  .hero-image {
    bottom: 0 !important;
  }
}
