body {
    direction: rtl;
    background-color: #f9f9f9;
}
.blog-cover img {
    width: 100%;
    max-height: 400px;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.1);
}

/* عنوان و محتوای بلاگ */
p a {
    color: #0000ee !important;
}

a p {
    color: #0000ee !important;
}

.blog-content {
    /* font-family: "Cairo", sans-serif; */
    color: #333;
    background-color: white;
    border-radius: 16px;
}

.blog-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: #333;
}

.blog-meta {
    font-size: 0.9rem;
    color: #777;
    margin-bottom: 1rem;
}

.blog-meta span {
    margin-right: 15px;
    display: inline-block;
}

.blog-meta i {
    margin-left: 5px;
    color: #ad8431;
}

/* محتوای اصلی بلاگ */
.blog-body {
    line-height: 1.8;
    font-size: 1rem;
    color: #4a4a4a;
    padding: 1rem;

    border-radius: 10px;
    box-shadow: 10px 10px 12px rgba(0, 0, 0, 0.05);
}

.blog-body p {
    margin-bottom: 0.9rem;
}

.blog-body h2,
.blog-body h3 {
    margin-top: 1.2rem;
    font-weight: 600;
    color: #333;
}

@import url("https://fonts.googleapis.com/css2?family=Oswald&family=PT+Serif:ital,wght@0,400;0,700;1,400&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Lato:ital,wght@0,400;0,700;1,400;1,700&display=swap");

@media print {
    body {
        margin: 0 !important;
    }
}

.main-container {
    font-family: "Lato";
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
}

/* کدهای محتبی روی بلاگ */

@media (min-width: 1200px) {
    .container {
        max-width: 960px !important;
    }
    .blog-body {
        padding: 1.7rem;
    }
}
p {
    color: #000;
    font-size: 17px;
    line-height: 35px;
    margin-top: 5px;
    margin-bottom: 5px;
    line-height: 1.7;
}

img {
    border-radius: 20px;
}

@media (max-width: 1000px) {
    .blog-title {
        font-size: 1.4rem;
    }
    p {
        font-size: 16px;
    }
}
h2,
h3,
h4 {
    line-height: 2.3;
}
h2 {
    font-size: 24px;
    font-weight: 900;
    line-height: 2em;
    padding: 10px 0 20px;
}
h3 {
    font-size: 22px;
}

/* قسمت فهرست */
nav.table-of-content {
    background: #f0efef;
    width: 100%;
    border-radius: 15px;
}
div.table__of__content__head {
    border-bottom: 2px solid;
    padding: 5px 20px;
    background: #e0e0e0;
    border-radius: 8px 10px 0 0;
    display: flex;
    justify-content: space-between;
}
nav.table-of-content ul {
    padding: 15px 20px 20px;
}

nav.table-of-content ul li {
    border-right: 2px solid;
    padding: 0 10px;
    margin-right: 10px;
}
.entry-content ul li,
.content ul li {
    position: relative;
    margin-right: 25px;
}
li,
span,
.lh_30 {
    line-height: 2.2;
}

.table__of__content__ul li {
    position: relative;
    padding-right: 20px;
    list-style: none;
    font-weight: bold;
}

.table__of__content__ul li::before {
    content: "";
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #229181;
    position: absolute;
    right: -22px;
    top: 50%;
    transform: translateY(-50%);
}
.table__of__content__title {
    padding: 13px;
    padding: 9px 23px;
    background: #e0e0e0;
    border-radius: 8px 10px 0 0;
    justify-content: space-between;
    border-bottom: solid 2px;
}
/* پابان قسمت فهرست */

.blog__item {
    height: 100%; /* ارتفاع کامل */
    display: flex;
    flex-direction: column;
    height: 500px; /* ارتفاع ثابت */
    overflow: hidden; /* جلوگیری از خارج شدن محتوا */
}
.blog__item__text {
    flex: 1; /* پر کردن فضای باقیمانده */
    display: flex;
    flex-direction: column;
}

.blog__item__text h5 {
    font-size: calc(13px + 0.3vw);
    margin-bottom: 12px;
    -webkit-line-clamp: 2; /* محدودیت به 2 خط */
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog__item__text p {
    -webkit-line-clamp: 3; /* محدودیت به 3 خط */
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex-grow: 1; /* پر کردن فضای باقیمانده */
}

/* تنظیمات کارد */
.blog__item {
    transition: all 0.3s;
    height: 100%;
}

.blog__item:hover {
    transform: translateY(-5px);
}

.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.img_blog {
    height: 200px;
    object-fit: cover;
    width: 100%;
}

/* کدهای قسمت موزیک پلیر بصورت کامل */

/* استایل دکمه‌های اصلی */
.main-btns-container {
    max-width: 500px;
    margin: 50px auto;
}

.main-play-btn {
    width: 100%;
    margin: 10px 0;
    padding: 20px;
    border: none;
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.main-play-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.02);
}

/* پلیر مخفی شده */
#playerContainer {
    position: fixed;
    bottom: -200px;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    background: grey;
    backdrop-filter: blur(15px);
    border-radius: 20px 20px 0 0;
    padding: 15px;
    transition: all 0.5s ease;
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.2);
    z-index: 9999;
}

#playerContainer.active {
    bottom: 0;
}

/* کنترل‌های پلیر */
.player-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    margin-top: 15px;
    padding: 0 10px;
    gap: 10px;
}
.control-btn {
    width: 50px;
    height: 50px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.control-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

/* پیشرفت بار */
.progress {
    height: 5px;
    margin: 10px 0;
}

.progress-bar {
    height: 100%;
    background: #4caf50;
    border-radius: 3px;
    width: 0%;
    transition: width 0.1s linear;
}

.progress-time-tooltip {
    position: absolute;
    bottom: 20px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 12px;
    display: none;
    transform: translateX(-50%);
    pointer-events: none;
}

.progress-container {
    position: relative;
    width: 100%;
    height: 5px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    cursor: pointer;
    margin: 15px 0;
    direction: ltr;
}

.close-btn {
    position: absolute;
    left: 18px;
    top: -20%;
    transform: translateY(-50%);
    background: grey;
    border: grey;
    padding: 9px;
    border-radius: 50%;
}

.control-btn svg,
.close-btn svg {
    width: 24px;
    height: 24px;
    fill: #fff;
    transition: all 0.3s ease;
}

.control-btn:hover svg {
    fill: #229181;
}

.icon-close {
    width: 24px;
}

.close-btn:hover svg {
    fill: #ff4444;
}

.control-btn:hover .icon {
    filter: brightness(0.8) sepia(1) hue-rotate(90deg) saturate(5);
}

.close-btn:hover .icon {
    filter: brightness(0.8) sepia(1) hue-rotate(300deg) saturate(5);
}

.hidden {
    display: none;
}

#playPauseBtn {
    position: relative;
}

#playPauseBtn .icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transition: opacity 0.3s ease;
}

#playPauseBtn .hidden {
    opacity: 0;
    pointer-events: none;
}
.time-display {
    color: white;
    font-size: 12px;
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}
.progress {
    direction: ltr;
}

@media (min-width: 1001px) {
    #playerContainer {
        max-width: 75%;
    }
}

#currentTime {
    margin-right: auto;
}

#duration {
    margin-left: auto;
}

.control-btn {
    margin: 0 5px;
}

.speed-text {
    color: white;
    font-size: 19px;
}
/* انیمیشن قسمت سرعت بیشتر پلیر */

.podcast-card {
    display: flex;
    align-items: center;
    background-color: white;
    border-radius: 10px;
    box-shadow: 4px 10px 9px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    margin: 20px;
    padding: 15px;
}

.podcast-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

.play-button,
.like-button,
.share-button {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
}

.play-button {
    background-color: #ffc107;
    color: white;
}

.like-button,
.share-button {
    background-color: #f8f9fa;
    color: gray;
}

.like-button:hover,
.share-button:hover {
    background-color: #e9ecef;
}

.podcast-info {
    padding: 0 15px;
    text-align: right;
    display: flex;
    align-items: center;
}

.podcast-info i {
    font-size: 2em;
    margin-right: 15px;
}

.podcast-info h5 {
    margin: 0;
    font-size: 18px;
}

.podcast-info p {
    margin: 0;
    color: gray;
}

@media (max-width: 1000px) {
    .delete-font {
        display: none;
    }
}

#duration,
#currentTime {
    width: 50px;
    text-align: center;
}

.player-controls > * {
    flex-shrink: 0;
}

.speed-text {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 15px;
}

@media (max-width: 576px) {
    .blog-meta {
        flex-wrap: wrap;
    }

    .blog-meta span {
        white-space: nowrap;
    }
}

.blog-meta span {
    white-space: nowrap;
}
