:root {
  --primary: #ff6b6b;
  --secondary: #4ecdc4;
  --accent: #ffd166;
  --purple: #a06cd5;
  --blue: #6a9bff;
  --green: #7ed957;
  --red: #ff7e79;
  --dark: #2a2d34;
  --light: #f7f9fc;
  --box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s ease;
  --border-radius: 20px;
}


body {
  font-family: "Vazirmatn", sans-serif;
  background: linear-gradient(to bottom, #ffecd2, #fcb69f);
  margin: 0;
  padding: 0;
  direction: rtl;
}

.story-container {
  max-width: 1000px;
  margin: auto;
  padding: 20px;
}

.video-box {
  text-align: center;
}

.story-swiper {
  padding: 20px 0 50px;
}

.story-card {
  background-color: white;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--box-shadow);
  transition: var(--transition);
  height: 100%;
  border: 5px solid transparent;
}

.story-card:hover {
  transform: translateY(-10px) scale(1.03);
  border-color: var(--accent);
}

.story-image-container {
  height: 200px;
  overflow: hidden;
}

.story-image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.story-card:hover .story-image-container img {
  transform: scale(1.1);
}

.story-title {
  padding: 15px;
  font-size: 1.2rem;
  color: var(--dark);
  text-align: center;
  background-color: white;
  transition: var(--transition);
}

.story-card:hover .story-title {
  color: var(--primary);
}

/* Swiper Navigation Customization */
.swiper-button-next,
.swiper-button-prev {
  color: var(--primary) !important;
  background-color: white;
  width: 40px !important;
  height: 40px !important;
  border-radius: 50%;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.swiper-button-next:after,
.swiper-button-prev:after {
  font-size: 18px !important;
}

.swiper-pagination-bullet {
  background-color: var(--primary) !important;
  width: 10px;
  height: 10px;
}

.swiper-pagination-bullet-active {
  background-color: var(--accent) !important;
}


.video-box video {
  width: 100%;
  border-radius: 20px;
  border: 5px dashed #ffa07a;
  background: #fff;
}

.icons {
  margin: 15px 0;
  text-align: center;
}

.icons i {
  font-size: 24px;
  color: #ff6f61;
  margin: 10px;
  cursor: pointer;
  transition: 0.3s;
}

.icons i:hover {
  transform: scale(1.2);
  color: #d9534f;
}

.story-info h2 {
  color: #e85a4f;
}

.story-info p {
  color: #555;
}

.rating {
  text-align: center;
  margin: 10px 0;
}

.rating .fa {
  font-size: 22px;
  color: #ffd700;
}

.pdf-container {
  margin-top: 20px;
  background: #fffaf0;
  padding: 15px;
  border-radius: 15px;
}

.characters {
  text-align: center;
  margin: 30px 0;
}

.character-list img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  margin: 10px;
  border: 3px solid #f9c74f;
  background: #fff;
}

.meta-info, .related-stories, .comments {
  margin: 20px 0;
  background: #fef3c7;
  padding: 15px;
  border-radius: 12px;
}

.related-stories ul {
  list-style: none;
  padding: 0;
}

.pdf-section {
  margin-top: 30px;
}

.comments-section {
  margin-top: 40px;
}

.comments-section h3 {
  color: #ff6f91;
  margin-bottom: 10px;
}

.comments p {
  background: #fff8dc;
  padding: 10px;
  border-radius: 10px;
  margin-bottom: 10px;
}

textarea {
  width: 100%;
  border: 1px solid #ccc;
  padding: 10px;
  margin-top: 5px;
  border-radius: 10px;
  resize: vertical;
}

commentbtn {
  margin-top: 10px;
  padding: 8px 20px;
  background: #ff6f91;
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
}

button:hover {
  background: #e65c7a;
}
.pdf-section h3 {
  color: #ff6f91;
  margin-bottom: 10px;
}

.pdf-box {
  border: 2px dashed #bbb;
  border-radius: 12px;
  padding: 10px;
  background: #fff;
}

.pdf-box iframe {
  width: 100%;
  height: 400px;
  border: none;
}

.related-stories li a {
  text-decoration: none;
  color: #0077b6;
}

.comments textarea {
  width: 100%;
  height: 80px;
  margin-top: 10px;
  border-radius: 10px;
  padding: 10px;
}

.comments button {
  background: #ff7f50;
  border: none;
  padding: 10px 20px;
  margin-top: 5px;
  color: white;
  border-radius: 8px;
  cursor: pointer;
}

.comments button:hover {
  background: #e76f51;
}

modal-open {
  overflow: hidden;
}

.modal-open .modal {
  overflow-x: hidden;
  overflow-y: auto;
}

.modal {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1050;
  display: none;
  width: 100%;
  height: 100%;
  overflow: hidden;
  outline: 0;
}

.modal-dialog {
  position: relative;
  width: auto;
  margin: 0.5rem;
  pointer-events: none;
}

.modal.fade .modal-dialog {
  transition: -webkit-transform 0.3s ease-out;
  transition: transform 0.3s ease-out;
  transition: transform 0.3s ease-out, -webkit-transform 0.3s ease-out;
  -webkit-transform: translate(0, -50px);
  transform: translate(0, -50px);
}

@media (prefers-reduced-motion: reduce) {
  .modal.fade .modal-dialog {
    transition: none;
  }
}

.modal.show .modal-dialog {
  -webkit-transform: none;
  transform: none;
}

.modal.modal-static .modal-dialog {
  -webkit-transform: scale(1.02);
  transform: scale(1.02);
}

.modal-dialog-scrollable {
  display: -ms-flexbox;
  display: flex;
  max-height: calc(100% - 1rem);
}

.modal-dialog-scrollable .modal-content {
  max-height: calc(100vh - 1rem);
  overflow: hidden;
}

.modal-dialog-scrollable .modal-header,
.modal-dialog-scrollable .modal-footer {
  -ms-flex-negative: 0;
  flex-shrink: 0;
}

.modal-dialog-scrollable .modal-body {
  overflow-y: auto;
}

.modal-dialog-centered {
  display: -ms-flexbox;
  display: flex;
  -ms-flex-align: center;
  align-items: center;
  min-height: calc(100% - 1rem);
}

.modal-dialog-centered::before {
  display: block;
  height: calc(100vh - 1rem);
  height: -webkit-min-content;
  height: -moz-min-content;
  height: min-content;
  content: "";
}

.modal-dialog-centered.modal-dialog-scrollable {
  -ms-flex-direction: column;
  flex-direction: column;
  -ms-flex-pack: center;
  justify-content: center;
  height: 100%;
}

.modal-dialog-centered.modal-dialog-scrollable .modal-content {
  max-height: none;
}

.modal-dialog-centered.modal-dialog-scrollable::before {
  content: none;
}

.modal-content {
  position: relative;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-direction: column;
  flex-direction: column;
  width: 100%;
  pointer-events: auto;
  background-color: #fff;
  background-clip: padding-box;
  border: 1px solid rgba(0, 0, 0, 0.2);
  border-radius: 0.3rem;
  box-shadow: 0 0.25rem 0.5rem rgba(0, 0, 0, 0.5);
  outline: 0;
}

.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1040;
  width: 100vw;
  height: 100vh;
  background-color: #000;
}

.modal-backdrop.fade {
  opacity: 0;
}

.modal-backdrop.show {
  opacity: 0.5;
}

.modal-header {
  display: -ms-flexbox;
  display: flex;
  -ms-flex-align: start;
  align-items: flex-start;
  -ms-flex-pack: justify;
  justify-content: space-between;
  padding: 1rem;
  border-bottom: 1px solid #e9ecef;
  border-top-left-radius: calc(0.3rem - 1px);
  border-top-right-radius: calc(0.3rem - 1px);
}

.modal-header .close, .modal-header .mailbox-attachment-close {
  padding: 1rem;
  margin: -1rem -1rem -1rem auto;
}

.modal-title {
  margin-bottom: 0;
  line-height: 1.5;
}

.modal-body {
  position: relative;
  -ms-flex: 1 1 auto;
  flex: 1 1 auto;
  padding: 1rem;
}

.modal-footer {
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
  -ms-flex-align: center;
  align-items: center;
  -ms-flex-pack: end;
  justify-content: flex-end;
  padding: 0.75rem;
  border-top: 1px solid #e9ecef;
  border-bottom-right-radius: calc(0.3rem - 1px);
  border-bottom-left-radius: calc(0.3rem - 1px);
}

.modal-footer > * {
  margin: 0.25rem;
}

.modal-scrollbar-measure {
  position: absolute;
  top: -9999px;
  width: 50px;
  height: 50px;
  overflow: scroll;
}

@media (min-width: 576px) {
  .modal-dialog {
    max-width: 500px;
    margin: 1.75rem auto;
  }
  .modal-dialog-scrollable {
    max-height: calc(100% - 3.5rem);
  }
  .modal-dialog-scrollable .modal-content {
    max-height: calc(100vh - 3.5rem);
  }
  .modal-dialog-centered {
    min-height: calc(100% - 3.5rem);
  }
  .modal-dialog-centered::before {
    height: calc(100vh - 3.5rem);
    height: -webkit-min-content;
    height: -moz-min-content;
    height: min-content;
  }
  .modal-content {
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.5);
  }
  .modal-sm {
    max-width: 300px;
  }
}

@media (min-width: 992px) {
  .modal-lg,
  .modal-xl {
    max-width: 800px;
  }
}

@media (min-width: 1200px) {
  .modal-xl {
    max-width: 1140px;
  }
}

.btn-default {
  background-color: #f8f9fa;
  border-color: #ddd;
  color: #444;
}

.btn-default:hover, .btn-default:active, .btn-default.hover {
  background-color: #e9ecef;
  color: #2b2b2b;
}

.btn-default.disabled, .btn-default:disabled {
  color: #444;
  background-color: #f8f9fa;
}

.dark-mode .btn-default:hover, .dark-mode .btn-default:focus,
.dark-mode .btn-app:hover,
.dark-mode .btn-app:focus {
  background-color: #3f474e;
  color: #dee2e6;
  border-color: #727b84;
}
.navbar-nav > .user-menu > .dropdown-menu > .user-footer .btn-default {
  color: #6c757d;
}

@media (min-width: 576px) {
  .navbar-nav > .user-menu > .dropdown-menu > .user-footer .btn-default:hover {
    background-color: #f8f9fa;
  }
}

.dark-mode .navbar-nav > .user-menu > .dropdown-menu > .user-footer .btn-default {
  color: #fff;
}

.dark-mode .navbar-nav > .user-menu > .dropdown-menu > .user-footer .btn-default:hover, .dark-mode .navbar-nav > .user-menu > .dropdown-menu > .user-footer .btn-default:focus {
  background-color: #3f474e;
  color: #dee2e6;
}

.dark-mode .navbar-nav > .user-menu > .dropdown-menu > .user-footer .btn-default:focus {
  background-color: #454d55;
}

.dark-mode .btn-primary {
  color: #fff;
  background-color: #3f6791;
  border-color: #3f6791;
  box-shadow: none;
}

.dark-mode .btn-primary:hover {
  color: #fff;
  background-color: #335476;
  border-color: #304e6d;
}

.dark-mode .btn-primary:focus, .dark-mode .btn-primary.focus {
  color: #fff;
  background-color: #335476;
  border-color: #304e6d;
  box-shadow: 0 0 0 0 rgba(92, 126, 162, 0.5);
}

.dark-mode .btn-primary.disabled, .dark-mode .btn-primary:disabled {
  color: #fff;
  background-color: #3f6791;
  border-color: #3f6791;
}

.dark-mode .btn-primary:not(:disabled):not(.disabled):active, .dark-mode .btn-primary:not(:disabled):not(.disabled).active,
.show > .dark-mode .btn-primary.dropdown-toggle {
  color: #fff;
  background-color: #304e6d;
  border-color: #2c4765;
}

.dark-mode .btn-primary:not(:disabled):not(.disabled):active:focus, .dark-mode .btn-primary:not(:disabled):not(.disabled).active:focus,
.show > .dark-mode .btn-primary.dropdown-toggle:focus {
  box-shadow: 0 0 0 0 rgba(92, 126, 162, 0.5);
}

[class*="accent-"] a.btn-primary {
  color: #fff;
}

.dark-mode [class*="accent-"] a.btn-primary {
  color: #fff;
}
.btn-primary {
  color: #fff;
  background-color: #007bff;
  border-color: #007bff;
  box-shadow: none;
}

.btn-primary:hover {
  color: #fff;
  background-color: #0069d9;
  border-color: #0062cc;
}

.btn-primary:focus, .btn-primary.focus {
  color: #fff;
  background-color: #0069d9;
  border-color: #0062cc;
  box-shadow: 0 0 0 0 rgba(38, 143, 255, 0.5);
}

.btn-primary.disabled, .btn-primary:disabled {
  color: #fff;
  background-color: #007bff;
  border-color: #007bff;
}

.btn-primary:not(:disabled):not(.disabled):active, .btn-primary:not(:disabled):not(.disabled).active,
.show > .btn-primary.dropdown-toggle {
  color: #fff;
  background-color: #0062cc;
  border-color: #005cbf;
}

.btn-primary:not(:disabled):not(.disabled):active:focus, .btn-primary:not(:disabled):not(.disabled).active:focus,
.show > .btn-primary.dropdown-toggle:focus {
  box-shadow: 0 0 0 0 rgba(38, 143, 255, 0.5);
}

@media (max-width: 600px) {
  .character-list img {
    width: 60px;
    height: 60px;
  }
}
