/* =========================================================
   REAL LOVE STORIES
   COMPLETE WEBSITE STYLING
   ========================================================= */

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  background: #f8f5f7;
  color: #33252c;
  font-family: "Merriweather", Arial, sans-serif;
}

button,
input,
textarea,
select {
  font: inherit;
}

.hidden {
  display: none !important;
}


/* =========================================================
   TOP HEADER
   ========================================================= */

.topbar {
  position: sticky;
  top: 0;
  z-index: 1000;

  width: 100%;
  min-height: 72px;

  background: #96345f;
  color: white;

  box-shadow: 0 4px 18px rgba(70, 25, 48, 0.18);
}


/* Header inner wrapper */

.header-inner {
  width: 100%;
  min-height: 72px;

  display: flex;
  align-items: center;

  gap: 28px;

  padding: 12px 22px;
}


/* =========================================================
   BRAND
   ========================================================= */

.brand {
  flex: 0 0 auto;
  min-width: 0;
}

.brand a {
  display: block;

  color: white;
  text-decoration: none;

  font-family: Georgia, "Times New Roman", serif;
  font-size: 25px;
  font-weight: 700;
  line-height: 1.1;

  white-space: nowrap;
}

.brand a:hover {
  color: #fff4f8;
}


/* =========================================================
   MAIN NAVIGATION
   ========================================================= */

.main-navigation {
  flex: 1 1 auto;
  min-width: 0;

  display: flex;
  align-items: center;
  justify-content: center;

  gap: 24px;
}

.main-navigation a {
  color: white;
  text-decoration: none;

  font-size: 14px;
  font-weight: 700;

  white-space: nowrap;

  transition: opacity 0.2s ease;
}

.main-navigation a:hover {
  opacity: 0.8;
  text-decoration: underline;
}


/* =========================================================
   STORY NAVIGATION
   ========================================================= */

.story-nav {
  flex: 0 1 auto;

  display: flex;
  align-items: center;
  justify-content: flex-end;

  gap: 8px;

  min-width: 0;
  max-width: 260px;

  overflow-x: auto;
  overflow-y: hidden;

  padding: 0;
  margin: 0;

  background: transparent;
  border: 0;

  scrollbar-width: thin;
}

.story-nav button,
.story-nav-button {
  flex: 0 0 auto;

  max-width: 170px;

  padding: 8px 14px;

  border: 0;
  border-radius: 22px;

  background: #742247;
  color: white;

  font-size: 13px;
  font-weight: 700;

  cursor: pointer;

  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;

  transition:
    background 0.2s ease,
    transform 0.2s ease;
}

.story-nav button:hover,
.story-nav-button:hover {
  background: #64203f;
  transform: translateY(-1px);
}

.story-nav button.active,
.story-nav-button.active {
  background: rgba(255, 255, 255, 0.16);
  color: white;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.55);
}

.loading-text {
  color: rgba(255, 255, 255, 0.9);
  font-size: 13px;
}


/* =========================================================
   MAIN THREE-COLUMN LAYOUT
   ========================================================= */

/* Leave room for the sticky header when jumping to #home */
#home {
  scroll-margin-top: 95px;
}

@media (max-width: 800px) {
  #home {
    scroll-margin-top: 0;
  }
}

.app-layout {
  width: min(1500px, calc(100% - 48px));

  margin: 0 auto;

  padding: 28px 0 45px;

  display: grid;

  grid-template-columns:
    220px
    minmax(0, 1fr)
    300px;

  gap: 24px;

  align-items: start;
}

.information-page-layout {
  grid-template-columns:
    minmax(0, 1fr)
    300px;
}

/* =========================================================
   INFORMATION PAGE: BACK TO HOME BUTTON
   ========================================================= */

.back-home-button {
  display: inline-flex;

  align-items: center;

  margin: 0 0 18px;

  color: #96345f;

  font-family: "Merriweather", Arial, sans-serif;

  font-size: 14px;
  font-weight: 700;

  text-decoration: none;

  transition: opacity 0.2s ease;
}

.back-home-button:hover {
  opacity: 0.75;

  text-decoration: underline;
}

.back-home-button.bottom-back-home {
  margin: 18px 0 0;
}


/* =========================================================
   INFORMATION PAGE: AD SLOTS
   ========================================================= */

.right-ad-slot {
  min-width: 0;

  align-self: start;
}

.bottom-ad-slot {
  width: min(970px, calc(100% - 48px));

  margin: 0 auto 40px;
}

.bottom-ad-slot .ad-placeholder {
  min-height: 120px;
}

.ad-placeholder {
  width: 100%;

  min-height: 600px;

  display: flex;

  align-items: center;
  justify-content: center;

  padding: 20px;

  border: 1px dashed #d9b9c9;

  border-radius: 12px;

  background: #faf8f9;

  color: #b38fa1;

  text-align: center;

  font-size: 12px;
}


/* =========================================================
   LEFT SIDEBAR
   ========================================================= */

.left-sidebar {
  min-width: 0;
}

.left-sidebar h2 {
  margin: 0 0 16px 4px;

  color: #33252c;

  font-family: Georgia, "Times New Roman", serif;

  font-size: 23px;
  line-height: 1.2;
}

.category-menu {
  padding: 14px;

  background: white;

  border-radius: 15px;

  box-shadow:
    0 8px 26px rgba(72, 24, 48, 0.07);
}

.category-button {
  width: 100%;

  display: block;

  margin: 0 0 9px;

  padding: 11px 13px;

  border: 0;
  border-radius: 10px;

  background: #f2e9ee;

  color: #49353f;

  text-align: left;

  font-size: 13px;

  cursor: pointer;

  transition:
    background 0.2s ease,
    transform 0.2s ease;
}

.category-button:last-child {
  margin-bottom: 0;
}

.category-button:hover {
  background: #eadbe4;
  transform: translateX(2px);
}

.category-button.active {
  background: #a33464;
  color: white;
  font-weight: 700;
}


/* =========================================================
   CENTER CONTENT
   ========================================================= */

.main-content {
  min-width: 0;
}

.status-message {
  margin: 0 0 14px;

  padding: 9px 13px;

  border-radius: 9px;

  background: #f2e9ee;

  color: #705c66;

  font-size: 13px;
}

.status-message.error {
  background: #fce9ed;
  color: #a52f3d;
}


/* =========================================================
   STORY READER
   ========================================================= */

.story-reader {
  min-width: 0;

  padding: 32px 34px 30px;

  background: white;

  border-radius: 15px;

  box-shadow:
    0 8px 28px rgba(72, 24, 48, 0.07);
}


/* Story header */

.story-header {
  margin: 0;
}

.story-category {
  display: inline-block;

  margin: 0 0 9px;

  color: #a33464;

  font-size: 12px;
  font-weight: 700;

  letter-spacing: 0.08em;

  text-transform: uppercase;
}

#storyTitle {
  margin: 0 0 12px;

  color: #4b1730;

  font-family: Georgia, "Times New Roman", serif;

  font-size: clamp(36px, 4vw, 52px);

  line-height: 1.1;
}

.story-excerpt {
  margin: 0;

  color: #705c66;

  font-size: 16px;

  line-height: 1.65;
}


/* Story text */

.story-content {
  margin-top: 28px;
}

.story-content p {
  margin: 0 0 23px;

  color: #2f1826;

  font-family: "Merriweather", Georgia, serif;

  font-size: 19px;

  line-height: 1.9;

  text-align: justify;

  text-justify: inter-word;
}

.story-content p:last-child {
  margin-bottom: 0;
}


/* =========================================================
   PAGINATION
   ========================================================= */

.pagination {
  width: 100%;

  display: flex;

  align-items: center;
  justify-content: center;

  gap: 10px;

  flex-wrap: wrap;

  margin-top: 32px;

  padding-top: 22px;

  border-top: 1px solid #eadce4;
}

.pagination .page-button {
  width: 40px;
  height: 40px;

  flex: 0 0 40px;

  padding: 0;

  border: 1px solid #cfa9ba;

  border-radius: 50%;

  background: white;

  color: #96345f;

  font-size: 13px;
  font-weight: 700;

  cursor: pointer;

  transition:
    background 0.2s ease,
    color 0.2s ease,
    transform 0.2s ease;
}

.pagination .page-button:hover {
  background: #f8edf3;

  transform: translateY(-1px);
}

.pagination .page-button.active {
  background: #96345f;

  color: white;

  border-color: #96345f;
}


/* =========================================================
   NEXT / FINISH BUTTON
   ========================================================= */

.reader-controls {
  display: flex;

  align-items: center;
  justify-content: center;

  margin-top: 18px;
}

.next-button {
  display: inline-flex;

  align-items: center;
  justify-content: center;

  min-width: 105px;

  padding: 10px 22px;

  border: 0;

  border-radius: 24px;

  background: #96345f;

  color: white;

  font-size: 14px;
  font-weight: 700;

  cursor: pointer;

  box-shadow:
    0 5px 14px rgba(150, 52, 95, 0.16);

  transition:
    background 0.2s ease,
    transform 0.2s ease;
}

.next-button:hover {
  background: #7f284f;

  transform: translateY(-1px);
}


/* =========================================================
   RIGHT SIDEBAR ADVERTISEMENT
   ========================================================= */

.right-sidebar {
  min-width: 0;

  align-self: start;
}

.sidebar-ad {
  width: 100%;
}

.sidebar-ad .ad-label {
  margin: 0 0 7px;

  color: #49353f;

  font-size: 14px;
}

.sidebar-ad-slot {
  width: 100%;

  min-height: 600px;

  display: flex;

  align-items: center;
  justify-content: center;

  padding: 20px;

  border: 1px dashed #d9b9c9;

  border-radius: 12px;

  background: #faf8f9;

  color: #b38fa1;

  text-align: center;

  font-size: 12px;
}


/* =========================================================
   BOTTOM / HORIZONTAL ADVERTISEMENT
   ========================================================= */

.footer-ad-area {
  width: 100%;

  margin: 26px 0 25px;
}

.footer-ad-area .ad-label {
  margin: 0 0 7px;

  color: #49353f;

  font-size: 14px;
}

.footer-ad-slot {
  width: 100%;

  min-height: 120px;

  display: flex;

  align-items: center;
  justify-content: center;

  padding: 20px;

  border: 1px dashed #d9b9c9;

  border-radius: 12px;

  background: #faf8f9;

  color: #b38fa1;

  text-align: center;

  font-size: 12px;
}

/* =========================================================
   FACEBOOK-STYLE COMMENTS
   ========================================================= */

#commentsHost {
  width: 100%;
}

.story-comments {
  width: auto;
  max-width: none;

  margin: 24px -34px -30px;

  padding: 24px 34px 30px;

  background: #faf7f8;

  border-radius: 0 0 15px 15px;

  color: #1c1e21;
}

/* =========================================================
   COMMENTS HEADER
   ========================================================= */

.comments-header {
  margin: 0 0 18px;

  text-align: left;
}

.comments-header h2 {
  margin: 0 0 5px;

  color: #1c1e21;

  font-family: "Merriweather", Arial, sans-serif;

  font-size: 24px;
  font-weight: 700;

  line-height: 1.2;
}

.comments-header p {
  margin: 0;

  color: #65676b;

  font-size: 13px;

  line-height: 1.35;
}


/* =========================================================
   READER COMMENTS TITLE
   ========================================================= */

.comments-list-container {
  margin: 0;
  padding: 0;

  background: transparent;

  border: 0;
}

.comments-list-container h3 {
  margin: 0 0 10px;

  color: #1c1e21;

  font-family: "Merriweather", Arial, sans-serif;

  font-size: 16px;
  font-weight: 700;

  line-height: 1.25;
}


/* =========================================================
   COMMENTS LIST
   ========================================================= */

#commentsList {
  width: 100%;

  margin: 0;
  padding: 0;
}


/* =========================================================
   INDIVIDUAL COMMENT
   ========================================================= */

.comment-item {
  width: 100%;

  margin: 0;
  padding: 4px 0 6px;

  background: transparent;

  border: 0;

  border-radius: 0;

  box-shadow: none;
}


/* No comment boxes */

.comment-item:hover {
  background: transparent;
}


/* =========================================================
   COMMENT HEADER
   ========================================================= */

.comment-item-header {
  display: flex;

  align-items: center;

  justify-content: flex-start;

  gap: 7px;

  margin: 0 0 1px;
}
.comment-avatar {
  flex: 0 0 auto;

  width: 32px;
  height: 32px;

  display: flex;

  align-items: center;
  justify-content: center;

  border-radius: 50%;

  color: white;

  font-family: Arial, Helvetica, sans-serif;

  font-size: 14px;
  font-weight: 700;

  text-transform: uppercase;
}

.comment-item-text {
  display: flex;

  flex-direction: row;

  align-items: baseline;

  gap: 6px;
}

.comment-item h4 {
  margin: 0;

  color: #050505;

  font-family: "Merriweather", Arial, sans-serif;

  font-size: 13px;
  font-weight: 700;

  line-height: 1.25;
}

.comment-date {
  color: #65676b;

  font-family: Arial, Helvetica, sans-serif;

  font-size: 11px;

  line-height: 1.25;

  white-space: nowrap;
}

.comment-date::before {
  content: "\00b7";

  margin-right: 6px;
}


/* =========================================================
   REPLIED TO RELATIONSHIP
   ========================================================= */

.comment-replying-to {
  display: flex;

  align-items: center;

  flex-wrap: wrap;

  gap: 4px;

  margin: 0 0 2px;

  color: #65676b;

  font-family: "Merriweather", Arial, sans-serif;

  font-size: 11px;

  line-height: 1.2;
}

.comment-replying-to strong {
  color: #385898;

  font-size: 11px;
  font-weight: 700;
}


/* =========================================================
   COMMENT TEXT
   ========================================================= */

.comment-item .comment-text {
  display: block;

  margin: 2px 0 4px 40px;

  color: #050505;

  font-family: "Merriweather", Arial, sans-serif;

  font-size: 13px;

  line-height: 0.5;

  white-space: pre-wrap;

  word-break: break-word;
}


/* =========================================================
   COMMENT ACTIONS
   ========================================================= */

.comment-actions {
  display: flex;

  align-items: center;

  gap: 14px;

  margin: 0 0 1px 40px;
}

.comment-action-button {
  display: inline-flex;

  align-items: center;
  justify-content: center;

  gap: 4px;

  min-height: 24px;

  margin: 0;
  padding: 2px 6px;

  border: 0;

  border-radius: 4px;

  background: transparent;

  color: #65676b;

  font-family: "Merriweather", Arial, sans-serif;

  font-size: 11px;
  font-weight: 700;

  line-height: 1;

  cursor: pointer;

  transition:
    background 0.15s ease,
    color 0.15s ease;
}

.comment-action-button:hover {
  background: #f0f2f5;

  color: #050505;
}


/* Icons */

.comment-action-icon {
  display: inline-flex;

  align-items: center;
  justify-content: center;

  font-size: 14px;

  line-height: 1;
}


/* Liked state */

.comment-action-button.liked {
  color: #1877f2;
}

.comment-action-button.liked:hover {
  color: #1877f2;
}


/* Like count */

.comment-like-count {
  color: #65676b;

  font-size: 10px;

  font-weight: 400;
}


/* =========================================================
   REPLIES
   ========================================================= */

.comment-replies {
  width: auto;

  margin: 1px 0 0;

  padding: 0 0 0 28px;

  border: 0;

  background: transparent;
}


/*
   IMPORTANT:
   There is deliberately NO vertical border here.
*/

.comment-replies .comment-item {
  margin: 0;

  padding: 3px 0 5px;

  background: transparent;

  border: 0;

  box-shadow: none;
}
.comment-replies .comment-avatar {
  width: 26px;
  height: 26px;

  font-size: 12px;
}
.comment-replies .comment-text {
  margin-left: 34px;
}

.comment-replies .comment-actions {
  margin-left: 34px;
}

/* Deeper replies */

.comment-replies .comment-replies {
  margin: 0;

  padding-left: 28px;

  border: 0;
}


/* =========================================================
   REPLY FORM
   ========================================================= */

.comment-reply-form {
  width: 100%;

  margin: 5px 0 6px;
}

.reply-form {
  width: 100%;

  margin: 0;

  padding: 8px 0;

  background: transparent;

  border: 0;

  border-radius: 0;

  box-shadow: none;
}


/* Replying to */

.replying-to {
  display: flex;

  align-items: center;

  gap: 5px;

  margin: 0 0 5px;

  color: #65676b;

  font-size: 11px;

  line-height: 1.2;
}

.replying-to strong {
  color: #385898;

  font-size: 11px;
}


/* Reply form labels */

.reply-form label {
  display: block;

  margin: 4px 0 2px;

  color: #65676b;

  font-size: 11px;

  font-weight: 700;
}


/* Reply inputs */

.reply-form input,
.reply-form textarea {
  width: 100%;

  padding: 7px 9px;

  border: 1px solid #ccd0d5;

  border-radius: 16px;

  background: #f0f2f5;

  color: #050505;

  font-family: "Merriweather", Arial, sans-serif;

  font-size: 12px;

  outline: none;
}

.reply-form textarea {
  min-height: 55px;

  border-radius: 12px;

  resize: vertical;
}

.reply-form input:focus,
.reply-form textarea:focus {
  border-color: #8b9dc3;

  background: #fff;

  box-shadow: none;
}


/* Reply buttons */

.reply-form-buttons {
  display: flex;

  align-items: center;

  gap: 6px;

  margin-top: 6px;
}

.reply-submit-button,
.reply-cancel-button {
  padding: 6px 12px;

  border: 0;

  border-radius: 14px;

  font-family: "Merriweather", Arial, sans-serif;

  font-size: 11px;

  font-weight: 700;

  cursor: pointer;
}

.reply-submit-button {
  background: #1877f2;

  color: white;
}

.reply-submit-button:hover {
  background: #166fe5;
}

.reply-cancel-button {
  background: #e4e6eb;

  color: #050505;
}

.reply-cancel-button:hover {
  background: #d8dadf;
}

.reply-form-message {
  margin: 4px 0 0;

  color: #65676b;

  font-size: 11px;
}


/* =========================================================
   COMMENTS STATUS
   ========================================================= */

.comments-loading,
.no-comments,
.comments-error {
  margin: 4px 0;

  padding: 6px 0;

  color: #65676b;

  font-family: "Merriweather", Arial, sans-serif;

  font-size: 12px;

  line-height: 1.35;

  text-align: left;
}


/* =========================================================
   MAIN COMMENT FORM
   ========================================================= */

.comment-form-container {
  margin-top: 16px;

  padding: 12px 0 4px;

  background: transparent;

  border: 0;

  border-radius: 0;

  box-shadow: none;
}

.comment-form-container h3 {
  margin: 0 0 8px;

  color: #1c1e21;

  font-family: "Merriweather", Arial, sans-serif;

  font-size: 16px;

  font-weight: 700;

  line-height: 1.25;
}


/* Form */

.comment-form {
  display: grid;

  grid-template-columns: 1fr;

  gap: 5px;
}

.comment-form label {
  margin-top: 3px;

  color: #65676b;

  font-size: 11px;

  font-weight: 700;
}

.comment-form input,
.comment-form textarea {
  width: 100%;

  padding: 9px 12px;

  border: 1px solid #ccd0d5;

  border-radius: 18px;

  background: #f0f2f5;

  color: #050505;

  font-family: "Merriweather", Arial, sans-serif;

  font-size: 13px;

  outline: none;
}

.comment-form textarea {
  min-height: 60px;

  border-radius: 13px;

  resize: vertical;
}

.comment-form input:focus,
.comment-form textarea:focus {
  border-color: #8b9dc3;

  background: white;

  box-shadow: none;
}


/* Post comment button */

.comment-submit-button {
  justify-self: start;

  margin-top: 3px;

  padding: 7px 15px;

  border: 0;

  border-radius: 18px;

  background: #1877f2;

  color: white;

  font-family: "Merriweather", Arial, sans-serif;

  font-size: 12px;

  font-weight: 700;

  cursor: pointer;
}

.comment-submit-button:hover {
  background: #166fe5;
}

.comment-submit-button:disabled {
  opacity: 0.6;

  cursor: not-allowed;
}

.comment-form-message {
  margin: 3px 0 0;

  color: #65676b;

  font-size: 11px;

  line-height: 1.3;
}


/* =========================================================
   MOBILE COMMENTS
   ========================================================= */

@media (max-width: 800px) {

  .story-comments {
    padding-top: 5px;
  }

  .comment-item {
    padding-top: 3px;
    padding-bottom: 5px;
  }

  .comment-item .comment-text {
    font-size: 13px;

    line-height: 1.35;
  }

  .comment-replies {
    padding-left: 20px;
  }

  .comment-replies .comment-replies {
    padding-left: 20px;
  }

  .comment-action-button {
    padding-left: 5px;
    padding-right: 5px;
  }

}

/* =========================================================
   INLINE COMMENT EDIT
   ========================================================= */

.comment-edit-form {
  margin: 4px 0 6px;
}

.comment-edit-textarea {
  width: 100%;
  min-height: 60px;
  padding: 8px 10px;
  border: 1px solid #ccd0d5;
  border-radius: 12px;
  background: #f0f2f5;
  color: #050505;
  font-family: "Merriweather", Arial, sans-serif;
  font-size: 13px;
  line-height: 1.35;
  resize: vertical;
  outline: none;
}

.comment-edit-textarea:focus {
  border-color: #8b9dc3;
  background: #fff;
}

.comment-edit-buttons {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
}

.comment-edit-save,
.comment-edit-cancel {
  padding: 6px 14px;
  border: 0;
  border-radius: 14px;
  font-family: "Merriweather", Arial, sans-serif;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.comment-edit-save {
  background: #1877f2;
  color: white;
}

.comment-edit-save:hover {
  background: #166fe5;
}

.comment-edit-save:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.comment-edit-cancel {
  background: #e4e6eb;
  color: #050505;
}

.comment-edit-cancel:hover {
  background: #d8dadf;
}


/* =========================================================
   INLINE DELETE CONFIRMATION
   ========================================================= */

.comment-delete-confirm {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 4px;
  padding: 8px 10px;
  background: #fce9ed;
  border-radius: 10px;
  color: #a52f3d;
  font-family: "Merriweather", Arial, sans-serif;
  font-size: 12px;
}

.comment-delete-confirm-buttons {
  display: flex;
  gap: 6px;
  margin-left: auto;
}

.comment-delete-confirm-yes,
.comment-delete-confirm-cancel {
  padding: 5px 12px;
  border: 0;
  border-radius: 14px;
  font-family: "Merriweather", Arial, sans-serif;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.comment-delete-confirm-yes {
  background: #d93025;
  color: white;
}

.comment-delete-confirm-yes:hover {
  background: #b8271d;
}

.comment-delete-confirm-yes:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.comment-delete-confirm-cancel {
  background: #e4e6eb;
  color: #050505;
}

.comment-delete-confirm-cancel:hover {
  background: #d8dadf;
}

/* =========================================================
   INFORMATION SECTIONS
   ========================================================= */

.information-section {
  scroll-margin-top: 95px;

  padding: 42px 24px;

  background: #f8f5f7;
}

.information-container {
  width: min(1180px, 100%);

  margin: 0 auto;

  padding: 34px 38px;

  background: white;

  border-radius: 18px;

  box-shadow:
    0 8px 28px rgba(72, 24, 48, 0.055);
}

.information-container h2 {
  margin: 0 0 20px;

  color: #4b1730;

  font-family: Georgia, "Times New Roman", serif;

  font-size: 31px;
}

.information-container p {
  margin: 0 0 16px;

  color: #49353f;

  font-size: 16px;

  line-height: 1.75;
}


/* =========================================================
   CONTACT AND STORY SUBMISSION FORMS
   ========================================================= */

.contact-form,
.story-submission-form {
  display: grid;

  grid-template-columns: 1fr 1fr;

  gap: 10px 18px;

  margin-top: 22px;
}

.contact-form label,
.story-submission-form label {
  color: #49353f;

  font-size: 13px;

  font-weight: 700;
}

.contact-form input,
.contact-form textarea,
.story-submission-form input,
.story-submission-form textarea,
.story-submission-form select {
  width: 100%;

  padding: 11px 13px;

  border: 1px solid #ddcbd5;

  border-radius: 8px;

  background: #faf6f8;

  color: #33252c;

  font-size: 14px;

  outline: none;

  transition:
    border-color 0.2s ease,
    background 0.2s ease,
    box-shadow 0.2s ease;
}

.contact-form input:focus,
.contact-form textarea:focus,
.story-submission-form input:focus,
.story-submission-form textarea:focus,
.story-submission-form select:focus {
  border-color: #96345f;

  background: white;

  box-shadow: 0 0 0 3px rgba(150, 52, 95, 0.12);
}

.story-submission-form select {
  appearance: none;

  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1L7 7L13 1' stroke='%2396345f' stroke-width='2' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");

  background-repeat: no-repeat;

  background-position: right 14px center;

  background-size: 12px;

  padding-right: 38px;

  cursor: pointer;
}

.story-submission-form select:focus {
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1L7 7L13 1' stroke='%2396345f' stroke-width='2' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");

  background-repeat: no-repeat;

  background-position: right 14px center;

  background-size: 12px;
}

.contact-form textarea,
.story-submission-form textarea,
.contact-form button,
.story-submission-form button {
  grid-column: 1 / -1;
}

.contact-form textarea,
.story-submission-form textarea {
  min-height: 120px;

  resize: vertical;
}

.contact-form button,
.story-submission-form button {
  justify-self: start;

  padding: 10px 20px;

  border: 0;

  border-radius: 22px;

  background: #96345f;

  color: white;

  font-size: 13px;

  font-weight: 700;

  cursor: pointer;
}

.contact-form button:hover,
.story-submission-form button:hover {
  background: #7f284f;
}


/* =========================================================
   FOOTER
   ========================================================= */

.site-footer {
  margin-top: 15px;

  padding: 42px 24px 25px;

  background: #3e142a;

  color: white;
}

.footer-content {
  width: min(1100px, 100%);

  margin: 0 auto;

  display: grid;

  grid-template-columns: 1.4fr 1fr 1fr;

  gap: 50px;

  text-align: center;
}

.footer-brand h2 {
  margin: 0 0 12px;

  font-family: Georgia, "Times New Roman", serif;

  font-size: 25px;
}

.footer-brand p,
.site-footer a {
  color: #eadde4;
}

.footer-brand p {
  margin: 0;

  font-size: 14px;

  line-height: 1.7;
}

.footer-links h3 {
  margin: 0 0 14px;

  font-size: 17px;
}

.footer-links a {
  display: block;

  margin-bottom: 8px;

  text-decoration: none;

  font-size: 13px;
}

.footer-links a:hover {
  color: white;

  text-decoration: underline;
}

.footer-bottom {
  width: min(1100px, 100%);

  margin: 28px auto 0;

  padding-top: 17px;

  border-top: 1px solid rgba(255, 255, 255, 0.14);

  color: #d8c8d0;

  font-size: 12px;

  text-align: center;
}

.footer-bottom p {
  margin: 0;
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 1100px) {

  .header-inner {
    gap: 18px;

    padding: 12px 18px;
  }

  .brand a {
    font-size: 23px;
  }

  .main-navigation {
    gap: 17px;
  }

  .main-navigation a {
    font-size: 13px;
  }

  .story-nav {
    max-width: 210px;
  }

  .app-layout {
    width: calc(100% - 36px);

    grid-template-columns:
      200px
      minmax(0, 1fr);

    gap: 20px;
  }

      .right-sidebar {
    grid-column: 1 / -1;
  }

  .sidebar-ad-slot {
    min-height: 250px;
  }

  .sidebar-ad {
    max-width: 336px;

    margin: 0 auto;
  }
  .right-ad-slot {
    grid-column: 1 / -1;
  }

  .right-ad-slot .ad-placeholder {
    min-height: 250px;

    max-width: 336px;

    margin: 0 auto;
  }
}

/* Portrait tablets: the footer ad is enough */
@media (min-width: 600px) and (max-width: 1100px) {

  .right-sidebar,
  .right-ad-slot {
    display: none;
  }

}

/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 800px) {

  .topbar {
    position: relative;
  }

  .header-inner {
    display: flex;

    flex-direction: column;

    align-items: stretch;

    gap: 13px;

    padding: 15px 15px 17px;
  }

  .brand a {
    text-align: center;

    font-size: 25px;
  }

  .main-navigation {
    display: flex;

    flex-wrap: wrap;

    justify-content: center;

    gap: 9px 16px;
  }

  .main-navigation a {
    font-size: 13px;
  }

  .story-nav {
    justify-content: center;

    max-width: 100%;
  }

  .story-nav button,
  .story-nav-button {
    max-width: 90%;
  }


  /* Main layout */

  .app-layout {
    width: calc(100% - 24px);

    grid-template-columns: 1fr;

    gap: 18px;

    padding: 18px 0 35px;
  }

  .left-sidebar {
    order: 1;
  }

  .main-content {
    order: 2;
  }

  .right-sidebar {
    order: 3;
  }
  .right-ad-slot {
    order: 3;
  }

  /* Categories */

  .left-sidebar h2 {
    margin-left: 0;
  }

  .category-menu {
    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 8px;
  }

  .category-button {
    margin: 0;
  }


  /* Story reader */

  .story-reader {
    padding: 26px 19px 25px;

    border-radius: 15px;
  }

  #storyTitle {
    font-size: 34px;
  }

  .story-content p {
    font-size: 18px;

    line-height: 1.78;
  }


  /* Pagination */

  .pagination {
    gap: 8px;
  }

  .pagination .page-button {
    width: 38px;

    height: 38px;

    flex-basis: 38px;
  }


  /* Bottom advertisement */

  .footer-ad-slot {
    min-height: 100px;
  }


    .story-comments {
    max-width: none;

    margin: 24px -19px -25px;

    padding: 20px 19px 25px;
  }

  .comment-item-header {
    flex-wrap: wrap;

    gap: 4px 8px;
  }

  .comment-date {
    font-size: 10px;
  }

  .comment-replies {
    padding-left: 10px;
  }

  .comment-replies .comment-replies {
    margin-left: -10px;

    padding-left: 10px;
  }


  /* Information */

  .information-section {
    padding: 30px 12px;
  }

  .information-container {
    padding: 25px 18px;
  }

  .contact-form,
  .story-submission-form {
    grid-template-columns: 1fr;
  }

  .contact-form textarea,
  .contact-form button,
  .story-submission-form textarea,
  .story-submission-form button {
    grid-column: auto;
  }


  /* Footer */

  .footer-content {
    grid-template-columns: 1fr;

    gap: 28px;
  }
}


/* =========================================================
   SMALL PHONES
   ========================================================= */

@media (max-width: 520px) {

  .brand a {
    font-size: 23px;
  }

  .main-navigation {
    gap: 8px 12px;
  }

  .main-navigation a {
    font-size: 12px;
  }

  .category-menu {
    grid-template-columns: 1fr;
  }

  #storyTitle {
    font-size: 30px;
  }

  .story-content p {
    font-size: 17px;
  }

  .comment-item {
    padding: 10px 12px;
  }

  .comment-replies {
    padding-left: 8px;
  }

  .comment-replies .comment-replies {
    margin-left: -8px;

    padding-left: 8px;
  }

  .information-container h2 {
    font-size: 27px;
  }
}

/* =========================================================
   COMMENT THREE-DOT MENU
   ========================================================= */

.comment-more-wrapper {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.comment-more-button {
  width: 26px;
  height: 26px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #65676b;
  font-size: 20px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  border-radius: 50%;
}

.comment-more-button:hover {
  background: #f0f2f5;
}

.comment-more-menu {
  position: absolute;
  top: 30px;
  right: 0;
  min-width: 120px;
  background: #ffffff;
  border: 1px solid #dddfe2;
  border-radius: 8px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
  padding: 4px 0;
  z-index: 1000;
}

.comment-more-menu {
  display: none;
  position: absolute;
  top: 30px;
  right: 0;
  min-width: 120px;
  background: #ffffff;
  border: 1px solid #dddfe2;
  border-radius: 8px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
  padding: 4px 0;
  z-index: 1000;
}

.comment-more-menu.show {
  display: block;
}

.comment-more-menu button {
  display: block;
  width: 100%;
  padding: 8px 12px;
  border: 0;
  background: transparent;
  color: #050505;
  text-align: left;
  font-family: "Merriweather", Arial, sans-serif;
  font-size: 13px;
  cursor: pointer;
}

.comment-more-menu button:hover {
  background: #f0f2f5;
}

.comment-more-menu .comment-delete-option {
  color: #d93025;
}

/* =========================================================
   STORY LIKE BUTTON
   ========================================================= */

.story-like-bar {
  display: flex;
  align-items: center;
  gap: 12px;

  margin: 0 0 18px;
  padding-bottom: 16px;

  border-bottom: 1px solid #eadce4;
}

.story-like-button {
  padding: 9px 18px;

  border: 1px solid #cfa9ba;
  border-radius: 22px;

  background: white;
  color: #96345f;

  font-family: "Merriweather", Arial, sans-serif;
  font-size: 13px;
  font-weight: 700;

  cursor: pointer;
}

.story-like-button:hover {
  background: #f8edf3;
}

.story-like-button.liked {
  background: #96345f;
  border-color: #96345f;
  color: white;
}

.story-like-button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.story-like-count {
  color: #65676b;
  font-size: 13px;
}
/* =========================================================
   STORY ACTION ROW (LIKE / COMMENT / SHARE)
   ========================================================= */

.story-actions {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 28px;

  margin-top: 22px;
  padding-top: 14px;

  border-top: 1px solid #eadce4;
}

.story-action {
  display: inline-flex;
  align-items: center;
  gap: 8px;

  margin: 0;
  padding: 6px 4px;

  border: 0;
  border-radius: 6px;

  background: transparent;
  color: #65676b;

  font-family: "Merriweather", Arial, sans-serif;
  font-size: 14px;
  font-weight: 700;

  cursor: pointer;

  transition: color 0.15s ease;
}

.story-action:hover {
  color: #96345f;
}

.story-action:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.story-action-svg {
  width: 22px;
  height: 22px;

  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.story-action.liked {
  color: #96345f;
}

.story-action.liked .story-action-svg {
  fill: currentColor;
}

.story-action-count {
  min-width: 10px;
}

/* =========================================================
   COMMENT LIKE ICON (THUMBS-UP)
   ========================================================= */

.comment-action-svg {
  width: 15px;
  height: 15px;

  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.comment-action-button.liked .comment-action-svg {
  fill: currentColor;
}

/* =========================================================
   COMMENT MENU DOTS (HORIZONTAL)
   ========================================================= */

.comment-more-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.comment-more-dots {
  display: inline-block;
  transform: rotate(90deg);
}

/* =========================================================
   COMMENTS SHOW / HIDE
   ========================================================= */

.story-action.active {
  color: #96345f;
}

.story-action.active .story-action-svg {
  fill: rgba(150, 52, 95, 0.12);
}

#commentsListContainer {
  margin-top: 22px;

  padding-top: 18px;

  border-top: 1px solid #eadce4;
}

/* =========================================================
   TIGHTER SPACE ABOVE THE COMMENT FORM
   ========================================================= */

.story-comments {
  margin-top: 10px;

  padding-top: 10px;
}

.comment-form-container {
  margin-top: 0;

  padding-top: 0;
}
/* =========================================================
   TIGHTER SPACE BETWEEN THE FORM AND THE COMMENT LIST
   ========================================================= */

#commentsListContainer {
  margin-top: 8px;

  padding-top: 10px;
}

.comment-form-message:empty {
  display: none;
}