* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

.book-scene {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  /* neutral background behind the centered book cover */
  /* background-color: #f3f2ef; */
  z-index: 10000;
  transition: opacity 0.8s ease;
  padding: 30px;
}

/* Book wrap provides 3D tilt and sizing; cover-box is the face */
.book-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  transform-origin: left center;
  transform: perspective(1400px) rotateY(-18deg);
}

/* Centered book cover box (face of the book) */
.cover-box {
  width: min(400px, 60vw);
  aspect-ratio: 418 / 720;
  background-image: url("../images/cover.webp");
  /* crop to look like a front cover */
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;

  position: relative;
  overflow: visible;
}

/* Slightly reduce tilt on small screens and make the cover narrower */
@media (max-width: 900px) {
  .book-wrap {
    transform: perspective(1000px) rotateY(-12deg);
  }
  .cover-box {
    width: min(420px, 72vw);
  }
}
@media (max-width: 480px) {
  .book-wrap {
    transform: none;
  }
  .cover-box {
    width: 78vw;
  }
  .open-book-btn {
    top: 62%;
    padding: 10px 16px;
    font-size: 14px;
  }
}

.book-scene.hidden {
  opacity: 0;
  pointer-events: none;
}

.book-pages {
  position: absolute;
  right: -12px;
  top: 6px;
  bottom: 6px;
  width: 12px;
  background: linear-gradient(90deg, #f8f6ef 0%, #efeadd 100%);
  transform: translateZ(-1px) rotateY(-2deg);
  box-shadow: 2px 0 6px rgba(0, 0, 0, 0.25),
    inset -1px 0 2px rgba(0, 0, 0, 0.06);
  border-radius: 0 3px 3px 0;
  overflow: hidden;
}

/* thin stacked-page lines ~3px tall to resemble many pages */
.book-pages::before {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  background: repeating-linear-gradient(
    to bottom,
    #f8f6ef 0px,
    #f8f6ef 2px,
    #e7e2c8 2px,
    #e7e2c8 3px
  );
  opacity: 0.95;
}

/* subtle layered shadow to enhance depth of the page-block */
.book-pages::after {
  content: "";
  position: absolute;
  right: -6px;
  top: 6px;
  bottom: 6px;
  width: 6px;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.25), rgba(0, 0, 0, 0.02));
  filter: blur(2px);
  transform: translateZ(-2px) rotateY(-6deg);
}

.book-title-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 40px;
  z-index: 2;
  /* background: linear-gradient(
          180deg,
          rgba(0, 0, 0, 0.3) 0%,
          rgba(0, 0, 0, 0.1) 100%
        ); */
}

.book-title-overlay h1 {
  font-family: "Playfair Display", serif;
  font-size: 48px;
  font-weight: 900;
  color: #ffd700;
  text-align: center;
  /* text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.8),
          0 0 20px rgba(255, 215, 0, 0.3); */
  margin-bottom: 15px;
  letter-spacing: 2px;
}

.open-book-btn {
  position: absolute;
  /* place the button over the front of the book (adjusts via media queries) */
  top: 74%;
  left: 57%;
  transform: translate(-50%, -50%);
  background: linear-gradient(135deg, #842c2e 0%, #670002ed 100%);
  color: white;
  box-shadow: 0 12px 30px rgba(255, 215, 0, 0.5);
  border: none;
  transform: translate(-50%, -50%) translateY(-3px);
  padding: 13px 24px;
  font-size: 12px;
  font-weight: 700;
  font-family: "Montserrat", sans-serif;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 10001;
}

.open-book-btn:hover {
  transform: translate(-50%, -50%) translateY(-3px);
  box-shadow: 0 12px 30px rgba(255, 215, 0, 0.5);
}

/* ===== MAIN CONTENT AREA ===== */
.main-content {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.8s ease 0.3s;
}

.main-content.visible {
  opacity: 1;
  pointer-events: auto;
}

/* Top Navigation Bar */
.top-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 70px;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  z-index: 1000;
  transition: transform 0.3s ease;
}

.top-nav.scrolled {
  height: 56px;
  padding: 0 30px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
  backdrop-filter: blur(14px);
}

.logo {
  font-family: "Montserrat", sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: #842c2e;
  min-width: 120px;
  transition: font-size 0.35s ease, transform 0.35s ease;
}

.top-nav.scrolled .logo {
  font-size: 16px;
  transform: translateY(-1px);
}

.nav-controls {
  display: flex;
  align-items: center;
  gap: 30px;
  flex: 1;
  margin: 0 30px;
  transition: margin 0.35s ease;
}

.progress-container {
  width: 100%;
  height: 12px;
  background: #e8edf5;
  border-radius: 12px;
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  background: linear-gradient(90deg, #842c2e, #b23b3f);
  transition: width 0.25s ease, background 0.25s ease;
  width: 0%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-family: "Montserrat", sans-serif;
  font-size: 12px;
  white-space: nowrap;
}

.top-nav.scrolled .progress-container {
  height: 10px;
}

/* show percentage from data-progress attribute */
.progress-bar::after {
  content: attr(data-progress);
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  pointer-events: none;
}

.chapters-btn {
  background: #842c2e;
  color: white;
  border: none;
  padding: 10px 24px;
  border-radius: 8px;
  cursor: pointer;
  font-family: "Montserrat", sans-serif;
  font-weight: 600;
  font-size: 14px;
  transition: all 0.3s ease;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(43, 76, 128, 0.2);
}

.chapters-btn:hover {
  background: #1e3a5f;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(43, 76, 128, 0.3);
}

/* Chapters Modal */
.chapters-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(8px);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  padding: 20px;
}

.chapters-modal.show {
  display: flex;
  opacity: 1;
}

.modal-content {
  background: white;
  border-radius: 20px;
  padding: 50px;
  max-width: 700px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  transform: scale(0.9);
  transition: transform 0.3s ease;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.chapters-modal.show .modal-content {
  transform: scale(1);
}

.db-error {
  margin: 110px auto 30px;
  max-width: 720px;
  background: #fff4f4;
  color: #842c2e;
  border: 1px solid rgba(132, 44, 46, 0.2);
  padding: 16px 22px;
  border-radius: 12px;
  font-family: "Montserrat", sans-serif;
  text-align: center;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 40px;
  padding-bottom: 25px;
  border-bottom: 3px solid #842c2e;
}

.modal-header h2 {
  font-family: "Montserrat", sans-serif;
  font-size: 32px;
  font-weight: 700;
  color: #1a1a1a;
}

.modal-close {
  background: none;
  border: none;
  font-size: 36px;
  cursor: pointer;
  color: #999;
  transition: all 0.3s ease;
  padding: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-close:hover {
  color: #842c2e;
  transform: rotate(90deg);
}

.chapters-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.chapters-list li {
  padding: 18px 22px;
  margin-bottom: 12px;
  background: linear-gradient(135deg, #f8fafc, #f0f4f8);
  border-left: 5px solid #842c2e;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 16px;
  font-weight: 500;
  color: #333;
}

.chapters-list li:hover {
  background: linear-gradient(135deg, #e8f0f8, #e0ebf7);
  transform: translateX(8px);
  box-shadow: 0 4px 12px rgba(43, 76, 128, 0.15);
}
.chapter-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
}
/* Book Container & Pages */
.book-container {
  padding-top: 80px;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

.page {
  max-width: 1000px;
  width: 100%;
  min-height: calc(100vh - 80px);
  background: white;
  margin: 20px;
  padding: 50px 70px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
  border-radius: 12px;
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  display: none;
}

.page.active {
  opacity: 1;
  transform: translateY(0);
  display: block;
}

/* Dedication Page */
.dedication {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  flex-direction: column;
  min-height: 500px;
}

.dedication p {
  font-size: 20px;
  line-height: 1.8;
  color: #555;
  font-style: italic;
  max-width: 600px;
}
.nice-quote {
  font-size: 21px;
  line-height: 1.8;
  color: #444;
  border-left: 4px solid #999;
  padding-left: 20px;
  margin: 30px 0;
  /*font-style: italic;*/
  background: #f9f9f9;
  padding: 20px 25px;
  border-radius: 8px;
}

/* Illustration Pages */
.illustration-page {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 40px;
  min-height: calc(100vh - 100px);
}

.illustration-page h2 {
  font-size: 48px;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 40px;
}

.illustration-page img {
  width: 100%;
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  /* box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15); */
  margin-bottom: 30px;
  max-height: 100%;
  object-fit: cover;
}

.illustration-caption {
  font-size: 24px;
  color: #666;
  font-style: italic;
  margin-top: 20px;
}

/* Chapter Content */
.chapter-content h2 {
  font-size: 30px;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 40px;
  padding-bottom: 20px;
  border-bottom: 3px solid #842c2e;
}

.chapter-content p {
  font-size: 20px;
  line-height: 1.9;
  color: #333;
  margin-bottom: 28px;
  text-align: justify;
}

.chapter-content img {
  width: 100%;
}
.comment-img {
  max-width: 100px;
  border: 2px solid #d9d1d1;
  border-radius: 3px;
}
.chapter-intro {
  font-size: 22px;
  font-style: italic;
  color: #666;
  margin-bottom: 40px;
  padding: 20px;
  background: #f9f9f9;
  border-left: 4px solid #842c2e;
  border-radius: 4px;
}

/* Comment Section */
.comment-section {
  margin-top: 50px;
  padding-top: 40px;
  /* border-top: 3px solid #842c2e; */
}

.comment-section h3 {
  font-family: "Montserrat", sans-serif;
  font-size: 28px;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 30px;
  padding-bottom: 15px;
  border-bottom: 2px solid #842c2e;
  display: flex;
  align-items: center;
  gap: 10px;
}

.comment-count {
  background: #842c2e;
  color: white;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 16px;
  font-weight: 600;
}

.comment-form {
  /* background: linear-gradient(135deg, #f8fafc, #f0f4f8); */
  padding: 35px;
  border-radius: 15px;
  margin-bottom: 40px;
  border: 2px solid #842c2e;
  /* box-shadow: 0 6px 20px rgba(132, 44, 46, 0.15); */
}

.comment-form-group {
  margin-bottom: 20px;
}

.comment-form-group label {
  display: block;
  font-family: "Montserrat", sans-serif;
  font-weight: 600;
  color: #333;
  margin-bottom: 8px;
  font-size: 16px;
}

.comment-form-group input,
.comment-form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  font-family: "Crimson Pro", serif;
  font-size: 16px;
  color: #333;
  transition: all 0.3s ease;
  background: white;
}

.comment-form-group input:focus,
.comment-form-group textarea:focus {
  outline: none;
  border-color: #842c2e;
  box-shadow: 0 0 0 3px rgba(132, 44, 46, 0.1);
}

.comment-form-group textarea {
  min-height: 120px;
  resize: vertical;
}

.comment-submit-btn {
  background: #842c2e;
  color: white;
  border: none;
  padding: 12px 30px;
  border-radius: 8px;
  cursor: pointer;
  font-family: "Montserrat", sans-serif;
  font-weight: 600;
  font-size: 16px;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(132, 44, 46, 0.2);
}

.comment-submit-btn:hover {
  background: #1e3a5f;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(132, 44, 46, 0.3);
}

.comments-list {
  margin-top: 30px;
}

.comment-item {
  background: white;
  padding: 25px;
  margin-bottom: 25px;
  border-radius: 15px;
  border: 2px solid #e8e8e8;
  /* box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08); */
  transition: all 0.3s ease;
  position: relative;
}

/* .comment-item:hover {
        transform: translateY(-3px);
        box-shadow: 0 6px 20px rgba(132, 44, 46, 0.15);
        border-color: #842c2e;
      } */

.comment-header {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 15px;
  padding-bottom: 15px;
  border-bottom: 2px solid #f0f0f0;
}

.comment-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, #842c2e, #1e3a5f);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  font-size: 24px;
  flex-shrink: 0;
  border: 3px solid #842c2e;
  box-shadow: 0 2px 8px rgba(132, 44, 46, 0.2);
}

.comment-avatar img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.comment-author-info {
  flex: 1;
}

.comment-author {
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  font-size: 18px;
  color: #1a1a1a;
  margin-bottom: 5px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.approval-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  font-family: "Montserrat", sans-serif;
  background: transparent;
  color: #666;
  border: 1px solid #ddd;
}

.approval-badge.approved {
  color: #28a745;
  border-color: #28a745;
}

.approval-badge.pending {
  color: #ffa500;
  border-color: #ffa500;
}

.comment-email {
  font-family: "Montserrat", sans-serif;
  font-size: 14px;
  color: #666;
  display: block;
  margin-bottom: 5px;
}

.comment-date {
  font-family: "Montserrat", sans-serif;
  font-size: 13px;
  color: #999;
}

.comment-text {
  font-family: "Crimson Pro", serif;
  font-size: 17px;
  line-height: 1.8;
  color: #333;
  text-align: justify;
  margin-bottom: 15px;
  /* padding-left: 75px; */
}

.comment-actions {
  display: flex;
  gap: 15px;
  padding-left: 75px;
  margin-top: 15px;
}

.reply-btn {
  background: transparent;
  border: 2px solid #842c2e;
  color: #842c2e;
  padding: 8px 20px;
  border-radius: 6px;
  cursor: pointer;
  font-family: "Montserrat", sans-serif;
  font-weight: 600;
  font-size: 14px;
  transition: all 0.3s ease;
}

.reply-btn:hover {
  background: #842c2e;
  color: white;
  transform: translateY(-2px);
}

.replies-section {
  margin-top: 20px;
  padding-left: 75px;
  border-left: 3px solid #e8e8e8;
  margin-left: 30px;
}

.reply-item {
  background: #f8fafc;
  padding: 20px;
  margin-bottom: 15px;
  border-radius: 12px;
  /* border-left: 4px solid #842c2e; */
}

.reply-form {
  background: #f8fafc;
  padding: 20px;
  margin-top: 15px;
  border-radius: 12px;
  border: 2px solid #e0e0e0;
  display: none;
}

.reply-form.show {
  display: block;
}

.reply-form-group {
  margin-bottom: 15px;
}

.reply-form-group label {
  display: block;
  font-family: "Montserrat", sans-serif;
  font-weight: 600;
  color: #333;
  margin-bottom: 6px;
  font-size: 14px;
}

.reply-form-group input,
.reply-form-group textarea {
  width: 100%;
  padding: 10px 14px;
  border: 2px solid #e0e0e0;
  border-radius: 6px;
  font-family: "Crimson Pro", serif;
  font-size: 15px;
  color: #333;
  transition: all 0.3s ease;
  background: white;
}

.reply-form-group input:focus,
.reply-form-group textarea:focus {
  outline: none;
  border-color: #842c2e;
  box-shadow: 0 0 0 3px rgba(132, 44, 46, 0.1);
}

.reply-form-group textarea {
  min-height: 80px;
  resize: vertical;
}

.reply-submit-btn {
  background: #842c2e;
  color: white;
  border: none;
  padding: 10px 25px;
  border-radius: 6px;
  cursor: pointer;
  font-family: "Montserrat", sans-serif;
  font-weight: 600;
  font-size: 14px;
  transition: all 0.3s ease;
}

.reply-submit-btn:hover {
  background: #1e3a5f;
  transform: translateY(-2px);
}

.no-comments {
  text-align: center;
  padding: 60px 40px;
  color: #999;
  font-family: "Crimson Pro", serif;
  font-size: 18px;
  font-style: italic;
  background: linear-gradient(135deg, #f8fafc, #f0f4f8);
  border-radius: 15px;
  border: 2px dashed #e0e0e0;
}

.comment-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.comment-time-ago {
  font-size: 12px;
  color: #999;
  font-style: italic;
}

/* Navigation Buttons */
.nav-buttons {
  position: fixed;
  bottom: 30px;
  right: 30px;
  display: flex;
  gap: 15px;
  z-index: 100;
}

.nav-btn {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: none;
  background: #842c2e;
  color: white;
  font-size: 24px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(43, 76, 128, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-btn:hover:not(:disabled) {
  background: #1e3a5f;
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(43, 76, 128, 0.4);
}

.nav-btn:disabled {
  background: #d1d5db;
  cursor: not-allowed;
  box-shadow: none;
}

/* Responsive */
@media (max-width: 400px) {
  .open-book-btn {
    font-size: 9px !important;
    /* bottom: -22px; */
  }
  .logo-text {
    display: none;
  }
  .logo img {
    padding: 18px !important;
  }
}
@media (max-width: 768px) {
  .book-3d {
    width: 280px;
    height: 400px;
  }

  .top-nav {
    padding: 0 20px;
  }

  .page {
    padding: 24px 18px;
    margin: 10px;
  }

  .book-container {
    transform: none;
  }
  .chapters-btn {
    font-size: 10px;
  }
  .chapter-content h2 {
    font-size: 21px;
    margin-top: 0px;
  }
  .nice-quote {
    font-size: 15px;
    padding: 12px 6px;
  }
  .nav-buttons {
    bottom: 1px;
    right: 135px;
  }
  .nav-btn {
    width: 41px;
    height: 40px;
    font-size: 18px;
  }
  .chapter-content p {
    font-size: 14px;
    line-height: 1.67;
  }
  .nav-controls {
    display: none;
  }
  .modal-header h2 {
    font-size: 20px;
  }
  .modal-content {
    padding: 20px;
  }

  /* Comment Section Mobile Responsive */
  .comment-section {
    margin-top: 30px;
    padding-top: 25px;
  }

  .comment-section h3 {
    font-size: 22px;
    margin-bottom: 20px;
    flex-wrap: wrap;
  }

  .comment-section p[style*="font-style: italic"] {
    margin: 20px 0 15px 0 !important;
    font-size: 14px !important;
    line-height: 1.5 !important;
    padding: 0 5px;
  }

  .comment-count {
    font-size: 14px;
    padding: 3px 10px;
  }

  .comment-form {
    padding: 20px 15px;
    margin-bottom: 30px;
  }

  .comment-form-group label {
    font-size: 14px;
  }

  .comment-form-group input,
  .comment-form-group textarea {
    padding: 10px 14px;
    font-size: 15px;
  }

  .comment-form-group textarea {
    min-height: 100px;
  }

  .comment-submit-btn {
    padding: 10px 25px;
    font-size: 15px;
    width: 100%;
  }

  .comment-item {
    padding: 18px 15px;
    margin-bottom: 20px;
  }

  .comment-header {
    /* flex-direction: column; */
    align-items: flex-start;
    gap: 12px;
    padding-bottom: 12px;
  }

  .comment-avatar {
    width: 50px;
    height: 50px;
    font-size: 20px;
  }

  .comment-author {
    font-size: 16px;
  }

  .comment-email {
    font-size: 13px;
  }

  .comment-date {
    font-size: 12px;
  }

  .comment-text {
    font-size: 15px;
    line-height: 1.7;
    padding-left: 0;
    margin-bottom: 12px;
  }

  .comment-actions {
    padding-left: 0;
    flex-direction: column;
    gap: 10px;
  }

  .reply-btn {
    width: 100%;
    padding: 10px 18px;
    font-size: 13px;
  }

  .replies-section {
    padding-left: 15px;
    margin-left: 15px;
  }

  .reply-item {
    padding: 15px;
  }

  .reply-form {
    padding: 15px;
  }

  .reply-form-group label {
    font-size: 13px;
  }

  .reply-form-group input,
  .reply-form-group textarea {
    padding: 8px 12px;
    font-size: 14px;
  }

  .reply-form-group textarea {
    min-height: 70px;
  }

  .reply-submit-btn {
    width: 100%;
    padding: 10px 20px;
    font-size: 13px;
  }

  .no-comments {
    padding: 40px 20px;
    font-size: 16px;
  }
}

@media (max-width: 480px) {
  /* Comment Section Extra Small Mobile */
  .comment-section {
    margin-top: 25px;
    padding-top: 20px;
  }

  .comment-section h3 {
    font-size: 20px;
    margin-bottom: 15px;
  }

  .comment-section p[style*="font-style: italic"] {
    margin: 15px 0 12px 0 !important;
    font-size: 13px !important;
    line-height: 1.4 !important;
    padding: 0;
  }

  .comment-form {
    padding: 15px 12px;
    margin-bottom: 25px;
  }

  .comment-form-group {
    margin-bottom: 15px;
  }

  .comment-form-group label {
    font-size: 13px;
    margin-bottom: 6px;
  }

  .comment-form-group input,
  .comment-form-group textarea {
    padding: 9px 12px;
    font-size: 14px;
  }

  .comment-form-group textarea {
    min-height: 90px;
  }

  .comment-submit-btn {
    padding: 9px 20px;
    font-size: 14px;
  }

  .comment-item {
    padding: 15px 12px;
    margin-bottom: 18px;
  }

  .comment-avatar {
    width: 45px;
    height: 45px;
    font-size: 18px;
  }

  .comment-author {
    font-size: 15px;
  }

  .comment-text {
    font-size: 14px;
    line-height: 1.6;
  }

  .replies-section {
    padding-left: 10px;
    margin-left: 10px;
  }

  .reply-item {
    padding: 12px;
  }

  .reply-form {
    padding: 12px;
  }

  .no-comments {
    padding: 30px 15px;
    font-size: 15px;
  }
}

.divider {
  text-align: center;
  margin: 30px 0;
  position: relative;
}

.divider::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 100%;
  height: 1px;
  background: #e0e0e0;
}

.divider span {
  background: white;
  padding: 0 15px;
  color: #999;
  font-size: 15px;
  position: relative;
  z-index: 1;
}
