: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: 16px;
}
html {
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family: "B Nazanin";
  background-color: #f0f7ff;
  color: var(--dark);
  line-height: 1.6;
  overflow-x: hidden;
}

.container {
  width: 100%;
  max-width: 1500px;
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 700;
  color: var(--primary);
}

a {
  text-decoration: none;
  color: var(--primary);
  transition: var(--transition);
}

/* Enhanced styles for RahePooya */

/* --- شخصیت‌ها --- */
.enhanced-character .card {
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  background: linear-gradient(145deg, #fff, #f3f3f3);
}
.enhanced-character .card:hover {
  transform: scale(1.03);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.2);
}
.image-containerch {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 150px;
}
.bg-img {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  opacity: 0.2;
}
.fg-img {
  position: relative;
  z-index: 2;
  max-width: 80%;
  max-height: 80%;
}

/* --- شرکت‌ها --- */
.enhanced-company .cardcomp {
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  padding: 1.5rem;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  text-align: center;
}
.enhanced-company .cardcomp:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}
.enhanced-company .namecomp {
  font-size: 1.2rem;
  color: #333;
  margin-top: 1rem;
}

/* --- قصه‌ها --- */
.enhanced-stories .fancy-story {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}
.enhanced-stories .fancy-story:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}
.enhanced-stories .image-container img {
  border-radius: 12px;
  object-fit: cover;
  width: 100%;
  height: 160px;
}

/* --- افکت درخشان کارت --- */
.hover-glow {
  box-shadow: 0 0 12px rgba(255, 217, 0, 0.2);
  transition: box-shadow 0.4s ease;
}
.hover-glow:hover {
  box-shadow: 0 0 20px rgba(255, 217, 0, 0.5);
}


a:hover {
  color: var(--secondary);
  transform: scale(1.05);
}

img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  transition: var(--transition);
}
.screen {
  width: 100%;
  border-radius: 20px;
  margin: -20px 0;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  border: 5px solid white;
  transition: var(--transition);
}

.LoginButton:hover {
  cursor: pointer;
}
.profileButton:hover {
  cursor: pointer;
}

.searchfields {
  width: 100%;
  height: 100%;
}

.searchinput {
  width: 100%;
  height: 100%;
  border-radius: 15px;
  border-width: 0.0px;
  font-size: 15px;
  font-weight: 600;
  background-position: 50% 1px;
  background-repeat: no-repeat;
  background-size: 100% 95%;
  background-image: url("/static/img/loupe2.png");
  padding: 0 50px 0 0px;
}
.container {
  position: relative;
}
.vorod {
  text-align: center;
  font-family: "B Titr", sans-serif;
  font-size: 18px;
  color: white;
  margin-right: 15%;
  white-space: nowrap;
}
.avatar {
  width: 30%;
  border-radius: 10%;
  margin-right: 50%;
}

.language-select {
  color: white;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  width: 100%;
  height: 100%;
  padding: 10px 30px 10px 10px;
  cursor: pointer;
  border: none;
  background: url("/static/img/earth.png") no-repeat right center; /* Replace with actual Earth icon image */
  background-size: 20px; /* Set size of the Earth icon */
}

.language-select option {
  color: #000c19;
  border: none;
  padding-right: 30px;
  background-repeat: no-repeat;
  background-position: right center;
}
.language-select:focus {
  box-shadow: none;
  outline: none;
}

option[data-image="en.png"] {
  background-image: url("/static/img/en.png"); /* Replace with actual flag image */
}
option[data-image="fa.png"] {
  background-image: url("/static/img/fa.png"); /* Replace with actual flag image */
}

.loginWindow {
  box-shadow: var(--box-shadow);
  max-width: 400px;
  margin: -50% auto;
  background: linear-gradient(135deg, #fff6e5, #ffe8e8);
  position: absolute;
  padding: 30px;
  right: 10%;
  border-radius: var(--border-radius);
  text-align: center;
  border: 3px dashed var(--accent);
  animation: float 6s infinite ease-in-out;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

.loginWindow img {
  width: 120px;
  height: auto;
  margin-bottom: 15px;
  border-radius: 50%;
  border: 4px solid white;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}
.loginWindow p {
  font-size: 1.3rem;
  color: var(--primary);
  margin-bottom: 20px;
  font-weight: bold;
}

.loginBtn {
  margin-top: 10%;
  width: 50%;
  height: 7vh;
}

.loginBtn button {
  background-color: var(--primary);
  color: white;
  border: none;
  padding: 12px 30px;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: bold;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 4px 10px rgba(255, 107, 107, 0.3);
}

.loginBtn button:hover {
  background-color: #ff5252;
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(255, 107, 107, 0.4);
}

.swiper-wrapper {
  display: flex;
  flex-direction: row;
}

.dividAdv {
  position: relative;
  margin-top: 5%;
  width: 100%;
  height: 90vh;
  background-image: url("/static/img/divid02.png");
  background-repeat: no-repeat;
  background-size: 80% 100vh;
  background-position: center;
}
.childinfront {
  position: absolute;
  width: 30%;
  height: 70%;
  transform: rotatey(180deg);
  margin-right: 60%;
  margin-top: 12.5%;
}
.childinfront2 {
  position: absolute;
  width: 33%;
  height: 80%;
  margin-top: 8.5%;
  margin-right: 10%;
}

.allcomapanylogo {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin: 50px 0;
}
.introduction {
  background: white;
  border-radius: var(--border-radius);
  padding: 25px;
  box-shadow: var(--box-shadow);
  transition: var(--transition);
  border: 3px solid transparent;
  text-align: center;
}
.introduction:hover {
  transform: translateY(-10px);
  border-color: var(--accent);
}

.introduction img {
  width: 80px;
  height: 80px;
  margin-bottom: 15px;
  border-radius: 50%;
  padding: 10px;
  background-color: #f5f5f5;
  border: 2px dashed var(--accent);
}

.titlelogo h3 {
  font-size: 1.3rem;
  margin-bottom: 10px;
  color: var(--primary);
}

.titlelogo p {
  color: var(--dark);
  font-size: 0.95rem;
  line-height: 1.6;
}
.company {
  padding: 50px 0;
  background-color: #f9f4ff;
  border-radius: var(--border-radius);
  margin: 40px 0;
}

.swipercomp {
  padding: 30px 0;
}

.cardcomp {
  background: white;
  border-radius: var(--border-radius);
  padding: 25px;
  box-shadow: var(--box-shadow);
  text-align: center;
  transition: var(--transition);
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.cardcomp:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.avatarcomp {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  margin: 0 auto 20px;
  border: 4px solid var(--accent);
  padding: 3px;
  background: white;
}

.namecomp {
  font-size: 1.5rem;
  color: var(--primary);
  margin-bottom: 10px;
}

.quote-container {
  margin-top: 15px;
  font-style: italic;
  color: var(--dark);
}

.swiper-button-next,
.swiper-button-prev {
  color: var(--primary) !important;
  background: 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: var(--primary) !important;
}
.navmenu {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 20px;
  margin: 40px 0;
}

.navItem {
  background: white;
  border-radius: var(--border-radius);
  padding: 20px;
  text-align: center;
  box-shadow: var(--box-shadow);
  transition: var(--transition);
  cursor: pointer;
}

.navItem:hover {
  transform: translateY(-10px) scale(1.05);
}

.navItem img {
  width: 60px;
  height: 60px;
  margin-bottom: 15px;
  transition: var(--transition);
}

.navItem:hover img {
  transform: rotate(10deg);
}

.navItem p {
  font-weight: bold;
  font-size: 1.1rem;
  margin: 0;
}

.item-blue {
  border-top: 5px solid var(--blue);
}

.item-red {
  border-top: 5px solid var(--red);
}

.item-green {
  border-top: 5px solid var(--green);
}

.item-purple {
  border-top: 5px solid var(--purple);
}

.videos {
  width: 100%;
  height: 100vh;
  margin-top: 5%;
}
.card .imagech {
  height: 80px;
  width: 80px;
  padding: 3px;
}

.card .imagech img {
  width: 100%;
  height: 100%;
  border-radius: 5%;
  object-fit: cover;
}

.card .imagestory {
  width: 100%;
  height: 30vh;
}
.card .imagestory img {
  width: 95%;
  height: 30vh;
  object-fit: contain;
  border-radius: 15% 15% 0px 0px;
}

.imagestory h4 {
  padding: 5px;
  background-color: #f85ba2;
  width: 82%;
  height: 6vh;
  margin-top: -5%;
  margin-right: 4%;
  border-radius: 0px 0px 15px 15px;
  color: #0a0e14;
}

.imagestory a {
  text-decoration: none;
}

.image-containerch {
  position: relative;
  width: 150%; /* Set the width of the container */
  height: 15vh; /* Set the height of the container */
}

.image-containerch img {
  position: absolute;
  width: 100%; /* Set the width of the images to fill the container */
  height: 100%; /* Set the height of the images to fill the container */
  object-fit: cover; /* Make sure the images cover the entire container */
}

.image-containerch img:first-child {
  z-index: 1; /* Set the z-index of the first image to be on top */
}

.image-containerch img:last-child {
  z-index: 0; /* Set the z-index of the second image to be behind the first image */
}

.footer {
  width: 100%;
  height: 70vh;
  background-color: #0a0e14;
}
.footer h1 {
  color: white;
  font-family: "B Titr", sans-serif;
  font-size: 40px;
  text-align: center;
}
.footer p {
  text-align: center;
  color: white;
  font-family: "B Nazanin", sans-serif;
  font-size: 16px;
  width: 50%;
  margin: auto;
  margin-top: 2%;
}

.meican {
  font-family: "B Titr", sans-serif;
  color: white;
  width: 150px;
  height: 25px;
  font-size: 20px;
  margin: auto;
}
.phoneemail {
  margin: auto;
  display: flex;
  flex-direction: row;
  margin-top: 2%;
}
.footer img {
  width: 100px;
  height: 100px;
  object-fit: contain;
  margin: auto;
  margin-top: 2%;
}
.poem {
  margin-top: 2%;
  font-size: 20px;
}

.videoplayerback {
  width: 100%;
  height: 150vh;
  background: url("/static/img/back02.png") no-repeat;
  background-size: 100%;
}
.titleStory {
  margin-top: -2%;
  display: flex;
  flex-direction: row;
  width: 100%;
  height: 5vh;
  justify-content: space-between;
}
.videoplayer {
  width: 70%;
  height: 80vh;
  position: absolute;
  margin-top: 16%;
  border-radius: 25px;
  margin-right: 14%;
}
.videoplayer h1 {
  white-space: nowrap;
  max-width: 30%;
  margin-right: 5%;
  font-family: "B Titr", sans-serif;
  font-size: 30px;
  margin-top: -1%;
}
.videoplayer video {
  margin-top: 2%;
  width: 100%;
  height: 100%;
  border-radius: 25px;
}
.rank {
  float: left;
  width: 15%;
  height: 5vh;
  background-color: orangered;
  border-radius: 15px;
}
.rank i {
  width: 10%;
  color: white;
  margin-top: 6%;
  margin-right: 7%;
}

.icons {
  position: absolute;
  width: 40%;
  height: 8vh;
  background-color: orangered;
  margin-top: 58%;
  margin-right: 59%;
  border-radius: 0px 15px 15px 0px;
  box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
}

.icons i {
  color: white;
  font-size: 30px;
  margin-top: 2%;
  margin-right: 8%;
}
.icons i:hover {
  color: black;
  cursor: pointer;
}
.description {
  width: 70%;
  position: absolute;
  margin-top: 60%;
  margin-right: 20%;
}
.description h3 {
  font-family: "B Titr", sans-serif;
  font-size: 25px;
  color: white;
}

.description p {
  font-family: "B Nazanin", sans-serif;
  font-size: 20px;
  margin-right: 5%;
  font-weight: bold;
  color: black;
}
.icons i svg {
  color: white;
}
.quote-icon {
  position: absolute;
  z-index: 0;
  opacity: 0.05;
  left: 3%;
  top: 0;
}
.characterback {
  width: 100%;
  height: 97.5vh;
  background: url("/static/img/chback.jpg") no-repeat center scroll;
  background-size: cover;
}
.swipercomp {
  margin-top: 5%;
  width: 100%;
  height: 40vh;
}
.swiper-wrapper-comp {
  display: flex;
  flex-direction: row;
  justify-content: space-around;
}
.swiper-slide-comp {
  display: flex !important;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.swiper-slide-comp-active {
  z-index: 1;
}

.swiper-slide-comp-active .cardcomp {
  box-shadow: 0 8px 30px -7px #c9dff0;
  opacity: 1;
  transform: scale(1.5);
}
.swiper-button-next {
  --swiper-navigation-size: 20px;
}
.swiper-button-prev {
  --swiper-navigation-size: 20px;
}
.swipercomp {
  margin-left: auto;
  margin-right: auto;
}

.swiper-button-next:focus,
.swiper-button-prev:focus {
  outline: none;
}

.avatarcomp {
  width: 50%;
  height: 15vh;
}

.namecomp {
  color: black;
  font-family: "B Titr", sans-serif;
  font-size: 15px;
}
.quote-container {
  margin-top: -10%;
}
.chimg {
  width: 25%;
  height: auto;
  margin-right: 35%;
  margin-top: 10%;
}

.details {
  width: 20%;
  height: 20vh;
  margin: auto;
  margin-top: -7%;
  margin-right: 50%;
}

.details h2 {
  color: white;
  margin-right: 10%;
  font-family: "B Titr", sans-serif;
  font-size: 20px;
}

.details p {
  color: white;
  margin-right: 20%;
  margin-top: -5%;
  font-family: "B Nazanin", sans-serif;
  font-size: 20px;
}

.chbuttons {
  display: flex;
  flex-direction: row;
}

.chbuttons button {
  margin-right: 20%;
  width: 50px;
  height: 30px;
  background-color: transparent;
}
.chbuttons i {
  padding: 1px;
  color: white;
}
.chstorys {
  position: absolute;
  width: 25%;
  height: 40vh;
  margin-top: -23%;
}
.mainprofile {
  width: 100%;
  height: 150vh;
  display: flex;
  flex-direction: row;
}

.menubar {
  width: 20%;
  height: 100vh;
  margin-top: 8%;
}
.menubar div {
  margin-right: -50%;
  margin-top: 30%;
  width: 100%;
}

.menubar img {
  width: 100%;
  height: 15vh;
}
.nav-link {
  font-family: "B Titr", sans-serif;
}
.nav-link img {
  width: 20%;
  height: 8vh;
}
.mainbody {
  width: 70%;
  height: 100vh;
  max-height: 100vh;
  margin-right: 1%;
  margin-top: 10%;
}

.containerprofile {
  position: relative;
}

.containerprofile div {
  display: flex;
  flex-direction: row;
}

.close {
  font-family: "B Titr", sans-serif;
  color: #aaaaaa;
  font-size: 16px;
  font-weight: bold;
  text-align: center;
}

.close:hover,
.close:focus {
  color: #000;
  text-decoration: none;
  cursor: pointer;
}
.close p {
  text-align: center;
  font-size: 15px;
}
.mylogin {
  display: flex;
  flex-direction: column;
  gap: 15px;
}
.mylogin label {
  font-family: "B Titr", sans-serif;
  margin-right: 5%;
  color: black;
  font-weight: bold;
  font-size: 20px;
}
.mylogin input {
  padding: 12px 15px;
  border: 2px solid #e0e0e0;
  border-radius: 50px;
  font-size: 1rem;
  transition: var(--transition);
  background-color: white;
}
.mylogin input:focus {
  border-color: var(--secondary);
  outline: none;
  box-shadow: 0 0 0 3px rgba(78, 205, 196, 0.2);
}

.menuCharacter {
  width: 100%;
  margin-top: 0.2%;
  height: 80px;
}

.userlogin {
  display: flex;
  flex-direction: row;
  width: 45.5%;
  height: 100%;
  border-style: solid;
  border-color: white;
  border-radius: 25px;
  border-width: 2px;
  background-image: linear-gradient(#336eab, #2b265f);
  padding: 5px;
}
.form {
  border-style: solid;
  border-color: white;
  border-radius: 15px;
  border-width: 2px;
  flex: 25%;
  height: 100%;
  max-width: 25%;
}
#id_mobile {
  width: 90%;
  text-align: center;
}
.adv {
  margin-right: 1%;
  border-style: solid;
  border-color: white;
  border-radius: 25px;
  border-width: 2px;
  height: 100%;
  flex: 40%;
}
.adv img {
  width: 100%;
  height: 100%;
  border-radius: 25px;
}
.coin {
  margin-right: 15px;
  flex: 30%;
}

.apkdownload {
  border-style: solid;
  border-color: white;
  border-radius: 15px;
  border-width: 2px;
  width: 12%;
  height: 100%;
}

.apkdownload p {
  margin: auto;
  text-align: center;
  white-space: nowrap;
  font-size: 80%;
  color: white;
  margin-top: -3%;
}
.apkdownload img {
  display: block;
  margin-left: auto;
  margin-right: auto;
  width: 50%;
  height: 50%;
}
.apkdownload button {
  display: block;
  background-color: #3557ae;
  margin-left: auto;
  margin-right: auto;
  border-style: solid;
  border-color: white;
  color: white;
  border-radius: 5px;
  border-width: 2px;
  width: 80%;
}

.androidIcon {
  width: 20px;
  height: 20px;
}

.poem {
  margin-right: 1%;
  white-space: nowrap;
  flex: 50%;
}
.poem h1 {
  font-weight: bold;
  font-size: 200%;
  color: white;
  text-align: center;
}
.searchbox {
  margin-right: 1%;
  flex: 30%;
}

.searchfields i {
  color: white;
  margin-top: 6%;
}
.menuFilter select {
  width: 90%;
  height: 25px;
  border-radius: 15px;
  margin-top: 8%;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

/* Navbar container */

/* Links inside the navbar */
.navbar a {
  float: right;
  font-size: 16px;
  color: white;
  text-align: center;
  padding: 14px 16px;
  text-decoration: none;
}

/* The dropdown container */
.dropdown {
  background-image: radial-gradient(lightskyblue, #2e306d);
  display: block;
  height: 30px;
  width: 150px;
  float: right;
  overflow: hidden;
  margin-top: -1%;
  border-style: solid;
  border-color: white;
  border-radius: 25px;
  border-width: 2px;
}
.sub-menu-1 {
  z-index: 1000000;
  display: none;
}
.sub-menu-2 {
  position: absolute;
  z-index: 1000000;
  display: none;
}
.sub-menu-1 ul li a {
  width: 100%;
  background-image: radial-gradient(lightskyblue, #2e306d);
  margin-top: 10px;
  border-style: solid;
  border-color: white;
  border-radius: 15px;
  border-width: 2px;
}
.sub-menu-2 ul li a {
  width: 100%;
  background: #3557ae;
  border-radius: 20%;
  white-space: nowrap;
}

.listVerticalMenu li {
  display: block;
}
.sub-menu-1 ul li:hover .sub-menu-2 {
  display: inline-flex;
  position: absolute;
  margin-right: 20%;
}
.navbar ul li:hover .sub-menu-1 {
  display: block;
  position: absolute;
  margin-top: 2%;
}
/* Dropdown button */
.dropdown .dropbtn {
  font-size: 16px;
  border: none;
  outline: none;
  color: white;
  padding: 14px 16px;
  background-color: inherit;
  font-family: inherit; /* Important for vertical align on mobile phones */
  margin-top: -10%;
}

/* Add a red background color to navbar links on hover */
/*.navbar a:hover, .dropdown:hover .dropbtn {*/
/*    background-image: radial-gradient(lightskyblue, #2e306d);*/
/*}*/

/* Dropdown content (hidden by default) */
.dropdown-content {
  margin-top: -10px;
  display: none;
  position: absolute;
  background-color: #f9f9f9;
  min-width: 160px;
  box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
  z-index: 2;
}

/* Links inside the dropdown */
.dropdown-content a {
  float: none;
  color: black;
  padding: 12px 16px;
  text-decoration: none;
  display: block;
  text-align: left;
}

/* Add a grey background color to dropdown links on hover */
.dropdown-content a:hover {
  background-color: #ddd;
}

/* Show the dropdown menu on hover */
.dropdown:hover .dropdown-content {
  display: block;
}

.menu {
  margin-top: 1.25%;
  height: 35px;
  border-style: solid;
  border-color: white;
  border-radius: 25px;
  border-width: 2px;
  background-color: #2a255d;
}

.advImg {
  text-align: center;
  color: white;
}

.card .card-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 100;
}

.card .image {
  height: 300px;
  width: 230px;
  filter: drop-shadow(5px 5px 8px #222);
  border-radius: 50%;
  padding: 3px;
}

.card .imagech {
  height: 80px;
  width: 80px;
  padding: 3px;
}

.card .imagech img {
  width: 100%;
  height: 100%;
  border-radius: 5%;
  object-fit: cover;
}

.changEverytime {
  width: 100%;
  height: 51vh;
  display: flex;
  flex-direction: row;
  margin-top: .2%;
}

.MyStorytitle {
  font-weight: bold;
  font-size: 20px;
  color: white;
  text-align: center;
  border-style: solid;
  border-color: white;
  border-radius: 5px;
  border-width: 2px;
  background-color: #3557ae;
  width: 20%;
  margin-right: 1%;
}

.secondPart {
  width: 44%;
  height: 54vh;
  border-style: solid;
  border-color: white;
  border-radius: 25px;
  border-width: 2px;
  background-color: #c8a9d3;
}
.mySlider {
  border-style: solid;
  border-color: white;
  border-radius: 25px;
  border-width: 2px;
  width: 55%;
  margin-right: 1%;
  height: 54vh;
}

/* Slideshow container */
.slideshow-container {
  width: 100%;
  height: 100%;
  position: relative;
  margin: auto;
}

/* Make the images invisible by default */
.Containers {
  display: none;
  height: 100%;
}

.Containers img {
  width: 50px;
  height: 100%;
  border-style: solid;
  border-color: white;
  border-radius: 25px;
  border-width: 2px;
}

/* forward & Back buttons */
.Back,
.forward {
  cursor: pointer;
  position: absolute;
  top: 48%;
  width: auto;
  margin-top: -23px;
  padding: 17px;
  color: grey;
  font-weight: bold;
  font-size: 19px;
  transition: 0.4s ease;
  border-radius: 0 5px 5px 0;
  user-select: none;
}

/* Place the "forward button" to the right */
.forward {
  left: 0;
  border-radius: 4px 0 0 4px;
}

/*when the user hovers,add a black background with some little opacity */
.Back:hover,
.forward:hover {
  background-color: rgba(0, 0, 0, 0.8);
}

.tabcontent form {
  margin-top: 10%;
}
/* Caption Info */
.Info {
  color: #e3e3e3;
  font-size: 16px;
  padding: 10px 14px;
  position: absolute;
  bottom: 10px;
  width: 100%;
  text-align: center;
}

/* Worknumbering (1/3 etc) */
.MessageInfo {
  color: #f2f2f3;
  font-size: 14px;
  padding: 10px 14px;
  position: absolute;
  top: 0;
}

/* The circles or bullets and indicators */
.dots {
  cursor: pointer;
  height: 16px;
  width: 16px;
  margin: 0 3px;
  background-color: #acc;
  border-radius: 50%;
  display: inline-block;
  transition: background-color 0.5s ease;
}

.enable,
.dots:hover {
  background-color: #717161;
}

/* Faint animation */
.fade {
  -webkit-animation-name: fade;
  -webkit-animation-duration: 1.4s;
  animation-name: fade;
  animation-duration: 1.4s;
}

@-webkit-keyframes fade {
  from {
    opacity: 0.5;
  }
  to {
    opacity: 2;
  }
}

@keyframes fade {
  from {
    opacity: 0.5;
  }
  to {
    opacity: 2;
  }
}

.Mainadv {
  width: 44%;
  height: 12vh;
}
.advItem {
  margin-top: 5.2%;
  height: 70%;
  width: 100%;
  background-color: #c8a9d3;
  border-style: solid;
  border-color: white;
  border-radius: 25px;
  border-width: 2px;
}
.MainPrize {
  width: 55%;
  height: 12vh;
  margin-right: 1%;
}

.MainStoryPrize {
  width: 59%;
  height: 12vh;
  margin-right: 1%;
}
.MyStoryStorytitle {
  font-weight: bold;
  font-size: 15px;
  color: white;
  text-align: center;
  border-style: solid;
  border-color: white;
  border-radius: 5px;
  border-width: 2px;
  background-color: #3557ae;
  width: 10%;
  margin-right: 1%;
}
.week {
  margin-top: -1%;
  width: 10%;
  height: 120%;
}

.storyPlayer {
  width: 40%;
  height: 55vh;
  border-style: solid;
  border-color: white;
  border-radius: 25px;
  border-width: 2px;
  background-color: #c8a9d3;
}
.mainStoryGallery {
  width: 40%;
  height: 14vh;
}
.secondPartStory {
  margin-right: 10px;
  width: 59%;
  height: 55vh;
  border-style: solid;
  border-color: white;
  border-radius: 25px;
  border-width: 2px;
  background-color: #c8a9d3;
}

.menuFilter option {
  font-size: 16px;
  font-weight: bold;
}

.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);
}



.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;
}



.userDetail {
  width: 80%;
  border-style: solid;
  border-color: white;
  border-radius: 5px;
  border-width: 2px;
  background-color: deeppink;
  margin-right: 10%;
  color: white;
}
.userdetailWin {
  margin-right: 1%;
  border-style: solid;
  border-color: white;
  border-radius: 25px;
  border-width: 2px;
  height: 100%;
  flex: 40%;
}
.favoritGrid {
  margin-top: 10px;
  margin-right: 10px;
  display: grid;
  gap: 15px 15px;
  grid-template-columns: repeat(9, 12px);
  grid-template-rows: auto auto auto;
}
.grid-item {
  width: 20px;
  height: 20px;
}
.likebtn {
  margin: auto;
  font-size: 30px;
  background-color: transparent;
  border: none;
  outline: none;
  cursor: pointer;
  padding: 2%;
}

.advanddetail {
  display: flex;
  flex-direction: row;
}
.advanddetailStory {
  display: flex;
  flex-direction: row;
}
.storyDetail {
  display: flex;
  flex-direction: row;
}
.storyTitle {
  margin-top: -20px;
  margin-right: 20px;
}
.storyIcon {
  width: 100%;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  font-size: 32px;
}
.printicn {
  color: purple;
  cursor: pointer;
  padding: 2%;
  text-decoration: none;
}

/* The Modal (background) */
.modal {
  display: none; /* Hidden by default */
  position: fixed; /* Stay in place */
  z-index: 1; /* Sit on top */
  padding-top: 100px; /* Location of the box */
  left: 0;
  top: 0;
  width: 100%; /* Full width */
  height: 100%; /* Full height */
  overflow: auto; /* Enable scroll if needed */
  background-color: rgb(0, 0, 0); /* Fallback color */
  background-color: rgba(0, 0, 0, 0.4); /* Black w/ opacity */
}

/* Modal Content */
.modal-content {
  background-color: #fefefe;
  margin: auto;
  padding: 20px;
  border: 1px solid #888;
  width: 80%;
}

.info {
  display: flex;
  flex-direction: row;
  margin-left: 40%;
  margin-top: 5%;
}
.info .picture {
  margin-right: 40%;
}
.info .picture img {
  border-radius: 10%;
  filter: drop-shadow(5px 5px 10px #222);
  width: 200px;
  height: 200px;
}

.info .name-description {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 30px;
  margin-right: 5%;
}

.info .name-description .name {
  /*margin-top: -40px;*/
  font-size: 30px;
  white-space: nowrap;
}
.info .name-description .description {
  padding-top: 5px;
  padding-bottom: 5px;
  font-size: 24px;
  white-space: nowrap;
}
.footer {
  display: flex;
  flex-direction: column;
}
.footer .social {
  display: flex;
  flex-direction: row;
  margin: 5% 20% 5% 20%;
  border-style: solid;
  border-width: 2px;
  border-color: silver;
  padding: 3%;
}
.footer .social a {
  color: gray;
  text-align: center;
  padding: 14px 16px;
  text-decoration: none;
  font-size: 20px;
  background-color: silver;
  margin: auto;
}

.footer .text {
  text-align: center;
  margin-right: 45%;
  font-size: 25px;
  font-weight: bold;
}

.footer .footer-menu {
  display: flex;
  flex-direction: row;
  margin: 1% 26% 1% 26%;
  padding: 3%;
}
.footer .footer-menu a {
  color: gray;
  text-align: center;
  padding: 5px 15px;
  text-decoration: none;
  font-size: 20px;
  border-style: solid;
  border-width: 1px;
  margin: auto;
}

.footer .copyright {
  text-align: center;
  margin: auto;
  font-size: 15px;
}

.circle-container {
  position: relative;
  width: 24em;
  height: 24em;
  padding: 2.8em;
  /*2.8em = 2em*1.4 (2em = half the width of a link with img, 1.4 = sqrt(2))*/
  border: dashed 1px;
  border-radius: 50%;
  margin: 1.75em auto 0;
}
.circle-container a {
  display: block;
  position: absolute;
  top: 50%;
  left: 50%;
  width: 4em;
  height: 4em;
  margin: -2em;
}
.circle-container img {
  display: block;
  width: 100%;
}
.deg0 {
  transform: translate(12em);
} /* 12em = half the width of the wrapper */
.deg45 {
  transform: rotate(45deg) translate(12em) rotate(-45deg);
}
.deg135 {
  transform: rotate(135deg) translate(12em) rotate(-135deg);
}
.deg180 {
  transform: translate(-12em);
}
.deg225 {
  transform: rotate(225deg) translate(12em) rotate(-225deg);
}
.deg315 {
  transform: rotate(315deg) translate(12em) rotate(-315deg);
}

.info .c-list {
  transform: rotate(135deg) translate(12em) rotate(-135deg);
}

.social-icon-list {
  width: 100%;
  font-size: 32px;
  text-decoration: none;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
}

.social-icon-list a {
  padding: 2%;
  text-decoration: none;
  color: black;
}

.info .social-icon-list #rtwitter {
  transform: translate(130%, -65%);
}
.info .social-icon-list #rgoogle-plus {
  transform: translate(110%, 40%);
}
.info .social-icon-list #rsth {
  transform: translate(-90%, 75%);
}
.info .social-icon-list #rwhatsapp {
  transform: translate(-220%, 40%);
}
.info .social-icon-list #rwifi {
  transform: translate(-260%, -65%);
}

.favoritlist {
  display: inline-grid;
  grid-template-columns: auto auto;
  width: 100%;
  min-height: 150px;
  z-index: -999;
}
.btndelete {
  width: 100px;
  height: 40px;
  border-radius: 10px;
  border-color: transparent;
  border-collapse: separate;
  background-color: #d8a1ef;
  text-align: center;
}
.btndelete:hover {
  border-radius: 50px;
}

.form-popup {
  display: none;
  position: fixed;
  bottom: 0;
  right: 15px;
  border: 3px solid #f1f1f1;
  z-index: 9;
}

.custom-control {
  direction: ltr;
  position: relative;
  display: flex;
  min-height: 1.5rem;
  padding-left: 1.5rem;
  font-size: 13px;
  color: white;
}
.searchbody {
  display: flex;
  flex-direction: row;
  width: 100%;
  height: 100%;
}
.formstory {
  margin-top: 10%;
  width: 20%;
  height: 80%;
  background-color: green;
  border-radius: 15px 0px 0px 0px;
}
.searchstory {
  display: inline-grid;
  column-gap: 70px;
  grid-template-columns: repeat(auto-fit, minmax(13em, 1fr));
  width: 75%;
  min-height: 150px;
  margin-top: 9%;
}
.searchdescription {
  height: 60px;
  display: block;
  overflow: hidden;
  word-wrap: break-word;
  text-overflow: ellipsis;
  margin-right: 10%;
  font-size: 20px;
}
.searchcard {
  width: 260px;
  height: 420px;
  background-color: #d8a1ef;
  border-radius: 25px;
  margin-right: 20px;
  margin-top: 20px;
}

.backotpimg {
  display: grid;
  width: 100%;
  height: 100%;
}

.profileimg {
  position: absolute;
  margin-right: 5%;
}
.avatarprofile {
  margin-top: 5%;
  width: 60%;
  height: 100px;
  border-radius: 50%;
}
.dot {
  border-radius: 100%;
  color: antiquewhite;
  position: absolute;
  right: 25px;
  bottom: 2px;
}

/* استایل‌های جدید برای موبایل */
@media (max-width: 640px) {
  /* بهبود هدر */
  .menu-bar {
    padding: 10px;
    flex-direction: column;
  }

  /* بهبود بخش قهرمانی */
  .hero-section {
    margin-top: 250px;
  }

  .screen {
    width: 100%;
    border-radius: 15px;
    margin: 10px 0;
  }

  /* بهبود پنجره لاگین */
  .loginWindow {
    position: relative;
    margin: 20px auto;
    width: 90%;
    max-width: none;
    padding: 20px;
    transform: none;
    animation: none;
  }

  /* بهبود اسلایدر شخصیت‌ها */
  .character-swiper-section {
    padding: 20px 0;
  }

  .character-swiper .swiper-slide {
    width: 120px !important;
  }

  /* بهبود بخش معرفی قابلیت‌ها */
  .allcomapanylogo {
    grid-template-columns: 1fr;
    gap: 15px;
    padding: 0 15px;
  }

  .introduction {
    flex-direction: column;
    text-align: center;
    padding: 15px;
  }

  .dividAdv {
  position: relative;
  margin-top: 5%;
    margin-right: -15%;
  width: 130%;
  height: 50vh;
  background-image: url("/static/img/divid02.png");
  background-repeat: no-repeat;
  background-size: 80% 100vh;
  background-position: center;
}
.childinfront {
  position: absolute;
  width: 30%;
  height: 70%;
  transform: rotatey(180deg);
  margin-right: 60%;
  margin-top: 15%;
}
.childinfront2 {
  position: absolute;
  width: 33%;
  height: 80%;
  margin-top: 10%;
  margin-right: 10%;
}

  /* بهبود بخش شرکت‌ها */
  .company {
    padding: 20px 0;
  }

  .companies-grid {
    grid-template-columns: 1fr;
    padding: 0 15px;
  }

  /* بهبود بخش داستان‌ها */
  .videos {
    padding: 20px 0;
  }

  .category-filter {
    flex-wrap: wrap;
    justify-content: center;
    padding: 0 10px;
  }

  .filter-btn {
    margin: 5px;
    padding: 8px 12px;
    font-size: 14px;
  }

  .stories-grid {
    grid-template-columns: 1fr;
    padding: 0 15px;
  }

  /* بهبود فوتر */
  .roubinaa-footer {
    padding: 20px 15px;
    margin-top: 150%;
  }

  /* بهبود عمومی برای عناصر */
  .section-header h2 {
    font-size: 1.8rem;
  }

  .section-header p {
    font-size: 1rem;
  }

  /* بهبود تصاویر */
  img {
    max-width: 100%;
    height: auto;
  }

  /* بهبود دکمه‌ها */
  button, .btn {
    padding: 10px 15px;
    font-size: 14px;
  }

  /* بهبود اسلایدرها */
  .swiper-button-next,
  .swiper-button-prev {
    display: none;
  }

  /* بهبود فونت‌ها */
  body {
    font-size: 14px;
  }

  h1, h2, h3 {
    font-size: 1.5rem;
  }
}


/* Import existing styles */
@import url("https://blobs.vusercontent.net/blob/index-apycwFBtDfJLaO6zk5SgU9kYvqgBGc.css");

/* Additional Enhanced Styles */

/* ===== SECTION HEADERS ===== */
.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-header h2 {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 1rem;
  font-family: "B Titr", sans-serif;
}

.section-header p {
  font-size: 1.1rem;
  color: var(--dark);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

/* ===== ENHANCED CHARACTER SECTION ===== */
.enhanced-character {
  padding: 4rem 0;
  background: linear-gradient(135deg, #f0f7ff 0%, #fff0f7 100%);
}

.characters-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.character-card {
  background: white;
  border-radius: 20px;
  padding: 2rem;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.character-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--secondary), var(--accent));
  border-radius: 20px 20px 0 0;
}

.character-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.character-info h3 {
  font-size: 1.4rem;
  color: var(--primary);
  margin: 1rem 0 0.5rem;
  font-family: "B Titr", sans-serif;
}

.character-info p {
  color: var(--dark);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.character-stats {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  padding: 0.5rem 0;
}

.rating {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.rating i {
  color: #ffd700;
}

.stories-count {
  font-size: 0.85rem;
  color: var(--dark);
}

.character-actions {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  align-items: center;
}

.like-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: #f5f5f5;
  color: #999;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.like-btn:hover {
  background: #ffe6e6;
  color: #ff4757;
}

.like-btn.liked {
  background: #ffe6e6;
  color: #ff4757;
}

.play-btn {
  background: var(--primary);
  color: white;
  border: none;
  padding: 0.7rem 1.2rem;
  border-radius: 25px;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: "B Nazanin", sans-serif;
}

.play-btn:hover {
  background: #ff5252;
  transform: translateY(-2px);
}

/* ===== ENHANCED COMPANY SECTION ===== */
.enhanced-company {
  background: #f9f4ff;
}

.companies-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.cardcomp {
  position: relative;
  background: white;
  border-radius: 20px;
  padding: 2rem;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  text-align: center;
}

.cardcomp:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.quote-icon {
  position: absolute;
  top: 1rem;
  right: 1rem;
  opacity: 0.1;
  font-size: 2rem;
  color: var(--primary);
}

.specialty-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 209, 102, 0.2);
  color: var(--accent);
  padding: 0.5rem 1rem;
  border-radius: 25px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.company-stats {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin: 1.5rem 0;
}

.stat {
  text-align: center;
}

.stat-value {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  font-size: 1.2rem;
  font-weight: bold;
  color: var(--primary);
}

.stat-label {
  font-size: 0.75rem;
  color: var(--dark);
  opacity: 0.7;
}

.company-btn {
  width: 100%;
  background: var(--secondary);
  color: white;
  border: none;
  padding: 0.8rem 1.5rem;
  border-radius: 25px;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 1rem;
  font-family: "B Nazanin", sans-serif;
}

.company-btn:hover {
  background: #45b7aa;
  transform: translateY(-2px);
}

/* ===== ENHANCED STORY SECTION ===== */
.enhanced-stories {
  padding: 4rem 0;
  background: linear-gradient(135deg, #fff 0%, #f0f7ff 100%);
}

.category-filter {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.8rem;
  margin: 2rem 0 3rem;
}

.filter-btn {
  padding: 0.7rem 1.5rem;
  border: 2px solid #e0e0e0;
  background: white;
  color: var(--dark);
  border-radius: 25px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: "B Nazanin", sans-serif;
  font-weight: 600;
}

.filter-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.filter-btn.active {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
  box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
}

.stories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.story-card {
  background: white;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.story-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.story-image {
  position: relative;
  overflow: hidden;
}

.story-image img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.story-card:hover .story-image img {
  transform: scale(1.05);
}

.play-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.story-card:hover .play-overlay {
  opacity: 1;
}

.play-button {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  border: none;
  color: var(--primary);
  font-size: 1.5rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.play-button:hover {
  background: white;
  transform: scale(1.1);
}

.duration-badge {
  position: absolute;
  top: 0.8rem;
  right: 0.8rem;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 0.3rem 0.6rem;
  border-radius: 12px;
  font-size: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.category-badge {
  position: absolute;
  top: 0.8rem;
  left: 0.8rem;
  background: var(--accent);
  color: var(--dark);
  padding: 0.3rem 0.8rem;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
}

.story-content {
  padding: 1.5rem;
}

.story-content h3 {
  font-size: 1.3rem;
  color: var(--primary);
  margin-bottom: 0.5rem;
  font-family: "B Titr", sans-serif;
}

.story-content p {
  color: var(--dark);
  font-size: 0.9rem;
  margin-bottom: 1rem;
  line-height: 1.5;
}

.story-stats {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.views {
  font-size: 0.85rem;
  color: var(--dark);
  opacity: 0.7;
}

.story-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.watch-btn {
  background: var(--primary);
  color: white;
  border: none;
  padding: 0.7rem 1.2rem;
  border-radius: 25px;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: "B Nazanin", sans-serif;
}

.watch-btn:hover {
  background: #ff5252;
  transform: translateY(-2px);
}

.action-buttons {
  display: flex;
  gap: 0.5rem;
}

.action-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: #f5f5f5;
  color: #999;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.action-btn:hover {
  background: #e0e0e0;
}

.action-btn.liked {
  background: #ffe6e6;
  color: #ff4757;
}

.load-more {
  text-align: center;
  margin-top: 3rem;
}

.load-more-btn {
  background: var(--secondary);
  color: white;
  border: none;
  padding: 1rem 2rem;
  border-radius: 25px;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: "B Nazanin", sans-serif;
}

.load-more-btn:hover {
  background: #45b7aa;
  transform: translateY(-2px);
}


/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.character-card,
.cardcomp,
.story-card {
  animation: fadeInUp 0.6s ease forwards;
}

.character-card:nth-child(2) {
  animation-delay: 0.1s;
}
.character-card:nth-child(3) {
  animation-delay: 0.2s;
}
.character-card:nth-child(4) {
  animation-delay: 0.3s;
}

/* ===== FILTER FUNCTIONALITY ===== */
.story-card.hidden {
  display: none;
}

/* ===== ENHANCED HEADER STYLES ===== */

/* ===== MODERN HEADER STYLES ===== */


/* ===== SIMPLIFIED CHARACTER SECTION ===== */
.character-swiper-section {
  padding: 4rem 0;
  background: linear-gradient(135deg, #f0f7ff 0%, #fff0f7 100%);
}

.character-swiper {
  position: relative;
  padding: 2rem 0;
  margin: 2rem 0;
}

.character-swiper .swiper-wrapper {
  display: flex;
  align-items: center;
}

.character-swiper .swiper-slide {
  display: flex;
  justify-content: center;
  align-items: center;
  width: auto !important;
  margin-right: 2rem;
}

.character-image {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid white;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
  cursor: pointer;
}

.character-image:hover {
  transform: translateY(-10px) scale(1.1);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.character-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.character-image:hover img {
  transform: scale(1.1);
}

.character-swiper .swiper-button-next,
.character-swiper .swiper-button-prev {
  color: var(--primary) !important;
  background: white;
  width: 50px !important;
  height: 50px !important;
  border-radius: 50%;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  margin-top: 0 !important;
  top: 50% !important;
  transform: translateY(-50%);
}

.character-swiper .swiper-button-next:after,
.character-swiper .swiper-button-prev:after {
  font-size: 20px !important;
  font-weight: bold;
}

.character-swiper .swiper-pagination {
  bottom: -10px !important;
}

.character-swiper .swiper-pagination-bullet {
  background: var(--primary) !important;
  opacity: 0.5;
}

.character-swiper .swiper-pagination-bullet-active {
  opacity: 1;
}

/* ===== COMPACT COMPANY CARDS ===== */
.companies-grid.single-company {
  display: flex;
  justify-content: center;
  max-width: 400px;
  margin: 0 auto;
}

.cardcomp.compact-card {
  max-width: 350px;
  padding: 1.5rem;
}

.cardcomp.compact-card .avatarcomp {
  width: 80px;
  height: 80px;
  margin: 0 auto 1rem;
}

.cardcomp.compact-card .namecomp {
  font-size: 1.2rem;
  margin-bottom: 0.8rem;
}

.cardcomp.compact-card .company-stats {
  gap: 1rem;
  margin: 1rem 0;
}

.cardcomp.compact-card .company-btn {
  padding: 0.6rem 1.2rem;
  font-size: 0.9rem;
}


/* Remove old header styles */
.headerFirst,
.prof,
.search,
.custom-select,
.logo,
.navbar,
.dropdown {
  display: none !important;
}

/* Remove old download button */
.dbutton {
  display: none !important;
}
