/* Portfolio page — filter tabs, stacked covers, book modal */

.lah-portfolio {
  background: #fff;
  padding: 60px 20px 110px;
}

.lah-portfolio__inner {
  max-width: 1140px;
  margin: 0 auto;
}

.lah-portfolio__heading {
  text-align: center;
  margin: 0 0 10px;
  font-size: 40px;
  font-weight: 700;
  line-height: 1.15;
  color: #223235;
}

.lah-portfolio__intro {
  text-align: center;
  max-width: 66%;
  margin: 0 auto 25px;
  font-size: 16px;
  line-height: 1.4;
  color: #666;
}

.lah-portfolio__filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 5px 6px;
  margin: 30px 0 10px;
}

.lah-portfolio__filter {
  border: none;
  background: transparent;
  color: #223235;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  padding: 10px 15px;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
  white-space: nowrap;
}

.lah-portfolio__filter:hover,
.lah-portfolio__filter.is-active {
  background: #0785b8;
  color: #fff;
}

.lah-portfolio__panel {
  display: none;
  margin-top: 40px;
}

.lah-portfolio__panel.is-active {
  display: block;
}

.lah-portfolio__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px 20px;
}

/* Stacked book card */
.lah-book {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 20px;
  padding: 50px 38px 20px;
  min-height: 420px;
}

.lah-book__front,
.lah-book__back,
.lah-book__back-dup {
  margin: 0;
}

.lah-book__front {
  width: 80%;
  position: relative;
  top: -30px;
  z-index: 1;
  transition: all 0.3s ease-in-out;
  cursor: pointer;
}

.lah-book__back,
.lah-book__back-dup {
  width: 53%;
  height: 78%;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  padding: 0 20px;
  margin: 0 20px;
  z-index: 0;
  transition: all 0.3s ease-in-out;
  pointer-events: none;
}

.lah-book__back {
  left: 0;
}

.lah-book__back-dup {
  right: 0;
}

.lah-book img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 100%;
  object-fit: cover;
  border-radius: 20px;
  transition: all 0.4s ease-in-out;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}

.lah-book__back img,
.lah-book__back-dup img {
  height: 100%;
  filter: brightness(0.35);
}

.lah-book:hover .lah-book__front img {
  transform: scale(1.1);
}

.lah-book:hover .lah-book__back img {
  transform: rotate(-12deg);
  width: 100%;
}

.lah-book:hover .lah-book__back-dup img {
  transform: rotate(11deg);
}

/* Modal */
.book-modal {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  z-index: 999999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.book-modal.active {
  display: flex;
  animation: lahFadeIn 0.3s ease;
}

@keyframes lahFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.book-modal-content {
  background: #fff;
  border-radius: 16px;
  max-width: 1000px;
  width: 100%;
  max-height: 90vh;
  overflow: hidden;
  position: relative;
  animation: lahSlideUp 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.4);
}

@keyframes lahSlideUp {
  from {
    transform: translateY(50px) scale(0.95);
    opacity: 0;
  }
  to {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
}

.book-modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 44px;
  height: 44px;
  background: #0b80ba;
  border: none !important;
  border-radius: 50%;
  color: #fff !important;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.book-modal-close:hover {
  background: #0968a0;
  transform: rotate(90deg) scale(1.1);
}

.book-modal-body {
  display: grid;
  grid-template-columns: 350px minmax(0, 1fr);
  min-height: 500px;
}

.book-modal-left {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  padding: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.book-modal-cover {
  max-width: 100%;
  max-height: 400px;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
  object-fit: contain;
}

.book-modal-right {
  padding: 40px;
  overflow-y: auto;
  max-height: 90vh;
}

.book-modal-title {
  font-size: 32px;
  margin: 0 0 10px;
  color: #1a1a1a;
  line-height: 1.2;
  font-weight: 700;
}

.book-modal-author {
  font-size: 18px;
  color: #666;
  margin: 0 0 15px;
  font-weight: 500;
}

.book-modal-genre {
  display: inline-block;
  background: #0b80ba;
  color: #fff;
  padding: 8px 20px;
  border-radius: 25px;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 20px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.book-modal-description {
  line-height: 1.7;
  color: #444;
  font-size: 15px;
  margin-bottom: 25px;
}

.book-modal-video-section {
  margin-top: 20px;
}

.book-modal-video-label {
  font-size: 16px;
  font-weight: 600;
  color: #333;
  margin-bottom: 15px;
}

.book-modal-video-container {
  border-radius: 12px;
  overflow: hidden;
  background: #000;
}

.book-modal-video-container iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  display: block;
}

.book-modal-no-video {
  text-align: center;
  padding: 30px 20px;
  background: #f8f9fa;
  border-radius: 10px;
  border: 2px dashed #ddd;
  color: #666;
  font-style: italic;
}

.book-cta-section {
  margin-top: 20px;
  padding-top: 18px;
  padding-bottom: 18px;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.book-cta-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #888;
  margin-bottom: 10px;
}

.book-cta-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.book-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 10px 18px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: opacity 0.15s ease;
}

.book-cta-btn:hover {
  opacity: 0.85;
}

.book-cta-amazon {
  background: #ff9900;
  color: #111;
}

.book-cta-bn {
  background: #1c3263;
  color: #fff;
}

.book-cta-coming-soon {
  font-size: 13px;
  color: #aaa;
  font-style: italic;
}

.book-modal-recent-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #ff5a5f;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 20px;
  margin-bottom: 10px;
}

.book-modal-recent-badge::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  background: #fff;
  border-radius: 50%;
  animation: lahPulseDot 1.4s ease-in-out infinite;
}

@keyframes lahPulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.7); }
}

@media (max-width: 1024px) {
  .lah-portfolio__heading {
    font-size: 32px;
  }

  .book-modal-body {
    grid-template-columns: 300px minmax(0, 1fr);
  }
}

@media (max-width: 991px) {
  .lah-portfolio__intro {
    max-width: 85%;
  }

  .lah-portfolio__filter {
    font-size: 13px;
  }

  .lah-portfolio__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .lah-portfolio {
    padding: 50px 15px 90px;
  }

  .lah-portfolio__heading {
    font-size: 25px;
  }

  .lah-portfolio__intro {
    max-width: 100%;
  }

  .lah-book {
    padding: 40px 24px 16px;
    min-height: 340px;
  }

  .book-modal.active {
    align-items: flex-start;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
  }

  .book-modal-content {
    max-height: calc(100vh - 24px);
    max-height: calc(100dvh - 24px);
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    margin: 12px auto;
  }

  .book-modal-body {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .book-modal-left,
  .book-modal-right {
    padding: 24px 20px;
  }

  .book-modal-left {
    padding-bottom: 8px;
  }

  .book-modal-cover {
    max-height: 220px;
  }

  .book-modal-right {
    overflow: visible;
    max-height: none;
    padding-bottom: 32px;
  }

  .book-modal-title {
    font-size: 26px;
  }
}

@media (max-width: 575px) {
  .lah-portfolio__grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .lah-portfolio__heading {
    font-size: 22px;
  }

  .book-modal-title {
    font-size: 24px;
  }

  .book-modal-close {
    width: 36px;
    height: 36px;
    font-size: 22px;
    top: 15px;
    right: 15px;
  }

  .lah-website-grid,
  .lah-trailer-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Author website cards */
.lah-website-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
}

.lah-website-card {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.08);
  padding: 0;
  width: calc((100% - 48px) / 3);
  max-width: 100%;
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
}

.lah-website-card__media {
  background: #f3f5f7;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px 20px 0;
}

.lah-website-card__media img {
  display: block;
  width: auto;
  max-width: 100%;
  height: 220px;
  object-fit: contain;
  border-radius: 6px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
}

.lah-website-card__body {
  padding: 22px 24px 28px;
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
}

.lah-website-card__name {
  margin: 0 0 8px;
  font-size: 22px;
  font-weight: 700;
  color: #1a1a1a;
  line-height: 1.25;
}

.lah-website-card__url {
  margin: 0 0 22px;
  font-size: 14px;
  color: #666;
  word-break: break-all;
}

.lah-website-card__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: flex-start;
  margin-top: auto;
  padding: 12px 22px;
  border-radius: 6px;
  background: #0082dd;
  color: #fff !important;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background 0.2s ease;
}

.lah-website-card__btn:hover {
  background: #064877;
  color: #fff !important;
}

/* Video trailers */
.lah-trailer-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}

.lah-trailer-card {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.08);
  overflow: hidden;
}

.lah-trailer-card__video {
  background: #111;
  aspect-ratio: 16 / 9;
}

.lah-trailer-card__video video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.lah-trailer-card__body {
  padding: 18px 20px 22px;
}

.lah-trailer-card__title {
  margin: 0 0 6px;
  font-size: 18px;
  font-weight: 700;
  color: #1a1a1a;
  line-height: 1.3;
}

.lah-trailer-card__author {
  margin: 0;
  font-size: 14px;
  color: #666;
}

.book-cta-ingram {
  background: #fff;
  color: #1a1a1a;
  border: 1.5px solid #d0d0d0;
}

.book-socials-section {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.book-socials-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.book-social-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  color: #fff;
  transition: opacity 0.15s ease;
}

.book-social-btn:hover {
  opacity: 0.88;
  color: #fff;
}

.book-social-btn i {
  font-size: 15px;
}

.book-social-instagram {
  background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
}

.book-social-facebook {
  background: #1877f2;
}

@media (max-width: 991px) {
  .lah-website-card {
    width: calc((100% - 24px) / 2);
  }

  .lah-trailer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 575px) {
  .lah-website-card {
    width: 100%;
  }

  .lah-trailer-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Our Work */
.lah-work-list {
  display: flex;
  flex-direction: column;
  gap: 28px;
  max-width: 980px;
  margin: 0 auto;
}

.lah-work-card {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 36px;
  align-items: center;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.08);
  padding: 28px;
  min-width: 0;
  max-width: 100%;
}

.lah-work-card__body {
  min-width: 0;
}

.lah-work-card__media {
  background: linear-gradient(180deg, #f4f7f8 0%, #e8eef1 100%);
  border-radius: 12px;
  padding: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lah-work-card__media img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.22);
}

.lah-work-card__title {
  margin: 0 0 10px;
  font-size: 28px;
  font-weight: 700;
  line-height: 1.2;
  color: #223235;
  overflow-wrap: break-word;
}

.lah-work-card__author {
  margin: 0 0 18px;
  font-size: 16px;
  color: #444;
}

.lah-work-card__author span {
  font-weight: 700;
  color: #223235;
}

.lah-work-card__label {
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #0785b8;
}

.lah-work-card__synopsis p {
  margin: 0 0 12px;
  font-size: 15px;
  line-height: 1.65;
  color: #555;
  overflow-wrap: break-word;
}

.lah-work-card__synopsis p:last-child {
  margin-bottom: 0;
}

.lah-work-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.lah-work-card__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  border-radius: 8px;
  background: #ff9900;
  color: #111 !important;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.2s ease;
}

.lah-work-card__btn:hover {
  background: #e68a00;
  color: #111 !important;
}

.lah-work-card__btn--bn {
  background: #1c3263;
  color: #fff !important;
}

.lah-work-card__btn--bn:hover {
  background: #15264d;
  color: #fff !important;
}

@media (max-width: 991px) {
  .lah-work-list {
    max-width: 100%;
  }

  .lah-work-card {
    grid-template-columns: 210px minmax(0, 1fr);
    gap: 22px;
    padding: 20px;
  }

  .lah-work-card__title {
    font-size: 22px;
  }

  .lah-work-card__synopsis p {
    font-size: 14px;
  }
}

@media (max-width: 640px) {
  .lah-portfolio__filters {
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: center;
    gap: 8px;
  }

  .lah-portfolio__filter {
    white-space: normal;
    font-size: 13px;
    line-height: 1.3;
    padding: 10px 16px;
    text-align: center;
    width: fit-content;
    max-width: 100%;
  }
}

@media (max-width: 768px) {
  .lah-work-card {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
    padding: 16px;
  }

  .lah-work-card__media {
    max-width: 230px;
    width: 100%;
    margin: 0 auto;
  }

  .lah-work-card__title {
    font-size: 22px;
  }

  .lah-work-card__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .lah-work-card__btn {
    width: 100%;
  }
}

